/* ═══════════════════════════════════════════════════════════════
   STEPS.CSS — Mobile-First Dark Premium Theme for SellerCare
   Base: mobile (320-767px) → Desktop: @media (min-width: 768px)
   ═══════════════════════════════════════════════════════════════ */

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

:root, [data-theme="dark"] {
  --bg: #09080d;
  --bg-card: #13111a;
  --bg-card-hover: #1a1725;
  --bg-input: #1a1725;
  --accent: #7c5cfc;
  --accent-soft: rgba(124,92,252,.15);
  --accent-glow: rgba(124,92,252,.35);
  --text: #e8e6f0;
  --text-muted: #9490a8;
  --text-dim: #5a5672;
  --border: #2a2638;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,.3);
  --topbar-h: 56px;
  --bottomnav-h: 64px;
  --topbar-bg: rgba(9,8,13,.92);
  --bottomnav-bg: rgba(13,11,18,.96);
}

[data-theme="light"] {
  --bg: #f5f3fa;
  --bg-card: #ffffff;
  --bg-card-hover: #f0edfa;
  --bg-input: #f0edfa;
  --accent: #6c47f0;
  --accent-soft: rgba(108,71,240,.1);
  --accent-glow: rgba(108,71,240,.25);
  --text: #1a1530;
  --text-muted: #6b6580;
  --text-dim: #9e97b0;
  --border: #e0dce8;
  --green: #059669;
  --red: #dc2626;
  --yellow: #d97706;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --topbar-bg: rgba(245,243,250,.92);
  --bottomnav-bg: rgba(255,255,255,.96);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bottomnav-h) + 16px);
}

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

/* ── Topbar ─────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: var(--topbar-h);
  background: var(--topbar-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-left svg { color: var(--accent); flex-shrink: 0; }
.topbar-left h1 {
  font-size: .95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar-links { display: none; }
#userInfo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .85rem;
}
.user-name {
  font-size: .82rem;
  color: var(--text-muted);
  display: none;
}
.btn-logout {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px;
  border-radius: 8px; transition: all .2s;
  display: flex; align-items: center;
}
.btn-logout:hover { color: var(--red); background: rgba(248,113,113,.1); }

/* ── Theme Toggle Button ───────────────────── */
.btn-theme {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px;
  border-radius: 8px; transition: all .2s;
  display: flex; align-items: center;
  width: 32px; height: 32px;
  justify-content: center;
}
.btn-theme:hover { color: var(--accent); background: var(--accent-soft); }
.btn-theme svg { width: 18px; height: 18px; }

/* ── Bottom Navigation (Mobile) ─────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  height: var(--bottomnav-h);
  background: var(--bottomnav-bg);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 0 4px;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: .65rem;
  font-weight: 500;
  transition: color .2s;
  min-height: 44px;
  position: relative;
}
.bnav-item.active { color: var(--accent); }
.bnav-item.done { color: var(--green); }
.bnav-item .bnav-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
  background: var(--bg-card);
  border: 2px solid var(--border);
  transition: all .2s;
}
.bnav-item.active .bnav-icon {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.bnav-item.done .bnav-icon {
  background: rgba(52,211,153,.15);
  color: var(--green);
  border-color: var(--green);
}

/* ── Step Nav (Desktop only) ────────────────── */
.step-nav { display: none; }

/* ── Main Content ───────────────────────────── */
.main-content {
  padding: 16px;
  max-width: 960px;
  margin: 0 auto;
}

/* ── Page Header ────────────────────────────── */
.page-header {
  margin-bottom: 6px;
}
.page-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
}
.page-header h2 svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.page-header p {
  color: var(--text-muted);
  font-size: .85rem;
  margin-top: 2px;
}

