/* =========================================================
   NC GTA 5 CITY – giao diện web
   Bảng màu lấy từ logo: tím neon, xanh cyan, vàng kim.
   ========================================================= */
:root {
  --bg: #08050f;
  --bg2: #0f0a1d;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-b: rgba(255, 255, 255, 0.08);
  --text: #efeaf8;
  --muted: #a69dbd;
  --purple: #a855f7;
  --violet: #7c3aed;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --gold: #f6c453;
  --gold2: #e89b2b;
  --green: #34d399;
  --red: #f43f5e;
  --discord: #5865f2;
  --r: 18px;
  --wrap: 1200px;
  --head: 'Anton', 'Be Vietnam Pro', Impact, sans-serif;
  --body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
b { font-weight: 700; }
code {
  font-family: ui-monospace, Consolas, monospace;
  background: rgba(168, 85, 247, .15);
  border: 1px solid rgba(168, 85, 247, .3);
  color: #e9d5ff;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: .9em;
}
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 28px; padding: 0 8px;
  font: 700 13px/1 var(--body);
  color: #fff;
  background: linear-gradient(#2a2140, #1a1429);
  border: 1px solid rgba(255,255,255,.14);
  border-bottom-width: 3px;
  border-radius: 7px;
}
::selection { background: var(--purple); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }

/* ---------- nút ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--body); font-weight: 800; letter-spacing: .02em;
  border: 0; cursor: pointer; border-radius: 12px;
  transition: transform .2s, box-shadow .2s, filter .2s;
  white-space: nowrap; text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 28px; font-size: 17px; }
.btn-xl { padding: 20px 38px; font-size: 19px; }
.btn i { font-size: 1.15em; }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 8px 30px -8px rgba(88,101,242,.8); }
.btn-gold { background: linear-gradient(135deg, #ffe08a, var(--gold) 45%, var(--gold2)); color: #1d1206; box-shadow: 0 8px 30px -8px rgba(246,196,83,.7); }
.btn-light { background: #fff; color: #2b2f8f; }
.glow { position: relative; }
.glow::after {
  content: ''; position: absolute; inset: -3px; border-radius: 15px;
  border: 2px solid rgba(140,150,255,.7);
  animation: pulse 2.2s infinite;
  pointer-events: none;
}
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.4); } }

/* ---------- thanh điều hướng ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(8,5,15,.86); backdrop-filter: blur(14px); border-color: var(--panel-b); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; white-space: nowrap; flex: none; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand img { width: 46px; height: auto; filter: drop-shadow(0 0 10px rgba(168,85,247,.6)); }
.brand span { font: 400 22px/1 var(--head); letter-spacing: .04em; }
.brand b { color: var(--gold); font-weight: 400; }
.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
  white-space: nowrap;
  color: #d8d1e8; font-weight: 600; font-size: 14.5px;
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  transition: color .2s, background .2s;
}
.menu a:hover, .menu a.act { color: #fff; background: rgba(168,85,247,.16); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.m-only { display: none; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 110px 0 60px; overflow: hidden; isolation: isolate;
}
.sky {
  position: absolute; inset: 0; z-index: -6;
  background:
    radial-gradient(1200px 500px at 70% 18%, rgba(124,58,237,.45), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(34,211,238,.18), transparent 60%),
    linear-gradient(180deg, #07040e 0%, #1a0b33 38%, #4a1550 62%, #8c2a5a 74%, #1a0a24 75%, #08050f 100%);
}
.sun {
  position: absolute; z-index: -5;
  width: min(600px, 62vw); aspect-ratio: 1; left: 74%; bottom: 24%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffe08a 0%, #ff9a3c 35%, #ff3d81 70%, #9d2bd1 100%);
  /* nửa trên đặc, nửa dưới kẻ sọc kiểu hoàng hôn retro */
  -webkit-mask: linear-gradient(180deg, #000 0 52%, transparent 52%), repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 24px);
          mask: linear-gradient(180deg, #000 0 52%, transparent 52%), repeating-linear-gradient(180deg, #000 0 16px, transparent 16px 24px);
  filter: drop-shadow(0 0 80px rgba(255,90,140,.55));
  opacity: .9;
}
.city { position: absolute; z-index: -4; left: 0; right: 0; bottom: 25%; width: 100%; height: 22%; fill: #0d0618; }
.palms { position: absolute; z-index: -3; left: 0; right: 0; bottom: 22%; width: 100%; height: 48%; }
.palms path { fill: #06030b; stroke: #06030b; }
.palm.l { animation: sway 7s ease-in-out infinite; transform-origin: 150px 400px; }
.palm.r { animation: sway 8s ease-in-out infinite reverse; transform-origin: 1450px 400px; }
@keyframes sway { 50% { transform: rotate(1.4deg); } }
.grid-floor {
  position: absolute; z-index: -2; left: -50%; right: -50%; bottom: 0; height: 25.5%;
  background:
    linear-gradient(180deg, #08050f 0%, transparent 25%),
    repeating-linear-gradient(90deg, rgba(236,72,153,.55) 0 2px, transparent 2px 80px),
    repeating-linear-gradient(180deg, rgba(168,85,247,.5) 0 2px, transparent 2px 40px),
    #0b0615;
  transform: perspective(300px) rotateX(58deg);
  transform-origin: top;
  animation: floor 2.5s linear infinite;
  -webkit-mask: linear-gradient(180deg, transparent, #000 30%);
          mask: linear-gradient(180deg, transparent, #000 30%);
}
@keyframes floor { to { background-position: 0 0, 0 0, 0 40px, 0 0; } }
.noise {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 40px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px; border-radius: 99px;
  background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35);
  color: #a7f3d0; font-weight: 600; font-size: 14px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,.7); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

.title { margin: 18px 0 10px; font-family: var(--head); font-weight: 400; line-height: .86; letter-spacing: .01em; text-transform: uppercase; }
.t1 {
  display: block; font-size: clamp(64px, 11vw, 150px);
  background: linear-gradient(180deg, #fff6d6 0%, var(--gold) 45%, #c9761c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 0 #3b1660) drop-shadow(0 0 30px rgba(246,196,83,.35));
}
.t2 {
  display: block; font-size: clamp(56px, 9.5vw, 132px); letter-spacing: .18em;
  color: transparent; -webkit-text-stroke: 2px #d8b4fe;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink), var(--purple));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text;
  animation: shift 8s linear infinite;
  filter: drop-shadow(0 0 22px rgba(168,85,247,.55));
}
@keyframes shift { to { background-position: 300% 0; } }
.tag { max-width: 560px; color: #e4dcf2; text-shadow: 0 2px 12px rgba(8,5,15,.9); font-size: 17.5px; margin: 0 0 28px; }
.tag b { color: var(--gold); }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.ip {
  display: inline-flex; align-items: center; gap: 12px;
  background: rgba(0,0,0,.35); border: 1px dashed rgba(255,255,255,.25);
  color: #cfc7e0; padding: 10px 16px; border-radius: 10px;
  font: 500 14.5px var(--body); cursor: pointer; transition: border-color .2s, background .2s;
}
.ip b { color: #fff; font-family: ui-monospace, Consolas, monospace; }
.ip:hover { border-color: var(--cyan); background: rgba(34,211,238,.08); }
.ip .fa-copy { color: var(--cyan); }

.hero-logo { position: relative; display: grid; place-items: center; }
.hero-logo img { position: relative; width: 100%; max-width: 520px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(0,0,0,.6)); }
.halo {
  position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--cyan), var(--pink), var(--gold), var(--purple));
  filter: blur(60px); opacity: .45; animation: spin 14s linear infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 54px;
}
.stat {
  background: rgba(15,10,29,.7); border: 1px solid var(--panel-b);
  border-radius: 14px; padding: 16px 20px; backdrop-filter: blur(8px);
}
.stat b { display: block; font: 400 36px/1.1 var(--head); color: #fff; }
.stat span { color: var(--muted); font-size: 14px; }
.scroll-hint {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: 20px; animation: bob 1.8s infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ---------- dải chạy chữ ---------- */
.ticker { background: linear-gradient(90deg, var(--violet), var(--pink)); overflow: hidden; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2; box-shadow: 0 10px 40px -10px rgba(236,72,153,.6); }
.ticker-in { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font: 400 20px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; padding: 14px 28px; color: #fff; white-space: nowrap; }
.ticker span::after { content: '★'; margin-left: 56px; color: var(--gold); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- section chung ---------- */
.sec { padding: 110px 0; position: relative; }
.sec-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 12%, var(--bg2) 88%, var(--bg) 100%); }
.head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.kicker {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.kicker.gold { color: var(--gold); }
h2 { font: 400 clamp(38px, 5.4vw, 64px)/1.05 var(--head); margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
h2 em { font-style: normal; background: linear-gradient(90deg, var(--purple), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.head p { color: var(--muted); font-size: 17px; margin: 0; }
.sub { font: 400 30px/1.2 var(--head); text-transform: uppercase; margin: 70px 0 22px; letter-spacing: .02em; }

/* ---------- giới thiệu ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: #cbc3dc; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks i { color: var(--green); background: rgba(52,211,153,.12); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 13px; margin-top: 2px; }
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.acard {
  position: relative; overflow: hidden;
  padding: 26px 22px; border-radius: var(--r); min-height: 190px;
  background: var(--panel); border: 1px solid var(--panel-b);
  display: flex; flex-direction: column; gap: 6px; justify-content: flex-end;
  transition: transform .3s, border-color .3s;
}
.acard:hover { transform: translateY(-6px); }
.acard i { font-size: 30px; margin-bottom: auto; }
.acard b { font-size: 18px; }
.acard span { color: var(--muted); font-size: 14px; line-height: 1.5; }
.acard::before { content: ''; position: absolute; inset: auto -30% -60% auto; width: 200px; height: 200px; border-radius: 50%; filter: blur(50px); opacity: .5; }
.c1 i { color: var(--green); } .c1::before { background: var(--green); } .c1:hover { border-color: rgba(52,211,153,.5); }
.c2 i { color: var(--red); } .c2::before { background: var(--red); } .c2:hover { border-color: rgba(244,63,94,.5); }
.c3 i { color: var(--cyan); } .c3::before { background: var(--cyan); } .c3:hover { border-color: rgba(34,211,238,.5); }
.c4 i { color: var(--gold); } .c4::before { background: var(--gold); } .c4:hover { border-color: rgba(246,196,83,.5); }
.c2, .c4 { transform: translateY(28px); }
.c2:hover, .c4:hover { transform: translateY(22px); }

/* ---------- tabs tính năng ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tab {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 18px; border-radius: 99px; cursor: pointer;
  background: var(--panel); border: 1px solid var(--panel-b); color: #d4cce4;
  font: 700 14.5px var(--body); transition: .2s;
}
.tab:hover { color: #fff; border-color: rgba(168,85,247,.5); }
.tab.on { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; border-color: transparent; box-shadow: 0 10px 30px -10px rgba(168,85,247,.8); }
.panel { display: none; }
.panel.on { display: block; animation: fadeUp .45s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.fgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat {
  position: relative; padding: 24px 22px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--panel-b);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.feat:hover { transform: translateY(-5px); border-color: rgba(168,85,247,.55); box-shadow: 0 18px 40px -20px rgba(168,85,247,.7); }
.feat i {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; font-size: 20px;
  background: linear-gradient(135deg, rgba(168,85,247,.25), rgba(34,211,238,.15));
  color: #e9d5ff; border: 1px solid rgba(168,85,247,.35); margin-bottom: 14px;
}
.feat h3 { font-size: 17px; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feat p b { color: #e9d5ff; }

/* ---------- nghề ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.jcol { border-radius: 22px; padding: 26px; border: 1px solid var(--panel-b); position: relative; overflow: hidden; }
.jcol.legal { background: linear-gradient(160deg, rgba(52,211,153,.12), rgba(15,10,29,.5) 45%); }
.jcol.dirty { background: linear-gradient(160deg, rgba(244,63,94,.14), rgba(15,10,29,.5) 45%); }
.jhead { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.jhead > i { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; }
.legal .jhead > i { background: rgba(52,211,153,.18); color: var(--green); }
.dirty .jhead > i { background: rgba(244,63,94,.18); color: var(--red); }
.jhead h3 { margin: 0; font: 400 30px/1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.jhead span { color: var(--muted); font-size: 14px; }
.jcol ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jcol li {
  display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: 12px; transition: background .2s;
}
.jcol li:hover { background: rgba(255,255,255,.05); }
.jcol li i { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,.06); }
.legal li i { color: var(--green); }
.dirty li i { color: #fb7185; }
.jcol li b { font-size: 15.5px; }
.jcol li span { color: var(--muted); font-size: 13.5px; line-height: 1.4; }

/* ---------- giờ vàng ---------- */
.golden {
  margin-top: 40px; border-radius: 24px; padding: 32px;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(246,196,83,.18), transparent 70%),
    linear-gradient(180deg, rgba(246,196,83,.07), rgba(15,10,29,.6));
  border: 1px solid rgba(246,196,83,.3);
}
.gold-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.gold-head h3 { font: 400 36px/1.1 var(--head); margin: 0 0 6px; text-transform: uppercase; }
.gold-head h3 em { font-style: normal; color: var(--gold); }
.gold-head p { margin: 0; color: var(--muted); max-width: 620px; }
.now { text-align: center; background: rgba(0,0,0,.35); border: 1px solid rgba(246,196,83,.35); border-radius: 16px; padding: 12px 22px; flex: none; }
.now span { display: block; color: var(--muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.now b { font: 400 34px/1.1 var(--head); color: var(--gold); }
.gv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 12px; }
.gv {
  border-radius: 14px; padding: 14px 16px; background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.07); transition: .3s;
}
.gv .h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font: 400 22px/1 var(--head); color: #fff; margin-bottom: 10px; white-space: nowrap; }
.gv .h small { font: 700 11px var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.gv ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gv li { font-size: 12.5px; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.06); color: #ddd5ec; }
.gv.live { border-color: var(--gold); background: linear-gradient(180deg, rgba(246,196,83,.22), rgba(246,196,83,.05)); box-shadow: 0 0 30px -6px rgba(246,196,83,.55); }
.gv.live .h small { color: #1d1206; background: var(--gold); padding: 3px 8px; border-radius: 6px; }
.gv.live li { background: rgba(246,196,83,.2); color: #fff3cf; }
.gv.past { opacity: .45; }
.gv-note { margin: 18px 0 0; color: #e8d9b0; font-size: 14.5px; }
.gv-note i { color: var(--gold); margin-right: 6px; }

/* ---------- bước hướng dẫn ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step {
  position: relative; overflow: hidden; padding: 28px 24px 24px; border-radius: var(--r);
  background: var(--panel); border: 1px solid var(--panel-b);
  transition: transform .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); border-color: rgba(34,211,238,.5); }
.step .n { position: absolute; right: 16px; top: 4px; font: 400 76px/1 var(--head); color: rgba(255,255,255,.05); }
.step > i { font-size: 26px; color: var(--cyan); margin-bottom: 14px; display: block; }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- accordion ---------- */
.acc { display: grid; gap: 12px; }
.acc details {
  border-radius: 16px; background: var(--panel); border: 1px solid var(--panel-b);
  transition: border-color .3s, background .3s;
}
.acc details[open] { border-color: rgba(168,85,247,.45); background: rgba(168,85,247,.06); }
.acc summary {
  list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16.5px;
  display: flex; align-items: center; gap: 14px;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary i { color: var(--purple); width: 22px; text-align: center; }
.acc summary::after { content: '+'; margin-left: auto; font-size: 24px; font-weight: 400; color: var(--muted); transition: transform .3s; }
.acc details[open] summary::after { transform: rotate(45deg); color: #fff; }
.acc-b { padding: 0 22px 20px 58px; color: #cfc7df; }
.faq .acc-b { padding-left: 22px; }
.acc-b p { margin: 0 0 10px; }
.acc-b ul { margin: 0 0 10px; padding-left: 18px; }
.acc-b li { margin-bottom: 7px; }
.acc-b li::marker { color: var(--purple); }
.tip { background: rgba(246,196,83,.08); border: 1px solid rgba(246,196,83,.25); padding: 10px 14px; border-radius: 10px; color: #f3e3b6; }
.tip i { color: var(--gold); margin-right: 8px; }

/* ---------- phím ---------- */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.key {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--panel-b); transition: border-color .2s, transform .2s;
}
.key:hover { border-color: rgba(34,211,238,.5); transform: translateY(-3px); }
.key kbd { min-width: 44px; height: 38px; font-size: 14px; color: var(--cyan); }
.key span { margin-left: 6px; color: #ddd6ea; font-weight: 600; font-size: 14.5px; }
.cmds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.cmd { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: rgba(168,85,247,.07); border: 1px solid rgba(168,85,247,.25); }
.cmd code { align-self: flex-start; font-size: 15px; }
.cmd span { color: var(--muted); font-size: 14px; }

/* ---------- luật ---------- */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rule { padding: 24px 22px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--panel-b); border-top: 3px solid var(--purple); }
.rule:nth-child(2n) { border-top-color: var(--cyan); }
.rule:nth-child(3n) { border-top-color: var(--pink); }
.rule > b { font: 400 34px/1 var(--head); color: rgba(255,255,255,.18); }
.rule h3 { margin: 8px 0 6px; font-size: 17px; }
.rule p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- tải về ---------- */
.download { background: radial-gradient(900px 500px at 30% 40%, rgba(124,58,237,.25), transparent 70%), var(--bg); }
.dl { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.dl-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: 44px;
  background: linear-gradient(160deg, rgba(124,58,237,.35), rgba(15,10,29,.85) 55%);
  border: 1px solid rgba(168,85,247,.4);
}
.dl-glow { position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(246,196,83,.35), transparent 65%); }
.dl-logo { position: absolute; right: -40px; bottom: -40px; width: 330px; opacity: .14; transform: rotate(-12deg); }
.dl-card h2 { position: relative; }
.dl-card p { position: relative; color: #d4cbe4; max-width: 520px; }
.dl-card .btn { position: relative; margin: 10px 0 18px; }
.dl-note { font-size: 13.5px; color: var(--muted) !important; }
.dl-note i { color: var(--cyan); margin-right: 6px; }
.dl-side { display: grid; gap: 18px; }
.manual, .req { padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--panel-b); }
.manual h3, .req h3 { margin: 0 0 12px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.manual h3 i, .req h3 i { color: var(--cyan); }
.manual ol { margin: 0 0 14px; padding-left: 20px; color: #cfc7df; }
.ip-block { width: 100%; justify-content: space-between; }
.req ul { list-style: none; margin: 0; padding: 0; }
.req li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 14.5px; }
.req li:last-child { border: 0; }
.req li span { color: var(--muted); }
.req li b { text-align: right; }

/* ---------- discord CTA ---------- */
.cta { padding: 30px 0 100px; }
.cta-in {
  display: flex; align-items: center; gap: 30px; padding: 44px 48px; border-radius: 26px;
  background: linear-gradient(120deg, #4752c4, var(--discord) 40%, #8b5cf6);
  box-shadow: 0 30px 80px -30px rgba(88,101,242,.8);
  position: relative; overflow: hidden;
}
.cta-in::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); }
.cta-in > * { position: relative; }
.cta .big { font-size: 74px; color: #fff; }
.cta h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 0 0 6px; }
.cta p { margin: 0; color: #e3e6ff; }
.cta .btn { margin-left: auto; }

/* ---------- chân trang ---------- */
.foot { border-top: 1px solid var(--panel-b); padding: 40px 0; background: #06040b; }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 54px; }
.foot-brand b { display: block; font: 400 22px/1 var(--head); letter-spacing: .04em; }
.foot-brand span { color: var(--muted); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
.foot nav a { color: #cfc7df; font-weight: 600; font-size: 14.5px; }
.copy { grid-column: 1 / -1; margin: 0; color: #776f8c; font-size: 13px; }

.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(168,85,247,.8);
  opacity: 0; transform: translateY(20px); pointer-events: none; transition: .3s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 60; transform: translate(-50%, 30px);
  background: #fff; color: #1a1030; font-weight: 700; padding: 12px 22px; border-radius: 12px;
  opacity: 0; transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- hiệu ứng hiện khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.c2.reveal.in, .c4.reveal.in { transform: translateY(28px); }

/* ---------- màn hình vừa / nhỏ ---------- */
@media (max-width: 1100px) {
  .fgrid { grid-template-columns: repeat(3, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .menu {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,5,15,.97); border-bottom: 1px solid var(--panel-b); padding: 10px 16px 18px;
    transform: translateY(-120%); transition: transform .35s; margin: 0;
  }
  .menu.open { transform: none; }
  .menu a { padding: 13px 12px; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .m-only { display: block; color: var(--gold) !important; }
  .d-only { display: none; }
  .burger { display: block; }
  .nav-cta { margin-left: auto; }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-logo { order: -1; }
  .sun { left: 50%; bottom: 26%; width: min(520px, 90vw); opacity: .55; }
  .hero-logo img { max-width: 340px; }
  .tag { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 36px; }
  .about, .jobs, .dl { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cmds { grid-template-columns: repeat(2, 1fr); }
  .cta-in { flex-direction: column; text-align: center; }
  .cta .btn { margin: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 80px 0; }
  .brand span { font-size: 18px; }
  .brand img { width: 38px; }
  .btn-discord.btn-sm span { display: none; }
  .btn-lg { padding: 14px 20px; font-size: 16px; width: 100%; justify-content: center; }
  .btn-xl { width: 100%; justify-content: center; padding: 18px; font-size: 17px; }
  .hero { padding-top: 90px; }
  .hero-logo img { max-width: 250px; }
  .t2 { letter-spacing: .12em; -webkit-text-stroke-width: 1.5px; }
  .ip { font-size: 13px; padding: 9px 12px; }
  .fgrid, .steps, .rules, .cmds, .about-cards { grid-template-columns: 1fr; }
  .c2, .c4, .c2.reveal.in, .c4.reveal.in { transform: none; }
  .acard { min-height: 0; }
  .jcol, .golden, .dl-card { padding: 22px 18px; }
  .gold-head { flex-direction: column; }
  .acc-b { padding-left: 22px; }
  .foot-in { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; }
  .cta-in { padding: 32px 22px; }
  .stat b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
