/* ============================================================
   MSI Account Portal — Brand styling
   Parent brand: Molay Satrya Indonesia
   Tokens lifted from /Users/admin/Documents/Web Projects/CLAUDE.md
   ============================================================ */

:root {
  --navy: #080e1c;
  --navy2: #0f1730;
  --gold: #c9970a;
  --gold2: #fab811;
  --text: #c8bfa8;
  --text-strong: #e6dec5;
  --muted: #7e7460;

  /* MSI Tri Stripe (group accent) */
  --tan: #987f60;
  --olive: #7e7e42;

  --border: rgba(201, 151, 10, 0.18);
  --panel-bg: rgba(15, 23, 48, 0.6);
  --panel-bg-strong: #0f1730;
  --error: #c44;
  --success: #6a8;

  --radius: 4px;
  --radius-sm: 2px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  --ff-display: 'Barlow Condensed', sans-serif;
  --ff-body: 'Barlow', sans-serif;
}

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

html, body {
  background: var(--navy);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Tri Stripe (MSI group signature) --- */
.tri-stripe, .tri-stripe-top, .tri-stripe-bottom {
  height: 6px;
  background: linear-gradient(
    to bottom,
    var(--tan) 0%, var(--tan) 40%,
    #000 40%, #000 60%,
    var(--olive) 60%, var(--olive) 100%
  );
}

/* --- Vanguard-pattern topbar --- */
.topbar {
  background: var(--navy2);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
}
.topbar__container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}
.topbar__brand:hover { text-decoration: none; }
.topbar__roundel {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.topbar__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
/* Title (lead line) — "Aegis · Molay Satrya Indonesia" */
.topbar__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.25rem;          /* match Vanguard ERP topbar__title */
  letter-spacing: 0.06em;
  color: var(--text-strong);
  text-transform: uppercase;
  order: 1;                    /* sits above the smaller descriptor */
}
.topbar__title .topbar__sep {
  color: var(--gold);
  font-weight: 400;
  margin: 0 0.18em;
}
/* Sub-line — small descriptor like "Customer Account" or "Faktur Penjualan" */
.topbar__group {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  order: 2;
  margin-top: 2px;
}
.topbar__status {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar__status .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.topbar__nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media (max-width: 540px) {
  .topbar { padding: 0.75rem 1rem; }
  .topbar__roundel { width: 32px; height: 32px; }
  .topbar__title { font-size: 0.95rem; }
  .topbar__status { display: none; }
}

/* ============================================================
   Auth shell (index.html)
   ============================================================ */
.page-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.auth-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.auth-hero {
  text-align: center;
  margin-bottom: 28px;
}
.auth-hero .eyebrow {
  font-family: var(--ff-display);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.auth-headline {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.auth-sub {
  color: var(--muted);
  font-size: 14px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.6;
}
.auth-card {
  width: 100%;
  background: var(--panel-bg-strong);
  border: 1px solid var(--border);
  padding: 28px;
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.auth-tabs .tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.auth-tabs .tab.is-active {
  color: var(--gold2);
  border-bottom-color: var(--gold);
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 8px;
}
.auth-form.is-active { display: flex; }

label {
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

input[type="text"], input[type="tel"], input[type="email"],
input[type="date"], input[type="url"], input[type="number"], input[type="search"] {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  color: var(--text-strong);
  padding: 12px 14px;
  font-family: var(--ff-body);
  font-size: 16px;       /* iOS Safari auto-zooms inputs below 16px — keep exactly this */
  line-height: 1.4;
  border-radius: var(--radius-sm);
  outline: none;
  box-shadow: none;      /* override Chrome default focus shadow on url/email inputs */
  transition: border-color .15s;
  width: 100%;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
input[type="text"]:focus, input[type="tel"]:focus, input[type="email"]:focus,
input[type="date"]:focus, input[type="url"]:focus, input[type="number"]:focus, input[type="search"]:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 1px var(--gold);
}
input:focus {
  border-color: var(--gold);
}
input[readonly] { opacity: .6; }

.phone-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.phone-row:focus-within {
  border-color: var(--gold);
}
.phone-row .cc-select {
  flex: 0 0 auto;
  width: 110px;
  background-color: rgba(0,0,0,0.4);
  border: none;
  border-right: 1px solid var(--border);
  color: var(--text-strong);
  font-family: var(--ff-body);
  font-size: 16px;       /* iOS Safari auto-zooms selects below 16px too — match input */
  line-height: 1.2;
  padding: 12px 24px 12px 12px;
  margin: 0;
  min-height: 44px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%23c9970a' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
}
.phone-row .cc-select:focus { outline: none; }
.phone-row .cc-select option {
  background: var(--navy2);
  color: var(--text-strong);
  font-family: var(--ff-body);
}
.phone-row input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
  min-width: 0;
}
.phone-row input:focus { outline: none; }
@media (max-width: 420px) {
  .phone-row .cc-select { width: 96px; padding-left: 8px; padding-right: 20px; font-size: 13px; }
}

.hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

button.primary {
  margin-top: 16px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 24px;
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s, transform .05s;
  border-radius: var(--radius-sm);
  min-height: 48px;          /* Mobile-friendly touch target */
  width: 100%;
  -webkit-tap-highlight-color: transparent;
}
button.primary:hover { background: var(--gold2); }
button.primary:active { transform: scale(0.98); }
button.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

button.ghost {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
button.ghost:hover { border-color: var(--gold); color: var(--gold2); }

button.link-btn {
  background: none;
  border: none;
  color: var(--gold2);
  font-family: var(--ff-body);
  font-size: 14px;
  cursor: pointer;
  padding: 12px 8px;       /* extra padding for finger taps */
  margin-top: 4px;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
}
button.link-btn:hover:not(:disabled) { text-decoration: underline; }
button.link-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.7;
}
button.link-btn.subtle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
button.link-btn.subtle:hover { color: var(--text); }

.resend-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}
.resend-timer {
  font-size: 13px;
  color: var(--muted);
  font-family: var(--ff-body);
}

.status {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
  min-height: 18px;
}
.status[data-kind="error"] { color: var(--error); }

.legal {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 380px;
  line-height: 1.6;
}

.brand-footer {
  padding: 28px 20px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--navy2);
}
.footer__group-line {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer__group-line strong {
  color: var(--gold);
  font-weight: 600;
}
.logotype-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 36px;
  padding: 8px 0 20px;
  max-width: 920px;
  margin: 0 auto;
}
.logotype-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px 4px;
  border-radius: 3px;
  transition: background-color .15s;
}
.logotype-strip a:hover { background: rgba(201, 151, 10, 0.08); }
.logotype-strip a:focus-visible {
  outline: 1px solid var(--gold);
  outline-offset: 2px;
}
.logotype-strip img {
  height: 32px;
  width: auto;
  opacity: 0.78;
  filter: brightness(0) invert(1);   /* PNGs are black-on-transparent → white on navy */
  transition: opacity .15s;
  display: block;
}
.logotype-strip a:hover img { opacity: 1; }
@media (max-width: 540px) {
  .logotype-strip { gap: 18px 24px; }
  .logotype-strip img { height: 22px; }
}
.copy {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   App shell (app.html)
   ============================================================ */
.page-app {
  background: var(--navy);
  min-height: 100vh;
  padding-bottom: 48px;
}

/* Tier badge — Option E variant (Triragga ribbon top + bottom for Custodi) */
.tier-badge {
  display: inline-block;
  vertical-align: middle;
  border-radius: 0;
  overflow: hidden;
  line-height: 1;
}
.tier-badge__name {
  display: block;
  font-family: var(--ff-display);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}
.tier-badge[data-tier="cadet"]            { border: none; padding: 0; }
.tier-badge[data-tier="cadet"] .tier-badge__name {
  padding: 4px 0; color: var(--muted, #8a8a82); font-style: italic; font-size: 11px;
}
.tier-badge[data-tier="operator"] {
  border: 1px solid #987F60; border-radius: 2px;
}
.tier-badge[data-tier="operator"] .tier-badge__name {
  padding: 5px 14px; color: #cfc4a8; font-size: 11px;
}
.tier-badge[data-tier="vanguard"] {
  border: 1px solid var(--gold); background: rgba(201,151,10,0.12); border-radius: 2px;
}
.tier-badge[data-tier="vanguard"] .tier-badge__name {
  padding: 5px 14px; color: var(--gold2, #fab811); font-size: 11px; font-weight: 600;
}
.tier-badge[data-tier="custodi_servientem"] {
  background: #0a0e1a;
  border-left: 1px solid var(--gold, #c9970a);
  border-right: 1px solid var(--gold, #c9970a);
  border-top: none; border-bottom: none;
}
.tier-badge[data-tier="custodi_servientem"] .tier-badge__ribbon {
  height: 4px;
  background: linear-gradient(to bottom, #987F60 0% 40%, #000 40% 60%, #7e7e42 60% 100%);
}
.tier-badge[data-tier="custodi_servientem"] .tier-badge__name {
  padding: 10px 24px 9px;
  font-size: 12px;
  letter-spacing: 0.32em;
  color: var(--gold2, #fab811);
  font-weight: 500;
}
.tier-badge__manual {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--ff-display);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold, #c9970a);
  vertical-align: middle;
}
/* Reason text below the badge in the KPI cell (small italic muted) */
.tier-reason-mini {
  font-family: var(--ff-body);
  font-size: 11px;
  color: var(--muted, #8a8a82);
  font-style: italic;
  line-height: 1.4;
  text-align: center;
  max-width: 220px;
  margin: 0 auto;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}

/* ── Points pane ──────────────────────────────────────────────────────── */
.points-hero {
  background: linear-gradient(135deg, rgba(201,151,10,0.12), rgba(8,14,28,0.0));
  border: 1px solid rgba(201,151,10,0.35);
  border-left: 3px solid var(--gold, #c9970a);
  padding: 28px 32px;
  border-radius: 4px;
}
.points-hero__label {
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #c9970a);
  margin-bottom: 10px;
}
.points-hero__value {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: 0.04em;
  color: var(--gold2, #fab811);
  line-height: 1;
}
.points-hero__sub {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 58ch;
}
.points-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.points-row + .points-row { margin-top: 8px; }
.points-row:hover { border-color: rgba(201,151,10,0.4); }
.points-row__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--gold);
  background: rgba(201,151,10,0.08);
  border-radius: 50%;
  flex-shrink: 0;
}
.points-row__body { min-width: 0; }
.points-row__delta {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.points-row__delta--earn { color: var(--success, #5fc99a); }
.points-row__delta--burn { color: var(--danger,  #d68b6e); }
@media (max-width: 540px) {
  .points-hero { padding: 20px 18px; }
  .points-hero__value { font-size: 42px; }
  .points-row { grid-template-columns: auto 1fr; }
  .points-row__delta { grid-column: 2; text-align: right; margin-top: 2px; }
}

/* ──────────────── Intro flash (Aegis arrival) ────────────────────────
   Full-screen brand intro, played once per session. Hidden by DEFAULT so
   repeat-session users never see a flash before intro.js can suppress it.
   intro.js sets body.intro-playing when the animation should actually run. */
#intro-flash { display: none; }
body.intro-playing #intro-flash {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy, #080e1c);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  animation: introFade 2.6s ease forwards;
  pointer-events: none;
}
#intro-flash img {
  width: 104px; height: 104px; border-radius: 50%;
  animation: introLogo 2.6s ease forwards;
  object-fit: contain;
}
#intro-flash .intro-mark {
  font-family: var(--ff-display, 'Barlow Condensed'), serif;
  font-weight: 700;
  font-size: 30px; letter-spacing: 14px;
  text-transform: uppercase;
  color: var(--gold2, #fab811);
  line-height: 1;
  padding-left: 14px;            /* visual centre offset for letter-spacing */
  opacity: 0;
  animation: introMark 2.6s ease forwards;
}
#intro-flash .intro-tagline {
  font-family: var(--ff-display, 'Barlow Condensed'), serif;
  font-weight: 500;
  font-size: 9px; letter-spacing: 6px;
  text-transform: uppercase;
  color: #8a9bb0;
  line-height: 1;
  margin-top: -6px;
  opacity: 0;
  animation: introTagline 2.6s ease forwards;
}
@keyframes introFade {
  0% { opacity: 1; } 75% { opacity: 1; }
  95% { opacity: 0; } 100% { opacity: 0; visibility: hidden; }
}
@keyframes introLogo {
  0%   { opacity: 0; transform: scale(0.85); }
  18%  { opacity: 1; transform: scale(1); }
  82%  { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
@keyframes introMark {
  0%   { opacity: 0; letter-spacing: 24px; }
  25%  { opacity: 0; letter-spacing: 24px; }
  45%  { opacity: 1; letter-spacing: 14px; }
  82%  { opacity: 1; letter-spacing: 14px; }
  100% { opacity: 0; }
}
@keyframes introTagline {
  0%   { opacity: 0; } 40% { opacity: 0; }
  60%  { opacity: 1; } 82% { opacity: 1; }
  100% { opacity: 0; }
}
body.intro-done #intro-flash { display: none; }
@media (max-width: 640px) {
  #intro-flash .intro-mark    { font-size: 22px; letter-spacing: 10px; padding-left: 10px; }
  #intro-flash .intro-tagline { font-size: 8px; letter-spacing: 4px; }
}

/* Legacy alias — keep .tier-pill class working for any old callers */
.tier-pill {
  background: var(--gold);
  color: var(--navy);
  padding: 4px 12px;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 100px;
}

/* Link prompt */
.link-prompt {
  max-width: 520px;
  margin: 48px auto;
  padding: 0 20px;
}
.card {
  background: var(--panel-bg-strong);
  border: 1px solid var(--border);
  padding: 32px;
}
.card h2 {
  font-family: var(--ff-display);
  font-size: 24px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  margin-bottom: 24px;
}
.card form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Dashboard */
.app-shell {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 24px;
}

.hero-strip {
  background: var(--panel-bg-strong);
  border: 1px solid var(--border);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.hero-identity {
  display: flex;
  align-items: center;
  gap: 20px;
}
.hero-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.hero-avatar #hero-avatar-initials {
  font-family: var(--ff-display);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--gold);
  font-weight: 700;
}
.hero-text { min-width: 0; }
@media (max-width: 540px) {
  .hero-avatar { width: 56px; height: 56px; }
  .hero-avatar #hero-avatar-initials { font-size: 18px; }
}
.eyebrow {
  font-family: var(--ff-display);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.hero-left h1 {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.meta-row { color: var(--muted); font-size: 14px; }
.meta-row .dot { margin: 0 8px; }

.hero-right {
  display: flex;
  gap: 32px;
}
.kpi {
  text-align: center;
}
.kpi-label {
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.kpi-value {
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--gold2);
}
/* When the tier cell holds a badge, reset the kpi-value number styling so
   the badge component's own typography takes over. */
.kpi-value.tier-text {
  font-size: inherit;
  font-weight: normal;
  color: inherit;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}
.dashtab {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--ff-display);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.dashtab:hover { color: var(--text); }
.dashtab.is-active {
  color: var(--gold2);
  border-bottom-color: var(--gold);
}

.pane { display: none; }
.pane.is-active { display: block; }
.pane h3 {
  font-family: var(--ff-display);
  font-size: 20px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.pane-sub {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 20px;
  max-width: 640px;
  font-style: italic;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr; }
  .hero-right { justify-content: space-between; }
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  padding: 20px;
}
.panel header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.panel header h3 { font-size: 14px; margin: 0; letter-spacing: 1.5px; }
.panel header a { font-size: 12px; }
.empty {
  color: var(--muted);
  font-style: italic;
  padding: 12px 0;
}

.row-strong {
  color: var(--text-strong);
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
}
.row-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 2px;
}
.mono {
  font-family: 'SF Mono', Menlo, monospace;
  letter-spacing: 1px;
  color: var(--gold2);
}

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 16px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
}
.list-item.list-item--with-thumbs {
  grid-template-columns: auto 1fr auto;
}
.list-side { text-align: right; }

/* ── Google review prompt panels (GSH / Defensa, gated to recent visits) */
.review-prompt {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(201,151,10,0.08), rgba(250,184,17,0.04));
  border: 1px solid rgba(201,151,10,0.35);
  border-left-width: 3px;
  border-left-color: var(--gold, #c9970a);
  border-radius: 3px;
}
.review-prompt[data-brand="gsh"] {
  /* The Hop voice — atmospheric, parchment-tinted accent */
  background: linear-gradient(135deg, rgba(126,126,66,0.10), rgba(196,154,60,0.04));
  border-left-color: #c49a3c;
}
.review-prompt[data-brand="defensa"] {
  /* Defensa voice — coffee-warm accent */
  background: linear-gradient(135deg, rgba(152,127,96,0.12), rgba(184,160,128,0.04));
  border-left-color: #b8a080;
}
.review-prompt__eyebrow {
  font-family: var(--ff-display);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold, #c9970a);
  margin-bottom: 4px;
}
.review-prompt__text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}
.review-prompt__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-strong);
  background: transparent;
  border: 1px solid var(--gold, #c9970a);
  border-radius: 2px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 120ms ease, color 120ms ease;
  cursor: pointer;
}
.review-prompt__cta:hover {
  background: var(--gold, #c9970a);
  color: var(--navy, #080e1c);
}
.review-prompt__cta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
  /* On hover the button background turns gold — keep the Google G readable
     against it by lifting it onto a tiny white chip. */
  background: #fff;
  border-radius: 50%;
  padding: 1px;
  box-sizing: content-box;
}
@media (max-width: 540px) {
  .review-prompt { grid-template-columns: 1fr; gap: 12px; }
  .review-prompt__cta { justify-self: start; }
}

/* ── Product thumbnails (list rows + tiles) ──────────────────────────── */
.thumb-strip { display: flex; gap: 6px; align-items: center; }
.line-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
  overflow: hidden;
  flex-shrink: 0;
}
.line-thumb--lg { width: 56px; height: 56px; font-size: 13px; }
.line-thumb--ph { /* placeholder: 2-letter mark when no image */ }
.muted { color: var(--muted); opacity: 0.85; }

/* Tile (Overview panel): thumb on the left, body on the right */
.tile-with-thumb {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.tile-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
}
.tile-body { min-width: 0; }    /* let text truncate inside grid */

@media (max-width: 540px) {
  .list-item.list-item--with-thumbs { grid-template-columns: auto 1fr; }
  .list-item.list-item--with-thumbs .list-side { grid-column: 2; text-align: left; padding-top: 6px; }
  .line-thumb, .line-thumb--lg { width: 40px; height: 40px; }
  .tile-thumb { width: 44px; height: 44px; }
}

.status-pill {
  display: inline-block;
  padding: 2px 10px;
  font-family: var(--ff-display);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 1px solid var(--muted);
  color: var(--muted);
  margin-top: 4px;
  border-radius: 2px;
}
.status-pill[data-status="paid"], .status-pill[data-status="delivered"] {
  border-color: var(--success); color: var(--success);
}
.status-pill[data-status="cancelled"], .status-pill[data-status="rejected"] {
  border-color: var(--error); color: var(--error);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(201, 151, 10, 0.1);
  color: var(--gold2);
  font-family: var(--ff-display);
  letter-spacing: 1px;
}

.voucher-mini { padding: 10px 0; border-bottom: 1px solid var(--border); }
.voucher-mini:last-child { border-bottom: none; }

.voucher-card {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  border: 1px solid var(--gold);
  padding: 24px;
  margin-bottom: 12px;
  position: relative;
}
.voucher-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--tan) 0%, var(--tan) 40%,
    #000 40%, #000 60%,
    var(--olive) 60%, var(--olive) 100%
  );
}
.voucher-type {
  font-family: var(--ff-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold2);
  margin-bottom: 12px;
}
.voucher-code {
  font-size: 24px;
  letter-spacing: 4px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(0,0,0,0.4);
  text-align: center;
}
.voucher-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.brand-link-list { list-style: none; }
.brand-link-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.brand-link-list li:last-child { border-bottom: none; }
.dot-marker {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* Profile form — full width, responsive 2-col on desktop */
.profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  background: var(--panel-bg);
  border: 1px solid var(--border);
  padding: 28px;
  max-width: 100%;
}
.profile-form > label,
.profile-form > h4,
.profile-form > .checkbox-row,
.profile-form > button.primary,
.profile-form > .status,
.profile-form > .avatar-row { grid-column: 1 / -1; }
.profile-form > label + input,
.profile-form > label + .prefix-input { grid-column: 1 / -1; }
.profile-form > .name-history { grid-column: 1 / -1; }
@media (max-width: 720px) {
  .profile-form { grid-template-columns: 1fr; padding: 18px; gap: 10px; }
}

/* "Previously known as" — alias history block under the Full name field */
.name-history {
  margin: 0 0 6px;
  padding: 10px 14px;
  background: rgba(201, 151, 10, 0.06);   /* warm gold tint */
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
}
.name-history__title {
  font-family: var(--ff-cond, 'Barlow Condensed'), sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold2, #fab811);
  margin-bottom: 6px;
}
.name-history__list { list-style: none; margin: 0; padding: 0; }
.name-history__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
  font-size: 13px;
}
.name-history__list li:last-child { border-bottom: none; }
.name-history__name {
  color: var(--text);
  font-weight: 500;
}
.name-history__dates {
  color: var(--muted, #8a8a82);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.name-history__note {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted, #8a8a82);
  line-height: 1.45;
  font-style: italic;
}
@media (max-width: 720px) {
  .name-history__list li { flex-direction: column; align-items: flex-start; gap: 2px; }
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: none;
  font-family: var(--ff-body);
  font-size: 14px;
  letter-spacing: normal;
  color: var(--text);
  margin-top: 12px;
}
.checkbox-row input { width: 18px; height: 18px; }

/* Banner errors */
.banner-error {
  background: var(--error);
  color: white;
  padding: 12px 24px;
  text-align: center;
  font-family: var(--ff-display);
  letter-spacing: 1px;
}

/* ============================================================
   Mobile / iOS polish
   ============================================================ */

html {
  -webkit-text-size-adjust: 100%;        /* Prevent iOS landscape font-resize */
  text-size-adjust: 100%;
}

/* Make sure no interactive form element drops below 16px font on mobile
   (Safari auto-zooms inputs/selects < 16px on focus). Re-asserting here
   in case any rule above slips through. */
@media (max-width: 540px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Dashboard tabs (Overview / Orders / Visits / Vouchers / Warranty / Profile)
   need bigger tap targets on mobile and side-scroll affordance. */
@media (max-width: 720px) {
  .tab-bar { -webkit-overflow-scrolling: touch; }
  .dashtab {
    padding: 16px 18px;
    min-height: 48px;
    font-size: 13px;
  }
  .pane h3 { font-size: 18px; }
  .hero-strip { padding: 24px 20px; }
  .hero-left h1 { font-size: 26px; }
  .kpi-value { font-size: 22px; }
  .kpi-value.tier-text { font-size: 14px; padding-top: 8px; }
  .app-shell { padding: 0 16px; margin: 20px auto; }
  .panel { padding: 16px; }
  .list-item { padding: 14px; gap: 12px; }
  .voucher-card { padding: 20px; }
  .voucher-code { font-size: 20px; letter-spacing: 3px; }
}

/* Auth card mobile padding */
@media (max-width: 540px) {
  .auth-shell { padding: 28px 16px; }
  .auth-card { padding: 20px; }
  .auth-headline { font-size: 1.6rem; }
  .auth-tabs .tab { padding: 14px 0; min-height: 44px; }
  .auth-hero .eyebrow { font-size: 0.65rem; letter-spacing: 0.25em; }
}

/* Profile form on mobile */
@media (max-width: 540px) {
  .profile-form { padding: 18px; }
  .checkbox-row { padding: 8px 0; }
  .checkbox-row input { width: 22px; height: 22px; }  /* easier to tap */
}

/* Brand footer logotype strip — tighter wrap on phones */
@media (max-width: 540px) {
  .brand-footer { padding: 22px 16px 18px; }
  .footer__group-line { font-size: 0.7rem; letter-spacing: 0.2em; margin-bottom: 14px; }
  .logotype-strip { gap: 16px 22px; padding-bottom: 14px; }
  .logotype-strip img { height: 20px; }
  .copy { font-size: 10px; }
}

/* Tap-highlight cleanup across all interactive elements */
button, a, select, input[type="submit"], .tab, .dashtab {
  -webkit-tap-highlight-color: transparent;
}

/* Ensure inputs don't show iOS gradient/inner-shadow look on date / tel */
input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  font-family: var(--ff-body);
}

/* OTP input — bigger and finger-friendly. Letter-spacing pushes the content
   right by half a slot, so add equivalent text-indent to re-center, and
   use slightly smaller spacing so all 6 dots fit comfortably. */
#otp-input {
  font-size: 26px !important;
  letter-spacing: 0.35em;
  text-indent: 0.35em;   /* visually re-center despite trailing letter-spacing */
  text-align: center;
  padding: 16px 14px;
  font-family: 'SF Mono', Menlo, monospace;
}

/* Disable iOS double-tap-zoom on buttons and tabs */
button, .tab, .dashtab { touch-action: manipulation; }

/* ============================================================
   Announcement bar (scoped per-app via msi_core.announcements)
   ============================================================ */
.announcement-bar {
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.announcement {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(201, 151, 10, 0.08);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-sm);
  position: relative;
}
.announcement[data-variant="success"]  { border-left-color: var(--success); background: rgba(106, 168, 136, 0.08); }
.announcement[data-variant="warning"]  { border-left-color: var(--warning, #d4a82a); background: rgba(212, 168, 42, 0.08); }
.announcement[data-variant="accent"]   { border-left-color: var(--gold2); background: rgba(250, 184, 17, 0.08); }
.announcement-body { flex: 1; }
.announcement-title {
  font-family: var(--ff-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-strong);
  margin-bottom: 4px;
}
.announcement-text { font-size: 14px; line-height: 1.55; color: var(--text); }
.announcement-link {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold2);
}
.announcement-link::after { content: ' →'; }
.announcement-dismiss {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  margin-top: -2px;
}
.announcement-dismiss:hover { color: var(--text-strong); }

/* ============================================================
   Brand-themed overview tiles — SOLID brand fills + monogram
   Each tile uses one property's primary brand color as the fill,
   and text colors lifted from that property's own site palette.
   ============================================================ */
.panel[data-brand] {
  position: relative;
  overflow: hidden;
}
.panel[data-brand] .brand-monogram {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: 0.95;
}
.panel[data-brand] header { padding-right: 60px; }
.panel[data-brand] header h3 { color: var(--brand-title); }
.panel[data-brand] header a {
  font-size: 12px;
  color: var(--brand-link);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  opacity: 0.85;
}
.panel[data-brand] header a:hover { opacity: 1; }
.panel[data-brand] .empty       { color: var(--brand-body); opacity: 0.78; font-style: italic; }
.panel[data-brand] .row-strong  { color: var(--brand-title); }
.panel[data-brand] .row-sub     { color: var(--brand-body); opacity: 0.85; }

/* Molay / Askeer / Taru tile — MSI parent navy + gold */
.panel[data-brand="vanguard"] {
  --brand-title: #fab811;
  --brand-body:  #f0ead8;
  --brand-link:  #fab811;
  background: #080e1c;             /* MSI parent navy */
  border: 1px solid #c9970a;
}
/* MSI roundel is colored gold-on-transparent — natural display */

/* The Hop · Hasta Laksana — EXACT olive from their intro, with DARK text */
.panel[data-brand="gsh"] {
  --brand-title: #1a1a0a;          /* near-black — matches GSH ink #0c0a07 spirit */
  --brand-body:  #1a1a0a;
  --brand-link:  #2a2a14;
  background: #7e7e42;             /* gsh_website --olive (matches Hasta Laksana intro) */
  border: 1px solid #4d4d28;
  color: #1a1a0a;
}
.panel[data-brand="gsh"] .brand-monogram { opacity: 0.92; }
.panel[data-brand="gsh"] .row-strong,
.panel[data-brand="gsh"] header h3 { color: var(--brand-title); }
.panel[data-brand="gsh"] .row-sub   { color: var(--brand-body); opacity: 0.85; }
.panel[data-brand="gsh"] .empty     { color: var(--brand-body); opacity: 0.75; }
.panel[data-brand="gsh"] header a   { color: var(--brand-link); }

/* Defensa — EXACT coyote tan from their intro, with DARK text */
.panel[data-brand="defensa"] {
  --brand-title: #1c1108;          /* near-black, matches Defensa --brew spirit */
  --brand-body:  #1c1108;
  --brand-link:  #2e1c11;
  background: #987F60;             /* defensa intro coyote tan — exact match */
  border: 1px solid #6b563f;
  color: #1c1108;
}
.panel[data-brand="defensa"] .row-strong,
.panel[data-brand="defensa"] header h3 { color: var(--brand-title); }
.panel[data-brand="defensa"] .row-sub  { color: var(--brand-body); opacity: 0.85; }
.panel[data-brand="defensa"] .empty    { color: var(--brand-body); opacity: 0.75; }
.panel[data-brand="defensa"] header a  { color: var(--brand-link); }
/* New Defensa monogram (DEFENSA_Logo_QR.png) is a clean 1080×1080 square — uses default tile sizing */
.panel[data-brand="defensa"] .brand-monogram { opacity: 0.95; }

/* Reclaimed — antique teak with transparent monogram (lifted so dark ink monogram reads) */
.panel[data-brand="reclaimed"] {
  --brand-title: #f3ead2;          /* their --cream */
  --brand-body:  #f3ead2;
  --brand-link:  #e2b765;          /* slightly brighter antique gold for contrast */
  background: #6b4423;             /* mid-teak — lighter than walnut so the dark monogram reads */
  border: 1px solid #c4933f;
  color: #f3ead2;
}
.panel[data-brand="reclaimed"] .brand-monogram {
  opacity: 0.95;
}
.panel[data-brand="reclaimed"] .row-strong,
.panel[data-brand="reclaimed"] header h3 { color: var(--brand-title); }
.panel[data-brand="reclaimed"] .row-sub  { color: var(--brand-body); opacity: 0.85; }
.panel[data-brand="reclaimed"] .empty    { color: var(--brand-body); opacity: 0.78; font-style: italic; }
.panel[data-brand="reclaimed"] header a  { color: var(--brand-link); }

/* ============================================================
   Profile · Avatar + Social + Section Headers
   ============================================================ */
.avatar-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  border: 1.5px solid var(--gold);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.avatar-wrap #pf-avatar-initials {
  font-family: var(--ff-display);
  font-size: 28px;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
}
.avatar-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(8, 14, 28, 0.7);
  z-index: 5;
}
.avatar-wrap.is-busy .avatar-spinner { display: flex; }
.avatar-spinner-ring {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(201, 151, 10, 0.18);
  border-top-color: var(--gold2);
  border-radius: 50%;
  animation: aegis-spin 0.8s linear infinite;
}
@keyframes aegis-spin { to { transform: rotate(360deg); } }
.avatar-controls {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}
.avatar-help {
  flex-basis: 100%;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}
@media (max-width: 540px) {
  .avatar-row {
    grid-template-columns: 80px 1fr;
    gap: 14px;
  }
  .avatar-wrap { width: 80px; height: 80px; }
}
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold2);
  padding: 8px 16px;
  font-family: var(--ff-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color .15s, color .15s;
  min-height: 40px;
  line-height: 24px;
  text-align: center;
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--navy);
}

.section-sub {
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
  margin-bottom: 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.section-sub .optional {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 6px;
}

.prefix-input {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prefix-input:focus-within { border-color: var(--gold); }
.prefix-input .prefix {
  padding: 12px 14px;
  color: var(--muted);
  font-family: var(--ff-body);
  font-size: 16px;
  background: rgba(0,0,0,0.4);
  border-right: 1px solid var(--border);
}
.prefix-input input {
  border: none;
  background: transparent;
  flex: 1;
  padding: 12px 14px;
  font-size: 16px;
}
.prefix-input input:focus { outline: none; box-shadow: none; border: none; }
.prefix-input:focus-within { box-shadow: 0 0 0 1px var(--gold); }

/* ============================================================
   Order accordion (Orders + Reclaimed panes)
   ============================================================ */
.list-item.is-expandable { cursor: pointer; }
.list-item.is-expandable:hover { border-color: var(--gold); }
.list-item .expand-arrow {
  font-family: var(--ff-display);
  color: var(--gold);
  font-size: 14px;
  margin-left: 8px;
  transition: transform 0.15s;
}
.list-item.is-expanded .expand-arrow { transform: rotate(90deg); }

.order-details {
  display: none;
  grid-column: 1 / -1;
  padding: 16px 0 4px;
  border-top: 1px dashed var(--border);
  margin-top: 12px;
}
.list-item.is-expanded .order-details { display: block; }

.order-lines {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}
.order-lines th {
  text-align: left;
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 6px;
  border-bottom: 1px solid var(--border);
}
.order-lines td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-soft, rgba(232,223,196,0.04));
  vertical-align: top;
}
.order-lines td.num { text-align: right; font-variant-numeric: tabular-nums; }
.order-lines tfoot td {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.order-lines tfoot td.label { color: var(--muted); }

.order-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.order-action-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold2);
  font-family: var(--ff-display);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-action-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 151, 10, 0.08);
  text-decoration: none;
}
