/* ============================================================
   Omanut Orders — design system
   Warm paper + deep green + gold. Serif display, system body.
   Zero external assets: renders fast on any connection.
   ============================================================ */

:root {
  --ink: #1a241d;
  --ink-soft: #47524b;
  --muted: #7a857e;
  --paper: #f6f3ec;
  --card: #ffffff;
  --line: #e9e5da;
  --line-strong: #d9d3c4;

  --green-950: #06271a;
  --green-900: #0b3d2a;
  --green-800: #0e5237;
  --green-700: #146445;
  --green-600: #197a54;
  --green-100: #dff1e7;
  --green-50: #eff8f2;

  --gold-700: #8f6a12;
  --gold-600: #b07f1a;
  --gold-500: #d9a02c;
  --gold-100: #fbf0d4;
  --gold-50: #fdf8ea;

  --danger-700: #a82f22;
  --danger: #c23b2e;
  --danger-soft: #fdece8;

  --blue: #2b5fb8;
  --blue-soft: #e6eefb;

  --r-lg: 20px;
  --r-md: 14px;
  --r-sm: 10px;

  --sh-sm: 0 1px 2px rgba(26, 36, 29, 0.05);
  --sh-md: 0 4px 14px rgba(26, 36, 29, 0.08);
  --sh-lg: 0 12px 32px rgba(26, 36, 29, 0.16);

  --font-display: Georgia, "Times New Roman", "Noto Serif", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--green-700); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hidden { display: none !important; }

.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px 48px; }
.tagline { color: var(--muted); margin: 4px 0 16px; }

/* ---------- buttons ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 13px 22px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: center;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.08s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: var(--sh-md), inset 0 1px 0 rgba(255,255,255,0.12); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.65; cursor: wait; transform: none; }
.btn-primary:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 13px 18px;
  font-size: 16px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }

.btn-danger {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: filter 0.15s ease;
}
.btn-danger:hover { filter: brightness(1.08); }
.btn-danger:disabled { opacity: 0.6; cursor: wait; }

.btn-block { display: block; width: 100%; margin-top: 12px; }

/* ---------- shared site header ---------- */
.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
}
.site-top--solid {
  background: var(--green-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--sh-md);
}
.site-top--solid .top-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  flex: 1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.back-btn {
  color: #fff;
  font-size: 30px;
  line-height: 1;
  padding: 0 6px;
  border-radius: 8px;
}
.back-btn:hover { background: rgba(255, 255, 255, 0.1); }

.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.brand-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-100);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.brand-name { font-family: var(--font-display); font-size: 19px; }

/* ---------- home hero ---------- */
.hero {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(217, 160, 44, 0.22), transparent 55%),
    linear-gradient(160deg, var(--green-950), var(--green-800) 70%, var(--green-700));
  color: #fff;
  border-radius: 0 0 30px 30px;
  position: relative;
  overflow: hidden;
  padding-bottom: 26px;
}
.hero::after {
  content: "🍲";
  position: absolute;
  right: -18px;
  bottom: -34px;
  font-size: 160px;
  opacity: 0.08;
  transform: rotate(-12deg);
  pointer-events: none;
}
.hero .site-top { padding-bottom: 6px; }
.hero .brand-name { color: #fff; }
.hero-chip {
  font-size: 12px;
  font-weight: 600;
  color: #eaf6ee;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero-body { padding: 18px 20px 4px; max-width: 640px; margin: 0 auto; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 46px);
  line-height: 1.08;
  margin: 10px 0 12px;
  color: #fff;
  letter-spacing: -0.02em;
}
.hero-title em { font-style: italic; color: var(--gold-500); }
.hero-sub { color: #d9e8de; font-size: 16px; margin: 0 0 20px; max-width: 440px; }
.hero-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 6px; }
.hero-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #eaf3ed;
}
.hero-step b {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 12px;
}
.section-head h2 { font-size: 22px; margin: 0; }
.count-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-800);
  background: var(--green-100);
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- cards (home) ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 15px 16px;
  margin-bottom: 12px;
  display: block;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
a.card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.biz-card { display: flex; align-items: center; gap: 13px; }
.biz-emoji {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--green-50), var(--green-100));
  border: 1px solid #d5e9dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.biz-info { flex: 1; min-width: 0; }
.card-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.card-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-arrow {
  color: var(--gold-600);
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.12s ease;
}
a.biz-card:hover .biz-arrow { transform: translateX(3px); }

