/* ============================================================
   Jyotishe — Royal Vedic Wedding theme
   Maroon · Gold · Cream | Cormorant Garamond + Rozha One + Mulish
   ============================================================ */

:root {
  --maroon: #7b1e3c;
  --maroon-deep: #5c1129;
  --maroon-ink: #43091c;
  --gold: #c9a24b;
  --gold-deep: #ab8534;
  --gold-soft: #e8d5a6;
  --gold-pale: #f7ecd2;
  --bg: #fff9f0;
  --bg-soft: #fdf3e0;
  --card: #fffdf7;
  --text: #2b1b12;
  --text-muted: #7a6a5c;
  --border: #ecdfc6;
  --border-strong: #c9a24b;
  --danger: #a8232e;
  --danger-soft: #fbe9ea;
  --success: #2e6b3f;
  --success-soft: #e4efe2;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 28px rgba(123, 30, 60, 0.09);
  --shadow-soft: 0 3px 14px rgba(123, 30, 60, 0.06);
  --font-body: "Mulish", "Segoe UI", system-ui, sans-serif;
  --font-head: "Cormorant Garamond", Georgia, serif;
  --font-brand: "Rozha One", Georgia, serif;
  --max: 720px;
  --max-wide: 1100px;

  /* aliases kept for older inline styles */
  --accent: var(--gold);
  --accent-hover: var(--gold-deep);
  --accent-soft: var(--gold-pale);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  background:
    radial-gradient(circle at 12% -4%, rgba(201, 162, 75, 0.12), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(123, 30, 60, 0.07), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--maroon-ink);
  line-height: 1.2;
}

a {
  color: var(--maroon);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

svg {
  vertical-align: middle;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
  background: rgba(255, 253, 247, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(201, 162, 75, 0.25);
}

.logo {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--maroon);
}

.logo span {
  color: var(--gold-deep);
}

.logo:hover {
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-select {
  border: 1px solid var(--gold);
  background: var(--card);
  color: var(--text);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  cursor: pointer;
}

/* ------------------------------------------------------------
   Layout
   ------------------------------------------------------------ */
.main {
  flex: 1;
  width: 100%;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 1.75rem 0 3rem;
}

.container-wide {
  width: min(100% - 2rem, var(--max-wide));
  margin-inline: auto;
  padding: 1.75rem 0 3rem;
}

/* ------------------------------------------------------------
   Ornaments
   ------------------------------------------------------------ */
.page-title {
  font-size: 2rem;
  margin: 0 0 0.4rem;
  position: relative;
}

.page-title::after {
  content: "";
  display: block;
  width: 74px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft) 70%, transparent);
  border-radius: 2px;
}

.page-sub {
  color: var(--text-muted);
  margin: 0.6rem 0 1.6rem;
  font-size: 0.98rem;
}

.gold-divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 1.5rem 0;
  color: var(--gold);
}

.gold-divider::before,
.gold-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

/* ------------------------------------------------------------
   Hero (landing)
   ------------------------------------------------------------ */
.hero {
  min-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 1.25rem 3.5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 118%, rgba(201, 162, 75, 0.22), transparent 52%),
    radial-gradient(circle at 8% 12%, rgba(123, 30, 60, 0.06), transparent 32%),
    radial-gradient(circle at 94% 16%, rgba(201, 162, 75, 0.12), transparent 30%),
    linear-gradient(180deg, #fffdf7 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--gold-soft);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 75, 0.28);
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -190px;
  right: -150px;
  box-shadow: 0 0 0 28px rgba(201, 162, 75, 0.07), 0 0 0 60px rgba(201, 162, 75, 0.04);
}

.hero::after {
  width: 330px;
  height: 330px;
  bottom: -160px;
  left: -120px;
  box-shadow: 0 0 0 24px rgba(123, 30, 60, 0.05), 0 0 0 52px rgba(123, 30, 60, 0.03);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.hero-kicker svg {
  width: 15px;
  height: 15px;
}

.hero-brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3rem, 11vw, 5rem);
  letter-spacing: 0.01em;
  margin: 0 0 0.9rem;
  line-height: 1.04;
  color: var(--maroon);
}

