/* ══════════════════════════════════════
   SWIVO — Global Styles (pixel-perfect migration)
   ══════════════════════════════════════ */

/* ── SHARED TOKENS (Landing page) ── */
:root {
  --blush:   #FDBEBE;
  --rose:    #A36162;
  --deep:    #742424;
  --cream:   #FDF6F0;
  --ink:     #1A1010;
  --muted:   #7A5C5C;
  --swivo-border:  rgba(163,97,98,0.18);

  /* Checkout/Register/Demo tokens */
  --primary: #742424;
  --primary-light: #9b3d3d;
  --primary-dark: #4f1818;
  --demo-rose: #d19485;
  --demo-blush: #f5e8e4;
  --warm-white: #fdf8f6;
  --text: #2a1a1a;
  --text-muted: #7a5a5a;
  --demo-border: #e8d4cf;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(116,36,36,0.08);
  --shadow-lg: 0 8px 32px rgba(116,36,36,0.12);
}

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

/* Body copy in Lora */
p, .plan-desc, .plan-feature, .hero-note, .step p, .bottom-cta p {
  font-family: 'Lora', serif;
}

html { scroll-behavior: smooth; }

/* ═══════════════════════════════════════
   LANDING PAGE STYLES
   ═══════════════════════════════════════ */

.landing-page {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
.swivo-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(253,246,240,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--swivo-border);
}

.nav-logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-ghost {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep);
  background: transparent;
  border: 1.5px solid var(--deep);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--blush);
  color: var(--deep);
  border-color: var(--deep);
}

.btn-solid {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cream);
  background: var(--deep);
  border: 1.5px solid var(--deep);
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-solid:hover {
  background: var(--rose);
  border-color: var(--rose);
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8rem 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(253,190,190,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--deep);
  background: rgba(116,36,36,0.08);
  border: 1px solid rgba(116,36,36,0.2);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.7s ease both;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 820px;
  margin: 0 auto 1.5rem;
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--deep);
}

.hero p {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 2.75rem;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.85rem 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted);
  animation: fadeUp 0.7s 0.4s ease both;
}

/* ── HOW IT WORKS ── */
.section {
  padding: 3rem 1.5rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--deep);
}

.section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  max-width: 540px;
  margin-bottom: 3.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  background: white;
  border: 1px solid var(--swivo-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}
.step:hover {
  box-shadow: 0 12px 40px rgba(116,36,36,0.08);
  transform: translateY(-3px);
}

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--blush);
  line-height: 1;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

/* ── PRICING ── */
.pricing-wrap {
  background: white;
  border: 1px solid var(--swivo-border);
  border-radius: 24px;
  padding: 4rem 2rem;
  text-align: center;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.plan {
  border: 1.5px solid var(--swivo-border);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: left;
  position: relative;
  transition: all 0.25s;
}
.plan:hover {
  border-color: var(--deep);
  box-shadow: 0 8px 32px rgba(116,36,36,0.08);
}
.plan.featured {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--cream);
}
.plan.featured .plan-desc,
.plan.featured .plan-feature {
  color: rgba(253,246,240,0.7);
}
.plan.featured .plan-price {
  color: var(--cream);
}

.plan-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--blush);
  color: var(--deep);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.plan-price {
  font-size: 1.6rem;
}

.plan-price sup {
  font-size: 1rem;
  font-weight: 400;
}

.plan-price sub {
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--muted);
}

.plan-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
}

.plan-feature {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--swivo-border);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.plan.featured .plan-feature {
  border-bottom-color: rgba(253,246,240,0.12);
}

.plan-feature::before {
  content: '✦';
  color: var(--deep);
  font-size: 0.6rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}
.plan.featured .plan-feature::before { color: var(--blush); }

/* ── BOTTOM CTA ── */
.bottom-cta {
  padding: 6rem 1.5rem;
  text-align: center;
  background: white;
  color: var(--ink);
  border-top: 1px solid var(--swivo-border);
}

