/* EME Tickets — tienda pública. Brandbook v1.0: Ink + azules EME, Inter / Inter Tight.
   Firma del diseño: las cards son BOLETOS (talón perforado + bloque de fecha),
   y el hero es un escenario construido en CSS puro (haces de luz, sin fotos). */

@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter-400.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('fonts/InterTight-800.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0B1220;
  --ink-2: #0E1830;          /* tinta con más azul, para capas */
  --blue: #006DBE;
  --blue-dark: #004591;
  --white: #FFFFFF;
  --dim: rgba(255, 255, 255, .62);
  --dim-2: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .09);
  --grad: linear-gradient(90deg, #004591 0%, #006DBE 100%);
  --r-sm: 8px; --r-md: 12px; --r-lg: 20px;
  --font: 'Inter', system-ui, sans-serif;
  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ink);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ---------- header ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 3;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 5vw;
}
.top .brand img { height: 46px; display: block; filter: drop-shadow(0 2px 10px rgba(0, 109, 190, .45)); }
.top a.panel-link {
  color: var(--dim); text-decoration: none; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--line); padding: .45rem .9rem; border-radius: 999px;
  transition: color .15s, border-color .15s;
}
.top a.panel-link:hover { color: var(--white); border-color: var(--blue); }

/* ---------- hero: el escenario ---------- */
.stage {
  position: relative; overflow: hidden;
  padding: clamp(7rem, 16vh, 10rem) 5vw clamp(3rem, 7vh, 5rem);
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(0, 109, 190, .38), transparent 60%),
    var(--ink);
}
/* haces de luz */
.stage::before {
  content: ''; position: absolute; inset: -20% -10%; pointer-events: none;
  background:
    conic-gradient(from 168deg at 18% -8%, transparent 0deg, rgba(0, 109, 190, .17) 7deg, transparent 15deg),
    conic-gradient(from 178deg at 46% -10%, transparent 0deg, rgba(64, 156, 255, .13) 6deg, transparent 13deg),
    conic-gradient(from 190deg at 74% -8%, transparent 0deg, rgba(0, 109, 190, .19) 8deg, transparent 16deg),
    conic-gradient(from 200deg at 95% -6%, transparent 0deg, rgba(64, 156, 255, .10) 5deg, transparent 11deg);
  animation: beams 1.4s ease-out both;
}
/* confeti / polvo de escenario */
.stage::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,.55) 1px, transparent 1.5px),
    radial-gradient(rgba(120,190,255,.4) 1px, transparent 1.5px);
  background-size: 190px 170px, 230px 210px;
  background-position: 20px 40px, 120px 90px;
  opacity: .35;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 85%);
}
@keyframes beams { from { opacity: 0; transform: translateY(-2.5%); } to { opacity: 1; transform: none; } }

.stage h1 {
  position: relative; z-index: 2;
  font-family: var(--display);
  font-size: clamp(2.7rem, 7.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .98;
  margin: 0;
  max-width: 12ch;
  animation: rise .7s .15s cubic-bezier(.2, .7, .3, 1) both;
}
.stage h1 em { font-style: normal; color: var(--blue); }
.stage h1 em::after { content: '.'; color: var(--white); }
.stage p.sub {
  position: relative; z-index: 2;
  color: var(--dim); max-width: 44ch; margin: 1.1rem 0 0;
  animation: rise .7s .28s cubic-bezier(.2, .7, .3, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- cartelera ---------- */
.bill { padding: 0 5vw 4.5rem; }
.bill .label {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0 1.4rem;
  color: var(--dim-2); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.bill .label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(390px, 100%), 1fr));
  gap: 1.1rem;
}

/* ---------- la card-boleto ---------- */
.ticket {
  position: relative;
  display: grid; grid-template-columns: 96px 1fr;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.028));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none; color: inherit;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.ticket:hover, .ticket:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(0, 109, 190, .55);
  box-shadow: 0 14px 42px -14px rgba(0, 109, 190, .5);
  outline: none;
}
/* talón: la fecha ES el arte */
.stub {
  position: relative;
  background: linear-gradient(165deg, var(--blue-dark), var(--blue));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .1rem; padding: 1.1rem 0 1.5rem;
  border-right: 2px dashed rgba(255, 255, 255, .35);
}
.stub .dow { font-size: .68rem; font-weight: 600; letter-spacing: .18em; opacity: .85; }
.stub .day { font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1; }
.stub .mon { font-size: .8rem; font-weight: 700; letter-spacing: .14em; }
.stub .yr  { font-size: .66rem; opacity: .7; }
/* codigo de barras del talón */
.stub::after {
  content: ''; position: absolute; bottom: .55rem; left: 22%; right: 22%; height: 9px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.75) 0 1.5px, transparent 1.5px 4px);
  opacity: .5; border-radius: 1px;
}
/* perforaciones (muescas del boleto) */
.ticket::before, .ticket::after {
  content: ''; position: absolute; left: 96px; width: 16px; height: 16px;
  transform: translateX(-50%); border-radius: 50%; background: var(--ink); z-index: 2;
  border: 1px solid var(--line);
}
.ticket::before { top: -9px; }
.ticket::after { bottom: -9px; }

