/* =============================================
   Search in the Light - Main Stylesheet
   ============================================= */

:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #DBEAFE;
    --accent: #D4A843;
    --accent-dark: #B8922F;
    --accent-light: #FDF5E6;
    --bg: #FAFAF8;
    --surface: #FFFFFF;
    --text: #1A1A2E;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #16A34A;
    --success-bg: #DCFCE7;
    --error: #DC2626;
    --error-bg: #FEE2E2;
    --info: #2563EB;
    --info-bg: #DBEAFE;
    --star: #F59E0B;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: Georgia, 'Times New Roman', Times, serif;
    --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; }

/* ===================== NAVBAR ===================== */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.nav-logo {
    height: 36px;
    width: auto;
}
.nav-brand .brand-search { color: var(--primary); }
.nav-brand .brand-light { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0;
    transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.nav-links .btn { padding: 0.4rem 1rem; font-size: 0.85rem; color: white; }
.nav-links .btn:hover { color: white; }

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

/* ===================== HOMEPAGE HERO ===================== */
.home-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.5rem 2rem;
    text-align: center;
    flex: 1;
}

.home-logo {
    margin-bottom: 0.5rem;
}

.home-logo h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
}
.home-logo .logo-search { color: var(--primary); }
.home-logo .logo-light { color: var(--accent); }
.home-logo .logo-torch {
    height: 2.8rem;
    width: auto;
    vertical-align: middle;
    image-rendering: pixelated;
}

.home-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ===================== SEARCH BAR ===================== */
.search-form {
    width: 100%;
    max-width: 620px;
    margin-bottom: 1.5rem;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    border: 2px solid var(--border);
    border-radius: 50px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font);
    background: transparent;
    color: var(--text);
}

.search-input::placeholder { color: var(--text-light); }

.search-btn {
    border: none;
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
}
.search-btn:hover { background: var(--primary-dark); }

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-top: 4px;
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}
.search-suggestions.active { display: block; }

.search-suggestion-item {
    padding: 0.7rem 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9rem;
}
.search-suggestion-item:hover { background: var(--primary-light); }
.search-suggestion-item .suggestion-icon { color: var(--text-light); }

/* ===================== CATEGORY PILLS ===================== */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2rem;
    max-width: 700px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--surface);
    text-decoration: none;
    transition: all 0.2s;
}
.category-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.category-pill .pill-icon { font-size: 0.9rem; }

/* ===================== PROMO VIDEO ===================== */
.promo-video {
    width: 100%;
    max-width: 560px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.promo-video-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.promo-video-player {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
}

.promo-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(37, 99, 235, 0.85);
    border: 3px solid rgba(255,255,255,0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.promo-play-btn:hover {
    background: rgba(37, 99, 235, 1);
    transform: translate(-50%, -50%) scale(1.08);
}

@media (max-width: 600px) {
    .promo-video { max-width: 100%; }
    .promo-play-btn { width: 56px; height: 56px; }
    .promo-play-btn svg { width: 36px; height: 36px; }
}

/* ===================== HOMEPAGE SECTIONS ===================== */

/* Stats Banner */
.hp-stats-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e, #2563EB);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    max-width: 520px;
    width: 100%;
}
.hp-stat { display: flex; flex-direction: column; align-items: center; }
.hp-stat-num { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.hp-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.85; }
.hp-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,0.25); }

/* Find Church Near Me */
.hp-nearme { margin-bottom: 1.5rem; }
.hp-nearme-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.2s, transform 0.2s;
}
.hp-nearme-btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.hp-nearme-btn:disabled { opacity: 0.7; cursor: wait; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-spin { animation: hp-spin 1s linear infinite; }

/* Quick Action Cards */
.hp-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    max-width: 560px;
    width: 100%;
    margin-bottom: 2rem;
}
.hp-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.hp-action-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--primary);
}
.hp-action-icon { font-size: 1.6rem; }
.hp-action-text { font-size: 0.75rem; font-weight: 600; text-align: center; }

/* Below-hero container */
.hp-below-hero {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}
.hp-section { margin-bottom: 2.5rem; }
.hp-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}
.hp-section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 0.4rem auto 0;
    border-radius: 2px;
}

/* Trending Searches */
.hp-trending-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.hp-trending-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.8rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.hp-trending-pill:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.hp-trending-pill svg { flex-shrink: 0; }