/* ── Section Description ────────────────────── */
.section-desc {
  background: var(--accent-soft);
  border: 1px solid rgba(124,92,252,.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Field Description ──────────────────────── */
.field-desc {
  font-size: .75rem;
  color: var(--text-dim);
  margin-top: 2px;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* ── Cards ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.card-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card-icon svg { width: 18px; height: 18px; color: var(--accent); }
.card-header h3 {
  font-size: .9rem;
  font-weight: 600;
}
.card-body { padding: 16px; }
.card-accent {
  border-color: rgba(124,92,252,.3);
  background: linear-gradient(135deg, var(--bg-card), rgba(124,92,252,.05));
}

/* ── Input Groups ───────────────────────────── */
.input-group {
  margin-bottom: 16px;
}
.input-group:last-child { margin-bottom: 0; }
.input-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--text);
}
.input-group .hint, .label-hint {
  font-size: .72rem;
  color: var(--text-dim);
  font-weight: 400;
}
.auto-badge {
  font-size: .68rem;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 4px;
}
.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: .92rem;
  padding: 12px 14px;
  outline: none;
  min-width: 0;
  min-height: 44px;
}
.input-wrapper input::placeholder { color: var(--text-dim); }
.unit {
  padding: 0 12px;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  flex-shrink: 0;
}
.field-note {
  display: block;
  font-size: .72rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-style: italic;
}
.sub-input {
  padding-left: 16px;
  border-left: 2px solid var(--accent-soft);
  margin-left: 8px;
}

/* ── Toggle Switch ──────────────────────────── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.toggle-info { flex: 1; min-width: 0; }
.toggle-info label { font-size: .85rem; font-weight: 500; }
.toggle-info p, .toggle-desc { font-size: .75rem; color: var(--text-dim); margin-top: 2px; }
.toggle-switch {
  position: relative;
  width: 48px; height: 26px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--border);
  border-radius: 13px;
  cursor: pointer;
  transition: .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 3px; bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: .3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ── Tables ─────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  min-width: 600px;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.data-table th {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dim);
  background: rgba(124,92,252,.04);
  white-space: nowrap;
}
.data-table td input,
.data-table .rt-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  padding: 8px 10px;
  width: 100%;
  outline: none;
  min-height: 40px;
  transition: border-color .2s;
}
.data-table td input:focus,
.data-table .rt-input:focus {
  border-color: var(--accent);
}
.row-label { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.col-avg { color: var(--accent); font-weight: 600; text-align: center; }
.row-computed td { color: var(--text-muted); font-style: italic; }
.note { font-size: .72rem; color: var(--text-dim); }
.text-accent { color: var(--accent) !important; }
.text-red { color: var(--red) !important; }
.text-green { color: var(--green) !important; }

/* Delete button */
.btn-del {
  background: none; border: none; cursor: pointer;
  color: var(--text-dim); padding: 6px;
  border-radius: 6px; transition: all .2s;
  min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.btn-del:hover { color: var(--red); background: rgba(248,113,113,.1); }

/* Add button */
.btn-add {
  width: 100%;
  padding: 10px;
  background: var(--bg-input);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-family: inherit;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
  margin-top: 8px;
  min-height: 44px;
}
.btn-add:hover { border-color: var(--accent); color: var(--accent); }

/* ── Summary Row ────────────────────────────── */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}
.summary-label { font-size: .85rem; color: var(--text-muted); }
.summary-value { font-size: 1rem; font-weight: 700; }
.summary-highlight {
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 12px;
}

/* ── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all .2s;
  border: none;
  min-height: 44px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: #6b4fe0; transform: translateY(-1px); text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.btn-save {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  min-height: 48px;
  transition: all .2s;
}
.btn-save:hover { background: #6b4fe0; }

/* ── Step Footer ────────────────────────────── */
.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-bottom: 16px;
}
.spacer { flex: 1; }

/* ── Info Note ──────────────────────────────── */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(124,92,252,.2);
  border-radius: var(--radius-sm);
  font-size: .8rem;
  color: var(--text-muted);
  margin: 16px 0;
  line-height: 1.5;
}
.info-note svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent);
}

/* ── Toast ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: calc(var(--topbar-h) + 8px);
  right: 16px;
  z-index: 200;
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: 8px;
  animation: toastIn .3s ease;
  box-shadow: var(--shadow);
}
.toast-success { background: rgba(52,211,153,.15); color: var(--green); border: 1px solid rgba(52,211,153,.3); }
.toast-error { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.3); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }

/* ── Two Column Grid ────────────────────────── */
.two-col { display: block; }
.calc-grid { display: block; }

