:root {
  --bg: #111216;
  --bg-soft: #15171d;
  --panel: rgba(28, 30, 37, 0.92);
  --panel-soft: #202229;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f4f6;
  --muted: #9a9da8;
  --muted-2: #6f727d;
  --green: #43d38c;
  --blue: #5b6ff1;
  --blue-hover: #6d80ff;
  --red: #ff6e73;
  --font-body: 'Inter', sans-serif;
  --font-display: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; }

.topbar {
  height: 74px;
  padding: 0 clamp(22px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: rgba(15, 16, 20, 0.92);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 4;
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center; }
.brand-mark svg { width: 100%; height: 100%; overflow: visible; }
.mark-back { fill: #29302b; stroke: #e7a52c; stroke-width: 1.5; }
.mark-potato { fill: #db8d21; stroke: #f3c56a; stroke-width: 1.2; }
.mark-plate { fill: none; stroke: #f1f1ef; stroke-width: 2.7; stroke-linecap: round; }
.mark-line { fill: none; stroke: #4fda8f; stroke-width: 2; stroke-linecap: round; }
.mark-dot { fill: #f6f6f4; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; gap: 4px; }
.brand-name { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.brand-subtitle { color: #b5b7bc; font-family: var(--font-display); font-size: 8px; font-weight: 600; letter-spacing: .12em; }

.main-nav { display: flex; align-items: center; gap: clamp(12px, 1.55vw, 25px); margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; color: #d5d6dc; font-size: 12px; white-space: nowrap; transition: color .2s ease; }
.nav-link:hover { color: #fff; }
.nav-icon { color: #e0e1e6; font-size: 12px; line-height: 1; opacity: .9; }
.nav-login { color: #e8e9ed; }
.mobile-menu { display: none; border: 0; background: transparent; padding: 10px; }
.mobile-menu span { display: block; width: 22px; height: 2px; margin: 4px 0; border-radius: 2px; background: #e9e9ec; }

.main-content { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 22px 54px; isolation: isolate; }
.main-content::before { content: ''; position: absolute; inset: 0; z-index: -2; background: radial-gradient(circle at 50% 18%, rgba(68, 94, 143, .16), transparent 42%), linear-gradient(180deg, #111216 0%, #101116 100%); }
.main-content::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .32; pointer-events: none; background-image: radial-gradient(rgba(255,255,255,.08) .7px, transparent .7px); background-size: 5px 5px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
.ambient { position: absolute; border-radius: 50%; filter: blur(1px); opacity: .24; pointer-events: none; z-index: -1; }
.ambient-one { width: 380px; height: 380px; top: 50px; left: 4%; background: radial-gradient(circle, rgba(53, 198, 135, .13), transparent 68%); }
.ambient-two { width: 420px; height: 420px; top: 20px; right: 0; background: radial-gradient(circle, rgba(88, 101, 242, .15), transparent 67%); }
.content-wrap { width: min(100%, 660px); }
.eyebrow { color: #6e7480; font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .18em; display: flex; align-items: center; gap: 12px; margin: 0 0 16px 3px; }
.eyebrow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(67,211,140,.7); }
.eyebrow-line { width: 38px; height: 1px; background: var(--line-strong); }

.panel { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px 30px 25px; box-shadow: 0 24px 60px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025); position: relative; overflow: hidden; animation: panel-in .42s cubic-bezier(.2,.75,.3,1) both; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-kicker { margin: 0 0 7px; color: var(--muted-2); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .16em; }
.panel-kicker span { color: #545762; }
h1 { margin: 0; color: #f4f5f7; font-family: var(--font-display); font-size: clamp(28px, 4vw, 37px); font-weight: 600; letter-spacing: -.045em; line-height: 1.06; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(67,211,140,.2); border-radius: 999px; padding: 7px 10px; color: #a5eac6; background: rgba(67,211,140,.08); font-family: var(--font-display); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.status-dot, .state-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(67,211,140,.85); }
.panel-divider { height: 1px; margin: 24px 0 21px; background: var(--line); }
.process-copy { max-width: 560px; color: #c2c4ca; font-size: 14px; line-height: 1.65; }
.process-copy p { margin: 0 0 14px; }
.process-copy p:last-child { margin-bottom: 0; }
.process-copy strong { color: #f0f1f4; font-weight: 700; }
.process-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 23px 0 24px; padding-top: 17px; border-top: 1px solid var(--line); color: #858994; font-size: 11px; }
.meta-check, .meta-lock { color: var(--green); margin-right: 6px; font-size: 12px; }
.meta-lock { color: #8898fa; }
.primary-button { position: relative; width: 100%; border: 0; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 51px; color: #fff; background: var(--blue); box-shadow: 0 8px 22px rgba(91,111,241,.2); font-family: var(--font-display); font-size: 14px; font-weight: 600; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.primary-button:hover { background: var(--blue-hover); box-shadow: 0 10px 25px rgba(91,111,241,.35); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }
.button-arrow { position: absolute; right: 18px; font-size: 18px; font-weight: 400; line-height: 1; }
.fine-print { margin: 13px 0 0; color: #676a74; font-size: 10px; text-align: center; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 19px 0 0; color: #656975; font-size: 10px; }
.note-shield { color: #7e879b; font-size: 12px; }

.verification-panel { padding-bottom: 27px; }
.verify-header h1 { font-size: clamp(27px, 4vw, 35px); }
.discord-badge { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #e9ebff; background: rgba(91,111,241,.16); border: 1px solid rgba(91,111,241,.35); }
.discord-glyph { font-size: 24px; line-height: 1; transform: rotate(-20deg); }
.account-card { display: flex; align-items: center; gap: 13px; padding: 15px 15px 15px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 9px; background: rgba(255,255,255,.035); }
.avatar-wrap { position: relative; flex: 0 0 auto; }
.avatar { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; color: #fff; background: linear-gradient(145deg, #6577f2 4%, #9557c7 95%); font-family: var(--font-display); font-size: 20px; font-weight: 600; box-shadow: inset 0 0 0 2px rgba(255,255,255,.1); }
.avatar-status { position: absolute; right: -1px; bottom: -1px; width: 13px; height: 13px; border: 3px solid #24262d; border-radius: 50%; background: var(--green); }
.account-details { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-label { color: #747783; font-family: var(--font-display); font-size: 9px; letter-spacing: .12em; }
.account-name { color: #f0f1f4; font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.account-tag { color: #858995; font-size: 12px; font-weight: 500; }
.account-state { display: inline-flex; align-items: center; gap: 6px; color: #8e929e; font-size: 10px; }
.switch-button { margin-left: auto; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: 5px; padding: 7px 10px; color: #a9acb6; background: transparent; font-size: 10px; transition: border-color .2s ease, color .2s ease; }
.switch-button:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.verify-copy { margin: 22px 1px 23px; color: #c2c4ca; font-size: 13px; line-height: 1.6; }
.verify-copy p { margin: 0 0 17px; }
.verify-copy strong { color: #f1f1f4; font-weight: 700; }
.steps { display: flex; flex-direction: column; }
.instruction-step { display: grid; grid-template-columns: 29px minmax(0, 1fr); column-gap: 13px; align-items: stretch; }
.step-rail { position: relative; display: flex; justify-content: flex-start; align-items: flex-start; min-height: 28px; }
.instruction-step:not(:last-child) .step-rail::after { content: ''; position: absolute; top: 31px; bottom: 0; left: 13px; width: 2px; border-radius: 999px; background: linear-gradient(180deg, rgba(67,211,140,.75), rgba(91,111,241,.65)); }
.step-number { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid rgba(173,184,207,.52); border-radius: 50%; color: #c4cad8; background: #252831; font-family: var(--font-display); font-size: 12px; font-weight: 600; box-shadow: 0 0 0 4px rgba(28,30,37,.92); }
.instruction-step.step-one .step-number { border-color: rgba(67,211,140,.72); color: #66e0a4; background: rgba(67,211,140,.14); }
.instruction-step.step-two .step-number { border-color: rgba(91,111,241,.75); color: #aab5ff; background: rgba(91,111,241,.18); }
.step-content { min-width: 0; padding: 0 0 24px; }
.instruction-step:last-child .step-content { padding-bottom: 0; }
.step-content h2 { margin: 1px 0 4px; color: #f0f1f4; font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.step-content p { margin: 0; color: #969aa7; font-size: 12px; line-height: 1.5; }
.key-combination { display: flex; align-items: center; gap: 9px; margin-top: 11px; }
.keycap { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 48px; height: 38px; padding: 0 13px; border: 1px solid rgba(205,215,235,.28); border-radius: 9px; color: #e3e7ef; background: linear-gradient(180deg, #333843 0%, #24272f 100%); box-shadow: 0 4px 10px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.12); font-family: var(--font-display); font-size: 12px; font-weight: 600; line-height: 1; }
.keycap svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.windows-key { min-width: 73px; color: #b8d7ff; }
.ctrl-key { min-width: 60px; }
.enter-key { min-width: 79px; color: #e3e7ef; }
.key-plus { color: #858b9b; font-size: 14px; font-weight: 500; }
.error-message { display: flex; align-items: flex-start; gap: 10px; margin: -3px 0 17px; padding: 12px 13px; border: 1px solid rgba(255,110,115,.25); border-radius: 7px; color: #ff9da0; background: rgba(255,110,115,.08); animation: error-in .3s ease both; }
.error-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; color: #271518; background: var(--red); font-family: var(--font-display); font-size: 11px; font-weight: 700; }
.error-message strong { display: block; color: #ffb7b9; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.error-message span:last-child { display: block; margin-top: 2px; color: #bd8588; font-size: 10px; }

.site-footer { display: flex; align-items: center; justify-content: center; gap: 11px; padding: 0 22px 24px; color: #5d606a; font-family: var(--font-display); font-size: 9px; letter-spacing: .13em; text-align: center; }
.footer-separator { width: 3px; height: 3px; border-radius: 50%; background: #484b54; }

.loader { position: fixed; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; background: #0d0e11; opacity: 1; visibility: visible; transition: opacity .55s ease, visibility .55s ease; }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 13px; transform: translateY(-8px); }
.loader-logo { width: 74px; height: 74px; animation: loader-pulse 1.5s ease-in-out infinite; }
.loader-wordmark { color: #f5f5f6; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.loader-bar { width: 100px; height: 2px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.12); }
.loader-bar span { display: block; width: 38%; height: 100%; border-radius: inherit; background: var(--green); animation: loader-progress 1.05s ease-in-out infinite; }

[hidden] { display: none !important; }
@keyframes panel-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes error-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loader-pulse { 0%, 100% { transform: scale(.96); opacity: .75; } 50% { transform: scale(1.03); opacity: 1; } }
@keyframes loader-progress { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

@media (max-width: 1180px) {
  .main-nav { gap: 14px; }
  .nav-link { font-size: 11px; }
  .nav-icon { display: none; }
}

@media (max-width: 920px) {
  .topbar { height: 68px; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 16px 22px 20px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); background: rgba(15,16,20,.98); }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 10px 0; font-size: 13px; border-bottom: 1px solid rgba(255,255,255,.05); }
  .nav-icon { display: inline-block; width: 19px; color: #9499ae; text-align: center; }
  .mobile-menu { display: block; }
  .main-content { padding-top: 48px; }
}

@media (max-width: 560px) {
  .topbar { padding: 0 17px; }
  .brand-name { font-size: 18px; }
  .brand-mark { width: 47px; height: 47px; }
  .main-content { padding: 35px 14px 56px; }
  .panel { padding: 23px 20px 21px; border-radius: 10px; }
  .panel-header { gap: 10px; }
  .status-pill { padding: 6px 8px; font-size: 9px; }
  .panel-divider { margin: 20px 0 18px; }
  .process-copy { font-size: 13px; line-height: 1.6; }
  .process-meta { flex-direction: column; gap: 8px; margin-top: 20px; margin-bottom: 21px; }
  .account-card { padding: 13px 12px; }
  .account-name { font-size: 14px; }
  .switch-button { padding: 7px 8px; }
  .site-footer { flex-direction: column; gap: 8px; padding-bottom: 18px; font-size: 8px; }
  .footer-separator { display: none; }
}