/* ---------- restaurant (menu) page ---------- */
.biz-hero {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px;
  margin-top: 16px;
  box-shadow: var(--sh-sm);
}
.biz-hero-emoji {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--gold-50), var(--gold-100));
  border: 1px solid #f0e2bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex-shrink: 0;
}
.biz-hero-body { flex: 1; min-width: 0; }
.biz-hero-body h1 { font-size: 22px; margin: 0; }
.biz-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.meta-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

.delivery-note {
  background: var(--gold-50);
  border: 1px solid #f0e2bd;
  color: var(--gold-700);
  padding: 11px 14px;
  border-radius: var(--r-md);
  margin: 12px 0 2px;
  font-size: 14px;
}

.menu-section { margin-top: 18px; }
.menu-section h2 {
  font-size: 18px;
  margin: 0 0 10px;
  padding-left: 12px;
  position: relative;
}
.menu-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-500), var(--green-600));
}

.menu-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 11px 13px;
  box-shadow: var(--sh-sm);
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}
.menu-item:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.item-photo {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef2ec, #e3eae1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.item-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-body { flex: 1; min-width: 0; }
.item-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.item-desc { color: var(--muted); font-size: 13px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { color: var(--green-800); font-weight: 700; font-size: 15px; margin-top: 5px; }

.btn-add {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--sh-sm), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn-add:hover { filter: brightness(1.08); }
.btn-add:active { transform: scale(0.88); }

/* ---------- cart bar ---------- */
.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  max-width: 616px;
  margin: 0 auto;
  animation: rise 0.22s ease;
}
.cart-checkout {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--green-800), var(--green-950));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--sh-lg), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.1s ease, filter 0.15s ease;
}
.cart-checkout:hover { filter: brightness(1.07); }
.cart-checkout:active { transform: scale(0.99); }
.cart-count {
  background: var(--gold-500);
  color: var(--green-950);
  font-weight: 800;
  font-size: 14px;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
}
.cart-label { flex: 1; font-weight: 600; text-align: left; }
.cart-total { font-family: var(--font-display); font-weight: 700; font-size: 17px; }

/* ---------- overlay / bottom sheet ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 15, 0.62);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(2px);
}
.overlay-card {
  background: var(--card);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: sheetup 0.24s ease;
  box-shadow: var(--sh-lg);
}
.overlay.center { align-items: center; padding: 20px; }
.overlay.center .overlay-card {
  border-radius: 24px;
  text-align: center;
  padding: 30px 24px 26px;
  max-width: 420px;
  animation: pop 0.28s ease;
}
.sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line-strong);
  margin: 2px auto 10px;
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { font-size: 21px; margin: 0; }
.sheet-close {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
}
.sheet-close:hover { background: var(--line); }

.checkout-items { margin: 8px 0 4px; }
.checkout-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px;
}
.checkout-line span:last-child { font-weight: 600; white-space: nowrap; }
.checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 4px;
  font-size: 15px;
  color: var(--ink-soft);
}
.checkout-total > span:first-child { color: var(--muted); font-size: 14px; }
.checkout-total b { font-family: var(--font-display); font-size: 21px; color: var(--ink); }
.checkout-total .pay-note { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- success ---------- */
.success-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  animation: pop 0.35s ease;
}
.success-sub { color: var(--muted); margin: 14px 0 6px; font-size: 14px; }
.success-ref {
  background: var(--green-50);
  border: 1px dashed var(--green-600);
  border-radius: var(--r-md);
  padding: 10px;
  display: inline-block;
  margin-bottom: 4px;
}
.success-ref b { font-family: ui-monospace, Consolas, monospace; font-size: 19px; letter-spacing: 1.5px; color: var(--green-800); }
.success-note { color: var(--ink-soft); font-size: 14px; margin: 10px 0 2px; }

