/* =========================================================
   Design tokens
   ========================================================= */
:root {
  --ink:        #16203A;
  --indigo:     #1E2A4A;
  --indigo-deep:#141D33;
  --steel:      #EEF1F6;
  --paper:      #FFFFFF;
  --slate:      #5B6478;
  --ember:      #E8562A;
  --ember-dark: #C7451D;
  --ember-light:#FF7A4D;
  --growth:     #1F9D66;
  --line:       #E4E8F0;

  --gradient-ember: linear-gradient(135deg, var(--ember-light), var(--ember-dark));
  --gradient-brand: linear-gradient(135deg, var(--ember) 0%, var(--growth) 100%);
  --glow-ember: 0 12px 28px -10px rgba(232,86,42,0.55);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 14px;
  --sidebar-w: 250px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 16px;
}
h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
a { color: inherit; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }
.btn-primary { background: var(--gradient-ember); color: #fff; box-shadow: var(--glow-ember); }
.btn-primary:hover { box-shadow: 0 16px 32px -8px rgba(232,86,42,0.65); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ember); color: var(--ember); }
.btn-block { width: 100%; text-align: center; border: none; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* =========================================================
   App shell: sidebar + main
   ========================================================= */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--indigo);
  color: #C4CBDC;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; display: inline-block; }
.sidebar-brand span { color: var(--ember); }
.sidebar-logo-img { max-height: 40px; max-width: 100%; display: block; }
.sidebar-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #7C89A8;
  margin: 6px 0 30px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #A9B4CC;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sidebar-nav a svg { flex-shrink: 0; opacity: 0.85; }
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar-nav a.active {
  background: rgba(232,86,42,0.14);
  color: #fff;
  border-left-color: var(--ember);
}
.sidebar-nav a.active svg { opacity: 1; color: var(--ember); }
.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.85rem;
}
.sidebar-footer p { margin: 0 0 4px; color: #7C89A8; }
.sidebar-footer strong { color: var(--ember); font-family: var(--font-mono); font-size: 1rem; }

.sidebar-toggle {
  display: none;
  position: fixed;
  top: 16px; left: 16px;
  z-index: 60;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: none;
  background: var(--indigo);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.app-main { flex-grow: 1; min-width: 0; }

/* =========================================================
   Topbar + marquee
   ========================================================= */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 40px;
  border-bottom: 1px solid var(--line);
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--steel);
  border-radius: 999px;
  padding: 10px 18px;
  flex-grow: 1;
  max-width: 420px;
}
.topbar-search input {
  border: none; background: none; outline: none;
  font-family: var(--font-body); font-size: 0.9rem; width: 100%; color: var(--ink);
}
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.topbar-account-link {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--ink); text-decoration: none; font-weight: 500;
  white-space: nowrap;
}
.topbar-account-link:hover { color: var(--ember); }

.marquee {
  background: var(--steel);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 9px 0;
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
  padding-left: 40px;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  background: var(--indigo);
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #fff;
  padding: 64px 40px 96px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(232,86,42,0.35), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.eyebrow {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ember-light);
  margin: 0 0 14px;
  text-transform: uppercase;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 3.8vw, 3rem); letter-spacing: -0.01em; }
.hero-sub { color: #C4CBDC; font-size: 1.05rem; max-width: 46ch; margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: var(--gradient-brand);
  opacity: 0.25;
  filter: blur(50px);
  border-radius: 50%;
  z-index: 0;
}
.ad-card {
  background: #10182C;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 26px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  position: relative;
  z-index: 1;
}
.ad-card-top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 0.76rem; color: #8FA0C7; margin-bottom: 18px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--growth); animation: pulse 2s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(31,157,102,0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(31,157,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,157,102,0); }
}
.ad-stat { display: flex; align-items: baseline; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.ad-stat:last-of-type { border-bottom: none; }
.ad-stat-label { color: #8FA0C7; font-size: 0.83rem; }
.ad-stat-value { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: var(--growth); }
.ad-stat-suffix { font-family: var(--font-mono); color: var(--growth); margin-left: -6px; }
.ad-bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: 20px; }
.ad-bars span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--ember), var(--growth)); border-radius: 3px; opacity: 0.85; }