/* Browse by State */
.hp-state-selector { text-align: center; }
.hp-state-selector select {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    min-width: 240px;
    transition: border-color 0.2s;
}
.hp-state-selector select:focus { border-color: var(--primary); outline: none; }

/* Featured Testimonial */
.hp-testimonial-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--accent);
}
.hp-testimonial-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.hp-testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.hp-testimonial-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.hp-testimonial-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.hp-testimonial-body {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}
.hp-testimonial-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* Community Section */
.hp-community-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.hp-community-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hp-community-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.hp-community-num { font-size: 2rem; font-weight: 800; color: var(--primary); }
.hp-community-label { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.hp-community-cta { font-size: 0.8rem; font-weight: 600; color: var(--primary); margin-top: auto; }

/* Streak Leaderboard */
.hp-streak-list { width: 100%; margin-bottom: 0.5rem; }
.hp-streak-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}
.hp-streak-rank { font-weight: 700; color: var(--accent); width: 1.5rem; text-align: right; }
.hp-streak-bar {
    height: 6px;
    background: linear-gradient(90deg, var(--accent), #e8c36a);
    border-radius: 3px;
    min-width: 8px;
    transition: width 0.5s;
}
.hp-streak-days { font-weight: 600; color: var(--text); white-space: nowrap; }

/* Recently Added Listings */
.hp-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.hp-recent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.hp-recent-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.hp-recent-icon { font-size: 1.3rem; margin-bottom: 0.25rem; }
.hp-recent-name { font-size: 0.8rem; font-weight: 600; line-height: 1.3; }
.hp-recent-loc { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Mobile responsive */
@media (max-width: 600px) {
    .hp-stats-banner {
        gap: 1rem;
        padding: 0.65rem 1.25rem;
        border-radius: var(--radius-lg);
    }
    .hp-stat-num { font-size: 1.1rem; }
    .hp-actions { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
    .hp-community-grid { grid-template-columns: 1fr; }
    .hp-recent-grid { grid-template-columns: repeat(2, 1fr); }
    .hp-state-selector select { min-width: 200px; }
}

/* ===================== DAILY VERSE ===================== */
.daily-verse {
    width: 100%;
    max-width: 620px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.daily-verse::before {
    content: '\201C';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 6rem;
    font-family: var(--font-serif);
    color: rgba(37, 99, 235, 0.08);
    line-height: 1;
}

.verse-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.verse-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-style: italic;
    position: relative;
}

.verse-reference {
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.verse-translation-select {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.verse-translation-select label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.verse-translation-select select {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.verse-share {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.verse-share-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.1rem;
}

.verse-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: var(--surface);
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
    text-decoration: none;
}

.verse-share-btn:hover {
    background: var(--primary);
    color: var(--surface);
}

.verse-share-btn svg {
    flex-shrink: 0;
}

.verse-loading {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Hero right sidebar (weather + news) */
.hero-sidebar {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    width: 300px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
/* News widget in hero sidebar */
.news-widget-item {
    display: block;
    padding: 0.5rem 0;
    text-decoration: none;
    transition: background 0.15s;
    border-radius: 4px;
}
.news-widget-item:hover { background: var(--primary-light); margin: 0 -0.3rem; padding: 0.5rem 0.3rem; }
.news-widget-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}
.news-widget-item:hover .news-widget-title { color: var(--primary); }
.news-widget-date {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 0.15rem;
}

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-danger {
    background: var(--error);
    color: white;
    border-color: var(--error);
}
.btn-danger:hover { background: #B91C1C; border-color: #B91C1C; color: white; }

.btn-sm { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-lg { padding: 0.8rem 1.6rem; font-size: 1rem; }

/* ===================== CARDS ===================== */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-featured {
    border-left: 4px solid var(--accent);
}

.result-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.result-card .card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
}

.result-card .card-body { flex: 1; }

.result-card .card-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.15rem;
}
.result-card .card-title a { text-decoration: none; }
.result-card .card-title a:hover { text-decoration: underline; }

.result-card .card-url {
    font-size: 0.8rem;
    color: var(--success);
    margin-bottom: 0.3rem;
}

.result-card .card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.result-card .card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.result-card .card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    background: var(--accent-light);
    color: var(--accent-dark);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Favorite button */
.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s;
    padding: 0.2rem;
}
.fav-btn:hover { color: var(--error); transform: scale(1.1); }
.fav-btn.favorited { color: var(--error); }

/* ===================== BUSINESS PROFILE ===================== */
.profile-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    position: relative;
}

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

.profile-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-lg);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }

.profile-info h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.profile-info .profile-category { opacity: 0.85; font-size: 0.9rem; }
.profile-info .profile-rating { margin-top: 0.3rem; }

.profile-verified {
    background: rgba(255,255,255,0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

.profile-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.profile-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.profile-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-light);
}

.profile-detail {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}
.profile-detail-icon { color: var(--primary); width: 20px; text-align: center; flex-shrink: 0; }
.profile-detail-value { color: var(--text-muted); }
.profile-detail-value a { color: var(--primary); }

.profile-hours { list-style: none; font-size: 0.85rem; }
.profile-hours li { padding: 0.3rem 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-light); }
.profile-hours li:last-child { border: none; }
.profile-hours .day { font-weight: 600; color: var(--text); }
.profile-hours .time { color: var(--text-muted); }

.social-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.7rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}
.social-link:hover { background: var(--primary); color: white; }

