html, body { overflow-x: hidden; }

:root{
  --border: rgba(255,45,85,.28);
  --bg: #050506;
  --card: rgba(255,255,255,0.06);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.68);
  --danger: #ff4d6d;
  --ok: #00e0a4;

  --accent1: #ff2d55;
  --accent2: #781326;
  --accent3: #ff4d6d;
  --glow: rgba(255,45,85,.22);

  --font-main: "Inter", system-ui, sans-serif;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

body{
  min-height:100vh;
  margin:0;
  color: var(--text);

  background-image:
    radial-gradient(900px 520px at 20% 0%, rgba(255,45,85,.22), transparent 60%),
    radial-gradient(900px 620px at 90% 20%, rgba(120,19,38,.22), transparent 60%),
    linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.82)),
    url("/img/zona-bg.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

a{ color: inherit; }

.container{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px;
  padding-right: 28px;
}

.dj .container{
  padding-bottom: 64px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px;
  border-radius:18px;

  background: rgba(0,0,0,0.62);
  border: 1px solid rgba(255,45,85,.14);
  box-shadow:
    0 14px 34px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.035);

  backdrop-filter: blur(8px);
}

.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap: wrap;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border:1px solid rgba(255,45,85,.22);
  border-radius:999px;
  background: rgba(0,0,0,0.35);
  color: var(--muted);
  font-size: 13px;
}

.btn{
  border-radius:14px;
  border:1px solid rgba(255,45,85,.28);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.58));
  color: var(--text);
  padding:10px 12px;
  font-weight:900;
  cursor:pointer;
  letter-spacing:.25px;

  box-shadow:
    0 10px 24px rgba(0,0,0,.45),
    inset 0 0 0 1px rgba(255,255,255,.04);

  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover{
  filter: brightness(1.1);
  border-color: rgba(255,45,85,.55);
  box-shadow:
    0 14px 32px rgba(0,0,0,.55),
    0 0 18px rgba(255,45,85,.16),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

.btn:active{
  transform: translateY(1px);
}

.btn-small{
  width:auto;
  padding:9px 12px;
  border-radius:13px;
  font-size:13px;
}

.btn-danger{
  border-color: rgba(255, 77, 109, 0.9);
  color: #fff;
  background: rgba(255, 45, 85, 0.18);
}

.btn-danger:hover{
  filter: brightness(1.15);
  box-shadow: 0 0 18px rgba(255,45,85,.18);
}

.grid{
  display:grid;
  grid-template-columns: 1fr 200px;
  gap:16px;
  width:100%;
  margin-top:16px;
}

@media (max-width: 950px){
  .grid{ grid-template-columns: 1fr; }
}

.requests-area,
.panel,
.card{
  border:1px solid rgba(255,45,85,.14);
  border-radius:18px;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

.panel{
  background: linear-gradient(
    180deg,
    rgba(10,10,12,0.70),
    rgba(0,0,0,0.88)
  );

  border: 1px solid rgba(255,45,85,.16);

  box-shadow:
    0 14px 36px rgba(0,0,0,.52),
    0 0 0 1px rgba(255,45,85,.05) inset;
}

.requests-area{
  padding: 30px;
  min-height: 420px;

  border: 1px solid rgba(255,45,85,.12);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 10px 28px rgba(0,0,0,0.48);
}

.h2{
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 10px;
}

.muted{
  color: var(--muted);
  font-size: 12px;
}

.cards{
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(260px, 1fr));
  align-items: start;
}

@media (max-width: 1500px){
  .cards{ grid-template-columns: repeat(4, minmax(260px, 1fr)); }
}

@media (max-width: 1200px){
  .cards{ grid-template-columns: repeat(3, minmax(260px, 1fr)); }
}

@media (max-width: 900px){
  .cards{ grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}

@media (max-width: 560px){
  .cards{ grid-template-columns: 1fr; }
}

.card{
  padding:16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.table-card{
  width: 100%;
  max-width: none;
  min-height: 300px;

  background: rgba(0,0,0,.58);
  border: 1px solid rgba(255,45,85,0.18);

  box-shadow:
    0 18px 50px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,0.025);

  transition: border-color .25s ease, box-shadow .25s ease, transform .2s ease;
}

.song-list{
  display:grid;
  gap:10px;
  max-height: 260px;
  overflow-y:auto;
  padding-top: 6px;
  padding-right:8px;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.22) transparent;
}

.song-list::-webkit-scrollbar{ width: 8px; }
.song-list::-webkit-scrollbar-track{ background: transparent; }

.song-list::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

.song-list::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,0.28);
}

