/* Slime Hub Get Key page: glass card like the in-game key screen, with a top
   navigation bar and highlighted Premium (gold) and Discord (blurple) cards. */
:root {
  --bg: #051a17;
  --text: #f2fff9;
  --sub: #9ee6cd;
  --muted: #7fcfb4;
  --line: rgba(200, 255, 230, .24);
  --glass: rgba(4, 24, 22, .55);
  --green: #40de78;
  --cyan: #00c2e8;
  --gold-1: #ffe27a;
  --gold-2: #ffb020;
  --gold-3: #ff8a00;
  --blurple: #5865f2;
  --danger: #ff8a95;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
}
.bg {
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(520px 480px at 6% 8%, rgba(64, 222, 120, .28), transparent 70%),
    radial-gradient(560px 520px at 94% 28%, rgba(0, 194, 232, .24), transparent 70%),
    radial-gradient(480px 440px at 40% 108%, rgba(110, 255, 185, .15), transparent 70%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; color: inherit; }
button:disabled { opacity: .5; cursor: progress; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid #89ffcc; outline-offset: 2px; }
[hidden] { display: none !important; }
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }

/* ---- top bar ---- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(4, 24, 22, .6); border-bottom: 1px solid rgba(200, 255, 230, .14);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; }
.brand img { width: 32px; height: 32px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .06); margin-left: 14px; }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--sub); background: none; }
.tabs button[aria-selected="true"] { background: rgba(110, 255, 185, .18); color: var(--text); box-shadow: inset 0 0 0 1px rgba(200, 255, 230, .3); }
.tabs .gold { color: #ffd66b; }
.spacer { flex: 1; }
/* Language switch: the highlighted side is the language you're reading. */
.lang { display: flex; gap: 2px; height: 38px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.lang button { min-width: 34px; padding: 0 8px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--sub); background: none; }
.lang button[aria-pressed="true"] { background: rgba(110, 255, 185, .22); color: var(--text); box-shadow: inset 0 0 0 1px rgba(200, 255, 230, .35); }
.btn-dc, .btn-pro { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.btn-dc { background: var(--blurple); color: #fff; }
.btn-pro { color: #2b1a00; font-weight: 800; background: linear-gradient(135deg, var(--gold-1), var(--gold-2) 55%, var(--gold-3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55); }
.btn-dc:hover, .btn-pro:hover { filter: brightness(1.08); }
.wide { width: 100%; height: 44px; }
.btn-pro .short { display: none; }

/* ---- layout ---- */
.main { flex: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 310px); gap: 22px; justify-content: center; align-items: start; padding: 40px 16px 24px; }
.side { display: grid; gap: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 26px; }

/* ---- key card ---- */
.card { position: relative; border-radius: 26px; padding: 28px 22px 20px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 140px; background: linear-gradient(rgba(255, 255, 255, .1), transparent); pointer-events: none; }
.drips { position: absolute; top: 0; left: 0; right: 0; height: 30px; pointer-events: none; }
.drip { position: absolute; top: -12px; height: 24px; border-radius: 0 0 14px 14px; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.drip.d2 { background: linear-gradient(90deg, #20d0b0, var(--cyan)); }
.drop { position: absolute; top: 0; width: 12px; border-radius: 0 0 8px 8px; background: #3fdca0; }
.drop.d2 { background: #18c9d6; }
.head { position: relative; text-align: center; }
.head img { width: 58px; height: 58px; margin: 4px auto 8px; display: block; }
.head h1 { font-size: 22px; margin: 0; font-weight: 800; }
.head .sub { font-size: 13px; color: var(--sub); margin-top: 2px; min-height: 20px; }

.linked { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; padding: 7px 10px; border-radius: 10px; font-size: 12.5px; background: rgba(88, 101, 242, .2); color: #c9ceff; }
.msg { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; font-size: 13px; background: rgba(255, 255, 255, .07); color: var(--sub); text-align: center; overflow-wrap: anywhere; }
.msg.error { background: rgba(255, 90, 105, .14); color: var(--danger); }
.msg.ok { background: rgba(64, 222, 120, .14); color: #9ff5c0; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 16px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.seg button { padding: 8px 0; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--sub); background: none; }
.seg button small { display: block; font-size: 10.5px; font-weight: 500; opacity: .8; }
.seg button[aria-pressed="true"] { background: rgba(110, 255, 185, .2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(200, 255, 230, .35); }
.steps { display: flex; align-items: center; gap: 6px; margin: 2px 2px 10px; min-height: 26px; }
.dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); color: var(--sub); flex: none; }
.dot.done { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #04201a; }
.dot.now { box-shadow: inset 0 0 0 1.5px #6effb9; color: var(--text); }
.bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .1); }
.bar.done { background: linear-gradient(90deg, var(--green), var(--cyan)); }
.stepinfo { font-size: 13px; color: var(--sub); margin-bottom: 12px; text-align: center; min-height: 20px; }
.stepinfo b { color: var(--text); }
/* step list: name, status, and instructions for the current step */
.step-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid transparent; }
.step.now { background: rgba(110, 255, 185, .1); border-color: rgba(110, 255, 185, .35); }
.step-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; background: rgba(255, 255, 255, .08); color: var(--sub); }
.step.done .step-dot { background: linear-gradient(135deg, var(--green), var(--cyan)); color: #04201a; }
.step.now .step-dot { box-shadow: inset 0 0 0 1.5px #6effb9; color: var(--text); }
.step-body { flex: 1; min-width: 0; }
.step-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.step-top b { font-size: 14px; }
.step.done .step-top b { color: var(--sub); }
.step-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--sub); white-space: nowrap; }
.step.done .step-badge { background: rgba(64, 222, 120, .18); color: #9ff5c0; }
.step.now .step-badge { background: rgba(110, 255, 185, .22); color: var(--text); }
.step-help { margin: 4px 0 2px; font-size: 12.5px; line-height: 1.45; color: var(--sub); }

.turnstile { display: flex; justify-content: center; margin: 4px 0 4px; min-height: 0; }
.turnstile:not(:empty) { min-height: 65px; }
.video { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; margin-bottom: 8px; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 8px; border-radius: 14px; font-weight: 800; font-size: 15px; color: #04201a; background: linear-gradient(90deg, var(--green), var(--cyan)); }
.primary:hover { filter: brightness(1.06); }
.ghost { width: 100%; height: 42px; margin-top: 8px; border-radius: 14px; font-weight: 600; font-size: 14px; background: rgba(255, 255, 255, .08); }
.ghost:hover { background: rgba(255, 255, 255, .13); }
.hint { margin: 12px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

.result label, #panel-check label { display: block; font-size: 12px; color: var(--sub); margin: 14px 0 6px; }
.result input, #panel-check input {
  width: 100%; height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(110, 255, 185, .35);
  background: rgba(0, 0, 0, .25); color: var(--text); font: 600 14px ui-monospace, "Cascadia Mono", Consolas, monospace; text-align: center; letter-spacing: .02em;
}
#panel-check input { text-align: left; font-weight: 500; }
.countdown { margin-top: 8px; text-align: center; font-size: 13px; color: var(--sub); }
.countdown b { color: var(--text); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 13px; }
.facts dt { color: var(--sub); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }

/* ---- Premium card ---- */
.pro { position: relative; border-radius: 22px; padding: 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 190, 60, .22), rgba(40, 26, 4, .55) 55%), rgba(10, 14, 8, .6);
  border: 1px solid rgba(255, 214, 107, .55); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.pro::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(rgba(255, 200, 80, .35), transparent 70%); pointer-events: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: #2b1a00; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); padding: 4px 9px; border-radius: 999px; }
.pro h3 { margin: 10px 0 2px; font-size: 19px; font-weight: 800; color: #fff4d6; }
.pro .desc { font-size: 12.5px; color: #e8cf98; margin: 0 0 12px; }
.perks { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 7px; }
.perks li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #fff1cc; }
.perks li i { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: rgba(255, 214, 107, .18); color: #ffd66b; flex: none; }
.pro .row { display: flex; align-items: center; gap: 10px; }
.price { font-size: 12px; color: #e8cf98; line-height: 1.3; min-width: 0; }
.price b { display: block; font-size: 16px; color: #fff4d6; }
.pro .row .btn-pro { flex: 1; height: 42px; }

/* ---- Discord card ---- */
.dc { position: relative; border-radius: 22px; padding: 16px 18px; overflow: hidden;
  background: linear-gradient(160deg, rgba(88, 101, 242, .35), rgba(12, 14, 40, .6) 60%), rgba(8, 10, 24, .55);
  border: 1px solid rgba(140, 150, 255, .5); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.dc .top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dc .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--blurple); display: grid; place-items: center; color: #fff; flex: none; }
.dc h3 { margin: 0; font-size: 16px; font-weight: 800; }
.dc .desc { font-size: 12.5px; color: #c3c8ff; margin-top: 1px; }
.dc .live { display: flex; gap: 14px; margin: 0 0 12px; font-size: 12px; color: #c3c8ff; }
.dc .live b { color: #fff; }
.dc .live .online::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ba55c; margin-right: 6px; }

/* ---- Premium tab: plan cards ---- */
.plans { width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px 16px 24px; flex: 1; }
.plans-head { text-align: center; margin-bottom: 26px; }
.plans-head h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 12px 0 6px; }
.plans-head p { margin: 0; color: var(--sub); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; border-radius: 22px; padding: 22px 20px 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 190, 60, .14), rgba(40, 26, 4, .5) 60%), rgba(10, 14, 8, .6);
  border: 1px solid rgba(255, 214, 107, .35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.plan-card.featured { border-color: rgba(255, 214, 107, .85); background: linear-gradient(160deg, rgba(255, 190, 60, .26), rgba(40, 26, 4, .55) 60%), rgba(10, 14, 8, .6); }
.plan-card.featured::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(rgba(255, 200, 80, .35), transparent 70%); pointer-events: none; }
.plan-tag { align-self: flex-start; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #2b1a00; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); padding: 3px 9px; border-radius: 999px; margin-bottom: 10px; }
.plan-card h3 { margin: 0; font-size: 20px; font-weight: 800; color: #fff4d6; }
.plan-price { margin: 8px 0 16px; font-size: 26px; font-weight: 800; color: #ffd66b; letter-spacing: -.01em; }
.plan-card .perks { flex: 1; margin-bottom: 18px; }
.plans .hint { margin-top: 20px; }

/* ---- mobile ---- */
@media (max-width: 760px) {
  .main { grid-template-columns: minmax(0, 1fr); max-width: 460px; margin: 0 auto; padding-top: 16px; }
  .topbar { gap: 8px; }
  .brand { font-size: 15px; }
  .brand img { width: 28px; height: 28px; }
  .tabs { order: 10; width: 100%; margin: 4px 0 0; }
  .tabs button { flex: 1; padding: 8px 4px; font-size: 13px; }
  .btn-dc span { display: none; }
  .btn-dc { width: 38px; padding: 0; }
  .topbar .btn-pro { padding: 0 11px; font-size: 12.5px; }
  .topbar .btn-pro .long { display: none; }
  .topbar .btn-pro .short { display: inline; }
  .card { padding: 26px 16px 18px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); max-width: 420px; margin: 0 auto; }
  .plans-head h1 { font-size: 24px; }
}
@media (max-width: 360px) {
  .topbar .btn-pro .short { display: none; }
  .topbar .btn-pro { width: 38px; padding: 0; }
}
