/* =============================================================================
   BIBLE BRILLIANT - Shared Styles v2.0
   Premium Dark Theme with Warm Gold + Deep Navy
   (c) 1996-2026 Advanced Learning Academy. All rights reserved.
   ============================================================================= */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */
:root {
    --bg-primary: #0a1628;
    --bg-secondary: #0f1d32;
    --bg-card: #1a2d4a;
    --bg-elevated: #243b5e;
    --bg-glass: rgba(16, 29, 50, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #b8c4d4;
    --text-muted: #7b8fa6;
    --gold: #c9a227;
    --gold-light: #f5e6c8;
    --gold-dark: #a88520;
    --scripture: #fdf8ef;
    --accent-blue: #4a7fb5;
    --accent-green: #28a745;
    --accent-red: #dc3545;
    --accent-purple: #7c3aed;
    --border: rgba(201, 162, 39, 0.15);
    --border-light: rgba(255, 255, 255, 0.06);
    --glow: rgba(201, 162, 39, 0.2);
}

/* =============================================================================
   RESET / BASE
   ============================================================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Cinzel', Georgia, serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* =============================================================================
   NAVIGATION
   ============================================================================= */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
}
nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
nav .logo {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    cursor: pointer;
}
nav .logo span { color: var(--text-primary); }
nav .nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
nav .nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
nav .nav-links a:hover { color: var(--gold); }
nav .nav-links a.active { color: var(--gold); }
.nav-btn {
    padding: 8px 20px;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.nav-btn:hover { background: var(--gold-light); }
.nav-btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 14px;
    font-size: 13px;
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-user .user-name {
    color: var(--gold-light);
    font-weight: 500;
    font-size: 14px;
}
.nav-user .xp-badge {
    background: var(--bg-elevated);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}
.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
}

/* =============================================================================
   AUTH MODAL
   ============================================================================= */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
}
.modal h2 {
    font-size: 24px;
    color: var(--gold);
    margin-bottom: 24px;
    text-align: center;
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); }
.modal-tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.modal-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}
.modal-tab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}
.form-error {
    color: var(--accent-red);
    font-size: 13px;
    margin-top: 8px;
    display: none;
}
.form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}
.form-submit:hover { box-shadow: 0 4px 16px var(--glow); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* =============================================================================
   LANDING PAGE
   ============================================================================= */
.landing { min-height: 100vh; padding-top: 64px; }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
}
.hero h1 {
    font-size: clamp(36px, 6vw, 56px);
    color: var(--gold);
    margin-bottom: 16px;
    line-height: 1.2;
}
.hero h1 span {
    color: var(--text-primary);
    display: block;
    font-size: 0.5em;
    margin-top: 8px;
}
.hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 32px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: var(--gold);
    font-weight: 700;
}
.hero-stat .lbl {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow);
}
.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    border: 2px solid var(--gold);
    cursor: pointer;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(201, 162, 39, 0.1); }
.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

/* =============================================================================
   CARD STYLES
   ============================================================================= */

