/* =========================================================
   HMT — Dark Tech Theme v3 — Pure Black + Neon
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@400;700&display=swap');

:root{
  --bg:#010308;
  --panel:#050d18;
  --text:#e2e8f0;
  --muted:#64748b;
  --line:#1e3a5f;
  --accent:#00e5ff;
  --pink:#38bdf8;
  --cyan:#00e5ff;
  --neon-green:#39ff14;
  --neon-purple:#bf5fff;
}

/* ── BODY & BACKGROUND ──────────────────────────────────── */
body.site-public{
  font-family:'Plus Jakarta Sans',system-ui,sans-serif;
  background:
    radial-gradient(ellipse at 10% 0,rgba(0,229,255,.12),transparent 42%),
    radial-gradient(ellipse at 92% 20%,rgba(37,99,235,.14),transparent 40%),
    radial-gradient(ellipse at 55% 100%,rgba(0,229,255,.06),transparent 45%),
    linear-gradient(170deg,#010308 0,#010810 55%,#010308 100%) !important;
  color:#e2e8f0;
  position:relative;
  isolation:isolate;
}

/* Animated scanlines overlay */
body.site-public::before{
  content:"";
  position:fixed;inset:0;z-index:0;pointer-events:none;
  background:
    repeating-linear-gradient(0deg,transparent 0 3px,rgba(0,229,255,.018) 3px 4px),
    repeating-linear-gradient(90deg,transparent 0 60px,rgba(0,229,255,.012) 60px 61px);
  animation:scan-drift 8s linear infinite;
}
@keyframes scan-drift{from{background-position:0 0,0 0}to{background-position:0 80px,0 0}}

/* Neon grid lines */
.neon-stripes{
  position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    repeating-linear-gradient(118deg,transparent 0 54px,rgba(0,229,255,.04) 55px 57px,transparent 58px 110px),
    repeating-linear-gradient(62deg,transparent 0 90px,rgba(56,189,248,.025) 91px 93px,transparent 94px 180px),
    radial-gradient(ellipse at 50% 0,rgba(0,120,255,.13),transparent 60%);
  animation:stripe-drift 24s linear infinite;
}
@keyframes stripe-drift{from{background-position:0 0,0 0,center}to{background-position:200px 220px,-200px 120px,center}}

/* ── HEADER / TOP ──────────────────────────────────────── */
body.site-public .top{
  position:sticky;top:10px;z-index:50;
  width:min(1160px,calc(100% - 20px));
  margin:14px auto 28px;
  padding:14px 20px;
  min-height:72px;
  border-radius:20px;
  background:rgba(1,8,16,.92);
  border:1px solid rgba(0,229,255,.35);
  box-shadow:0 0 32px rgba(0,229,255,.08),0 16px 48px rgba(0,0,0,.7),inset 0 1px 0 rgba(0,229,255,.12);
  backdrop-filter:blur(24px);
}

body.site-public .brand,
body.site-public .section-title,
body.site-public .game-card h2,
body.site-public .panel h1,
body.site-public .panel h2{
  font-family:Outfit,'Plus Jakarta Sans',sans-serif;
  color:#f8fafc;
}

body.site-public .brand span{
  background:linear-gradient(100deg,#67e8f9,#00e5ff 48%,#818cf8);
  background-clip:text;-webkit-background-clip:text;color:transparent;
  filter:drop-shadow(0 0 12px rgba(0,229,255,.4));
}

/* ── NAV PILLS ─────────────────────────────────────────── */
body.site-public .pill{
  border:1px solid rgba(0,229,255,.3);
  border-radius:10px;
  background:rgba(0,229,255,.05);
  color:#a5f3fc;
  font-family:Outfit,sans-serif;
  font-weight:700;
  letter-spacing:.03em;
  transition:all .2s;
}
body.site-public .pill:hover{
  border-color:#00e5ff;
  background:rgba(0,229,255,.12);
  box-shadow:0 0 16px rgba(0,229,255,.2);
  color:#fff;
}
body.site-public .getkey-top{
  background:linear-gradient(105deg,#00e5ff,#38bdf8);
  color:#010810 !important;
  border-color:transparent;
  font-weight:900;
  box-shadow:0 0 20px rgba(0,229,255,.35);
}

/* ── CARDS ─────────────────────────────────────────────── */
body.site-public .game-card,
body.site-public .panel{
  border:1px solid rgba(0,229,255,.18) !important;
  border-radius:20px !important;
  background:linear-gradient(160deg,rgba(5,15,30,.97),rgba(1,8,20,.98)) !important;
  box-shadow:0 12px 36px rgba(0,0,0,.7),inset 0 1px 0 rgba(0,229,255,.06) !important;
  transition:transform .3s,border-color .3s,box-shadow .3s !important;
  position:relative;
}
body.site-public .game-card:hover{
  transform:translateY(-5px) !important;
  border-color:rgba(0,229,255,.6) !important;
  box-shadow:0 20px 50px rgba(0,0,0,.8),0 0 28px rgba(0,229,255,.18) !important;
}
body.site-public .thumb{
  border:1px solid rgba(0,229,255,.2) !important;
  border-radius:14px !important;
  background:#010508 !important;
}

/* ── BUTTON — ĐEN NỀN + CHỮ TRẮNG SÁNG ──────────────── */
body.site-public .button{
  font-family:Outfit,sans-serif !important;
  font-weight:900 !important;
  color:#fff !important;
  background:linear-gradient(105deg,#0070a8,#00bcd4 50%,#0070a8) !important;
  border:1px solid rgba(0,229,255,.5) !important;
  border-radius:14px !important;
  box-shadow:0 0 24px rgba(0,229,255,.25),inset 0 1px 0 rgba(255,255,255,.12) !important;
  letter-spacing:.04em !important;
  text-shadow:0 0 10px rgba(0,229,255,.6) !important;
  transition:filter .2s,transform .2s,box-shadow .2s !important;
}
body.site-public .button:hover{
  filter:brightness(1.15) !important;
  transform:translateY(-2px) !important;
  box-shadow:0 0 36px rgba(0,229,255,.4),0 8px 24px rgba(0,0,0,.5) !important;
}
body.site-public .button:disabled{
  opacity:.5 !important;
  cursor:wait !important;
}

/* GetKey claim button (home cards) */
body.site-public .claim-button{
  display:flex;align-items:center;justify-content:center;gap:8px;
  min-height:52px;margin-top:auto;
  border:1px solid rgba(0,229,255,.5);
  border-radius:14px;
  background:linear-gradient(105deg,#004a6e,#0088b3 50%,#004a6e);
  color:#fff !important;
  font:900 .95rem Outfit,sans-serif;
  letter-spacing:.05em;
  box-shadow:0 0 20px rgba(0,229,255,.2),inset 0 1px 0 rgba(255,255,255,.1);
  transition:filter .2s,transform .2s,box-shadow .2s;
  text-shadow:0 0 8px rgba(0,229,255,.5);
}
body.site-public .game-card:hover .claim-button{
  filter:brightness(1.12);
  box-shadow:0 0 32px rgba(0,229,255,.35);
}

/* ── BYPASS BADGES ─────────────────────────────────────── */
body.site-public .bypass-badge{
  background:rgba(0,229,255,.07) !important;
  border:1px solid rgba(0,229,255,.35) !important;
  color:#a5f3fc !important;
  font-family:JetBrains\ Mono,monospace;
  font-size:.8rem;
}
body.site-public .bypass-badge strong{
  color:#00e5ff !important;
  text-shadow:0 0 8px rgba(0,229,255,.5);
}

/* ── NOTICE ────────────────────────────────────────────── */
body.site-public .notice{
  border-left-color:#00e5ff !important;
  background:rgba(0,229,255,.07) !important;
  color:#cffafe !important;
}

/* ── KEYBOX ────────────────────────────────────────────── */
body.site-public .keybox{
  border:1px solid rgba(0,229,255,.5) !important;
  background:rgba(0,229,255,.05) !important;
  box-shadow:0 0 24px rgba(0,229,255,.12),inset 0 1px 0 rgba(0,229,255,.08) !important;
}
body.site-public .keybox strong{
  color:#00e5ff !important;
  text-shadow:0 0 12px rgba(0,229,255,.6) !important;
  font-family:JetBrains\ Mono,monospace !important;
}

/* ── STATUS TEXT ────────────────────────────────────────── */
body.site-public .status{color:#a5f3fc !important;}

/* ── HERO SECTION ──────────────────────────────────────── */
.hero-note{
  display:flex;align-items:center;gap:16px;
  margin:16px 0 22px;padding:16px 20px;
  border:1px solid rgba(0,229,255,.25);
  border-radius:20px;
  background:linear-gradient(115deg,rgba(0,10,25,.95),rgba(0,15,35,.95));
  box-shadow:inset 0 1px rgba(0,229,255,.1),0 12px 36px rgba(0,0,0,.5);
}
.hero-icon{
  width:60px;height:60px;
  display:grid;place-items:center;
  flex:none;border-radius:18px;
  background:linear-gradient(145deg,#003d6b,#0088b3);
  color:#00e5ff;
  font-size:1.6rem;
  box-shadow:0 0 28px rgba(0,229,255,.3),inset 0 1px 0 rgba(255,255,255,.1);
}
.hero-note h1{
  margin:0;
  font:900 clamp(1.1rem,3vw,1.6rem)/1.15 Outfit,sans-serif;
  color:#f8fafc;
}
.hero-note p{margin:6px 0 0;color:#94a3b8;font:500 .9rem JetBrains\ Mono,monospace;}

/* ── SEARCH BAR ────────────────────────────────────────── */
.search-wrap{
  display:flex;align-items:center;gap:12px;
  margin:24px 0 32px;padding:0 18px;
  min-height:58px;
  border:1px solid rgba(0,229,255,.2);
  border-radius:16px;
  background:rgba(0,8,20,.8);
  box-shadow:inset 0 1px rgba(0,229,255,.06),0 0 24px rgba(0,0,0,.4);
  transition:border-color .2s,box-shadow .2s;
}
.search-wrap:focus-within{
  border-color:rgba(0,229,255,.5);
  box-shadow:0 0 20px rgba(0,229,255,.12),inset 0 1px rgba(0,229,255,.1);
}
.search-wrap>span{font-size:1.6rem;color:rgba(0,229,255,.5);}
.search-wrap input{
  width:100%;min-width:0;border:0;outline:0;
  background:transparent;color:#f8fafc;
  font:500 1rem 'Plus Jakarta Sans',sans-serif;
}
.search-wrap input::placeholder{color:#475569;}

/* ── GAME GRID ──────────────────────────────────────────── */
body.site-public .games{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:18px 20px!important;
  align-items:stretch;
}
body.site-public .game-card{
  display:flex;flex-direction:column;
  overflow:hidden;padding:0!important;
  border:1px solid rgba(0,229,255,.15)!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,rgba(3,12,28,.97),rgba(1,6,16,.98))!important;
  box-shadow:0 12px 32px rgba(0,0,0,.7)!important;
  color:#f8fafc!important;
  text-decoration:none!important;
  min-width:0;
}

/* ── LEGENDARY BADGE ───────────────────────────────────── */
.legendary{
  position:absolute;left:12px;top:12px;
  padding:4px 11px;
  border:1px solid rgba(0,229,255,.5);
  border-radius:8px;
  background:rgba(1,8,20,.88);
  color:#00e5ff;
  font:900 .68rem Outfit,sans-serif;
  letter-spacing:.04em;
  box-shadow:0 0 14px rgba(0,229,255,.2);
}

/* ── CARD BODY ──────────────────────────────────────────── */
.card-body{display:flex;flex:1;flex-direction:column;padding:14px 15px 15px;min-width:0;}
.card-body h2{
  margin:0 0 7px!important;
  font:900 clamp(.9rem,2vw,1.1rem)/1.3 Outfit,sans-serif!important;
  color:#f8fafc!important;overflow-wrap:anywhere;
}
.game-desc{
  margin:0 0 12px;color:#64748b;
  font-size:.85rem;line-height:1.45;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;min-height:2.5em;
}
.stock-row{display:flex;align-items:center;gap:8px;color:#64748b;font-size:.88rem;}
.stock-row strong{margin-left:auto;font:900 .95rem JetBrains\ Mono,monospace;}
.stock-row .in-stock{color:#34d399;}
.stock-row .out-stock{color:#fb7185;}
.stock-total{font:800 .85rem JetBrains\ Mono,monospace;color:#334155;}
.stock-track{height:8px;margin-top:7px;overflow:hidden;border-radius:99px;background:rgba(0,229,255,.08);border:1px solid rgba(0,229,255,.12);}
.stock-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#00b4cc,#00e5ff);box-shadow:0 0 10px rgba(0,229,255,.4);}
.free-label{margin:12px 0 10px;text-align:center;color:#34d399;font:900 .88rem Outfit,sans-serif;letter-spacing:.06em;}

/* ── GUIDE SECTION ─────────────────────────────────────── */
.guide{margin:68px 0 20px;}
.guide-heading{text-align:center;margin-bottom:38px;}
.guide-mark{
  display:inline-grid;place-items:center;
  width:48px;height:48px;
  border:1px solid rgba(0,229,255,.4);
  border-radius:14px;
  background:rgba(0,229,255,.07);
  color:#00e5ff;font-size:1.4rem;
  box-shadow:0 0 20px rgba(0,229,255,.15);
}
.guide-heading h2{margin:12px 0 6px;color:#f8fafc;font:900 clamp(1.25rem,3vw,2rem) Outfit,sans-serif;}
.guide-heading p{margin:0;color:#64748b;font-size:.88rem;}
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.guide-card{
  position:relative;padding:34px 20px 22px;
  border:1px solid rgba(0,229,255,.15);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(3,14,30,.96),rgba(1,7,18,.97));
  text-align:center;
  box-shadow:0 14px 36px rgba(0,0,0,.6);
}
.step{
  position:absolute;top:-14px;left:50%;transform:translateX(-50%);
  padding:5px 22px;border-radius:99px;
  color:#010810;
  font:900 .72rem Outfit,sans-serif;
  white-space:nowrap;
  box-shadow:0 4px 16px rgba(0,229,255,.3);
}
.step-one{background:linear-gradient(90deg,#00e5ff,#38bdf8);}
.step-two{background:linear-gradient(90deg,#a78bfa,#818cf8);color:#08041a;}
.step-three{background:linear-gradient(90deg,#34d399,#10b981);}
.step-icon{
  width:68px;height:68px;
  display:grid;place-items:center;
  margin:4px auto 16px;
  border:1px solid rgba(0,229,255,.35);
  border-radius:20px;
  background:rgba(0,229,255,.07);
  font-size:1.9rem;
  box-shadow:0 0 24px rgba(0,229,255,.12);
}
.guide-card h3{margin:0 0 8px;color:#f8fafc;font:900 .98rem Outfit,sans-serif;}
.guide-card p{margin:0;color:#64748b;font-size:.83rem;line-height:1.65;}

/* ── FOOTER ────────────────────────────────────────────── */
.site-footer{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  margin-top:36px;
  padding:22px max(20px,calc((100% - 1120px)/2));
  border-top:1px solid rgba(0,229,255,.12);
  background:rgba(1,8,16,.7);
  color:#334155;font-size:.8rem;
}
.site-footer strong{color:#f8fafc;font:900 .92rem Outfit,sans-serif;letter-spacing:.08em;}
body.site-public footer{
  color:#475569;
  border-top-color:rgba(0,229,255,.1) !important;
}

/* ── MUSIC BUTTON ──────────────────────────────────────── */
.music-toggle{
  position:fixed;z-index:30;left:18px;bottom:20px;
  display:flex;align-items:center;gap:9px;
  padding:11px 16px;
  border:1px solid rgba(0,229,255,.4);
  border-radius:999px;
  background:linear-gradient(120deg,rgba(0,60,100,.9),rgba(0,100,160,.9));
  color:#fff;
  font:900 .72rem Outfit,sans-serif;
  letter-spacing:.05em;
  box-shadow:0 0 24px rgba(0,229,255,.25),0 8px 28px rgba(0,0,0,.6);
  cursor:pointer;
  backdrop-filter:blur(12px);
}
.music-note{font-size:1.1rem;}
.music-toggle.is-playing .music-note{animation:music-bounce .7s ease-in-out infinite alternate;}
@keyframes music-bounce{to{transform:translateY(-3px) rotate(12deg)}}

/* ── GETKEY PAGE SPECIFIC ──────────────────────────────── */
/* Flow steps (nếu bật) */
.flow-steps{list-style:none;margin:16px 0;padding:0;display:grid;gap:10px;}
.flow-steps li{
  display:flex;align-items:center;gap:12px;
  padding:12px 15px;
  border:1px solid rgba(0,229,255,.2);
  border-radius:14px;
  background:rgba(0,229,255,.04);
}
.flow-steps .fs-num{
  width:30px;height:30px;flex:none;
  border-radius:50%;display:grid;place-items:center;
  font-weight:900;font-size:.85rem;
  background:linear-gradient(110deg,#0088b3,#00e5ff);
  color:#010810;
  box-shadow:0 0 12px rgba(0,229,255,.3);
}
.flow-steps .fs-label{font-weight:700;flex:1;color:#e2e8f0;}
.flow-steps small{color:#475569;}

/* Bypass info area */
.bypass-info{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 16px;}

/* ── SCROLL ANIMATIONS DISABLED ON GETKEY ─────────────── */
/* Đảm bảo tất cả phần tử trên trang getkey đều hiển thị ngay */
body.page-getkey *[data-rv],
body.page-getkey *[data-rv="box"],
body.page-getkey *[data-rv="text"]{
  opacity:1 !important;
  translate:none !important;
  scale:1 !important;
  filter:none !important;
}
body.page-getkey .rv-w{
  opacity:1 !important;
  translate:none !important;
  filter:none !important;
}

/* ── ICONS CÔNG NGHỆ HIỆN ĐẠI (SVG inline thay emoji) ─── */

/* Icon cho hero */
.hero-icon-svg{
  width:60px;height:60px;
  display:grid;place-items:center;
  flex:none;border-radius:18px;
  background:linear-gradient(145deg,rgba(0,61,107,.9),rgba(0,136,179,.9));
  box-shadow:0 0 28px rgba(0,229,255,.3),inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-icon-svg svg{width:30px;height:30px;stroke:#00e5ff;fill:none;filter:drop-shadow(0 0 6px rgba(0,229,255,.6));}

/* Icon cho guide cards */
.step-icon-svg{
  width:68px;height:68px;
  display:grid;place-items:center;
  margin:4px auto 16px;
  border:1px solid rgba(0,229,255,.35);
  border-radius:20px;
  background:rgba(0,229,255,.07);
  box-shadow:0 0 24px rgba(0,229,255,.12);
}
.step-icon-svg svg{width:32px;height:32px;stroke:#00e5ff;fill:none;filter:drop-shadow(0 0 6px rgba(0,229,255,.5));}

/* Guide mark icon */
.guide-mark-svg{
  display:inline-grid;place-items:center;
  width:48px;height:48px;
  border:1px solid rgba(0,229,255,.4);
  border-radius:14px;
  background:rgba(0,229,255,.07);
  box-shadow:0 0 20px rgba(0,229,255,.15);
}
.guide-mark-svg svg{width:24px;height:24px;stroke:#00e5ff;fill:none;filter:drop-shadow(0 0 5px rgba(0,229,255,.5));}

/* Claim button icon */
.claim-btn-icon{
  width:20px;height:20px;
  flex:none;stroke:#00e5ff;fill:none;
  filter:drop-shadow(0 0 4px rgba(0,229,255,.6));
}

/* Music icon */
.music-icon-svg{
  width:18px;height:18px;
  stroke:#00e5ff;fill:none;
  filter:drop-shadow(0 0 5px rgba(0,229,255,.5));
  flex:none;
}

/* GetKey button icon */
.getkey-btn-icon{
  width:20px;height:20px;
  stroke:#fff;fill:none;
  filter:drop-shadow(0 0 4px rgba(255,255,255,.4));
  display:inline-block;vertical-align:middle;margin-right:8px;
}

/* Back arrow pill icon */
.pill-icon{
  width:16px;height:16px;
  stroke:currentColor;fill:none;
  display:inline-block;vertical-align:middle;margin-right:4px;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media(max-width:650px){
  body.site-public .top{width:calc(100% - 20px);margin:10px auto 20px;padding:10px 14px;border-radius:18px;}
  .top nav .pill{padding:7px 10px;font-size:.7rem;}
  .brand{font-size:1.3rem!important;}
  .brand small{font-size:.55rem!important;}
  .hero-note{gap:12px;padding:12px;border-radius:16px;}
  .hero-icon,.hero-icon-svg{width:50px;height:50px;border-radius:14px;}
  .hero-note h1{font-size:.98rem;}
  .hero-note p{font-size:.72rem;}
  .search-wrap{min-height:52px;margin:18px 0 24px;border-radius:14px;}
  .games{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  .game-card{border-radius:17px!important;}
  .card-body{padding:10px 10px 11px;}
  .card-body h2{font-size:.85rem!important;}
  .game-desc{font-size:.7rem;}
  .claim-button{min-height:44px;border-radius:12px;font-size:.76rem;}
  .guide{margin-top:52px;}
  .guide-grid{grid-template-columns:1fr;gap:28px;}
  .guide-card{padding:30px 18px 22px;}
  .site-footer{flex-direction:column;text-align:center;}
  .music-toggle{left:12px;bottom:12px;padding:9px 13px;font-size:.66rem;}
}
@media(max-width:370px){
  body.site-public .top{align-items:flex-start;flex-direction:column;}
  .top nav{width:100%;justify-content:flex-start;}
  .card-body{padding:8px;}
  .card-body h2{font-size:.78rem!important;}
  .claim-button{font-size:.68rem;}
}
@media(prefers-reduced-motion:reduce){
  .neon-stripes,.music-note,.scan-drift{animation:none!important;}
  body.site-public::before{animation:none!important;}
}

.game-card[hidden]{display:none!important}

/* ── SVG GLOBAL FIX — ngăn fill đen mặc định ─────────────
   Mọi SVG inline đều dùng fill:none, stroke kế thừa từ attribute.
   Override này đảm bảo không có shape nào bị fill đen. */
body.site-public svg:not([fill]),
body.site-public svg[fill="none"]{fill:none}
body.site-public svg polygon:not([fill]),
body.site-public svg path:not([fill]),
body.site-public svg circle:not([fill]),
body.site-public svg rect:not([fill]),
body.site-public svg polyline:not([fill]),
body.site-public svg ellipse:not([fill]){fill:none}
/* Cho phép polygon fill khi có fill attribute rõ ràng */
.guide-mark-svg svg *,
.hero-icon-svg svg *,
.step-icon-svg svg *{fill:none}