/* ===================== TORCH RATINGS ===================== */
.stars { display: inline-flex; gap: 1px; }
.star { font-size: 1rem; line-height: 1; }
.star.filled { opacity: 1; }
.star.half { opacity: 0.6; }
.star.empty { opacity: 0.2; filter: grayscale(1); }

.star-input-group { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input-group input { display: none; }
.star-input-group label {
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.2;
    filter: grayscale(1);
    line-height: 1;
}
.star-input-group label:hover,
.star-input-group label:hover ~ label,
.star-input-group input:checked ~ label {
    opacity: 1;
    filter: none;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.rating-number { font-size: 2rem; font-weight: 700; color: var(--text); }
.rating-details { font-size: 0.85rem; color: var(--text-muted); }

/* ===================== REVIEWS ===================== */
.review-card {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}
.review-card:last-child { border: none; }

.review-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}
.review-author { font-weight: 600; font-size: 0.9rem; }
.review-date { font-size: 0.8rem; color: var(--text-light); }

.review-title { font-weight: 600; margin-bottom: 0.3rem; font-size: 0.95rem; }
.review-body { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

.review-actions { margin-top: 0.5rem; }
.review-flag {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}
.review-flag:hover { color: var(--error); }

.report-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-alt, #F9FAFB);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

/* Site Report Button (on listing cards) */
.site-report-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.site-report-btn:hover {
    color: #EF4444;
    background: #FEF2F2;
}

/* ===================== FORMS ===================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-family: var(--font);
    color: var(--text);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

textarea.form-control { resize: vertical; min-height: 100px; }

select.form-control {
    appearance: auto;
    cursor: pointer;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.2rem;
}

.form-error {
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 0.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.form-check label { font-weight: 400; margin: 0; cursor: pointer; }

/* ===================== FLASH MESSAGES ===================== */
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    animation: flashIn 0.3s ease;
}

@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid #BBF7D0; }
.flash-error { background: var(--error-bg); color: var(--error); border: 1px solid #FECACA; }
.flash-info { background: var(--info-bg); color: var(--info); border: 1px solid #BFDBFE; }

.flash-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.7;
    padding: 0 0.25rem;
}
.flash-close:hover { opacity: 1; }

/* ===================== AUTH PAGES ===================== */
.auth-container {
    max-width: 440px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0;
    color: var(--text-light);
    font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ===================== DASHBOARD ===================== */
.dashboard-layout {
    max-width: var(--max-width);
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
}

.dashboard-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 0;
    height: fit-content;
    position: sticky;
    top: 76px;
}

.dashboard-sidebar a {
    display: block;
    padding: 0.6rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}
.dashboard-sidebar a:hover { background: var(--primary-light); color: var(--primary); }
.dashboard-sidebar a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-right: 3px solid var(--primary);
}

.dashboard-sidebar .sidebar-header {
    padding: 0.5rem 1.25rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    font-weight: 700;
}

.dashboard-main h1 {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

/* Dashboard stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}
.stat-card .stat-number { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Dashboard widget drag & drop */
.widget-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.dashboard-widget {
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.widget-drag-handle {
    display: none;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 26px;
    text-align: center;
    cursor: grab;
    z-index: 5;
    user-select: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.widget-drag-handle:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 6px rgba(37,99,235,0.3);
}
.widget-drag-handle:active { cursor: grabbing; }
.reorder-active .widget-drag-handle { display: block; }
.reorder-active .dashboard-widget {
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 0.5rem;
}
.widget-dragging {
    opacity: 0.9;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    transform: scale(1.02);
    pointer-events: none;
}
.widget-placeholder {
    border: 2px dashed var(--primary);
    border-radius: var(--radius-lg);
    background: var(--primary-light);
    margin-bottom: 0.5rem;
    transition: height 0.15s ease;
}

/* ===================== DIRECTORY ===================== */
.page-container {
    max-width: var(--max-width);
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
}
.page-header h1 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.page-header p { color: var(--text-muted); }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.category-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}
.category-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    color: var(--text);
}
.category-card .cat-icon { font-size: 2rem; }
.category-card .cat-name { font-weight: 600; }
.category-card .cat-count { font-size: 0.8rem; color: var(--text-muted); }

/* ===================== SEARCH RESULTS ===================== */
.search-results-layout {
    max-width: var(--max-width);
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 1.5rem;
}

.search-results-main { min-width: 0; }

.search-results-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}

