/* ==========================================================================
   ROKKO House — Tema neón
   Display: Anton  ·  UI: Space Grotesk  ·  Datos/timer: JetBrains Mono
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Base oscura con un tinte azul-violeta, no negro puro */
  --ink:        #08080f;
  --ink-2:      #0d0d1a;
  --panel:      #12121f;
  --panel-2:    #191a2e;
  --line:       #262640;

  /* Neón */
  --pink:       #ff2d95;
  --pink-soft:  #ff7ac0;
  --blue:       #12e5ff;
  --blue-soft:  #7af0ff;
  --purple:     #a24bff;

  --text:       #ecebff;
  --muted:      #8a8ab0;
  --dim:        #5c5c80;

  --ok:         #2ee6a0;
  --warn:       #ffc54d;
  --danger:     #ff4d6d;

  --radius:     16px;
  --radius-sm:  10px;

  --glow-pink:  0 0 6px rgba(255,45,149,.55), 0 0 18px rgba(255,45,149,.35);
  --glow-blue:  0 0 6px rgba(18,229,255,.55), 0 0 18px rgba(18,229,255,.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

/* Ambiente: resplandores tenues en las esquinas (quietos) */
body {
  background-image:
    radial-gradient(60% 45% at 12% -5%, rgba(255,45,149,.16), transparent 60%),
    radial-gradient(55% 45% at 100% 0%, rgba(18,229,255,.14), transparent 60%),
    radial-gradient(80% 60% at 50% 120%, rgba(162,75,255,.12), transparent 60%);
  background-attachment: fixed;
}

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

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: 'Anton', sans-serif; font-weight: 400; letter-spacing: .5px; margin: 0; }
.mono { font-family: 'JetBrains Mono', monospace; }

.display {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  line-height: .92;
}

/* Texto con efecto tubo de neón */
.neon-pink {
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 40px rgba(255,45,149,.6);
}
.neon-blue {
  color: #fff;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--blue), 0 0 22px var(--blue), 0 0 40px rgba(18,229,255,.6);
}

/* ---------- Layout ---------- */
.wrap { max-width: 620px; margin: 0 auto; padding: 18px 16px 120px; }
.wrap-wide { max-width: 1180px; margin: 0 auto; padding: 18px 20px 60px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; filter: drop-shadow(0 0 8px rgba(18,229,255,.35)); }
.brand .sub { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); }

/* Etiqueta de mesa (glow) */
.table-tag {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid rgba(18,229,255,.5);
  box-shadow: var(--glow-blue); color: var(--blue-soft);
  font-size: 14px;
}
.table-tag .mic { color: var(--pink); text-shadow: var(--glow-pink); }

/* ---------- Tarjetas y superficies ---------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--ink-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card.glow-pink { border-color: rgba(255,45,149,.4); box-shadow: 0 0 24px rgba(255,45,149,.12) inset; }
.card.glow-blue { border-color: rgba(18,229,255,.4); box-shadow: 0 0 24px rgba(18,229,255,.12) inset; }

.section-title {
  font-family: 'Anton', sans-serif; text-transform: uppercase;
  font-size: 15px; letter-spacing: 2px; color: var(--muted);
  display: flex; align-items: center; gap: 10px; margin: 4px 0 12px;
}
.section-title::before {
  content: ''; width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
}

/* ---------- Formularios ---------- */
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .3px; }

input, select, textarea {
  width: 100%; font-family: inherit; font-size: 16px; color: var(--text);
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 13px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(18,229,255,.15);
}

.field { margin-bottom: 14px; }

/* Búsqueda grande */
.search-box { position: relative; }
.search-box input {
  font-size: 18px; padding: 16px 16px 16px 46px;
  border-color: rgba(255,45,149,.4);
}
.search-box input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255,45,149,.18); }
.search-box .icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--pink); font-size: 18px; pointer-events: none;
}

/* Dropdown de autocompletar */
.suggest {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow: hidden; max-height: 340px; overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
}
.suggest .item {
  padding: 12px 14px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.04);
  display: flex; align-items: center; gap: 10px;
}
.suggest .item:hover, .suggest .item.active { background: rgba(18,229,255,.08); }
.suggest .item .t { font-weight: 600; }
.suggest .item .a { color: var(--muted); font-size: 13px; }
.suggest .item .tag { margin-left: auto; font-size: 11px; color: var(--dim); }
.suggest .empty { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px;
  padding: 13px 18px; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text);
  transition: transform .08s, box-shadow .15s, background .15s; user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn.block { width: 100%; }
.btn.lg { padding: 16px; font-size: 17px; }
.btn.sm { padding: 8px 12px; font-size: 13px; }

.btn-pink {
  background: linear-gradient(180deg, var(--pink), #d21f7a);
  border-color: transparent; color: #fff; box-shadow: var(--glow-pink);
}
.btn-blue {
  background: linear-gradient(180deg, var(--blue), #0aa8c2);
  border-color: transparent; color: #04212b; box-shadow: var(--glow-blue);
}
.btn-ghost { background: transparent; }
.btn-ok    { border-color: rgba(46,230,160,.5); color: var(--ok); }
.btn-warn  { border-color: rgba(255,197,77,.5); color: var(--warn); }
.btn-danger{ border-color: rgba(255,77,109,.5); color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Ahora suena ---------- */
.now {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255,45,149,.18), transparent 55%),
    radial-gradient(120% 120% at 100% 100%, rgba(18,229,255,.18), transparent 55%),
    var(--ink-2);
  border: 1px solid rgba(255,45,149,.35);
  border-radius: var(--radius); padding: 18px; margin-bottom: 16px; position: relative; overflow: hidden;
}
.now .eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--pink); text-shadow: var(--glow-pink);
  display: flex; align-items: center; gap: 8px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); box-shadow: var(--glow-pink); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.now .song { font-family: 'Anton', sans-serif; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 10px 0 4px; }
