/* KRX site — the client's main menu (the owner's reference "site KRX"): #020203, the cold glow #E6EEFF,
   spaced labels, menu buttons that slide left on hover; the logo of particles is drawn by stage.js. */
:root {
  --bg: #020203;
  --text: #e9ebef;
  --muted: #9a9ea8;
  --dim: #8e8e96;
  --faint: #5d6068;
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.32);
  --glow: 230, 238, 255;
  --gold: #e6eeff;
  --green: #4ade80;
  --red: #f87171;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  background: var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; line-height: 1.55;
  min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(var(--glow), 0.25); }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
main, .footer { position: relative; z-index: 1; }

.label { font-size: 11px; font-weight: 500; letter-spacing: 0.42em; color: var(--dim); text-transform: uppercase; }

/* ---------- menu buttons ---------- */
.krx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; cursor: pointer;
  font: 500 14px/1 Inter, system-ui, sans-serif; letter-spacing: 0.01em; color: var(--text); white-space: nowrap;
  background: linear-gradient(180deg, rgba(28, 29, 33, 0.92), rgba(16, 17, 20, 0.92));
  border: 1px solid var(--line); border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease), border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.35s var(--ease);
}
.krx-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.krx-btn:hover {
  transform: translateX(-4px); border-color: var(--line-hi); color: #fff;
  background: linear-gradient(180deg, rgba(40, 41, 46, 0.95), rgba(22, 23, 27, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(255, 255, 255, 0.03);
}
.krx-btn:active { transform: translateX(-4px) scale(0.98); transition-duration: 0.1s; }
.krx-btn:focus-visible, summary:focus-visible, .topbar a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.krx-btn.small { height: 38px; padding: 0 16px; font-size: 13.5px; }
.krx-btn.primary {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, rgba(44, 45, 51, 0.95), rgba(24, 25, 29, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 10px 24px rgba(0, 0, 0, 0.35), 0 0 24px rgba(var(--glow), 0.06);
}
.krx-btn.primary:hover { border-color: rgba(255, 255, 255, 0.5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.45), 0 0 32px rgba(var(--glow), 0.12); }
.krx-btn[disabled], .krx-btn[disabled]:hover { opacity: 0.4; cursor: default; transform: none; border-color: var(--line); }

/* ---------- intro timings (as in the menu) ---------- */
.intro .krx-up { animation: krx-up 1s var(--ease) both; }
@keyframes krx-up { 0% { opacity: 0; transform: translateY(18px); filter: blur(8px); } }
.intro .krx-fade { animation: krx-fade 1.2s ease both; }
@keyframes krx-fade { 0% { opacity: 0; } }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 64px; padding: 0 clamp(16px, 4vw, 48px);
  display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s; animation: krx-fade 1.2s ease 1.6s both;
}
.topbar.scrolled {
  background: linear-gradient(180deg, rgba(2, 2, 3, 0.92), rgba(2, 2, 3, 0.65)); border-bottom-color: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.tb-brand { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 500; letter-spacing: 0.42em; color: var(--dim); }
.tb-mark { width: 62px; height: 20px; display: block; }
.topbar nav { display: flex; align-items: center; gap: 26px; font-size: 13.5px; color: var(--muted); }
.topbar nav a { transition: color 0.2s; }
.topbar nav a:hover, .topbar nav a.on { color: #fff; }
.tb-acc { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; }
.tb-acc:hover { border-color: var(--line-hi); }
.tb-acc svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.hero-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 16px 0; text-align: center; }
/* the particle logo is drawn on #stage over this box */
#logo-anchor { width: min(620px, 86vw); aspect-ratio: 231 / 123; max-height: 40vh; margin-bottom: 46px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-cta .krx-btn { height: 48px; padding: 0 26px; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li + li::before { content: ""; width: 3px; height: 3px; margin-right: 20px; background: var(--faint); border-radius: 1px; }
.hero-meta svg { width: 15px; height: 15px; fill: none; stroke: rgb(var(--glow)); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 22px; height: 36px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 12px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; background: rgb(var(--glow)); border-radius: 2px; animation: sh 1.8s infinite; }
@keyframes sh { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- sections ---------- */
.section { width: min(1040px, 100% - 32px); margin: 0 auto; padding: 130px 0 0; scroll-margin-top: 20px; }
.section.narrow { width: min(720px, 100% - 32px); }
.section-head { text-align: center; margin-bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.reveal { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* features: a slow ribbon of what is inside, and three glowing numbers */
.feat2 { padding-top: 40px; scroll-margin-top: 40px; }
.marquee {
  position: relative; overflow: hidden; padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.mq-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: mq 46s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
.mq-track span { font-size: clamp(22px, 3vw, 34px); font-weight: 500; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; transition: color 0.3s, text-shadow 0.3s; }
.mq-track span:hover { color: #fff; text-shadow: 0 0 26px rgba(var(--glow), 0.6); }
.mq-track span:nth-child(4n + 3) { color: var(--faint); }
.mq-track i { font-style: normal; font-size: 14px; color: rgb(var(--glow)); opacity: 0.6; }
@keyframes mq { to { transform: translateX(-50%); } }
.stats3 { width: min(900px, 100% - 32px); margin: 90px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.stats3 div { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stats3 div + div { border-left: 1px solid rgba(255, 255, 255, 0.06); }
.stats3 b { font-size: clamp(48px, 7vw, 84px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: #fff; text-shadow: 0 0 40px rgba(var(--glow), 0.35); }

/* plans: prices, the sale */
.sale { margin-top: 4px; padding: 6px 14px; border-radius: 999px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: #e6eeff; border: 1px solid rgba(var(--glow), 0.4); background: rgba(var(--glow), 0.06); box-shadow: 0 0 24px rgba(var(--glow), 0.12); }
.plan .price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 22px; }
.plan .price b { font-weight: 600; }
.plan .price s { font-size: 15px; color: var(--faint); }
.plan .note { display: block; margin-bottom: 20px; font-size: 12.5px; color: var(--dim); }

/* trial / friends / HWID reset */
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.extra {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; border-radius: 6px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 21, 24, 0.7), rgba(10, 11, 13, 0.7)); transition: border-color 0.25s, transform 0.35s var(--ease);
}
.extra b { font-weight: 500; font-size: 15px; }
.extra b em { font-style: normal; color: var(--gold); }
.extra i { position: absolute; right: 20px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--dim); transition: transform 0.3s var(--ease), color 0.2s; }
.extra[href]:hover { border-color: var(--line-hi); transform: translateX(-4px); }
.extra[href]:hover i { transform: translateX(4px); color: #fff; }
.extra[aria-disabled] { opacity: 0.75; }
.extra[aria-disabled] i { display: none; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 26px 22px 22px; border-radius: 6px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 21, 24, 0.93), rgba(10, 11, 13, 0.93));
  scroll-margin-top: 120px; transition: border-color 0.25s, transform 0.35s var(--ease);
}
.plan:hover { border-color: var(--line-hi); transform: translateY(-3px); }
.plan .big { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.plan .big b { font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.plan .big span { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.plan .note:empty, .plan .price:empty { display: none; }
.plan .krx-btn { margin-top: auto; width: 100%; }
.plan.best { border-color: rgba(var(--glow), 0.32); box-shadow: 0 0 40px rgba(var(--glow), 0.06); }
.plan .tag { position: absolute; top: 14px; right: 16px; font-size: 10px; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: rgb(var(--glow)); }
.plan.target { animation: flash 1.4s ease 2; }
@keyframes flash { 40% { border-color: rgba(var(--glow), 0.9); box-shadow: 0 0 0 4px rgba(var(--glow), 0.12); } }
.trial { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.trial .label { color: var(--muted); transition: color 0.2s; }
.trial i { font-style: normal; color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.trial:hover .label, .trial:hover i { color: #fff; }
.trial:hover i { transform: translateX(4px); }

/* faq */
.faq { display: grid; gap: 8px; }
.faq details {
  border-radius: 6px; border: 1px solid var(--line); padding: 0 22px;
  background: linear-gradient(180deg, rgba(20, 21, 24, 0.78), rgba(10, 11, 13, 0.78)); transition: border-color 0.25s, opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.faq details[open] { border-color: var(--line-hi); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 18px; line-height: 1.2; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding: 0 0 18px; font-size: 14.5px; }

/* footer */
.footer { width: min(1040px, 100% - 32px); margin: 140px auto 0; padding: 26px 0 36px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.footer small { color: var(--faint); font-size: 12px; }

/* ---------- cabinet ---------- */
#cabinet { min-height: calc(100vh - 120px); padding: 150px 16px 0; }
.auth { width: min(340px, 100%); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; animation: krx-up 0.9s var(--ease) both; }
#authForm { width: 100%; display: grid; gap: 10px; }
.auth { padding-top: 8vh; }
.auth-mark { width: 186px; height: 60px; display: block; margin-bottom: 8px; filter: drop-shadow(0 0 18px rgba(var(--glow), 0.35)); }
input {
  display: block; width: 100%; height: 46px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--line);
  background: rgba(10, 11, 13, 0.82); color: var(--text); font: 400 14.5px Inter, sans-serif; outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
input::placeholder { color: var(--faint); }
input:focus { border-color: var(--line-hi); box-shadow: 0 0 0 4px rgba(var(--glow), 0.05); }
#authForm .krx-btn { width: 100%; margin-top: 4px; }
.switch { font-size: 13.5px; color: var(--dim); }
.switch button { color: var(--text); font-weight: 500; }
.switch button:hover { text-decoration: underline; text-underline-offset: 3px; }
.err { color: var(--red); font-size: 13px; }
.err.info { color: var(--dim); }
.ok { color: var(--green); font-size: 13px; }
.err:empty, .ok:empty { display: none; }

/* the cabinet — the owner's own layout (site KRX/cabinet.html): a side panel, overview tiles, boxes */
#cabinet:has(.dash:not([hidden])) { padding-top: 96px; }
.dash { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 250px 1fr; gap: 20px; align-items: start; }
.intro .krx-in { animation: krx-in 0.9s var(--ease) both; }
@keyframes krx-in { 0% { opacity: 0; transform: translateX(28px); filter: blur(8px); } }
.side {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.9), rgba(8, 8, 10, 0.94)); border: 1px solid var(--line);
}
.me { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.avatar {
  flex: none; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; font-weight: 600; color: rgb(var(--glow));
  background: linear-gradient(135deg, #2c2e34, #15161a); border: 1px solid var(--line); text-shadow: 0 0 10px rgba(var(--glow), 0.7);
}
.me-text { display: flex; flex-direction: column; min-width: 0; }
.me-text b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.me-text span { font-size: 12px; color: var(--muted); }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-btn {
  display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: 6px; font-size: 13.5px; color: var(--muted);
  border: 1px solid transparent; transition: color 0.2s, background 0.25s, border-color 0.25s, transform 0.35s var(--ease);
}
.side-btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.side-btn:hover { color: #fff; transform: translateX(3px); }
.side-btn.active { color: #fff; border-color: rgba(255, 255, 255, 0.14); background: linear-gradient(180deg, rgba(40, 41, 46, 0.9), rgba(22, 23, 27, 0.9)); }
.side-tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--gold); }
.logout { margin-top: 6px; width: 100%; }

.pane-title { font-size: 24px; margin: 2px 0 18px; }
.pane-in { animation: krx-in 0.7s var(--ease) both; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.box {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 8px; min-width: 0;
  background: linear-gradient(180deg, rgba(24, 25, 29, 0.88), rgba(10, 10, 12, 0.92)); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.35);
}
.box-text { display: block; color: var(--muted); font-size: 13px; }
.box-text.dim { color: var(--dim); }
.box-text:empty { display: none; }
.big { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.span2 { grid-column: 1 / -1; }
.status { display: flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 600; }
.status i { width: 8px; height: 8px; flex: none; border-radius: 2px; background: #5d6068; }
.status.on i { background: rgb(var(--glow)); box-shadow: 0 0 10px rgba(var(--glow), 0.9); }
.status.off { color: var(--muted); }
.status.sm { font-size: 13px; font-weight: 500; }
.bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #8e8e96, rgb(var(--glow))); box-shadow: 0 0 12px rgba(var(--glow), 0.5); transition: width 1s var(--ease); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 25, 29, 0.88), rgba(10, 10, 12, 0.92)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat .label { font-size: 10px; letter-spacing: 0.3em; }
.stat b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.hl b { color: #fff; text-shadow: 0 0 18px rgba(var(--glow), 0.35); }
.box::after, .stat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.35s; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--glow), 0.06), transparent 60%); }
.box:hover::after, .stat:hover::after { opacity: 1; }

.sub-hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; padding: 0; }
.sub-main, .launcher { display: flex; flex-direction: column; gap: 14px; padding: 22px; min-width: 0; }
.launcher { border-left: 1px solid rgba(255, 255, 255, 0.06); background: radial-gradient(120% 90% at 100% 0%, rgba(var(--glow), 0.05), transparent 60%); }
.actions, .launcher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.actions .krx-btn, .launcher-actions .krx-btn { padding: 0 20px; }
.code { display: flex; align-items: center; gap: 12px; }
.code span { font: 500 30px/1 Consolas, ui-monospace, monospace; letter-spacing: 0.1em; color: #fff; text-shadow: 0 0 24px rgba(var(--glow), 0.45); }
.copy { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.copy:hover { color: #fff; border-color: var(--line-hi); }
.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.timer { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }

.inline-form { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form input { flex: 1 1 200px; min-width: 0; font-family: Consolas, ui-monospace, monospace; letter-spacing: 0.05em; text-transform: uppercase; }
#refLink { text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.inline-form .krx-btn { flex: none; }
.stack-form { display: flex; flex-direction: column; gap: 8px; }
.stack-form .krx-btn { align-self: flex-start; }

.log { list-style: none; display: flex; flex-direction: column; }
.log li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, 0.06); font-size: 13.5px; }
.log li:first-child { border-top: 0; padding-top: 0; }
.log li.bad span { color: var(--red); }
.log time { color: var(--dim); font-size: 12px; white-space: nowrap; }
.empty.small { font-size: 13px; color: var(--muted); }
.empty.small a { color: rgb(var(--glow)); }

.pc { display: flex; flex-direction: column; gap: 8px; }
.pc small { font-size: 12px; color: var(--dim); }
.hwid { align-self: flex-start; font-family: Consolas, ui-monospace, monospace; font-size: 13px; color: #cfd3da; padding: 8px 12px; border-radius: 6px; background: rgba(0, 0, 0, 0.35); border: 1px solid rgba(255, 255, 255, 0.06); }
.reset-opts { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.22); }
.opt.paid { border-color: rgba(var(--glow), 0.22); background: linear-gradient(90deg, rgba(var(--glow), 0.05), rgba(0, 0, 0, 0.22)); }
.opt div { display: flex; flex-direction: column; min-width: 0; }
.opt b { font-size: 13.5px; font-weight: 500; }
.opt small { font-size: 12px; color: var(--muted); }
.opt .krx-btn { flex: none; height: 36px; }

.ref-hero { background: radial-gradient(90% 120% at 100% 0%, rgba(var(--glow), 0.07), transparent 60%), linear-gradient(180deg, rgba(24, 25, 29, 0.88), rgba(10, 10, 12, 0.92)); }
.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 4px; }
.how li { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.06); background: rgba(0, 0, 0, 0.2); font-size: 13px; color: var(--muted); }
.how b { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line-hi); color: #fff; font-size: 12px; }
.gp .err, .box .err, .box .ok { margin-top: -4px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 30; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: 6px; border: 1px solid var(--line-hi); background: rgba(16, 17, 20, 0.95); color: #fff; font-size: 13.5px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); transition: opacity 0.3s, transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-nav { flex-direction: row; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scroll-hint { display: none; }
  .topbar nav { gap: 16px; }
  .topbar nav .hide-sm, .tb-brand span { display: none; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 340px; }
  .hero-cta .krx-btn { width: 100%; }
  .hero-meta li + li::before { display: none; }
  .hero-meta { gap: 8px 18px; }
  .section { padding-top: 100px; }
  .plan { padding: 20px 16px 16px; }
  .plan .big b { font-size: 34px; }
  .footer { flex-direction: column; margin-top: 100px; }
  .cards, .sub-hero, .how { grid-template-columns: 1fr; }
  .launcher { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.06); }
  .side-btn { height: 36px; padding: 0 10px; font-size: 13px; }
  .inline-form { flex-wrap: wrap; }
  .inline-form input { flex: 1 1 100%; }
  .stats3 { margin-top: 60px; }
  .stats3 .label { letter-spacing: 0.24em; font-size: 10px; }
  #cabinet { padding-top: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .plan.best { animation: none; }
}
.plan.best:hover { border-color: transparent; }

/* what a plan gives */
.perks { list-style: none; display: flex; flex-direction: column; gap: 9px; margin: 14px 0 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.perks li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.perks li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 9px; height: 5px; border: solid rgb(var(--glow)); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg); opacity: 0.8; }
.perks li.plus { color: var(--text); }
.plan.best .perks li::before, #plan-forever .perks li.plus::before { border-color: var(--gold); }
#plan-forever .perks li:last-child { color: #ffffff; }

/* ---------- cabinet layout v2: a top bar with tabs, a 3-column grid, aligned buttons ---------- */
.dash { display: flex; flex-direction: column; align-items: stretch; gap: 18px; width: min(1120px, 100%); }
.dhead {
  display: flex; align-items: center; gap: 22px; padding: 12px 14px 12px 16px; border-radius: 10px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 21, 25, 0.9), rgba(8, 8, 10, 0.94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.dhead .me { padding: 0; border: 0; flex: none; }
.dhead .side-nav { flex-direction: row; gap: 4px; margin: 0 auto; }
.dhead .side-btn { height: 38px; padding: 0 14px; }
.dhead .side-btn:hover { transform: none; }
.dhead .logout { width: auto; margin: 0; flex: none; }
.pane-title { display: none; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.span3 { grid-column: 1 / -1; }
.grid3 .span2 { grid-column: span 2; }
.box > .row-between .status.sm { font-size: 12.5px; }

/* the plan: the big number */
.sub-card { gap: 10px; }
.sub-card.paid { border-color: rgba(var(--glow), 0.32); background: radial-gradient(80% 120% at 0% 0%, rgba(var(--glow), 0.07), transparent 60%), linear-gradient(180deg, rgba(24, 25, 29, 0.88), rgba(10, 10, 12, 0.92)); }
.sub-big { display: flex; align-items: baseline; gap: 12px; margin-top: 6px; }
.sub-big b { font-size: 64px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.sub-card.paid .sub-big b { background: linear-gradient(180deg, #ffffff, #dfe8ff 70%, #8e93a3); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(var(--glow), 0.25)); }
.sub-big span { font-size: 15px; color: var(--muted); }
.sub-foot { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 10px; }
.sub-foot .bar { flex: 1; }
.sub-foot .bar[hidden] + .actions { margin-left: 0; }
.sub-foot .actions { margin: 0 0 0 auto; flex: none; }
.sub-card.paid .bar span { background: linear-gradient(90deg, #8e93a3, #e6eeff); box-shadow: 0 0 12px rgba(var(--glow), 0.5); }

/* the launcher and friends: buttons stacked, full width, at the bottom */
.stack-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.stack-actions .krx-btn { width: 100%; }
.launch-card .code span { font-size: 28px; }

/* activation: two equal rows */
.act-row { display: grid; grid-template-columns: 92px 1fr 150px; gap: 10px; align-items: center; }
.act-name { font-size: 13.5px; color: var(--muted); }
.act-row input { height: 46px; font-family: Consolas, ui-monospace, monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.act-row .krx-btn { width: 100%; height: 46px; }
.act-row + .err, .act-row + .err + .ok { margin-top: -6px; }

.gold-tag { font-size: 12px; font-weight: 600; color: var(--gold); }
.fm-num { display: flex; align-items: baseline; gap: 12px; margin-top: 4px; }
.fm-num b { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.fm-num span { font-size: 13px; color: var(--muted); }
.fm-num em { font-style: normal; color: var(--gold); }

@media (max-width: 900px) {
  .dhead { flex-wrap: wrap; }
  .dhead .side-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .dhead .logout { margin-left: auto; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 .span2, .span3 { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .grid3 { grid-template-columns: 1fr; }
  .dhead .side-btn { padding: 0 10px; font-size: 12.5px; gap: 7px; }
  .dhead .side-btn svg { display: none; }
  .sub-foot { flex-direction: column; align-items: stretch; }
  .sub-foot .actions { margin: 0; }
  .act-row { grid-template-columns: 1fr; gap: 8px; }
  .act-name { font-size: 12px; }
  .sub-big b { font-size: 52px; }
}
@media (max-width: 900px) {
  .dhead .side-nav { flex-wrap: nowrap; scrollbar-width: none; }
  .dhead .side-btn { flex: none; }
}
@media (max-width: 640px) {
  .sub-foot .bar { flex: none; }
}

/* ---------- plans: no yellow, cold light only; pill buttons ---------- */
.plan.best { background:
  linear-gradient(180deg, #141518, #0a0a0c) padding-box,
  conic-gradient(from var(--a), rgba(var(--glow), 0.06), rgba(var(--glow), 0.75), rgba(var(--glow), 0.06) 30%, rgba(var(--glow), 0.06) 70%, rgba(255, 255, 255, 0.6), rgba(var(--glow), 0.06)) border-box;
  box-shadow: 0 0 50px -12px rgba(var(--glow), 0.22); }
.plan.best .tag { color: rgb(var(--glow)); text-shadow: 0 0 12px rgba(var(--glow), 0.6); }
.plan.best .big b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff; text-shadow: 0 0 24px rgba(var(--glow), 0.45); }
.plan.best .perks li::before, #plan-forever .perks li.plus::before { border-color: rgb(var(--glow)); }
#plan-forever .perks li:last-child { color: #fff; }
.extra b em { color: #fff; }
.sale { color: rgb(var(--glow)); border-color: rgba(var(--glow), 0.35); background: rgba(var(--glow), 0.05); box-shadow: 0 0 24px rgba(var(--glow), 0.1); }

.plan .krx-btn {
  height: 46px; border-radius: 999px; font-size: 14px; letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: none;
}
.plan .krx-btn:hover:not([disabled]) { transform: translateY(-2px); background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.4); box-shadow: 0 0 26px rgba(var(--glow), 0.18); }
.plan.best .krx-btn { background: #f4f4f5; color: #0b0b0d; border-color: transparent; font-weight: 600; box-shadow: 0 0 30px rgba(var(--glow), 0.25); }
.plan.best .krx-btn:hover:not([disabled]) { background: #fff; color: #0b0b0d; box-shadow: 0 0 40px rgba(var(--glow), 0.4); }
.plan .krx-btn[disabled] { opacity: 1; color: var(--dim); border-style: dashed; border-color: rgba(255, 255, 255, 0.14); background: transparent; }
.plan.best .krx-btn[disabled] { color: #3a3b40; background: rgba(244, 244, 245, 0.55); border: 0; box-shadow: none; }

/* ---------- every button is round ---------- */
.krx-btn, .krx-btn.small, .plan .krx-btn, .row-form .krx-btn, .act-row .krx-btn, .inline-form .krx-btn, .opt .krx-btn { border-radius: 999px; }
.tb-acc { border-radius: 999px; padding: 0 16px; }
.side-btn, .dhead .side-btn { border-radius: 999px; }
.copy { border-radius: 50%; }
.dhead { border-radius: 999px; padding: 10px 12px 10px 12px; }
.avatar { border-radius: 50%; }
@media (max-width: 900px) { .dhead { border-radius: 20px; } }

/* ---------- buttons: slightly rounded (like the launcher), not pills ---------- */
.krx-btn, .krx-btn.small, .plan .krx-btn, .row-form .krx-btn, .act-row .krx-btn, .inline-form .krx-btn, .opt .krx-btn { border-radius: 10px; }
.tb-acc, .side-btn, .dhead .side-btn { border-radius: 10px; }
.dhead { border-radius: 14px; }

/* ---------- plans as rows: term · perks · price · button ---------- */
.plans { display: flex; flex-direction: column; gap: 10px; width: min(940px, 100%); margin: 0 auto; }
.plan {
  display: grid; grid-template-columns: 170px 1fr auto 170px; grid-template-areas: "big perks price btn"; align-items: center; gap: 24px;
  padding: 20px 22px 20px 26px; border-radius: 14px;
}
.plan:hover { transform: translateX(-3px); }
.plan .big { grid-area: big; margin: 0; }
.plan .big b { font-size: 40px; }
.plan .perks { grid-area: perks; flex-direction: row; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.plan .perks li { font-size: 13.5px; }
.plan .price { grid-area: price; margin: 0; font-size: 24px; justify-content: flex-end; white-space: nowrap; }
.plan .krx-btn { grid-area: btn; width: 100%; margin: 0; height: 46px; }
.plan .tag { position: absolute; top: -9px; left: 24px; right: auto; padding: 3px 10px; border-radius: 6px; background: #0b0b0d; border: 1px solid rgba(var(--glow), 0.4); font-size: 10px; }
.plan .krx-btn[disabled] { border-style: solid; }

@media (max-width: 760px) {
  .plan { grid-template-columns: 1fr auto; grid-template-areas: "big price" "perks perks" "btn btn"; gap: 14px; padding: 20px; }
  .plan:hover { transform: none; }
}
.extras { width: min(940px, 100%); margin: 10px auto 0; } .extra { border-radius: 14px; }
.plan .perks { flex-direction: column; gap: 6px; }
