/* ════════════════════════════════════════
   THE NOOK — styles.css
   ════════════════════════════════════════ */

:root {
  --bg:  #0b0c20;
  --bg2: #10122a;
  --g:   #00ff88;
  --b:   #00e5ff;
  --p:   #ff00ff;
  --y:   #ffee00;
  --r:   #ff3366;
  --o:   #ff8800;
  --adm: #b060ff;

  --gg:  rgba(0,255,136,.13);
  --bb:  rgba(0,229,255,.13);
  --pp:  rgba(255,0,255,.13);
  --aa:  rgba(176,96,255,.13);

  --sat: env(safe-area-inset-top,    0px);
  --sar: env(safe-area-inset-right,  0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --sal: env(safe-area-inset-left,   0px);

  /* JS will write --dvh; fallback to 1vh */
  --dvh: 1vh;
}

/* ── GLOBAL RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family: 'Press Start 2P', monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0; padding: 0;
  touch-action: manipulation;
  -webkit-user-select: none; user-select: none;
}

input, textarea { -webkit-user-select: text; user-select: text; }

/* scanline overlay — subtler */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0,0,0,.04) 0, rgba(0,0,0,.04) 1px,
    transparent 1px, transparent 2px
  );
  pointer-events: none; z-index: 9999;
}

/* vignette — reduced from .8 → .35 */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.35) 100%);
  pointer-events: none; z-index: 9998;
}

@keyframes flicker { 0%,100%{opacity:1} 94%{opacity:.98} 97%{opacity:1} }

/* ── PHONE SHELL ── */
.phone {
  width: 360px;
  height: calc(var(--dvh,1vh) * 100);
  min-height: 580px;
  max-height: calc(var(--dvh,1vh) * 100);
  background: var(--bg2);
  border: 3px solid var(--g);
  box-shadow:
    0 0 0 2px var(--bg),
    0 0 0 4px #001a0d,
    0 0 32px rgba(0,255,136,.35),
    0 0 70px rgba(0,255,136,.1),
    inset 0 0 40px rgba(0,255,136,.03);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: flicker 10s infinite;
  /* notch / status bar breathing room */
  padding-top: calc(var(--sat) + 8px);
}

.phone::before {
  content: '';
  position: absolute; inset: 7px;
  border: 1px solid rgba(0,255,136,.07);
  pointer-events: none; z-index: 0;
}

/* ── MOBILE: truly full-screen ── */
@media (max-width: 480px) {
  body { align-items: flex-start; padding: 0; background: var(--bg2); }
  .phone {
    width: 100%; max-width: 100%;
    height: calc(var(--dvh,1vh) * 100);
    min-height: calc(var(--dvh,1vh) * 100);
    border: none; box-shadow: none; border-radius: 0;
    animation: none;
    padding-top: calc(var(--sat) + 10px);
  }
  .phone::before { display: none; }
}

/* ── SCREENS ── */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  animation: pixIn .12s steps(3) forwards;
  position: relative; z-index: 1;
  /* consistent breathing room top + sides */
  padding: 18px 16px 0;
  overflow: hidden;
}
.screen.active { display: flex; }

@keyframes pixIn {
  0%   { opacity: 0; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── SCROLL AREAS ── */
.scroll {
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  padding-bottom: calc(10px + var(--sab));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.scroll::-webkit-scrollbar { width: 3px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(0,255,136,.2); }

/* ── CARDS ── */
.card {
  position: relative;
  background: var(--gg);
  border: 2px solid var(--g);
  box-shadow: 3px 3px 0 #001a0d;
  padding: 14px; margin-bottom: 9px;
}
.card::before, .card::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--g);
}
.card::before { top: -2px; left: -2px; }
.card::after  { bottom: -2px; right: -2px; }

.card-b {
  position: relative;
  background: var(--bb);
  border: 2px solid var(--b);
  box-shadow: 3px 3px 0 #001522;
  padding: 14px; margin-bottom: 9px;
}
.card-b::before, .card-b::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--b);
}
.card-b::before { top: -2px; left: -2px; }
.card-b::after  { bottom: -2px; right: -2px; }