.exp-badge {
  position: absolute;
  bottom: -18px; left: -18px;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.exp-badge strong { font-family: var(--font-mono); font-size: 1.3rem; color: var(--ember); }
.exp-badge span { font-size: 0.75rem; color: var(--slate); }

/* =========================================================
   Stats row
   ========================================================= */
.stats-row {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  padding: 40px 40px 10px;
}
.stats-row.overlap-hero { margin-top: -46px; padding-top: 0; }
.stat-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  box-shadow: 0 20px 40px -28px rgba(20,29,51,0.25);
}
.stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { display: block; font-size: 0.8rem; color: var(--slate); margin-top: 4px; }

/* =========================================================
   Sections (shared)
   ========================================================= */
.section { max-width: 980px; margin: 0 auto; padding: 70px 40px; }
.section h2 { text-align: center; margin-bottom: 36px; }

.pain { background: var(--steel); max-width: none; padding: 70px 40px; }
.pain .pain-grid, .pain h2 { max-width: 980px; margin-left: auto; margin-right: auto; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pain-item {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.pain-item:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -24px rgba(20,29,51,0.3); }
.pain-x {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(232,86,42,0.12);
  color: var(--ember-dark);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.pain-item p { margin: 0; color: var(--slate); padding-top: 4px; }

.process-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; }
.process-steps li { position: relative; padding-top: 4px; }
.step-num {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
  box-shadow: 0 10px 20px -8px rgba(232,86,42,0.4);
}
.process-steps h3 { margin-bottom: 8px; font-size: 1.1rem; }
.process-steps p { color: var(--slate); margin: 0; }
@media (min-width: 700px) {
  .process-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 21px; left: 100%;
    width: 28px;
    border-top: 2px dashed var(--line);
  }
}

/* --- Packages --- */
.packages { background: var(--steel); max-width: none; padding: 70px 40px; }
.packages h2, .filter-tabs, .packages-grid { max-width: 980px; margin-left: auto; margin-right: auto; }
.filter-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-tab {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.85rem;
  color: var(--slate);
  cursor: pointer;
}
.filter-tab.active { background: var(--ember); color: #fff; border-color: var(--ember); }

.subcategory-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 980px;
  margin: -14px auto 28px;
}
.subcategory-row[hidden] { display: none; }
.subcategory-row .chip {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--slate);
  cursor: pointer;
}
.subcategory-row .chip:hover { color: var(--ink); }
.subcategory-row .chip.active { background: rgba(232,86,42,0.12); color: var(--ember-dark); font-weight: 600; }

.packages-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.package-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.package-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--line);
}
.package-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(20,29,51,0.35); }
.package-card.featured {
  border-color: rgba(232,86,42,0.35);
  box-shadow: 0 20px 40px -24px rgba(232,86,42,0.35);
}
.package-card.featured::before { background: var(--gradient-brand); }
.package-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px;
  background: rgba(232,86,42,0.1); color: var(--ember);
  margin-bottom: 14px;
}
.package-card.featured .package-icon { background: rgba(31,157,102,0.12); color: var(--growth); }
.package-card-image {
  margin: -32px -26px 18px;
  aspect-ratio: 16/9;
  background: var(--steel);
  overflow: hidden;
}
.package-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge {
  position: absolute; top: 16px; right: -34px;
  background: var(--gradient-ember);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 40px;
  transform: rotate(38deg);
  box-shadow: 0 6px 14px -6px rgba(232,86,42,0.6);
}
.package-price { font-family: var(--font-mono); font-size: 1.35rem; color: var(--ink); font-weight: 600; margin: 4px 0 10px; }
.package-desc { color: var(--slate); font-size: 0.9rem; margin-bottom: 16px; }
.package-features { list-style: none; padding: 0; margin: 0 0 22px; flex-grow: 1; }
.package-features li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.package-features li::before { content: "✓  "; color: var(--growth); font-weight: 700; }

/* --- Page header (used on inner pages) --- */
.page-header { text-align: center; padding-bottom: 20px; }
.page-header-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--gradient-brand); color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 14px 28px -12px rgba(232,86,42,0.5);
}
.page-header h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.page-header p { color: var(--slate); margin: 0; }