.ticket .body { padding: 1.05rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ticket .cat {
  color: var(--blue); font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
}
.ticket h3 {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: 1.28rem; letter-spacing: -.015em; line-height: 1.12;
}
.ticket .where { color: var(--dim); font-size: .85rem; }
.ticket .row {
  margin-top: auto; padding-top: .6rem;
  display: flex; align-items: baseline; justify-content: space-between; gap: .8rem;
}
.ticket .price { font-weight: 800; font-size: 1.02rem; }
.ticket .price .cur { color: var(--dim-2); font-size: .72rem; font-weight: 600; margin-left: .2rem; }
.ticket .free { color: var(--dim); font-size: .74rem; }
.ticket .go { color: var(--blue); font-size: .82rem; font-weight: 700; white-space: nowrap; }

.empty { padding: 4rem 5vw; color: var(--dim); text-align: center; }

/* ---------- ficha de evento ---------- */
.stage.compact { padding-top: clamp(6.5rem, 13vh, 8.5rem); padding-bottom: 2.2rem; }
.stage .eyebrow {
  position: relative; z-index: 2;
  color: var(--blue); font-size: .74rem; font-weight: 700;
  letter-spacing: .24em; text-transform: uppercase;
  animation: rise .6s .05s both;
}
.stage h1.event-name { max-width: 20ch; font-size: clamp(2.1rem, 5.5vw, 3.6rem); }
.stage .where-line {
  position: relative; z-index: 2; color: var(--dim); margin-top: .8rem;
  animation: rise .7s .25s both;
}

.sessions { max-width: 880px; margin: 0 auto; padding: 1rem 5vw 4rem; }
.session-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border: 1px solid var(--line); border-radius: var(--r-lg);
  margin-bottom: 1rem; overflow: hidden;
}
.session-card .stub { padding: 1rem 0 1.4rem; }
.session-card .stub .day { font-size: 1.7rem; }
.session-card .content { padding: 1rem 1.3rem 1.1rem; }
.session-card h3 { margin: 0 0 .2rem; font-family: var(--display); font-weight: 800; font-size: 1.1rem; }
.session-card .when { color: var(--dim); font-size: .84rem; margin-bottom: .55rem; }
.tier {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-top: 1px solid var(--line);
}
.tier .tname { min-width: 0; }
.tier .tprice { font-weight: 800; white-space: nowrap; margin-left: auto; }
.tier .tprice .cur { color: var(--dim-2); font-size: .7rem; font-weight: 600; }
.cta {
  background: var(--grad); border: 0; color: var(--white);
  font-family: var(--font); font-weight: 700; font-size: .84rem;
  padding: .55rem 1.05rem; border-radius: var(--r-md);
  opacity: .45; cursor: not-allowed; white-space: nowrap;
}
.soon-note { color: var(--dim-2); font-size: .76rem; text-align: center; margin-top: 1.4rem; }
a.back { color: var(--dim); text-decoration: none; font-size: .8rem; }
a.back:hover { color: var(--white); }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 5vw;
  display: flex; gap: 2.2rem; flex-wrap: wrap; align-items: center;
  color: var(--dim); font-size: .8rem;
}
footer .fine { margin-left: auto; color: var(--dim-2); }