/* Game Cards (landing showcase) */
.games-section { padding: 80px 20px; }
.games-section h2 { text-align: center; font-size: 32px; color: var(--gold); margin-bottom: 12px; }
.games-section .subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 48px; font-size: 16px; }
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}
.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}
.game-card .card-icon { font-size: 36px; margin-bottom: 16px; }
.game-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.game-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.game-card .tier-badge {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tier-free { background: rgba(40, 167, 69, 0.15); color: #28a745; }
.tier-basic { background: rgba(74, 127, 181, 0.15); color: #4a7fb5; }
.tier-premium { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }

/* =============================================================================
   PRICING
   ============================================================================= */
.pricing-section { padding: 80px 20px; background: var(--bg-secondary); }
.pricing-section h2 { text-align: center; font-size: 32px; color: var(--gold); margin-bottom: 48px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    text-align: center;
    transition: all 0.3s;
}
.price-card.featured {
    border-color: var(--gold);
    box-shadow: 0 0 40px var(--glow);
    transform: scale(1.03);
}
.price-card h3 { font-family: 'Cinzel', serif; font-size: 22px; margin-bottom: 8px; }
.price-card .price { font-size: 40px; font-weight: 700; color: var(--gold); margin: 16px 0; }
.price-card .price span { font-size: 16px; color: var(--text-muted); font-weight: 400; }
.price-card ul { list-style: none; text-align: left; margin: 24px 0; }
.price-card li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.price-card li::before { content: '\2713'; color: var(--accent-green); margin-right: 10px; font-weight: 700; }
.price-card .btn-price {
    display: block;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    transition: all 0.2s;
    margin-top: 24px;
    cursor: pointer;
    border: none;
    width: 100%;
}

/* =============================================================================
   CREDIBILITY
   ============================================================================= */
.credibility-section { padding: 80px 20px; text-align: center; }
.credibility-section h2 { font-size: 28px; color: var(--gold); margin-bottom: 32px; }
.credibility-section p {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 16px;
    font-size: 16px;
    line-height: 1.7;
}
.credibility-section .highlight { color: var(--gold-light); font-weight: 500; }

/* =============================================================================
   PUBLISHED WORKS / BOOKSTORE
   ============================================================================= */
.books-section { padding: 80px 20px; background: var(--bg-secondary); position: relative; overflow: hidden; }
.books-section::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.books-header { text-align: center; margin-bottom: 48px; }
.books-header-icon { font-size: 48px; margin-bottom: 12px; filter: drop-shadow(0 2px 8px rgba(201,162,39,0.3)); }
.books-section h2 {
    text-align: center; font-size: 36px; color: var(--gold); margin-bottom: 8px;
    font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: 1px;
}
.books-byline {
    text-align: center; font-size: 17px; color: var(--text-secondary);
    font-weight: 500; margin-bottom: 12px; letter-spacing: 0.5px;
}
.books-section .subtitle { text-align: center; color: var(--text-muted); margin-bottom: 0; font-size: 15px; }
.books-showcase {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.book-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}
.book-item:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 12px 32px rgba(201,162,39,0.15), 0 4px 12px rgba(0,0,0,0.3);
}
.book-item.book-featured {
    border-color: rgba(201,162,39,0.4);
    background: linear-gradient(145deg, var(--bg-card), rgba(201,162,39,0.05));
}
.book-item.book-featured:hover {
    box-shadow: 0 12px 36px rgba(201,162,39,0.25), 0 4px 12px rgba(0,0,0,0.3);
}
.book-badge {
    position: absolute; top: -8px; right: -8px;
    background: var(--gold); color: var(--bg-primary);
    font-size: 10px; font-weight: 700; letter-spacing: 1px;
    padding: 4px 10px; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(201,162,39,0.4);
}
.book-item img {
    width: 140px;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s;
}
.book-item:hover img { transform: scale(1.03); }
.book-item h4 {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.35;
    min-height: 36px;
}
.book-item .book-author { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.book-item .book-publisher {
    font-size: 11px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.book-item .book-rating { color: var(--gold); font-size: 13px; margin: 6px 0; }
.book-item a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.book-item a:hover { background: rgba(201, 162, 39, 0.25); border-color: var(--gold); }
.featured-collab {
    max-width: 860px;
    margin: 0 auto 48px;
    background: linear-gradient(145deg, var(--bg-card), rgba(201,162,39,0.04));
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 36px;
    display: flex;
    gap: 28px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 8px 32px rgba(201,162,39,0.08);
    position: relative;
    overflow: hidden;
}
.featured-collab::after {
    content: ''; position: absolute; top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(201,162,39,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.collab-badge {
    display: inline-block; padding: 4px 14px;
    background: var(--gold); color: var(--bg-primary);
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.5px; border-radius: 20px; margin-bottom: 10px;
}
.amazon-btn {
    display: inline-block; margin-top: 12px; padding: 12px 24px;
    background: var(--gold); color: var(--bg-primary);
    border-radius: 8px; font-weight: 700; font-size: 14px;
    transition: all 0.2s; letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(201,162,39,0.3);
}
.amazon-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,162,39,0.4); }
.featured-collab img {
    width: 160px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.featured-collab .collab-info h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 22px;
    margin-bottom: 8px;
}
.featured-collab .collab-info p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}
.featured-collab .collab-info .collab-rating {
    color: var(--gold);
    font-size: 15px;
    font-weight: 600;
    margin-top: 8px;
}
@media (max-width: 1024px) { .books-showcase { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .books-showcase { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* =============================================================================
   FOOTER
   ============================================================================= */
footer {
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
}
footer p { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
footer a { color: var(--text-secondary); }
footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
footer .footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--gold); }

/* =============================================================================
   GAME HUB
   ============================================================================= */
.hub { padding-top: 64px; min-height: 100vh; }
.hub-header { padding: 32px 20px 24px; text-align: center; }
.hub-header h2 { font-size: 28px; color: var(--gold); }
.hub-header p { color: var(--text-secondary); margin-top: 8px; }

/* Daily Challenge Banner */
.daily-banner {
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 20px 28px;
    margin: 0 auto 32px;
    max-width: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
}
.daily-banner:hover { box-shadow: 0 4px 20px var(--glow); }
.daily-banner .daily-left { display: flex; align-items: center; gap: 16px; }
.daily-banner .daily-icon { font-size: 32px; }
.daily-banner .daily-text h3 { font-family: 'Cinzel', serif; font-size: 16px; color: var(--gold); }
.daily-banner .daily-text p { font-size: 13px; color: var(--text-secondary); }
.daily-btn {
    padding: 10px 20px;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    padding: 0 20px;
}
.stat-item { text-align: center; }
.stat-item .stat-val { font-size: 22px; font-weight: 700; color: var(--gold); }
.stat-item .stat-lbl { font-size: 12px; color: var(--text-muted); }

/* Hub Game Grid */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}
.hub-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.hub-card.locked { opacity: 0.6; }
.hub-card.locked::after {
    content: '\1F512';
    position: absolute;
    top: 12px; right: 12px;
    font-size: 18px;
}
.hub-card .hc-icon { font-size: 32px; margin-bottom: 12px; }
.hub-card h3 { font-size: 16px; margin-bottom: 6px; }
.hub-card p { font-size: 13px; color: var(--text-secondary); }
.hub-card .hc-tier {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================================
   GAME SCREEN (shared)
   ============================================================================= */
.game-screen { padding-top: 64px; min-height: 100vh; }
.game-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}
.game-header h2 { font-size: 22px; color: var(--gold); }
.game-header .game-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 8px;
}
.game-header .game-info span { font-size: 14px; color: var(--text-secondary); }
.game-header .game-info .score-val { color: var(--gold); font-weight: 600; }
.game-back {
    position: absolute;
    left: 20px; top: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    cursor: pointer;
}
.game-back:hover { color: var(--gold); }
.game-area { max-width: 800px; margin: 0 auto; padding: 24px 20px; }

/* =============================================================================
   GAME: TRIVIA
   ============================================================================= */
.trivia-question {
    font-size: 18px;
    color: var(--scripture);
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.5;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}
.trivia-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trivia-opt {
    padding: 16px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    font-size: 15px;
    color: var(--text-primary);
    transition: all 0.2s;
}
.trivia-opt:hover { border-color: var(--gold); background: var(--bg-elevated); }
.trivia-opt.correct { border-color: var(--accent-green); background: rgba(40, 167, 69, 0.15); }
.trivia-opt.wrong { border-color: var(--accent-red); background: rgba(220, 53, 69, 0.15); }
.trivia-ref {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
    margin-top: 16px;
}
.trivia-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.trivia-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.trivia-dot.done { background: var(--accent-green); }
.trivia-dot.current { background: var(--gold); }
.trivia-dot.wrong-dot { background: var(--accent-red); }

/* =============================================================================
   GAME: TRUE/FALSE
   ============================================================================= */
.tf-statement {
    font-size: 18px;
    color: var(--scripture);
    text-align: center;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf-buttons { display: flex; gap: 16px; justify-content: center; }
.tf-btn {
    padding: 16px 48px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid;
    transition: all 0.2s;
}
.tf-btn.true-btn { color: var(--accent-green); border-color: var(--accent-green); background: rgba(40, 167, 69, 0.1); }
.tf-btn.false-btn { color: var(--accent-red); border-color: var(--accent-red); background: rgba(220, 53, 69, 0.1); }
.tf-btn:hover { transform: scale(1.05); }

/* =============================================================================
   GAME: WORD SEARCH
   ============================================================================= */
.ws-title { text-align: center; margin-bottom: 16px; }
.ws-title h3 { color: var(--gold); font-size: 18px; }
.ws-grid {
    display: inline-grid;
    gap: 2px;
    margin: 0 auto 20px;
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.ws-grid-wrap { text-align: center; }
.ws-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-card);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    transition: all 0.15s;
}
.ws-cell:hover { background: var(--bg-elevated); }
.ws-cell.selected { background: var(--gold); color: var(--bg-primary); }
.ws-cell.found { background: rgba(40, 167, 69, 0.3); color: var(--accent-green); }
.ws-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.ws-word {
    padding: 6px 12px;
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.ws-word.found-word {
    background: rgba(40, 167, 69, 0.15);
    color: var(--accent-green);
    text-decoration: line-through;
    border-color: var(--accent-green);
}
.ws-verse {
    text-align: center;
    font-style: italic;
    color: var(--scripture);
    font-size: 14px;
    margin-top: 16px;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
}

/* =============================================================================
   GAME: BOOKS OF THE BIBLE
   ============================================================================= */
.books-area { max-width: 600px; margin: 0 auto; }
.books-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}
.book-chip {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-primary);
}
.book-chip:hover { border-color: var(--gold); }
.book-chip.placed { opacity: 0.4; cursor: default; }
.books-slots {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    min-height: 200px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
}
.books-slots .placed-book {
    padding: 6px 12px;
    background: var(--gold);
    color: var(--bg-primary);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.books-slots .placed-book.wrong-pos { background: var(--accent-red); color: #fff; }
.books-testament-toggle { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.testament-btn {
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 13px;
}
.testament-btn.active { border-color: var(--gold); color: var(--gold); }

/* =============================================================================
   GAME: FILL IN THE BLANK
   ============================================================================= */
.fillin-verse {
    font-size: 17px;
    color: var(--scripture);
    line-height: 1.8;
    padding: 24px;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.fillin-blank {
    display: inline-block;
    min-width: 80px;
    border-bottom: 2px solid var(--gold);
    margin: 0 4px;
    padding: 2px 8px;
    color: var(--gold);
    font-weight: 600;
}
.fillin-blank.filled { color: var(--accent-green); border-color: var(--accent-green); }
.fillin-blank.wrong-fill { color: var(--accent-red); border-color: var(--accent-red); }
.fillin-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 16px;
}
.fillin-opt {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}
.fillin-opt:hover { border-color: var(--gold); }
.fillin-opt.used { opacity: 0.4; cursor: default; }
.fillin-ref { text-align: center; color: var(--text-muted); font-size: 13px; font-style: italic; }

/* =============================================================================
   GAME: UNSCRAMBLE
   ============================================================================= */
.unscramble-word { text-align: center; margin-bottom: 24px; }
.unscramble-word .scrambled {
    font-size: 32px;
    font-family: 'Cinzel', serif;
    color: var(--gold);
    letter-spacing: 4px;
    margin-bottom: 8px;
}
.unscramble-word .hint { font-size: 13px; color: var(--text-muted); }
.unscramble-input { display: flex; justify-content: center; gap: 12px; margin-bottom: 16px; }
.unscramble-input input {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 18px;
    text-align: center;
    width: 200px;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.unscramble-input input:focus { outline: none; border-color: var(--gold); }
.unscramble-input button {
    padding: 12px 24px;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* =============================================================================
   GAME: MEMORY VERSE
   ============================================================================= */
.mv-phase { text-align: center; }
.mv-verse-display {
    font-size: 20px;
    color: var(--scripture);
    line-height: 1.7;
    padding: 32px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 20px;
}
.mv-ref { color: var(--gold); font-style: italic; font-size: 14px; margin-top: 12px; }
.mv-timer { font-size: 48px; color: var(--gold); font-family: 'Cinzel', serif; margin: 24px 0; }
.mv-word-bank {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}
.mv-word {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}
.mv-word:hover { border-color: var(--gold); }
.mv-word.used { opacity: 0.3; cursor: default; }
.mv-constructed {
    min-height: 80px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px dashed var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-content: flex-start;
    margin-bottom: 20px;
}
.mv-placed {
    padding: 6px 10px;
    background: var(--gold);
    color: var(--bg-primary);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* =============================================================================
   GAME: CROSSWORD
   ============================================================================= */
.cw-grid { display: inline-grid; gap: 2px; margin: 0 auto 20px; }
.cw-grid-wrap { text-align: center; }
.cw-cell { width: 40px; height: 40px; position: relative; }
.cw-cell input {
    width: 100%; height: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 2px;
}
.cw-cell input:focus { outline: none; border-color: var(--gold); background: var(--bg-elevated); }
.cw-cell .cw-num {
    position: absolute;
    top: 2px; left: 3px;
    font-size: 9px;
    color: var(--text-muted);
    pointer-events: none;
}
.cw-cell.blocked { background: var(--bg-primary); }
.cw-cell.blocked input { display: none; }
.cw-clues {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 600px;
    margin: 0 auto;
}
.cw-clues h4 { color: var(--gold); font-size: 14px; margin-bottom: 8px; }
.cw-clue {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}
.cw-clue span { color: var(--gold); position: absolute; left: 0; font-weight: 600; }

/* =============================================================================
   GAME RESULTS
   ============================================================================= */
.game-results { text-align: center; padding: 40px 20px; }
.game-results h2 { font-size: 28px; color: var(--gold); margin-bottom: 16px; }
.game-results .result-score { font-size: 48px; font-weight: 700; color: var(--gold); margin: 16px 0; }
.game-results .result-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 24px 0;
    flex-wrap: wrap;
}
.game-results .rs-item { text-align: center; }
.game-results .rs-item .rs-val { font-size: 24px; font-weight: 600; color: var(--text-primary); }
.game-results .rs-item .rs-lbl { font-size: 12px; color: var(--text-muted); }
.game-results .achievements-unlocked { margin: 24px 0; }
.game-results .achievement {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 12px 20px;
    margin: 4px;
}
.game-results .achievement .ach-icon { font-size: 20px; }
.game-results .achievement .ach-name { color: var(--gold); font-size: 13px; font-weight: 600; }
.results-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }

/* =============================================================================
   CHURCH / TOURNAMENTS
   ============================================================================= */
.church-section { max-width: 700px; margin: 0 auto; padding: 24px 20px; }
.church-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.church-card h3 { color: var(--gold); font-size: 18px; margin-bottom: 12px; }
.church-card .invite-code {
    font-family: monospace;
    font-size: 24px;
    color: var(--gold);
    letter-spacing: 4px;
    background: var(--bg-primary);
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    margin: 12px 0;
}
.leaderboard-table { width: 100%; border-collapse: collapse; }
.leaderboard-table th {
    text-align: left;
    padding: 10px;
    color: var(--gold);
    font-size: 13px;
    border-bottom: 1px solid var(--border);
}
.leaderboard-table td {
    padding: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    border-bottom: 1px solid var(--border-light);
}
.leaderboard-table tr:first-child td { color: var(--gold); font-weight: 600; }

/* =============================================================================
   PORTAL: SECTION HERO
   ============================================================================= */
.portal-hero {
    padding: 80px 20px 60px;
    text-align: center;
    background: radial-gradient(ellipse at 50% 30%, rgba(201, 162, 39, 0.06) 0%, transparent 60%);
    padding-top: calc(64px + 60px);
}
.portal-hero h1 {
    font-size: clamp(28px, 5vw, 44px);
    color: var(--gold);
    margin-bottom: 12px;
}
.portal-hero p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================================================
   PORTAL: SECTION HEADER + BREADCRUMB
   ============================================================================= */
.section-header {
    padding: 24px 20px 16px;
    padding-top: calc(64px + 24px);
    max-width: 1200px;
    margin: 0 auto;
}
.section-header h1 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 8px;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 15px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); }

/* =============================================================================
   PORTAL: CONTENT GRID + CONTENT CARDS
   ============================================================================= */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}
.content-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.3s;
}
.content-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.content-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.content-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}
.content-card .card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 12px;
}
.content-card .card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.content-card a.card-link {
    display: inline-block;
    margin-top: 12px;
    color: var(--gold);
    font-weight: 500;
    font-size: 14px;
}
.content-card a.card-link:hover { color: var(--gold-light); }