.search-sidebar {
    height: fit-content;
    position: sticky;
    top: 76px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb-sep {
    color: var(--text-muted);
    font-size: 1rem;
}

.filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
}

.filter-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.filter-list { list-style: none; }
.filter-list li { margin-bottom: 0.4rem; }
.filter-list a {
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-muted);
}
.filter-list a:hover { background: var(--primary-light); color: var(--primary); }
.filter-list a.active { background: var(--primary); color: white; }

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.pagination .active { background: var(--primary); color: white; border-color: var(--primary); }
.pagination .ellipsis { border: none; color: var(--text-light); }
.pagination .disabled { opacity: 0.4; pointer-events: none; }

/* ===================== FOOTER ===================== */
.footer {
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-content { text-align: center; flex: 1; }

.footer-logo { text-align: center; }
.footer-logo img { border-radius: 50%; opacity: 0.85; transition: opacity 0.2s; }
.footer-logo img:hover { opacity: 1; }

.hit-counter {
    margin-top: 0.6rem;
    text-align: center;
}
.hit-counter-label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}
.hit-counter-digits {
    display: inline-flex;
    gap: 2px;
    background: #111;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #333;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}
.hit-digit {
    display: inline-block;
    width: 18px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 50%, #1a1a1a 100%);
    color: #33ff33;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 2px;
    border: 1px solid #222;
    text-shadow: 0 0 6px rgba(51, 255, 51, 0.5);
}

.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--primary); }

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
    list-style: none;
}

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; }
    .footer-logo { order: -1; }
    .footer-logo img { width: 70px; height: 70px; }
}

/* ===================== TABLES ===================== */
.table-wrapper { overflow-x: auto; }

table.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
table.table th {
    text-align: left;
    padding: 0.6rem 0.75rem;
    background: var(--border-light);
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}
table.table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-muted);
}
table.table tr:hover td { background: #FAFAFA; }

/* ===================== BADGES ===================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.4;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-accent { background: var(--accent-light); color: var(--accent-dark); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-error { background: var(--error-bg); color: var(--error); }

/* ===================== ERROR PAGES ===================== */
.error-page {
    text-align: center;
    padding: 4rem 1.5rem;
}
.error-page h1 {
    font-size: 5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.error-page h2 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.error-page p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* ===================== UTILITIES ===================== */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.85rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        box-shadow: var(--shadow-md);
    }
    .mobile-menu-btn { display: block; }

    .hero-sidebar {
        position: static;
        width: 100%;
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .home-logo h1 { font-size: 2rem; }
    .home-logo .logo-torch { height: 2rem; }

    .search-results-layout { grid-template-columns: 1fr; }
    .search-sidebar { position: static; }

    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }

    .profile-body { grid-template-columns: 1fr; }
    .profile-header-content { flex-direction: column; text-align: center; }

    .form-row { grid-template-columns: 1fr; }

    .category-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 480px) {
    .home-logo h1 { font-size: 1.6rem; }
    .home-logo .logo-torch { height: 1.6rem; }
    .home-tagline { font-size: 0.9rem; }
    .daily-verse { padding: 1rem 1.25rem; }
    .verse-text { font-size: 1rem; }
    .category-pills { gap: 0.3rem; }
    .category-pill { font-size: 0.75rem; padding: 0.25rem 0.6rem; }
    .prayer-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Prayer Wall
   ============================================= */

.prayer-wall-header {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-bottom: 1px solid var(--border);
}

.prayer-wall-header h1 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.prayer-wall-header .text-muted {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.prayer-verse {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0.75rem auto 1.25rem;
    line-height: 1.5;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.prayer-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.prayer-card:hover {
    box-shadow: var(--shadow-md);
}

.prayer-card.prayer-answered {
    border-left: 4px solid var(--accent);
}

.prayer-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.prayer-card-title:hover {
    color: var(--primary);
}

.prayer-card-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.75rem;
}

.prayer-card-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.prayer-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.pray-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-dark);
    background: var(--accent-light);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--font);
}