.hero-brand em {
  font-style: normal;
  color: var(--gold-deep);
}

.hero-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 4.5vw, 2rem);
  font-weight: 600;
  font-style: italic;
  margin: 0 0 0.65rem;
  max-width: 26ch;
  color: var(--maroon-ink);
}

.hero-sub {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 44ch;
  font-size: 1.02rem;
}

.hero-cta {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  padding: 1rem 2.2rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Landing sections
   ------------------------------------------------------------ */
.landing-page {
  padding-bottom: 6rem;
}

.offer-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  padding: 0.6rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.offer-strip .cut {
  text-decoration: line-through;
  opacity: 0.65;
  font-weight: 600;
}

.offer-strip .now {
  background: var(--gold);
  color: var(--maroon-ink);
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-weight: 800;
}

.landing-section {
  padding: 3.25rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
}

.landing-section h2 {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: 2rem;
}

.landing-section .lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.trust {
  padding: 3.25rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
  background: var(--card);
}

.trust h2 {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 2rem;
}

.trust-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 700px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.trust-item {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  position: relative;
}

.trust-item::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(201, 162, 75, 0.25);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}

.trust-item strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--maroon);
}

.trust-item strong svg {
  width: 19px;
  height: 19px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

.trust-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.how-steps {
  display: grid;
  gap: 1.1rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 800px) {
  .how-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-step {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.how-step .num {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.65rem;
  box-shadow: 0 0 0 3px var(--gold-pale), 0 0 0 4px var(--gold-soft);
}

.how-step strong {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--maroon-ink);
}

.price-compare {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  align-items: stretch;
  width: min(100%, 680px);
  margin-inline: auto;
}

.price-box {
  flex: 1 1 240px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.price-box.hot {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.price-box.hot .hint {
  color: rgba(247, 236, 210, 0.75);
}

.price-box .old {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1.15rem;
}

.price-box.hot .old {
  color: rgba(247, 236, 210, 0.6);
}

.price-box .new {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  margin: 0.3rem 0;
  color: var(--gold);
}

.faq details {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  margin: 0 auto 0.7rem;
  background: var(--card);
  width: min(100%, 660px);
  box-shadow: var(--shadow-soft);
}

.faq summary {
  font-weight: 700;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--maroon-ink);
}

.sticky-offer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--maroon-deep), var(--maroon));
  color: var(--gold-pale);
  border-top: 2px solid var(--gold);
  padding: 0.8rem 1.15rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -6px 24px rgba(67, 9, 28, 0.25);
}

.sticky-offer .timer {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.sticky-offer .btn {
  white-space: nowrap;
  background: linear-gradient(160deg, var(--gold), var(--gold-deep));
  border-color: var(--gold-deep);
  color: var(--maroon-ink);
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--maroon-deep);
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.97rem;
  letter-spacing: 0.015em;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 3px 12px rgba(123, 30, 60, 0.25);
}

.btn:hover {
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(123, 30, 60, 0.32);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn svg {
  width: 17px;
  height: 17px;
}

.btn-block {
  width: 100%;
}

.btn-outline {
  background: var(--card);
  color: var(--maroon);
  border: 1.5px solid var(--gold);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--gold-pale);
  box-shadow: var(--shadow-soft);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.83rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.danger-btn {
  background: var(--card);
  color: var(--danger);
  border-color: var(--danger);
  box-shadow: none;
}

.danger-btn:hover {
  background: var(--danger-soft);
}

/* ------------------------------------------------------------
   Forms & cards
   ------------------------------------------------------------ */
.form-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.4rem;
  color: var(--maroon-ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 0.9rem;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #fffefb;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.phone-row {
  display: flex;
  gap: 0.5rem;
}

.phone-row .prefix {
  flex: 0 0 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  font-weight: 800;
  background: var(--gold-pale);
  color: var(--maroon-ink);
}

.section-card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.section-card h2,
.section-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

/* ------------------------------------------------------------
   Progress steps
   ------------------------------------------------------------ */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step {
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--card);
}