.now .artist { color: var(--blue-soft); font-size: 15px; }
.now .meta { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.now .meta b { color: var(--text); }

/* Barra de progreso */
.progress { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); margin-top: 14px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--pink), var(--blue)); box-shadow: 0 0 12px rgba(18,229,255,.5); transition: width .5s linear; }

/* ---------- Fila / lista ---------- */
.queue { list-style: none; margin: 0; padding: 0; }
.q-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); margin-bottom: 10px;
}
.q-item .pos {
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 16px;
  min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px;
  background: var(--ink-2); color: var(--blue); border: 1px solid rgba(18,229,255,.35);
}
.q-item.mine { border-color: rgba(255,45,149,.5); box-shadow: 0 0 18px rgba(255,45,149,.1); }
.q-item.mine .pos { color: var(--pink); border-color: rgba(255,45,149,.5); }
.q-item .body { flex: 1; min-width: 0; }
.q-item .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-item .a { color: var(--muted); font-size: 13px; }
.q-item .eta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--blue-soft); white-space: nowrap; }

/* Chips de estado */
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .4px; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted);
}
.chip.pending  { color: var(--warn);   border-color: rgba(255,197,77,.4); }
.chip.queued   { color: var(--blue);   border-color: rgba(18,229,255,.4); }
.chip.playing  { color: var(--pink);   border-color: rgba(255,45,149,.5); box-shadow: var(--glow-pink); }
.chip.done     { color: var(--dim); }
.chip.rejected { color: var(--danger); border-color: rgba(255,77,109,.4); }
.chip.in_progress { color: var(--blue); border-color: rgba(18,229,255,.4); }
.chip.delivered   { color: var(--ok);   border-color: rgba(46,230,160,.4); }

/* ---------- Navegación inferior (cliente) ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: center;
  background: rgba(10,10,20,.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1; text-align: center; padding: 8px 4px; color: var(--muted);
  font-size: 11px; letter-spacing: .5px; text-transform: uppercase; font-weight: 600;
}
.bottom-nav a .ic { display: block; font-size: 20px; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--blue); text-shadow: var(--glow-blue); }

/* ---------- Vistas / tabs ---------- */
.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Menú (cliente) ---------- */
.menu-cat { margin-bottom: 8px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.menu-item .info { flex: 1; }
.menu-item .name { font-weight: 600; }
.menu-item .desc { color: var(--muted); font-size: 13px; }
.menu-item .price { font-family: 'JetBrains Mono', monospace; color: var(--blue-soft); white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 18px; cursor: pointer;
}
.qty .n { font-family: 'JetBrains Mono', monospace; min-width: 22px; text-align: center; }

.cart-bar {
  position: sticky; bottom: 78px; margin-top: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--panel-2); border: 1px solid rgba(18,229,255,.4);
  border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--glow-blue);
}
.cart-bar .total { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

/* ---------- DJ / Hostess — consola ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .grid.cols-2 { grid-template-columns: 1.4fr 1fr; } .grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; } }

.op-item {
  display: flex; align-items: center; gap: 12px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); margin-bottom: 10px;
}
.op-item .grip { color: var(--dim); cursor: grab; font-size: 18px; }
.op-item .body { flex: 1; min-width: 0; }
.op-item .body .t { font-weight: 600; }
.op-item .body .a { color: var(--muted); font-size: 13px; }
.op-item .body .who { font-size: 12px; color: var(--blue-soft); margin-top: 2px; }
.op-item.playing { border-color: rgba(255,45,149,.5); box-shadow: 0 0 22px rgba(255,45,149,.12); }

/* Letra sincronizada */
.lyrics { max-height: 320px; overflow: hidden; position: relative; text-align: center; }
.lyrics .line { padding: 8px 0; color: var(--dim); font-size: 18px; transition: color .2s, transform .2s, text-shadow .2s; }
.lyrics .line.active { color: #fff; font-size: 22px; font-weight: 700; text-shadow: var(--glow-blue); transform: scale(1.02); }
.lyrics .line.next { color: var(--muted); }

/* ---------- Pantalla grande (venue) ---------- */
.screen { min-height: 100vh; display: flex; flex-direction: column; padding: 4vh 5vw; }
.screen .now-big .song { font-size: 8vw; }
.screen .now-big .artist { font-size: 3vw; }
.screen .lyrics-big .line { font-size: 3vw; padding: 1.2vh 0; }
.screen .lyrics-big .line.active { font-size: 3.6vw; }

/* ---------- Utilidades ---------- */
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.wrap-gap { gap: 10px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mt { margin-top: 12px; } .mt-lg { margin-top: 20px; }
.center { text-align: center; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.pill-count { background: var(--pink); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; box-shadow: var(--glow-pink); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px);
  background: var(--panel-2); border: 1px solid var(--blue); color: var(--text);
  padding: 12px 18px; border-radius: 999px; box-shadow: var(--glow-blue);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: var(--danger); box-shadow: 0 0 12px rgba(255,77,109,.5); }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(4,4,10,.8); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 90; padding: 16px;
}
.modal-bg.show { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
}
.modal h3 { font-size: 22px; margin-bottom: 12px; }

/* Login staff */
.login-wrap { max-width: 380px; margin: 12vh auto; padding: 0 20px; text-align: center; }
.pin-input { letter-spacing: 8px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: 24px; }

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