.card-p {
  position: relative;
  background: var(--pp);
  border: 2px solid var(--p);
  box-shadow: 3px 3px 0 #220022;
  padding: 14px; margin-bottom: 9px;
}
.card-p::before, .card-p::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--p);
}
.card-p::before { top: -2px; left: -2px; }
.card-p::after  { bottom: -2px; right: -2px; }

.card-adm {
  position: relative;
  background: var(--aa);
  border: 2px solid var(--adm);
  box-shadow: 3px 3px 0 #1a0033;
  padding: 14px; margin-bottom: 9px;
}
.card-adm::before, .card-adm::after {
  content: ''; position: absolute;
  width: 6px; height: 6px; background: var(--adm);
}
.card-adm::before { top: -2px; left: -2px; }
.card-adm::after  { bottom: -2px; right: -2px; }

/* ── BUTTONS ── */
.btn {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px; letter-spacing: .03em;
  border: none; cursor: pointer;
  width: 100%; padding: 14px 10px;
  text-align: center;
  transition: transform .05s, box-shadow .05s;
  text-transform: uppercase;
  margin-bottom: 8px; line-height: 1.7;
  touch-action: manipulation;
}
.btn:active   { transform: translate(2px,2px) !important; box-shadow: none !important; }
.btn:disabled { cursor: not-allowed; opacity: .28; }

