@import url('https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700&display=swap');

/* Antigravity Design System - Biblia OficialSite */

/* Theme Variables */
:root, .theme-light {
    --primary: #1a1a1a;
    --accent: #d4a373;       /* Biblical warm bronze */
    --accent-hover: #b88655;
    --bg: #faf6e8;          /* Warm paper/ivory background */
    --text: #2c351f;         /* Elegant dark forest text */
    --card-bg: #ffffff;
    --border: rgba(0, 0, 0, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    --text-muted: #64748b;
    --body-font: 'Ibarra Real Nova', Georgia, serif;
    --ui-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-sepia {
    --primary: #433422;
    --accent: #d4a373;
    --accent-hover: #b88655;
    --bg: #f4ecd8;          /* Antique Sepia tone */
    --text: #5c4033;         /* Soft brown text */
    --card-bg: #FAF3E3;
    --border: rgba(67, 52, 34, 0.1);
    --shadow: 0 4px 20px rgba(67, 52, 34, 0.03);
    --text-muted: #8c7355;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cpath d='M10 90Q40 60 90 10' stroke='%235c4033' stroke-width='0.5' fill='none' stroke-opacity='0.025'/%3E%3Cpath d='M30 70Q40 55 45 65Q35 75 30 70' fill='%235c4033' fill-opacity='0.015'/%3E%3Cpath d='M50 50Q60 35 65 45Q55 55 50 50' fill='%235c4033' fill-opacity='0.015'/%3E%3Cpath d='M70 30Q80 15 85 25Q75 35 70 30' fill='%235c4033' fill-opacity='0.015'/%3E%3Cpath d='M25 75Q15 70 20 60Q30 65 25 75' fill='%235c4033' fill-opacity='0.015'/%3E%3Cpath d='M45 55Q35 50 40 40Q50 45 45 55' fill='%235c4033' fill-opacity='0.015'/%3E%3Cpath d='M65 35Q55 30 60 20Q70 25 65 35' fill='%235c4033' fill-opacity='0.015'/%3E%3C/svg%3E");
}

.theme-dark {
    --primary: #f8fafc;
    --accent: #e5ba90;
    --accent-hover: #f0cfad;
    --bg: #121212;          /* Ultra dark grey */
    --text: #e2e8f0;         /* Clear reading text */
    --card-bg: #1e1e1e;      /* Soft dark card */
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --text-muted: #94a3b8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cpath d='M10 90Q40 60 90 10' stroke='%23ffffff' stroke-width='0.5' fill='none' stroke-opacity='0.02'/%3E%3Cpath d='M30 70Q40 55 45 65Q35 75 30 70' fill='%23ffffff' fill-opacity='0.012'/%3E%3Cpath d='M50 50Q60 35 65 45Q55 55 50 50' fill='%23ffffff' fill-opacity='0.012'/%3E%3Cpath d='M70 30Q80 15 85 25Q75 35 70 30' fill='%23ffffff' fill-opacity='0.012'/%3E%3Cpath d='M25 75Q15 70 20 60Q30 65 25 75' fill='%23ffffff' fill-opacity='0.012'/%3E%3Cpath d='M45 55Q35 50 40 40Q50 45 45 55' fill='%23ffffff' fill-opacity='0.012'/%3E%3Cpath d='M65 35Q55 30 60 20Q70 25 65 35' fill='%23ffffff' fill-opacity='0.012'/%3E%3C/svg%3E");
}

/* Global Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: clip; /* Prevent horizontal overflow without breaking position:sticky */
    max-width: 100%;
}

body {
    font-family: var(--body-font);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 100 100'%3E%3Cpath d='M10 90Q40 60 90 10' stroke='%23d4a373' stroke-width='0.5' fill='none' stroke-opacity='0.035'/%3E%3Cpath d='M30 70Q40 55 45 65Q35 75 30 70' fill='%23d4a373' fill-opacity='0.02'/%3E%3Cpath d='M50 50Q60 35 65 45Q55 55 50 50' fill='%23d4a373' fill-opacity='0.02'/%3E%3Cpath d='M70 30Q80 15 85 25Q75 35 70 30' fill='%23d4a373' fill-opacity='0.02'/%3E%3Cpath d='M25 75Q15 70 20 60Q30 65 25 75' fill='%23d4a373' fill-opacity='0.02'/%3E%3Cpath d='M45 55Q35 50 40 40Q50 45 45 55' fill='%23d4a373' fill-opacity='0.02'/%3E%3Cpath d='M65 35Q55 30 60 20Q70 25 65 35' fill='%23d4a373' fill-opacity='0.02'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--text);
    line-height: 1.8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    max-width: 100%;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a, button, select, input, textarea {
    font-family: var(--ui-font);
}

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Logo */
header {
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 0;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.03);
}

.logo-img {
    height: 120px;
    max-width: 100%;
    object-fit: contain;
}

.site-title {
    font-family: var(--ui-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.8;
}

.header-nav {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    font-weight: 600;
    flex-wrap: wrap;
    justify-content: center;
}

.header-nav a {
    color: var(--primary);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
    color: var(--accent);
    background: rgba(212, 163, 115, 0.08);
}

/* ── Hamburguer Button (hidden on desktop) ── */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: var(--transition);
    color: var(--primary);
}

.hamburger-btn:hover {
    background: rgba(212, 163, 115, 0.1);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Nav Overlay ── */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.nav-overlay.open {
    opacity: 1;
}

/* ── Mobile Nav Drawer ── */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 280px;
    max-width: 85vw;
    height: 100%;
    height: 100dvh;
    background: var(--card-bg);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 30px rgba(0,0,0,0.2);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: right 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-nav-header img {
    height: 34px;
    object-fit: contain;
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    transition: var(--transition);
    line-height: 1;
}

.mobile-nav-close:hover {
    color: var(--accent);
    background: rgba(212, 163, 115, 0.1);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0 1.5rem 0;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav-links a {
    font-family: var(--ui-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent);
    background: rgba(212, 163, 115, 0.06);
    border-left-color: var(--accent);
}

.mobile-nav-footer {
    padding: 0.85rem 1.25rem;
    border-top: 1px solid var(--border);
    font-family: var(--ui-font);
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    background: var(--card-bg);
}

/* ── Mobile Header Overrides ── */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0.4rem 1.25rem;
        gap: 0;
    }

    .logo-img {
        height: 68px;
        margin-top: 4px;
        margin-bottom: 4px;
    }

    .site-title {
        display: none;
    }

    .header-nav {
        display: none;
    }

    .hamburger-btn {
        display: flex;
    }
}

/* Theme Switcher Widget */
.theme-switch-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 6px 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.theme-btn:hover, .theme-btn.active {
    color: var(--accent);
    background: rgba(212, 163, 115, 0.1);
    transform: scale(1.1);
}

/* Main Dashboard Structure */
main {
    flex: 1;
    padding: 2rem 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.dashboard-grid > * {
    min-width: 0;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Devotional Card */
.card-devocional {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.card-devocional::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 130px;
    height: 130px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M10 90Q45 55 90 10' stroke='%23d4a373' stroke-width='0.75' fill='none' stroke-opacity='0.16'/%3E%3Cpath d='M30 70Q40 55 45 65Q35 75 30 70' fill='%23d4a373' fill-opacity='0.1'/%3E%3Cpath d='M50 50Q60 35 65 45Q55 55 50 50' fill='%23d4a373' fill-opacity='0.1'/%3E%3Cpath d='M70 30Q80 15 85 25Q75 35 70 30' fill='%23d4a373' fill-opacity='0.1'/%3E%3Cpath d='M25 75Q15 70 20 60Q30 65 25 75' fill='%23d4a373' fill-opacity='0.1'/%3E%3Cpath d='M45 55Q35 50 40 40Q50 45 45 55' fill='%23d4a373' fill-opacity='0.1'/%3E%3Cpath d='M65 35Q55 30 60 20Q70 25 65 35' fill='%23d4a373' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 0;
}

.card-devocional::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-hover));
    border-radius: 4px 0 0 4px;
}