.pray-btn:hover:not(.prayed):not(:disabled) {
    background: var(--accent);
    color: #fff;
}

.pray-btn.prayed {
    background: var(--accent);
    color: #fff;
    cursor: default;
}

.pray-btn-lg {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.pray-count {
    font-weight: 700;
}

.prayer-comment-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
}

.prayer-comment-count:hover {
    color: var(--primary);
}

.prayer-badge-answered {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: var(--accent);
    color: #fff;
}

.prayer-badge-private {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: var(--text-muted);
    color: #fff;
}

.prayer-comment-card {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
}

.prayer-comment-card:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .prayer-wall-header { padding: 1.5rem 1rem; }
    .prayer-wall-header h1 { font-size: 1.4rem; }
    .prayer-grid { grid-template-columns: 1fr; }
}

/* =============================================
   Bible Studies
   ============================================= */

.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.study-card {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    position: relative;
    transition: box-shadow 0.2s;
}

.study-card:hover {
    box-shadow: var(--shadow-md);
}

.study-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.35rem;
}

.study-card-title:hover {
    color: var(--primary);
}

.study-card-body {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
    flex: 1;
    margin-bottom: 0.75rem;
}

.study-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.study-card-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: var(--font);
}

.register-btn:hover:not(.registered) {
    background: var(--primary);
    color: #fff;
}

.register-btn.registered {
    background: var(--success);
    color: #fff;
    border-color: var(--success);
    cursor: pointer;
}

.register-btn.registered:hover {
    background: var(--error);
    border-color: var(--error);
    color: #fff;
}

.participant-count {
    font-weight: 700;
}

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

/* =============================================
   Proximity / Near Me
   ============================================= */

.location-filter-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.location-filter-bar select {
    padding: 0.4rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
    min-width: 140px;
}

.location-filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-light);
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.distance-label {
    display: none;
    font-weight: 600;
    color: var(--primary);
    margin-left: 0.5rem;
    white-space: nowrap;
}

/* =============================================
   Testimonials
   ============================================= */

.testimonial-header {
    text-align: center;
    padding: 2.5rem 1.5rem 2rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    border-bottom: 1px solid var(--border);
}

.testimonial-header h1 {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.testimonial-header .text-muted {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.testimonial-verse {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0.75rem auto 1.25rem;
    line-height: 1.5;
}

.testimonial-media {
    margin-top: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
}

.testimonial-media audio {
    width: 100%;
}

.testimonial-media video {
    width: 100%;
    max-height: 480px;
    background: #000;
}

.media-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--primary);
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .testimonial-header { padding: 1.5rem 1rem; }
    .testimonial-header h1 { font-size: 1.4rem; }
}

/* =============================================
   Christian Music Category
   ============================================= */

.music-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.music-card {
    background: #282828;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    border: 1px solid #383838;
}

.music-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.music-card-featured {
    border: 2px solid var(--accent);
}

.music-card-embed {
    width: 100%;
    background: #181818;
    line-height: 0;
}

.music-card-embed iframe {
    display: block;
    width: 100%;
}

.music-card-placeholder {
    width: 100%;
    height: 152px;
    background: linear-gradient(135deg, #181818 0%, #282828 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

.music-card-body {
    padding: 1rem 1.25rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.music-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.music-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.music-card-title a:hover {
    color: #1DB954;
}

.music-card-url {
    font-size: 0.75rem;
    color: #a7a7a7;
    margin-bottom: 0.5rem;
}

.music-card-desc {
    font-size: 0.85rem;
    color: #b3b3b3;
    line-height: 1.5;
    flex: 1;
    margin-bottom: 0.75rem;
}

.music-card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #383838;
    font-size: 0.8rem;
}

.music-card-meta a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.2s;
}

.music-card-meta a:hover {
    color: #1DB954;
}

.music-badge-featured {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.5rem;
    background: rgba(212, 168, 67, 0.2);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 600;
}

.music-card-meta .star.empty {
    opacity: 0.15;
}

.music-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #383838;
}

