:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #38bdf8;
    --accent-glow: rgba(56, 189, 248, 0.4);
    --accent-light: rgba(56, 189, 248, 0.1);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --success-color: #10b981;
    --ot-accent: #f59e0b;
    --nt-accent: #10b981;
    --wisdom-accent: #818cf8;
    --gradient-glow: radial-gradient(circle at 50% -20%, var(--accent-glow), transparent 60%);
    --sidebar-width: 250px;
    --pledge-bg: #0f172a;
}

/* Pledge Overlay */
.pledge-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--pledge-bg);
    background-image: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98)), url('spiritual_pledge_bg_1777953146589.png');
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.pledge-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pledge-content {
    max-width: 500px;
    width: 90%;
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: pledge-entrance 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes pledge-entrance {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

.pledge-logo {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--accent-glow));
    animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--accent-glow)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px var(--accent-glow)); transform: scale(1.05); }
}

.pledge-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -1px;
}

.pledge-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.pledge-btn {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px rgba(56, 189, 248, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.pledge-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 3s linear;
    pointer-events: none;
}

.pledge-btn.holding::after {
    width: 100%;
}

.pledge-btn.success {
    background: var(--success-color);
    box-shadow: 0 0 30px var(--success-color);
}

.pledge-congratulations {
    margin-top: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--success-color);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}

.pledge-congratulations.show {
    opacity: 1;
    transform: translateY(0);
}

.pledge-continue-btn {
    margin-top: 2rem;
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pledge-continue-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.pledge-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(56, 189, 248, 0.5);
    filter: brightness(1.1);
}

.pledge-btn:active {
    transform: translateY(-1px);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background-image: var(--gradient-glow);
    background-origin: border-box;
}

/* Layout */
.layout-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: rgba(15, 23, 42, 0.95);
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h2 {
    font-size: 1.3rem;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 15px rgba(56, 189, 248, 0.2);
}

.sidebar-menu {
    list-style: none;
    padding: 1rem 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 0 0.8rem;
    opacity: 0.75;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    opacity: 1;
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(56, 189, 248, 0.15);
    opacity: 1;
}

/* Primary Action Highlight */
.nav-item.primary-action {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.05);
    opacity: 1;
}

.nav-item.primary-action.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
}

.nav-label-group {
    display: flex;
    flex-direction: column;
}

.nav-sublabel {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-top: -2px;
    opacity: 0.8;
}

.nav-item .nav-icon {
    font-size: 1.2rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.nav-item.active .nav-icon {
    color: var(--accent-color);
}

/* Nav Groups */
.sidebar-scrollable {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 1rem;
}

.nav-group {
    margin-top: 1.5rem;
}

.nav-group:first-child {
    margin-top: 0.5rem;
}

.nav-group-header {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-group {
    cursor: pointer;
    transition: opacity 0.2s;
}

.toggle-group:hover {
    opacity: 1;
}

.nav-group .chevron {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.sidebar-menu.collapsed {
    display: none;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 1.5rem 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 50;
    display: none;
}

.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
}

.app-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

#view-chat .app-container {
    max-width: 1000px;
}

.app-header {
    height: 80px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: auto;
}

.streak-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.streak-icon { font-size: 1.2rem; }
#streak-count {
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.visit-container {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.visit-container:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(56, 189, 248, 0.3);
}

.visit-icon { 
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.4));
    animation: pin-bounce 3s ease-in-out infinite;
}

#visit-count {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--accent-color);
    letter-spacing: 0.5px;
}

.visit-label, .streak-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    font-weight: 600;
}

@keyframes pin-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* Bible Snippet Button */
.bible-snippet-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(56, 189, 248, 0.15));
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(129, 140, 248, 0.2);
    position: relative;
    overflow: hidden;
}

.bible-snippet-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(56, 189, 248, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bible-snippet-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(129, 140, 248, 0.7);
    box-shadow: 0 8px 25px rgba(129, 140, 248, 0.35);
}

.bible-snippet-btn:hover::before {
    opacity: 1;
}

.bible-snippet-btn:active {
    transform: translateY(0);
}

.snippet-btn-icon {
    font-size: 1rem;
    position: relative;
    z-index: 1;
    animation: book-pulse 4s ease-in-out infinite;
}

.snippet-btn-label {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #c4b5fd, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes book-pulse {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

/* Bible Snippet List Modal */
.snippet-list-modal-content {
    max-width: 650px !important;
    width: 92% !important;
    text-align: left !important;
    padding: 2.5rem !important;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99)) !important;
    border: 1px solid rgba(129, 140, 248, 0.3) !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6), 0 0 0 1px rgba(129,140,248,0.1) !important;
}

.snippet-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.snippet-modal-header h2 {
    color: var(--text-primary) !important;
    font-size: 1.6rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: -0.5px;
}

.snippet-modal-subtitle {
    color: var(--text-secondary) !important;
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
    margin-top: 0 !important;
}

.snippet-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.snippet-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.snippet-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, #818cf8, #38bdf8);
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
}

.snippet-card:hover {
    background: rgba(129, 140, 248, 0.1);
    border-color: rgba(129, 140, 248, 0.3);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(129, 140, 248, 0.15);
}

.snippet-card:hover::before {
    width: 6px;
}

.snippet-card-icon {
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(56, 189, 248, 0.1));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(129, 140, 248, 0.2);
}

.snippet-card-info {
    flex: 1;
    min-width: 0;
}

.snippet-card-ref {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #c4b5fd, #7dd3fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.snippet-card-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-style: italic;
}

.snippet-card-arrow {
    color: rgba(129, 140, 248, 0.5);
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.snippet-card:hover .snippet-card-arrow {
    transform: translateX(4px);
    color: rgba(129, 140, 248, 1);
}

/* Bible Snippet Detail Modal */
.snippet-detail-modal-content {
    max-width: 750px !important;
    width: 93% !important;
    text-align: left !important;
    padding: 0 !important;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.99), rgba(15, 23, 42, 1)) !important;
    border: 1px solid rgba(129, 140, 248, 0.25) !important;
    overflow: hidden !important;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.snippet-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(15, 23, 42, 0.5);
    flex-shrink: 0;
}

.snippet-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.snippet-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(129, 140, 248, 0.4);
}