/* --- FAQ --- */
.faq { max-width: 760px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 0.95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--ember); font-weight: 400; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { color: var(--slate); margin: 0 0 18px; font-size: 0.9rem; }

/* --- Quick links (home page) --- */
.quicklinks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.quicklink-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.quicklink-card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 40px -26px rgba(20,29,51,0.35); }
.quicklink-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(232,86,42,0.12);
  color: var(--ember);
  margin-bottom: 16px;
}
.quicklink-card h3 { font-size: 1.05rem; margin: 0 0 6px; }
.quicklink-card p { color: var(--slate); font-size: 0.88rem; margin: 0; }

/* =========================================================
   Auth pages (register / login)
   ========================================================= */
.auth-section { max-width: 460px; }
.auth-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; box-shadow: 0 20px 40px -28px rgba(20,29,51,0.25);
}
.auth-box h1 { font-size: 1.5rem; margin-bottom: 6px; text-align: center; }
.auth-sub { color: var(--slate); text-align: center; font-size: 0.9rem; margin: 0 0 24px; }
.auth-form { display: grid; gap: 16px; }
.auth-form label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--slate); font-weight: 500; }
.auth-form input {
  font-family: var(--font-body); font-size: 0.95rem; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line);
}
.auth-form input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232,86,42,0.15); }
.auth-switch { text-align: center; font-size: 0.88rem; color: var(--slate); margin-top: 18px; }
.amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.amount-presets .chip { border: 1px solid var(--line); background: var(--paper); }

/* =========================================================
   Account dashboard
   ========================================================= */
.account-section { max-width: 900px; }
.wallet-card {
  background: var(--indigo);
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 30px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  margin-bottom: 40px;
}
.wallet-card .package-detail-price-label { color: #C4CBDC; }
.wallet-balance { font-family: var(--font-mono); font-size: 2rem; font-weight: 600; color: #fff; margin: 4px 0 0; }
.account-table-wrap { overflow-x: auto; margin-bottom: 40px; }
.account-table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 0.88rem; white-space: nowrap; }
.account-table th { color: var(--slate); font-weight: 600; }
.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.76rem; background: var(--steel); color: var(--slate); }
.status-pill.status-paid { background: rgba(31,157,102,0.12); color: var(--growth); }
.status-pill.status-pending { background: rgba(232,86,42,0.12); color: var(--ember-dark); }
.txn-credit { color: var(--growth); font-family: var(--font-mono); }
.txn-debit { color: var(--ember-dark); font-family: var(--font-mono); }
.account-logout { text-align: center; }
.account-logout a { color: var(--slate); font-size: 0.88rem; }

/* --- Payment method picker (detail page) --- */
.payment-method-picker { display: grid; gap: 8px; margin-bottom: 4px; }
.payment-method-option {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  cursor: pointer; font-size: 0.88rem;
}
.payment-method-option input { accent-color: var(--ember); }
.payment-method-option.selected { border-color: var(--ember); background: rgba(232,86,42,0.06); }
.wallet-hint { font-size: 0.8rem; color: var(--slate); margin: 0; }
.wallet-hint a { color: var(--ember); }