/* =============================================================================
   PORTAL: TAB NAVIGATION
   ============================================================================= */
.tab-nav {
    display: flex;
    border-bottom: 1px solid var(--border);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 0;
    overflow-x: auto;
}
.tab-nav button {
    padding: 14px 24px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.tab-nav button.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}
.tab-nav button:hover { color: var(--text-primary); }
.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}
.tab-content.active { display: block; }

/* =============================================================================
   PORTAL: FORM CARD
   ============================================================================= */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    max-width: 600px;
    margin: 0 auto;
}
.form-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 20px;
}

/* =============================================================================
   PORTAL: PROGRESS BAR
   ============================================================================= */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}
.progress-bar .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* =============================================================================
   PORTAL: BADGE
   ============================================================================= */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-free { background: rgba(40, 167, 69, 0.15); color: var(--accent-green); }
.badge-basic { background: rgba(74, 127, 181, 0.15); color: var(--accent-blue); }
.badge-premium { background: rgba(124, 58, 237, 0.15); color: #a78bfa; }
.badge-new { background: rgba(201, 162, 39, 0.15); color: var(--gold); }
.badge-popular { background: rgba(220, 53, 69, 0.15); color: var(--accent-red); }

/* =============================================================================
   PORTAL: VERSE CARD
   ============================================================================= */
.verse-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}
.verse-card .verse-text {
    font-size: 17px;
    color: var(--scripture);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 8px;
}
.verse-card .verse-ref {
    color: var(--gold);
    font-size: 13px;
    font-weight: 600;
}