.snippet-detail-scroll {
    overflow-y: auto;
    padding: 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.snippet-verse-block {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.08), rgba(56, 189, 248, 0.05));
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.snippet-verse-block::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 8rem;
    color: rgba(129, 140, 248, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.snippet-verse-block .card-tag {
    margin-bottom: 0.8rem;
}

.snippet-verse-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0 0 1rem 0;
    border: none;
    padding: 0;
    quotes: none;
}

.snippet-verse-ref {
    text-align: right;
    font-weight: 700;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #c4b5fd, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 !important;
}

.snippet-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    flex-shrink: 0;
}

.snippet-section-application {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
}

.snippet-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.3rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
}

.snippet-section-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.snippet-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snippet-chevron {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
    line-height: 0;
}

.snippet-section.active .snippet-chevron {
    transform: rotate(180deg);
}

.snippet-section-content {
    padding: 0 1.3rem 1.3rem 1.3rem;
    animation: fadeIn 0.3s ease;
}

.snippet-section-icon {
    font-size: 1.1rem;
}

.snippet-section-title strong {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
}

.snippet-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 !important;
}

/* Original Language Text (Greek/Hebrew) */
#help-focus-original {
    font-family: 'Times New Roman', 'Noto Serif', Georgia, serif !important;
    font-size: 1.2rem !important;
    line-height: 2 !important;
    color: #c4b5fd !important;
    direction: auto;
    unicode-bidi: plaintext;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.06), rgba(56, 189, 248, 0.03));
    border: 1px solid rgba(129, 140, 248, 0.15);
    border-radius: 10px;
    padding: 1rem 1.2rem !important;
    text-align: center;
    font-style: normal !important;
}

/* Meaning section paragraph */
.hf-meaning-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1.2rem 0 !important;
}

/* Word Study Grid inside Meaning */
.word-study-grid {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.word-study-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    opacity: 0.85;
}

.word-study-card {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.07), rgba(56, 189, 248, 0.04));
    border: 1px solid rgba(129, 140, 248, 0.18);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease;
}

.word-study-card:hover {
    border-color: rgba(129, 140, 248, 0.4);
}

.ws-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.ws-english {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.ws-arrow {
    color: rgba(129, 140, 248, 0.5);
    font-size: 0.85rem;
}

.ws-original {
    font-family: 'Times New Roman', 'Noto Serif', Georgia, serif;
    font-size: 1.1rem;
    color: #c4b5fd;
    letter-spacing: 0.5px;
}

.ws-translit {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.75;
}

.ws-definition {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 !important;
    padding-left: 0.2rem;
    border-left: 2px solid rgba(129, 140, 248, 0.25);
}

.snippet-application-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.snippet-application-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
}

.snippet-application-list li::before {
    content: '✦';
    color: var(--success-color);
    font-size: 0.65rem;
    flex-shrink: 0;
    margin-top: 0.35rem;
}

/* Responsive adjustments for snippet modals */
@media (max-width: 600px) {
    .snippet-list-modal-content,
    .snippet-detail-modal-content {
        width: 96% !important;
        padding: 1.5rem !important;
    }
    .snippet-detail-scroll {
        padding: 1.3rem;
    }
    .snippet-btn-label {
        display: none;
    }
    .bible-snippet-btn {
        padding: 0.5rem 0.75rem;
    }
}

/* Reading Plan View Styles */
.reading-plan-nav-card {
    padding: 2.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(56, 189, 248, 0.3);
    overflow: hidden;
    position: relative;
}

.reading-plan-nav-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.nav-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    z-index: 1;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 0;
    font-family: Arial, sans-serif;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 30px var(--accent-glow);
}

.day-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.day-label {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 4px;
    text-transform: uppercase;
}

#rp-day-input {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 4rem;
    font-weight: 800;
    width: 150px;
    padding: 0.8rem;
    text-align: center;
    outline: none;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#rp-day-input:focus {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    transform: scale(1.05);
}

.reading-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.reading-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    padding: 2.5rem;
    min-height: auto;
    position: relative;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.reading-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.reading-card[data-type="ot"]::before { background: var(--ot-accent); box-shadow: 0 0 15px var(--ot-accent); }
.reading-card[data-type="nt"]::before { background: var(--nt-accent); box-shadow: 0 0 15px var(--nt-accent); }
.reading-card[data-type="wisdom"]::before { background: var(--wisdom-accent); box-shadow: 0 0 15px var(--wisdom-accent); }

.reading-content {
    flex: 1;
}

.reading-card .card-tag {
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.reading-card h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.read-now-btn {
    background: var(--accent-light);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 1rem 2.5rem;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
}

.read-now-btn:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

@media (max-width: 800px) {
    .reading-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .nav-controls {
        gap: 2rem;
    }
    
    #rp-day-input {
        font-size: 2.5rem;
        width: 100px;
    }
    
    .read-now-btn {
        width: 100%;
    }
}

/* View Sections */
.view-section {
    display: block;
    animation: fadeIn 0.4s ease;
}

.view-section.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* Base Components */
main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pulse-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.card-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.devotional-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.devotional-nav-header .card-tag {
    margin-bottom: 0;
}

.dev-nav-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Larger font size for &lsaquo; */
    line-height: 0;
    padding: 0;
    transition: all 0.3s ease;
    font-family: Arial, sans-serif; /* Explicitly use a font with good centering for symbols */
}

.dev-nav-btn:hover {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.verse-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    text-align: center;
}

.verse-card h2 {
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.reference {
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.explanation {
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-color);
}
.explanation strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.devotional-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #e2e8f0;
}
.devotional-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.challenge-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: none; /* Let the ::before handle the left accent */
    border-radius: 12px;
    padding: 1.8rem;
    margin-top: 1.5rem;
}

/* Collapsible Subjects */
.subject-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.subject-header .card-tag {
    margin-bottom: 0;
}
.subject-header .chevron {
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}
.subject-content {
    margin-top: 1rem;
    animation: fadeIn 0.3s ease;
}

.challenge-card {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.challenge-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: #00df9a; /* Vibrant green accent bar from reference */
}

.challenge-card .card-tag {
    color: #00df9a;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 1.2rem;
    display: block;
    text-transform: uppercase;
}

