/* ============================================================
   Logos Bible Study &mdash; Main Stylesheet
   Aesthetic: Refined dark manuscript / illuminated codex
   ============================================================ */

:root {
    /* Core palette */
    --ink:          #1a1612;
    --parchment:    #f5f0e8;
    --parchment-2:  #ede5d4;
    --parchment-3:  #e0d5c0;
    --gold:         #c9972a;
    --gold-light:   #e8b84b;
    --gold-dark:    #8a6515;
    --crimson:      #8b1a1a;
    --crimson-soft: #b52b2b;
    --midnight:     #0f0d0a;
    --charcoal:     #2a2520;
    --ash:          #4a443c;
    --mist:         #8a8278;
    --white:        #fdf9f3;

    /* Surfaces */
    --surface-0:    #13110e;
    --surface-1:    #1e1b16;
    --surface-2:    #272420;
    --surface-3:    #302c27;
    --border:       rgba(201, 151, 42, 0.2);
    --border-hover: rgba(201, 151, 42, 0.5);

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Source Serif 4', Georgia, serif;
    --font-mono:    'JetBrains Mono', monospace;

    /* Layout */
    --max-width:    1100px;
    --nav-height:   64px;
    --radius:       6px;
    --radius-lg:    12px;

    /* Transitions */
    --ease:         cubic-bezier(0.4, 0, 0.2, 1);
    --dur:          200ms;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--surface-0);
    color: var(--parchment);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(201,151,42,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139,26,26,0.04) 0%, transparent 40%);
}

img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--gold-light); }

/* ─── Navigation ──────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    height: var(--nav-height);
    background: rgba(15, 13, 10, 0.92);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 0 1.5rem;
}

.brand {
    display: flex; align-items: center; gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--parchment);
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.brand:hover { color: var(--gold-light); }
.brand-cross {
    color: var(--gold);
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(201,151,42,0.5));
}

.nav-links {
    display: flex; gap: 0.25rem;
    margin-right: auto;
}

.nav-link {
    color: var(--mist);
    font-size: 0.875rem;
    font-family: var(--font-body);
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius);
    letter-spacing: 0.03em;
    transition: all var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.active {
    color: var(--parchment);
    background: rgba(201,151,42,0.1);
}
.admin-link { color: var(--gold) !important; }

.nav-auth { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: none;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}
.btn-primary {
    background: var(--gold);
    color: var(--ink);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--gold-light);
    color: var(--ink);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,151,42,0.3);
}
.btn-ghost {
    background: transparent;
    color: var(--parchment-2);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    color: var(--parchment);
    background: rgba(201,151,42,0.06);
}
.btn-danger {
    background: var(--crimson);
    color: var(--white);
}
.btn-danger:hover { background: var(--crimson-soft); }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }

/* ─── User Menu ───────────────────────────────────────────── */
.user-menu { position: relative; display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--gold);
    object-fit: cover;
}
.user-avatar-initial {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700;
    font-family: var(--font-display);
}
.user-name { font-size: 0.875rem; color: var(--parchment-2); }
.user-dropdown {
    display: none;
    position: absolute; top: calc(100% + 12px); right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    min-width: 180px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.6);
}
.user-menu:hover .user-dropdown { display: block; }
.user-dropdown a, .user-dropdown hr {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--parchment-2);
    font-size: 0.875rem;
    border-radius: var(--radius);
}
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 0.25rem 0; padding: 0; }
.user-dropdown a:hover { background: rgba(201,151,42,0.1); color: var(--parchment); }

/* ─── Mobile Nav ──────────────────────────────────────────── */
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-toggle span {
    width: 22px; height: 2px;
    background: var(--parchment-2);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
}
.mobile-nav {
    display: none;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    z-index: 99;
    flex-direction: column;
    gap: 0.25rem;
}
.mobile-nav a {
    display: block; padding: 0.75rem 0;
    color: var(--parchment-2);
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
}
body.mobile-nav-open .mobile-nav { display: flex; }

@media (max-width: 768px) {
    .nav-links, .nav-auth { display: none; }
    .mobile-menu-toggle { display: flex; margin-left: auto; }
}