/* ── Result Table ───────────────────────────── */
.result-table { width: 100%; border-collapse: collapse; font-size: .78rem; }
.result-table th, .result-table td { padding: 8px 8px; border-bottom: 1px solid var(--border); text-align: right; }
.result-table th { background: rgba(124,92,252,.06); color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: .65rem; letter-spacing: .5px; text-align: center; white-space: nowrap; }
.result-table td:first-child { text-align: left; color: var(--text-muted); white-space: nowrap; }
.result-table tbody tr:hover { background: var(--bg-card-hover); }
.row-profit td { font-weight: 700 !important; }
.row-margin td { color: var(--text-muted); font-style: italic; }
.profit-positive { color: var(--green) !important; }
.profit-negative { color: var(--red) !important; }

/* ── Suggested Prices ───────────────────────── */
.suggested-prices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sug-item {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  text-align: center;
}
.sug-label { font-size: .7rem; color: var(--text-dim); margin-bottom: 2px; }
.sug-value { font-size: .95rem; font-weight: 700; color: var(--accent); }

/* ── Fees Grid ──────────────────────────────── */
.fees-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }

/* ── Category Selectors ─────────────────────── */
.category-layers {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.cat-select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  outline: none;
  min-height: 44px;
  cursor: pointer;
}
.cat-select:focus { border-color: var(--accent); }
.cat-select:disabled { opacity: .5; cursor: not-allowed; }
.cat-result {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 8px;
  background: rgba(52,211,153,.08);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: var(--radius-sm);
  font-size: .85rem;
}
.cat-result-rate { font-weight: 700; color: var(--green); }

/* ── Shop Type Toggle ───────────────────────── */
.shop-type-toggle {
  display: flex;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}
.shop-type-btn {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
  min-height: 44px;
}
.shop-type-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ── Suggest Box ────────────────────────────── */
.suggest-box {
  position: absolute;
  z-index: 50;
  left: 0; right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 4px;
  box-shadow: var(--shadow);
}

/* ── Strikethrough Price ────────────────────── */
.strikethrough-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.strike-old { text-decoration: line-through; color: var(--text-dim); font-size: 1rem; }
.strike-arrow { color: var(--text-dim); }
.strike-new { color: var(--accent); font-weight: 700; font-size: 1.1rem; }
.strike-discount {
  background: rgba(248,113,113,.15);
  color: var(--red);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Search Input ───────────────────────────── */
.search-input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: .85rem;
  padding: 8px 12px;
  outline: none;
  min-height: 40px;
  width: 100%;
  max-width: 250px;
}
.search-input:focus { border-color: var(--accent); }

/* ── Timeline ───────────────────────────────── */
.timeline { padding: 0; }
.timeline-item { margin-bottom: 20px; padding-left: 24px; border-left: 2px solid var(--border); position: relative; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -5px; top: 4px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline-date { font-size: .78rem; color: var(--accent); font-weight: 600; margin-bottom: 8px; }
.timeline-content h3 { font-size: .9rem; margin-bottom: 8px; }
.timeline-content ul { padding-left: 16px; font-size: .82rem; color: var(--text-muted); }
.timeline-content li { margin-bottom: 4px; }

/* ── Sticky Results ─────────────────────────── */
.sticky-results { position: static; align-self: start; }

/* ── Empty state ────────────────────────────── */
.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-dim);
  font-size: .88rem;
}