/* --- CTA banner --- */
.cta-banner {
  background: var(--indigo-deep);
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  color: #fff;
  text-align: center;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(232,86,42,0.25), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner h2, .cta-banner p, .cta-banner .btn { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: #C4CBDC; margin: 0 0 26px; }

/* --- About --- */
.about-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.about p { color: var(--slate); }

/* --- Blog --- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.blog-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -28px rgba(20,29,51,0.35); }
.blog-card-link { display: block; text-decoration: none; color: inherit; }
.blog-card-image { aspect-ratio: 16/9; overflow: hidden; background: var(--steel); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 22px; }
.blog-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ember); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card h3 { font-size: 1.05rem; margin: 10px 0 8px; }
.blog-card p { color: var(--slate); font-size: 0.9rem; margin: 0 0 10px; }
.blog-readmore { color: var(--ember); font-size: 0.85rem; font-weight: 600; }
.empty-state { text-align: center; color: var(--slate); }

/* --- Single blog post --- */
.blog-post { max-width: 720px; }
.blog-post-back { margin-bottom: 10px; }
.blog-post-back a { color: var(--slate); font-size: 0.88rem; text-decoration: none; }
.blog-post h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 24px; }
.blog-post-image { border-radius: var(--radius); overflow: hidden; margin-bottom: 30px; }
.blog-post-image img { width: 100%; display: block; }
.blog-post-content { color: var(--ink); font-size: 1.02rem; line-height: 1.75; }
.blog-post-content p { margin: 0 0 18px; }
.blog-post-content h2 { font-size: 1.35rem; margin: 32px 0 14px; }
.blog-post-content h3 { font-size: 1.15rem; margin: 26px 0 12px; }
.blog-post-content img { max-width: 100%; border-radius: 10px; margin: 12px 0; }
.blog-post-content ul, .blog-post-content ol { margin: 0 0 18px; padding-left: 22px; }
.blog-post-content a { color: var(--ember); }

/* --- Contact --- */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--slate); }
.contact-phone { color: var(--ink) !important; margin-top: 20px; }
.contact-form { background: var(--steel); border-radius: var(--radius); padding: 32px; display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--slate); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--font-body); font-size: 0.95rem; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232,86,42,0.15);
}
.form-notice { padding: 12px 16px; border-radius: 8px; font-size: 0.9rem; }
.form-notice.success { background: rgba(31,157,102,0.12); color: var(--growth); }
.form-notice.error { background: rgba(232,86,42,0.12); color: var(--ember-dark); }

.site-footer { text-align: center; color: var(--slate); font-size: 0.85rem; padding: 28px 40px; border-top: 1px solid var(--line); }

/* =========================================================
   Package detail page
   ========================================================= */
.package-title-link { color: inherit; text-decoration: none; }
.package-title-link:hover { color: var(--ember); }

.package-detail { max-width: 1080px; }
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--slate); margin-bottom: 28px;
}
.breadcrumb-box {
  background: var(--steel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--ember); }
.breadcrumb-current { color: var(--ink); font-weight: 600; }

.package-detail-image {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  aspect-ratio: 4/3;
  background: var(--steel);
}
.package-detail-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.package-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}
.badge-inline {
  display: inline-block;
  background: var(--gradient-ember);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.package-detail-main h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.package-detail-desc { color: var(--slate); font-size: 1rem; margin-bottom: 22px; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.trust-badges span {
  background: var(--steel); color: var(--ink);
  font-size: 0.8rem; padding: 7px 14px; border-radius: 999px;
}
.package-detail-main h2 { font-size: 1.2rem; margin-bottom: 16px; }
.package-detail-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.package-detail-features li {
  padding: 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; font-size: 0.92rem;
}
.package-detail-features li::before { content: "✓  "; color: var(--growth); font-weight: 700; }

.package-detail-side { position: sticky; top: 24px; }
.package-detail-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 20px 40px -28px rgba(20,29,51,0.25);
}
.package-detail-price-label { font-size: 0.8rem; color: var(--slate); }
.package-detail-price { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 600; margin: 4px 0 18px; }

.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-pill { background: var(--steel); color: var(--slate); font-size: 0.76rem; padding: 5px 12px; border-radius: 999px; }

.duration-picker { margin-bottom: 18px; }
.duration-picker-label { font-size: 0.82rem; color: var(--slate); font-weight: 600; display: block; margin-bottom: 10px; }
.duration-options { display: grid; gap: 8px; }
.duration-option {
  display: flex; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 14px;
  cursor: pointer; font-size: 0.88rem; transition: border-color 0.15s ease, background 0.15s ease;
}
.duration-option input { position: absolute; opacity: 0; width: 0; height: 0; }
.duration-option-price { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }
.duration-option.selected { border-color: var(--ember); background: rgba(232,86,42,0.06); }
.duration-option.selected .duration-option-price { color: var(--ember-dark); }
.duration-option:hover { border-color: var(--ember); }

.qty-stepper {
  display: flex; align-items: center; gap: 0;
  border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; width: fit-content;
}
.qty-btn {
  background: var(--steel); border: none; width: 36px; height: 36px;
  font-size: 1.1rem; color: var(--ink); cursor: pointer; line-height: 1;
}
.qty-btn:hover { background: rgba(232,86,42,0.12); color: var(--ember-dark); }
.qty-stepper input {
  width: 48px; text-align: center; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 36px; font-family: var(--font-mono); font-size: 0.9rem; -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-buy-form { display: grid; gap: 12px; margin-top: 14px; }
.detail-buy-form[hidden] { display: none; }
.detail-buy-form label { display: grid; gap: 6px; font-size: 0.85rem; color: var(--slate); }
.detail-buy-form input {
  padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); font-family: inherit; font-size: 0.92rem;
}
.package-detail-note { font-size: 0.82rem; color: var(--slate); margin: 16px 0 0; text-align: center; }

@media (max-width: 760px) {
  .package-detail-grid { grid-template-columns: 1fr; }
  .package-detail-side { position: static; }
}

/* =========================================================
   Buy modal
   ========================================================= */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,29,51,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--steel); border: none; border-radius: 50%;
  width: 30px; height: 30px; cursor: pointer; font-size: 0.9rem; color: var(--slate);
}
.modal-package-line { color: var(--slate); font-size: 0.9rem; margin: 4px 0 20px; }
.modal-box form { display: grid; gap: 14px; }
.modal-box label { display: grid; gap: 6px; font-size: 0.9rem; color: var(--slate); font-weight: 500; }
.modal-box input {
  font-family: var(--font-body); font-size: 0.95rem; padding: 11px 14px; border-radius: 8px; border: 1px solid var(--line);
}
.modal-box input:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(232,86,42,0.15); }