.song-item{
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.07);
}

.row{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}

.title{
  font-weight:900;
  font-size: 14px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.dj .title,
.dj .table-card .title,
.dj .status.ultima{
  letter-spacing: .8px;
  text-transform: uppercase;
  line-height: 1.1;
}

.dj .topbar .title{
  font-size: 22px;
  letter-spacing: 1px;
}

.dj .table-card .title{
  font-size: 22px;
  font-weight: 1000;
  letter-spacing: 1.2px;
}

.dj .status.ultima{
  font-size: 12px;
}

.next-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px rgba(0,224,164,.45);
  animation: pulseNext 2.2s ease-in-out infinite;
  opacity: .75;
}

@keyframes pulseNext{
  0%   { opacity: .35; transform: scale(.92); }
  50%  { opacity: .90; transform: scale(1);   }
  100% { opacity: .35; transform: scale(.92); }
}

.status.ultima{
  font-size: 10.5px;
  padding: 3px 8px;
  font-weight: 900;
  letter-spacing: .2px;
  line-height: 1;
  border-radius: 999px;

  background: linear-gradient(180deg, #ff4d6d, #781326);
  border: 1px solid rgba(255,77,109,.65);
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
}

.status.ultima-faded{
  color: rgba(255,77,109,0.9);
  background: rgba(255,45,85,0.10);
  border: 1px solid rgba(255,45,85,0.30);
  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
  opacity: 0.9;
  filter: none;
}

.status.pending{
  color: var(--danger);
}

.help{
  font-size: 12px;
  color: var(--muted);
}

.toast{
  margin-top:10px;
  font-size: 13px;
  color: var(--muted);
}

.song-time{
  margin-top: 0px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

.song-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top: 2px;
  padding-top: 0;
}

@keyframes pulseBlue {
  0%   {
    box-shadow: 0 0 0 rgba(255,45,85,0);
    border-color: rgba(255,45,85,0.18);
  }
  20%  {
    box-shadow: 0 0 18px rgba(255,45,85,0.45);
    border-color: rgba(255,45,85,0.55);
  }
  50%  {
    box-shadow: 0 0 0 rgba(255,45,85,0);
    border-color: rgba(255,45,85,0.18);
  }
  80%  {
    box-shadow: 0 0 18px rgba(255,45,85,0.45);
    border-color: rgba(255,45,85,0.55);
  }
  100% {
    box-shadow: 0 0 0 rgba(255,45,85,0);
    border-color: rgba(255,45,85,0.18);
  }
}

.flash-new{
  animation: pulseBlue 3.5s ease-in-out;
}

.song-line{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.song-index{
  font-size: 10.5px;
  font-weight: 900;
  padding: 2px 9px;
  border-radius: 999px;

  color: rgba(255,77,109,0.88);
  background: rgba(255,45,85,0.09);
  border: 1px solid rgba(255,45,85,0.24);

  letter-spacing: .2px;
  line-height: 1.2;
  white-space: nowrap;

  text-shadow: 0 1px 0 rgba(0,0,0,0.6);
}

.song-item.new-song .song-meta b {
  color: rgb(255, 77, 109);
  text-shadow: 0 0 8px rgba(255,45,85,0.55);
}

.song-item .song-meta b {
  color: rgba(255, 255, 255, 0.72);
}

.song-item.new-song .song-meta {
  color: var(--text);
}

#lastTables > div{
  display:flex;
  align-items:center;
  gap:12px;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.035);
  border: none;

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.045);
}

#lastTables > div span:first-child{
  min-width: 26px;
  height: 26px;
  border-radius: 999px;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  font-size: 11px;
  font-weight: 900;

  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.66);
  border: 1px solid rgba(255,45,85,0.42);

  flex: 0 0 auto;
}

#lastTables > div span:nth-child(2){
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255,77,109,0.9);
  letter-spacing: .3px;
}

#lastTables > div span:last-child{
  margin-left:auto;
  font-size: 13px;
  font-weight: 900;
  color: rgba(255,255,255,0.95);
  letter-spacing: .2px;
}