/* ---------- accesibilidad / responsive ---------- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .stage::before, .stage h1, .stage p.sub, .stage .eyebrow, .stage .where-line { animation: none; }
  .ticket, .ticket:hover { transition: none; transform: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
  .top .brand img { height: 38px; }
  .grid { grid-template-columns: 1fr; }
  footer { gap: 1rem; flex-direction: column; align-items: flex-start; }
  footer .fine { margin-left: 0; }
}

/* ================= capa "gaming": escenario vivo + boletos coleccionables ================= */

/* canvas de polvo (inyectado por stage.js) */
.stage .dust { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* los haces siguen al puntero */
.stage::before { transform: translateX(var(--beam-shift, 0px)); transition: transform .6s cubic-bezier(.2,.7,.3,1); }

/* tilt 3D: la card es una carta coleccionable */
.grid, .sessions { perspective: 1100px; }
.ticket, .session-card {
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}
.ticket.tilting {
  transition: border-color .18s ease, box-shadow .18s ease;
  transform: translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry)) scale(1.015);
}
.session-card.tilting { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* brillo holografico que barre la superficie */
.glare {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  border-radius: inherit; opacity: 0; transition: opacity .25s;
  background:
    radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%),
      rgba(120, 190, 255, .16), rgba(255, 255, 255, .05) 35%, transparent 60%);
  mix-blend-mode: screen;
}
.tilting .glare { opacity: 1; }