.card-tag {
    font-family: var(--ui-font);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1.5px;
    margin-bottom: 0.6rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212, 163, 115, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(212, 163, 115, 0.2);
}

.devocional-titulo {
    font-family: var(--ui-font);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    margin-top: 0.4rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1.25;
}

/* Bloco do Versículo-Chave Curado */
.devocional-versiculo-bloco {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.07) 0%, rgba(212, 163, 115, 0.02) 100%);
    border: 1px solid rgba(212, 163, 115, 0.25);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.devocional-versiculo-label {
    font-family: var(--ui-font);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.devocional-versiculo {
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text);
    margin: 0;
    padding: 0;
    border: none;
    display: block;
}

.devocional-versiculo-ref {
    display: block;
    font-style: normal;
    font-family: var(--ui-font);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 0.6rem;
    letter-spacing: 0.3px;
}

.devocional-texto {
    font-size: 1.1rem;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    color: var(--text);
    opacity: 0.95;
}

/* Extensão do devocional (seção expandida) */
.devocional-extensao-inner {
    margin-top: 1.25rem;
    border-top: 1px dashed rgba(212, 163, 115, 0.35);
    padding-top: 1.25rem;
    animation: fadeIn 0.4s ease;
}

.devocional-ler-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(212, 163, 115, 0.08);
    border: 1px solid rgba(212, 163, 115, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
}