.music-like-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 1px solid #555;
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    color: #b3b3b3;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.music-like-btn:hover {
    border-color: #ff4d6d;
    color: #ff4d6d;
}

.music-like-btn.liked {
    border-color: #ff4d6d;
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.12);
}

.music-like-btn .like-icon {
    font-size: 1rem;
    line-height: 1;
}

.music-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 1px solid #555;
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
    color: #b3b3b3;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.music-share-btn:hover {
    border-color: #1DB954;
    color: #1DB954;
}

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

/* ===================== FLOATING DASHBOARD FAB ===================== */
.user-fab-wrap {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
}

.user-fab {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.user-fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.user-fab-menu {
    display: none;
    position: absolute;
    bottom: 74px;
    right: 0;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    min-width: 190px;
    padding: 0.4rem 0;
    animation: fabSlideUp 0.15s ease-out;
}
.user-fab-menu.open { display: block; }

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

.user-fab-menu a {
    display: block;
    padding: 0.55rem 1rem;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.15s;
}
.user-fab-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.user-fab-menu .fab-logout {
    border-top: 1px solid var(--border);
    margin-top: 0.25rem;
    padding-top: 0.55rem;
    color: var(--error);
}
.user-fab-menu .fab-logout:hover {
    background: var(--error-bg);
    color: var(--error);
}

/* Hide FAB on admin pages (admin has its own sidebar) */
body.admin-body .user-fab-wrap { display: none; }

/* ===================== ADMIN EDIT LINK ===================== */
.admin-edit-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.8rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.admin-edit-link:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: scale(1.1);
}

/* ===================== USER AVATARS ===================== */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.user-avatar-default {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
}
.user-avatar-sm {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
}
.user-avatar-sm.user-avatar {
    width: 26px;
    height: 26px;
}
.avatar-name {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* =============================================
   Bible Reader
   ============================================= */
.bible-reader {
    max-width: 800px;
    margin: 0 auto;
}
.bible-header {
    text-align: center;
    margin-bottom: 1.5rem;
}
.bible-header h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary);
}
.bible-controls {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}
.bible-controls select {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.95rem;
    background: var(--surface);
    min-width: 120px;
}
.bible-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1rem;
}
.bible-current-ref {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}
.bible-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    min-height: 300px;
    line-height: 2;
    font-size: 1.1rem;
    color: var(--text);
}
.bible-verse {
    margin: 0 0 0.25rem 0;
    text-indent: 0;
}
.verse-num {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary);
    vertical-align: super;
    margin-right: 2px;
}
.bible-loading {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
    font-size: 1rem;
}
@media (max-width: 600px) {
    .bible-header h1 { font-size: 1.3rem; margin-bottom: 0.75rem; }
    .bible-controls { gap: 0.35rem; }
    .bible-controls select { min-width: 0; flex: 1; font-size: 0.85rem; padding: 0.4rem 0.5rem; }
    .bible-controls .btn-accent { font-size: 0.75rem; padding: 0.35rem 0.5rem; white-space: nowrap; }
    .bible-content { padding: 1rem; font-size: 1rem; line-height: 1.85; }
    .bible-nav-bar { font-size: 0.85rem; padding: 0.5rem 0; }
    .bible-current-ref { font-size: 0.85rem; }
    .bible-search-bar { max-width: 100%; }
}

/* Bible TTS Controls */
.tts-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
}
.tts-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.tts-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.tts-btn.tts-stop:hover {
    background: var(--danger, #dc2626);
    border-color: var(--danger, #dc2626);
}
.tts-speed {
    font-size: 0.75rem;
    padding: 0.25rem 0.3rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--bg-card);
    cursor: pointer;
}
#ttsVoice {
    max-width: 180px;
    text-overflow: ellipsis;
}
.bible-verse.tts-active {
    background: rgba(212, 168, 67, 0.12);
    border-left: 3px solid var(--accent);
    padding-left: 0.75rem;
    transition: background 0.3s, border-left 0.3s;
}
@media (max-width: 600px) {
    .tts-controls { gap: 0.3rem; padding: 0.4rem 0; }
    .tts-btn { font-size: 0.8rem; padding: 0.4rem 0.6rem; min-height: 36px; }
    .tts-speed { font-size: 0.8rem; padding: 0.3rem 0.4rem; min-height: 36px; }
    #ttsVoice { max-width: 100%; flex: 1 1 100%; order: 10; }
}

