/* ═══════════════════════════════════════════════════════════════════════
   Lexnesia public chrome — header + footer + buttons + pills.
   Ch XVIII 2026-07-24 (Sendy).

   Extracted so account-family pages (Akun / Langganan / Data Saya /
   Privasi — all served through templates/_customer_base.html) can render
   the SAME chrome as Chat / Atlas / Library without ever going through
   index.html.

   templates/index.html still has its own inline copy of these rules
   because index.html hosts the full Chat/Atlas/Library SPA and its
   inline styles interleave with hundreds of other rules I don't want
   to disturb in one turn. Dedupe is a follow-up: delete this file,
   move index.html's copy into style.css, load style.css from
   _customer_base.html too. When you dedupe, make sure NO drift crept
   in between these two copies first.
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Public header (Stately Navy) ────────────────────────────────────── */
.lex-public-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: var(--lex-ink-deep, #091428);
  color: var(--lex-cream, #F1EBDC);
  border-bottom: 1px solid var(--lex-line-on-dark, rgba(241,235,220,0.16));
  position: sticky; top: 0; z-index: 60; min-height: 56px;
  font-family: var(--lex-font-sans, 'Inter Tight', system-ui, sans-serif);
}
body.dark .lex-public-header { background: var(--lex-ink-deep, #091428); }

.lex-brand {
  display: flex; align-items: baseline; gap: 10px;
  color: var(--lex-cream, #F1EBDC); text-decoration: none;
  font-family: var(--lex-font-display, 'Cormorant Garamond', Garamond, serif);
  font-style: italic; font-weight: 500; font-size: 22px;
  letter-spacing: -0.012em;
}
.lex-tag {
  color: var(--lex-cream, #F1EBDC); opacity: 0.55;
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-weight: 600; font-size: 10px;
  margin-left: 4px; padding-left: 12px;
  border-left: 1px solid var(--lex-line-on-dark, rgba(241,235,220,0.16));
  letter-spacing: 0.14em; text-transform: uppercase;
}
body.dark .lex-tag { color: var(--lex-cream, #F1EBDC); }

.lex-tagline-top {
  flex: 1; padding: 0 32px; max-width: 760px; margin: 0 auto;
  font-family: var(--lex-font-serif, 'Source Serif 4', Georgia, serif);
  font-size: 13px; font-style: italic; line-height: 1.5;
  color: var(--lex-cream, #F1EBDC); opacity: 0.78;
  text-align: center;
}
.lex-tagline-top strong {
  font-weight: 600; font-style: normal; opacity: 1;
  font-family: var(--lex-font-serif, 'Source Serif 4', Georgia, serif);
  color: var(--lex-cream, #F1EBDC);
}
@media (max-width: 1100px) { .lex-tagline-top { display: none; } }

.lex-public-actions { display: flex; align-items: center; gap: 8px; }

.lex-langs { display: flex; gap: 2px; margin-right: 6px; }
.lex-lang-btn {
  background: transparent;
  border: 1px solid var(--lex-line-on-dark, rgba(241,235,220,0.16));
  padding: 4px 10px; border-radius: 4px;
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 11px; font-weight: 600; cursor: pointer;
  color: var(--lex-cream, #F1EBDC); opacity: 0.6;
  transition: opacity .12s, background .12s;
}
.lex-lang-btn:hover { opacity: 1; background: rgba(241,235,220,0.06); }
.lex-lang-btn.active {
  background: var(--lex-accent, #A87327);
  color: var(--lex-ink-deep, #091428);
  border-color: var(--lex-accent, #A87327);
  opacity: 1;
}

.lex-btn {
  padding: 7px 14px; border: 1px solid transparent; border-radius: 6px;
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .12s, color .12s;
}
.lex-btn-text {
  background: transparent;
  color: var(--lex-cream, #F1EBDC); opacity: 0.85;
}
.lex-btn-text:hover { background: rgba(241,235,220,0.08); opacity: 1; }
.lex-btn-primary {
  background: var(--lex-accent, #A87327);
  color: #FFFFFF;
}
.lex-btn-primary:hover { background: var(--lex-accent-deep, #7C5316); }
.lex-icon-btn {
  background: transparent;
  border: 1px solid var(--lex-line-on-dark, rgba(241,235,220,0.16));
  border-radius: 6px; padding: 5px 7px; cursor: pointer;
  color: var(--lex-cream, #F1EBDC); opacity: 0.85;
  transition: opacity .12s;
}
.lex-icon-btn:hover { opacity: 1; background: rgba(241,235,220,0.06); }

.lex-tier-pill {
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.12em;
}
.lex-tier-pill.free       { background: rgba(241,235,220,0.10); color: var(--lex-cream, #F1EBDC); }
.lex-tier-pill.silver,
.lex-tier-pill.sub_account{ background: rgba(241,235,220,0.16); color: var(--lex-cream, #F1EBDC); }
.lex-tier-pill.gold       { background: var(--lex-accent, #A87327); color: var(--lex-ink-deep, #091428); }
.lex-tier-pill.platinum,
.lex-tier-pill.unlimited  { background: var(--lex-accent-deep, #7C5316); color: var(--lex-cream, #F1EBDC); }

.lex-usage-pill {
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 11px; font-weight: 600;
  color: var(--lex-cream, #F1EBDC); opacity: 0.78;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(241,235,220,0.08);
}

.lex-courtesy {
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 11px; padding: 4px 12px; border-radius: 999px;
  color: var(--lex-cream, #F1EBDC); background: rgba(168,115,39,0.18);
  border: 1px solid rgba(168,115,39,0.32); cursor: pointer;
}

/* ── Public footer ───────────────────────────────────────────────────── */
.lex-footer {
  background: var(--lex-ink-deep, #091428);
  border-top: 1px solid var(--lex-line-on-dark, rgba(241,235,220,0.16));
  padding: 8px 24px 10px;
  font-family: var(--lex-font-sans, 'Inter Tight', sans-serif);
  font-size: 12px;
  color: rgba(241,235,220,0.72);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
body.dark .lex-footer { background: var(--lex-ink-deep, #091428); }
.lex-footer-left { max-width: 580px; line-height: 1.5; }
.lex-footer-left strong { color: var(--lex-cream, #F1EBDC); font-weight: 600; }
body.dark .lex-footer-left strong { color: var(--lex-cream, #F1EBDC); }
.lex-footer-left .lex-pledge {
  font-family: var(--lex-font-serif, 'Source Serif 4', Georgia, serif);
  font-style: italic; color: rgba(241,235,220,0.55);
  font-size: 11px; margin-top: 4px; display: block;
}
.lex-footer-right a {
  color: rgba(241,235,220,0.72); text-decoration: none; margin-left: 16px;
  transition: color .12s;
}
.lex-footer-right a:hover { color: var(--lex-accent, #A87327); }