#challenge-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
}

#challenge-content p:last-child {
    margin-bottom: 0;
}

.prayer-card p {
    font-style: italic;
    color: #e2e8f0;
}

/* Bible 3-Pane Layout */
/* Bible 3-Pane Layout */
.bible-layout {
    display: flex;
    height: calc(100vh - 100px); /* Fill remaining height */
    margin: 0 1rem 1rem 1rem;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.custom-scrollbar {
    overflow-y: auto;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.bible-sidebar-pane {
    width: 250px;
    display: flex;
    border-right: 1px solid var(--border-color);
}

.bible-list-container {
    flex: 3;
    display: flex;
    flex-direction: column;
}
.bible-list-container.narrow {
    flex: 1;
    border-left: 1px solid var(--border-color);
}

.list-header {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 700;
    padding: 1rem 0.8rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.1);
}

.bible-list {
    list-style: none;
    flex: 1;
    height: 0; 
    padding: 0.5rem;
}
.bible-list li {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 2px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.bible-list li:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
}
.bible-list li.active {
    background: rgba(56, 189, 248, 0.2);
    color: var(--text-primary);
    font-weight: 600;
}

.bible-reader-pane {
    flex: 1;
    position: relative;
    padding: 2rem;
    border-right: 1px solid var(--border-color);
}

.bible-context-pane {
    width: 300px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.context-content {
    padding: 1.5rem;
    flex: 1;
    font-size: 0.95rem;
    color: #e2e8f0;
}
.context-placeholder {
    font-style: italic;
    color: var(--text-secondary);
}
.context-title {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Floating Context Popup Button */
.context-popup-btn {
    position: absolute;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 200;
    transform: translate(-50%, -120%);
    transition: opacity 0.2s;
}
.context-popup-btn.hidden {
    display: none;
}

.bible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.bible-header h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
}
.bible-version-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.bible-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #e2e8f0;
}
.bible-verse {
    margin-bottom: 1.2rem;
    padding-left: 0.5rem;
    line-height: 1.7;
}
.bible-content p:last-child {
    margin-bottom: 0;
}
.verse-ref-tag {
    color: var(--accent-color);
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Reading plan verse range highlight */
.verse-highlight {
    background: rgba(245, 158, 11, 0.12);
    border-left: 3px solid var(--ot-accent);
    border-radius: 6px;
    padding-left: 0.75rem !important;
    margin-left: -0.75rem;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.08);
    animation: verse-glow-in 0.5s ease forwards;
}

.verse-highlight .verse-ref-tag {
    color: var(--ot-accent);
}

@keyframes verse-glow-in {
    from {
        background: rgba(245, 158, 11, 0.0);
        border-left-color: transparent;
    }
    to {
        background: rgba(245, 158, 11, 0.12);
        border-left-color: var(--ot-accent);
    }
}

.bible-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

@media (max-width: 1024px) {
    .bible-layout {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }
    .bible-sidebar-pane {
        width: 100%;
        height: 250px;
    }
    .bible-context-pane {
        width: 100%;
        height: 300px;
    }
}

/* Buttons */
.complete-btn {
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
    margin-top: 1rem;
}
.complete-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}
.complete-btn:disabled {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
}
.secondary-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
}
.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Devotional Action Buttons */
.devotional-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.devotional-actions .complete-btn,
.devotional-actions .new-creation-btn {
    flex: 1;
    margin-top: 0;
}

.new-creation-btn {
    background: linear-gradient(135deg, #059669, #0ea5e9);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.new-creation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5);
}

.new-creation-btn:active {
    transform: translateY(0);
}

.new-creation-btn:disabled {
    background: #475569;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Modal Content Adjustments for New Creation */
.new-creation-modal-content {
    max-width: 950px !important;
    width: 95%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    padding: 3rem !important;
    text-align: center !important; /* Center the header/footer */
}

.new-creation-modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.new-creation-modal-header h2 {
    margin-bottom: 0.5rem !important;
    color: var(--accent-color) !important;
    font-size: 2.2rem;
}

.new-creation-modal-header .close-modal-x {
    position: absolute;
    right: -1rem;
    top: -1.5rem;
}

.new-creation-scroll {
    overflow-y: auto;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.declaration-text {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #cbd5e1;
    max-width: 750px; /* Optimal reading width */
    margin: 0 auto;
    text-align: left; /* Keep text left-aligned for readability */
    text-wrap: pretty; /* Prevents orphaned words at end of lines */
    orphans: 3;
    widows: 3;
}

.declaration-text p {
    margin-bottom: 2rem;
}

.declaration-text strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .devotional-actions {
        flex-direction: column;
    }
}


/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.modal.hidden {
    opacity: 0;
    pointer-events: none;
}
.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(1);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.modal.hidden .modal-content {
    transform: scale(0.9);
}
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.modal-content h2 { color: var(--success-color); margin-bottom: 0.5rem; }
.modal-content p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* Responsive Mobile */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .sidebar-overlay.open {
        display: block;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Test View Styles */
.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.quiz-score {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
}
.quiz-settings {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.quiz-question {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.4;
    color: #e2e8f0;
}
.quiz-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quiz-option-btn {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.quiz-option-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}
.quiz-option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
.quiz-option-btn.correct {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}
.quiz-option-btn.wrong {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.quiz-input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}
.quiz-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.2s;
}
.quiz-input:focus {
    border-color: var(--accent-color);
}
.quiz-input:disabled {
    opacity: 0.7;
}

.quiz-feedback {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}
.quiz-feedback.correct {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}
.quiz-feedback.wrong {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

@media (max-width: 600px) {
    .quiz-options-grid { grid-template-columns: 1fr; }
    .quiz-input-container { flex-direction: column; }
}

/* Bible Help Grid */
#view-bible-help .app-container,
#view-prayers .app-container,
#view-foundations .app-container {
    max-width: 1000px; /* Wider for 3-column layout */
    padding-top: 0.5rem;
}





/* Bible Help Groups */
.section-header {
    text-align: center;
    margin: 0 auto 1rem;



    max-width: 700px;
    animation: fadeIn 0.8s ease;
}

.section-header .card-tag {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0.8;
}

.search-container {
    display: flex;
    align-items: center;
    position: relative;
    max-width: 600px;
    margin: 2rem auto 0;
    background: rgba(15, 23, 42, 0.6);
    border: 2px solid var(--border-color);
    border-radius: 40px;
    padding: 2px 6px 2px 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    animation: fadeIn 1s ease 0.3s backwards;
}

.search-container:focus-within {
    border-color: var(--accent-color);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 0 30px var(--accent-glow), inset 0 0 10px rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

#bible-help-search {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-right: 0.5rem;
}

.search-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-action-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.2rem;
}

.search-trigger {
    font-size: 1.2rem;
    opacity: 0.6;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-container:focus-within .search-trigger {
    opacity: 1;
    color: var(--accent-color);
    transform: scale(1.1);
}

.search-action-btn.hidden {
    display: none;
}

.bible-help-container {
    width: 100%;
    margin-top: 0;


}


/* Removed help-group styles as the groups have been simplified into a flat grid */


.bible-help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 1rem;
    position: relative;
    transition: all 0.3s ease;
}


.help-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    position: relative;
    overflow: hidden;
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, opacity 0.3s ease;
    cursor: grab;
    user-select: none;
}

.help-card:active {
    cursor: grabbing;
}

.help-card.dragging {
    opacity: 0.4;
    transform: scale(0.95);
    border-style: dashed;
}

.help-card.drag-over {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    transform: scale(1.02);
}

.help-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #f1f5f9;
}

