/* ============================================================
   servimi — Panel de administración
   Tokens alineados al diseño del landing (oscuro premium).
   ============================================================ */
:root {
  --bg:        #0c0c0e;
  --bg-2:      #101012;
  --panel:     #17171a;
  --panel-2:   #1f1f22;
  --field:     #0a0a0c;
  --line:      rgba(243,240,234,.08);
  --line-2:    rgba(243,240,234,.15);

  --crimson:      #E87B00;
  --crimson-lit:  #ff8c14;
  --text:      #f3f0ea;
  --muted:     #cfcabf;
  --faint:     #a8a29a;
  --orange:    #E87B00;
  --gold:      #D8A24A;
  --green:     #4e9d6b;
  --green-bg:  rgba(78,157,107,.14);
  --switch-off: #2e2e32;
  --red-bg:    rgba(220,60,50,.12);

  --f-display: 'Oswald', sans-serif;
  --f-head:    'Oswald', sans-serif;
  --f-body:    'Inter', system-ui, sans-serif;
  --f-script:  'Inter', system-ui, sans-serif;
}
/* ============================================================
   TEMA CLARO — admin (fondo claro servimi)
   ============================================================ */
[data-theme="light"] {
  --bg:        #f1f5f9;
  --bg-2:      #ffffff;
  --panel:     #ffffff;
  --panel-2:   #f8fafc;
  --field:     #f1f5f9;
  --line:      rgba(15,23,42,.10);
  --line-2:    rgba(15,23,42,.18);

  --crimson:      #E87B00;
  --crimson-lit:  #c96a00;
  --text:      #0f172a;
  --muted:     #475569;
  --faint:     #94a3b8;
  --orange:    #E87B00;
  --gold:      #9a5a00;
  --green:     #2f8a57;
  --green-bg:  rgba(47,138,87,.14);
  --switch-off: #cbd5e1;
  --red-bg:    rgba(220,60,50,.08);
}
[data-theme="light"] .btn-danger { color: #b91c1c; }
[data-theme="light"] .btn-danger:hover { color: #991b1b; }
[data-theme="light"] .topbar { background: rgba(241,245,249,.92); }

/* Selector de tema claro/oscuro */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line-2); color: var(--gold);
  transition: color .15s ease, border-color .15s ease, transform .12s ease;
}
.theme-toggle:hover { color: var(--orange); border-color: var(--gold); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 18px; height: 18px; }
.login-wrap > .theme-toggle { position: absolute; top: 18px; right: 18px; z-index: 5; }

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 15px; -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  font-size: 12.5px; border-radius: 9px; padding: 10px 16px; border: 1px solid transparent;
  transition: all .15s ease; white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--crimson); color: #fff; border-color: var(--crimson-lit); }
.btn-primary:hover { background: var(--crimson-lit); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); border-color: var(--gold); }
.btn-danger { background: transparent; color: #e88; border-color: rgba(196,50,42,.5); }
.btn-danger:hover { background: var(--red-bg); color: #fbb; }
.btn-sm { padding: 7px 11px; font-size: 11px; border-radius: 7px; }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .08em;
  font-size: 11px; color: var(--muted);
}
.input, .textarea, .select {
  width: 100%; background: var(--field); border: 1px solid var(--line-2); border-radius: 9px;
  color: var(--text); font-family: var(--f-body); font-size: 15px; padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,76,.16);
}
.textarea { resize: vertical; min-height: 76px; line-height: 1.45; }
.hint { font-size: 12px; color: var(--faint); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(90% 70% at 50% -10%, rgba(196,50,42,.16), transparent 60%),
    url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC45JyBudW1PY3RhdmVzPScyJy8+PGZlQ29sb3JNYXRyaXggdHlwZT0nc2F0dXJhdGUnIHZhbHVlcz0nMCcvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPScxMDAlJyBoZWlnaHQ9JzEwMCUnIGZpbHRlcj0ndXJsKCNuKScgb3BhY2l0eT0nMC41Jy8+PC9zdmc+"),
    var(--bg);
  background-size: auto, 220px 220px, auto;
}
.login-card {
  width: 100%; max-width: 380px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: 18px; padding: 34px 30px 28px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6); text-align: center;
}
.login-card .badge { width: 132px; height: 100px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.badge .tbg-logo { width: 100%; height: 100%; object-fit: contain; }
.login-card h1 {
  font-family: var(--f-display); font-size: 24px; letter-spacing: .03em; margin: 0; line-height: 1;
}
.login-card .sub {
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: .2em; font-size: 11px;
  color: var(--orange); margin: 8px 0 24px;
}
.login-card .field { text-align: left; margin-bottom: 14px; }
.login-card .btn-primary { width: 100%; padding: 13px; font-size: 13px; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--faint); padding: 8px; display: grid; place-items: center;
}
.pw-toggle:hover { color: var(--text); }
.pw-toggle svg { width: 18px; height: 18px; }
.login-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.login-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.login-link:hover { color: var(--text); text-decoration: underline; }
.demo-note {
  font-size: 12px; color: var(--faint); background: var(--field); border: 1px dashed var(--line-2);
  border-radius: 8px; padding: 9px 12px; line-height: 1.4;
}
.login-error {
  background: var(--red-bg); border: 1px solid rgba(196,50,42,.4); color: #f7b9b3;
  border-radius: 8px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px; text-align: left;
}