.step.active {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  border-color: var(--maroon-deep);
  color: var(--gold-pale);
}

.step.done {
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  color: var(--gold-deep);
}

/* ------------------------------------------------------------
   OTP
   ------------------------------------------------------------ */
.otp-inputs {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin: 1.1rem 0 1.3rem;
}

.otp-inputs input {
  width: 2.9rem;
  height: 3.3rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fffefb;
  color: var(--maroon-ink);
}

.otp-inputs input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.22);
}

/* ------------------------------------------------------------
   Categories
   ------------------------------------------------------------ */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

@media (min-width: 560px) {
  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-tile {
  display: block;
  text-align: center;
  padding: 1.05rem 0.7rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-sm);
  background: var(--card);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--maroon-ink);
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.12s ease, border-color 0.15s ease;
}

.category-tile:hover,
.category-tile.selected {
  background: var(--gold-pale);
  border-color: var(--gold);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ------------------------------------------------------------
   Suggestions
   ------------------------------------------------------------ */
.suggestions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.suggestion {
  border: 1px dashed var(--gold);
  background: var(--gold-pale);
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius-sm);
  text-align: left;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  color: var(--maroon-ink);
  transition: background 0.15s ease;
}

.suggestion:hover {
  background: var(--gold-soft);
}

/* ------------------------------------------------------------
   Analyzing timer
   ------------------------------------------------------------ */
.analyzing {
  text-align: center;
  padding: 2.5rem 0;
}

.timer-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.6rem;
  position: relative;
}

.timer-ring {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid var(--gold-soft);
  border-top-color: var(--maroon);
  animation: spin 1.25s linear infinite;
}

.timer-wrap .seconds {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--maroon-ink);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.status-line {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 600;
  font-style: italic;
  min-height: 1.6em;
  margin: 0 0 0.5rem;
  color: var(--maroon);
}