.devocional-ler-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
}

/* Botões de ação do devocional */
.devocional-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.devocional-toggle-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
    flex: 1;
    min-width: 180px;
}

.devocional-share-btn {
    background: #25d366;
    font-size: 0.9rem;
    padding: 10px 20px;
    flex: 1;
    min-width: 180px;
}

.devocional-share-btn:hover {
    background: #1da951;
}

/* Books Directory */
.books-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--ui-font);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.section-title::after {
    content: '';
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d4a373' opacity='0.3'%3E%3Cpath d='M17 8C8 10 5.9 16.1 5 21C4 16.1 1.9 10 11 8C8.8 6.5 6 6 3 6C8.5 6 12.5 3.5 15 0C14.3 3.5 14.5 6.5 17 8Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.testament-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    flex: 1;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.toggle-btn.active, .toggle-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.book-card {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--ui-font);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 60px;
}

.book-card:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.2);
}

/* Chapter Selection View (Overlay / Inline Expand) */
.chapters-container {
    grid-column: 1 / -1;
    width: 100%;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.book-card.selected-book {
    background: var(--accent) !important;
    color: white !important;
    border-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.2);
}

.chapters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.chapter-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 0;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--ui-font);
    transition: var(--transition);
}

.chapter-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Prayer Wall Widget */
.prayer-wall {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    align-self: start;
}

.prayer-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.15);
}

.form-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.prayers-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar */
.prayers-list::-webkit-scrollbar {
    width: 6px;
}
.prayers-list::-webkit-scrollbar-track {
    background: transparent;
}
.prayers-list::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.prayer-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.prayer-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--ui-font);
}

.prayer-author {
    font-weight: 700;
    color: var(--primary);
}

.prayer-text {
    font-size: 0.95rem;
    line-height: 1.5;
}

.prayer-actions {
    display: flex;
    justify-content: flex-end;
}

.amen-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    font-weight: 600;
    transition: var(--transition);
}

.amen-btn:hover {
    background: rgba(212, 163, 115, 0.1);
    border-color: var(--accent);
}

/* Distraction-Free Reading Interface */
.reading-layout {
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.reading-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-selects {
    display: flex;
    gap: 8px;
    width: 100%;
}

.reading-select {
    flex: 1;
    min-width: 0;
    width: 100%;
    padding: 10px 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: var(--transition);
}

.reading-select:focus {
    border-color: var(--accent);
}

/* Linha 2: Os 4 botões (A-, A+, ◀, ▶) na linha abaixo */
.nav-controls-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ctrl-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    min-width: 52px;
    height: 38px;
    padding: 0 12px;
    line-height: 1;
    font-family: var(--ui-font);
}

.ctrl-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.ctrl-btn.disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

/* Chapter Selection Circles */
.chapter-pills-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 15px auto 10px auto;
    max-width: 650px;
    width: 100%;
}

.chapter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    border-radius: 50%;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.chapter-pill:hover {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.12);
    transform: translateY(-1px);
}

.chapter-pill.active {
    border-color: var(--accent);
    background: var(--accent);
    color: white !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(212, 163, 115, 0.35);
}

/* Bottom Reading Navigation */
.bottom-reading-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-bottom: 3rem;
    gap: 12px;
    flex-wrap: wrap;
}

.bottom-reading-nav .home-btn {
    background: transparent;
    color: var(--primary);
}

