/* =================================================================
  
================================================================= */

:root {
  --bg: #0B0F13;
  --panel: #141A20;
  --panel-2: #1A2129;
  --line: #2A343D;
  --ink: #ECEFF1;
  --ink-dim: #8D9CA8;

  --amber: #F2A33D;      /* цвет флип-глифов табло, главный акцент */
  --amber-dim: #C98A34;
  --accent: #7C9CB8;      /* приглушённый стальной синий — доверие, ссылки */
  --teal: var(--accent);  /* алиас для обратной совместимости в разметке */
  --success: #7FBF6B;
  --danger: #D4685A;
  --red: var(--danger);

  --radius: 14px;
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  min-height: 100vh;
}

body {
  position: relative;
  background-image:
    radial-gradient(1100px 480px at 12% -10%, rgba(242, 163, 61, 0.06), transparent 60%),
    radial-gradient(900px 420px at 100% 0%, rgba(124, 156, 184, 0.07), transparent 55%);
  background-attachment: fixed;
}

/* тонкое зерно поверх всего — тактильность аналогового табло, не глянец */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

::selection { background: var(--amber); color: #1A1204; }

/* custom scrollbar — small consistency touch */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-dim); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ---------------- NAV ---------------- */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 19, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber), var(--amber-dim));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #1A1204; font-size: 15px; flex-shrink: 0;
  font-family: var(--font-display);
}
.brand-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: 0.2px; }
.brand-sub { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.4px; text-transform: uppercase; }

.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13.5px; color: var(--ink-dim); padding: 8px 13px; border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--panel-2); }
.nav-link.active { color: var(--accent); background: rgba(124, 156, 184, 0.12); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 8px; font-size: 16px; cursor: pointer; }
.nav-search-btn {
  display: flex; align-items: center; gap: 8px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--ink-dim); padding: 8px 11px; border-radius: 9px; font-size: 12.5px; cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-search-btn:hover { color: var(--ink); border-color: var(--accent); }
.nav-search-kbd { font-family: var(--font-mono); font-size: 10.5px; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; color: var(--ink-dim); }

/* ---------------- FOOTER ---------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-note { font-size: 11.5px; color: var(--ink-dim); max-width: 560px; line-height: 1.5; }
.footer-links { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-dim); }
.footer-links a:hover { color: var(--accent); }

/* ---------------- BUTTONS / CHIPS ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--amber); color: #1A1204; }
.btn-primary:hover { background: #f7b658; transform: translateY(-1px); }
.btn-ghost { background: var(--panel-2); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #212a33; border-color: var(--accent); }
.chip {
  display: flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--line);
  padding: 9px 13px; border-radius: 10px; font-size: 13px; color: var(--ink-dim); cursor: pointer; user-select: none; white-space: nowrap;
}
.chip input { accent-color: var(--accent); }
.badge { display: inline-flex; align-items: center; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: 0.3px; }
.badge-teal { background: var(--amber); color: #1A1204; }
.badge-amber { background: var(--amber); color: #1A1204; }
.badge-outline { border: 1px solid var(--line); color: var(--ink-dim); }

/* ---------------- HERO (index) — сигнатурный элемент: живое табло ---------------- */
.hero { padding: 44px 0 8px; }
.hero-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); }
.hero h1 { font-family: var(--font-display); font-size: 22px; line-height: 1.0; margin: 0 0 16px; font-weight: 600; max-width: 640px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 15.5px; color: var(--ink-dim); max-width: 520px; line-height: 1.6; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; flex-wrap: wrap; }
.hero-stat-num { font-family: var(--font-mono); font-size: 22px; font-weight: 700; color: var(--ink); }
.hero-stat-label { font-size: 11.5px; color: var(--ink-dim); margin-top: 3px; }

/* ---------------- SECTION ---------------- */
.section { padding: 36px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }
.section-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.section-link { font-size: 13px; color: var(--accent); }

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; margin-bottom: 10px; }
.how-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; margin: 0 0 8px; }
.how-card p { font-size: 13px; color: var(--ink-dim); line-height: 1.55; margin: 0; }

/* ---------------- BOARD PANEL (converter) ---------------- */
.board-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 18px; }
.pair-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.select-block { flex: 1; min-width: 200px; }
.label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--ink-dim); margin-bottom: 6px; display: block; }
select, .amount-input {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; border-radius: 10px; font-size: 14.5px; font-family: inherit;
}
select { appearance: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-dim); pointer-events: none; font-size: 12px; }
.swap-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer;
  margin-top: 20px; transition: transform 0.25s ease, background 0.2s ease; flex-shrink: 0; font-size: 16px;
}
.swap-btn:hover { background: #212a33; transform: rotate(180deg); }
.amount-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.amount-input { width: 160px; }
select:focus, .amount-input:focus { outline: none; border-color: var(--accent); }
.board-divider { height: 1px; background: var(--line); margin: 18px 0; }
.board-display { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.board-caption { font-size: 11.5px; color: var(--ink-dim); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }

/* --- HERO BOARD: сигнатура — механическая вывеска-табло --- */
.board-casing {
  position: relative;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(242,163,61,0.05), transparent 60%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 26px 20px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.03);
}
.board-casing::before, .board-casing::after {
  content: "";
  position: absolute; left: 20px; right: 20px; height: 3px;
  background-image: radial-gradient(circle, #3A4753 1.8px, transparent 2px);
  background-size: 16px 100%;
  background-repeat: repeat-x;
}
.board-casing::before { top: 12px; }
.board-casing::after { bottom: 12px; }
.board-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.board-row {
  display: grid; grid-template-columns: 1.3fr 1.6fr auto; gap: 10px; align-items: center;
  padding: 9px 10px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line);
}
.board-row-label { font-size: 12.5px; color: var(--ink-dim); display: flex; align-items: center; gap: 8px; }
.board-row-rank { font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); width: 16px; }

