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

/* ── Base ────────────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111;
  background: #f7f7f7;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════════════════════════════════════════
   PHONE LAYOUT  (ui.html design system)
   ══════════════════════════════════════════════════════════════════════════════ */

.phone {
  width: 100%;
  height: 100svh;
  background: #fff;
  color: #111;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 14px 18px 0;
  font-weight: 500;
  font-size: 14px;
}

/* ── Wallet row ── */
.wallet-row { display: flex; gap: 14px; margin-bottom: 22px; }

/* ── Main wrap + wallet bar ── */
.app-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.wallet-bar {
  flex-shrink: 0;
  padding: 14px 18px 0;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 18px 16px;
  min-height: 0;
}

.wallet-card {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-left { display: flex; align-items: center; gap: 14px; }
.wallet-left i { font-size: 28px; }
.balance h2 { font-size: 17px; font-weight: 700; }
.balance p  { font-size: 12px; color: #444; }

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
}

/* ── Header row ── */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  gap: 12px;
}

.phone h1 {
  font-size: 22px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub { margin-top: 4px; color: #444; font-size: 14px; line-height: 1.2; }

.dropdown {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}

/* ── Dashboard grid ── */
.dashboard-grid { display: block; }

/* ── Summary top ── */
.summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.summary-top > div:first-child { flex: 1; min-width: 0; }
.line-graph { width: 100px; height: 80px; flex-shrink: 0; }
.line-graph svg { width: 100%; height: 100%; }

/* ── Period select ── */
.period-sel {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #111;
  background: #fff;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

/* ── Revenue chart ── */
.chart { height: 200px; position: relative; overflow: visible; }
.chart canvas { width: 100% !important; height: 100% !important; }

/* ── Bottom nav ── */
.bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid #eee;
  padding: 10px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  flex-shrink: 0;
}

.nav-item {
  text-align: center;
  font-size: 11px;
  color: #444;
  font-weight: 500;
  cursor: pointer;
  transition: color .2s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  font-family: inherit;
}

.nav-item:hover { color: #000; }
.nav-item.active { color: #000; font-weight: 700; }
.nav-item i { display: block; font-size: 18px; margin-bottom: 6px; }

/* ── More sheet (mobile "More" menu) ── */
.more-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 400;
}
.more-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,.12);
  z-index: 401;
  padding: 14px 0 calc(20px + env(safe-area-inset-bottom, 0px));
}
.more-sheet-handle {
  width: 36px; height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  margin: 0 auto 12px;
}
.more-sheet a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 24px;
  font-size: 15px; font-weight: 500;
  color: #111;
  border-bottom: 1px solid #f5f5f5;
}
.more-sheet a:last-child { border-bottom: none; }
.more-sheet a.active { color: #ff7900; }
.more-sheet a i { width: 22px; font-size: 16px; color: #666; }
.more-sheet a.active i { color: #ff7900; }

/* ── Desktop sidebar (hidden on mobile) ── */
.app-sidebar { display: none; }
.app-content  { }

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 0 4px;
}
.app-brand-icon {
  width: 34px; height: 34px;
  background: #111; color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.app-brand-name { font-size: 14px; font-weight: 700; color: #111; line-height: 1.2; }
.app-brand-sub  { font-size: 11px; color: #aaa; }

.app-sidebar-nav {
  display: flex; flex-direction: column; gap: 2px; flex: 1;
}
.app-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  color: #444; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background .12s, color .12s;
}
.app-sidebar-nav a:hover  { background: #f5f5f5; color: #111; }
.app-sidebar-nav a.active { background: #111; color: #fff; }
.app-sidebar-nav a i { width: 16px; text-align: center; font-size: 13px; flex-shrink: 0; }

.app-sidebar-footer {
  margin-top: 12px; padding-top: 14px;
  border-top: 1px solid #eee;
  display: flex; align-items: center; gap: 8px;
}
.app-user-row { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; }
.app-avatar-sm {
  width: 30px; height: 30px; background: #111; color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.app-user-name { font-size: 12px; font-weight: 600; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-role { font-size: 11px; color: #aaa; }
.app-logout-btn {
  background: none; border: none; cursor: pointer;
  color: #aaa; font-size: 14px; padding: 6px;
  border-radius: 8px; display: flex; align-items: center;
}
.app-logout-btn:hover { color: #111; background: #f5f5f5; }

/* ── Hotspot switcher ── */
.hs-switcher { position: relative; margin-bottom: 16px; }
.hs-trigger {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 11px; border: 1px solid #ddd; border-radius: 10px;
  background: #fff; cursor: pointer; font-size: 12px; font-weight: 500;
  color: #444; font-family: inherit; transition: border-color .15s;
}
.hs-trigger:hover { border-color: #aaa; color: #111; }
.hs-trigger.open  { border-color: #111; }
.hs-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  background: #fff; border: 1px solid #ddd; border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08); z-index: 300; overflow: hidden;
}
.hs-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 10px 12px; border: none; background: none;
  cursor: pointer; font-size: 12px; color: #444; font-family: inherit; text-align: left;
}
.hs-item:hover { background: #f5f5f5; color: #111; }
.hs-item.sel    { font-weight: 600; color: #111; background: #f9f9f9; }
.hs-item.add    { border-top: 1px solid #eee; color: #888; font-style: normal; }
.hs-item.add:hover { color: #111; background: #f5f5f5; }
.hs-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.hs-dot.on  { background: #059669; }
.hs-dot.off { background: #ccc; }

/* Mobile topbar hotspot label */
.topbar-left { display: flex; align-items: center; gap: 10px; }
.topbar-hs   { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #666; }
.topbar-hs-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #555; background: none; border: none; padding: 2px 6px 2px 0; cursor: pointer; font-family: inherit; }
.topbar-hs-btn:active { opacity: .7; }
.more-sheet-hs-item { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: none; padding: 12px 4px; font-size: 14px; color: #111; cursor: pointer; font-family: inherit; border-bottom: 1px solid #f0f0f0; }
.more-sheet-hs-item:last-child { border-bottom: none; }
.more-sheet-hs-item.sel { font-weight: 600; }
.more-sheet-hs-item:active { background: #f5f5f5; }

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .phone { max-width: 900px; }
  .topbar { padding: 24px 24px 0; }
  .wallet-bar { padding: 16px 24px 0; }
  .app-content { padding: 8px 24px 24px; }
  .wallet-row { margin-bottom: 28px; }
  .wallet-card { padding: 16px 18px; }
  .header-row { margin-bottom: 28px; }
  .phone h1 { font-size: 26px; }
  .line-graph { width: 120px; height: 100px; }
  .chart { height: 260px; }
  .bottom-nav { padding: 14px 0 calc(20px + env(safe-area-inset-bottom, 0px)); }
}

/* ── Desktop (1024px+): sidebar layout ── */
@media (min-width: 1024px) {
  .phone {
    display: grid;
    grid-template-columns: 220px 1fr;
    grid-template-rows: 1fr;
    max-width: none;
    width: 100%;
    height: 100vh;
    background: #f7f7f7;
    border: none; border-radius: 0; box-shadow: none;
  }

  .topbar, .bottom-nav { display: none !important; }
  .more-backdrop, .more-sheet { display: none !important; }

  .app-sidebar {
    grid-column: 1; grid-row: 1;
    display: flex; flex-direction: column;
    height: 100vh; position: sticky; top: 0;
    background: #fff; border-right: 1px solid #ddd;
    padding: 20px 14px; overflow-y: auto;
  }

  .app-main-wrap {
    grid-column: 2; grid-row: 1;
    display: flex; flex-direction: column;
    height: 100vh; overflow: hidden;
  }

  .wallet-bar {
    flex-shrink: 0;
    padding: 20px 32px 12px;
    border-bottom: 1px solid #eee;
    background: #fff;
  }
  .wallet-bar .wallet-row { margin-bottom: 0; }

  .app-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    min-width: 0; min-height: 0;
  }

  .phone h1 { font-size: 26px; }
  .sub { font-size: 14px; }
  .wallet-row { margin-bottom: 24px; }
  .header-row { margin-bottom: 24px; }
  .line-graph { width: 120px; height: 100px; }
  .chart { height: 260px; }

  .dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
  }
}

/* ── Large desktop (1400px+) ── */
@media (min-width: 1400px) {
  .phone { grid-template-columns: 240px 1fr; }
  .wallet-bar { padding: 22px 40px 14px; }
  .app-content { padding: 32px 40px; }
  .phone h1 { font-size: 28px; }
  .line-graph { width: 140px; height: 110px; }
  .chart { height: 300px; }
  .dashboard-grid { gap: 28px; }
}


/* ══════════════════════════════════════════════════════════════════════════════
   UI COMPONENT LIBRARY  (based on ui.html design system)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Card ────────────────────────────────────────────────────────────────────── */
.card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

/* ── Section title ───────────────────────────────────────────────────────────── */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* ── Label + dot ─────────────────────────────────────────────────────────────── */
.label {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  gap: 10px;
  align-items: center;
  letter-spacing: .3px;
  color: #111;
}

.dot { width: 10px; height: 10px; background: #000; border-radius: 50%; flex-shrink: 0; }

/* ── Divider ─────────────────────────────────────────────────────────────────── */
.divider { height: 1px; background: #e7e7e7; margin: 20px 0; }

/* ── Amount ──────────────────────────────────────────────────────────────────── */
.amount {
  font-size: clamp(20px, 4vw, 32px);
  font-weight: 800;
  line-height: 1.2;
  word-break: break-word;
  color: #111;
}

.muted { font-size: 13px; color: #444; margin-top: 10px; line-height: 1.4; }

/* ── Stats grid ──────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

.stat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding-right: 12px;
  border-right: 1px solid #eee;
}

.stat:last-child { border-right: none; padding-right: 0; }
.stat i { font-size: 18px; color: #444; }
.stat strong { font-size: 14px; font-weight: 700; display: block; color: #111; margin-top: 2px; }
.stat div div { font-size: 11px; color: #777; }

/* ── Quick grid / buttons ────────────────────────────────────────────────────── */
.quick-grid { display: flex; flex-direction: column; gap: 12px; }

.quick-btn {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  gap: 10px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: #111;
  background: #fff;
  font-family: inherit;
  border: 1px solid #ddd;
}

.quick-btn:hover { background: #f9f9f9; color: #111; }

.quick-btn .icon {
  width: 38px;
  height: 38px;
  background: #111;
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* ── Activity rows ───────────────────────────────────────────────────────────── */
.activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  gap: 12px;
}

.activity-item:last-child { border-bottom: none; }

.activity-left { display: flex; gap: 14px; align-items: center; flex: 1; min-width: 0; }
.activity-name { font-size: 13px; font-weight: 600; color: #111; }
.activity-meta { font-size: 11px; color: #444; margin-top: 3px; line-height: 1.3; }

.activity-amount { text-align: right; flex-shrink: 0; }
.activity-amount strong { font-size: 13px; font-weight: 700; display: block; color: #111; }
.activity-amount div { font-size: 11px; color: #444; margin-top: 2px; }

/* ── Page header ─────────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.page-header h2 { font-size: 20px; font-weight: 800; color: #111; margin: 0; }
.page-header p  { font-size: 12px; color: #aaa; margin: 2px 0 0; }
.page-header-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn, .btn1, .btn2, .btn3 {
  padding: 9px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}

.btn, .btn1 { background: #111; color: #fff; }
.btn:hover, .btn1:hover { background: #333; }
.btn:disabled, .btn1:disabled { opacity: .45; cursor: not-allowed; }

.btn2 { background: #059669; color: #fff; }
.btn2:hover { background: #047857; }

.btn3 { background: #fff; border: 1px solid #ddd; color: #444; }
.btn3:hover { border-color: #111; color: #111; }
.btn3:disabled { opacity: .45; cursor: not-allowed; }

/* ── Forms ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; text-align: left; }
.form-group label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 6px; }

input.form-input, select.form-input, textarea.form-input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color .15s;
  outline: none;
  background: #fff;
  font-family: inherit;
  color: #111;
}

input.form-input:focus, select.form-input:focus, textarea.form-input:focus { border-color: #111; }
select.form-input { padding-left: 14px; }
textarea.form-input { padding-left: 14px; resize: vertical; }

.input-wrap { position: relative; }
.input-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: 14px; pointer-events: none; }

.big-btn {
  width: 100%;
  padding: 13px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 4px;
  font-family: inherit;
}

.big-btn:hover { background: #333; }

/* ── Table ───────────────────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; background: #fff; }
table th, table td { padding: 12px 14px; text-align: left; font-size: 12px; border-bottom: 1px solid #eee; }
table th { background: #f9f9f9; font-weight: 700; color: #444; text-transform: uppercase; font-size: 11px; letter-spacing: .3px; }
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: #fafafa; }

.table-container { background: #fff; border: 1px solid #ddd; border-radius: 10px; overflow: hidden; }
.table-container table { box-shadow: none; }

/* ── Modal ───────────────────────────────────────────────────────────────────── */
.modal-overlay, .modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal, .modal-box {
  background: #fff;
  border-radius: 10px;
  width: 90%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #ddd;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}

.modal-body  { padding: 20px; flex: 1; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid #eee; flex-shrink: 0; }
.modal-close { background: none; border: none; font-size: 24px; color: #aaa; cursor: pointer; line-height: 1; padding: 0; }
.modal-close:hover { color: #111; }

/* ── Badges ──────────────────────────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #f3f4f6; color: #374151; }

/* ── Alerts ──────────────────────────────────────────────────────────────────── */
.alert { padding: 12px 15px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; font-weight: 500; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: #f3f4f6; color: #374151; border: 1px solid #e5e7eb; }

/* ── Tabs ────────────────────────────────────────────────────────────────────── */
.tabs, .tab-bar { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tab {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all .15s;
  user-select: none;
  color: #444;
  font-family: inherit;
}

.tab:hover { background: #f5f5f5; color: #111; }
.tab.active { background: #111; color: #fff; border-color: #111; }

/* ── Filter bar ──────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  align-items: center;
  background: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 48px 20px; color: #aaa; }
.empty-state i { font-size: 40px; margin-bottom: 14px; display: block; opacity: .4; }
.empty-state p { font-size: 14px; margin: 0; }

/* ── Toast (global utility) ──────────────────────────────────────────────────── */
.toast {
  position: fixed;
  right: 20px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  z-index: 9999;
  min-width: 260px;
  font-size: 13px;
}

.toast-success { border-left: 3px solid #059669; }
.toast-error   { border-left: 3px solid #dc2626; }
.toast-msg     { flex: 1; }
.toast-close   { background: none; border: none; font-size: 18px; cursor: pointer; color: #aaa; line-height: 1; }

/* ── Section area ────────────────────────────────────────────────────────────── */
.section-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 20px; }
.section { background: #fff; padding: 18px; border-radius: 10px; border: 1px solid #ddd; }
.section-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; }
.section-header h3 { font-size: 15px; font-weight: 700; color: #111; }

/* ── Stat cards ──────────────────────────────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px 16px;
  text-align: center;
  border: 1px solid #ddd;
  transition: background .12s;
}

.stat-value  { font-size: 26px; font-weight: 800; color: #111; }
.stat-label  { font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ── Monitor cards ───────────────────────────────────────────────────────────── */
.monitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.monitor-card { background: #fff; border-radius: 10px; padding: 20px 16px; text-align: center; border: 1px solid #ddd; transition: background .12s; }
.monitor-value { font-size: 26px; font-weight: 800; color: #111; }
.monitor-label { font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.monitor-sub   { font-size: 11px; color: #aaa; margin-top: 3px; }
.monitor-value.green { color: #059669; }
.monitor-value.red   { color: #dc2626; }

.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #059669; margin-right: 5px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* ── Cards area (grid) ───────────────────────────────────────────────────────── */
.cards-area { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 10px 0 20px; }

/* ── List ────────────────────────────────────────────────────────────────────── */
.list { background: #fff; border-radius: 10px; padding: 8px; margin: 8px 0; border: 1px solid #ddd; }
.list li { list-style: none; padding: 11px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #eee; font-size: 13px; }
.list li:last-child { border-bottom: none; }
.list li.header { font-weight: 700; font-size: 11px; color: #444; background: #f9f9f9; border-radius: 6px; }
.list .name { flex: 1; }

/* ── Public pages ────────────────────────────────────────────────────────────── */
.public-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: #f7f7f7; }
.public-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 38px; width: 100%; max-width: 420px; text-align: center; }
.public-logo { width: 58px; height: 58px; background: #111; border-radius: 50%; margin: 0 auto 18px; display: flex; align-items: center; justify-content: center; }
.public-logo i { font-size: 24px; color: #fff; }
.public-card h2 { font-size: 22px; font-weight: 700; margin-bottom: 4px; color: #111; }
.public-card .subtitle { font-size: 13px; color: #444; margin-bottom: 26px; }
.back-link { margin-top: 20px; font-size: 12px; }
.back-link a { color: #aaa; }
.back-link a:hover { color: #111; }

/* ── Voucher pool ────────────────────────────────────────────────────────────── */
.vpool-section-label { font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.vpool-tab-badge { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 20px; font-size: 10px; font-weight: 700; vertical-align: middle; }
.vpool-tab-badge.ok    { background: #dcfce7; color: #166534; }
.vpool-tab-badge.empty { background: #fee2e2; color: #991b1b; }

.vpool-pkg-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.vpool-pkg-card { background: #fff; border: 1px solid #ddd; border-radius: 10px; padding: 12px 16px; cursor: pointer; text-align: left; transition: all .15s; min-width: 130px; }
.vpool-pkg-card:hover { border-color: #111; }
.vpool-pkg-card.active { border-color: #111; background: #f9f9f9; }
.vpool-pkg-name  { font-size: 13px; font-weight: 700; color: #111; }
.vpool-pkg-price { font-size: 15px; font-weight: 800; color: #111; margin-top: 3px; }
.vpool-pkg-avail { font-size: 10px; font-weight: 700; margin-top: 5px; text-transform: uppercase; letter-spacing: .4px; }
.vpool-pkg-avail.ok    { color: #059669; }
.vpool-pkg-avail.empty { color: #dc2626; }

.vpool-stats { display: flex; align-items: center; gap: 0; background: #fff; border-radius: 10px; padding: 14px 20px; margin-bottom: 16px; border: 1px solid #ddd; }
.vpool-stat { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; }
.vpool-stat-val { font-size: 22px; font-weight: 800; color: #111; }
.vpool-stat-val.green  { color: #059669; }
.vpool-stat-val.blue   { color: #0284c7; }
.vpool-stat-val.orange { color: #111; }
.vpool-stat-lbl { font-size: 10px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .5px; }
.vpool-stat-div { width: 1px; height: 36px; background: #eee; flex-shrink: 0; }

.vpool-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.vpool-actions-left, .vpool-actions-right { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vpool-gen-wrap { display: flex; gap: 0; align-items: center; }
.vpool-gen-input { width: 72px; padding: 8px 10px; border: 1px solid #ddd; border-right: none; border-radius: 8px 0 0 8px; font-size: 13px; outline: none; text-align: center; font-family: inherit; }
.vpool-gen-input:focus { border-color: #111; }
.vpool-gen-wrap .btn { border-radius: 0 8px 8px 0; }

.vpool-filter-bar { display: flex; gap: 4px; margin-bottom: 0; border-bottom: 1px solid #eee; padding-bottom: 0; }
.vpool-filter { padding: 8px 16px; border: none; background: none; cursor: pointer; font-size: 12px; font-weight: 600; color: #aaa; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; font-family: inherit; }
.vpool-filter:hover { color: #111; }
.vpool-filter.active { color: #111; border-bottom-color: #111; }
.vpool-filter-count { display: inline-block; background: #f0f0f0; color: #888; border-radius: 20px; padding: 1px 6px; font-size: 10px; margin-left: 4px; }
.vpool-filter.active .vpool-filter-count { background: #111; color: #fff; }

.vpool-table-wrap { background: #fff; border-radius: 0 0 10px 10px; overflow: hidden; border: 1px solid #ddd; border-top: none; }
.vpool-table { width: 100%; border-collapse: collapse; }
.vpool-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; color: #aaa; text-transform: uppercase; letter-spacing: .4px; background: #f9f9f9; border-bottom: 1px solid #eee; }
.vpool-table td { padding: 10px 14px; font-size: 12px; border-bottom: 1px solid #f5f5f5; }
.vpool-table tr:last-child td { border-bottom: none; }
.vpool-table tr:hover td { background: #fafafa; }
.vpool-code-cell { display: flex; align-items: center; gap: 8px; }
.vpool-code { font-family: monospace; font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: #111; }
.vpool-copy-btn { background: none; border: 1px solid #ddd; border-radius: 4px; padding: 3px 7px; cursor: pointer; color: #aaa; font-size: 11px; transition: all .15s; flex-shrink: 0; }
.vpool-copy-btn:hover { border-color: #111; color: #111; }

.vpool-pagination { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 14px; font-size: 12px; color: #aaa; background: #fff; border-top: 1px solid #eee; }
.vpool-empty { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 40px 20px; text-align: center; margin-bottom: 20px; }

/* ── Voucher print ───────────────────────────────────────────────────────────── */
.voucher-print-grid { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; }
.voucher-print-card { border: 2px dashed #aaa; border-radius: 8px; padding: 14px 10px; width: 176px; text-align: center; page-break-inside: avoid; break-inside: avoid; background: #fff; }
.voucher-print-logo { font-size: 11px; font-weight: 700; color: #111; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.voucher-print-code { font-family: monospace; font-size: 17px; font-weight: 800; letter-spacing: 2px; color: #000; margin: 10px 0; word-break: break-all; background: #f5f5f5; border-radius: 4px; padding: 6px 4px; }
.voucher-print-pkg  { font-size: 11px; font-weight: 700; color: #111; }
.voucher-print-meta { font-size: 10px; color: #666; margin-top: 3px; }
.voucher-print-price { font-size: 13px; font-weight: 700; color: #111; margin-top: 6px; }
.voucher-print-cut  { border-top: 1px dashed #ddd; margin: 8px 0 4px; font-size: 9px; color: #aaa; }

.voucher-reveal { background: #f9f9f9; border: 1px solid #ddd; border-radius: 10px; padding: 28px; text-align: center; margin-top: 20px; }
.voucher-reveal-code { font-family: monospace; font-size: 28px; font-weight: 800; letter-spacing: 4px; color: #111; background: #f0f0f0; border-radius: 8px; padding: 14px; margin: 16px 0; word-break: break-all; }

/* ── Buy link ────────────────────────────────────────────────────────────────── */
.buy-link-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 20px 22px; display: flex; align-items: center; gap: 22px; margin-bottom: 20px; }
.buy-link-card img { border-radius: 8px; border: 1px solid #eee; flex-shrink: 0; }
.buy-link-url { background: #f5f5f5; border-radius: 7px; padding: 9px 13px; font-size: 12px; font-family: monospace; word-break: break-all; margin-bottom: 8px; color: #333; }
.copy-btn { background: #111; color: #fff; border: none; padding: 8px 16px; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 600; font-family: inherit; }

/* ── Landing page ────────────────────────────────────────────────────────────── */
.landing { background: #fff; color: #111; }
.hero { background: #111; color: #fff; padding: 0 0 60px; min-height: 600px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 40px; max-width: 1200px; margin: 0 auto; }
.landing-logo { display: flex; align-items: center; gap: 10px; }
.landing-logo span { font-size: 20px; font-weight: 800; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 13px; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-btn-outline { border: 1.5px solid rgba(255,255,255,.4); padding: 8px 18px; border-radius: 8px; color: #fff !important; }
.nav-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.nav-btn { background: #fff; padding: 8px 20px; border-radius: 8px; color: #111 !important; font-weight: 700; }
.hero-content { max-width: 800px; margin: 0 auto; text-align: center; padding: 60px 20px 0; }
.hero-content h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero-content .highlight { color: #aaa; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.8); line-height: 1.6; max-width: 580px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 50px; }
.hero-btn-primary { background: #fff; color: #111; padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 700; text-decoration: none; transition: background .15s; }
.hero-btn-primary:hover { background: #f0f0f0; }
.hero-btn-secondary { color: rgba(255,255,255,.9); padding: 14px 32px; border-radius: 10px; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid rgba(255,255,255,.35); transition: all .15s; }
.hero-btn-secondary:hover { border-color: #fff; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-value { font-size: 28px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px; }
.landing-section { padding: 70px 20px; max-width: 1100px; margin: 0 auto; text-align: center; }
.landing-section h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; color: #111; }
.section-subtitle { font-size: 15px; color: #444; margin-bottom: 44px; }
.landing-section-alt { background: #f7f7f7; max-width: none; padding-left: 20px; padding-right: 20px; }
.landing-section-alt > * { max-width: 1100px; margin-left: auto; margin-right: auto; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 36px 28px; position: relative; text-align: center; transition: border-color .15s; }
.step-card:hover { border-color: #111; }
.step-number { position: absolute; top: 14px; left: 18px; width: 28px; height: 28px; background: #111; color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-icon { width: 60px; height: 60px; background: #f0f0f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.step-icon i { font-size: 24px; color: #111; }
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: #111; }
.step-card p { font-size: 13px; color: #444; line-height: 1.6; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 32px 24px; text-align: center; transition: border-color .15s; }
.feature-card:hover { border-color: #111; }
.feature-card i { font-size: 30px; color: #111; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #111; }
.feature-card p { font-size: 13px; color: #444; line-height: 1.6; }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.audience-card { background: #fff; border-radius: 10px; border: 1px solid #ddd; padding: 28px 20px; text-align: center; transition: border-color .15s; }
.audience-card:hover { border-color: #111; }
.audience-card i { font-size: 28px; color: #111; margin-bottom: 14px; display: block; }
.audience-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; color: #111; }
.audience-card p { font-size: 12px; color: #444; line-height: 1.5; }
.landing-cta { background: #111; padding: 70px 20px; text-align: center; }
.cta-content { max-width: 600px; margin: 0 auto; color: #fff; }
.cta-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 10px; }
.cta-content p { font-size: 16px; opacity: .8; margin-bottom: 28px; }
.cta-content .hero-btn-primary { background: #fff; color: #111; }
.landing-footer { background: #111; color: rgba(255,255,255,.5); padding: 30px 20px; text-align: center; font-size: 12px; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.landing-footer .landing-logo span { color: rgba(255,255,255,.75); font-size: 15px; }
.landing-footer p { margin-top: 4px; }

/* ── Packages list ───────────────────────────────────────────────────────────── */
.controls { display: flex; gap: 8px; margin-bottom: 14px; }
.sort { background: #f5f5f5; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: #777; cursor: pointer; font-family: inherit; transition: all .15s; }
.sort:hover { border-color: #111; color: #111; }
.sort-active { background: #111; border-color: #111; color: #fff; }
.pkg-card { margin-bottom: 10px; }
.pkg { display: flex; align-items: center; gap: 12px; }
.pkg-left { flex: 1; min-width: 0; }
.pkg-name { font-size: 15px; font-weight: 700; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pkg-meta { font-size: 11px; color: #888; margin-top: 2px; }
.pkg-speed { display: flex; gap: 10px; margin-top: 4px; }
.pkg-speed span { font-size: 11px; color: #555; background: #f5f5f5; border-radius: 5px; padding: 2px 7px; }
.pkg-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.price { text-align: right; }
.price span { font-size: 10px; font-weight: 700; color: #888; display: block; text-transform: uppercase; letter-spacing: .4px; }
.price strong { font-size: 18px; font-weight: 800; color: #111; line-height: 1; }
.pkg-toggle { width: 38px; height: 22px; background: #e5e7eb; border-radius: 11px; cursor: pointer; position: relative; transition: background .2s; flex-shrink: 0; }
.pkg-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; background: #fff; border-radius: 50%; transition: left .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pkg-toggle.on { background: #111; }
.pkg-toggle.on::after { left: 19px; }
.pkg-menu-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: #aaa; padding: 4px 8px; border-radius: 6px; font-family: inherit; transition: color .15s; }
.pkg-menu-btn:hover { color: #111; }
.pkg-menu { position: absolute; right: 0; top: 32px; background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 4px; min-width: 120px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 100; }
.pkg-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; background: none; border: none; cursor: pointer; font-size: 13px; font-family: inherit; color: #333; border-radius: 7px; text-align: left; }
.pkg-menu button:hover { background: #f5f5f5; }

/* ── Voucher sales feed ──────────────────────────────────────────────────────── */
.v-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sale-row { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid #f0f0f0; }
.sale-row:last-child { border-bottom: none; }
.sale-avatar { width: 34px; height: 34px; border: 1.5px solid #111; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; flex-shrink: 0; }
.sale-name { font-size: 12px; font-weight: 600; color: #111; }
.sale-sub { font-size: 11px; color: #555; margin-top: 2px; }
.sale-meta { font-size: 10px; color: #888; margin-top: 2px; }
.sale-code { font-weight: 700; font-family: monospace; }
.sale-code.active { color: #16A34A; }
.sale-code.unused { color: #ca8a04; }
.sale-code.used   { color: #DC2626; }
.sale-time { font-size: 10px; color: #777; margin-top: 3px; }
.sale-time.expired { color: #DC2626; font-weight: 600; }

/* ── Blazor ──────────────────────────────────────────────────────────────────── */
.blazor-error-boundary { background: #dc2626; padding: 1rem 1rem 1rem 3.7rem; color: #fff; }
.blazor-error-boundary::after { content: "An error has occurred."; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { transform: translateY(-40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ── Monitor page ────────────────────────────────────────────────────────────── */
.mon-search { border: 1px solid #ddd; border-radius: 12px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; background: #fff; }
.mon-search input { border: none; outline: none; width: 100%; font-size: 13px; font-weight: 500; font-family: inherit; background: transparent; }
.mon-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mon-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-box { border: 1px solid #eee; border-radius: 12px; padding: 14px; text-align: center; background: #fff; }
.stat-box h3 { font-size: 20px; font-weight: 700; line-height: 1; }
.stat-box p { font-size: 11px; color: #666; margin-top: 5px; }
.filter { padding: 9px 10px; border: 1px solid #ddd; border-radius: 10px; font-size: 11px; font-weight: 500; text-align: center; cursor: pointer; background: #fff; white-space: nowrap; font-family: inherit; }
.filter.active { background: #111; color: #fff; border-color: #111; }
.mon-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid #f1f1f1; }
.mon-row:last-child { border-bottom: none; }
.mon-user-info { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mon-avatar { width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.mon-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }
.mon-meta { font-size: 11px; color: #666; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mon-status { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 12px; white-space: nowrap; flex-shrink: 0; }
.mon-online  { background: #e9f9ef; color: #178a3d; }
.mon-offline { background: #fff3f3; color: #d32f2f; }
.mon-waiting { background: #fff8e6; color: #b45309; }
.mon-usage { font-size: 11px; font-weight: 500; color: #444; white-space: nowrap; flex-shrink: 0; min-width: 52px; text-align: right; }
.mon-usage-expired { color: #d32f2f; }
.mon-shield-btn { background: none; border: none; cursor: pointer; padding: 4px 6px; color: #6b7280; font-size: 15px; flex-shrink: 0; }
.mon-shield-btn:hover { color: #111; }

/* ── Print ───────────────────────────────────────────────────────────────────── */
@media print {
  body > * { visibility: hidden; }
  .print-region, .print-region * { visibility: visible; }
  .print-region { position: fixed; left: 0; top: 0; width: 100%; padding: 0; }
  .no-print { display: none !important; }
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps-grid, .features-grid { grid-template-columns: 1fr 1fr; }
  .audience-grid { grid-template-columns: 1fr 1fr; }
  .hero-content h1 { font-size: 30px; }
}

@media (max-width: 768px) {
  .page-header { margin-bottom: 16px; gap: 10px; }
  .page-header h2 { font-size: 17px; }
  .section-header h3 { font-size: 14px; }
  .modal-overlay, .modal-bg { padding: 0; align-items: flex-end; }
  .modal, .modal-box { border-radius: 14px 14px 0 0; max-height: 92vh; width: 100%; max-width: 100%; border-bottom: none; }
  .modal-footer { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .buy-link-card { flex-direction: column; align-items: stretch; }
  .table-container { border-radius: 10px; }
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  table thead, table tbody, table tr { display: table; width: 100%; table-layout: auto; }
  .tabs, .tab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; gap: 4px; padding-bottom: 2px; }
  .tabs::-webkit-scrollbar, .tab-bar::-webkit-scrollbar { display: none; }
  .tab { white-space: nowrap; flex-shrink: 0; }
  .monitor-grid { grid-template-columns: 1fr 1fr; }
  .section-area { grid-template-columns: 1fr 1fr; }
  .vpool-actions { flex-direction: column; align-items: stretch; }
  .vpool-filter-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; scrollbar-width: none; }
  .vpool-filter-bar::-webkit-scrollbar { display: none; }
  .filter-bar { flex-direction: column; padding: 10px 12px; gap: 8px; }
  .public-page { padding: 12px; }
  .public-card { padding: 24px 18px; }
  .toast { right: 12px; left: 12px; top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); min-width: auto; }
}

@media (max-width: 600px) {
  .landing-nav { padding: 16px 20px; }
  .nav-links a:not(.nav-btn) { display: none; }
  .steps-grid, .features-grid, .audience-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 26px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 22px; }
}
