/* ============================================
   FOOD ORDERING SYSTEM — GLOBAL STYLES
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --brand: #ff5722;
  --brand-dark: #e64a19;
  --brand-light: #ffe0d5;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #8a8a8a;
  --line: #ececec;
  --bg: #fafafa;
  --card: #ffffff;
  --success: #10b981;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------- TOP NAV ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar .brand {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar .brand span { color: var(--brand); }

.topbar .nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.topbar .who {
  color: var(--ink-soft);
  font-weight: 500;
}

.topbar a.btn-link,
.topbar .btn-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background .15s;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.topbar .btn-link:hover { background: #f2f2f2; }

.topbar .btn-link.primary {
  background: var(--brand);
  color: #fff;
}
.topbar .btn-link.primary:hover { background: var(--brand-dark); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.65)),
    url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1600') center/cover;
  color: #fff;
  padding: 90px 28px 100px;
  text-align: center;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero h1 span { color: #ffb199; }

.hero p {
  font-size: 17px;
  opacity: .9;
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-cta a {
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: transform .15s, box-shadow .15s;
}

.hero-cta a.primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,87,34,.4);
}
.hero-cta a.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255,87,34,.5); }

.hero-cta a.ghost {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.hero-cta a.ghost:hover { background: rgba(255,255,255,.2); }

/* ---------- MAIN LAYOUT ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container.wide { max-width: 1400px; }

.page-wrap {
  max-width: 1240px;
  margin: -50px auto 60px;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Two-column layout: menu (left) + cart (right) */
.shop-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 26px;
  align-items: start;
}

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: 1fr; }
}

/* ---------- SECTION HEADINGS ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 34px 0 16px;
}

.section-head h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
}

.section-head .count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* ---------- MENU CARDS ---------- */
.menu-section { margin-bottom: 36px; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.food-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
}

.food-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.food-card.sold-out { opacity: .55; }

.food-card .thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f0f0f0 center/cover no-repeat;
  position: relative;
}

.food-card .thumb.no-img {
  background: linear-gradient(135deg, #ffd8c7, #ffb199);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
}

.food-card .price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: var(--brand);
  font-weight: 700;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.food-card .info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.food-card .info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.food-card .info p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  flex: 1;
}

.food-card .add-btn {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.food-card .add-btn:hover { background: var(--brand-dark); }
.food-card .add-btn:active { transform: scale(.97); }

.food-card .add-btn:disabled {
  background: #ddd;
  color: #888;
  cursor: not-allowed;
}

.food-card .soldout-tag {
  display: inline-block;
  background: #fee2e2;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ---------- CART SIDEBAR ---------- */
.cart-panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
}

.cart-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-panel h2 .badge {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
}

.cart-empty {
  text-align: center;
  padding: 28px 10px;
  color: var(--muted);
  font-size: 14px;
}

.cart-empty .icon { font-size: 40px; opacity: .35; display: block; margin-bottom: 8px; }

.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.cart-line .name { flex: 1; font-weight: 600; color: var(--ink); }
.cart-line .name small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fafafa;
}

.qty-control button {
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s;
}

.qty-control button:hover { background: #eee; }

.qty-control span {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-size: 13px;
}

.cart-line .line-total {
  font-weight: 700;
  color: var(--ink);
  min-width: 60px;
  text-align: right;
}

.cart-summary {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13.5px;
  color: var(--ink-soft);
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.cart-summary .row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
}

.cart-form { margin-top: 14px; display: grid; gap: 10px; }

.cart-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: block;
  margin-bottom: 4px;
}

.cart-form select,
.cart-form input[type=text] {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
  transition: border .15s, background .15s;
}

.cart-form select:focus,
.cart-form input[type=text]:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .15s, transform .1s;
  font-family: inherit;
}

.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }

.btn-secondary {
  width: 100%;
  padding: 11px;
  background: #f2f2f2;
  color: var(--ink);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover { background: #e6e6e6; }

/* ---------- ALERTS ---------- */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.err { color: var(--danger); font-size: 13px; margin-top: 6px; }

/* ---------- BUTTONS (global) ---------- */
button {
  padding: 8px 14px;
  font-family: inherit;
  font-size: 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  transition: background .15s;
}

button:hover { background: #f6f6f6; }

/* ---------- KANBAN (kitchen) ---------- */
.kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .kanban { grid-template-columns: 1fr; }
}

.col {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  min-height: 320px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.col h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 14px;
}

.ticket {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}

.ticket-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13px;
}

.ticket-head strong { font-weight: 800; color: var(--ink); }
.ticket-head span { color: var(--muted); font-weight: 600; }

.ticket ul {
  list-style: none;
  padding: 8px 0;
  margin: 8px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  font-size: 13.5px;
}

.ticket li { padding: 3px 0; color: var(--ink-soft); }

.ticket button {
  width: 100%;
  padding: 9px;
  background: var(--brand);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
}

.ticket button:hover { background: var(--brand-dark); }

/* ---------- TABLES ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:hover td { background: #fafafa; }

/* ---------- FORMS ---------- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin-bottom: 14px;
}

form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink-soft); }
form input, form select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  margin-top: 5px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  background: #fafafa;
}
form input:focus, form select:focus { outline: none; border-color: var(--brand); background: #fff; }

/* ---------- AUTH PAGES ---------- */
.auth-wrap {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.6)),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?w=1600') center/cover;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 34px 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  margin-bottom: 6px;
}

.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

.auth-card .switch { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-card .switch a { color: var(--brand); font-weight: 600; text-decoration: none; }

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  z-index: 9999;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 600px) {
  .topbar { padding: 12px 16px; }
  .topbar .brand { font-size: 18px; }
  .topbar .who { display: none; }
  .hero { padding: 60px 20px 70px; }
  .page-wrap { margin-top: -40px; }
  .section-head h2 { font-size: 20px; }
}/* ============================================
   DARK MODE OVERRIDES
   Applied when <html data-theme="dark">
   ============================================ */

html[data-theme="dark"] {
  --brand: #ff7043;
  --brand-dark: #ff8a5c;
  --brand-light: #3a241c;
  --ink: #f0f0f0;
  --ink-soft: #c4c4c4;
  --muted: #8a8a8a;
  --line: #2a2a2a;
  --bg: #0f0f0f;
  --card: #1a1a1a;
  --success: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.4);
  --shadow: 0 4px 16px rgba(0,0,0,.5);
  --shadow-lg: 0 12px 32px rgba(0,0,0,.6);
}

html[data-theme="dark"] body { background: var(--bg); color: var(--ink); }

html[data-theme="dark"] .topbar {
  background: rgba(20,20,20,.92);
  border-bottom-color: var(--line);
}