/* split-flap board */
.flap-board { display: flex; gap: 3px; }
.flap-cell {
  width: 26px; height: 40px; font-size: 24px;
  background: #0C1116; border: 1px solid #262F38; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; color: var(--amber);
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04), inset 0 1px 0 rgba(0,0,0,0.5);
  position: relative; overflow: hidden;
}
.flap-cell.small { width: 18px; height: 28px; font-size: 16px; }
.flap-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,0.55); }
.flap-inner { display: inline-block; }
.flap-inner.flip { animation: flapIn 0.5s ease; }
@keyframes flapIn { 0% { transform: rotateX(90deg); opacity: 0.2; } 60% { transform: rotateX(0deg); opacity: 1; } 100% { transform: rotateX(0deg); } }
.updated { font-size: 12px; color: var(--ink-dim); }

.live { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-dim); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; background: var(--panel); }
.live-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124,156,184,0.55);} 70% { box-shadow: 0 0 0 7px rgba(124,156,184,0);} 100% { box-shadow: 0 0 0 0 rgba(124,156,184,0);} }

.trend { font-family: var(--font-mono); font-size: 11px; display: inline-flex; align-items: center; gap: 2px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-flat { color: var(--ink-dim); }

/* ---------------- CONTROLS ---------------- */
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; flex: 1; min-width: 200px; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 10px 12px 10px 34px; border-radius: 10px; font-size: 13.5px; font-family: inherit; }
.search::before { content: "🔍"; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 12px; opacity: 0.6; }
.sort-select { background: var(--panel); border: 1px solid var(--line); color: var(--ink); padding: 9px 12px; border-radius: 10px; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ---------------- TABLE (exchangers) ---------------- */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.row { display: grid; grid-template-columns: 34px 1.6fr 1.3fr 1fr 0.9fr 0.9fr; gap: 10px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row--head { color: var(--ink-dim); font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding-top: 12px; padding-bottom: 12px; }
.row--best { background: linear-gradient(90deg, rgba(242,163,61,0.10), transparent 60%); }
.row--link { cursor: pointer; transition: background 0.15s ease; }
.row--link:hover { background: var(--panel-2); }
.rank { color: var(--ink-dim); font-size: 12.5px; font-weight: 700; font-family: var(--font-mono); }
.rank--top { color: var(--amber); }
.exname { display: flex; align-items: center; gap: 9px; }
.avatar { width: 30px; height: 30px; border-radius: 8px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ink-dim); border: 1px solid var(--line); flex-shrink: 0; font-family: var(--font-display); }
.avatar.lg { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.exname-main { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.verified { color: var(--accent); font-size: 12px; }
.exname-sub { font-size: 11.5px; color: var(--ink-dim); margin-top: 1px; }
.rate-val { font-size: 14.5px; font-weight: 700; }
.rate-sub { font-size: 11px; color: var(--ink-dim); margin-top: 1px; }
.stars { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--amber); }
.reserve { font-size: 13px; }
.go-btn { background: var(--panel-2); border: 1px solid var(--line); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.15s ease; font-family: inherit; }
.go-btn:hover { background: var(--amber); color: #1A1204; border-color: var(--amber); }
.empty { padding: 40px; text-align: center; color: var(--ink-dim); font-size: 13.5px; }

/* skeleton loading shimmer */
.skeleton-row { height: 62px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; background: var(--panel); }
.skeleton-row::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.035), transparent);
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

/* ---------------- CARDS (mini list on home) ---------------- */
.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-row { display: flex; align-items: center; justify-content: space-between; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color 0.15s ease, transform 0.15s ease; }
.mini-row:hover { border-color: var(--accent); transform: translateX(2px); }
.mini-left { display: flex; align-items: center; gap: 10px; }

/* ---------------- EXCHANGER DETAIL PAGE ---------------- */
.detail-head { display: flex; gap: 18px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-info h1 { font-family: var(--font-display); font-weight: 600; font-size: 23px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.detail-meta { font-size: 12.5px; color: var(--ink-dim); margin-bottom: 10px; }
.detail-desc { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; max-width: 560px; }
.detail-stats { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.detail-stat { text-align: right; }
.detail-stat-num { font-family: var(--font-mono); font-size: 19px; font-weight: 700; }
.detail-stat-label { font-size: 11px; color: var(--ink-dim); margin-top: 2px; }

/* reserve bar */
.reserve-bar-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; margin-bottom: 20px; }
.reserve-bar-track { height: 10px; background: var(--panel-2); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.reserve-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--amber)); border-radius: 999px; transition: width 0.6s ease; }

/* reviews */
.review-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.review-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 6px; }
.review-author { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.review-date { font-size: 11.5px; color: var(--ink-dim); }
.review-text { font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }
.review-exchanger-tag { font-size: 11px; color: var(--accent); background: rgba(124,156,184,0.12); padding: 2px 8px; border-radius: 999px; }

/* ---------------- REVIEW FORM ---------------- */
.review-form { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 20px; }
.form-row { margin-bottom: 16px; }
.review-textarea {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; border-radius: 10px; font-size: 13.5px; font-family: inherit; resize: vertical;
}
.review-textarea:focus { outline: none; border-color: var(--accent); }
.char-counter { font-size: 11px; color: var(--ink-dim); text-align: right; margin-top: 4px; }

.star-picker { display: flex; gap: 4px; }
.star-btn {
  background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer;
  color: #2A3A48; padding: 2px; transition: color 0.12s ease, transform 0.12s ease;
}
.star-btn:hover { transform: scale(1.1); }
.star-btn.filled { color: var(--amber); }

.form-error { color: var(--danger); font-size: 12.5px; margin-bottom: 12px; }
.form-success { color: var(--success); font-size: 12.5px; margin-bottom: 12px; }

.delete-btn {
  background: none; border: none; color: var(--danger); font-size: 11.5px; cursor: pointer;
  padding: 0; text-decoration: underline; text-underline-offset: 2px;
}
.delete-btn:hover { opacity: 0.8; }

/* about page */
.prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin-top: 34px; margin-bottom: 10px; }
.prose p { font-size: 14px; color: var(--ink-dim); line-height: 1.7; }
.prose ul { color: var(--ink-dim); font-size: 14px; line-height: 1.8; padding-left: 20px; }
.callout { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber); border-radius: 10px; padding: 16px 18px; margin: 20px 0; font-size: 13.5px; color: var(--ink-dim); line-height: 1.6; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 8px; }
.feature-item { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.feature-item-icon { font-family: var(--font-mono); color: var(--accent); font-size: 12px; margin-bottom: 8px; }
.feature-item h4 { font-family: var(--font-display); font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.feature-item p { font-size: 12.5px; margin: 0; line-height: 1.55; }

.foot { text-align: center; color: var(--ink-dim); font-size: 11.5px; margin-top: 20px; }

/* ---------------- TOASTS ---------------- */
.toast-stack { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 200; max-width: 320px; }
.toast {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; color: var(--ink);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.55);
  animation: toastIn 0.25s ease;
}
.toast.toast-danger { border-left-color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- MODAL (confirm) ---------------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6,9,12,0.6); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 300; padding: 16px;
}
.modal-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  max-width: 360px; width: 100%; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
}
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.modal-text { font-size: 13.5px; color: var(--ink-dim); line-height: 1.5; margin-bottom: 18px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.btn-danger { background: var(--danger); color: #1F0906; }
.btn-danger:hover { background: #de7b6e; }

/* ---------------- COMMAND PALETTE ---------------- */
.cmdk-overlay {
  position: fixed; inset: 0; background: rgba(6,9,12,0.65); backdrop-filter: blur(2px);
  display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 300;
}
.cmdk-box {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; width: 100%; max-width: 520px;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,0.65); overflow: hidden;
}
.cmdk-input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--ink);
  padding: 16px 18px; font-size: 15px; font-family: var(--font-body);
}
.cmdk-input:focus { outline: none; }
.cmdk-results { max-height: 320px; overflow-y: auto; padding: 8px; }
.cmdk-item {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px;
  cursor: pointer; font-size: 13.5px;
}
.cmdk-item:hover, .cmdk-item.active { background: var(--panel-2); }
.cmdk-item-meta { font-size: 11px; color: var(--ink-dim); }
.cmdk-empty { padding: 20px; text-align: center; color: var(--ink-dim); font-size: 13px; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 780px) {
  .how-grid { grid-template-columns: 1fr; }
  .detail-stats { margin-left: 0; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .row {
    grid-template-columns: 26px 1fr;
    grid-template-areas: "rank name" "rate rate" "action action";
    row-gap: 8px;
  }
  .row--head { display: none; }
  .row .rank { grid-area: rank; }
  .row .exname { grid-area: name; }
  .row .row-rate { grid-area: rate; }
  .row .row-action { grid-area: action; }
  .row .row-action .go-btn { width: 100%; }
  .row .reserve, .row .stars { display: none; }
  .flap-cell { width: 20px; height: 32px; font-size: 18px; }
  .nav-menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; padding: 8px; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-search-btn span.nav-search-label { display: none; }
  .hero h1 { font-size: 30px; }
}