/* ═══════════════════════════════════════════════
   DESKTOP OVERRIDES (≥ 768px)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  body { padding-bottom: 0; }

  .topbar-left h1 { max-width: none; font-size: 1rem; }
  .topbar-links {
    display: flex;
    gap: 4px;
  }
  .topbar-link {
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: .82rem;
    color: var(--text-muted);
    transition: all .2s;
  }
  .topbar-link:hover { background: var(--bg-card); color: var(--text); text-decoration: none; }
  .user-name { display: inline; }

  /* Bottom nav → Top step nav */
  .bottom-nav { display: none; }
  .step-nav {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0 24px;
    height: 48px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
  }
  .step-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all .2s;
    white-space: nowrap;
  }
  .step-link:hover { color: var(--text); text-decoration: none; }
  .step-link.active { color: var(--accent); border-bottom-color: var(--accent); }
  .step-link.done { color: var(--green); }
  .step-num {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--bg-input);
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid var(--border);
  }
  .step-link.active .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
  .step-link.done .step-num { background: rgba(52,211,153,.15); color: var(--green); border-color: var(--green); }

  /* Main content wider */
  .main-content { padding: 24px 32px; max-width: 1200px; }

  /* Page header */
  .page-header h2 { font-size: 1.35rem; }

  /* Two column layout */
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

  /* Fees grid */
  .fees-grid { grid-template-columns: 1fr 1fr 1fr; }

  /* Category layers */
  .category-layers { grid-template-columns: 1fr 1fr 1fr 1fr; }

  /* Suggested prices */
  .suggested-prices { grid-template-columns: repeat(5, 1fr); }

  /* Table wrapper (no negative margin) */
  .table-wrapper { margin: 0; padding: 0; }

  /* Sticky results */
  .sticky-results {
    position: sticky;
    top: calc(var(--topbar-h) + 48px + 16px);
    align-self: start;
    max-height: calc(100vh - var(--topbar-h) - 48px - 32px);
    overflow-y: auto;
  }
}

/* ═══════════════════════════════════════════════
   LARGE DESKTOP (≥ 1200px)
   ═══════════════════════════════════════════════ */
@media (min-width: 1200px) {
  .main-content { max-width: 1400px; }
}

/* ═══════════════════════════════════════════════
   BRANDING & CTA
   ═══════════════════════════════════════════════ */

/* ── Upgrade Banner ────────────────────────── */
.upgrade-banner {
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.upgrade-banner::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
}
.upgrade-banner-content { flex: 1; color: #fff; }
.upgrade-banner-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.upgrade-banner-content p {
  font-size: .82rem;
  opacity: .9;
  line-height: 1.4;
}
.upgrade-banner .btn-upgrade {
  padding: 10px 20px;
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: inherit;
  font-size: .85rem;
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  text-decoration: none;
  flex-shrink: 0;
}
.upgrade-banner .btn-upgrade:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  text-decoration: none;
}

/* ── Pro Feature Lock ──────────────────────── */
.pro-lock {
  position: relative;
  pointer-events: none;
  opacity: .5;
  filter: blur(1px);
}
.pro-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  border-radius: var(--radius);
  z-index: 10;
  pointer-events: auto;
}
.pro-lock-overlay a {
  background: var(--accent);
  color: #fff;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: all .2s;
}
.pro-lock-overlay a:hover {
  transform: scale(1.05);
  text-decoration: none;
}

/* ── Floating CTA ──────────────────────────── */
.floating-cta {
  position: fixed;
  bottom: calc(var(--bottomnav-h) + 12px);
  right: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--accent), #a78bfa);
  color: #fff;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(124,92,252,.4);
  transition: all .3s;
  animation: floatPulse 3s ease-in-out infinite;
}
.floating-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(124,92,252,.5);
  text-decoration: none;
}
.floating-cta .close-cta {
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: .9rem;
  padding: 2px;
  margin-left: 4px;
}
.floating-cta .close-cta:hover { color: #fff; }
@keyframes floatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ── Site Footer ───────────────────────────── */
.site-footer {
  text-align: center;
  padding: 20px 16px;
  margin-top: 20px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
  color: var(--text-dim);
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.site-footer a:hover { text-decoration: underline; }
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.site-footer .footer-links a { color: var(--text-muted); }

/* ── Topbar brand link ─────────────────────── */
.topbar-brand-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .75rem;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all .2s;
  white-space: nowrap;
}
.topbar-brand-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}

@media (min-width: 768px) {
  .floating-cta { bottom: 24px; right: 24px; }
}