/* ─── Main Content ────────────────────────────────────────── */
.site-main { flex: 1; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ─── Hero / Search Section ───────────────────────────────── */
.hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center top, rgba(201,151,42,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--parchment);
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-subtitle {
    font-size: 1.125rem;
    color: var(--mist);
    margin-bottom: 2.5rem;
    font-style: italic;
    max-width: 500px;
    margin-left: auto; margin-right: auto;
}

/* ─── Search Box ──────────────────────────────────────────── */
.search-wrapper { max-width: 640px; margin: 0 auto; position: relative; }
.search-form { display: flex; gap: 0; }
.search-input {
    flex: 1;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    padding: 0.875rem 1.25rem;
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color var(--dur) var(--ease);
}
.search-input::placeholder { color: var(--ash); }
.search-input:focus { border-color: var(--gold); }
.search-btn {
    background: var(--gold);
    color: var(--ink);
    border: none;
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    padding: 0.875rem 1.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    white-space: nowrap;
}
.search-btn:hover { background: var(--gold-light); transform: none; }
.search-hint { margin-top: 0.75rem; font-size: 0.8rem; color: var(--ash); }
.search-hint code {
    font-family: var(--font-mono);
    background: var(--surface-2);
    padding: 0.1em 0.4em;
    border-radius: 3px;
    color: var(--mist);
    font-size: 0.8em;
}

/* ─── Verse Cards ─────────────────────────────────────────── */
.results-section { padding: 3rem 1.5rem; max-width: var(--max-width); margin: 0 auto; }
.results-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.results-count {
    font-size: 0.875rem; color: var(--mist);
    font-family: var(--font-mono);
}

.verse-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    margin-bottom: 1rem;
    position: relative;
    transition: all var(--dur) var(--ease);
    overflow: hidden;
}
.verse-card::before {
    content: '';
    position: absolute; left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
    transform: scaleY(0);
    transition: transform var(--dur) var(--ease);
}
.verse-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-2);
}
.verse-card:hover::before { transform: scaleY(1); }

.verse-ref {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}
.verse-text {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--parchment-2);
    font-style: italic;
}
.verse-text.not-fetched {
    color: var(--ash);
    font-style: normal;
    font-size: 0.9rem;
}
.verse-actions {
    display: flex; gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
.action-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius);
    font-size: 0.78rem;
    font-family: var(--font-body);
    color: var(--mist);
    background: var(--surface-3);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}
.action-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,151,42,0.08); }
.action-btn.bookmarked { color: var(--gold); }

/* ─── Single Verse Full View ──────────────────────────────── */
.verse-full {
    max-width: 780px; margin: 4rem auto; padding: 0 1.5rem;
}
.verse-full .verse-reference-large {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.verse-full .ornament {
    color: var(--gold);
    font-size: 1.5rem;
    opacity: 0.4;
    margin: 1rem 0;
    display: block;
    text-align: center;
    letter-spacing: 0.5em;
}
.verse-full .verse-body {
    font-family: var(--font-body);
    font-size: 1.4rem;
    line-height: 1.9;
    color: var(--parchment);
    font-style: italic;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 1.5rem 0;
}
.verse-full .verse-meta {
    display: flex; gap: 1rem; flex-wrap: wrap;
    font-size: 0.8rem; color: var(--mist);
    font-family: var(--font-mono);
}

/* ─── Browse Grid ─────────────────────────────────────────── */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 2rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}
.book-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    text-align: center;
    transition: all var(--dur) var(--ease);
    cursor: pointer;
    display: block;
    color: var(--parchment-2);
}
.book-card:hover {
    border-color: var(--gold);
    background: var(--surface-2);
    color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.book-card .book-name { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.book-card .verse-count { font-size: 0.72rem; color: var(--mist); margin-top: 0.25rem; font-family: var(--font-mono); }
.testament-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    padding: 2rem 1.5rem 0.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    letter-spacing: 0.02em;
}
.testament-header small {
    font-size: 0.875rem;
    color: var(--mist);
    margin-left: 0.75rem;
    font-family: var(--font-body);
    font-style: italic;
}

/* ─── Progress Bar ────────────────────────────────────────── */
.progress-bar-wrap {
    background: var(--surface-3);
    border-radius: 99px;
    height: 8px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold));
    border-radius: 99px;
    transition: width 0.6s var(--ease);
}

/* ─── Stats Cards ─────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.stat-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
}
.stat-value { font-size: 2rem; font-weight: 700; color: var(--gold); font-family: var(--font-display); }
.stat-label { font-size: 0.8rem; color: var(--mist); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.1em; }

/* ─── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; color: var(--mist); margin-bottom: 0.4rem; letter-spacing: 0.05em; }
.form-control {
    width: 100%;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.7rem 1rem;
    color: var(--parchment);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--dur) var(--ease);
}
.form-control:focus { border-color: var(--gold); }
.form-control::placeholder { color: var(--ash); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* ─── Auth Pages ──────────────────────────────────────────── */
.auth-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 2rem 1.5rem;
}
.auth-card {
    width: 100%; max-width: 420px;
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.auth-logo {
    text-align: center; margin-bottom: 2rem;
}
.auth-logo .cross { font-size: 2.5rem; color: var(--gold); display: block; margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 12px rgba(201,151,42,0.4)); }
.auth-logo .title { font-family: var(--font-display); font-size: 1.5rem; color: var(--parchment); }
.auth-logo .subtitle { font-size: 0.85rem; color: var(--mist); font-style: italic; margin-top: 0.25rem; }

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