.status-hint {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Chat / answer
   ------------------------------------------------------------ */
.chat {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.bubble {
  max-width: 92%;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
  font-size: 0.96rem;
  box-shadow: var(--shadow-soft);
}

.bubble.user {
  align-self: flex-end;
  background: var(--gold-pale);
  border-color: var(--gold-soft);
  border-bottom-right-radius: 4px;
}

.bubble.astro {
  align-self: flex-start;
  background: var(--card);
  border-bottom-left-radius: 4px;
}

.bubble .meta {
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--gold-deep);
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0 0 1.2rem;
}

.upsell-wait {
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1rem;
  background: var(--gold-pale);
  margin-bottom: 0.85rem;
}

[hidden] {
  display: none !important;
}

/* ------------------------------------------------------------
   Plans
   ------------------------------------------------------------ */
.plans {
  display: grid;
  gap: 0.95rem;
}

.plan-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem;
  background: var(--card);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.plan-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.plan-card.featured {
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  border-color: var(--gold);
}

.plan-card .duration {
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.plan-card.featured .duration {
  color: var(--gold);
}

.plan-card .duration svg {
  width: 16px;
  height: 16px;
}

.plan-card .price {
  font-family: var(--font-head);
  font-size: 2.3rem;
  font-weight: 700;
  margin: 0.3rem 0 0.1rem;
  color: var(--maroon-ink);
}

.plan-card.featured .price {
  color: var(--gold);
}

.plan-card p {
  margin: 0.3rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-card.featured p {
  color: rgba(247, 236, 210, 0.82);
}

/* ------------------------------------------------------------
   Slots
   ------------------------------------------------------------ */
.slot-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
}

@media (min-width: 500px) {
  .slot-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.slot-btn {
  border: 1px solid var(--gold-soft);
  background: var(--card);
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  font: inherit;
  font-size: 0.94rem;
  color: var(--maroon-ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.slot-btn.selected,
.slot-btn:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
}

.slot-btn.selected {
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ------------------------------------------------------------
   Confirmation
   ------------------------------------------------------------ */
.confirm-box {
  text-align: center;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 2.4rem 1.4rem;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.confirm-box::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: calc(var(--radius) - 6px);
  pointer-events: none;
}

.confirm-box h1 {
  margin: 0 0 0.5rem;
  font-size: 1.9rem;
}

.check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--maroon-deep));
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  box-shadow: 0 0 0 4px var(--gold-pale), 0 0 0 5px var(--gold-soft);
}

.check svg {
  width: 32px;
  height: 32px;
}

/* ------------------------------------------------------------
   Payment
   ------------------------------------------------------------ */
.pay-summary {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  margin-bottom: 1.3rem;
  background: linear-gradient(160deg, var(--gold-pale), #fdf6e6);
  box-shadow: var(--shadow-soft);
}

.pay-summary .amount {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--maroon);
}

.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.pay-methods span {
  border: 1px solid var(--gold-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--gold-soft);
  padding: 1.75rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--card);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 0.85rem;
}

.site-footer a {
  font-weight: 700;
  color: var(--maroon);
}

/* ------------------------------------------------------------
   Legal
   ------------------------------------------------------------ */
.legal h1 {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
}

.legal h2 {
  font-size: 1.3rem;
  margin: 1.9rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal ul {
  padding-left: 1.2rem;
}

/* ------------------------------------------------------------
   Portal tab bar (mobile app style)
   ------------------------------------------------------------ */
.app-body {
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 90% -5%, rgba(201, 162, 75, 0.1), transparent 30%),
    var(--bg);
}

.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 253, 247, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--gold-soft);
  box-shadow: 0 -6px 24px rgba(123, 30, 60, 0.1);
  padding: 0.4rem 0.2rem 0.5rem;
  align-items: end;
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  padding: 0.45rem 0.15rem 0.3rem;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-tab:hover {
  text-decoration: none;
  color: var(--maroon);
}

.app-tab.active {
  color: var(--maroon);
}

.app-tab .ico {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  transition: background 0.15s ease;
}

.app-tab .ico svg {
  width: 20px;
  height: 20px;
}

.app-tab.active .ico {
  background: var(--gold-pale);
  color: var(--maroon);
  box-shadow: inset 0 0 0 1px var(--gold-soft);
}

.app-tab-ask {
  position: relative;
  top: -1rem;
  color: var(--maroon);
}

.app-tab-ask .ico {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
  color: var(--gold-pale);
  box-shadow: 0 0 0 4px var(--gold-pale), 0 0 0 5px var(--gold-soft), 0 8px 18px rgba(123, 30, 60, 0.35);
}

.app-tab-ask .ico svg {
  width: 26px;
  height: 26px;
}

.app-tab-ask.active .ico,
.app-tab-ask:hover .ico {
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon-ink));
  color: var(--gold);
}

.app-tab-ask span:last-child,
.app-tab-ask {
  font-size: 0.68rem;
}

/* ------------------------------------------------------------
   Portal misc
   ------------------------------------------------------------ */
.portal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.portal-nav a {
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--maroon-ink);
  background: var(--card);
}

.portal-nav a.active,
.portal-nav a:hover {
  background: var(--gold-pale);
  border-color: var(--gold);
  text-decoration: none;
}

.profile-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.2rem 1.15rem;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.profile-card .name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--maroon-ink);
}

.profile-card .nick {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-deep);
}

.last-answer-card {
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem;
  background: linear-gradient(160deg, var(--card), var(--gold-pale));
  margin-bottom: 1.1rem;
  box-shadow: var(--shadow-soft);
}

.quick-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