/* Bible Reading Area */
.reading-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reading-book-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.reading-chapter-subtitle {
    font-family: var(--ui-font);
    font-size: 1.1rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.bible-text-container {
    font-size: 1.25rem; /* Dynamic target */
    line-height: 1.9;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.verse-item {
    position: relative;
    padding: 6px 40px 6px 0;
    border-radius: 6px;
    margin-bottom: 8px;
    transition: background-color 0.2s ease;
}

.verse-item:hover {
    background-color: rgba(212, 163, 115, 0.05);
}

.verse-num {
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    vertical-align: super;
    margin-right: 6px;
}

.verse-text {
    color: var(--text);
}

/* Copy & Share Hover Buttons */
.verse-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.verse-item:hover .verse-actions {
    opacity: 1;
}

.action-btn {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.action-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: scale(1.1);
}

.action-btn.whatsapp:hover {
    color: #25d366;
    border-color: #25d366;
    background-color: rgba(37, 211, 102, 0.05);
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .verse-actions {
        opacity: 0.85;
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        display: inline-flex;
        margin-left: 8px;
    }
    .verse-item {
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .reading-book-title {
        font-size: 1.85rem;
    }
    
    .reading-nav {
        padding: 10px 12px;
        gap: 8px;
    }

    .nav-selects {
        gap: 6px;
    }

    .reading-select {
        font-size: 0.9rem;
        padding: 9px 8px;
    }

    .nav-controls-row {
        gap: 8px;
    }
    
    .ctrl-btn {
        flex: 1;
        max-width: 75px;
        height: 36px;
        font-size: 0.9rem;
    }

    .bottom-reading-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .bottom-reading-nav > div,
    .bottom-reading-nav .arrow-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .reading-nav {
        padding: 8px 10px;
        gap: 8px;
    }

    .reading-select {
        font-size: 0.85rem;
        padding: 8px 6px;
    }
    
    .nav-controls-row {
        gap: 6px;
    }
    
    .ctrl-btn {
        flex: 1;
        max-width: 65px;
        height: 36px;
        font-size: 0.85rem;
        min-width: 40px;
    }

    .chapter-pills-container {
        gap: 6px;
    }

    .chapter-pill {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
}


/* Monetization Slots */
.ads-container {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 2rem 0;
    padding: 1rem;
    text-align: center;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    position: relative;
}

.ads-label {
    font-family: var(--ui-font);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.ad-placeholder-graphic {
    font-family: var(--ui-font);
    font-weight: 700;
    color: var(--border);
    border: 2px dashed var(--border);
    width: 100%;
    max-width: 728px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0,0,0,0.01);
}

/* Amazon Affiliate Banner Card */
.amazon-affiliate-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    box-shadow: var(--shadow);
}

.amazon-book-img {
    width: 80px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.amazon-info {
    flex: 1;
}

.amazon-tag {
    font-family: var(--ui-font);
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff9900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.amazon-title {
    font-family: var(--ui-font);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.amazon-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.amazon-buy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff9900;
    color: #111;
    text-decoration: none;
    font-family: var(--ui-font);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.amazon-buy-btn:hover {
    background: #e68a00;
    transform: translateY(-1px);
}

@media (max-width: 576px) {
    .amazon-affiliate-card {
        flex-direction: column;
        text-align: center;
    }
    .amazon-book-img {
        width: 100px;
    }
    .amazon-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 2.5rem 0;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--ui-font);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 20px;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

/* Toast Notifications */
.toast-msg {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--bg);
    padding: 10px 24px;
    border-radius: 30px;
    font-family: var(--ui-font);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 2000;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast-msg.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Keyframe Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.4s ease forwards;
}

/* ── PWA Installation Components ── */
.pwa-install-item {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem !important;
}

.pwa-install-btn-drawer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 10px;
    padding: 0.75rem 1rem !important;
    text-align: center;
    box-shadow: 0 4px 14px rgba(212, 163, 115, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border-left: none !important;
}

.pwa-install-btn-drawer:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.45);
    background: linear-gradient(135deg, var(--accent-hover), var(--accent)) !important;
}

/* PWA Bottom Banner */
.pwa-bottom-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 440px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.pwa-banner-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pwa-banner-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.pwa-banner-text strong {
    display: block;
    font-family: var(--ui-font);
    font-size: 0.9rem;
    color: var(--primary);
    line-height: 1.2;
}

.pwa-banner-text span {
    font-family: var(--ui-font);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pwa-banner-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pwa-btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.pwa-btn-primary:hover {
    background: var(--accent-hover);
}

.pwa-btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

/* PWA Guidance Modal (iOS / Generic) */
.pwa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pwa-modal-overlay.open {
    opacity: 1;
}

.pwa-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    position: relative;
    text-align: center;
    font-family: var(--ui-font);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.pwa-modal-card img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    margin-bottom: 12px;
}

.pwa-modal-card h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.pwa-modal-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.pwa-steps {
    text-align: left;
    background: rgba(212, 163, 115, 0.08);
    border: 1px solid rgba(212, 163, 115, 0.2);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 20px;
    font-size: 0.88rem;
    color: var(--text);
}

.pwa-steps ol {
    margin-left: 20px;
    line-height: 1.8;
}

.pwa-steps li strong {
    color: var(--accent-hover);
}

.pwa-modal-close-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-modal-close-btn:hover {
    background: var(--accent-hover);
}

/* Mobile Optimizations for Books Directory */
@media (max-width: 768px) {
    .books-section {
        padding: 1.25rem 1rem;
    }
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 8px;
    }
    .book-card {
        height: 48px;
        font-size: 0.82rem;
        padding: 6px 4px;
        border-radius: 6px;
    }
}

/* ── Seleção de Múltiplos Versículos e Barra Flutuante de Ações ── */
.verse-item {
    cursor: pointer;
    user-select: text;
}

.verse-item.selected {
    background-color: rgba(212, 163, 115, 0.18) !important;
    border-left: 3px solid var(--accent);
    padding-left: 10px;
    border-radius: 4px 8px 8px 4px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

/* Barra Flutuante de Seleção */
.selection-toolbar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: var(--card-bg);
    border: 1px solid var(--accent);
    border-radius: 40px;
    padding: 8px 16px 8px 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    max-width: 92vw;
}

.selection-toolbar.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.selection-toolbar-info {
    font-family: var(--ui-font);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.selection-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.selection-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--ui-font);
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.selection-btn:hover {
    border-color: var(--accent);
    color: var(--accent-hover);
    transform: translateY(-1px);
}

.selection-btn.btn-image {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 3px 10px rgba(212, 163, 115, 0.35);
}

.selection-btn.btn-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 163, 115, 0.45);
}

