/* إقرأ - Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    font-size: var(--font-size-base, 1.0625rem);
    font-weight: 300;
    color: var(--text);
    background: var(--background);
    line-height: var(--line-height-body, 1.85);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: var(--line-height-heading, 1.35);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.35rem); font-weight: 500; }
h4 { font-weight: 500; }

p, li, label, input, textarea, select, button {
    font-family: inherit;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.625rem 1.25rem; border-radius: 10px; font-family: inherit;
    font-size: 0.95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent;
    transition: all 0.25s; text-decoration: none;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.25); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-light), var(--primary)); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3); }
.btn-secondary { background: var(--secondary); color: var(--text); box-shadow: 0 4px 12px rgba(var(--secondary-rgb), 0.3); }
.btn-secondary:hover { background: #e6b800; color: var(--text); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm { padding: 0.4rem 0.875rem; font-size: 0.85rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Flash */
.flash {
    position: fixed; top: 1rem; left: 50%; transform: translateX(-50%); z-index: 9999;
    padding: 0.875rem 1.5rem; border-radius: 10px; display: flex; align-items: center; gap: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15); animation: slideDown 0.3s ease;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-info { background: #d1ecf1; color: #0c5460; }

.setup-banner {
    background: #fff3cd; color: #856404; padding: 0.75rem 0; font-size: 0.9rem;
    border-bottom: 1px solid #ffeeba; text-align: center;
}
.setup-banner a { color: #0D8A78; font-weight: 600; }
.flash button { background: none; border: none; font-size: 1.25rem; cursor: pointer; opacity: 0.7; }
@keyframes slideDown { from { opacity: 0; transform: translateX(-50%) translateY(-20px); } }

/* Header */
.site-header {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--primary-rgb),0.1); position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.875rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; color: var(--text); }
.logo-text-compact small { font-size: 0.8rem; color: var(--text-muted); line-height: 1.3; }
@media (max-width: 768px) {
    .logo-text-compact { display: none; }
    .brand-logo-header { height: 44px; }
}
.main-nav { display: flex; gap: 1.75rem; }
.main-nav a { color: var(--text); font-weight: 500; position: relative; }
.main-nav a::after { content: ''; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--primary); transition: width 0.3s; }
.main-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.cart-btn { position: relative; color: var(--text); padding: 0.5rem; }
.cart-count {
    position: absolute; top: 0; left: 0; background: var(--accent); color: #fff;
    font-size: 0.65rem; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.menu-toggle span { width: 24px; height: 2px; background: var(--text); transition: 0.3s; }

/* Hero */
.hero { position: relative; padding: 4rem 0 5rem; overflow: hidden; }
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--background) 0%, var(--mint) 50%, rgba(var(--secondary-rgb), 0.12) 100%);
    z-index: 0;
}
.hero-bg::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 150%;
    background: radial-gradient(circle, rgba(var(--secondary-rgb), 0.2) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(var(--primary-rgb),0.1); color: var(--primary);
    padding: 0.4rem 1rem; border-radius: 20px; font-size: 0.9rem; margin-bottom: 1rem;
    border: 1px solid rgba(var(--primary-rgb),0.15);
}
.hero-text h1 { font-size: clamp(2rem, 5vw, 2.85rem); margin-bottom: 1rem; color: var(--text); letter-spacing: -0.02em; }
.hero-text p { font-size: 1.125rem; color: var(--text-muted, #555); margin-bottom: 1.75rem; max-width: 520px; line-height: 1.9; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.hero-stats { display: flex; gap: 2rem; }
.hero-stats div { text-align: center; }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--primary); font-family: var(--font-heading); }
.hero-stats span { font-size: 0.85rem; color: #888; }
.hero-visual { position: relative; height: 400px; }
.hero-card {
    position: absolute; background: white; padding: 1.25rem 1.5rem; border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); display: flex; align-items: center; gap: 0.75rem;
    animation: float 3s ease-in-out infinite;
}
.hero-card span { font-size: 2rem; }
.hero-card p { font-weight: 600; font-size: 0.95rem; }
.hero-card-1 { top: 10%; right: 10%; animation-delay: 0s; }
.hero-card-2 { top: 40%; right: 40%; animation-delay: 0.5s; }
.hero-card-3 { bottom: 15%; right: 5%; animation-delay: 1s; }
.hero-circle {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 250px; height: 250px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); opacity: 0.15;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Sections */
.section { padding: 4rem 0; }
.section-header { text-align: center; margin-bottom: 2.5rem; position: relative; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.section-header p { color: var(--text-muted); }
.link-arrow { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-weight: 600; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: white; padding: 2rem; border-radius: 16px; text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(var(--primary-rgb),0.08);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(var(--primary-rgb),0.12); }
.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.feature-card h3 { margin-bottom: 0.5rem; color: var(--primary); }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.product-card {
    background: white; border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.product-image { position: relative; aspect-ratio: 1; overflow: hidden; display: block; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-badge {
    position: absolute; top: 0.75rem; right: 0.75rem; padding: 0.25rem 0.75rem;
    border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.product-badge.digital { background: var(--primary); color: #fff; }
.product-badge.sale { background: var(--accent); color: #fff; left: 0.75rem; right: auto; }
.product-info { padding: 1.25rem; }
.product-category { font-size: 0.8rem; color: var(--primary); font-weight: 500; }
.product-info h3 { font-size: 1.1rem; margin: 0.25rem 0 0.5rem; font-family: var(--font-body); }
.product-info h3 a { color: var(--text); }
.product-info p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 1rem; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-price { display: flex; align-items: center; gap: 0.5rem; }
.price-current { font-weight: 700; color: var(--primary); font-size: 1.1rem; }
.price-old { text-decoration: line-through; color: #aaa; font-size: 0.9rem; }

/* CTA */
.cta-section { padding: 2rem 0 4rem; }
.cta-box {
    color: white;
    padding: 3rem; border-radius: 20px; display: flex; align-items: center;
    justify-content: space-between; gap: 2rem;
}
.cta-box h2 { color: white; margin-bottom: 0.5rem; }
.cta-box p { opacity: 0.9; margin-bottom: 1.5rem; }
.cta-icon { font-size: 5rem; opacity: 0.8; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-content p { color: #555; margin-bottom: 1.5rem; }
.about-list { list-style: none; margin-bottom: 1.5rem; }
.about-list li { padding: 0.4rem 0; color: #444; }
.about-visual { position: relative; }
.about-pattern {
    width: 100%; height: 300px; border-radius: 20px;
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.3), rgba(var(--primary-rgb), 0.2));
}
.about-quote {
    position: absolute; bottom: -1rem; right: -1rem; background: white;
    padding: 1.5rem; border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,0.1); max-width: 320px;
}
.about-quote blockquote { font-style: italic; color: #555; margin-bottom: 0.5rem; }
.about-quote cite { font-size: 0.85rem; color: var(--primary); font-weight: 600; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark, #0D8A78), var(--primary, #16B19B));
    color: white; padding: 2.75rem 0; position: relative; overflow: hidden;
}
.page-header::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url('../brand/patterns/wrapping-paper.jpg');
    background-size: 280px;
    opacity: 0.1;
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { color: white; font-size: 2rem; }
.page-header p { opacity: 0.92; }
.breadcrumb { font-size: 0.9rem; opacity: 0.8; }
.breadcrumb a { color: white; }

/* Shop */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.shop-sidebar { background: white; padding: 1.5rem; border-radius: 16px; height: fit-content; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.shop-sidebar h3 { margin-bottom: 1rem; color: var(--primary); }
.category-list { list-style: none; }
.category-list a {
    display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: var(--text);
    transition: background 0.2s;
}
.category-list a:hover, .category-list a.active { background: rgba(var(--primary-rgb),0.1); color: var(--primary); font-weight: 600; }

/* Product detail */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.main-image { border-radius: 16px; width: 100%; aspect-ratio: 1; object-fit: cover; }
.digital-notice {
    display: flex; align-items: center; gap: 1rem; background: rgba(var(--primary-rgb),0.08);
    padding: 1rem; border-radius: 12px; margin-top: 1rem;
}
.product-details h1 { font-size: 2rem; margin: 0.5rem 0 1rem; }
.product-price-lg { margin-bottom: 1.5rem; }
.product-price-lg .price-current { font-size: 1.75rem; }
.product-desc { color: #555; margin-bottom: 1.5rem; }
.stock-info { margin-bottom: 1rem; font-weight: 500; }
.plan-info { background: #f8f9fa; padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.add-to-cart-form { margin-bottom: 1.5rem; }
.qty-selector { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.qty-selector input { width: 80px; padding: 0.5rem; border: 1px solid #ddd; border-radius: 8px; font-family: inherit; }
.product-meta { display: flex; flex-direction: column; gap: 0.5rem; color: #666; font-size: 0.9rem; }
.related-products { margin-top: 3rem; }
.related-products h2 { margin-bottom: 1.5rem; }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; }
.cart-item {
    display: flex; align-items: center; gap: 1rem; background: white;
    padding: 1rem; border-radius: 12px; margin-bottom: 0.75rem; box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.5rem; }
.cart-item-actions input { width: 60px; padding: 0.4rem; border: 1px solid #ddd; border-radius: 6px; text-align: center; }
.btn-remove { background: none; border: none; font-size: 1.5rem; color: var(--accent); cursor: pointer; }
.cart-summary, .checkout-summary {
    background: white; padding: 1.5rem; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); height: fit-content; position: sticky; top: 100px;
}
.cart-summary h3, .checkout-summary h3 { margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-top: 1px solid #eee; font-size: 1.1rem; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.checkout-form { background: white; padding: 2rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.form-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; }
.form-section h3 { margin-bottom: 1rem; color: var(--primary); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 10px;
    font-family: inherit; font-size: 0.95rem; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--primary);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: 0.85rem; color: #888; margin-top: 0.25rem; display: block; }
.payment-options { display: flex; flex-direction: column; gap: 0.5rem; }
.payment-option {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem;
    border: 1px solid #ddd; border-radius: 10px; cursor: pointer; transition: border-color 0.2s;
}
.payment-option:has(input:checked) { border-color: var(--primary); background: rgba(var(--primary-rgb),0.05); }
.checkout-item { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.9rem; color: #555; }
.checkout-total { display: flex; justify-content: space-between; padding: 1rem 0; border-top: 2px solid #eee; font-size: 1.15rem; margin-top: 0.5rem; }
.digital-access-notice { background: rgba(var(--primary-rgb),0.08); padding: 0.75rem; border-radius: 8px; margin-top: 1rem; font-size: 0.9rem; }

/* Auth */
.auth-section { display: flex; align-items: center; min-height: 60vh; }
.auth-section-enhanced {
    background: linear-gradient(180deg, var(--background) 0%, rgba(var(--primary-rgb),0.04) 100%);
    padding: 3rem 0;
    min-height: calc(100vh - 160px);
    display: block;
}
.auth-box {
    max-width: 420px; margin: 0 auto; background: white; padding: 2.5rem;
    border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); width: 100%;
}
.auth-box h1 { text-align: center; margin-bottom: 0.5rem; }
.auth-box > p { text-align: center; color: #666; margin-bottom: 1.5rem; }
.auth-link { text-align: center; margin-top: 1.5rem; color: #666; }

/* Success */
.success-page { min-height: 60vh; display: flex; align-items: center; }
.success-box { max-width: 550px; margin: 0 auto; text-align: center; background: white; padding: 3rem; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
.success-icon { font-size: inherit; margin-bottom: 1rem; }
.order-number { background: #f8f9fa; padding: 1rem; border-radius: 10px; margin: 1.5rem 0; }
.credentials-box { background: rgba(var(--primary-rgb),0.08); padding: 1.5rem; border-radius: 12px; text-align: right; margin: 1.5rem 0; }
.credential-item { margin: 0.5rem 0; }
.credentials-box code { background: white; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 1.1rem; }
.success-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: 200px 1fr; gap: 2rem; }
.dashboard-sidebar { background: white; padding: 1.5rem; border-radius: 16px; height: fit-content; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.dashboard-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dashboard-nav a { padding: 0.625rem 1rem; border-radius: 8px; color: var(--text); transition: background 0.2s; }
.dashboard-nav a:hover, .dashboard-nav a.active { background: rgba(var(--primary-rgb),0.1); color: var(--primary); font-weight: 600; }
.dashboard-card { background: white; padding: 1.5rem; border-radius: 16px; margin-bottom: 1.5rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.dashboard-card h2 { margin-bottom: 1rem; font-size: 1.25rem; }
.plans-list { display: grid; gap: 1rem; }
.plan-card { border: 1px solid #eee; padding: 1.25rem; border-radius: 12px; }
.plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.plan-status.active { background: #d4edda; color: #155724; padding: 0.2rem 0.75rem; border-radius: 20px; font-size: 0.8rem; }
.plan-expiry { font-size: 0.85rem; color: #888; margin: 0.5rem 0; }
.plan-features { list-style: none; margin-top: 0.75rem; }
.plan-features li { padding: 0.2rem 0; font-size: 0.9rem; color: #555; }
.content-list { display: flex; flex-direction: column; gap: 0.75rem; }
.content-item {
    display: flex; align-items: center; gap: 1rem; padding: 1rem;
    border: 1px solid #eee; border-radius: 12px;
}
.content-icon { font-size: inherit; }
.content-info { flex: 1; }
.content-info h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.content-plan { font-size: 0.8rem; color: var(--primary); }
.content-info p { font-size: 0.85rem; color: #888; }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: right; border-bottom: 1px solid #eee; }
.data-table th { background: #f8f9fa; font-weight: 600; color: var(--primary); }
.status-badge { padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; }
.status-paid, .status-completed { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-cancelled { background: #f8d7da; color: #721c24; }

/* Empty state */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon { font-size: inherit; margin-bottom: 1rem; }
.empty-state.small { padding: 2rem; }

/* Alert */
.alert { padding: 0.875rem 1.25rem; border-radius: 10px; margin-bottom: 1rem; }
.alert-error { background: #f8d7da; color: #721c24; }
.alert-success { background: #d4edda; color: #155724; }

/* Account request form */
.request-notice {
    display: flex; align-items: flex-start; gap: 0.625rem;
    background: rgba(var(--primary-rgb), 0.08); border: 1px solid rgba(var(--primary-rgb), 0.15);
    padding: 0.875rem 1rem; border-radius: var(--radius-md, 12px);
    margin-bottom: 1.25rem; font-size: 0.9rem; color: var(--text);
    line-height: 1.6;
}
.request-notice .icon { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.request-success { text-align: center; }
.request-success h1 { font-size: 1.5rem; margin-bottom: 0.75rem; color: var(--primary); }
.request-success p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.8; }
.request-success .success-icon-wrap { margin: 0 auto 1rem; }

/* Footer */
.site-footer { background: var(--text); color: rgba(255,255,255,0.85); padding: 3rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.footer-logo h3 { margin: 0; color: white; font-size: 1.5rem; }
.footer-logo .icon { color: var(--secondary); }
.footer-brand p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1rem; }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { color: white; opacity: 0.8; transition: opacity 0.2s; }
.social-links a:hover { opacity: 1; }
.footer-links h4, .footer-contact h4 { color: white; margin-bottom: 0.75rem; }
.footer-links a { display: block; color: rgba(255,255,255,0.7); padding: 0.3rem 0; font-size: 0.9rem; }
.footer-links a:hover { color: var(--secondary); }
.footer-contact p { font-size: 0.9rem; margin-bottom: 0.4rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.85rem; opacity: 0.7; }

/* Games */
.games-notice {
    display: flex; align-items: center; gap: 1rem; background: white;
    padding: 1.25rem; border-radius: 16px; margin-bottom: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.challenge-join-box {
    background: linear-gradient(135deg, rgba(var(--secondary-rgb), 0.2), rgba(var(--primary-rgb), 0.1));
    padding: 1.5rem; border-radius: 16px; margin-bottom: 2rem; text-align: center;
}
.challenge-form { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1rem; max-width: 400px; margin-inline: auto; }
.challenge-form input {
    flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--primary); border-radius: 10px;
    font-size: 1.25rem; text-align: center; letter-spacing: 4px; text-transform: uppercase; font-family: inherit;
}
.games-filter { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.filter-btn {
    padding: 0.5rem 1.25rem; border: 2px solid #ddd; background: white; border-radius: 20px;
    cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--primary); background: rgba(var(--primary-rgb),0.1); color: var(--primary); }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.game-card {
    background: white; border-radius: 16px; padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s;
    text-align: center; border: 1px solid rgba(var(--primary-rgb),0.08);
}
.game-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(var(--primary-rgb),0.12); }
.game-card-header { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.game-type-badge { background: rgba(var(--primary-rgb),0.1); color: var(--primary); padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.game-free-badge { background: #d4edda; color: #155724; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.game-paid-badge { background: #fff3cd; color: #856404; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.game-card-icon { font-size: inherit; margin-bottom: 0.75rem; }
.game-card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.game-card p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; min-height: 2.5em; }
.game-card-actions { margin-top: 0.5rem; }
.game-card-actions { margin-top: 0.25rem; }
.game-meta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.registration-plans-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.registration-plan-card {
    background: white; padding: 2rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); text-align: center;
}
.registration-plan-card.free-plan { border: 2px solid var(--primary); }
.registration-plan-card h3 { color: var(--primary); margin-bottom: 0.5rem; }
.plan-price { margin: 1rem 0; }
.plan-price strong { font-size: 1.75rem; color: var(--primary); display: block; }
.plan-price span { font-size: 0.85rem; color: #888; }
.register-plan-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; max-width: 900px; margin: 0 auto; }
.register-plan-info { background: white; padding: 2rem; border-radius: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.plan-price-lg { font-size: 2rem; color: var(--primary); font-weight: 700; margin: 1rem 0; }
.plan-price-lg span { font-size: 1rem; color: #888; font-weight: 400; }

/* Game Play */
.game-play-section { padding: 2rem 0 4rem; min-height: 70vh; }
.game-play-container { max-width: 700px; }
.game-play-header { text-align: center; margin-bottom: 2rem; }
.back-link { color: #888; font-size: 0.9rem; }
.challenge-banner {
    background: rgba(var(--secondary-rgb), 0.3); padding: 0.75rem 1rem; border-radius: 10px;
    margin-top: 1rem; font-size: 0.95rem;
}
.game-area { background: white; border-radius: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.08); overflow: hidden; min-height: 400px; }
.game-screen { display: none; padding: 2rem; }
.game-screen.active { display: block; }
.game-start-card { text-align: center; padding: 2rem 1rem; }
.game-start-icon { font-size: 4rem; margin-bottom: 1rem; }
.game-info-list { list-style: none; display: flex; gap: 1.5rem; justify-content: center; margin: 1.5rem 0; flex-wrap: wrap; }
.game-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.progress-bar { flex: 1; height: 8px; background: #eee; border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--primary); transition: width 0.3s; border-radius: 4px; }
.question-card { text-align: center; }
.question-text { font-size: 1.35rem; margin-bottom: 1.5rem; color: var(--text); font-family: var(--font-heading); }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.option-btn {
    padding: 1rem; border: 2px solid #ddd; background: white; border-radius: 12px;
    font-size: 1.1rem; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.option-btn:hover:not(:disabled) { border-color: var(--primary); background: rgba(var(--primary-rgb),0.05); }
.option-btn.correct { background: #d4edda; border-color: #28a745; }
.option-btn.wrong { background: #f8d7da; border-color: #dc3545; }
.match-items { display: flex; flex-direction: column; gap: 0.75rem; max-width: 300px; margin: 0 auto; }
.match-item { padding: 1rem; border: 2px solid #ddd; background: white; border-radius: 12px; font-size: 1.1rem; cursor: pointer; font-family: inherit; }
.match-item.correct { background: #d4edda; border-color: #28a745; }
.match-item.wrong { background: #f8d7da; border-color: #dc3545; }
.spelling-answer {
    font-size: 2rem; letter-spacing: 8px; min-height: 60px; margin-bottom: 1.5rem;
    padding: 1rem; background: #f8f9fa; border-radius: 12px; font-family: var(--font-heading);
}
.spelling-letters { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 1rem; }
.letter-btn {
    width: 50px; height: 50px; border: 2px solid var(--primary); background: white;
    border-radius: 10px; font-size: 1.25rem; cursor: pointer; font-family: var(--font-heading);
}
.letter-btn.used { opacity: 0.3; pointer-events: none; }
.spelling-actions { display: flex; gap: 0.75rem; justify-content: center; }
.game-feedback {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    padding: 1rem 2rem; border-radius: 12px; font-size: 1.25rem; font-weight: 600; z-index: 100;
    animation: fadeIn 0.3s;
}
.game-feedback.success { background: #d4edda; color: #155724; }
.game-feedback.error { background: #f8d7da; color: #721c24; }
@keyframes fadeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(0.9); } }
.game-results-card { text-align: center; padding: 2rem; }
.results-icon { font-size: 4rem; margin-bottom: 1rem; }
.results-score { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 1rem 0; }
.results-score span { font-size: 1.25rem; color: #888; }
.results-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.challenge-results { background: #f8f9fa; padding: 1.25rem; border-radius: 12px; margin: 1.5rem 0; }
.challenge-scores { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin: 1rem 0; }
.challenge-score-item { text-align: center; }
.challenge-score-item strong { display: block; font-size: 2rem; color: var(--primary); }
.challenge-vs { font-weight: 700; color: #888; }
.challenge-winner { font-size: 1.1rem; font-weight: 600; color: var(--primary); }
.games-cta-box { /* styled in brand.css */ }

/* Responsive */
@media (max-width: 900px) {
    .hero-content, .about-grid, .product-detail-grid, .cart-layout, .checkout-layout,
    .shop-layout, .dashboard-grid, .footer-grid, .features-grid, .games-grid,
    .registration-plans-grid, .register-plan-layout, .options-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .cta-box { flex-direction: column; text-align: center; }
    .cta-icon { font-size: 3rem; }
    .link-arrow { position: static; display: block; margin-top: 1rem; }
    .form-row { grid-template-columns: 1fr; }
    .main-nav {
        display: none; position: absolute; top: 100%; right: 0; left: 0;
        background: white; flex-direction: column; padding: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    }
    .main-nav.open { display: flex; }
    .menu-toggle { display: flex; }
    .site-header { position: relative; }
    .cart-summary, .checkout-summary { position: static; }
}
