/* ============================================================
   PRINCÍPIOS BÍBLICOS — Main Stylesheet
   Aesthetic: Refined Seminary / Ancient Manuscript
   Fonts: Cormorant Garamond (display) + Source Serif 4 (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Source+Serif+4:ital,opsz,wght@0,8..60,300;0,8..60,400;0,8..60,600;1,8..60,300;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --ink:        #1a1409;
  --ink-soft:   #3d3020;
  --ink-muted:  #7a6549;
  --parchment:  #f6f0e4;
  --parchment2: #ece4d0;
  --parchment3: #e0d4bc;
  --gold:       #b8893a;
  --gold-light: #d4a84b;
  --gold-pale:  #f5e8c8;
  --emerald:    #2e5c35;
  --emerald2:   #1d3d23;
  --emerald3:   #3d7a48;
  --red-dim:    #8b2020;
  --radius:     14px;
  --radius-sm:  8px;
  --radius-lg:  22px;
  --shadow-sm:  0 2px 8px rgba(26,20,9,.08);
  --shadow-md:  0 6px 24px rgba(26,20,9,.12);
  --shadow-lg:  0 16px 48px rgba(26,20,9,.18);
  --transition: 220ms cubic-bezier(.4,0,.2,1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Source Serif 4', Georgia, serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ── Layout Shell ──────────────────────────────────────────── */
#app {
  display: grid;
  grid-template-areas:
    "sidebar  topbar"
    "sidebar  content";
  grid-template-columns: 280px 1fr;
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}

/* ── Topbar ────────────────────────────────────────────────── */
#topbar {
  grid-area: topbar;
  background: var(--emerald2);
  padding: .75rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
#topbar-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: .5px;
  flex: 1;
}
#search-wrap {
  position: relative;
  flex: 0 0 340px;
}
#search-input {
  width: 100%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(212,168,75,.4);
  border-radius: 40px;
  padding: .5rem 1rem .5rem 2.4rem;
  color: #fff;
  font-size: .9rem;
  outline: none;
  transition: var(--transition);
}
#search-input::placeholder { color: rgba(255,255,255,.5); }
#search-input:focus { background: rgba(255,255,255,.15); border-color: var(--gold-light); }
.search-icon {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: .6;
  font-size: .85rem;
  pointer-events: none;
}
#menu-toggle {
  display: none;
  color: var(--gold-light);
  font-size: 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* ── Sidebar ────────────────────────────────────────────────── */
#sidebar {
  grid-area: sidebar;
  background: var(--emerald2);
  width: 280px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 200;
  border-right: 2px solid rgba(184,137,58,.3);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}
#sidebar-header {
  padding: 1.6rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(184,137,58,.25);
}
#sidebar-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin-bottom: .25rem;
}
#sidebar-sub {
  font-size: .72rem;
  color: rgba(212,168,75,.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
}
.sidebar-section {
  padding: .9rem 1rem .4rem;
}
.sidebar-section-title {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(212,168,75,.6);
  font-family: 'JetBrains Mono', monospace;
  padding: 0 .4rem .5rem;
  border-bottom: 1px solid rgba(184,137,58,.15);
  margin-bottom: .5rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .55rem .8rem;
  border-radius: var(--radius-sm);
  color: rgba(245,232,200,.8);
  font-size: .9rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.nav-item:hover { background: rgba(255,255,255,.07); color: var(--gold-light); text-decoration: none; }
.nav-item.active { background: rgba(184,137,58,.2); color: var(--gold-light); font-weight: 600; }
.nav-item-icon { font-size: 1rem; opacity: .9; }
.nav-item-count {
  margin-left: auto;
  background: rgba(184,137,58,.25);
  color: var(--gold-light);
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  padding: .1rem .45rem;
  border-radius: 20px;
}

/* Testament groups */
.testament-group { margin-bottom: .2rem; }
.testament-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  color: rgba(245,232,200,.9);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .5px;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}
.testament-toggle:hover { background: rgba(255,255,255,.05); }
.testament-label { display: flex; align-items: center; gap: .5rem; }
.testament-arrow { font-size: .7rem; transition: transform 200ms; }
.testament-group.open .testament-arrow { transform: rotate(90deg); }
.books-list {
  display: none;
  flex-direction: column;
  gap: 1px;
  padding-left: .5rem;
}
.testament-group.open .books-list { display: flex; }
.book-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem .8rem;
  border-radius: var(--radius-sm);
  color: rgba(245,232,200,.7);
  font-size: .83rem;
  cursor: pointer;
  transition: var(--transition);
}
.book-item:hover { background: rgba(255,255,255,.07); color: var(--gold-light); }
.book-item.active { background: rgba(184,137,58,.2); color: var(--gold-light); }
.book-abbrev {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem;
  opacity: .6;
  margin-left: .4rem;
}
.book-count {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(255,255,255,.08);
  padding: .1rem .35rem;
  border-radius: 20px;
  color: rgba(212,168,75,.7);
}