.btn-g   { background: var(--g);   color: #000; box-shadow: 3px 3px 0 #005522, 0 0 12px rgba(0,255,136,.45); }
.btn-g:not(:disabled):hover { box-shadow: 4px 4px 0 #005522, 0 0 22px rgba(0,255,136,.7); }

.btn-b   { background: var(--b);   color: #000; box-shadow: 3px 3px 0 #004455, 0 0 12px rgba(0,229,255,.45); }
.btn-b:not(:disabled):hover { box-shadow: 4px 4px 0 #004455, 0 0 22px rgba(0,229,255,.7); }

.btn-p   { background: var(--p);   color: #000; box-shadow: 3px 3px 0 #440044, 0 0 12px rgba(255,0,255,.45); }
.btn-p:not(:disabled):hover { box-shadow: 4px 4px 0 #440044, 0 0 22px rgba(255,0,255,.7); }

.btn-r   { background: var(--r);   color: #fff; box-shadow: 3px 3px 0 #440011, 0 0 12px rgba(255,51,102,.45); }
.btn-r:not(:disabled):hover { box-shadow: 4px 4px 0 #440011, 0 0 22px rgba(255,51,102,.7); }

.btn-adm { background: var(--adm); color: #000; box-shadow: 3px 3px 0 #220033, 0 0 12px rgba(176,96,255,.45); }
.btn-adm:not(:disabled):hover { box-shadow: 4px 4px 0 #220033, 0 0 22px rgba(176,96,255,.7); }

.btn-out {
  background: transparent; color: var(--g);
  border: 2px solid rgba(0,255,136,.45);
  box-shadow: 2px 2px 0 #001a0d;
  font-family: 'Press Start 2P', monospace; font-size: 8px;
  padding: 12px; cursor: pointer;
  width: 100%; text-align: center;
  margin-bottom: 8px; text-transform: uppercase;
  transition: background .1s; touch-action: manipulation;
}
.btn-out:hover { background: rgba(0,255,136,.08); }

.btn-sm {
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; border: none; cursor: pointer;
  padding: 9px 12px; text-transform: uppercase;
  letter-spacing: .03em;
  transition: transform .05s;
  touch-action: manipulation; min-height: 36px;
}
.btn-sm:active { transform: translate(1px,1px); }
.btn-sm-g   { background: var(--g);   color: #000; box-shadow: 2px 2px 0 #005522; }
.btn-sm-r   { background: var(--r);   color: #fff; box-shadow: 2px 2px 0 #440011; }
.btn-sm-adm { background: var(--adm); color: #000; box-shadow: 2px 2px 0 #220033; }

/* ── INPUTS ── */
input, select {
  background: rgba(0,0,0,.55);
  border: 2px solid var(--g);
  box-shadow: inset 0 0 6px rgba(0,255,136,.07), 2px 2px 0 #001a0d;
  color: var(--g);
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 13px 10px;
  width: 100%; outline: none;
  caret-color: var(--g);
}
input::placeholder { color: rgba(0,255,136,.22); font-size: 7px; }
input:focus, select:focus {
  box-shadow: inset 0 0 6px rgba(0,255,136,.12),
              2px 2px 0 #001a0d,
              0 0 10px rgba(0,255,136,.25);
}
select option { background: #0b0c20; color: var(--g); }

.inp-b { border-color: var(--b) !important; color: var(--b) !important; caret-color: var(--b); }
.inp-b::placeholder { color: rgba(0,229,255,.22) !important; }
.inp-b:focus {
  box-shadow: inset 0 0 6px rgba(0,229,255,.12),
              2px 2px 0 #001522,
              0 0 10px rgba(0,229,255,.25) !important;
}

/* iOS zoom prevention: inputs must be ≥16px on mobile */
@media (max-width: 480px) {
  input, select { font-size: 16px !important; padding: 15px 12px; }
  input::placeholder { font-size: 13px; }
}

/* ── TABLET ── */
@media (min-width: 481px) and (max-width: 1023px) {
  .phone { width: min(520px, 88vw); border-width: 3px; }
  .screen { padding: 22px 20px 0; }
  .nav-btn, .snav-btn, .anav-btn { font-size: 8px; padding: 13px 6px 16px; min-height: 56px; }
  .nav-btn .ni, .snav-btn .ni, .anav-btn .ni { font-size: 18px; margin-bottom: 4px; }
  .btn { font-size: 10px; padding: 16px 12px; }
  .btn-sm { font-size: 8px; padding: 10px 14px; }
  .lbl, .lbl-p, .lbl-g, .lbl-adm { font-size: 7px; }
  .card, .card-b, .card-p, .card-adm { padding: 16px; }
  input, select { font-size: 16px; padding: 14px 12px; }
}

@media (min-width: 481px) and (max-width: 1023px) and (orientation: landscape) {
  body { align-items: center; background: var(--bg); }
  .phone {
    width: min(560px, 58vw);
    height: calc(var(--dvh,1vh) * 100);
    max-height: calc(var(--dvh,1vh) * 100);
    border: 3px solid var(--g);
    box-shadow:
      0 0 0 2px var(--bg),
      0 0 0 4px #001a0d,
      0 0 32px rgba(0,255,136,.35),
      0 0 70px rgba(0,255,136,.1),
      inset 0 0 40px rgba(0,255,136,.03);
    animation: flicker 10s infinite;
  }
  .phone::before { display: block; }
  .nav-btn, .snav-btn, .anav-btn { padding: 9px 6px 12px; min-height: 48px; font-size: 7px; }
  .nav-btn .ni, .snav-btn .ni, .anav-btn .ni { font-size: 15px; margin-bottom: 2px; }
}

/* ── LABELS ── */
.lbl     { font-size: 6px; color: var(--b);   letter-spacing: .14em; display: block; margin-bottom: 5px; text-transform: uppercase; }
.lbl-p   { font-size: 6px; color: var(--p);   letter-spacing: .14em; display: block; margin-bottom: 5px; text-transform: uppercase; }
.lbl-g   { font-size: 6px; color: var(--g);   letter-spacing: .14em; display: block; margin-bottom: 5px; text-transform: uppercase; }
.lbl-adm { font-size: 6px; color: var(--adm); letter-spacing: .14em; display: block; margin-bottom: 5px; text-transform: uppercase; }

/* ── TYPE ── */
.title {
  color: var(--g);
  text-shadow: 0 0 12px var(--g), 0 0 28px rgba(0,255,136,.4);
  line-height: 1.5;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.blink { animation: blink 1s step-end infinite; }

@keyframes glow-p { 0%,100%{text-shadow:0 0 8px currentColor} 50%{text-shadow:0 0 22px currentColor,0 0 44px currentColor} }
.glow { animation: glow-p 2s ease infinite; }

/* ── TOAST ── */
.toast {
  position: absolute; top: 12px; left: 10px; right: 10px;
  background: #0b0c20;
  border: 2px solid var(--y);
  box-shadow: 0 0 14px rgba(255,238,0,.55), 2px 2px 0 #222200;
  color: var(--y); padding: 11px 14px;
  font-size: 7px; line-height: 1.9; text-align: center;
  transform: translateY(-90px);
  transition: transform .18s steps(4);
  z-index: 2000; text-transform: uppercase; letter-spacing: .04em;
}
.toast.show { transform: translateY(0); }
.toast.err  { border-color: var(--r); color: var(--r); box-shadow: 0 0 14px rgba(255,51,102,.55),  2px 2px 0 #220011; }
.toast.info { border-color: var(--b); color: var(--b); box-shadow: 0 0 14px rgba(0,229,255,.55),   2px 2px 0 #001122; }
.toast.ok   { border-color: var(--g); color: var(--g); box-shadow: 0 0 14px rgba(0,255,136,.55),   2px 2px 0 #001a0d; }

/* ── HP PIPS ── */
.hp-bar { display: flex; gap: 4px; flex-wrap: wrap; }
.hp-pip {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,255,136,.2);
  background: rgba(0,0,0,.4);
  transition: all .1s steps(2);
}
.hp-pip.on { background: var(--y); border-color: var(--y); box-shadow: 0 0 7px rgba(255,238,0,.7); }

/* stamp pop animation */
@keyframes pop {
  0%   { transform: scale(.4); }
  55%  { transform: scale(1.45); }
  80%  { transform: scale(.92); }
  100% { transform: scale(1); }
}
.hp-pip.pop { animation: pop .38s ease forwards; }

/* ── PROGRESS ── */
.prog-wrap {
  background: #000;
  border: 2px solid rgba(0,255,136,.2);
  height: 13px; position: relative; overflow: hidden; margin-top: 5px;
}
.prog-fill {
  height: 100%; background: var(--g);
  box-shadow: 0 0 8px rgba(0,255,136,.6);
  transition: width .25s steps(8);
}
.prog-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 6px; color: #000; filter: invert(1);
  font-family: 'Press Start 2P', monospace;
}

/* ── PIN PAD ── */
.pin-row { display: flex; justify-content: center; gap: 10px; margin: 16px 0; }
.pin-dot {
  width: 44px; height: 50px;
  background: rgba(0,0,0,.4);
  border: 2px solid rgba(0,255,136,.25);
  display: flex; align-items: center; justify-content: center;
  transition: all .1s steps(2);
}
.pin-dot.on     { border-color: var(--g); box-shadow: 0 0 10px rgba(0,255,136,.5); }
.pin-dot.on-adm { border-color: var(--adm) !important; box-shadow: 0 0 10px rgba(176,96,255,.5) !important; }
.pin-dot.err    { border-color: var(--r); box-shadow: 0 0 10px rgba(255,51,102,.5); }
.pin-pip { width: 13px; height: 13px; background: var(--g); box-shadow: 0 0 6px var(--g); }

.numpad { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; width: 220px; }
.num {
  background: rgba(0,0,0,.35);
  border: 2px solid rgba(0,255,136,.22);
  color: var(--g);
  font-family: 'Press Start 2P', monospace;
  font-size: 15px; padding: 15px 0;
  text-align: center; cursor: pointer;
  transition: all .05s;
}
.num:hover  { border-color: var(--g); background: rgba(0,255,136,.08); }
.num:active { transform: translate(1px,1px); }
.num.blank  { background: transparent; border: none; cursor: default; }

.num-adm { border-color: rgba(176,96,255,.22) !important; color: var(--adm) !important; }
.num-adm:hover { border-color: var(--adm) !important; background: rgba(176,96,255,.08) !important; }

/* ── BOTTOM NAVS ── */
.nav-bar {
  display: flex;
  border-top: 2px solid rgba(0,255,136,.4);
  margin: 8px -16px 0;
  background: rgba(8,9,24,.97);
  flex-shrink: 0;
  padding-bottom: var(--sab);
  touch-action: manipulation;
}
.nav-btn {
  flex: 1; background: transparent; border: none;
  border-right: 1px solid rgba(0,255,136,.15);
  color: rgba(0,255,136,.7);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 12px 4px 15px;
  cursor: pointer; text-align: center;
  transition: all .1s; line-height: 2;
  touch-action: manipulation; min-height: 52px;
}
.nav-btn:last-child { border-right: none; }
.nav-btn.active {
  color: var(--g); background: rgba(0,255,136,.1);
  text-shadow: 0 0 9px rgba(0,255,136,.75);
  border-top: 2px solid var(--g); margin-top: -2px;
}
.nav-btn:hover:not(.active) { color: rgba(0,255,136,.9); }
.nav-btn .ni { font-size: 15px; display: block; margin-bottom: 3px; }
.nav-btn-logout { color: rgba(255,51,102,.8) !important; }
.nav-btn-logout:hover { color: var(--r) !important; }

.snav-bar {
  display: flex;
  border-top: 2px solid rgba(255,0,255,.4);
  margin: 8px -16px 0;
  background: rgba(8,9,24,.97);
  flex-shrink: 0;
  padding-bottom: var(--sab);
  touch-action: manipulation;
}
.snav-btn {
  flex: 1; background: transparent; border: none;
  border-right: 1px solid rgba(255,0,255,.15);
  color: rgba(255,0,255,.7);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 12px 2px 15px;
  cursor: pointer; text-align: center;
  transition: all .1s; line-height: 2;
  touch-action: manipulation; min-height: 52px;
}
.snav-btn:last-child { border-right: none; }
.snav-btn.active {
  color: var(--p); background: rgba(255,0,255,.1);
  text-shadow: 0 0 9px rgba(255,0,255,.75);
  border-top: 2px solid var(--p); margin-top: -2px;
}
.snav-btn:hover:not(.active) { color: rgba(255,0,255,.95); }
.snav-btn .ni { font-size: 14px; display: block; margin-bottom: 3px; }
.snav-btn.adm-entry { color: rgba(176,96,255,.8) !important; }
.snav-btn.adm-entry:hover { color: var(--adm) !important; background: rgba(176,96,255,.08) !important; }

.anav-bar {
  display: flex;
  border-top: 2px solid rgba(176,96,255,.4);
  margin: 8px -16px 0;
  background: rgba(8,9,24,.97);
  flex-shrink: 0;
  padding-bottom: var(--sab);
  touch-action: manipulation;
}
.anav-btn {
  flex: 1; background: transparent; border: none;
  border-right: 1px solid rgba(176,96,255,.15);
  color: rgba(176,96,255,.7);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; padding: 12px 2px 15px;
  cursor: pointer; text-align: center;
  transition: all .1s; line-height: 2;
  touch-action: manipulation; min-height: 52px;
}
.anav-btn:last-child { border-right: none; }
.anav-btn.active {
  color: var(--adm); background: rgba(176,96,255,.1);
  text-shadow: 0 0 9px rgba(176,96,255,.75);
  border-top: 2px solid var(--adm); margin-top: -2px;
}
.anav-btn:hover:not(.active) { color: rgba(176,96,255,.95); }
.anav-btn .ni { font-size: 14px; display: block; margin-bottom: 3px; }

/* ── SCANNER ── */
.scan-box {
  background: #000;
  border: 2px solid var(--b);
  box-shadow: 0 0 14px rgba(0,229,255,.22);
  padding: 20px; text-align: center;
  margin-bottom: 10px; position: relative; overflow: hidden;
}
.scan-box-adm { border-color: var(--adm) !important; box-shadow: 0 0 14px rgba(176,96,255,.22) !important; }

.sc-corners { width: 110px; height: 110px; margin: 0 auto; position: relative; }
.corner { position: absolute; width: 18px; height: 18px; border: 3px solid var(--b); }
.corner.tl { top: 0; left: 0;  border-right: none; border-bottom: none; }
.corner.tr { top: 0; right: 0; border-left:  none; border-bottom: none; }
.corner.bl { bottom: 0; left: 0;  border-right: none; border-top: none; }
.corner.br { bottom: 0; right: 0; border-left:  none; border-top: none; }

.scan-line {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--b), transparent);
  box-shadow: 0 0 7px var(--b);
  animation: scanA 1.8s linear infinite;
}
@keyframes scanA {
  0%   { top: 0;    opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

#qr-reader, #qr-reader-adm { width: 100%; max-width: 280px; margin: 0 auto; }
#qr-reader video, #qr-reader-adm video { border: 2px solid var(--b) !important; }
#qr-reader img, #qr-reader-adm img { display: none !important; }

/* ── CUSTOMER ROWS ── */
.c-row {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(255,0,255,.12);
  cursor: pointer; transition: background .1s;
}
.c-row:hover, .c-row:active { background: rgba(255,0,255,.08); }

.c-av {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(0,0,0,.4);
  border: 2px solid var(--p);
  display: flex; align-items: center; justify-content: center;
  color: var(--p); font-size: 14px;
  box-shadow: 0 0 8px rgba(255,0,255,.28);
}
.c-av-adm { border-color: var(--adm) !important; color: var(--adm) !important; box-shadow: 0 0 8px rgba(176,96,255,.28) !important; }

/* ── REWARD CHIPS ── */
.reward-chip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border: 2px solid rgba(0,255,136,.25);
  background: rgba(0,255,136,.05);
  margin-bottom: 6px;
}
.reward-chip.warn { border-color: rgba(255,136,0,.5);  background: rgba(255,136,0,.05); }
.reward-chip.dead { border-color: rgba(255,51,102,.33); background: rgba(255,51,102,.04); opacity: .5; }

/* ── MISC ── */
.back {
  background: none; border: none;
  color: rgba(0,255,136,.55);
  font-family: 'Press Start 2P', monospace;
  font-size: 7px; cursor: pointer;
  padding: 0; margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: .08em;
  display: inline-flex; align-items: center; gap: 6px;
}
.back:hover { color: var(--g); }

.divider { border-top: 2px solid rgba(0,255,136,.18); margin: 10px 0; }

.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.qr-wrap {
  display: inline-block; padding: 10px; background: #fff;
  border: 3px solid var(--g);
  box-shadow: 0 0 14px rgba(0,255,136,.5);
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  40%      { transform: translateX(5px); }
  60%      { transform: translateX(-3px); }
  80%      { transform: translateX(3px); }
}
.shake { animation: shake .35s ease; }

.offer-banner {
  background: rgba(0,0,0,.6);
  border: 2px solid var(--o);
  padding: 9px 11px; margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 0 10px rgba(255,136,0,.28), 2px 2px 0 #221100;
}
.ob-icon { font-size: 17px; flex-shrink: 0; }
.ob-text { font-size: 6px; color: var(--o); line-height: 2; letter-spacing: .05em; }
.offer-banner.bday { border-color: var(--p); box-shadow: 0 0 10px rgba(255,0,255,.28), 2px 2px 0 #220022; }
.offer-banner.bday .ob-text { color: var(--p); }

.ticker-wrap {
  overflow: hidden;
  border-top:    1px solid rgba(0,255,136,.15);
  border-bottom: 1px solid rgba(0,255,136,.15);
  padding: 5px 0; margin-bottom: 12px;
}
.ticker {
  display: inline-block; white-space: nowrap;
  font-size: 6px; color: rgba(0,255,136,.5);
  animation: tickerA 24s linear infinite;
  letter-spacing: .07em;
}
@keyframes tickerA {
  0%   { transform: translateX(360px); }
  100% { transform: translateX(-100%); }
}

.hist-item { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(0,255,136,.08); }
.hist-icon { font-size: 14px; flex-shrink: 0; width: 20px; text-align: center; margin-top: 1px; }
.hist-text { font-size: 6px; color: rgba(0,255,136,.7); line-height: 2; flex: 1; }
.hist-date { font-size: 5px; color: rgba(0,229,255,.45); margin-top: 2px; white-space: nowrap; }

.tag { display: inline-block; font-size: 6px; padding: 3px 8px; border: 2px solid; letter-spacing: .08em; text-transform: uppercase; }
.tag-s { border-color: var(--p);   color: var(--p);   box-shadow: 0 0 7px rgba(255,0,255,.35); }
.tag-a { border-color: var(--adm); color: var(--adm); box-shadow: 0 0 7px rgba(176,96,255,.35); }

.bday-locked {
  padding: 10px; background: rgba(0,0,0,.4);
  border: 2px solid rgba(0,255,136,.2);
  font-size: 7px; color: rgba(0,255,136,.55); letter-spacing: .04em;
}

.rdm-row   { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-bottom: 1px solid rgba(176,96,255,.1); }
.stat-row  { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(176,96,255,.12); }