.bottom-cta h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.bottom-cta p {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.bottom-cta .btn-solid {
  background: var(--deep);
  color: var(--cream);
  border-color: var(--deep);
  font-size: 1rem;
  padding: 0.85rem 2rem;
}
.bottom-cta .btn-solid:hover {
  background: var(--ink);
  border-color: var(--ink);
}
.bottom-cta .btn-ghost {
  color: var(--deep);
  border-color: var(--deep);
  font-size: 1rem;
  padding: 0.85rem 2rem;
}
.bottom-cta .btn-ghost:hover {
  background: var(--blush);
}

/* ── ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE (LANDING) ── */
@media (max-width: 600px) {
  .swivo-nav { padding: 1rem 1.25rem; }
  .hero-ctas { flex-direction: column; align-items: center; }
}


/* ═══════════════════════════════════════
   DEMO PAGE STYLES
   ═══════════════════════════════════════ */

.demo-page {
  font-family: 'Lora', serif;
  background: var(--warm-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* SIDEBAR */
.demo-page .sidebar {
  width: 240px; min-height: 100vh; background: var(--primary-dark);
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 100;
}
.demo-page .sidebar-logo { padding: 24px 20px 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.demo-page .sidebar-logo img { height: 72px; width: auto; display: block; }
.demo-page .sidebar-logo span { font-size: 11px; color: rgba(255,255,255,0.45); letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-top: 4px; }
.demo-page .sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.demo-page .nav-section-label { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); padding: 12px 24px 6px; }
.demo-page .nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 24px;
  cursor: pointer; color: rgba(255,255,255,0.6); font-size: 13px; font-weight: 400;
  transition: all 0.15s; border-left: 3px solid transparent;
}
.demo-page .nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.demo-page .nav-item.active { color: #fff; background: rgba(255,255,255,0.08); border-left-color: var(--demo-rose); font-weight: 500; }
.demo-page .nav-item .icon { width: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-page .sidebar-footer {
  padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; color: rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: space-between;
}
.demo-page .signout-btn {
  background: none; border: none; color: rgba(255,255,255,0.4);
  font-family: 'Lora', serif; font-size: 11px; cursor: pointer;
  padding: 4px 8px; border-radius: 4px; transition: all 0.15s;
}
.demo-page .signout-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* MAIN */
.demo-page .main { margin-left: 240px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; }
.demo-page .topbar {
  background: var(--card); border-bottom: 1px solid var(--demo-border);
  padding: 14px 32px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
}
.demo-page .topbar-left { display: flex; align-items: center; gap: 14px; }
.demo-page .topbar-title { font-size: 20px; font-weight: 600; color: var(--primary); }
.demo-page .topbar-right { display: flex; align-items: center; gap: 12px; }
.demo-page .topbar-theme-switcher-mobile { display: none; }
@media (max-width: 768px) {
  .demo-page .topbar-theme-switcher-mobile { display: inline-flex; }
}
.demo-page .company-name { font-size: 13px; color: var(--text-muted); }
.demo-page .content { padding: 28px 32px; flex: 1; }

/* BUTTONS */
.demo-page .btn {
  padding: 8px 18px; border-radius: 6px; font-family: 'Lora', serif;
  font-size: 13px; font-weight: 500; cursor: pointer; border: none; transition: all 0.15s;
}
.demo-page .btn-primary { background: var(--primary); color: #fff; }
.demo-page .btn-primary:hover { background: var(--primary-light); }
.demo-page .btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--demo-border); }
.demo-page .btn-outline:hover { border-color: var(--primary); background: var(--demo-blush); }
.demo-page .demo-btn-ghost { background: transparent; color: var(--text-muted); border: 1.5px solid var(--demo-border); }
.demo-page .btn-sm { padding: 5px 12px; font-size: 12px; }
.demo-page .btn-danger { background: #8b2020; color: #fff; }

/* PAGES */
.demo-page .page { display: none; }
.demo-page .page.active { display: block; }

/* CARDS */
.demo-page .card { background: var(--card); border: 1px solid var(--demo-border); border-radius: 12px; padding: 24px; box-shadow: var(--shadow); }
.demo-page .card-title { font-size: 17px; font-weight: 600; color: var(--primary); margin-bottom: 16px; }

/* GRIDS */
.demo-page .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.demo-page .grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.demo-page .mb-24 { margin-bottom: 24px; }
.demo-page .mb-16 { margin-bottom: 16px; }

/* STAT CARDS */
.demo-page .stat-card { background: var(--card); border: 1px solid var(--demo-border); border-radius: 12px; padding: 20px 24px; box-shadow: var(--shadow); }
.demo-page .stat-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 8px; }
.demo-page .stat-value { font-size: 30px; font-weight: 600; color: var(--primary); line-height: 1; }
.demo-page .stat-sub { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.demo-page .stat-trend { font-size: 12px; font-weight: 500; margin-top: 4px; color: #2d7a4f; }

/* PROGRESS */
.demo-page .progress-bar { height: 8px; background: var(--demo-blush); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.demo-page .progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.6s ease; }

/* TABLE */
.demo-page table { width: 100%; border-collapse: collapse; }
.demo-page th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); padding: 10px 14px; border-bottom: 1px solid var(--demo-border); font-weight: 500; }
.demo-page td { padding: 12px 14px; font-size: 13px; border-bottom: 1px solid var(--demo-border); color: var(--text); }
.demo-page tr:last-child td { border-bottom: none; }
.demo-page tr:hover td { background: var(--demo-blush); }

/* BADGES */
.demo-page .badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; }
.demo-page .badge-green { background: #e6f4ed; color: #2d7a4f; }
.demo-page .badge-rose { background: var(--demo-blush); color: var(--primary); }
.demo-page .badge-amber { background: #fef3e2; color: #a06000; }
.demo-page .badge-gray { background: #f0eded; color: var(--text-muted); }

/* MODAL */
.demo-page .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(30,10,10,0.45); z-index: 200; align-items: center; justify-content: center; }
.demo-page .modal-overlay.open { display: flex; }
.demo-page .modal { background: var(--card); border-radius: 14px; padding: 32px; width: 480px; max-width: 94vw; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.demo-page .modal-title { font-size: 20px; font-weight: 600; color: var(--primary); margin-bottom: 20px; }
.demo-page .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 24px; }
.demo-page .modal-error { background: #fce8e8; color: #8b2020; border: 1px solid #f0c0c0; border-radius: 7px; padding: 8px 12px; font-size: 12px; margin-bottom: 12px; display: none; }

/* SECTION */
.demo-page .section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.demo-page .section-title { font-size: 18px; font-weight: 600; color: var(--primary); }
.demo-page .divider { height: 1px; background: var(--demo-border); margin: 20px 0; }

/* TABS */
.demo-page .tabs { display: flex; border-bottom: 2px solid var(--demo-border); margin-bottom: 20px; }
.demo-page .tab { padding: 10px 20px; font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s; font-family: 'Lora', serif; }
.demo-page .tab:hover { color: var(--primary); }
.demo-page .tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.demo-page .tab-content { display: none; }
.demo-page .tab-content.active { display: block; }

/* UPCOMING */
.demo-page .upcoming-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--demo-border); }
.demo-page .upcoming-item:last-child { border-bottom: none; }
.demo-page .upcoming-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--demo-blush); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-page .upcoming-info { flex: 1; }
.demo-page .upcoming-name { font-size: 13px; font-weight: 500; }
.demo-page .upcoming-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.demo-page .upcoming-days { font-size: 12px; font-weight: 600; color: var(--primary); }

/* RULE CARD */
.demo-page .rule-card { background: var(--warm-white); border: 1.5px solid var(--demo-border); border-radius: 10px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.demo-page .rule-icon { width: 36px; height: 36px; background: var(--demo-blush); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.demo-page .rule-info { flex: 1; }
.demo-page .rule-name { font-size: 13px; font-weight: 500; }
.demo-page .rule-detail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* TOGGLE */
.demo-page .toggle { width: 36px; height: 20px; background: var(--demo-border); border-radius: 10px; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.demo-page .toggle.on { background: var(--primary); }
.demo-page .toggle::after { content: ''; position: absolute; width: 14px; height: 14px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left 0.2s; }
.demo-page .toggle.on::after { left: 19px; }

/* ROI */
.demo-page .roi-highlight { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); border-radius: 14px; padding: 28px 32px; color: #fff; margin-bottom: 24px; }
.demo-page .roi-highlight h2 { font-size: 13px; font-weight: 400; opacity: 0.7; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.demo-page .roi-highlight .big-number { font-size: 48px; font-weight: 600; line-height: 1; }
.demo-page .roi-highlight p { font-size: 12px; opacity: 0.7; margin-top: 8px; }
.demo-page .roi-highlight-grid { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.demo-page .roi-metric { text-align: center; border-right: 1px solid rgba(255,255,255,0.15); padding: 0 16px; }
.demo-page .roi-metric:last-child { border-right: none; }
.demo-page .roi-metric .val { font-size: 26px; font-weight: 600; display: block; }
.demo-page .roi-metric .lbl { font-size: 11px; opacity: 0.6; margin-top: 2px; display: block; }

/* BAR CHART */
.demo-page .bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: 0 4px; }
.demo-page .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.demo-page .bar { width: 100%; background: var(--primary); border-radius: 4px 4px 0 0; min-height: 4px; opacity: 0.85; }
.demo-page .bar:hover { opacity: 1; }
.demo-page .bar-label { font-size: 10px; color: var(--text-muted); }
.demo-page .bar-value { font-size: 10px; font-weight: 600; color: var(--primary); }

/* COVERAGE */
.demo-page .coverage-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.demo-page .coverage-item { background: #fdf0f0; border-radius: 10px; padding: 16px; text-align: center; }
.demo-page .coverage-item .pct { font-size: 28px; font-weight: 600; color: var(--primary); }
.demo-page .coverage-item .lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ALERT */
.demo-page .alert { padding: 12px 16px; border-radius: 8px; font-size: 13px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.demo-page .alert-info { background: linear-gradient(135deg, var(--primary-dark, #4f1818) 0%, var(--primary) 100%); color: #fff; border: none; }

/* EMPTY STATE */
.demo-page .empty-state { text-align: center; padding: 40px 24px; color: var(--text-muted); }
.demo-page .empty-state h3 { font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.demo-page .empty-state p { font-size: 13px; }

/* PLAN CARD */
.demo-page .plan-card { background: var(--card); border: 2px solid var(--primary); border-radius: 12px; padding: 24px; }

/* FLEX UTILS */
.demo-page .flex { display: flex; }
.demo-page .items-center { align-items: center; }
.demo-page .justify-between { justify-content: space-between; }
.demo-page .gap-12 { gap: 12px; }
.demo-page .text-muted { color: var(--text-muted); font-size: 13px; }

/* FORM (shared across demo/checkout/register) */
.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.06em;
}
.form-input, .form-select {
  width: 100%; padding: 10px 12px; border: 1.5px solid var(--demo-border);
  border-radius: 7px; font-family: 'Lora', serif; font-size: 13.5px;
  color: var(--text); background: var(--warm-white); outline: none; transition: border-color 0.15s;
}
.form-input:focus, .form-select:focus { border-color: var(--primary); }

/* SPINNER */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner { width: 24px; height: 24px; border: 3px solid var(--demo-border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 12px; }
.spinner-inline {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* MOBILE (DEMO) */
@media (max-width: 768px) {
  .demo-page { display: block; }
  .demo-page .sidebar { width: 100%; min-height: unset; height: 60px; position: fixed; top: auto; bottom: 0; left: 0; right: 0; flex-direction: row; align-items: center; z-index: 200; padding: 0; }
  .demo-page .sidebar-logo, .demo-page .sidebar-footer, .demo-page .nav-section-label { display: none; }
  .demo-page .sidebar-nav { display: flex; flex-direction: row; width: 100%; padding: 0; justify-content: space-around; }
  .demo-page .nav-item { flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 8px 4px; font-size: 9px; border-left: none; border-top: 3px solid transparent; flex: 1; }
  .demo-page .nav-item.active { border-left: none; border-top-color: var(--demo-rose); background: rgba(255,255,255,0.08); }
  .demo-page .nav-item .icon { width: 20px; height: 20px; }
  .demo-page .main { margin-left: 0; margin-bottom: 60px; }
  .demo-page .topbar { padding: 12px 16px; }
  .demo-page .topbar img { height: 32px !important; }
  .demo-page .topbar-title { font-size: 15px; }
  .demo-page .company-name { display: none; }
  .demo-page .content { padding: 16px; }
  .demo-page .grid-2, .demo-page .grid-4 { grid-template-columns: 1fr; }
  .demo-page .roi-highlight-grid { grid-template-columns: 1fr; gap: 10px; }
  .demo-page .roi-metric { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 10px 0; }
  .demo-page .roi-metric:last-child { border-bottom: none; }
  .demo-page .coverage-grid { grid-template-columns: 1fr; }
  .demo-page .roi-highlight { padding: 20px; }
  .demo-page .roi-highlight .big-number { font-size: 36px; }
  .demo-page .card { padding: 16px; overflow-x: auto; }
  .demo-page table { font-size: 12px; min-width: 480px; }
  .demo-page th, .demo-page td { padding: 8px; }
  .demo-page .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .demo-page .modal { width: 94vw; padding: 20px 16px; }
  .demo-page .btn { padding: 7px 14px; font-size: 12px; }
  .demo-page .bar-chart { height: 90px; }
}


/* ═══════════════════════════════════════
   CHECKOUT PAGE STYLES
   ═══════════════════════════════════════ */

.checkout-page {
  font-family: 'Lora', serif;
  background: var(--warm-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 16px 64px;
}

.checkout-page .logo-wrap { margin-bottom: 8px; }
.checkout-page .logo-wrap img { height: 80px; width: auto; display: block; }
.checkout-page .tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
  text-align: center; margin-bottom: 40px;
}
.checkout-page .page-heading {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 700;
  color: var(--primary-dark); text-align: center; margin-bottom: 10px;
}
.checkout-page .page-sub {
  font-size: 14px; color: var(--text-muted);
  text-align: center; margin-bottom: 40px;
  line-height: 1.7; max-width: 500px;
  margin-left: auto; margin-right: auto;
}

.checkout-page .plans-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; width: 100%; max-width: 900px; margin-bottom: 48px;
}

.checkout-page .plan-card {
  background: var(--card); border: 2px solid var(--demo-border);
  border-radius: 16px; padding: 32px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer; position: relative;
}
.checkout-page .plan-card:hover {
  border-color: var(--demo-rose); box-shadow: var(--shadow-lg); transform: translateY(-2px);
}
.checkout-page .plan-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow-lg);
}
.checkout-page .plan-card.popular { border-color: var(--primary); }

.checkout-page .popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}

.checkout-page .plan-card .plan-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--primary-dark); margin-bottom: 4px;
}
.checkout-page .plan-card .plan-tagline {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--text-muted); margin-bottom: 20px;
}
.checkout-page .plan-card .plan-price { margin-bottom: 24px; }
.checkout-page .plan-card .plan-price .amount {
  font-size: 36px; font-weight: 600; color: var(--primary);
  font-family: 'DM Sans', sans-serif; line-height: 1;
}
.checkout-page .plan-card .plan-price .period {
  font-size: 13px; color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
}
.checkout-page .plan-card .plan-features {
  list-style: none; flex: 1; margin-bottom: 28px;
}
.checkout-page .plan-card .plan-features li {
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text);
  padding: 6px 0; display: flex; align-items: flex-start; gap: 8px;
  border-bottom: 1px solid var(--demo-blush);
}
.checkout-page .plan-card .plan-features li:last-child { border-bottom: none; }
.checkout-page .plan-card .plan-features li::before {
  content: '✦'; color: var(--demo-rose); font-size: 10px; flex-shrink: 0; margin-top: 2px;
}

.checkout-page .plan-btn {
  width: 100%; padding: 12px 18px;
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; letter-spacing: 0.02em;
}
.checkout-page .plan-btn:hover { background: var(--primary-light); }
.checkout-page .plan-card.popular .plan-btn { background: var(--primary-dark); }
.checkout-page .plan-card.popular .plan-btn:hover { background: var(--primary); }

/* CHECKOUT PANEL */
.checkout-page .checkout-panel {
  width: 100%; max-width: 520px;
  background: var(--card); border: 1px solid var(--demo-border);
  border-radius: 16px; padding: 36px 40px; box-shadow: var(--shadow-lg);
}
.checkout-page .checkout-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 6px;
}
.checkout-page .checkout-panel .sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
}
.checkout-page .order-summary {
  background: var(--demo-blush); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.checkout-page .order-summary .summary-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700; color: var(--primary-dark);
}
.checkout-page .order-summary .summary-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}
.checkout-page .order-summary .summary-price {
  font-size: 24px; font-weight: 600; color: var(--primary);
  font-family: 'DM Sans', sans-serif;
}
.checkout-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-page .card-icons { display: flex; gap: 6px; margin-bottom: 14px; align-items: center; }
.checkout-page .card-icon {
  background: var(--demo-blush); border: 1px solid var(--demo-border);
  border-radius: 4px; padding: 3px 7px; font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.04em;
}
.checkout-page .pay-btn {
  width: 100%; padding: 14px 18px;
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.15s; margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.checkout-page .pay-btn:hover { background: var(--primary-light); }
.checkout-page .pay-btn:disabled { background: var(--demo-rose); cursor: not-allowed; }
.checkout-page .pay-btn .lock-icon { font-size: 13px; }
.checkout-page .security-note {
  font-family: 'DM Sans', sans-serif; font-size: 11px; color: var(--text-muted);
  text-align: center; margin-top: 12px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.checkout-page .divider-line { height: 1px; background: var(--demo-border); margin: 20px 0; }
.checkout-page .change-plan-link {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--primary);
  cursor: pointer; text-decoration: underline; text-align: center;
  display: block; margin-top: 14px;
}
.checkout-page .change-plan-link:hover { color: var(--primary-light); }
.checkout-page .error-box {
  background: #fce8e8; color: #8b2020; border: 1px solid #f0c0c0;
  border-radius: 7px; padding: 10px 14px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; margin-bottom: 14px;
}
.checkout-page .back-link {
  font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--text-muted);
  text-decoration: none; display: flex; align-items: center; gap: 4px;
  margin-bottom: 32px; transition: color 0.15s; cursor: pointer;
}
.checkout-page .back-link:hover { color: var(--primary); }

@media (max-width: 800px) {
  .checkout-page .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .checkout-page .checkout-panel { padding: 28px 20px; }
}


/* ═══════════════════════════════════════
   REGISTER PAGE STYLES
   ═══════════════════════════════════════ */

.register-page {
  font-family: 'Lora', serif;
  background: var(--warm-white);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.register-page .register-wrap { width: 100%; max-width: 460px; }

.register-page .register-card {
  background: var(--card); border: 1px solid var(--demo-border);
  border-radius: 16px; padding: 40px; box-shadow: var(--shadow-lg); text-align: center;
}

.register-page .register-logo { height: 110px; width: auto; margin: 0 auto 12px; display: block; }
.register-page .register-tagline {
  font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em;
  text-transform: uppercase; font-family: 'DM Sans', sans-serif; margin-bottom: 6px;
}
.register-page .register-heading {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--primary); margin-bottom: 8px;
}
.register-page .register-subheading {
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6;
}
.register-page .form-group { text-align: left; }
.register-page .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.register-page .register-btn-primary {
  width: 100%; padding: 12px 18px;
  background: var(--primary); color: #fff; border: none; border-radius: 6px;
  font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background 0.15s; margin-top: 8px;
}
.register-page .register-btn-primary:hover { background: var(--primary-light); }
.register-page .register-btn-primary:disabled { background: var(--demo-rose); cursor: not-allowed; }

.register-page .error-box {
  background: #fce8e8; color: #8b2020; border: 1px solid #f0c0c0;
  border-radius: 7px; padding: 10px 14px; font-size: 13px;
  margin-bottom: 14px; text-align: left;
}
.register-page .success-box {
  background: #e6f4ed; color: #2d7a4f; border: 1px solid #b6ddc8;
  border-radius: 7px; padding: 10px 14px; font-size: 13px;
  margin-bottom: 14px; text-align: left;
}
.register-page .divider { height: 1px; background: var(--demo-border); margin: 24px 0; }
.register-page .signin-link { font-size: 13px; color: var(--text-muted); margin-top: 20px; }
.register-page .signin-link a { color: var(--primary); text-decoration: none; font-weight: 500; }
.register-page .signin-link a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .register-page .register-card { padding: 28px 20px; }
  .register-page .form-row { grid-template-columns: 1fr; }
  .register-page .register-logo { height: 130px; margin: 0 auto 14px; display: block; }
}

/* ═══════════════════════════════════════
   THEME VARIANTS — Scoped to .demo-page only
   (the landing page is intentionally NOT themeable)
   Default = Burgundy/Pink (no data-theme attribute)
   [data-theme="beige"] = Warm Beige (cream + camel)
   [data-theme="blue"]  = Pale Blue & Navy (monochromatic)
   ═══════════════════════════════════════ */

/* Default accent (pink) used by notification bell, badges, "Today!" labels.
   Each theme overrides this so all accent UI re-tints together. */
.demo-page { --accent-strong: #e8648a; }

.demo-page[data-theme="beige"] {
  --blush:   #f3dfc2;
  --rose:    #b97a4f;
  --deep:    #9d6844;
  --cream:   #fbf3e7;
  --ink:     #3a2614;
  --muted:   #7a5638;
  --swivo-border: rgba(157,104,68,0.28);

  --primary: #9d6844;
  --primary-light: #b97a4f;
  --primary-dark: #714a30;
  --demo-rose: #b97a4f;
  --demo-blush: #f3dfc2;
  --warm-white: #fbf3e7;
  --text: #3a2614;
  --text-muted: #7a5638;
  --demo-border: #ecd6b8;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(113,74,48,0.12);
  --shadow-lg: 0 8px 32px rgba(113,74,48,0.18);
  --accent-strong: #9d6844;
}

.demo-page[data-theme="blue"] {
  --blush:   #cfe1f5;
  --rose:    #4a6fa5;
  --deep:    #0f2a52;
  --cream:   #f3f7fc;
  --ink:     #0a1a33;
  --muted:   #5b7090;
  --swivo-border: rgba(15,42,82,0.18);

  --primary: #0f2a52;
  --primary-light: #2c4d80;
  --primary-dark: #07193a;
  --demo-rose: #4a6fa5;
  --demo-blush: #e3edf8;
  --warm-white: #f3f7fc;
  --text: #0a1a33;
  --text-muted: #5b7090;
  --demo-border: #d4dff0;
  --card: #ffffff;
  --shadow: 0 2px 12px rgba(15,42,82,0.08);
  --shadow-lg: 0 8px 32px rgba(15,42,82,0.14);
  --accent-strong: #2c4d80;
}

/* Themed icon stroke — sidebar nav + topbar bell + any svg with this class.
   Inline SVGs marked with `data-theme-stroke` follow the demo-rose accent.
   Metallic finish: tinted color + subtle drop-shadow for sheen. */
.demo-page svg[data-theme-stroke] {
  stroke: var(--metallic-stroke, var(--demo-rose));
  filter: drop-shadow(0 1px 0 rgba(255,255,255,0.55)) drop-shadow(0 1px 1.5px rgba(0,0,0,0.28));
}
/* Default (burgundy) theme — rose gold metallic */
.demo-page { --metallic-stroke: #b76e79; }
/* Beige theme — warm camel */
.demo-page[data-theme="beige"] { --metallic-stroke: #b97a4f; }
/* Blue theme — brushed steel-blue */
.demo-page[data-theme="blue"] { --metallic-stroke: #6c89ad; }


/* ── THEME SWITCHER (small inline control) ── */
.theme-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 100px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--swivo-border);
}
.theme-switcher button {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, border-color 0.15s;
  background-clip: padding-box;
}
.theme-switcher button:hover { transform: scale(1.1); }
.theme-switcher button[aria-pressed="true"] {
  border-color: var(--deep);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7) inset;
}
.theme-switcher button.swatch-burgundy {
  background: linear-gradient(135deg, #742424 50%, #FDBEBE 50%);
}
.theme-switcher button.swatch-beige {
  background: linear-gradient(135deg, #9d6844 50%, #f3dfc2 50%);
}
.theme-switcher button.swatch-blue {
  background: linear-gradient(135deg, #0f2a52 50%, #cfe1f5 50%);
}