/* ============================================================
   SHELL DEL PANEL
   ============================================================ */
.admin { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }

.sidebar {
  background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 14px; gap: 6px;
  position: sticky; top: 0; height: 100vh;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; }
.sb-brand .badge { width: 56px; height: 44px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.sb-brand .sb-name { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; line-height: 1.1; }
.sb-brand .sb-tag { font-family: var(--f-head); font-weight: 300; text-transform: uppercase; letter-spacing: .18em; font-size: 9.5px; color: var(--orange); }
.sb-nav { display: flex; flex-direction: column; gap: 3px; }
.sb-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px;
  background: none; border: none; color: var(--muted); text-align: left;
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 12.5px;
  transition: all .14s ease;
}
.sb-item svg { width: 17px; height: 17px; opacity: .85; }
.sb-item:hover { color: var(--text); background: var(--panel); }
.sb-item.active { color: #fff; background: var(--crimson); }
.sb-spacer { flex: 1; }
.sb-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }

.content { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: rgba(16,11,9,.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; align-items: center; gap: 16px;
}
.topbar h2 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 19px; margin: 0; }
.topbar .tb-spacer { flex: 1; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }

.view { padding: 22px 26px 60px; }

/* ---------- Barra de herramientas ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--faint); }
.search .input { padding-left: 38px; }
.toolbar .select { width: auto; min-width: 170px; }

/* ---------- Tabla de platos ---------- */
.cat-block { margin-bottom: 26px; }
.cat-block-head {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: nowrap; padding: 0 2px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px;
}
.cat-block-head .cb-title { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--orange); white-space: nowrap; }
.cat-block-head .cb-count { font-size: 12px; color: var(--faint); white-space: nowrap; }

.dish-row {
  display: grid; grid-template-columns: 1fr 118px 156px auto; align-items: center; gap: 14px;
  padding: 12px 10px; border-radius: 10px; transition: background .12s ease;
}
.dish-row.can-drag { grid-template-columns: 22px 1fr 118px 156px auto; }
.dish-row.can-drag { cursor: grab; }
.dish-row.can-drag:active { cursor: grabbing; }
.drag-handle { display: grid; place-items: center; color: var(--faint); cursor: grab; }
.drag-handle svg { width: 16px; height: 16px; }
.drag-handle:hover { color: var(--text); }
.dish-row.drag-over { background: var(--green-bg); box-shadow: inset 0 2px 0 var(--green); }
.dish-row.no-price { background: rgba(199,154,76,.05); }

/* aviso de plato sin precio */
.np-badge {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 9px; vertical-align: middle;
  font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
  font-size: 10px; color: #f0c869; background: rgba(199,154,76,.14);
  border: 1px solid rgba(199,154,76,.5); border-radius: 999px; padding: 2px 8px;
}
.np-badge svg { width: 11px; height: 11px; }
.price-edit.is-empty input { border-color: rgba(199,154,76,.55); background: rgba(199,154,76,.08); color: var(--gold); }
.pe-incl { font-family: var(--f-body); font-style: italic; color: var(--faint); font-size: 13px; }