.google-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--parchment-2);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    text-decoration: none;
}
.google-btn:hover { border-color: var(--border-hover); background: var(--surface-3); color: var(--parchment); }
.google-icon { width: 20px; }

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
.alert-error { background: rgba(139,26,26,0.2); border: 1px solid var(--crimson); color: #ff9999; }
.alert-success { background: rgba(42,139,42,0.15); border: 1px solid #2a8b2a; color: #99ff99; }
.alert-info { background: rgba(201,151,42,0.1); border: 1px solid var(--border); color: var(--parchment-2); }

/* ─── Admin Panel ─────────────────────────────────────────── */
.admin-layout { display: flex; min-height: calc(100vh - var(--nav-height)); }
.admin-sidebar {
    width: 240px;
    background: var(--surface-1);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
    flex-shrink: 0;
}
.admin-sidebar-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ash);
    padding: 0 1.25rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}
.admin-sidebar-title:first-child { margin-top: 0; }
.admin-nav-link {
    display: flex; align-items: center; gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    color: var(--mist);
    font-size: 0.875rem;
    transition: all var(--dur) var(--ease);
    border-left: 2px solid transparent;
}
.admin-nav-link:hover { color: var(--parchment); background: rgba(201,151,42,0.05); }
.admin-nav-link.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,151,42,0.08); }
.admin-content { flex: 1; padding: 2rem; overflow: auto; }
.admin-page-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--parchment);
    margin-bottom: 0.25rem;
}
.admin-page-subtitle { font-size: 0.875rem; color: var(--mist); margin-bottom: 2rem; font-style: italic; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead th {
    background: var(--surface-2);
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--mist);
    border-bottom: 1px solid var(--border);
}
tbody td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--parchment-2);
    border-bottom: 1px solid rgba(201,151,42,0.08);
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(201,151,42,0.03); }

.badge {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    font-weight: 500;
}
.badge-gold { background: rgba(201,151,42,0.15); color: var(--gold); border: 1px solid rgba(201,151,42,0.3); }
.badge-green { background: rgba(42,139,42,0.15); color: #5cb85c; border: 1px solid rgba(42,139,42,0.3); }
.badge-red { background: rgba(139,26,26,0.15); color: #ff6b6b; border: 1px solid rgba(139,26,26,0.3); }
.badge-mist { background: var(--surface-3); color: var(--mist); border: 1px solid var(--border); }

/* ─── Toggle Switch ───────────────────────────────────────── */
.toggle-wrap { display: flex; align-items: center; gap: 0.75rem; }
.toggle {
    position: relative; display: inline-block;
    width: 48px; height: 26px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: var(--surface-3);
    border-radius: 99px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all var(--dur) var(--ease);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    left: 2px; top: 2px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--mist);
    transition: all var(--dur) var(--ease);
}
input:checked + .toggle-slider { background: rgba(201,151,42,0.2); border-color: var(--gold); }
input:checked + .toggle-slider::before { transform: translateX(22px); background: var(--gold); }

/* ─── Card ────────────────────────────────────────────────── */
.card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
.card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--parchment);
    margin-bottom: 0.25rem;
}
.card-subtitle { font-size: 0.8rem; color: var(--mist); margin-bottom: 1.25rem; font-style: italic; }

/* ─── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: 0.4rem; justify-content: center; padding: 2rem 0; }
.page-link {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px;
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid var(--border);
    color: var(--parchment-2);
    font-size: 0.875rem;
    transition: all var(--dur) var(--ease);
}
.page-link:hover, .page-link.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

/* ─── Footer ──────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface-1);
    margin-top: auto;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    padding: 2rem 1.5rem;
    text-align: center;
}
.footer-brand { font-family: var(--font-display); font-size: 1rem; color: var(--parchment); margin-bottom: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.footer-text { font-size: 0.78rem; color: var(--ash); max-width: 560px; margin: 0 auto 0.5rem; line-height: 1.6; }
.footer-copy { font-size: 0.72rem; color: var(--ash); font-family: var(--font-mono); }

/* ─── Misc Utilities ──────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-mist { color: var(--mist); }
.text-center { text-align: center; }
.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; }
.flex { display: flex; } .items-center { align-items: center; } .gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; }
.w-full { width: 100%; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ─── Loading Spinner ─────────────────────────────────────── */
.spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(201,151,42,0.3);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 4rem 1.5rem;
    color: var(--mist);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.4; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--parchment-2); margin-bottom: 0.5rem; }
.empty-state p { font-size: 0.9rem; max-width: 360px; margin: 0 auto; }

/* ─── Fade-in animations ──────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s var(--ease) both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.15s; }

/* Responsive */
@media (max-width: 640px) {
    .admin-sidebar { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding: 3rem 1rem 2.5rem; }
    .verse-card { padding: 1.25rem 1.25rem; }
    .auth-card { padding: 1.75rem; }
}