/* revelado escalonado */
.will-reveal { opacity: 0; transform: translateY(18px); }
.revealed {
  opacity: 1; transform: translateY(0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: opacity .55s cubic-bezier(.2,.7,.3,1) var(--reveal-delay, 0ms),
              transform .55s cubic-bezier(.2,.7,.3,1) var(--reveal-delay, 0ms);
}

/* micro-pulido: precio sin quiebre feo y logo con mas aire */
.ticket .row { flex-wrap: wrap; row-gap: .15rem; }
.ticket .free { display: block; }
.top .brand img { height: 54px; }
@media (max-width: 560px) { .top .brand img { height: 42px; } }

@media (prefers-reduced-motion: reduce) {
  .stage .dust { display: none; }
  .will-reveal { opacity: 1; transform: none; }
  .ticket.tilting, .session-card.tilting { transform: none; }
  .glare { display: none; }
}

/* ================= arte del evento (póster con overlay, brandbook §6) ================= */

/* card con póster: la imagen es el cuerpo, el texto respira sobre un overlay 45–88% */
.ticket.with-art .body {
  background:
    linear-gradient(180deg, rgba(11, 18, 32, .45), rgba(11, 18, 32, .88) 72%),
    var(--poster) center / cover no-repeat;
}
.ticket.with-art h3 { text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.ticket.with-art { min-height: 172px; }

/* hero de la ficha con póster: overlay + los haces encima */
.stage.has-poster {
  background:
    radial-gradient(ellipse 90% 55% at 50% 118%, rgba(0, 109, 190, .30), transparent 60%),
    linear-gradient(180deg, rgba(11, 18, 32, .62), rgba(11, 18, 32, .93)),
    var(--poster) center / cover no-repeat,
    var(--ink);
}

/* descripción */
.about { margin-bottom: 1.6rem; }
.about .label {
  display: flex; align-items: center; gap: 1rem; margin: 0 0 .7rem;
  color: var(--dim-2); font-size: .74rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
}
.about .label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.about p { color: var(--dim); line-height: 1.65; margin: 0; max-width: 68ch; }

/* ================= compra (E2) ================= */
.buyrow { display: flex; gap: .45rem; align-items: center; }
/* stepper de cantidad: adios select nativo blanco */
.stepper { display: inline-flex; align-items: center; gap: .1rem;
           background: rgba(255,255,255,.06); border: 1px solid var(--line);
           border-radius: 999px; padding: .18rem; }
.st-btn { width: 30px; height: 30px; border: 0; border-radius: 50%; cursor: pointer;
          background: transparent; color: var(--dim); font-size: 1.05rem; font-weight: 700;
          line-height: 1; transition: background .15s, color .15s, transform .1s; }
.st-btn:hover { background: var(--blue); color: var(--white); }
.st-btn:active { transform: scale(.92); }
.st-num { min-width: 26px; text-align: center; font-weight: 800;
          font-variant-numeric: tabular-nums; font-size: .95rem; }
.cta.live { opacity: 1; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.cta.live:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -6px rgba(0,109,190,.6); }
.cta-solid { background: var(--grad); color: var(--white); text-decoration: none; font-weight: 700;
             padding: .6rem 1.2rem; border-radius: var(--r-md); white-space: nowrap; }
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 1.1rem; z-index: 9;
           display: flex; gap: 1rem; align-items: center;
           background: rgba(11, 18, 32, .92); border: 1px solid rgba(0,109,190,.5);
           border-radius: 999px; padding: .55rem .6rem .55rem 1.2rem;
           box-shadow: 0 12px 40px -10px rgba(0,109,190,.55); backdrop-filter: blur(8px);
           animation: barIn .4s cubic-bezier(.2,.7,.3,1) both; }
@keyframes barIn {
  from { opacity: 0; transform: translateX(-50%) translateY(18px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
/* el display:flex de arriba pisaba el atributo hidden del HTML; esta regla
   restaura el contrato: hidden = invisible, siempre */
.cartbar[hidden] { display: none !important; }
.cart-wrap { max-width: 660px; margin: 0 auto; padding: 1.5rem 5vw 4rem; }
.cart-line { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0;
             border-bottom: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.15rem;
              padding: 1rem 0; }
.countdown { color: var(--dim); font-size: .8rem; text-align: center; margin: .6rem 0 1.2rem; }
.countdown b { color: var(--blue); font-variant-numeric: tabular-nums; }
.form-buyer { display: flex; flex-direction: column; gap: .8rem; }
.form-buyer label { display: flex; flex-direction: column; gap: .3rem; font-size: var(--eme-text-caption, .8rem); color: var(--dim); }
.form-buyer input { padding: .7rem .9rem; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.15);
                    background: rgba(255,255,255,.06); color: var(--white); font: inherit; }
.btn-primary { background: var(--grad); border: 0; color: var(--white); font-weight: 700; font-size: 1rem;
               padding: .85rem; border-radius: var(--r-md); cursor: pointer; width: 100%; margin-top: .4rem; }
.empty-cart { text-align: center; color: var(--dim); padding: 3rem 0; }
.big-check { font-size: 3rem; }

/* ================= timer flotante del apartado ================= */
.hold-timer {
  position: fixed; top: 5.4rem; right: 5vw; z-index: 9;
  width: 104px; height: 104px;
  filter: drop-shadow(0 10px 30px rgba(0, 109, 190, .45));
  animation: rise .5s cubic-bezier(.2,.7,.3,1) both;
}
.hold-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ht-track, .ht-ring { fill: rgba(11, 18, 32, .88); stroke-width: 5; }
.ht-track { stroke: rgba(255, 255, 255, .12); }
.ht-ring { stroke: var(--blue); stroke-linecap: round; fill: none;
           transition: stroke-dashoffset 1s linear, stroke .4s; }
.ht-inner { position: absolute; inset: 0; display: flex; flex-direction: column;
            align-items: center; justify-content: center; gap: .05rem; }
.ht-num { font-family: var(--display); font-weight: 800; font-size: 1.5rem;
          font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.ht-label { font-size: .58rem; font-weight: 600; letter-spacing: .18em;
            text-transform: uppercase; color: var(--dim); }
.hold-timer.warn .ht-ring { stroke: #F59E0B; }
.hold-timer.warn .ht-num { color: #F59E0B; }
.hold-timer.danger .ht-ring { stroke: #DC2626; }
.hold-timer.danger .ht-num { color: #DC2626; }
.hold-timer.danger { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
@media (max-width: 560px) {
  .hold-timer { width: 84px; height: 84px; top: auto; bottom: 1rem; right: 4vw; }
  .ht-num { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hold-timer.danger { animation: none; }
  .ht-ring { transition: none; }
}

/* cancelar / quitar del carrito */
.line-right { display: flex; align-items: center; gap: .7rem; }
.line-remove { background: none; border: 1px solid var(--line); color: var(--dim);
               width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
               font-size: .7rem; line-height: 1; transition: color .15s, border-color .15s; }
.line-remove:hover { color: #DC2626; border-color: #DC2626; }
.cart-cancel { text-align: center; margin-top: 1.1rem; }
.cart-cancel a { color: var(--dim-2); font-size: .8rem; text-decoration: underline; }
.cart-cancel a:hover { color: var(--dim); }

/* boton cancelar: visible, rojo, pero sin robarle el trono a Continuar */
.btn-danger {
  width: 100%; margin-top: .9rem; padding: .8rem;
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  background: rgba(220, 38, 38, .08);
  border: 1px solid rgba(220, 38, 38, .55);
  color: #F87171; font: inherit; font-weight: 700; font-size: .92rem;
  border-radius: var(--r-md); cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .12s, box-shadow .18s;
}
.btn-danger:hover, .btn-danger:focus-visible {
  background: #DC2626; border-color: #DC2626; color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(220, 38, 38, .6);
}
.btn-danger:hover .trash { animation: wiggle .45s ease-in-out; }
.btn-danger:active { transform: translateY(0); }
@keyframes wiggle {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-12deg); }
  60% { transform: rotate(9deg); }
}
@media (prefers-reduced-motion: reduce) { .btn-danger:hover .trash { animation: none; } }

/* ================= EME UI: modales y toasts ================= */
.eme-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 5vw;
  background: rgba(4, 8, 18, .6); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .22s ease;
}
.eme-overlay.on { opacity: 1; }
.eme-modal {
  width: min(92vw, 400px);
  background: linear-gradient(160deg, #101b33, #0B1220);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  padding: 1.8rem 1.6rem 1.4rem;
  text-align: center;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 40px -18px rgba(0, 109, 190, .5);
  transform: translateY(14px) scale(.95);
  transition: transform .26s cubic-bezier(.2, .9, .3, 1.2);
}
.eme-overlay.on .eme-modal { transform: none; }
.eme-m-icon {
  width: 62px; height: 62px; margin: 0 auto .9rem;
  display: grid; place-items: center; font-size: 1.7rem;
  border-radius: 50%;
  background: rgba(0, 109, 190, .16); border: 1px solid rgba(0, 109, 190, .45);
}
.eme-m-icon.danger { background: rgba(220, 38, 38, .14); border-color: rgba(220, 38, 38, .5); }
.eme-modal h3 { margin: 0 0 .4rem; font-family: var(--display); font-weight: 800;
                font-size: 1.25rem; letter-spacing: -.01em; }
.eme-modal p { margin: 0; color: var(--dim); font-size: .92rem; line-height: 1.55; }
.eme-m-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.eme-m-actions button {
  flex: 1; padding: .75rem .5rem; font: inherit; font-weight: 700; font-size: .9rem;
  border-radius: var(--r-md); cursor: pointer; transition: transform .12s, box-shadow .18s, background .18s;
}
.eme-m-cancel { background: rgba(255, 255, 255, .06); border: 1px solid var(--line); color: var(--dim); }
.eme-m-cancel:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.eme-m-confirm { background: var(--grad); border: 0; color: var(--white); }
.eme-m-confirm.danger { background: linear-gradient(90deg, #B91C1C, #DC2626); }
.eme-m-confirm:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -8px rgba(0, 109, 190, .7); }
.eme-m-confirm.danger:hover { box-shadow: 0 8px 22px -8px rgba(220, 38, 38, .7); }

.eme-toast {
  position: fixed; left: 50%; bottom: 1.4rem; z-index: 60;
  transform: translateX(-50%) translateY(16px);
  display: flex; align-items: center; gap: .6rem;
  background: rgba(11, 18, 32, .95); border: 1px solid var(--line);
  border-radius: 999px; padding: .7rem 1.3rem;
  font-size: .9rem; max-width: min(92vw, 480px);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; transition: opacity .3s, transform .3s cubic-bezier(.2, .8, .3, 1.1);
  backdrop-filter: blur(8px);
}
.eme-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.eme-toast.ok { border-color: rgba(22, 163, 74, .55); }
.eme-toast.err { border-color: rgba(220, 38, 38, .55); }
.eme-toast.info { border-color: rgba(0, 109, 190, .55); }
@media (prefers-reduced-motion: reduce) {
  .eme-overlay, .eme-modal, .eme-toast { transition: none; }
}