/* Bible Search */
.bible-search-bar {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.bible-search-bar .form-control {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.95rem;
}
.bible-search-bar .btn {
    flex-shrink: 0;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}
.bible-search-results {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
    max-height: 70vh;
    overflow-y: auto;
}
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}
.search-results-header h3 {
    font-size: 1rem;
    color: var(--text);
    margin: 0;
}
.search-results-header button {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
}
.search-results-header button:hover {
    background: var(--border-light);
    color: var(--text);
}
.bible-search-result {
    padding: 0.75rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-light);
}
.bible-search-result:last-child {
    border-bottom: none;
}
.bible-search-result:hover {
    background: var(--primary-light);
}
.search-result-ref {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}
.search-result-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}
.bible-search-result mark {
    background: rgba(212, 168, 67, 0.35);
    color: inherit;
    padding: 0.1rem 0.15rem;
    border-radius: 2px;
}
.search-load-more {
    text-align: center;
    margin-top: 1rem;
}
.search-no-results {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem 0;
    font-size: 0.95rem;
}
@media (max-width: 600px) {
    .bible-search-bar { max-width: 100%; }
    .bible-search-results { padding: 1rem; max-height: 60vh; }
    .bible-search-result { padding: 0.6rem 0.5rem; }
}

/* Bible sign-in banner */
.bible-signin-banner {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text);
}
.bible-signin-banner a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* Reading Plans */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}
.plan-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.plan-card.plan-complete {
    opacity: 0.75;
}
.plan-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}
.plan-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    flex: 1;
}
.plan-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}
.plan-progress {
    margin-top: 0.5rem;
}
.plan-progress-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}
.plan-status-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.plan-today-card {
    border-left: 3px solid var(--accent);
}
.plan-timeline {
    max-height: 400px;
    overflow-y: auto;
}
.plan-day {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
}
.plan-day:nth-child(even) {
    background: var(--border-light);
}
.plan-day.current {
    background: var(--primary-light);
    font-weight: 600;
}
.plan-day.completed .plan-day-num {
    color: var(--success);
}
.plan-day.future {
    color: var(--text-muted);
}
.plan-day-num {
    min-width: 2rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
}
.plan-day-readings {
    flex: 1;
}

/* Plan widget in Bible reader */
.plan-widget {
    background: var(--accent-light);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.plan-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.plan-widget-day {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}
.plan-widget-readings {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .plan-grid { grid-template-columns: 1fr; }
    .plan-timeline { max-height: 300px; }
}

/* =============================================
   Bible Tools (Highlights, Notes, Bookmarks)
   ============================================= */

/* Toolbar — sits in the right margin, off the Bible text */
.bible-toolbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    gap: 0.5rem;
    position: fixed;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: auto;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}
.bible-toolbar-left,
.bible-toolbar-right {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
}
.bible-toolbar-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.15rem 0;
}
.toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.toolbar-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}
.toolbar-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.toolbar-btn.chapter-read {
    background: #ECFDF5;
    border-color: #059669;
    color: #059669;
}
.toolbar-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    align-self: center;
    transition: all 0.2s;
}
.toolbar-help-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.toolbar-help-panel {
    display: none;
    position: absolute;
    right: calc(100% + 0.75rem);
    top: 0;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 12px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 1rem;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text);
    z-index: 101;
}
.toolbar-help-panel.show { display: block; }
.toolbar-help-panel h4 {
    font-size: 0.9rem;
    margin: 0 0 0.5rem;
    color: var(--primary);
}
.toolbar-help-panel ul {
    margin: 0;
    padding-left: 1.1rem;
}
.toolbar-help-panel li {
    margin-bottom: 0.35rem;
}