@media (min-width: 560px) {
  .quick-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-tile {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1rem 0.7rem;
  text-align: center;
  text-decoration: none;
  color: var(--maroon-ink);
  background: var(--card);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  transition: background 0.15s ease, transform 0.12s ease;
}

.quick-tile:hover {
  background: var(--gold-pale);
  transform: translateY(-2px);
  text-decoration: none;
}

.quick-tile .qi {
  display: flex;
  justify-content: center;
  margin-bottom: 0.4rem;
  color: var(--maroon);
}

.quick-tile .qi svg {
  width: 22px;
  height: 22px;
}

/* Option cards on Ask chooser */
.option-cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .option-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.option-card {
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.5rem 1.3rem;
  text-decoration: none;
  color: var(--text);
  display: block;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.option-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.option-card .opt-ico {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--gold-pale);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  box-shadow: inset 0 0 0 1px var(--gold-soft);
}

.option-card .opt-ico svg {
  width: 24px;
  height: 24px;
}

.option-card h2 {
  margin: 0 0 0.3rem;
  font-size: 1.4rem;
}

.option-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.option-card .opt-price {
  margin-top: 0.7rem;
  font-weight: 800;
  color: var(--gold-deep);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------
   Grids & bars
   ------------------------------------------------------------ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.inline-fields {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .inline-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}

.masked-key {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--gold-pale);
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
  display: inline-block;
  font-size: 0.8rem;
}

/* ------------------------------------------------------------
   Admin shell
   ------------------------------------------------------------ */
.admin-body {
  background:
    radial-gradient(circle at 95% -5%, rgba(201, 162, 75, 0.1), transparent 28%),
    var(--bg-soft);
}

.admin-shell {
  display: grid;
  grid-template-columns: 236px 1fr;
  min-height: 100vh;
}

.admin-nav {
  background: linear-gradient(180deg, var(--maroon-ink), var(--maroon-deep) 55%, var(--maroon));
  color: var(--gold-pale);
  padding: 1.4rem 1rem;
}

.admin-nav .logo {
  color: var(--gold-pale);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.55rem;
}

.admin-nav .logo span {
  color: var(--gold);
}

.admin-nav .eyebrow {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(232, 213, 166, 0.6);
  margin-bottom: 1.3rem;
  font-weight: 800;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(247, 236, 210, 0.85);
  padding: 0.58rem 0.7rem;
  border-radius: 9px;
  margin-bottom: 0.2rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-nav a svg {
  width: 17px;
  height: 17px;
  opacity: 0.85;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(201, 162, 75, 0.2);
  color: var(--gold-pale);
  text-decoration: none;
}

.admin-nav a.active {
  background: var(--gold);
  color: var(--maroon-ink);
}

.admin-main {
  padding: 1.6rem;
  min-width: 0;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
}

.admin-topbar {
  display: none;
}

.admin-overlay {
  display: none;
}

/* Admin stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.stat {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.05rem 1rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.stat .label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.stat .value {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 700;
  margin-top: 0.2rem;
  color: var(--maroon-ink);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

table.data th,
table.data td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

table.data tr:last-child td {
  border-bottom: none;
}

table.data th {
  background: var(--gold-pale);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--maroon-ink);
  font-weight: 800;
}

table.data input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--maroon);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.badge.pending {
  background: var(--gold-pale);
  color: var(--gold-deep);
  border-color: var(--gold-soft);
}

.badge.sent,
.badge.confirmed {
  background: var(--success-soft);
  color: var(--success);
  border-color: #cfe3cc;
}

.badge.paid {
  background: var(--gold-pale);
  color: var(--maroon);
  border-color: var(--gold-soft);
}

/* Toggle */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.toggle {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  inset: 0;
  background: var(--gold-soft);
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--gold);
  transition: background 0.2s ease;
}

.toggle .slider::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  top: 3px;
  background: var(--card);
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + .slider {
  background: var(--maroon);
  border-color: var(--maroon-deep);
}

.toggle input:checked + .slider::before {
  transform: translateX(20px);
}

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(201, 162, 75, 0.16), transparent 34%),
    radial-gradient(circle at 85% 90%, rgba(123, 30, 60, 0.1), transparent 36%),
    var(--bg);
}

