/* ============================================================
   CSNET Landing — orientée vente / achat
   Prix = base ; frais uniquement sur le formulaire d'achat
   ============================================================ */

:root {
  --blue: #0B84D6;
  --blue-dark: #075E99;
  --blue-light: #E6F3FC;
  --orange: #F2731E;
  --orange-dark: #C85A12;
  --ink: #0F172A;
  --ink-soft: #475569;
  --paper: #FFFFFF;
  --mist: #F4F7FA;
  --line: #E2E8F0;
  --radius: 14px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px;
}
.logo img { height: 28px; width: auto; }
.nav { display: none; font-weight: 600; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a + a { margin-left: 22px; }
.nav a:hover { color: var(--ink); border-color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.hide-mobile { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none;
  padding: 12px 22px; border: 2px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-buy { min-width: 110px; flex-shrink: 0; }

.menu-toggle { display: inline-flex; background: none; border: none; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

#mobileNav {
  display: none; flex-direction: column; padding: 8px 20px 16px; border-top: 1px solid var(--line);
  background: #fff;
}
#mobileNav:not([hidden]) { display: flex; }
#mobileNav a {
  padding: 14px 0; text-decoration: none; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
#mobileNav a:last-child { border-bottom: none; }

@media (min-width: 860px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
  .hide-mobile { display: inline-flex; }
  #mobileNav { display: none !important; }
}

/* ---------- Hero vente ---------- */
.hero-sell {
  background: linear-gradient(165deg, var(--blue-light) 0%, #fff 55%);
  padding: 36px 0 48px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--blue-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; margin: 0 0 16px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}
.hero-sell h1 {
  font-size: clamp(28px, 5.5vw, 44px); line-height: 1.12; letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 800; max-width: 18ch;
}
.hero-sell h1 .accent { color: var(--orange); }
.hero-sell .lead {
  font-size: 17px; color: var(--ink-soft); max-width: 48ch; margin: 0 0 22px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.trust-pills {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px;
  font-size: 13px; color: var(--ink-soft);
}
.trust-pills strong { color: var(--ink); }

.hero-buy-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.panel-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.panel-sub { margin: 0 0 14px; font-size: 13px; color: var(--ink-soft); }
.quick-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; margin-bottom: 6px;
  transition: background .15s, border-color .15s;
}
.quick-link:hover { background: var(--mist); border-color: var(--line); }
.ql-icon {
  width: 40px; height: 40px; border-radius: 10px; background: var(--blue-light);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.quick-link strong { display: block; font-size: 15px; }
.quick-link small { color: var(--ink-soft); font-size: 12px; }
.ql-arrow { margin-left: auto; color: var(--orange); font-weight: 800; }
.panel-retrieve {
  display: block; text-align: center; margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line); font-size: 13px; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.panel-retrieve:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; gap: 40px; }
}

/* ---------- Sections forfaits ---------- */
.section-plans { padding: 48px 0; }
.section-alt { background: var(--mist); }
.section-head { max-width: 640px; margin: 0 0 28px; }
.section-head h2 {
  font-size: clamp(24px, 3.2vw, 32px); font-weight: 800; margin: 0 0 8px; letter-spacing: -0.01em;
}
.section-head p { color: var(--ink-soft); font-size: 16px; margin: 0; }
.row-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; max-width: none;
}
.link-muted { font-size: 14px; font-weight: 600; color: var(--blue); text-decoration: none; }
.link-muted:hover { text-decoration: underline; }

.empty-state {
  padding: 24px; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  color: var(--ink-soft); text-align: center;
}

/* Table volume dense */
.plan-table {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.plan-row {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px;
  align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.plan-row:last-child { border-bottom: none; }
.plan-row:hover { background: #fafbfc; }
.plan-name { margin: 0; font-size: 16px; font-weight: 700; }
.plan-meta { margin: 2px 0 0; font-size: 13px; color: var(--ink-soft); }
.plan-meta .sep { margin: 0 4px; opacity: .5; }
.plan-price-block { text-align: right; }
.price { display: block; font-size: 17px; font-weight: 800; color: var(--blue-dark); white-space: nowrap; }
.price-note { display: block; font-size: 11px; color: var(--ink-soft); font-weight: 500; }
.fee-hint {
  margin: 14px 0 0; font-size: 13px; color: var(--ink-soft); text-align: center;
}

@media (min-width: 640px) {
  .plan-row {
    grid-template-columns: 1fr auto auto;
    padding: 16px 20px;
  }
  .plan-price-block { text-align: right; min-width: 120px; }
  .price { font-size: 18px; }
}

/* Cartes illimité / home */
.cards-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr;
}
.plan-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.plan-card.is-popular {
  border-color: var(--orange);
  box-shadow: 0 8px 28px -10px rgba(242, 115, 30, 0.35);
}
.badge-popular {
  position: absolute; top: 12px; right: 12px;
  background: var(--orange); color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
}
.plan-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.card-meta { margin: 0 0 4px; font-size: 14px; color: var(--ink-soft); }
.card-speed { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--blue-dark); }
.card-price { margin-bottom: 14px; }
.card-price .price { font-size: 26px; display: inline; }
.card-price .price-note { display: inline; margin-left: 6px; font-size: 12px; }
.card-features {
  list-style: none; margin: 0 0 18px; padding: 0; flex-grow: 1;
  font-size: 14px; color: var(--ink-soft);
}
.card-features li { padding: 4px 0; padding-left: 1.2em; position: relative; }
.card-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 700;
}

@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .cards-home { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.special-note {
  margin-top: 24px; padding: 16px 18px; background: var(--blue-light);
  border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: 8px 16px;
  align-items: baseline; font-size: 14px;
}
.special-note a { color: var(--blue-dark); font-weight: 700; }

/* ---------- Comment acheter ---------- */
.section-how { padding: 48px 0; background: #fff; border-top: 1px solid var(--line); }
.steps-buy {
  list-style: none; margin: 0 0 28px; padding: 0;
  display: grid; gap: 16px;
}
.steps-buy li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 16px; background: var(--mist); border-radius: var(--radius);
}
.step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.steps-buy h3 { margin: 0 0 4px; font-size: 16px; }
.steps-buy p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.how-cta { display: flex; flex-wrap: wrap; gap: 12px; }

@media (min-width: 768px) {
  .steps-buy { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Support ---------- */
.section-support { padding: 0 0 48px; }
.support-box {
  background: var(--ink); color: #fff; border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
}
.support-box h2 { margin: 0 0 6px; font-size: 20px; }
.support-box p { margin: 0; opacity: .85; font-size: 14px; }
.support-box .btn-primary { background: var(--orange); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--mist); border-top: 1px solid var(--line); padding: 40px 0 24px;
  font-size: 14px;
}
.footer-top {
  display: grid; gap: 28px; margin-bottom: 28px;
}
.footer-brand p { color: var(--ink-soft); margin: 12px 0 0; max-width: 280px; }
.footer-brand img { height: 26px; width: auto; }
.footer-col h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.footer-col a {
  display: block; text-decoration: none; color: var(--ink); font-weight: 600;
  padding: 4px 0;
}
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  align-items: center; padding-top: 20px; border-top: 1px solid var(--line);
  color: var(--ink-soft); font-size: 13px;
}
.cs-emblem { display: inline-flex; align-items: center; gap: 8px; }
.cs-emblem img { height: 18px; width: auto; }

@media (min-width: 720px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---------- Checkout / achat ---------- */
.checkout-main { padding: 28px 0 48px; background: var(--mist); min-height: 60vh; }
.checkout-wrap { max-width: 520px; }
.checkout-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 20px 28px; box-shadow: var(--shadow);
}
.checkout-card h1 {
  font-size: clamp(22px, 4vw, 28px); font-weight: 800; margin: 0 0 16px; letter-spacing: -0.01em;
}
.checkout-card .eyebrow { margin-bottom: 12px; }
.eyebrow.success { color: #15803d; }
.eyebrow.success .dot { background: #22C55E; }
.eyebrow.warn { color: #b45309; }
.eyebrow.warn .dot { background: #F59E0B; }
.dot.pulse { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.plan-summary {
  padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px;
}
.plan-summary .label { display: block; font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.plan-summary strong { font-size: 18px; }
.plan-summary .meta { display: block; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

.price-breakdown { margin: 16px 0 22px; }
.price-breakdown .line {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0; font-size: 15px; color: var(--ink-soft);
}
.price-breakdown .line.total {
  border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 12px;
  font-size: 18px; font-weight: 800; color: var(--ink);
}

.buy-form .field { margin-bottom: 18px; }
.buy-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.buy-form .req { color: var(--orange); }
.phone-wrap {
  display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: #fff;
}
.phone-wrap .prefix {
  display: flex; align-items: center; padding: 0 12px; background: var(--mist);
  font-weight: 700; color: var(--ink-soft); border-right: 1px solid var(--line); font-size: 14px;
}
.phone-wrap input {
  flex: 1; border: none; padding: 12px 14px; font-size: 16px; font-family: inherit; outline: none;
}
.hint { margin: 6px 0 0; font-size: 12px; color: var(--ink-soft); }
.ref-hint { text-align: center; font-size: 12px; color: var(--ink-soft); word-break: break-all; }

.pay-modes { border: none; margin: 0 0 18px; padding: 0; }
.pay-modes legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.mode-option {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer;
}
.mode-option:has(input:checked) { border-color: var(--blue); background: var(--blue-light); }
.mode-option.is-disabled { opacity: 0.65; cursor: not-allowed; }
.mode-option input { margin-top: 3px; }
.mode-option strong { display: block; font-size: 15px; }
.mode-option small { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.mode-option a { color: var(--blue); font-weight: 600; }

.check-merge {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14px;
  margin-bottom: 18px; color: var(--ink-soft);
}
.check-merge input { margin-top: 3px; }

.buy-form .btn-block { margin-bottom: 10px; }
.buy-form .btn-block + .btn-block { margin-top: 0; }

.alert {
  padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px;
}
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert-warn { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

.ticket-box {
  border: 1px dashed var(--line); border-radius: 12px; padding: 8px 0; margin: 16px 0;
  background: var(--mist);
}
.ticket-row {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 8px; align-items: center;
  padding: 10px 14px; font-size: 14px;
}
.ticket-row span { color: var(--ink-soft); }
.ticket-row strong { font-family: ui-monospace, monospace; font-size: 15px; word-break: break-all; }
.btn-copy {
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; color: var(--blue);
}
.btn-copy:hover { border-color: var(--blue); }

.checkout-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.muted { color: var(--ink-soft); font-size: 14px; }

.ussd-box {
  background: var(--blue-light); border-radius: 12px; padding: 16px; margin: 16px 0; text-align: center;
}
.ussd-box p { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.ussd-code {
  font-size: 22px !important; font-weight: 800; color: var(--blue-dark) !important;
  font-family: ui-monospace, monospace; letter-spacing: 0.02em;
}

.loader {
  width: 40px; height: 40px; margin: 24px auto 12px;
  border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.waiting-msg { text-align: center; font-weight: 600; color: var(--ink-soft); }

.site-footer.compact { padding: 16px 0; }
.site-footer.compact .footer-bottom { border: none; padding: 0; }
.site-footer.compact a { color: var(--blue); font-weight: 600; text-decoration: none; }

@media (min-width: 480px) {
  .checkout-card { padding: 28px 28px 32px; }
}

/* ---------- Formulaires compte ---------- */
.text-input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; font-family: inherit; outline: none;
  background: #fff;
}
.text-input:focus { border-color: var(--blue); }
.optional { font-weight: 500; color: var(--ink-soft); font-size: 12px; }
.form-footer {
  margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--ink-soft);
}
.form-footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.form-footer a:hover { text-decoration: underline; }

.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.preset-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink);
}
.preset-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Dashboard client ---------- */
.dash-main { padding: 28px 0 56px; background: var(--mist); min-height: 70vh; }
.dash-hero {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: flex-end; margin-bottom: 24px;
}
.dash-hero h1 { margin: 0; font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.dash-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.dash-grid {
  display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 28px;
}
@media (min-width: 720px) {
  .dash-grid { grid-template-columns: 1fr 1fr; }
}
.dash-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.dash-card h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.balance-figure {
  font-size: 32px; font-weight: 800; color: var(--blue-dark); margin: 0 0 8px;
}
.dash-stats { list-style: none; margin: 12px 0 0; padding: 0; }
.dash-stats li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px;
}
.dash-stats span { color: var(--ink-soft); }
.ticket-box.tight { margin: 0 0 8px; }

.dash-section { margin-bottom: 28px; }
.dash-section .section-head { margin-bottom: 14px; }
.dash-section .section-head h2 { font-size: 20px; }
.dash-voucher .plan-meta { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; }
.price.pos { color: #15803d; }
.price.neg { color: #b91c1c; }

/* ---------- Chip utilisateur connecté ---------- */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; max-width: 180px;
}
.user-chip:hover { border-color: var(--blue); color: var(--blue-dark); }
.user-chip-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; font-size: 13px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-chip-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 859px) {
  .user-chip { max-width: 120px; }
  .user-chip-name { font-size: 13px; }
}

/* ---------- Admin ---------- */
.admin-body { background: #0f172a; margin: 0; min-height: 100vh; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-nav {
  width: 220px; flex-shrink: 0; background: #0b1220; color: #e2e8f0;
  padding: 20px 14px; display: flex; flex-direction: column; gap: 8px;
}
.admin-brand { font-weight: 800; font-size: 15px; margin-bottom: 12px; color: #fff; }
.admin-nav nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.admin-nav a {
  color: #94a3b8; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 10px 12px; border-radius: 8px;
}
.admin-nav a:hover, .admin-nav a.is-active { background: #1e293b; color: #fff; }
.admin-logout { margin-top: auto; color: #f97316 !important; }
.admin-main { flex: 1; background: var(--mist); overflow: auto; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.admin-top h1 { margin: 0; font-size: 20px; font-weight: 800; }
.admin-content { padding: 20px 24px 40px; }
.admin-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin-bottom: 20px; }
.admin-stat {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px;
}
.admin-stat span { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 6px; }
.admin-stat strong { font-size: 24px; font-weight: 800; }
.admin-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 16px; margin-bottom: 16px;
}
.admin-panel h2 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.admin-pre {
  background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 8px;
  overflow: auto; font-size: 12px; max-height: 320px;
}
@media (max-width: 800px) {
  .admin-shell { flex-direction: column; }
  .admin-nav { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav nav { flex-direction: row; flex-wrap: wrap; }
  .admin-logout { margin-top: 0; }
}

/* Admin Mikhmon-like extras */
.admin-stat.income strong { color: #16a34a; }
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px;
}
.admin-tabs a {
  padding: 8px 14px; border-radius: 8px; background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 13px;
}
.admin-tabs a.is-active { background: #0f172a; color: #fff; border-color: #0f172a; }
.admin-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px;
}
.admin-filters .text-input { width: auto; min-width: 140px; padding: 8px 10px; }
.alert.ok {
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
  padding: 12px; border-radius: 10px;
}
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
.admin-table th, .admin-table td {
  text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.admin-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