/* ---------- forms ---------- */
label { display: block; margin: 14px 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
input, textarea, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  font-size: 16px;
  font-family: var(--font-body);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(25, 122, 84, 0.16);
}
input::placeholder, textarea::placeholder { color: #a8b0aa; }

.form-error {
  background: var(--danger-soft);
  color: var(--danger-700);
  padding: 11px 13px;
  border-radius: var(--r-sm);
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #f3cfc6;
}

/* ---------- empty states ---------- */
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty-ico { font-size: 44px; margin-bottom: 8px; }

/* ---------- restaurant orders page ---------- */
.page-head { margin-top: 20px; }
.page-head h1 { font-size: 26px; margin: 0; }
.order-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--sh-sm);
}
.order-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-head > b { font-family: ui-monospace, Consolas, monospace; font-size: 15px; letter-spacing: 0.5px; }
.order-time { color: var(--muted); font-size: 12.5px; margin-left: auto; }
.order-customer { font-size: 15px; margin: 8px 0; color: var(--ink-soft); }
.order-customer b { color: var(--ink); }
.order-note {
  background: var(--gold-50);
  border: 1px solid #f0e2bd;
  color: var(--gold-700);
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin: 8px 0;
}
.order-lines { margin: 10px 0; border-top: 1px solid var(--line); padding-top: 6px; }
.order-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 3px 0; }
.order-line span:last-child { font-weight: 600; }
.order-total { text-align: right; font-size: 15px; margin-top: 8px; color: var(--ink-soft); }
.order-total b { font-family: var(--font-display); font-size: 19px; color: var(--ink); }
.order-actions { display: flex; gap: 10px; margin-top: 12px; }
.order-actions .btn-primary { flex: 1; }
.status-note {
  background: var(--blue-soft);
  color: var(--blue);
  border: 1px solid #c9dbf5;
  padding: 11px 13px;
  border-radius: var(--r-sm);
  margin: 12px 0;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- badges ---------- */
.badge {
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-block;
}
.badge-new { background: var(--gold-100); color: var(--gold-700); }
.badge-accepted { background: var(--blue-soft); color: var(--blue); }
.badge-delivered { background: var(--green-100); color: var(--green-800); }
.badge-cancelled { background: var(--danger-soft); color: var(--danger-700); }

/* ---------- not found ---------- */
.center-page { text-align: center; padding-top: 64px; }
.big-emoji { font-size: 56px; }

/* ---------- login ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(110% 120% at 15% -10%, rgba(217, 160, 44, 0.25), transparent 55%),
    radial-gradient(120% 140% at 90% 110%, rgba(25, 122, 84, 0.35), transparent 55%),
    linear-gradient(160deg, var(--green-950), var(--green-800));
}
.login-card {
  background: var(--card);
  border-radius: 24px;
  padding: 34px 28px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--sh-lg);
  animation: pop 0.3s ease;
}
.login-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(145deg, var(--gold-50), var(--gold-100));
  border: 1px solid #f0e2bd;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-name {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
}
.login-name span { color: var(--green-700); }
.login-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 4px 0 18px; }

/* ---------- admin console ---------- */
.admin-top {
  background: linear-gradient(180deg, var(--green-950), var(--green-900));
  color: #fff;
  padding: 14px 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.admin-brand span { color: var(--gold-500); }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #eaf3ed;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); }

.admin-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 18px 0;
  scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }
.tab {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #d5e5da;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.tab:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tab.active { background: var(--card); color: var(--green-900); border-color: var(--card); font-weight: 700; box-shadow: var(--sh-sm); }

.admin-main { max-width: 1060px; padding-top: 20px; padding-bottom: 80px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh-sm);
}
.panel h2 { margin-top: 0; font-size: 19px; }
.panel h3 { font-size: 16px; margin: 0 0 4px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 14px;
  display: flex;
  gap: 11px;
  align-items: center;
  box-shadow: var(--sh-sm);
}
.stat-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-50);
  border: 1px solid #d5e9dc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.stat-body b { font-family: var(--font-display); font-size: 22px; color: var(--ink); display: block; line-height: 1.1; }
.stat-body span { color: var(--muted); font-size: 12.5px; }

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 120px; }
.row-buttons { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; word-break: break-all; }
.sec-title { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; }
.sec-title h3 { margin: 0; flex: 1; }

.icon-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: var(--r-sm);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--ink-soft);
  transition: background 0.15s ease;
}
.icon-btn:hover { background: var(--paper); }
.icon-btn.danger { color: var(--danger); border-color: #f3cfc6; }
.icon-btn.danger:hover { background: var(--danger-soft); }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.checkbox-row input { width: auto; margin: 0; }

.channel-card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; margin-bottom: 10px; background: #fff; }
.channel-head { display: flex; align-items: center; gap: 10px; }
.channel-head b { flex: 1; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr:hover { background: var(--green-50); }

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-950);
  color: #fff;
  padding: 11px 20px;
  border-radius: 999px;
  z-index: 60;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  animation: pop 0.2s ease;
  max-width: 90vw;
  text-align: center;
}
.toast.error { background: var(--danger); }

.img-preview {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.link-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.link-box span { flex: 1; word-break: break-all; }

/* ---------- footer ---------- */
.site-foot {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px 16px 40px;
}

/* ---------- animations ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes sheetup {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes pop {
  0% { opacity: 0; transform: scale(0.82); }
  70% { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (min-width: 700px) {
  .wrap { padding: 0 24px 56px; }
  .hero-steps { flex-direction: row; gap: 20px; }
}