.login-card {
  width: min(100%, 410px);
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(201, 162, 75, 0.3);
  border-radius: calc(var(--radius) - 5px);
  pointer-events: none;
}

.login-card h1 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.7rem;
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.filters select,
.filters input,
.action-bar select,
.action-bar input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.88rem;
  background: var(--card);
  color: var(--text);
}

.prompt-box textarea {
  min-height: 200px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  background: #fffefb;
  line-height: 1.55;
}

.prompt-card {
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.prompt-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--gold-soft);
}

.prompt-card-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.prompt-card-title svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
  flex-shrink: 0;
}

.prompt-card.is-disabled {
  opacity: 0.58;
  border-style: dashed;
}

.prompt-card.is-disabled textarea {
  background: var(--bg-soft);
  pointer-events: none;
}

/* Icon action buttons (admin) */
.icon-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.6rem;
}

.icon-action {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  min-width: 3.1rem;
}

.icon-action .box {
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid var(--gold-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: var(--maroon);
  transition: background 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-soft);
}

.icon-action .box svg {
  width: 16px;
  height: 16px;
}

.icon-action:hover .box {
  background: var(--gold-pale);
  border-color: var(--gold);
}

.icon-action:hover {
  text-decoration: none;
}

.icon-action.danger .box {
  border-color: #ecc9cc;
  color: var(--danger);
}

.icon-action.danger:hover .box {
  background: var(--danger-soft);
  border-color: var(--danger);
}

.icon-action .lbl {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

/* Charts */
.chart-card {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.chart-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.2rem;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  height: 160px;
  padding-top: 0.5rem;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  height: 100%;
  justify-content: flex-end;
}

.bar-col .bar {
  width: 100%;
  max-width: 44px;
  border-radius: 7px 7px 3px 3px;
  border: 1px solid rgba(123, 30, 60, 0.25);
  min-height: 8px;
}

.bar-col .bar.ads { background: var(--gold); }
.bar-col .bar.ai { background: var(--maroon); }
.bar-col .bar.profit { background: var(--success-soft); border-color: #b9d3b5; }
.bar-col .bar.rev { background: var(--gold-pale); }

.bar-col span {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-muted);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.legend i {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid rgba(123, 30, 60, 0.3);
  border-radius: 3px;
  margin-right: 0.3rem;
  vertical-align: -1px;
}

/* Mode banner */
.mode-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.05rem 1.2rem;
  background: linear-gradient(160deg, var(--gold-pale), #fdf6e6);
  margin-bottom: 1rem;
}

.mode-banner .mode-label {
  font-weight: 800;
}

.mode-banner .mode-label.on {
  color: var(--success);
}

.mode-banner .mode-label.off {
  color: var(--text-muted);
}

/* P&L table */
.pnl-table .pnl-total td {
  background: var(--gold-pale);
  border-top: 2px solid var(--gold);
}

/* ------------------------------------------------------------
   Mobile card tables (no horizontal scroll)
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .table-wrap.cards-mobile {
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .cards-mobile table.data {
    min-width: 0;
    display: block;
    font-size: 0.88rem;
  }

  .cards-mobile thead {
    display: none;
  }

  .cards-mobile tbody {
    display: grid;
    gap: 0.8rem;
  }

  .cards-mobile tr {
    display: block;
    background: var(--card);
    border: 1px solid var(--gold-soft);
    border-radius: var(--radius);
    padding: 0.4rem 1rem;
    box-shadow: var(--shadow-soft);
  }

  .cards-mobile td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    border-bottom: 1px dashed var(--border);
    padding: 0.55rem 0;
    text-align: right;
  }

  .cards-mobile tr:last-child td {
    border-bottom: 1px dashed var(--border);
  }

  .cards-mobile td:last-child {
    border-bottom: none;
  }

  .cards-mobile td::before {
    content: attr(data-label);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    flex-shrink: 0;
    text-align: left;
  }

  .cards-mobile td:not([data-label])::before {
    content: none;
  }

  .cards-mobile .icon-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 0.5rem;
  }
}

/* ------------------------------------------------------------
   Admin mobile
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 253, 247, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gold-soft);
    padding: 0.7rem 0.9rem;
  }

  .admin-topbar .brand {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: 1.15rem;
    text-decoration: none;
    color: var(--maroon);
  }

  .admin-topbar .brand span {
    color: var(--gold-deep);
  }

  .admin-menu-btn {
    border: 1px solid var(--maroon-deep);
    background: linear-gradient(160deg, var(--maroon), var(--maroon-deep));
    color: var(--gold-pale);
    font-weight: 800;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .admin-menu-btn svg {
    width: 16px;
    height: 16px;
  }

  .admin-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(82vw, 290px);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    overflow-y: auto;
    box-shadow: 6px 0 28px rgba(67, 9, 28, 0.35);
  }

  .admin-shell.nav-open .admin-nav {
    transform: translateX(0);
  }

  .admin-overlay {
    position: fixed;
    inset: 0;
    background: rgba(43, 27, 18, 0.5);
    z-index: 70;
  }

  .admin-shell.nav-open .admin-overlay {
    display: block;
  }

  .admin-main {
    padding: 1rem 0.9rem 2rem;
  }

  .admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  table.data {
    font-size: 0.82rem;
    min-width: 640px;
  }

  table.data th,
  table.data td {
    padding: 0.55rem 0.55rem;
  }

  .action-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .action-bar .btn,
  .action-bar select,
  .action-bar input {
    width: 100%;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .mode-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar-chart {
    height: 130px;
  }
}

/* ------------------------------------------------------------
   Home page (main site)
   ------------------------------------------------------------ */
.home-page .site-header {
  position: relative;
  z-index: 5;
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(8px);
}

.home-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-nav {
  display: none;
  gap: 1.1rem;
  margin-left: 0.5rem;
  flex: 1;
}

.home-nav a {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--maroon);
  text-decoration: none;
}

.home-nav a:hover {
  color: var(--gold-deep);
}

@media (min-width: 860px) {
  .home-nav {
    display: flex;
  }
}

.home-hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--gold-pale);
  background: linear-gradient(160deg, var(--maroon-deep), var(--maroon) 55%, #2b0812);
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.06);
  animation: home-ken 18s ease-in-out infinite alternate;
}