#lastTables > div:first-child{
  background: rgba(255,45,85,0.10);
  box-shadow: inset 0 0 0 1px rgba(255,45,85,0.18);
}

.table-card.next-up{
  border-color: rgba(255,45,85,.18) !important;
  box-shadow:
    0 18px 50px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,0.025) !important;
  position: relative;
}

.table-card.next-up::after{
  content: none !important;
}

.status.ultima-new{
  animation: ultimaBlink 0.9s ease-in-out infinite;
}

@keyframes ultimaBlink{
  0%   { opacity: .55; }
  50%  { opacity: 1; }
  100% { opacity: .55; }
}

.table-card.recien-card{
  animation: recienBorder 0.9s ease-in-out infinite;
}

@keyframes recienBorder{
  0%{
    box-shadow: 0 0 0 2px rgba(255,45,85,.05);
    border-color: rgba(255,45,85,.25);
  }
  50%{
    box-shadow: 0 0 0 2px rgba(255,45,85,.22);
    border-color: rgba(255,45,85,.55);
  }
  100%{
    box-shadow: 0 0 0 2px rgba(255,45,85,.05);
    border-color: rgba(255,45,85,.25);
  }
}

.icon-btn{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 224, 164, 0.95);
  background: rgba(0, 224, 164, 0.36);
  color: rgba(230,255,248,0.98);
  font-weight: 900;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .08s ease, filter .12s ease, box-shadow .12s ease;
}

.icon-btn:hover{
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 0 12px rgba(0,224,164,.25);
}

.icon-btn:active{
  transform: translateY(0);
}

.icon-btn:disabled{
  opacity: .6;
  cursor: not-allowed;
}

.icon-btn.confirm{
  border-color: rgba(255, 77, 109, 0.95);
  background: rgba(255, 45, 85, 0.28);
  color: rgba(255,255,255,0.98);
  animation: pulseConfirmYellow 1s infinite;
}

@keyframes pulseConfirmYellow{
  0%   { box-shadow: 0 0 0 0 rgba(255,45,85,.45); }
  70%  { box-shadow: 0 0 0 6px rgba(255,45,85,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,45,85,0); }
}

.orders-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display:inline-block;
  margin-right: 8px;
  animation: pulseOrders 1.2s ease-in-out infinite;
  opacity: .85;
}

.orders-dot.open{
  background: var(--ok);
  box-shadow: 0 0 8px rgba(0,224,164,.45);
}

.orders-dot.closed{
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255,77,109,.45);
}

@keyframes pulseOrders{
  0%   { opacity: .35; transform: scale(.92); }
  50%  { opacity: 1;   transform: scale(1);   }
  100% { opacity: .35; transform: scale(.92); }
}

.top-actions .btn{
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.top-actions .badge{
  border: none !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}

.requests-area .h2,
.panel .h2{
  position: relative;
  padding-left: 14px;
  font-size: 16px;
  font-weight: 900;
  color: rgba(255,77,109,0.92);
  letter-spacing: .8px;
  text-transform: uppercase;
}

.requests-area .h2::before,
.panel .h2::before{
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 70%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4d6d, #781326);
}

.orders-strip{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;

  height: 40px;
  display: flex;
  align-items: center;

  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);

  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.55);
}

.orders-strip-inner{
  width: 100%;
  margin: 0;
  padding: 0 14px;

  display:flex;
  align-items:center;
  gap: 10px;
  justify-content: flex-start;
}

.orders-strip #ordersLabel{
  font-weight: 900;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}

.orders-strip.open{
  border-top-color: rgba(0,224,164,0.22);
}

.orders-strip.closed{
  border-top-color: rgba(255,77,109,0.22);
}