/* filtro "sin precio" */
.btn-filter.active { background: rgba(199,154,76,.16); border-color: var(--gold); color: #f0c869; }
.reorder-hint { display: flex; align-items: center; gap: 7px; margin: -2px 0 14px; }
.reorder-hint svg { width: 15px; height: 15px; color: var(--gold); }
.empty-state {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 40px; color: var(--green); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: 14px;
}
.empty-state svg { width: 20px; height: 20px; }

/* ============================================================
   QR / IMPRIMIR
   ============================================================ */
.qr-grid { display: grid; grid-template-columns: 360px 1fr; gap: 30px; align-items: start; }
.qr-stage { display: flex; flex-direction: column; align-items: center; }
.qr-actions { display: flex; gap: 10px; margin-top: 4px; }
.qr-fallback { color: var(--faint); font-size: 13px; text-align: center; padding: 30px; }

.qr-poster {
  width: 380px; max-width: 100%;
  background: #f7efe0; color: #1a120d; border-radius: 18px; padding: 30px 28px 26px;
  text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  border: 2px solid var(--gold);
}
.qr-poster .qp-name { font-family: var(--f-display); font-size: 26px; letter-spacing: .03em; margin: 6px 0 0; color: #2a1d12; text-transform: uppercase; }
.qr-poster .qp-headline { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; color: var(--crimson); margin: 6px 0 18px; }
.qr-poster .qp-qr-wrap { position: relative; width: 220px; margin: 0 auto; }
.qr-poster .qp-qr {
  width: 220px; height: 220px; background: #fff; padding: 12px; border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center;
  box-sizing: border-box;
}
/* logo pequeño centrado dentro del QR (corrección de error H lo tolera) */
.qr-poster .qp-qr-logo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 4px #fff; display: grid; place-items: center;
}
.qr-poster .qp-qr-logo .qp-qr-logo-in {
  width: 100%; height: 100%; border-radius: 9px; background: #160f0b;
  display: grid; place-items: center; padding: 6px; box-sizing: border-box;
}
.qr-poster .qp-qr-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr-poster .qp-qr svg { display: block; }
.qr-poster .qp-qr svg rect { fill: #fff; }
.qr-poster .qp-qr svg path { fill: #1a120d; }
.qr-poster .qp-cta { display: inline-flex; align-items: center; gap: 7px; margin: 16px 0 0; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; color: #2a1d12; }
.qr-poster .qp-cta svg { width: 15px; height: 15px; color: var(--crimson); }
.qr-poster .qp-foot { font-size: 12.5px; color: #6b5742; margin: 14px 0 0; }
.qr-poster .qp-addr { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; color: #8a7459; margin: 6px 0 0; }

/* impresión: solo el afiche */
@media print {
  body { background: #fff !important; }
  .sidebar, .topbar, .no-print, .toast { display: none !important; }
  .admin { display: block !important; }
  .content, .view { display: block !important; padding: 0 !important; }
  .qr-grid { display: block !important; }
  .qr-stage { display: block !important; }
  .qr-poster {
    box-shadow: none !important; border: 2px solid #c79a4c !important;
    margin: 0 auto !important; width: 460px !important;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
.dish-row:hover { background: var(--panel); }
.dish-row.is-hidden { opacity: .5; }
.dr-name { font-family: var(--f-head); font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: .01em; }
.dr-name .dr-desc { display: block; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--faint); margin-top: 2px; font-weight: 400; max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-name .dr-multi { font-family: var(--f-script); text-transform: none; color: var(--orange); font-size: 14px; letter-spacing: 0; }

/* edición rápida de precio */
.price-edit { display: flex; align-items: center; gap: 6px; }
.price-edit .pe-ref { font-family: var(--f-head); font-size: 11px; color: var(--gold); text-transform: uppercase; letter-spacing: .05em; }
.price-edit input {
  width: 74px; background: var(--field); border: 1px solid var(--line-2); border-radius: 7px;
  color: var(--text); font-family: var(--f-head); font-weight: 600; font-size: 14px; padding: 7px 9px; text-align: right;
}
.price-edit input:focus { outline: none; border-color: var(--gold); }
.price-edit.varied input { color: var(--faint); }
.pe-varied { font-family: var(--f-script); color: var(--orange); font-size: 15px; }

/* toggle disponibilidad — estilo switch sólido */
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; background: none; border: none; padding: 0; }
.toggle .tg-track { width: 42px; height: 24px; border-radius: 999px; background: var(--switch-off); border: 1px solid transparent; position: relative; }
.toggle .tg-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: left .16s ease; }
.toggle.on .tg-track { background: var(--green); border-color: var(--green); }
.toggle.on .tg-knob { left: 22px; background: #fff; }
.toggle .tg-label { font-size: 11.5px; color: var(--muted); font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; min-width: 80px; }
.toggle.on .tg-label { color: var(--green); }
.tg-sold .tg-label { color: var(--orange); }

.dr-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-2); color: var(--muted); transition: all .14s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--gold); background: var(--panel-2); }
.icon-btn svg { width: 16px; height: 16px; }

/* ============================================================
   MODAL / FORMULARIO DE EDICIÓN
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,5,4,.72); backdrop-filter: blur(3px);
  display: grid; place-items: start center; padding: 28px 16px; z-index: 50; overflow-y: auto;
}
.modal {
  width: 100%; max-width: 560px; background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.7);
  animation: modalIn .18s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 18px; margin: 0; flex: 1; }
.modal-head .x { width: 34px; height: 34px; border-radius: 8px; border: none; background: var(--field); color: var(--muted); display: grid; place-items: center; }
.modal-head .x:hover { color: var(--text); }
.modal-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.modal-foot { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; }
.modal-foot .mf-spacer { flex: 1; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.photo-slot { width: 100%; height: 150px; border-radius: 12px; overflow: hidden; border: 1px dashed var(--line-2); background: var(--field); }
.photo-slot image-slot { width: 100%; height: 100%; display: block; }

/* variantes */
.variant-edit { display: flex; flex-direction: column; gap: 8px; }
.variant-line { display: grid; grid-template-columns: 1fr 110px 34px; gap: 8px; align-items: center; }
.variant-line .input { padding: 9px 11px; }
.variant-line .icon-btn { width: 34px; height: 34px; }
.add-variant { align-self: flex-start; }

/* etiquetas */
.tag-picker { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  background: var(--field); border: 1px solid var(--line-2); color: var(--muted);
  font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 11.5px;
}
.tag-chip.on { background: var(--crimson); border-color: var(--crimson-lit); color: #fff; }

/* ============================================================
   BANNER EDITOR
   ============================================================ */
.banner-grid { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.panel-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.panel-card h3 { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; margin: 0 0 16px; }
.panel-card .field { margin-bottom: 14px; }
.preview-label { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--faint); margin: 0 0 12px; }

/* segmented control (moneda) */
.seg-row { display: inline-flex; background: var(--field); border: 1px solid var(--line-2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg-btn { border: none; background: none; cursor: pointer; border-radius: 7px; padding: 9px 18px; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: 13px; color: var(--muted); }
.seg-btn.on { background: var(--crimson); color: #fff; }

/* preview de moneda */
.cur-preview { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cur-name { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 15px; color: var(--text); }
.cur-amounts { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.cur-ref { font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--text); }
.cur-ref i { font-style: normal; font-family: var(--f-body); font-weight: 600; font-size: .62em; color: var(--gold); margin-right: 3px; text-transform: uppercase; }
.cur-bs { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--gold); margin-top: 3px; }
.cur-ribbon { margin-top: 12px; text-align: center; background: rgba(199,154,76,.12); border: 1px solid rgba(199,154,76,.3); border-radius: 8px; padding: 9px 12px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; color: var(--muted); }
.cur-ribbon strong { color: var(--gold); }

/* preview del banner (réplica compacta del cliente) */
.bn-preview { border: 1.5px solid var(--crimson); border-radius: 14px; overflow: hidden; background: linear-gradient(120deg, var(--panel-2), var(--bg-2)); display: grid; grid-template-columns: 100px 1fr; }
.bn-preview .bp-media { background: #0c0806; min-height: 120px; position: relative; }
.bn-preview .bp-flag { position: absolute; top: 0; left: 0; background: var(--crimson); color: #fff; font-family: var(--f-head); font-weight: 600; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-bottom-right-radius: 8px; }
.bn-preview .bp-body { padding: 13px 14px; display: flex; flex-direction: column; gap: 5px; justify-content: center; }
.bn-preview .bp-eyebrow { font-family: var(--f-script); color: var(--orange); font-size: 16px; line-height: 1; }
.bn-preview .bp-title { font-family: var(--f-display); font-size: 20px; line-height: 1.02; text-transform: uppercase; margin: 0; }
.bn-preview .bp-text { font-size: 12px; color: var(--muted); margin: 0; line-height: 1.35; }
.bn-preview .bp-cta { margin-top: 4px; align-self: flex-start; font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; color: #fff; background: var(--crimson); border-radius: 999px; padding: 6px 12px; }
.bn-off { opacity: .4; filter: grayscale(.6); }
.bn-off-note { text-align: center; font-size: 12.5px; color: var(--faint); margin-top: 12px; font-style: italic; }

/* ============================================================
   CATEGORÍAS
   ============================================================ */
.cat-list { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.cat-item { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.cat-item.is-hidden { opacity: .5; }
.cat-handle { display: flex; flex-direction: column; gap: 2px; }
.cat-handle button { width: 26px; height: 22px; border: 1px solid var(--line-2); background: var(--field); color: var(--muted); border-radius: 6px; display: grid; place-items: center; padding: 0; }
.cat-handle button:hover:not(:disabled) { color: var(--text); border-color: var(--gold); }
.cat-handle button:disabled { opacity: .3; }
.cat-handle button svg { width: 13px; height: 13px; }
.cat-name { font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .03em; font-size: 14px; }
.cat-name .cn-count { font-family: var(--f-body); text-transform: none; letter-spacing: 0; color: var(--faint); font-size: 12px; margin-left: 8px; }

/* ---------- Toast confirmación ---------- */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--panel-2); border: 1px solid var(--green); color: var(--text);
  padding: 11px 18px; border-radius: 10px; font-size: 13px; display: flex; align-items: center; gap: 9px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); z-index: 80; animation: modalIn .2s ease;
}
.toast svg { width: 16px; height: 16px; color: var(--green); }

/* confirm dialog */
.confirm { max-width: 400px; text-align: center; }
.confirm .modal-body { align-items: center; }
.confirm p { margin: 0; color: var(--muted); line-height: 1.5; }
.confirm .c-name { color: var(--text); font-family: var(--f-head); text-transform: uppercase; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .admin { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; height: auto; flex-direction: row; align-items: center;
    overflow-x: auto; padding: 10px 12px; gap: 4px; z-index: 20;
  }
  .sb-brand { padding: 4px 10px 4px 4px; border-right: 1px solid var(--line); margin-right: 6px; }
  .sb-brand .sb-name, .sb-brand .sb-tag { display: none; }
  .sb-nav { flex-direction: row; }
  .sb-spacer, .sb-foot { display: none; }
  .banner-grid { grid-template-columns: 1fr; }
  .qr-grid { grid-template-columns: 1fr; }
  .dish-row.can-drag { grid-template-columns: 1fr auto; }
  .dish-row .drag-handle { display: none; }
  .dish-row { grid-template-columns: 1fr auto; grid-template-areas: "name price" "name toggle" "actions actions"; gap: 8px 12px; }
  .dr-name { grid-area: name; }
  .dr-name .dr-desc { white-space: normal; }
  .price-edit { grid-area: price; }
  .dish-row .toggle { grid-area: toggle; justify-self: end; }
  .dr-actions { grid-area: actions; justify-content: flex-start; padding-top: 4px; }
  .view { padding: 18px 16px 60px; }
  .row-2 { grid-template-columns: 1fr; }
}