.help-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.help-action-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.help-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.help-card:hover .help-action-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow);
}

.purity-card { border-top-color: #38bdf8 !important; }
.discipline-card { border-top-color: #10b981 !important; }
.fear-card { border-top-color: #f59e0b !important; }
.identity-card { border-top-color: #818cf8 !important; }
.gratitude-card { border-top-color: #fb923c !important; }
.nature-card { border-top-color: #c084fc !important; }
.love-card { border-top-color: #f43f5e !important; }
.loneliness-card { border-top-color: #64748b !important; }
.faith-card { border-top-color: #0ea5e9 !important; }
.discernment-card { border-top-color: #2dd4bf !important; }

/* Help Modal — New Verse List Design */
.help-modal-content {
    max-width: 720px;
    max-height: 90vh;
    width: 95vw;
    text-align: left;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 24px;
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 2rem 2rem 0.5rem;
    gap: 1rem;
    flex-shrink: 0;
}

.help-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.4rem 0 0;
    color: var(--text-primary);
}

.help-modal-subtitle {
    padding: 0 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.8;
    flex-shrink: 0;
    margin: 0;
}

/* Custom Scrollbar for Help Modal */
.help-modal-content::-webkit-scrollbar { width: 6px; }
.help-modal-content::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 10px; }
.help-modal-content::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 10px; }
.help-modal-content::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* Verse List Scroll Container */
.help-verses-list {
    overflow-y: auto;
    padding: 0 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
    min-height: 0;
}

.help-verses-list::-webkit-scrollbar { width: 5px; }
.help-verses-list::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); border-radius: 8px; }
.help-verses-list::-webkit-scrollbar-thumb { background: var(--accent-light); border-radius: 8px; }
.help-verses-list::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

/* Each accordion verse card */
.help-verse-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.help-verse-card.open {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.08);
}

/* Verse toggle button (the header row you click) */
.help-verse-toggle {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.2s ease;
}

.help-verse-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
}

.help-verse-num {
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

.help-verse-toggle-text {
    flex: 1;
    min-width: 0;
}

.help-verse-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.help-verse-card.open .help-verse-quote {
    -webkit-line-clamp: unset;
    overflow: visible;
}

.help-verse-ref {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 0.3rem;
    letter-spacing: 0.5px;
}

.help-verse-chevron {
    color: var(--text-secondary);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

.help-verse-card.open .help-verse-chevron {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent-color);
}

/* Expanded Detail Panel */
.help-verse-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.help-verse-card.open .help-verse-detail {
    max-height: 800px;
}

.help-verse-detail-inner {
    padding: 0 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Divider between toggle and detail */
.help-verse-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0 1.5rem 1rem;
    opacity: 0.5;
}

/* Detail Sections: context, meaning, application, prayer */
.hv-section {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border-left: 3px solid;
}

.hv-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hv-section-text {
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.hv-context {
    background: rgba(16, 185, 129, 0.07);
    border-left-color: #10b981;
}
.hv-context .hv-section-label { color: #10b981; }
.hv-context .hv-section-text { color: #a7f3d0; }

.hv-meaning {
    background: rgba(56, 189, 248, 0.07);
    border-left-color: #38bdf8;
}
.hv-meaning .hv-section-label { color: #38bdf8; }
.hv-meaning .hv-section-text { color: #bae6fd; }

.hv-application {
    background: rgba(251, 146, 60, 0.07);
    border-left-color: #fb923c;
}
.hv-application .hv-section-label { color: #fb923c; }

.hv-application-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.hv-application-item {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    color: #fed7aa;
    font-size: 1rem;
    line-height: 1.6;
}

.hv-app-bullet {
    color: #fb923c;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.hv-prayer {
    background: rgba(129, 140, 248, 0.08);
    border-left-color: #818cf8;
}
.hv-prayer .hv-section-label { color: #818cf8; }
.hv-prayer .hv-section-text { color: #c7d2fe; font-style: italic; }

@media (max-width: 900px) {
    .bible-help-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    .bible-help-grid { grid-template-columns: 1fr; }
    .help-modal-content { width: 100vw; border-radius: 20px 20px 0 0; max-height: 95vh; }
    .help-modal-header { padding: 1.5rem 1.5rem 0.5rem; }
    .help-modal-subtitle { padding: 0 1.5rem 0.8rem; }
    .help-verses-list { padding: 0 1rem 1.5rem; }
    .help-verse-toggle { padding: 1rem 1.25rem; }
    .help-verse-detail-inner { padding: 0 1.25rem 1.25rem; }
    .help-verse-divider { margin: 0 1.25rem 0.8rem; }
}

/* Rest with God View Styles */
.rest-card {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.rest-mode-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mode-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.mode-btn.active {
    background: var(--accent-light);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.rest-display-container {
    margin: 2rem 0;
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.time-display {
    font-size: 5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
}

.timer-input-wrapper {
    margin-top: 1rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.timer-input {
    width: 100px;
    text-align: center;
    font-size: 1.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}

.timer-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-glow);
}

.rest-controls {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.rest-controls .complete-btn {
    min-width: 120px;
}

.rest-instruction {
    margin-top: 3rem;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .time-display {
        font-size: 4rem;
    }
}

/* Sidebar User Profile (Bottom) */
.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    background: rgba(15, 23, 42, 0.4);
    transition: all 0.3s ease;
}

.sidebar-user:hover {
    background: rgba(56, 189, 248, 0.1);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 0 10px var(--accent-glow);
}

.user-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.7rem;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success-color);
    border-radius: 50%;
    display: inline-block;
}

.chevron-icon {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Profile View Styles */
.profile-header-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    padding: 2.5rem;
}

.profile-header-flex {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.large-avatar {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    background: linear-gradient(135deg, #38bdf8, #818cf8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 800;
    box-shadow: 0 0 30px var(--accent-glow);
}

.profile-info-edit {
    flex: 1;
}

.name-edit-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

#profile-name-input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    width: 100%;
    max-width: 300px;
    outline: none;
    transition: all 0.3s ease;
}

#profile-name-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(0, 0, 0, 0.5);
}

.save-icon-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.profile-since {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.post-creator-card textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    margin: 1rem 0;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
}

.post-creator-card textarea:focus {
    border-color: var(--accent-color);
    background: rgba(0, 0, 0, 0.3);
}

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

/* Posts Feed */
.posts-feed {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    animation: fadeIn 0.4s ease;
}

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

.post-date {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 700;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.post-content {
    color: #cbd5e1;
    line-height: 1.6;
    font-size: 1.05rem;
}

.highlight {
    background: linear-gradient(120deg, rgba(56, 189, 248, 0.1), rgba(129, 140, 248, 0.1));
    color: var(--accent-color);
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    font-weight: 600;
    font-style: italic;
    border: 1px solid rgba(56, 189, 248, 0.1);
}

@media (max-width: 600px) {
    .profile-header-flex {
        flex-direction: column;
        text-align: center;
    }
    .name-edit-group {
        flex-direction: column;
    }
    #profile-name-input {
        max-width: 100%;
    }
}

/* Profile Picture Styles */
.avatar-upload-container {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.avatar-upload-container .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
}

.avatar-upload-container:hover .avatar-overlay {
    opacity: 1;
}

.user-avatar img, .large-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-action-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    align-items: center;
}

/* Reset Buttons */
.quiz-score-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.reset-mini-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.reset-mini-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
    transform: rotate(-45deg);
}

.reset-danger-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
    border-color: #ef4444 !important;
}

/* Faith Foundations Styles */
.foundations-header {
    margin-bottom: 2.5rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
}

.header-actions .secondary-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.foundations-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.foundation-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.foundation-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s;
}

.foundation-group-header:hover {
    border-bottom-color: var(--accent-color);
}

.foundation-group-title-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.foundation-group-collapse-icon {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.group-collapsed .foundation-group-collapse-icon {
    transform: rotate(-90deg);
}

.foundation-group-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 5000px;
    opacity: 1;
    overflow: visible;
}

.group-collapsed .foundation-group-cards-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.foundation-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.foundation-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.foundation-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.foundation-card.expanded {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    background: rgba(30, 41, 59, 0.9);
}

.foundation-card-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.foundation-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.foundation-card-content {
    display: none; /* Hide since we use modal now */
}

.foundation-card-content p {
    margin-top: 0.5rem;
}

/* Edit Mode Styles */
.edit-mode .foundation-group-title {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--accent-color);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    cursor: text;
}

.foundation-item-actions {
    display: flex;
    gap: 0.5rem;
}

.mini-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

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

.delete-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.foundations-admin-controls {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.foundation-edit-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.foundation-edit-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--accent-color);
    color: var(--text-secondary);
    padding: 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.group-actions-footer {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.add-card-btn {
    background: rgba(56, 189, 248, 0.1);
    border: 1px dashed var(--accent-color);
    color: var(--accent-color);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.add-card-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.foundation-card-edit-overlay {
    padding: 1.5rem;
    background: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edit-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Foundation Modal Custom Styles */
.foundation-modal-content {
    max-width: 800px;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.foundation-modal-header {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.foundation-modal-header h2 {
    margin-top: 0.5rem;
    font-size: 1.8rem;
    color: var(--accent-color);
}

.close-modal-x {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.foundation-modal-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.foundation-blended-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    font-size: 1.1rem;
    white-space: pre-wrap;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.followups-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.followup-item {
    background: rgba(15, 23, 42, 0.4);
    border-left: 3px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.followup-header {
    padding: 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.followup-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.followup-question-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.followup-toggle-icon {
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.followup-item.expanded .followup-toggle-icon {
    transform: rotate(180deg);
}

.followup-asker-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.followup-question {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.followup-answer-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.followup-item.expanded .followup-answer-container {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.followup-answer {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Colors for asker types */
.followup-item.asker-atheist { border-left-color: #ef4444; }
.followup-item.asker-atheist .followup-asker-tag { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.followup-item.asker-christian { border-left-color: #38bdf8; }
.followup-item.asker-christian .followup-asker-tag { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.followup-item.asker-seeker { border-left-color: #f59e0b; }
.followup-item.asker-seeker .followup-asker-tag { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.foundation-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
}

/* Christian Songs View Styles */
#view-songs .app-container {
    max-width: none;
    padding-left: 0;
    padding-right: 1.5rem;
}

.songs-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.songs-view-controls {
    justify-self: start;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.3rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.header-spacer {
    width: 100%;
}

.mini-mode-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-mode-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 10px var(--accent-glow);
}

#fav-count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
}

.song-search-box {
    display: flex;
    gap: 1rem;
    margin: 0 auto 2rem;
    max-width: 800px;
    padding: 1rem;
    background: var(--card-bg);
}

#song-search-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

#song-search-input:focus {
    border-color: var(--accent-color);
}

.songs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-bottom: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.song-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.song-card:hover {
    background: rgba(30, 41, 59, 0.7);
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.song-card.playing {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.song-artwork {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.song-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artwork-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
}

.song-card:hover .artwork-overlay,
.song-card.playing .artwork-overlay {
    opacity: 1;
}

.play-icon-btn {
    width: 36px;
    height: 36px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px var(--accent-glow);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.song-artist {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fav-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.2s;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fav-icon-btn:hover {
    color: #ef4444;
    transform: scale(1.2);
}

.fav-icon-btn.active {
    color: #ef4444;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.loading-placeholder {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0.6;
}

.no-results {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    text-align: center;
    opacity: 0.6;
}

@media (max-width: 600px) {
    .songs-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .songs-view-controls {
        width: 100%;
        justify-self: center;
    }
    
    .header-spacer {
        display: none;
    }
    
    .mini-mode-btn {
        flex: 1;
        justify-content: center;
    }
    
    .song-search-box {
        flex-direction: column;
    }
    
    .songs-grid {
        grid-template-columns: 1fr;
    }
}

/* Music Player Bar Styling */
.player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.player-bar.hidden {
    transform: translateY(100%);
    display: none;
}

.player-bar-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    cursor: pointer;
}

.player-mini-artwork {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.player-mini-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-text {
    min-width: 0;
}

.player-title {
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.player-artist {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    justify-content: center;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-btn:hover {
    color: var(--text-primary);
    transform: scale(1.1);
}

.player-btn.active {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

.player-play-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.player-play-btn:hover {
    transform: scale(1.1);
}

.player-extra {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    justify-content: flex-end;
    padding-right: 1.5rem;
    min-width: 210px;
}

.player-volume-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 150px;
}

.player-slider {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    cursor: pointer;
}

/* Progress bar at the top of the bar */
.player-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.05);
    cursor: pointer;
}

.player-progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* Full Modal Styling */
.music-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Standard dark backdrop */
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

.music-modal.visible {
    opacity: 1;
    pointer-events: auto;
}

.music-modal-content {
    width: 90%;
    max-width: 500px;
    background: #1e293b; /* Solid background matching existing cards */
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.music-modal.visible .music-modal-content {
    transform: scale(1);
}

.close-music-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal-artwork-section {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-artwork-container {
    width: 100%;
    height: 100%;
    max-height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.05);
}

.modal-artwork-container.buffering::after {
    content: 'Buffering...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    animation: pulse-buffering 1.5s infinite;
    z-index: 5;
}

@keyframes pulse-buffering {
    0% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.95); }
}

.modal-artwork-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info-section h1 {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    text-align: center;
    color: var(--text-primary);
}

.modal-artist {
    font-size: 1.1rem;
    color: var(--accent-color);
    text-align: center;
    margin-bottom: 2rem;
}

.modal-progress-section {
    margin-bottom: 2rem;
}

.modal-time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.modal-progress-container {
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.modal-progress-rail {
    position: absolute;
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.modal-progress-fill {
    position: absolute;
    height: 6px;
    background: linear-gradient(90deg, var(--accent-color), #818cf8);
    border-radius: 3px;
    width: 0%;
}

.modal-range {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
}

.modal-controls-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.modal-btn.secondary {
    color: var(--text-secondary);
    font-size: 1.3rem;
}

.modal-btn.active {
    color: var(--accent-color) !important;
    text-shadow: 0 0 15px var(--accent-glow);
}

.modal-play-btn {
    width: 80px;
    height: 80px;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 40px var(--accent-glow);
}

.modal-footer-section {
    display: flex;
    justify-content: center;
}

.modal-volume-control {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 80%;
    color: var(--text-secondary);
}

.volume-range {
    flex: 1;
    opacity: 1;
    height: 4px;
}

@media (max-width: 600px) {
    .player-bar-content {
        padding: 0 1.2rem;
    }
    .player-controls {
        gap: 1rem;
    }
    .control-shuffle, .control-repeat, .player-extra {
        display: none;
    }
    .player-info {
        flex: 2;
    }
    .music-modal-content {
        gap: 1.5rem;
    }
}

/* Thinking Animation */
.thinking-spinner {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    height: 1.5rem;
}

.thinking-spinner span {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    animation: thinking-bounce 1.4s infinite ease-in-out both;
}

.thinking-spinner span:nth-child(1) { animation-delay: -0.32s; }
.thinking-spinner span:nth-child(2) { animation-delay: -0.16s; }

@keyframes thinking-bounce {
    0%, 80%, 100% { transform: scale(0); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

/* =============================================
   SPIRITUAL BOOKS PAGE
   ============================================= */

/* Widen the container for the books page */
.spiritual-books-container {
    max-width: 900px;
}

.books-library {
    width: 100%;
}

/* 3-column grid for book cards */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Individual Book Card */
.book-card {
    position: relative;
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    backdrop-filter: blur(10px);
}

/* Animated colour glow behind the card */
.book-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 50% 0%, var(--book-glow, rgba(56,189,248,0.25)), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.book-card:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--book-color, #38bdf8);
    box-shadow: 0 20px 50px -10px var(--book-glow, rgba(56,189,248,0.3));
}

.book-card:hover .book-card-glow {
    opacity: 1;
}

/* Book icon circle */
.book-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.book-card:hover .book-icon-wrap {
    transform: scale(1.12) rotate(-4deg);
}

.book-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.book-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.book-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Read Now button inside each card */
.book-read-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.book-read-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

/* ── PDF Reader ── */
.book-reader {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px - 4rem);
    min-height: 500px;
    overflow: hidden;
}

.book-reader-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.book-back-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    padding: 0.55rem 1.1rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.book-back-btn:hover {
    background: rgba(56,189,248,0.1);
    border-color: rgba(56,189,248,0.4);
    color: var(--accent-color);
    transform: translateX(-3px);
}

.book-reader-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.book-reader-spacer {
    flex: 1;
}

/* ── PDF Controls bar ── */
.pdf-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 0.6rem 1rem;
    margin-bottom: 0.8rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    backdrop-filter: blur(8px);
}

.pdf-nav-btn {
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.3);
    color: var(--accent-color);
    padding: 0.45rem 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.pdf-nav-btn:hover:not(:disabled) {
    background: rgba(56,189,248,0.2);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(56,189,248,0.2);
}

.pdf-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pdf-page-info {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    min-width: 110px;
    text-align: center;
}

.pdf-page-info span {
    color: var(--text-primary);
    font-weight: 700;
}

/* ── Scrollable canvas area ── */
.pdf-canvas-container {
    flex: 1;
    overflow-y: auto;
    background: #3a3a3a;
    border-radius: 14px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem;
    box-shadow: inset 0 4px 20px rgba(0,0,0,0.5);
    min-height: 0;
}

.pdf-canvas {
    display: block;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

.pdf-canvas.dark-mode {
    filter: invert(1) hue-rotate(180deg);
}

/* ── Loading spinner ── */
.pdf-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4rem 2rem;
}

.pdf-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(56,189,248,0.2);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: pdf-spin 0.8s linear infinite;
}

@keyframes pdf-spin {
    to { transform: rotate(360deg); }
}

/* ── FAITH FOUNDATIONS NEW UI ── */
.foundation-detail-hero {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, rgba(30,41,59,0.5), rgba(15,23,42,0.8));
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 3rem;
}

.foundation-detail-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(255,215,0,0.3));
}

#foundation-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.foundation-verse-quote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--accent-color);
    margin: 1.5rem auto;
    max-width: 600px;
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(56,189,248,0.05);
    border-radius: 0 12px 12px 0;
}

.foundation-explanation {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

.foundation-topics-header {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 700px) {
    .books-grid {
        grid-template-columns: 1fr;
    }
    .book-reader {
        height: calc(100vh - 80px - 2rem);
    }
}


/* ── Foundation Article / Detail View ── */
.foundation-content-body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    padding-bottom: 4rem;
}

/* ── Foundation Outline Header (section title) ── */
.apologetics-outline-header {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ── General paragraph text ── */
.apologetics-outline-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 0.85rem;
}

/* The bold lead-in sentence */
.apologetics-outline-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* The standalone verse quote paragraph — gets a subtle left accent */
.apologetics-outline-text em {
    color: #94a3b8;
    font-style: italic;
}

/* Bible reference tag */
.apologetics-bible-ref {
    font-weight: 700;
    color: var(--accent-color);
    font-style: normal;
    font-size: 0.9em;
    white-space: nowrap;
}

/* Application bullet list */
.apologetics-outline-list {
    list-style-type: none;
    margin-left: 0;
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.apologetics-outline-list > li {
    padding: 0.85rem 1.1rem;
    border-left: 3px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.04);
    border-radius: 0 8px 8px 0;
}

.apologetics-outline-list ul {
    list-style-type: lower-alpha;
    margin-left: 2rem;
    margin-top: 0.8rem;
}

.apologetics-outline-list ul li {
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.98rem;
    border: none;
    padding: 0;
    background: none;
}

.foundation-coming-soon {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
    font-size: 1.05rem;
}

/* -- ENGAGEMENT CLICKABLE CARDS -- */
.engagement-card {
    padding: 1rem 1.2rem;
    border-left: 3px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.04);
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.engagement-card:hover {
    border-left-color: var(--accent-color);
    background: rgba(56, 189, 248, 0.09);
    transform: translateX(4px);
    box-shadow: -4px 0 20px rgba(56,189,248,0.12);
}

.engagement-card-text {
    flex: 1;
    font-size: 1.0rem;
    line-height: 1.75;
    color: var(--text-secondary);
}

.engagement-card-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.engagement-card-arrow {
    color: var(--accent-color);
    font-size: 1.1rem;
    flex-shrink: 0;
    opacity: 0;
    transition: all 0.25s ease;
    align-self: center;
}

.engagement-card:hover .engagement-card-arrow {
    opacity: 1;
    transform: translateX(3px);
}

/* -- ENGAGEMENT DETAIL PAGE -- */
#engagement-detail-view {
    animation: fadeSlideIn 0.3s ease forwards;
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.engagement-objection-hero {
    background: linear-gradient(135deg, rgba(30,41,59,0.7), rgba(15,23,42,0.9));
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
}

.engagement-persona-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f59e0b;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 6px;
    padding: 0.2rem 0.65rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.engagement-objection-quote {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.45;
    margin-bottom: 1rem;
}

.engagement-core-issue {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.engagement-section-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.engagement-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.07);
}

.engagement-responses { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }

.engagement-response-card {
    background: rgba(30,41,59,0.5);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.engagement-response-card:hover { border-color: rgba(56,189,248,0.2); }

.engagement-response-num {
    position: absolute; top: 1rem; right: 1.2rem;
    font-size: 2.5rem; font-weight: 900; color: rgba(255,255,255,0.04);
    line-height: 1; user-select: none;
}

.engagement-response-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.engagement-response-text { font-size: 0.98rem; line-height: 1.8; color: var(--text-secondary); }

.engagement-verses { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.engagement-verse-card {
    background: rgba(56,189,248,0.05);
    border: 1px solid rgba(56,189,248,0.15);
    border-radius: 14px; padding: 1.3rem 1.5rem;
    display: flex; gap: 1.2rem; align-items: flex-start;
}

.engagement-verse-ref { font-size: 0.8rem; font-weight: 800; color: var(--accent-color); white-space: nowrap; letter-spacing: 0.05em; padding-top: 0.15rem; min-width: 80px; }
.engagement-verse-text { font-size: 1rem; color: #e2e8f0; font-style: italic; line-height: 1.7; margin-bottom: 0.4rem; }
.engagement-verse-relevance { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.6; }

.engagement-analogies { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }

.engagement-analogy-card {
    background: rgba(167,139,250,0.05);
    border: 1px solid rgba(167,139,250,0.15);
    border-radius: 14px; padding: 1.3rem 1.5rem;
}

.engagement-analogy-title { font-size: 0.88rem; font-weight: 700; color: #a78bfa; margin-bottom: 0.6rem; }
.engagement-analogy-text { font-size: 0.97rem; line-height: 1.8; color: var(--text-secondary); }

.engagement-closing {
    background: linear-gradient(135deg, rgba(16,185,129,0.08), rgba(56,189,248,0.05));
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 14px; padding: 1.5rem; margin-bottom: 3rem;
}

.engagement-closing-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #10b981; margin-bottom: 0.6rem; }
.engagement-closing-text { font-size: 1rem; line-height: 1.8; color: #cbd5e1; }

/* ============================================================
   REVELATIONS JOURNAL
   ============================================================ */

/* Section header — normal (no flex needed, arrows are below) */
#view-journal .section-header {
    margin-bottom: 0;
}

.journal-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.3rem;
}

/* Centered New Entry wrapper */
.journal-new-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.journal-new-wrapper .journal-new-card {
    width: 175px;
}

/* Pagination arrows — centered below the grid */
.journal-nav-arrows {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.journal-arrow-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-secondary);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    line-height: 1;
}

.journal-arrow-btn:hover:not(:disabled) {
    background: rgba(255,255,255,0.13);
    color: var(--text-primary);
    border-color: rgba(56,189,248,0.3);
}

.journal-arrow-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Card grid */
.journal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.2rem;
    padding-bottom: 2rem;
}

/* NEW ENTRY card */
.journal-new-card {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 18px;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    user-select: none;
}

.journal-new-card:hover {
    background: rgba(56,189,248,0.06);
    border-color: rgba(56,189,248,0.35);
    color: var(--text-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(56,189,248,0.1);
}

.journal-new-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,0.35);
    transition: all 0.25s ease;
    line-height: 1;
}

.journal-new-card:hover .journal-new-icon {
    border-color: rgba(56,189,248,0.5);
    color: rgba(56,189,248,0.8);
    background: rgba(56,189,248,0.08);
}

.journal-new-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Entry cards */
.journal-entry-card {
    background: rgba(30,41,59,0.75);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    min-height: 185px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.journal-entry-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.journal-entry-card:hover {
    border-color: rgba(16,185,129,0.35);
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.3);
}

.journal-entry-card:hover::before {
    opacity: 1;
}

.journal-card-date {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
}

.journal-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.journal-card-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    flex: 1;
}

.journal-card-book-icon {
    align-self: flex-end;
    font-size: 1rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.journal-entry-card:hover .journal-card-book-icon {
    opacity: 0.9;
}

/* Empty state */
.journal-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-secondary);
}

.journal-empty-state .empty-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.journal-empty-state p {
    font-size: 0.95rem;
}

/* ---- EDITOR MODAL ---- */
.journal-editor-content {
    max-width: 600px !important;
    width: 93% !important;
    text-align: left !important;
    padding: 2rem !important;
    background: linear-gradient(160deg, rgba(30,41,59,0.98), rgba(15,23,42,0.99)) !important;
    border: 1px solid rgba(16,185,129,0.25) !important;
    box-shadow: 0 30px 70px rgba(0,0,0,0.6) !important;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 90vh;
    overflow-y: auto;
}

.journal-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.journal-editor-header h2 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.journal-editor-date {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-top: -0.5rem;
}

.journal-entry-title-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    transition: border-color 0.2s ease;
    outline: none;
}

.journal-entry-title-input:focus {
    border-color: rgba(16,185,129,0.5);
    background: rgba(16,185,129,0.04);
}

.journal-entry-title-input::placeholder {
    color: rgba(255,255,255,0.25);
    font-weight: 400;
}

.journal-entry-body-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 180px;
    transition: border-color 0.2s ease;
    outline: none;
}

.journal-entry-body-input:focus {
    border-color: rgba(16,185,129,0.4);
    background: rgba(16,185,129,0.03);
}

.journal-entry-body-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.journal-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    align-items: center;
}

.journal-delete-btn {
    color: #f43f5e !important;
    border-color: rgba(244,63,94,0.35) !important;
}

.journal-delete-btn:hover {
    background: rgba(244,63,94,0.1) !important;
    border-color: rgba(244,63,94,0.6) !important;
}

/* ---- READER MODAL ---- */
.journal-reader-content {
    max-width: 650px !important;
    width: 93% !important;
    text-align: left !important;
    padding: 0 !important;
    background: linear-gradient(160deg, rgba(30,41,59,0.99), rgba(15,23,42,1)) !important;
    border: 1px solid rgba(16,185,129,0.2) !important;
    overflow: hidden !important;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.journal-reader-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(15,23,42,0.5);
    flex-shrink: 0;
}

.journal-reader-scroll {
    overflow-y: auto;
    padding: 2rem 1.8rem;
    flex: 1;
}

.journal-reader-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.journal-reader-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.journal-reader-body {
    font-size: 1rem;
    line-height: 1.85;
    color: #cbd5e1;
    white-space: pre-wrap;
}

.journal-reader-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(15,23,42,0.5);
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
}

/* Responsive */
@media (max-width: 600px) {
    .journal-cards-grid {
        grid-template-columns: 1fr 1fr;
    }
    .journal-new-card,
    .journal-entry-card {
        min-height: 155px;
    }
}

/* ============================================================
   MEDITATE VIEW
   ============================================================ */

#view-meditate {
    padding: 0;
    overflow: hidden;
}

.meditate-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
    padding: 1rem;
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(129, 140, 248, 0.08) 0%, transparent 60%),
                radial-gradient(ellipse at 50% 100%, rgba(56, 189, 248, 0.05) 0%, transparent 60%);
}

/* ── Video ── */
.meditate-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7),
                0 0 0 1px rgba(129, 140, 248, 0.15);
    animation: fade-up 0.9s 0.15s ease both;
    background: #000;
    flex-shrink: 0;
}

.meditate-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 100px);
    object-fit: cover;
    border-radius: 16px;
}

.meditate-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.meditate-video-overlay.hidden-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.meditate-unmute-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    background: rgba(129, 140, 248, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.45);
    color: white;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px rgba(0,0,0,0.4), 0 0 30px rgba(129, 140, 248, 0.2);
}

.meditate-unmute-btn:hover {
    background: rgba(129, 140, 248, 0.3);
    border-color: rgba(129, 140, 248, 0.8);
    transform: scale(1.06);
    box-shadow: 0 15px 50px rgba(0,0,0,0.5), 0 0 50px rgba(129, 140, 248, 0.35);
}

.meditate-unmute-icon {
    font-size: 2rem;
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.85; }
}

/* Responsive */
@media (max-width: 768px) {
    .meditate-container {
        padding: 0.5rem;
    }
    .meditate-video {
        max-height: calc(100vh - 90px);
    }
}
