/* ============================================================
   ATM PRODUCTION$ — Media Platform Design System
   Deep cinema dark + neon cyan/violet/magenta brand
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --cyan:       #00CFFF;
  --violet:     #9B3FE8;
  --magenta:    #FF4FD8;
  /* LUXURY CANVAS — velvety obsidian black */
  --bg-0:       #030305;
  --bg-1:       #07070a;
  --bg-2:       #0d0d11;
  --panel:      rgba(13, 13, 17, 0.82);
  --panel-edge: rgba(200, 208, 220, 0.12);
  /* LUXURY TYPOGRAPHY — matte silver / pearl white */
  --text:       #F5F5F7;
  --text-dim:   #8a909c;
  --text-mid:   #c4cad4;
  /* chrome + ambient focus tokens */
  --chrome:        #F5F5F7;
  --border-chrome: rgba(200, 208, 220, 0.28);
  --focus-chrome:  rgba(214, 222, 232, 0.85);
  --focus-cyan:    rgba(0, 207, 255, 0.30);
  --good:       #2EE6A8;
  --warn:       #FFC24D;
  --bad:        #FF5470;
  --live:       #FF2D55;
  --grad:       linear-gradient(100deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --grad-soft:  linear-gradient(100deg, rgba(0,207,255,.3), rgba(155,63,232,.3), rgba(255,79,216,.3));
  --radius:     12px;
  --font-display: 'Orbitron', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- starfield ---- */
#starfield {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
}

/* ---- vignette edge darkening ---- */
.vignette::before {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 110% at 50% 50%, transparent 40%, rgba(1,1,8,.7) 100%);
}

/* ---- typography ---- */
.display  { font-family: var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
/* LUXURY FIX: header titles are clean matte silver / pearl white — no neon fill or glow */
.neon-text {
  background: none;
  -webkit-background-clip: border-box; background-clip: border-box;
  -webkit-text-fill-color: var(--chrome); color: var(--chrome);
  filter: none;
}
.eyebrow {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .46em;
  text-transform: uppercase; color: var(--text-dim);
}

/* ---- LUXURY D-PAD FOCUS: 1px polished chrome frame + slow breathing cyan ambient ---- */
@keyframes chrome-breathe {
  0%, 100% { box-shadow: 0 0 0 1px var(--focus-chrome), 0 0 14px rgba(0,207,255,.14), 0 22px 50px rgba(0,0,0,.7); }
  50%      { box-shadow: 0 0 0 1px var(--focus-chrome), 0 0 30px var(--focus-cyan),   0 22px 50px rgba(0,0,0,.7); }
}
.card:focus-visible,
.card.is-focused,
.m-card:focus-visible,
.m-card.is-focused,
.live-card:focus-visible,
.live-card.is-focused,
.focusable:focus-visible,
.focusable.is-focused {
  outline: none;
  border-color: var(--focus-chrome);
  animation: chrome-breathe 3.4s ease-in-out infinite;
  z-index: 6;
}
@media (prefers-reduced-motion: reduce) {
  .card:focus-visible, .card.is-focused,
  .m-card:focus-visible, .m-card.is-focused,
  .live-card:focus-visible, .live-card.is-focused,
  .focusable:focus-visible, .focusable.is-focused {
    animation: none;
    box-shadow: 0 0 0 1px var(--focus-chrome), 0 0 18px var(--focus-cyan), 0 22px 50px rgba(0,0,0,.7);
  }
}

/* ---- ATM live logo ---- */
.atmlogo {
  position: relative; width: var(--s); height: var(--s);
  perspective: 900px; flex: none; isolation: isolate;
}
.atmlogo-float {
  position: absolute; inset: 0; transform-style: preserve-3d;
  animation: atm-bob 7s ease-in-out infinite, atm-ignite 1.5s cubic-bezier(.2,.8,.2,1) both;
}
.atmlogo-tilt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transition: transform .25s cubic-bezier(.2,.7,.2,1); will-change: transform;
}
.atmlogo-layer { position: absolute; inset: 0; background: var(--logo-soft) center/contain no-repeat; }
.atmlogo-halo {
  filter: blur(calc(var(--s) * .11)) saturate(1.6) brightness(1.35);
  transform: translateZ(-70px) scale(1.18); opacity: .5;
  animation: atm-halo 5.6s ease-in-out infinite;
}
.atmlogo-glow {
  filter: blur(calc(var(--s) * .035)) saturate(1.5) brightness(1.25);
  transform: translateZ(-32px) scale(1.05); opacity: .8;
  animation: atm-breathe 4.4s ease-in-out infinite;
}
.atmlogo-base {
  width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0;
  transform: translateZ(0);
  filter: drop-shadow(0 calc(var(--s)*.012) calc(var(--s)*.03) rgba(0,0,0,.55));
}
.atmlogo-sweep {
  -webkit-mask: var(--logo-soft) center/contain no-repeat; mask: var(--logo-soft) center/contain no-repeat;
  background: linear-gradient(115deg,
    transparent 38%, rgba(180,235,255,.0) 44%,
    rgba(220,245,255,.9) 50%, rgba(255,255,255,.95) 51%,
    rgba(220,245,255,.0) 58%, transparent 64%);
  background-size: 260% 260%; background-position: 200% 0;
  mix-blend-mode: screen; transform: translateZ(18px); opacity: 0;
  animation: atm-sweep 7.5s ease-in-out infinite;
}
.atmlogo-spark { position: absolute; inset: -8%; z-index: 1; pointer-events: none; transform: translateZ(8px); }