@keyframes home-ken {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

.home-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(67, 9, 28, 0.35) 0%, rgba(67, 9, 28, 0.55) 42%, rgba(43, 8, 18, 0.88) 100%),
    radial-gradient(circle at 70% 20%, rgba(201, 162, 75, 0.22), transparent 45%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-wide));
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3.5rem;
  animation: home-rise 0.9s ease-out both;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-eyebrow svg {
  width: 14px;
  height: 14px;
}

.home-brand {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: clamp(3.2rem, 12vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 1rem;
  color: #fffdf7;
  letter-spacing: 0.01em;
}

.home-brand em {
  font-style: normal;
  color: var(--gold);
}

.home-lead {
  max-width: 38ch;
  margin: 0 0 1.75rem;
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-style: italic;
  line-height: 1.35;
  color: rgba(247, 236, 210, 0.92);
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-cta-ghost {
  background: transparent;
  color: var(--gold-pale);
  border-color: rgba(247, 236, 210, 0.45);
}

.home-cta-ghost:hover {
  background: rgba(247, 236, 210, 0.1);
  color: #fff;
}

.home-section {
  padding: 3.5rem 1.25rem;
  border-bottom: 1px solid var(--gold-soft);
}

.home-section h2 {
  margin: 0 0 0.55rem;
  text-align: center;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
}

.home-section-lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.home-split {
  display: grid;
  gap: 2rem;
  align-items: center;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
}

@media (min-width: 860px) {
  .home-split {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 3rem;
  }
  .home-split-rev {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .home-split-rev .home-figure {
    order: 2;
  }
}

.home-figure {
  margin: 0;
}

.home-figure img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gold-soft);
}

.home-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.home-copy h2 {
  text-align: left;
  margin-bottom: 0.85rem;
}

.home-copy p {
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.home-service-grid {
  display: grid;
  gap: 1.25rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .home-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-service {
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.home-service figure {
  margin: 0;
  height: 200px;
  overflow: hidden;
  background: var(--maroon-ink);
}

.home-service figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.92;
  transition: transform 0.6s ease;
}

.home-service:hover figure img {
  transform: scale(1.05);
}

.home-service h3 {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.1rem 1.2rem 0.45rem;
  font-size: 1.25rem;
  color: var(--maroon);
}

.home-service h3 svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
}

.home-service p {
  margin: 0 1.2rem 1rem;
  color: var(--text-muted);
  flex: 1;
}

.home-service a {
  margin: 0 1.2rem 1.25rem;
  font-weight: 800;
  color: var(--maroon);
}

.home-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(100%, 640px);
  display: grid;
  gap: 1rem;
}

.home-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
}