/* =============================================================================
   PORTAL: PRAYER CARD
   ============================================================================= */
.prayer-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}
.prayer-card:hover { border-color: rgba(201, 162, 39, 0.3); }
.prayer-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.prayer-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}
.prayer-card .prayer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}
.prayer-card .prayer-actions {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}
.prayer-card .prayer-actions button {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}
.prayer-card .prayer-actions button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* =============================================================================
   PORTAL: COURSE CARD
   ============================================================================= */
.course-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}
.course-card:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.course-card .course-icon {
    font-size: 40px;
    margin-bottom: 12px;
}
.course-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 17px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.course-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}
.course-card .course-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.course-card .course-meta .lessons { color: var(--gold); }

/* =============================================================================
   TOAST NOTIFICATION
   ============================================================================= */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    z-index: 3000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 400px;
}
.toast.show {
    opacity: 1;
    transform: translateY(0);
}
.toast-info { background: var(--bg-elevated); border: 1px solid var(--accent-blue); }
.toast-success { background: rgba(40, 167, 69, 0.2); border: 1px solid var(--accent-green); }
.toast-error { background: rgba(220, 53, 69, 0.2); border: 1px solid var(--accent-red); }
.toast-warning { background: rgba(201, 162, 39, 0.2); border: 1px solid var(--gold); }

/* =============================================================================
   RESPONSIVE: TABLETS
   ============================================================================= */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0; right: 0;
        background: var(--bg-primary);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }
    .hero h1 { font-size: 32px; }
    .hero-stats { gap: 24px; }
    .trivia-options { grid-template-columns: 1fr; }
    .games-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .price-card.featured { transform: none; }
    .ws-cell { width: 28px; height: 28px; font-size: 12px; }
    .cw-cell { width: 34px; height: 34px; }
    .cw-clues { grid-template-columns: 1fr; }
    .hub-grid { grid-template-columns: 1fr 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .portal-hero { padding-top: calc(64px + 40px); }
    .portal-hero h1 { font-size: 28px; }
    .featured-collab { flex-direction: column; text-align: center; }
}

/* =============================================================================
   RESPONSIVE: MOBILE
   ============================================================================= */
@media (max-width: 480px) {
    .games-grid { grid-template-columns: 1fr; }
    .hub-grid { grid-template-columns: 1fr; }
    .ws-cell { width: 24px; height: 24px; font-size: 11px; }
    .tab-nav button { padding: 12px 16px; font-size: 13px; }
    .content-grid { grid-template-columns: 1fr; }
}