html[data-theme="dark"] .topbar .btn-link:hover { background: #2a2a2a; }

html[data-theme="dark"] .food-card,
html[data-theme="dark"] .cart-panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .col,
html[data-theme="dark"] .ticket,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .pos-ticket,
html[data-theme="dark"] .stat-card {
  background: var(--card);
  border-color: var(--line);
}

html[data-theme="dark"] .food-card .info h3 { color: var(--ink); }

html[data-theme="dark"] .food-card .thumb.no-img {
  background: linear-gradient(135deg, #3a241c, #2a1a14);
}

html[data-theme="dark"] .food-card .price-badge {
  background: #262626;
  color: var(--brand);
}

html[data-theme="dark"] .cart-empty .icon { opacity: .35; }

html[data-theme="dark"] .qty-control { background: #262626; border-color: var(--line); }
html[data-theme="dark"] .qty-control button { color: var(--ink); }
html[data-theme="dark"] .qty-control button:hover { background: #333; }

html[data-theme="dark"] .cart-form select,
html[data-theme="dark"] .cart-form input[type=text],
html[data-theme="dark"] form input,
html[data-theme="dark"] form select {
  background: #232323;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] .cart-form select:focus,
html[data-theme="dark"] .cart-form input[type=text]:focus,
html[data-theme="dark"] form input:focus,
html[data-theme="dark"] form select:focus {
  background: #2a2a2a;
  border-color: var(--brand);
}

html[data-theme="dark"] button {
  background: #262626;
  border-color: var(--line);
  color: var(--ink);
}
html[data-theme="dark"] button:hover { background: #333; }

html[data-theme="dark"] .btn-secondary {
  background: #262626;
  color: var(--ink);
}
html[data-theme="dark"] .btn-secondary:hover { background: #333; }

html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .food-card .add-btn,
html[data-theme="dark"] .ticket button,
html[data-theme="dark"] .pos-ticket .actions .btn-primary {
  background: var(--brand);
  color: #fff;
}
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .food-card .add-btn:hover { background: var(--brand-dark); }

html[data-theme="dark"] .food-card .add-btn:disabled {
  background: #2a2a2a;
  color: #666;
}

html[data-theme="dark"] th, html[data-theme="dark"] td { border-bottom-color: var(--line); }
html[data-theme="dark"] th { color: var(--muted); }
html[data-theme="dark"] tr:hover td { background: #1e1e1e; }

html[data-theme="dark"] .cart-summary { color: var(--ink-soft); border-top-color: var(--line); }
html[data-theme="dark"] .cart-summary .row.total { border-top-color: var(--line); color: var(--ink); }

html[data-theme="dark"] .cart-line { border-bottom-color: var(--line); }

html[data-theme="dark"] .section-head h2 { color: var(--ink); }

html[data-theme="dark"] .ticket-head strong { color: var(--ink); }
html[data-theme="dark"] .ticket li { color: var(--ink-soft); }
html[data-theme="dark"] .ticket ul { border-color: var(--line); }

html[data-theme="dark"] .col h2 { color: var(--ink-soft); border-bottom-color: var(--line); }

html[data-theme="dark"] .pos-ticket .head { border-bottom-color: var(--line); }
html[data-theme="dark"] .pos-ticket .cust { color: var(--ink-soft); }
html[data-theme="dark"] .pos-ticket li { border-bottom-color: #232323; }
html[data-theme="dark"] .pos-ticket .total-row { border-top-color: var(--line); color: var(--ink); }

html[data-theme="dark"] .mini-btn { background: #262626; border-color: var(--line); color: var(--ink); }
html[data-theme="dark"] .mini-btn:hover { background: #333; }
html[data-theme="dark"] .mini-btn.danger { color: var(--danger); border-color: #4a1f1f; }
html[data-theme="dark"] .mini-btn.danger:hover { background: #3a1818; }

html[data-theme="dark"] .kds-top { background: #050505; }
html[data-theme="dark"] .kds-stats small { color: #888; }

html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .empty-col,
html[data-theme="dark"] .cart-empty { color: var(--muted); }

html[data-theme="dark"] .alert.success { background: #0a3d2a; color: #6ee7b7; border-color: #065f46; }
html[data-theme="dark"] .alert.error   { background: #3d1414; color: #fca5a5; border-color: #7f1d1d; }

html[data-theme="dark"] .toast { background: #f0f0f0; color: #111; }

html[data-theme="dark"] .stat-card .icon { background: #3a241c; color: var(--brand); }

html[data-theme="dark"] .menu-table th { color: var(--muted); }
html[data-theme="dark"] .menu-table td { border-bottom-color: var(--line); }
html[data-theme="dark"] .menu-table tr:hover td { background: #1e1e1e; }

html[data-theme="dark"] .soldout-tag { background: #3d1414; color: #fca5a5; }

/* ---------- THEME TOGGLE BUTTON ---------- */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: transform .2s, background .15s;
  padding: 0;
  line-height: 1;
}

.theme-toggle:hover { transform: rotate(20deg); background: #f2f2f2; }

html[data-theme="dark"] .theme-toggle {
  background: #262626;
  border-color: var(--line);
  color: #fbbf24;
}
html[data-theme="dark"] .theme-toggle:hover { background: #333; }
/* ============================================
   NAV LINK SLIDE UNDERLINE EFFECT
   ============================================ */

.topbar .nav-actions .btn-link {
  position: relative;
  padding: 8px 14px;
  overflow: hidden;
}

/* The sliding underline bar */
.topbar .nav-actions .btn-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width .28s cubic-bezier(.34,1.4,.64,1);
}

.topbar .nav-actions .btn-link:hover::after {
  width: calc(100% - 24px);
}

/* Slide the text slightly on hover for a nicer feel */
.topbar .nav-actions .btn-link > span,
.topbar .nav-actions .btn-link {
  transition: color .18s, transform .18s, background .18s;
}

.topbar .nav-actions .btn-link:hover {
  color: var(--brand);
  transform: translateY(-1px);
}

/* Don't touch the primary (filled) button */
.topbar .nav-actions .btn-link.primary::after { display: none; }
.topbar .nav-actions .btn-link.primary:hover {
  color: #fff;
  transform: none;
}
/* ============================================
   POLISH — Smooth page load + better focus states
   ============================================ */
body {
  animation: pageFadeIn .25s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Consistent focus ring (accessibility + looks nice) */
*:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* Slightly nicer scrollbar in dark mode */
html[data-theme="dark"] {
  color-scheme: dark;
}

/* Prevent iOS zoom on input focus */
input, select, textarea {
  font-size: max(16px, 1em);
}