/* Highlight color picker */
.highlight-picker {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.highlight-colors {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}
.color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.color-btn:hover { transform: scale(1.15); }
.color-btn.active { border-color: var(--text); }
.color-yellow { background: #FEF08A; }
.color-green  { background: #BBF7D0; }
.color-blue   { background: #BFDBFE; }
.color-pink   { background: #FBCFE8; }
.color-none {
    background: var(--surface);
    border: 2px solid var(--border);
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* Verse highlights */
.bible-verse.hl-yellow { background: rgba(254, 240, 138, 0.4); border-radius: 3px; padding: 2px 4px; }
.bible-verse.hl-green  { background: rgba(187, 247, 208, 0.4); border-radius: 3px; padding: 2px 4px; }
.bible-verse.hl-blue   { background: rgba(191, 219, 254, 0.4); border-radius: 3px; padding: 2px 4px; }
.bible-verse.hl-pink   { background: rgba(251, 207, 232, 0.4); border-radius: 3px; padding: 2px 4px; }

/* Highlight mode */
.bible-content.highlight-mode .bible-verse {
    cursor: pointer;
    transition: background 0.15s;
}
.bible-content.highlight-mode .bible-verse:hover {
    outline: 2px dashed var(--primary);
    outline-offset: 2px;
}

/* Note indicator icon */
.verse-note-icon {
    display: inline-block;
    font-size: 0.65rem;
    cursor: pointer;
    margin: 0 3px;
    vertical-align: super;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.verse-note-icon:hover { opacity: 1; }

/* Verse context menu */
.verse-context-menu {
    position: absolute;
    z-index: 200;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.15));
    padding: 0.25rem 0;
    min-width: 170px;
}
.verse-context-menu button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.5rem 0.85rem;
    border: none;
    background: transparent;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
}
.verse-context-menu button:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.context-divider {
    height: 1px;
    background: var(--border-light);
    margin: 0.25rem 0;
}
.ctx-color {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    vertical-align: middle;
}

/* Verse pulse animation for shared/searched verses */
@keyframes verse-pulse {
    0% { background-color: rgba(212, 168, 67, 0.4); }
    100% { background-color: transparent; }
}
.verse-search-target {
    animation: verse-pulse 3s ease-out;
    border-radius: 3px;
}

/* Note and bookmark modals */
.bible-note-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}
.note-modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg, 12px);
    padding: 1.5rem;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.note-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.note-modal-header h3 {
    font-size: 1.1rem;
    color: var(--text);
    margin: 0;
}
.note-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0;
}
.note-modal-close:hover { color: var(--text); }
.note-modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
}
.note-char-count {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: auto;
}
.bookmark-ref {
    font-size: 0.95rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Streak badge */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--border-light);
    color: var(--text-muted);
}
.streak-badge.streak-active {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    color: #92400E;
}

/* Reading progress bars */
.progress-book {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
}
.progress-book-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
}
.progress-book-name {
    font-weight: 600;
    font-size: 0.85rem;
}
.progress-book-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}
.progress-bar-wrap {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    transition: width 0.3s;
}
.progress-bar-fill.complete {
    background: #059669;
}

/* Bible tools — medium screens: toolbar still on right but tighter */
@media (max-width: 1100px) {
    .bible-reader.has-toolbar {
        max-width: 680px;
    }
}
/* Bible tools — small/tablet: switch to bottom horizontal bar */
@media (max-width: 900px) {
    .bible-reader.has-toolbar {
        max-width: 800px;
        padding-bottom: 70px; /* room for bottom bar */
    }
    .bible-toolbar {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        border-radius: 0;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    }
    .bible-toolbar-left,
    .bible-toolbar-right {
        flex-direction: row;
        align-items: center;
    }
    .bible-toolbar-divider {
        width: 1px;
        height: 24px;
        margin: 0 0.25rem;
    }
    .toolbar-btn { font-size: 0.72rem; padding: 0.3rem 0.5rem; }
    .streak-badge { font-size: 0.7rem; padding: 0.2rem 0.5rem; }
    .toolbar-help-panel {
        right: 0.5rem;
        bottom: calc(100% + 0.5rem);
        top: auto;
        left: auto;
        transform: none;
        width: 250px;
    }
}
@media (max-width: 600px) {
    .toolbar-btn { font-size: 0.65rem; padding: 0.25rem 0.4rem; }
    .verse-context-menu { left: 10px !important; right: 10px; min-width: 0; }
    .toolbar-help-panel {
        width: 220px;
        font-size: 0.78rem;
    }
}

/* Near Me Map */
#nearMeMap { position: relative; }
.nearme-user-marker, .nearme-church-marker { background: transparent !important; border: none !important; }
.result-card[data-lat]:hover { border-color: var(--primary); transition: border-color 0.2s; }
@media (max-width: 600px) {
    #nearMeMap { height: 260px !important; }
}