/* sidebar bottom stats */
#sidebar-stats {
  margin-top: auto;
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(184,137,58,.2);
  font-size: .72rem;
  color: rgba(212,168,75,.5);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.8;
}

/* ── Main Content ───────────────────────────────────────────── */
#content {
  grid-area: content;
  margin-left: 280px;
  min-height: 100vh;
}

/* ── Views ─────────────────────────────────────────────────── */
.view { display: none; padding: 2rem; }
.view.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 2px solid var(--parchment3);
}
.page-header h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--emerald2);
  line-height: 1.1;
  margin-bottom: .4rem;
}
.page-header .subtitle {
  color: var(--ink-muted);
  font-size: 1rem;
  font-style: italic;
}

/* ── Dashboard Cards ────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--parchment3);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.stat-card.gold::before { background: var(--gold); }
.stat-card.green::before { background: var(--emerald3); }
.stat-card.amber::before { background: #c4742a; }
.stat-card.blue::before { background: #2a5c8b; }
.stat-number {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--emerald2);
  line-height: 1;
  margin-bottom: .2rem;
}
.stat-label {
  font-size: .8rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Section title ──────────────────────────────────────────── */
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--emerald2);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--parchment3);
}

/* ── Tag Cloud ──────────────────────────────────────────────── */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.tag-chip {
  background: var(--parchment2);
  border: 1px solid var(--parchment3);
  color: var(--ink-soft);
  padding: .3rem .85rem;
  border-radius: 30px;
  font-size: .78rem;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  transition: var(--transition);
}
.tag-chip:hover { background: var(--emerald2); color: var(--gold-pale); border-color: var(--emerald2); }
.tag-chip.active { background: var(--emerald2); color: var(--gold-light); border-color: var(--emerald2); font-weight: 600; }

/* ── Filters Bar ────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--parchment3);
  box-shadow: var(--shadow-sm);
}
.filter-select {
  padding: .45rem .9rem;
  border: 1px solid var(--parchment3);
  border-radius: 30px;
  background: var(--parchment);
  font-size: .85rem;
  color: var(--ink-soft);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}
.filter-select:focus { border-color: var(--gold); }
.results-count {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  color: var(--ink-muted);
  background: var(--parchment2);
  padding: .3rem .8rem;
  border-radius: 20px;
}
.clear-btn {
  font-size: .78rem;
  color: var(--red-dim);
  padding: .3rem .7rem;
  border-radius: 20px;
  border: 1px solid rgba(139,32,32,.25);
  transition: var(--transition);
}
.clear-btn:hover { background: var(--red-dim); color: white; }

/* ── Principles Grid ────────────────────────────────────────── */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.4rem;
}

/* List layout toggle */
.principles-grid.list-mode {
  grid-template-columns: 1fr;
}

/* ── Principle Card ─────────────────────────────────────────── */
.p-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--parchment3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.p-card-stripe {
  height: 4px;
  background: var(--gold);
  flex-shrink: 0;
}
.p-card-stripe.nt { background: var(--emerald3); }
.p-card-head {
  padding: 1rem 1.1rem .6rem;
}
.p-card-category {
  font-size: .68rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: .4rem;
}
.p-card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--emerald2);
  line-height: 1.25;
}
.p-card-book {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--gold-pale);
  color: var(--gold);
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-top: .5rem;
}
.p-card-body {
  padding: .6rem 1.1rem;
  flex: 1;
}
.p-card-desc {
  font-size: .9rem;
  color: var(--ink-soft);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-card-footer {
  padding: .6rem 1.1rem .9rem;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  border-top: 1px solid var(--parchment2);
  margin-top: .5rem;
}
.p-tag {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  background: var(--parchment2);
  color: var(--ink-muted);
  padding: .15rem .5rem;
  border-radius: 20px;
}

/* No results */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ink-muted);
  grid-column: 1/-1;
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--ink-soft);
}