@keyframes atm-bob     { 0%,100% { transform: translateY(0) } 50% { transform: translateY(calc(var(--s) * -.028)) } }
@keyframes atm-halo    { 0%,100% { opacity: .38; transform: translateZ(-70px) scale(1.14) } 50% { opacity: .62; transform: translateZ(-70px) scale(1.22) } }
@keyframes atm-breathe { 0%,100% { opacity: .6; transform: translateZ(-32px) scale(1.03) } 50% { opacity: .95; transform: translateZ(-32px) scale(1.08) } }
@keyframes atm-sweep {
  0%  { background-position: 200% 0; opacity: 0 }
  6%  { opacity: .95 }
  22% { background-position: -60% 0; opacity: .95 }
  30%, 100% { background-position: -60% 0; opacity: 0 }
}
@keyframes atm-ignite {
  0%   { opacity: 0; filter: brightness(2.6) saturate(.2) }
  7%   { opacity: 1 }
  11%  { opacity: .15 }
  16%  { opacity: 1 }
  21%  { opacity: .45 }
  27%  { opacity: 1; filter: brightness(1.7) saturate(1.1) }
  100% { opacity: 1; filter: brightness(1) saturate(1) }
}
@media (prefers-reduced-motion: reduce) {
  .atmlogo-float, .atmlogo-halo, .atmlogo-glow, .atmlogo-sweep { animation: none !important; }
  .atmlogo-sweep { opacity: 0; } .atmlogo-halo { opacity: .45; }
}

/* ---- panels / glass ---- */
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 70px rgba(0,0,0,.6);
}
.panel-glow { position: relative; }
.panel-glow::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .45; pointer-events: none;
}

/* ---- buttons ---- */
.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid var(--panel-edge); border-radius: 10px;
  background: rgba(255,255,255,.05); color: var(--text);
  padding: 12px 22px; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
  user-select: none; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.btn:hover  { transform: translateY(-1px); background: rgba(255,255,255,.1); box-shadow: 0 8px 28px rgba(0,0,0,.45); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  background: var(--grad); border: none; color: #040418;
  box-shadow: 0 6px 30px rgba(155,63,232,.4), 0 0 16px rgba(0,207,255,.3);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 10px 40px rgba(155,63,232,.45); }
.btn-ghost { background: rgba(255,255,255,.0); border-color: rgba(142,155,192,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-sm { padding: 8px 16px; font-size: 11px; border-radius: 8px; }

/* ---- toast ---- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 999; opacity: 0; pointer-events: none; transition: all .3s ease;
  background: rgba(10,10,32,.95); border: 1px solid var(--panel-edge); border-radius: 12px;
  padding: 13px 22px; font-size: 14px; backdrop-filter: blur(12px);
  box-shadow: 0 14px 44px rgba(0,0,0,.7);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---- scrollbars ---- */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.2); }
