:root {
  --bg: #05060f;
  --panel: #0b1020;
  --panel2: #0e1526;
  --line: #1c2440;
  --blue: #2563eb;
  --blue2: #3b82f6;
  --purple: #7c3aed;
  --magenta: #c026d3;
  --cyan: #22d3ee;
  --green: #22c55e;
  --text: #e5e9f5;
  --muted: #8b93ad;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

#nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 6, 15, .85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 72px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; letter-spacing: 2px; }
.logo { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.links { display: flex; gap: 26px; margin-left: 24px; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.links a:hover, .links a.active { color: #fff; border-color: var(--purple); }
.btn-nav { margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 13px 26px; color: #fff;
}
.btn-primary { background: linear-gradient(90deg, var(--blue), var(--purple)); box-shadow: 0 6px 24px rgba(124, 58, 237, .35); }
.btn-primary:hover { filter: brightness(1.12); }
.btn-ghost { background: transparent; border: 1px solid #3b2a55; color: #d8b4fe; }
.btn-ghost:hover { border-color: var(--purple); }
.btn-small { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-danger { background: #7f1d1d; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

#page { min-height: 70vh; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, #60a5fa, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad2 { background: linear-gradient(90deg, #a855f7, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("/assets/hero.png") right center / cover no-repeat;
  opacity: .5;
  mask-image: linear-gradient(90deg, transparent 0%, black 45%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 45%);
}
.hero-grid {
  position: relative;
  max-width: 1240px; margin: 0 auto; padding: 70px 24px 80px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #3b2a55; border-radius: 999px; padding: 8px 18px;
  color: #c4b5fd; font-size: 13px; font-weight: 700; letter-spacing: 1px;
  background: rgba(124, 58, 237, .12);
}
h1.hero-title { font-size: 62px; line-height: 1.05; font-weight: 800; margin: 22px 0 18px; }
h1.hero-title .l2 { display: block; background: linear-gradient(90deg, #3b82f6, #a855f7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; color: #b9c3dd; max-width: 520px; }
.hero-points { display: flex; gap: 30px; margin: 30px 0; }
.hp { display: flex; gap: 12px; align-items: flex-start; }
.hp .ic { font-size: 26px; }
.hp b { display: block; font-size: 15px; }
.hp span { font-size: 13px; color: var(--muted); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.trust { margin-top: 22px; color: var(--muted); font-size: 13.5px; display: flex; gap: 18px; flex-wrap: wrap; }

/* app window mock */
.win {
  border: 1px solid #27407c; border-radius: 16px; overflow: hidden;
  background: rgba(8, 11, 24, .92); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 60px rgba(59, 130, 246, .15);
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
}
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0a0f22; border-bottom: 1px solid var(--line); }
.win-bar .t { font-size: 12px; color: var(--muted); margin-right: auto; display: flex; gap: 8px; align-items: center; }
.win-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #26314f; }
.win-body { display: grid; grid-template-columns: 150px 1fr; min-height: 330px; }
.win-side { border-right: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.win-side div { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 8px; }
.win-side div.on { background: linear-gradient(90deg, var(--blue), var(--purple)); color: #fff; }
.win-main { padding: 16px; display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.win-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mini-ring {
  width: 120px; height: 120px; margin: 14px auto; border-radius: 50%;
  background: conic-gradient(var(--blue), var(--purple), var(--magenta), var(--blue));
  display: flex; align-items: center; justify-content: center;
}
.mini-ring span {
  width: 92px; height: 92px; border-radius: 50%; background: #0b1020;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.win-rows div { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #b9c3dd; padding: 7px 0; }
.win-rows .ok { color: var(--green); margin-left: auto; font-size: 10.5px; }
.win-games { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.win-games div { background: #101a33; border: 1px solid var(--line); border-radius: 8px; padding: 10px 8px; text-align: center; font-size: 10.5px; color: #b9c3dd; }

/* sections */
section.band { padding: 76px 0; border-bottom: 1px solid var(--line); }
.kicker { color: #a855f7; font-weight: 800; letter-spacing: 3px; font-size: 13px; text-align: center; }
h2.band-title { text-align: center; font-size: 38px; font-weight: 800; margin: 10px 0 46px; }
.feat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.feat { text-align: center; }
.feat .ic {
  width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 14px;
  border: 1px solid #3b2a55; background: rgba(124, 58, 237, .1);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.feat b { font-size: 16px; }
.feat p { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card ul { list-style: none; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.card li { font-size: 14px; color: #b9c3dd; display: flex; gap: 10px; }
.card li.no { color: #64708c; }
.price { font-size: 40px; font-weight: 800; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.card.featured { border-color: var(--purple); box-shadow: 0 0 50px rgba(124, 58, 237, .25); position: relative; }
.tag { position: absolute; top: -12px; right: 22px; background: linear-gradient(90deg, var(--blue), var(--purple)); padding: 5px 14px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: 1px; }

.games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.game-tile { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--panel2); }
.game-tile .art { position: relative; height: 110px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; letter-spacing: 1px; color: #dbe6ff; }
.game-tile .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-tile .art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-tile .meta { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.chip { font-size: 11px; color: #86efac; background: #06231a; border: 1px solid #14532d; padding: 3px 10px; border-radius: 999px; }

/* forms */
.form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 13.5px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.form input, .form select, .form textarea {
  background: #0a1122; border: 1px solid var(--line); color: var(--text);
  border-radius: 10px; padding: 12px 14px; font-size: 14.5px; font-family: inherit;
}
.form input:focus, .form select:focus { outline: 1px solid var(--purple); }
.note { background: #0b1226; border: 1px solid #27407c; border-radius: 12px; padding: 16px; font-size: 14px; color: #b9c3dd; }
.note b { color: #93c5fd; }
.alert { background: #2a1015; border: 1px solid #7f1d1d; color: #fca5a5; border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.keybox {
  font-family: Consolas, monospace; font-size: 20px; letter-spacing: 2px; text-align: center;
  background: #06231a; border: 1px dashed #16a34a; color: #86efac; border-radius: 12px; padding: 18px;
  cursor: pointer;
}

/* account */
.plan-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 14px; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill.active { background: #06231a; color: #86efac; border: 1px solid #16a34a; }
.pill.pending { background: #2a2005; color: #fde047; border: 1px solid #7c5a06; }
.pill.rejected { background: #2a1015; color: #fca5a5; border: 1px solid #7f1d1d; }
.bar { height: 6px; border-radius: 999px; background: var(--panel2); overflow: hidden; margin-top: 14px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--purple)); }

/* admin */
.admin-tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.admin-tabs button { background: var(--panel2); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; padding: 9px 18px; cursor: pointer; font-size: 13.5px; font-weight: 700; }
.admin-tabs button.on { background: linear-gradient(90deg, var(--blue), var(--purple)); color: #fff; border-color: transparent; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.st { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.st.pending { background: #2a2005; color: #fde047; }
.st.approved { background: #06231a; color: #86efac; }
.st.rejected { background: #2a1015; color: #fca5a5; }
.st.unused { background: #0b1226; color: #93c5fd; }
.st.used { background: #1a1023; color: #c4b5fd; }

/* footer */
#footer { border-top: 1px solid var(--line); margin-top: 40px; background: #070a16; }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 46px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand { font-size: 20px; font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.footer-h { font-size: 13px; font-weight: 800; letter-spacing: 1px; color: #b9c3dd; margin-bottom: 12px; }
#footer a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
#footer a:hover { color: #fff; }
.footer-base { text-align: center; color: #3556b8; font-size: 12.5px; letter-spacing: 3px; padding: 18px; border-top: 1px solid var(--line); }

.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: #0e1526; border: 1px solid var(--purple); padding: 12px 24px; border-radius: 12px; font-size: 14px; }
.toast.hidden { display: none; }

.page-head { padding: 64px 0 30px; text-align: center; }.page-head h1 { font-size: 42px; font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 10px; }
.section { padding: 30px 0 70px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .win { display: none; }
  h1.hero-title { font-size: 44px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .links { display: none; }
}