.selection-btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 50%;
    transition: var(--transition);
}

.selection-btn-close:hover {
    color: #ef4444;
}

/* ── Modal do Gerador de Imagens com Paisagens ── */
.image-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    z-index: 2400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.image-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.image-modal-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    font-family: var(--ui-font);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.image-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
}

.image-modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.image-modal-close {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.image-modal-close:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* Áreas do Modal */
.canvas-preview-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 14px;
    min-height: 240px;
    border: 1px dashed var(--border);
    position: relative;
}

#verse-canvas {
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    object-fit: contain;
}

/* Seletor de Paisagens Harmoniosas */
.landscape-picker-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.landscape-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.landscape-thumb {
    height: 54px;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.landscape-thumb span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
    text-align: center;
    line-height: 1.1;
}

.landscape-thumb:hover {
    transform: scale(1.05);
}

.landscape-thumb.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.4);
}

/* Seletor de Formato (Ratio) */
.ratio-options {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.ratio-btn {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.ratio-btn.active, .ratio-btn:hover {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.12);
    color: var(--accent-hover);
}

/* Botões do Modal */
.image-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.modal-action-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
}

.modal-btn-download {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
}

.modal-btn-download:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.modal-btn-share {
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.modal-btn-share:hover {
    background: #1eb956;
    transform: translateY(-1px);
}

@media (max-width: 640px) {
    .landscape-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .selection-toolbar {
        bottom: 16px;
        padding: 6px 12px 6px 16px;
        gap: 8px;
    }
    .selection-btn {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
    .image-modal-card {
        padding: 16px;
        border-radius: 16px;
    }
}

/* ==========================================
   QUIZ & GAMES BÍBLICOS - ANTIGRAVITY DESIGN
   ========================================== */

.quiz-hero {
    background: linear-gradient(135deg, rgba(212, 163, 115, 0.15) 0%, rgba(212, 163, 115, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.quiz-hero-badge {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.quiz-hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.quiz-hero-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
}

/* Player Status Bar */
.player-status-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.player-info-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-avatar {
    width: 52px;
    height: 52px;
    background: rgba(212, 163, 115, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid var(--accent);
}

.player-level-title {
    font-family: var(--ui-font);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.player-xp-text {
    font-family: var(--ui-font);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.player-progress-wrapper {
    flex: 1;
    min-width: 200px;
}

.player-progress-bar {
    height: 10px;
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: 5px;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, #16a34a 100%);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.player-actions-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sound-toggle-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sound-toggle-btn:hover {
    border-color: var(--accent);
}

/* Grid de Jogos Principais */
.games-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.game-hub-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    cursor: pointer;
}

.game-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--accent);
}

.game-card-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
}

.game-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.game-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.game-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.game-tag-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    background: rgba(212, 163, 115, 0.15);
    color: var(--accent);
}

.game-play-btn {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Categorias Grid */
.quiz-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.quiz-cat-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.quiz-cat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.quiz-cat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.quiz-cat-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.35rem;
}

.quiz-cat-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.quiz-cat-btn {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

/* Área de Jogo Ativa (Container de Partida) */
.game-play-wrapper {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.quiz-play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.quiz-badge-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge-category {
    font-size: 0.85rem;
    font-weight: 700;
    background: rgba(212, 163, 115, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
}

.badge-difficulty {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
}

.diff-facil { background: rgba(22, 163, 74, 0.15); color: #16a34a; }
.diff-medio { background: rgba(202, 138, 4, 0.15); color: #ca8a04; }
.diff-dificil { background: rgba(220, 38, 38, 0.15); color: #dc2626; }

.quiz-progress-text {
    font-family: var(--ui-font);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.quiz-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.quiz-progress-bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 8px;
    transition: width 0.3s ease;
}

.quiz-question-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

/* Opções do Quiz */
.quiz-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.quiz-option-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: var(--transition);
}

.quiz-option-btn:hover:not(:disabled) {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.08);
    transform: translateX(4px);
}

.option-letter {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    flex-shrink: 0;
}

.quiz-option-btn.correct-answer {
    background: rgba(22, 163, 74, 0.15) !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    font-weight: 600;
}

.quiz-option-btn.wrong-answer {
    background: rgba(220, 38, 38, 0.15) !important;
    border-color: #dc2626 !important;
    color: #b91c1c !important;
}

/* Feedback enriquecido */
.quiz-feedback-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.25rem;
    animation: fadeIn 0.3s ease;
}

.feedback-correct {
    border-left: 5px solid #16a34a;
}

.feedback-wrong {
    border-left: 5px solid #dc2626;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-family: var(--ui-font);
    font-weight: 700;
}

.feedback-xp {
    background: #16a34a;
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.feedback-explanation {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.feedback-verse, .feedback-virtue {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.game-action-btn {
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 1rem;
    display: inline-block;
}

.game-action-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.game-action-btn.btn-secondary {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
}

.game-action-btn.btn-secondary:hover {
    border-color: var(--accent);
}

.game-action-btn.btn-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.game-action-btn.btn-whatsapp:hover {
    background: #1eb956;
}

/* Resultados Card */
.quiz-result-card {
    text-align: center;
    padding: 2rem 1rem;
}

.result-trophy {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.result-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* Quem Sou Eu Estilos */
.whoami-clues-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.clue-item {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--text);
    border-left: 4px solid var(--accent);
}

.clue-reveal-btn {
    background: rgba(212, 163, 115, 0.12);
    color: var(--accent);
    border: 1px dashed var(--accent);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.clue-reveal-btn:hover {
    background: rgba(212, 163, 115, 0.2);
}

.whoami-prompt {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Forca da Fé Estilos */
.hangman-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.hangman-lives {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.hangman-hint-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hangman-word-slots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.hangman-letter {
    width: 38px;
    height: 44px;
    border-bottom: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ui-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.hangman-letter.empty {
    color: transparent;
}

.hangman-letter.space {
    border-bottom: none;
    width: 15px;
}

.hangman-keyboard {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    max-width: 580px;
    margin: 0 auto;
}

.kbd-btn {
    width: 38px;
    height: 40px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
}

.kbd-btn:hover:not(:disabled) {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}

.kbd-btn.used {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Dilemas Estilos */
.dilemma-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.75rem 0 1rem;
}

.dilemma-scenario-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent);
}

.dilemma-choose-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.dilemma-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.dilemma-opt-btn {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    text-align: left;
    display: flex;
    gap: 1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.dilemma-opt-btn:hover:not(:disabled) {
    border-color: var(--accent);
    transform: translateX(4px);
}

.opt-num {
    width: 28px;
    height: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Mural de Conquistas */
.achievements-section {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.achievements-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.achievements-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.achievement-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transition: var(--transition);
}

.achievement-card.unlocked {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.05);
}

.achievement-card.locked {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.achievement-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.achievement-title {
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary);
}

.achievement-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.achievement-status {
    font-size: 0.7rem;
    font-weight: 700;
    display: block;
    margin-top: 4px;
}

/* Toast Container */
.quiz-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 350px;
}

.quiz-toast {
    background: var(--card-bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-family: var(--ui-font);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-badge {
    border-left: 5px solid #eab308;
}

.toast-success {
    border-left: 5px solid #16a34a;
}

.animate-fade {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
    .quiz-hero {
        padding: 1.75rem 1rem;
    }
    .quiz-hero-title {
        font-size: 1.6rem;
    }
    .player-status-card {
        flex-direction: column;
        align-items: stretch;
    }
    .game-play-wrapper {
        padding: 1.25rem;
    }
    .hangman-letter {
        width: 28px;
        height: 36px;
        font-size: 1.2rem;
    }
    .kbd-btn {
        width: 32px;
        height: 36px;
        font-size: 0.85rem;
    }
}

/* Seletores de Dificuldade e Categorias Interativos */
.diff-pills-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.diff-pill-btn {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    text-align: center;
    cursor: pointer;
    font-family: var(--ui-font);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.diff-pill-btn:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.diff-pill-btn.active {
    border-color: var(--accent);
    background: rgba(212, 163, 115, 0.18);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.2);
}

.diff-pill-btn.active.diff-facil {
    border-color: #16a34a;
    background: rgba(22, 163, 74, 0.15);
    color: #15803d;
}

.diff-pill-btn.active.diff-medio {
    border-color: #ca8a04;
    background: rgba(202, 138, 4, 0.15);
    color: #a16207;
}

.diff-pill-btn.active.diff-dificil {
    border-color: #dc2626;
    background: rgba(220, 38, 38, 0.15);
    color: #b91c1c;
}

/* Seletor rápido dentro da partida */
.quick-diff-select-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ui-font);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.quick-diff-select {
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-diff-select:hover, .quick-diff-select:focus {
    border-color: var(--accent);
    outline: none;
}

/* ── ESTILIZAÇÃO LUMINOSA & DE ALTO CONTRASTE DO DEVOCIONAL MUSICAL ── */
.music-glow-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    filter: drop-shadow(0 0 5px rgba(245, 158, 11, 0.5));
    vertical-align: -2px;
}

.music-badge-luminous {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(212, 163, 115, 0.12) 100%);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.45);
    padding: 3px 12px;
    border-radius: 20px;
    font-family: var(--ui-font);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.theme-dark .music-badge-luminous {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.22) 0%, rgba(245, 158, 11, 0.1) 100%);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.2);
}

.theme-sepia .music-badge-luminous {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.15) 0%, rgba(212, 163, 115, 0.1) 100%);
    color: #92400e;
    border-color: rgba(180, 83, 9, 0.35);
}

.home-musical-widget {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: 16px;
    padding: 1.35rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-musical-widget:hover {
    border-top-color: #f59e0b;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.home-musical-thumb-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    display: block;
}

.home-musical-thumb-img {
    width: 100%;
    max-width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.home-musical-thumb-box:hover .home-musical-thumb-img {
    transform: scale(1.03);
}

.home-musical-play-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.65) 100%);
    display: flex;
    align-items: flex-end;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 0.8rem;
    font-family: var(--ui-font);
    font-weight: 600;
}

.musical-pill-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-family: var(--ui-font);
    font-size: 0.84rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--primary);
}

.musical-pill-item:hover {
    border-color: #f59e0b;
    color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15);
}

.musical-pill-item.active {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(212, 163, 115, 0.1) 100%);
    color: #d97706;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.2);
}

.theme-dark .musical-pill-item.active {
    color: #fbbf24;
    border-color: #fbbf24;
}