.home-steps .n {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold-pale);
  font-weight: 800;
}

.home-steps strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--maroon-ink);
}

.home-steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.home-price-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.home-price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--gold-soft);
  color: var(--text-muted);
}

.home-price-list strong {
  color: var(--maroon);
  font-size: 1.05rem;
}

.home-portal-links {
  display: grid;
  gap: 0.75rem;
  width: min(100%, 720px);
  margin: 0 auto;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .home-portal-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

.home-portal-links a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  background: var(--card);
  font-weight: 800;
  color: var(--maroon);
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.home-portal-links a:hover {
  background: var(--bg-soft);
  border-color: var(--gold);
}

.home-portal-links svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
}

.home-campaign-band {
  background:
    radial-gradient(circle at 18% 30%, rgba(201, 162, 75, 0.18), transparent 40%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: var(--gold-pale);
  padding: 3.25rem 1.25rem;
}

.home-campaign-inner {
  width: min(100%, 640px);
  margin: 0 auto;
  text-align: center;
}

.home-campaign-inner h2 {
  margin: 0 0 0.65rem;
  color: #fffdf7;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.home-campaign-inner p {
  margin: 0 0 1.4rem;
  color: rgba(247, 236, 210, 0.88);
}

.home-campaign-btn {
  background: var(--gold);
  color: var(--maroon-ink);
}

.home-campaign-btn:hover {
  background: var(--gold-pale);
}

.home-blog-grid,
.blog-list {
  display: grid;
  gap: 1.15rem;
  width: min(100%, var(--max-wide));
  margin-inline: auto;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .home-blog-grid,
  .blog-list {
    grid-template-columns: repeat(3, 1fr);
  }
  .blog-list {
    grid-template-columns: 1fr;
  }
}

.home-blog-card,
.blog-card {
  display: grid;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card {
  grid-template-columns: 140px 1fr;
  align-items: stretch;
}

@media (max-width: 640px) {
  .blog-card {
    grid-template-columns: 1fr;
  }
}

.home-blog-card:hover,
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.home-blog-card figure,
.blog-card figure,
.blog-cover {
  margin: 0;
  height: 160px;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  overflow: hidden;
}

.blog-card figure {
  height: 100%;
  min-height: 120px;
}

.blog-cover {
  height: auto;
  max-height: 360px;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--gold-soft);
}

.home-blog-card img,
.blog-card img,
.blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-cover img {
  max-height: 360px;
}

.home-blog-fallback {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 162, 75, 0.35), transparent 50%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
}

.home-blog-card h3,
.blog-card h2 {
  margin: 0 1rem 0.35rem;
  font-size: 1.2rem;
  color: var(--maroon);
}

.home-blog-card p,
.blog-card p {
  margin: 0 1rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.blog-card .hint {
  margin: 0 1rem 0.25rem;
}

.blog-article {
  max-width: 720px;
}

.blog-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

.blog-body p {
  margin: 0 0 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-media img,
  .home-hero-copy,
  .home-service,
  .home-service figure img {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