/* ── Detail Modal ────────────────────────────────────────────── */
#modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26,20,9,.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(3px);
}
#modal-backdrop.open { display: flex; }
#modal {
  background: var(--parchment);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--parchment3);
  animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:none; } }
.modal-header {
  background: var(--emerald2);
  padding: 1.5rem 1.8rem;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  position: relative;
}
.modal-testament-badge {
  font-size: .65rem;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(184,137,58,.3);
  color: var(--gold-light);
  padding: .2rem .6rem;
  border-radius: 20px;
  margin-bottom: .6rem;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold-pale);
  line-height: 1.2;
}
.modal-book {
  color: rgba(212,168,75,.75);
  font-size: .9rem;
  margin-top: .4rem;
  font-style: italic;
}
.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.4rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: var(--gold-light);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,.25); }
.modal-body { padding: 1.8rem; }
.modal-category {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.modal-description {
  font-size: 1.05rem;
  color: var(--ink-soft);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.modal-refs {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid var(--parchment3);
}
.modal-refs-title {
  font-size: .72rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .6rem;
}
.ref-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ref-chip {
  background: var(--gold-pale);
  color: var(--gold);
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  border: 1px solid rgba(184,137,58,.3);
}
.modal-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.modal-tag {
  background: var(--parchment2);
  color: var(--ink-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: .72rem;
  padding: .25rem .7rem;
  border-radius: 20px;
  border: 1px solid var(--parchment3);
}

/* ── Tags View ──────────────────────────────────────────────── */
.tags-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.tag-overview-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--parchment3);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.tag-overview-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.tag-overview-card.selected { border-color: var(--emerald2); background: var(--emerald2); color: white; }
.tag-overview-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: var(--emerald2);
  margin-bottom: .3rem;
  font-weight: 600;
}
.tag-overview-card.selected .tag-overview-name { color: var(--gold-light); }
.tag-overview-count {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.tag-overview-card.selected .tag-overview-count { color: var(--gold-light); }
.tag-overview-label {
  font-size: .72rem;
  color: var(--ink-muted);
  margin-top: .1rem;
}
.tag-overview-card.selected .tag-overview-label { color: rgba(245,232,200,.7); }

/* ── About View ─────────────────────────────────────────────── */
.about-prose {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
}
.about-prose h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--emerald2);
  margin: 2rem 0 .75rem;
}
.about-prose h2:first-child { margin-top: 0; }
.about-prose p { margin-bottom: 1rem; color: var(--ink-soft); }
.about-prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.2rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--ink-muted);
}
.about-prose .schema-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: .88rem;
}
.schema-table th {
  background: var(--emerald2);
  color: var(--gold-light);
  padding: .6rem .9rem;
  text-align: left;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem;
}
.schema-table td {
  border-bottom: 1px solid var(--parchment3);
  padding: .55rem .9rem;
  color: var(--ink-soft);
  vertical-align: top;
}
.schema-table tr:last-child td { border-bottom: none; }
.schema-table td:first-child { font-family: 'JetBrains Mono', monospace; font-size: .78rem; color: var(--emerald2); font-weight: 600; }
.code-block {
  background: var(--ink);
  color: #a8d8a8;
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  line-height: 1.6;
  overflow-x: auto;
  margin: 1rem 0;
}

/* ── Layout Toggle ──────────────────────────────────────────── */
.layout-toggle {
  display: flex;
  gap: .3rem;
  margin-left: auto;
}
.layout-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--ink-muted);
  border: 1px solid var(--parchment3);
  background: white;
  transition: var(--transition);
}
.layout-btn.active, .layout-btn:hover {
  background: var(--emerald2);
  color: var(--gold-light);
  border-color: var(--emerald2);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  #app {
    grid-template-areas: "topbar" "content";
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  #sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  #sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }
  #content { margin-left: 0; }
  #menu-toggle { display: block; }
  #topbar { grid-area: topbar; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .view { padding: 1rem; }
  #search-wrap { flex: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .page-header h1 { font-size: 1.8rem; }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--parchment3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Loading ────────────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--emerald2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .5s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: .5rem;
}
.loader-sub {
  color: rgba(212,168,75,.6);
  font-size: .85rem;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}
.loader-bar-wrap {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: var(--gold);
  animation: loadBar 1.8s ease-in-out infinite;
}
@keyframes loadBar {
  0% { width: 0; margin-left: 0; }
  50% { width: 60%; margin-left: 20%; }
  100% { width: 0; margin-left: 100%; }
}