/* =========================================================
   Checkout / payment page
   ========================================================= */
.checkout { max-width: 760px; }
.checkout-box { text-align: center; }
.checkout-sub { color: var(--slate); margin-bottom: 30px; }
.checkout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  text-align: left;
  background: var(--steel);
  border-radius: var(--radius);
  padding: 28px;
}
.checkout-qr { text-align: center; }
.checkout-qr img { border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.checkout-qr-note { font-size: 0.8rem; color: var(--slate); margin-top: 10px; }
.checkout-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.9rem;
}
.checkout-row:last-of-type { border-bottom: none; }
.checkout-row span { color: var(--slate); }
.checkout-amount { font-family: var(--font-mono); font-size: 1.2rem; color: var(--ember); }
.checkout-code { font-family: var(--font-mono); background: rgba(232,86,42,0.1); color: var(--ember-dark); padding: 2px 8px; border-radius: 6px; }
.checkout-warn { font-size: 0.8rem; color: var(--slate); margin: 14px 0 0; }
.checkout-status {
  margin-top: 18px; padding: 12px; border-radius: 8px;
  background: rgba(232,86,42,0.08); color: var(--ember-dark);
  font-size: 0.88rem; display: flex; align-items: center; gap: 10px;
}
.checkout-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(232,86,42,0.3); border-top-color: var(--ember-dark);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.checkout-result { padding: 40px 20px; }
.checkout-result-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(31,157,102,0.12); color: var(--growth);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin: 0 auto 20px;
}
.checkout-result p { color: var(--slate); max-width: 46ch; margin: 0 auto 24px; }

.purchase-note {
  background: var(--steel);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 auto 24px;
  max-width: 420px;
  text-align: left;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.6;
}

.code-reveal {
  background: var(--steel);
  border: 1.5px dashed var(--ember);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 auto 24px;
  max-width: 360px;
  display: grid;
  gap: 8px;
}
.code-reveal-label { font-size: 0.78rem; color: var(--slate); text-transform: uppercase; letter-spacing: 0.04em; }
.code-reveal-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ember-dark);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 12px;
}

@media (max-width: 640px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Scroll reveal
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 30px; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .sidebar-toggle { display: block; }
  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    z-index: 50;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
  }
  .sidebar.open { transform: translateX(0); }
  .topbar { padding: 18px 20px 18px 68px; }
  .section, .hero, .pain, .packages, .stats-row { padding-left: 20px; padding-right: 20px; }
  .site-footer { padding-left: 20px; padding-right: 20px; }
}