@keyframes softIn{
  from{
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    filter: blur(1px);
  }
  to{
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.table-card.flash-new{
  animation: softIn 280ms ease-out both, pulseBlue 3.5s ease-in-out;
}

@keyframes softLine{
  from{ opacity: 0; transform: translateY(6px); }
  to{ opacity: 1; transform: translateY(0); }
}

@keyframes microPop{
  0%   { transform: scale(0.995); }
  60%  { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.song-item.new-song{
  animation: softLine 220ms ease-out both, microPop 260ms ease-out both;
}

body:not(.dj) .form{
  margin-top: 16px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255,45,85,0.26);
  border-radius: 16px;
  padding: 16px;
  background: rgba(0,0,0,0.64);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
}

body:not(.dj) label{
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  display: block;
  margin-bottom: 6px;
}

body:not(.dj) input{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,45,85,0.32);
  background: rgba(0,0,0,0.42);
  color: #fff;
  outline: none;
}

body:not(.dj) input:focus{
  border-color: rgba(255,45,85,0.75);
  box-shadow: 0 0 0 3px rgba(255,45,85,0.10);
}

.dj .panel{
  border: 1px solid rgba(255,45,85,0.12);
  background: rgba(0,0,0,0.58);

  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.02),
    0 10px 26px rgba(0,0,0,0.45);
}

.dj .table-card,
.dj .table-card.next-up{
  border-color: rgba(255,45,85,0.18) !important;
  box-shadow:
    0 18px 50px rgba(0,0,0,.48),
    inset 0 0 0 1px rgba(255,255,255,0.025) !important;
}

.song-client{
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .6px;
  margin-bottom: 6px;

  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
}

.song-item.new-song .song-client{
  color: rgb(255,77,109);
  text-shadow: 0 0 8px rgba(255,45,85,0.45);
}

.card-head::after{
  content:"";
  display:block;
  width:40px;
  height:3px;
  background: linear-gradient(90deg,var(--accent1),transparent);
  margin-top:12px;
  border-radius:3px;
}

.admin-grid .panel{
  min-height: 120px;
  padding: 22px 14px;
}

:root{
  --gold-1: rgba(255,77,109,.85);
  --gold-2: rgba(255,45,85,.32);
  --btn-bg: rgba(0,0,0,.35);
  --btn-bg2: rgba(0,0,0,.58);
}

.btn, .hist-btn, .closeX{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding: 10px 14px;
  border-radius: 14px;

  border: 1.5px solid var(--gold-2);
  background: linear-gradient(180deg, var(--btn-bg), var(--btn-bg2));
  color: var(--text);

  font-weight: 900;
  letter-spacing: .3px;

  box-shadow:
    0 10px 24px rgba(0,0,0,.45),
    0 0 0 1px rgba(255,255,255,.05) inset;

  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.btn:hover, .hist-btn:hover, .closeX:hover{
  filter: brightness(1.08);
  border-color: rgba(255,45,85,.55);
  box-shadow:
    0 14px 32px rgba(0,0,0,.55),
    0 0 16px rgba(255,45,85,.14),
    0 0 0 1px rgba(255,255,255,.06) inset;
}

.btn:active, .hist-btn:active, .closeX:active{
  transform: translateY(1px);
  filter: brightness(0.98);
}

.btn-primary{
  border-color: rgba(255,45,85,.75);
  box-shadow:
    0 16px 40px rgba(0,0,0,.60),
    0 0 22px rgba(255,45,85,.20),
    0 0 0 1px rgba(255,255,255,.06) inset;
}

.btn-ghost{
  background: rgba(0,0,0,.28);
  border-color: rgba(255,45,85,.35);
}

.select{
  border: 1.5px solid rgba(255,45,85,.28) !important;
  background: linear-gradient(180deg, rgba(0,0,0,.32), rgba(0,0,0,.55)) !important;
  color: var(--text);
  box-shadow: 0 10px 22px rgba(0,0,0,.40);
}

.select:focus{
  outline: none;
  border-color: rgba(255,45,85,.65) !important;
  box-shadow: 0 0 0 3px rgba(255,45,85,.10), 0 14px 28px rgba(0,0,0,.55);
}

.hist-btn{
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(0,0,0,.32) !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04) !important;
}

.hist-btn:hover{
  border-color: rgba(255,45,85,.55) !important;
  box-shadow:
    0 14px 32px rgba(0,0,0,.55),
    0 0 14px rgba(255,45,85,.12),
    inset 0 0 0 1px rgba(255,255,255,.06) !important;
}



.logo-badge{
  padding:0;
  min-width:auto;
  height:auto;

  display:flex;
  align-items:center;
  justify-content:center;

  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
}

.logo-badge img{
  height: 90px;
  width:auto;

  object-fit:contain;

  filter:
    drop-shadow(0 0 12px rgba(255,255,255,.06));
}