/* ==========================================================================
   ODIS Flashdaten Platform — design system
   ========================================================================== */

:root {
  --bg: #060a11;
  --bg-deep: #04070c;
  --bg-soft: #0a111c;
  --surface: rgba(14, 22, 35, 0.82);
  --surface-solid: #0e1623;
  --surface-2: #121d2d;
  --surface-3: #172438;
  --line: rgba(146, 178, 220, 0.12);
  --line-strong: rgba(146, 178, 220, 0.24);
  --text: #eef4ff;
  --text-soft: #c4d3e8;
  --muted: #8498b4;
  --muted-2: #5d718c;
  --accent: #42e0c2;
  --accent-2: #5b8cff;
  --accent-soft: rgba(66, 224, 194, 0.11);
  --accent-line: rgba(66, 224, 194, 0.32);
  --danger: #ff6b7a;
  --danger-soft: rgba(255, 107, 122, 0.12);
  --warn: #f5b84b;
  --warn-soft: rgba(245, 184, 75, 0.12);
  --success: #42e0c2;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.52);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.32);
  --font-ui: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono",
    monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sidebar-w: 248px;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(1100px 650px at 6% -8%, rgba(66, 224, 194, 0.1), transparent 58%),
    radial-gradient(1000px 620px at 97% 0%, rgba(91, 140, 255, 0.11), transparent 55%),
    radial-gradient(900px 700px at 50% 115%, rgba(37, 78, 160, 0.12), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(146, 178, 220, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(146, 178, 220, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

::selection {
  background: rgba(66, 224, 194, 0.28);
  color: #fff;
}

h1,
h2,
h3,
h4,
h5,
p,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}

img,
svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  flex: none;
}

/* Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(146, 178, 220, 0.25) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(146, 178, 220, 0.22);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(146, 178, 220, 0.4);
  background-clip: content-box;
}

/* ==========================================================================
   Boot
   ========================================================================== */

.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.boot-rings {
  display: flex;
  gap: -6px;
}

.boot-rings span {
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  margin-left: -6px;
  animation: bootPulse 1.4s ease-in-out infinite;
}
.boot-rings span:nth-child(2) {
  animation-delay: 0.12s;
}
.boot-rings span:nth-child(3) {
  animation-delay: 0.24s;
}
.boot-rings span:nth-child(4) {
  animation-delay: 0.36s;
}

@keyframes bootPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ==========================================================================
   Shared primitives
   ========================================================================== */

.logo-mark {
  width: 50px;
  height: 24px;
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex: none;
}
.brand-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #03231d;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(145deg, #8ff2df, #42e0c2 55%, #6e9dff);
  box-shadow:
    0 6px 18px rgba(66, 224, 194, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-word strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.brand-word span {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  text-transform: uppercase;
  font-weight: 600;
}

.gradient-text {
  background: linear-gradient(100deg, #8ff2df 0%, #42e0c2 38%, #6a9bff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 224, 194, 0.12);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 9px;
  border-radius: 99px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: rgba(146, 178, 220, 0.05);
  white-space: nowrap;
}
.badge--active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.badge--warn {
  color: var(--warn);
  border-color: rgba(245, 184, 75, 0.3);
  background: var(--warn-soft);
}
.badge--danger {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.3);
  background: var(--danger-soft);
}
.badge--muted {
  color: var(--muted);
}
.badge--plan {
  color: var(--accent-2);
  border-color: rgba(91, 140, 255, 0.32);
  background: rgba(91, 140, 255, 0.1);
}
.badge--dot::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.btn {
  --btn-h: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    transform 0.18s var(--ease),
    background 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    opacity 0.18s var(--ease);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-primary {
  color: #03140f;
  background: linear-gradient(120deg, #6ff0d8 0%, #42e0c2 45%, #6f9cff 130%);
  box-shadow:
    0 10px 30px rgba(66, 224, 194, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover {
  box-shadow:
    0 14px 38px rgba(66, 224, 194, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-ghost {
  color: var(--text-soft);
  background: rgba(146, 178, 220, 0.05);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--line-strong);
  background: rgba(146, 178, 220, 0.09);
  color: var(--text);
}
.btn-soft {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.btn-soft:hover {
  background: rgba(66, 224, 194, 0.18);
}
.btn-danger {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 107, 122, 0.25);
}
.btn-block {
  width: 100%;
}
.btn-lg {
  --btn-h: 50px;
  font-size: 14px;
  border-radius: 14px;
}
.btn-sm {
  --btn-h: 34px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 9px;
}
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::after {
  content: "";
  position: absolute;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(3, 20, 15, 0.25);
  border-top-color: #03140f;
  animation: spin 0.7s linear infinite;
}
.btn-ghost.btn-loading::after,
.btn-soft.btn-loading::after {
  border-color: rgba(238, 244, 255, 0.2);
  border-top-color: var(--accent);
}

.card {
  position: relative;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.025), transparent 38%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.card-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text-soft);
}
.card-title svg {
  color: var(--muted-2);
}
.card-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.progress {
  position: relative;
  height: 6px;
  border-radius: 99px;
  background: rgba(146, 178, 220, 0.1);
  overflow: hidden;
}
.progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #42e0c2, #5b8cff);
  box-shadow: 0 0 16px rgba(66, 224, 194, 0.35);
  transition: width 0.8s var(--ease);
}
.progress--warn .progress-bar {
  background: linear-gradient(90deg, #f5b84b, #ff8a5b);
  box-shadow: 0 0 16px rgba(245, 184, 75, 0.3);
}
.progress--danger .progress-bar {
  background: linear-gradient(90deg, #ff6b7a, #b23cff);
}

/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
}
.field-label small {
  font-weight: 500;
  color: var(--muted-2);
  font-size: 11px;
}
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  color: var(--muted-2);
  pointer-events: none;
  transition: color 0.2s var(--ease);
}
.input-wrap:focus-within .input-icon {
  color: var(--accent);
}
.input {
  width: 100%;
  height: 47px;
  padding: 0 44px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.6);
  color: var(--text);
  font-size: 13px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.input::placeholder {
  color: #53657f;
}
.input:hover {
  border-color: var(--line-strong);
}
.input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(5, 10, 18, 0.85);
  box-shadow: 0 0 0 3px rgba(66, 224, 194, 0.09);
}
.input--plain {
  padding-left: 14px;
}
.input--error {
  border-color: rgba(255, 107, 122, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 107, 122, 0.08);
}
.input-action {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--muted-2);
  transition:
    color 0.18s,
    background 0.18s;
}
.input-action:hover {
  color: var(--text);
  background: rgba(146, 178, 220, 0.08);
}
.field-hint {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.45;
}
.field-error {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--danger);
  min-height: 0;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

/* Brand mark */
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--brand-color, var(--accent));
  background:
    linear-gradient(150deg, color-mix(in srgb, var(--brand-color) 78%, #fff 6%), color-mix(in srgb, var(--brand-color) 55%, #000 28%));
  border: 1px solid color-mix(in srgb, var(--brand-color) 40%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-color) 18%, transparent);
}
.brand-mark--sm {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  font-size: 10px;
}
.brand-mark--lg {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  font-size: 16px;
}

/* Channel mark */
.channel-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
  font-size: 17px;
  font-weight: 700;
  user-select: none;
}
.channel-mark svg {
  width: 24px;
  height: 24px;
}
.channel-mark--wechat {
  color: #fff;
  background: linear-gradient(150deg, #1ed67a, #07a94c);
}
.channel-mark--alipay {
  color: #fff;
  background: linear-gradient(150deg, #2b8cff, #0967e8);
  font-size: 18px;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.channel-mark--paypal {
  color: #fff;
  background: linear-gradient(150deg, #0b83d8, #003087);
}

/* ==========================================================================
   Auth
   ========================================================================== */

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

.auth-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.auth-aurora::before,
.auth-aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.auth-aurora::before {
  width: 560px;
  height: 560px;
  left: -180px;
  top: -210px;
  background: radial-gradient(circle, rgba(66, 224, 194, 0.28), transparent 65%);
}
.auth-aurora::after {
  width: 620px;
  height: 620px;
  right: -220px;
  top: 60px;
  background: radial-gradient(circle, rgba(70, 117, 255, 0.24), transparent 65%);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 48px;
  flex: none;
}

.auth-top-right {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}

.health-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgba(10, 18, 30, 0.5);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.health-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 224, 194, 0.1);
  animation: softPulse 2.4s ease-in-out infinite;
}

.link-quiet {
  font-size: 11.5px;
  color: var(--muted);
  transition: color 0.18s var(--ease);
}
.link-quiet:hover {
  color: var(--text-soft);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 28px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.45);
  flex: none;
}
.lang-switch button {
  height: 22px;
  padding: 0 8px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.lang-switch button:hover {
  color: var(--text-soft);
}
.lang-switch button.is-active {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.auth-top-right .lang-switch {
  background: rgba(10, 18, 30, 0.5);
}
.topbar-actions .lang-switch,
.renew-top .lang-switch {
  background: rgba(10, 17, 28, 0.6);
}
.result-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-main {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(440px, 540px);
  align-items: start;
  gap: clamp(32px, 5vw, 84px);
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 30px 48px 52px;
}

.auth-main--center {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  align-items: center;
}

.auth-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 18px 48px 24px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: auto;
}
.auth-footer a {
  color: var(--muted);
  transition: color 0.18s;
}
.auth-footer a:hover {
  color: var(--text-soft);
}
.footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}
.footer-spacer {
  flex: 1;
}

.auth-hero {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 640px;
  padding-top: 36px;
  animation: rise 0.7s var(--ease) both;
}

.hero-title {
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.06;
  font-weight: 750;
  letter-spacing: -0.035em;
  margin-top: 2px;
}
.hero-title .line {
  display: block;
}
.hero-copy {
  max-width: 500px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 0;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(9, 15, 25, 0.5);
  backdrop-filter: blur(8px);
  overflow: hidden;
}
.metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 22px;
}
.metric + .metric {
  border-left: 1px solid var(--line);
}
.metric strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.metric span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  font-weight: 600;
}

.hero-console {
  max-width: 510px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(17, 27, 42, 0.88), rgba(7, 12, 20, 0.92));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
}
.console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.console-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.console-title .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: softPulse 2s ease-in-out infinite;
}
.console-head small {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.console-body {
  padding: 8px 16px 13px;
}
.console-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(146, 178, 220, 0.08);
}
.console-row:last-child {
  border-bottom: 0;
}
.console-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console-brand .mini {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-color, var(--accent));
  box-shadow: 0 0 8px var(--brand-color, var(--accent));
  flex: none;
}
.console-brand .mono {
  color: var(--muted-2);
  font-size: 9.5px;
  margin-left: 2px;
}
.console-bar {
  width: 120px;
  height: 4px;
  border-radius: 99px;
  background: rgba(146, 178, 220, 0.1);
  overflow: hidden;
}
.console-bar::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--w, 60%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: barIn 1.2s var(--ease) both;
}
.console-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
.console-foot .mono {
  color: var(--accent);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-point {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
.hero-point svg {
  color: var(--accent);
}

.auth-panel {
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.035), transparent 42%),
    linear-gradient(180deg, rgba(15, 24, 39, 0.94), rgba(8, 13, 22, 0.96));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  animation: rise 0.7s 0.08s var(--ease) both;
}
.auth-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(66, 224, 194, 0.55), transparent);
}
.auth-panel {
  position: relative;
}

.auth-card {
  padding: 30px 30px 26px;
}
.auth-card-head {
  margin-bottom: 22px;
}
.auth-card-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.auth-card-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.55);
  margin-bottom: 24px;
}
.auth-tab {
  height: 36px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition:
    background 0.2s var(--ease),
    color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.auth-tab:hover {
  color: var(--text-soft);
}
.auth-tab.is-active {
  color: var(--text);
  background: linear-gradient(160deg, rgba(38, 57, 82, 0.9), rgba(22, 34, 52, 0.9));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 6px 18px rgba(0, 0, 0, 0.24);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
}
.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  appearance: none;
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(4, 8, 14, 0.5);
  flex: none;
  position: relative;
  cursor: pointer;
  transition: 0.18s var(--ease);
}
.checkbox input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.checkbox input:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #04120d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checkbox a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(146, 178, 220, 0.04);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.55;
}
.auth-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--muted-2);
}
.auth-note--warn {
  border-color: rgba(245, 184, 75, 0.2);
  background: var(--warn-soft);
  color: #e8c98d;
}
.auth-note--warn svg {
  color: var(--warn);
}
.auth-note--danger {
  border-color: rgba(255, 107, 122, 0.22);
  background: var(--danger-soft);
  color: #ffb3bb;
}
.auth-note--danger svg {
  color: var(--danger);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 2px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.demo-box {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(4, 8, 14, 0.42);
  padding: 13px 14px;
}
.demo-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.demo-box-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.demo-accounts {
  display: grid;
  gap: 7px;
}
.demo-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  transition: 0.18s var(--ease);
}
.demo-account:hover {
  border-color: var(--line);
  background: rgba(146, 178, 220, 0.05);
}
.demo-account-main {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-soft);
}
.demo-account-main .mono {
  font-size: 10.5px;
  color: var(--muted-2);
}
.demo-account-tag {
  font-size: 9.5px;
  color: var(--muted-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.auth-footnote {
  margin-top: 18px;
  font-size: 10.5px;
  color: var(--muted-2);
  text-align: center;
  line-height: 1.6;
}
.auth-footnote a {
  color: var(--muted);
}

.env-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 19px;
  padding: 0 7px;
  border-radius: 5px;
  border: 1px solid rgba(245, 184, 75, 0.3);
  background: rgba(245, 184, 75, 0.1);
  color: var(--warn);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Registration sections */
.form-section {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.form-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}
.step-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 1px;
}
.step-no {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.step-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-soft);
  letter-spacing: 0.01em;
}
.step-sub {
  font-size: 10.5px;
  color: var(--muted-2);
  margin-left: auto;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.plan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 13px 12px 12px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.42);
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.plan-option:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}
.plan-option.is-selected {
  border-color: var(--accent-line);
  background: linear-gradient(160deg, rgba(66, 224, 194, 0.12), rgba(8, 16, 27, 0.4));
  box-shadow: 0 0 0 1px rgba(66, 224, 194, 0.12) inset;
}
.plan-option .plan-badge {
  position: absolute;
  top: -8px;
  right: 8px;
  height: 16px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #051410;
  background: linear-gradient(90deg, #6ff0d8, #42e0c2);
}
.plan-option .plan-badge--alt {
  color: #081120;
  background: linear-gradient(90deg, #8aa9ff, #5b8cff);
}
.plan-name {
  font-size: 12px;
  font-weight: 650;
  color: var(--text-soft);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 2px;
}
.plan-price strong {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  font-size: 10px;
  color: var(--muted-2);
}
.plan-period {
  font-size: 10px;
  color: var(--muted-2);
}
.plan-perday {
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--muted-2);
}
.plan-option.is-selected .plan-name {
  color: var(--text);
}
.plan-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.18s var(--ease);
}
.plan-check svg {
  width: 9px;
  height: 9px;
  opacity: 0;
  color: #032019;
}
.plan-option.is-selected .plan-check {
  background: var(--accent);
  border-color: var(--accent);
}
.plan-option.is-selected .plan-check svg {
  opacity: 1;
}
.plan-option .plan-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 20px;
}

/* Single annual pass selected in the signup form */
.plan-grid--single {
  grid-template-columns: 1fr;
}
.plan-grid--single .plan-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "check head price"
    "check perday price";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 15px 16px;
}
.plan-grid--single .plan-check {
  position: static;
  grid-area: check;
}
.plan-grid--single .plan-head {
  grid-area: head;
  padding-left: 0;
}
.plan-grid--single .plan-price {
  grid-area: price;
  justify-self: end;
  margin: 0;
  padding-left: 0;
}
.plan-grid--single .plan-price strong {
  font-size: 22px;
}
.plan-grid--single .plan-perday {
  grid-area: perday;
  margin: 0;
  text-align: left;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.channel-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.4);
  text-align: left;
  transition: 0.18s var(--ease);
}
.channel-option:hover {
  border-color: var(--line-strong);
}
.channel-option.is-selected {
  border-color: var(--channel-color, var(--accent-line));
  background: color-mix(in srgb, var(--channel-color, var(--accent)) 9%, transparent);
}
.channel-option .channel-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 13px;
}
.channel-option .channel-mark svg {
  width: 18px;
  height: 18px;
}
.channel-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}
.channel-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}
.channel-en {
  font-size: 8.5px;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  white-space: nowrap;
}
.channel-radio {
  margin-left: auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  flex: none;
  position: relative;
  transition: 0.18s var(--ease);
}
.channel-option.is-selected .channel-radio {
  border-color: var(--channel-color, var(--accent));
}
.channel-option.is-selected .channel-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--channel-color, var(--accent));
}

.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row .input-wrap {
  flex: 1;
}
.coupon-row .btn {
  flex: none;
}
.coupon-icon {
  color: var(--muted-2);
}
.coupon-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted-2);
  min-height: 16px;
}
.coupon-note.is-ok {
  color: var(--accent);
}
.coupon-note.is-error {
  color: var(--danger);
}

.checkout-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.4);
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11.5px;
  color: var(--muted);
}
.summary-row strong {
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary-row .discount {
  color: var(--accent);
}
.summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.summary-total > span {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 600;
}
.summary-total strong {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.summary-total strong small {
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 500;
  margin-left: 3px;
}

.pending-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
  padding: 10px 0 4px;
}
.pending-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 184, 75, 0.3);
  background: var(--warn-soft);
  color: var(--warn);
}
.pending-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.pending-copy {
  font-size: 12px;
  color: var(--muted);
  max-width: 330px;
  line-height: 1.7;
}

/* ==========================================================================
   Workspace layout
   ========================================================================== */

.workspace {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  background:
    linear-gradient(180deg, rgba(13, 21, 34, 0.94), rgba(6, 10, 17, 0.98)),
    var(--bg-deep);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 6px 24px;
  border-bottom: 1px solid var(--line);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 20px 0;
  flex: 1;
}
.nav-label {
  padding: 0 10px 8px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 41px;
  padding: 0 11px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  transition:
    color 0.18s var(--ease),
    background 0.18s var(--ease);
}
.nav-item svg {
  color: var(--muted-2);
  transition: color 0.18s var(--ease);
}
.nav-item:hover {
  color: var(--text-soft);
  background: rgba(146, 178, 220, 0.05);
}
.nav-item:hover svg {
  color: var(--muted);
}
.nav-item.is-active {
  color: var(--text);
  background: linear-gradient(90deg, rgba(66, 224, 194, 0.12), rgba(66, 224, 194, 0.03));
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 2.5px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(66, 224, 194, 0.6);
}
.nav-item.is-active svg {
  color: var(--accent);
}
.nav-item .nav-badge {
  margin-left: auto;
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 5px;
  padding: 1px 5px;
}
.nav-item .nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warn);
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-plan {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(66, 224, 194, 0.08), transparent 60%),
    rgba(8, 14, 23, 0.7);
}
.sidebar-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.sidebar-plan-name {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--text-soft);
}
.sidebar-plan-days {
  font-size: 10px;
  color: var(--muted-2);
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.sidebar-plan-days strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}
.sidebar-plan .progress {
  height: 4px;
  margin-bottom: 11px;
}
.sidebar-plan-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
}
.sidebar-plan-link:hover {
  color: #8ff2df;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-radius: 11px;
  transition: background 0.18s;
}
.sidebar-user:hover {
  background: rgba(146, 178, 220, 0.05);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: #04211a;
  background: linear-gradient(145deg, #8ff2df, #42e0c2 50%, #5b8cff);
  box-shadow: 0 4px 14px rgba(66, 224, 194, 0.18);
}
.avatar--lg {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 19px;
}
.user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
  gap: 1px;
}
.user-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-email {
  font-size: 9.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: var(--muted-2);
  transition: 0.18s var(--ease);
  flex: none;
}
.icon-btn:hover {
  color: var(--text);
  background: rgba(146, 178, 220, 0.08);
}
.icon-btn--danger:hover {
  color: var(--danger);
  background: var(--danger-soft);
}

.workspace-main {
  flex: 1;
  min-width: 0;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 18, 0.78);
  backdrop-filter: blur(18px);
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hamburger {
  display: none;
}
.topbar-title {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.topbar-eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.topbar-title h1 {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.quota-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(10, 17, 28, 0.6);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.quota-chip svg {
  color: var(--muted-2);
}
.quota-chip strong {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.time-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  white-space: nowrap;
}
.time-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(66, 224, 194, 0.1);
  animation: softPulse 2.4s ease-in-out infinite;
}
.time-pill-label {
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.time-pill-value {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.time-pill.is-low {
  border-color: rgba(245, 184, 75, 0.3);
  background: var(--warn-soft);
}
.time-pill.is-low .time-dot {
  background: var(--warn);
  box-shadow: 0 0 0 4px rgba(245, 184, 75, 0.1);
}
.time-pill.is-low .time-pill-value {
  color: var(--warn);
}
.time-pill.is-expired {
  border-color: rgba(255, 107, 122, 0.3);
  background: var(--danger-soft);
}
.time-pill.is-expired .time-dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.1);
}
.time-pill.is-expired .time-pill-value {
  color: var(--danger);
}
.topbar-avatar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px 4px 4px;
  border-radius: 10px;
  transition: background 0.18s;
}
.topbar-avatar:hover {
  background: rgba(146, 178, 220, 0.06);
}
.topbar-avatar .avatar {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 11px;
}

.page {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 28px 30px 60px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeIn 0.35s var(--ease) both;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.page-heading-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.page-heading-title {
  font-size: clamp(23px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.page-heading-sub {
  font-size: 12px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
}

.demo-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid rgba(245, 184, 75, 0.18);
  background: rgba(245, 184, 75, 0.06);
  font-size: 11px;
  color: #cbb082;
}
.demo-strip svg {
  color: var(--warn);
  flex: none;
}
.demo-strip .mono {
  color: var(--warn);
}

.sidebar-scrim {
  display: none;
}

/* ==========================================================================
   Overview
   ========================================================================== */

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 16px;
}

.subscription-card {
  position: relative;
  overflow: hidden;
  padding: 24px 26px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(66, 224, 194, 0.13), transparent 52%),
    radial-gradient(90% 120% at 100% 100%, rgba(91, 140, 255, 0.1), transparent 55%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--surface);
}
.subscription-card::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(66, 224, 194, 0.09);
  box-shadow:
    0 0 0 34px rgba(66, 224, 194, 0.035),
    0 0 0 70px rgba(91, 140, 255, 0.025);
  pointer-events: none;
}

.subscription-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.subscription-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.subscription-label svg {
  color: var(--accent);
}
.subscription-plan {
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.subscription-plan h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.countdown-hero {
  display: flex;
  align-items: flex-start;
  gap: clamp(8px, 2vw, 20px);
  margin: 2px 0 20px;
}
.cd-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cd-value {
  font-family: var(--font-mono);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff 8%, #b9cbe5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}
.cd-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.cd-sep {
  font-family: var(--font-mono);
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1;
  color: rgba(146, 178, 220, 0.25);
  padding-top: 4px;
}
.countdown-hero.is-expired .cd-value {
  background: linear-gradient(180deg, #ffc3c9, #ff6b7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.countdown-hero.is-low .cd-value {
  background: linear-gradient(180deg, #ffe6b8, #f5b84b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.sub-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sub-meta svg {
  color: var(--muted-2);
}
.sub-meta strong {
  color: var(--text-soft);
  font-weight: 500;
}
.progress-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.subscription-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
}
.subscription-foot .btn {
  margin-left: auto;
}

.quota-card {
  display: flex;
  flex-direction: column;
}
.quota-body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 6px 0 12px;
}
.quota-ring {
  position: relative;
  width: 148px;
  height: 148px;
}
.quota-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.quota-ring .ring-track {
  fill: none;
  stroke: rgba(146, 178, 220, 0.1);
  stroke-width: 7;
}
.quota-ring .ring-value {
  fill: none;
  stroke: url(#quotaGradient);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s var(--ease);
}
.quota-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.quota-center strong {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.quota-center span {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.quota-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
}
.quota-foot strong {
  color: var(--text-soft);
  font-weight: 500;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 18px;
}
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(66, 224, 194, 0.16);
}
.stat-icon--blue {
  color: #8aa9ff;
  background: rgba(91, 140, 255, 0.1);
  border-color: rgba(91, 140, 255, 0.16);
}
.stat-icon--amber {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: rgba(245, 184, 75, 0.16);
}
.stat-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stat-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.stat-value small
 {
  font-size: 10px;
  color: var(--muted-2);
  font-family: var(--font-ui);
  font-weight: 500;
  margin-left: 4px;
}
.stat-label {
  font-size: 10.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 16px;
}
.quick-search-card {
  background:
    radial-gradient(100% 140% at 100% 0%, rgba(91, 140, 255, 0.1), transparent 55%),
    var(--surface);
}
.search-inline {
  display: flex;
  gap: 9px;
  margin-top: 4px;
}
.search-inline .input-wrap {
  flex: 1;
}
.search-inline .input {
  height: 50px;
  font-size: 13px;
}
.brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.35);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 500;
  transition: 0.18s var(--ease);
}
.chip:hover {
  color: var(--text-soft);
  border-color: var(--line-strong);
}
.chip.is-active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.chip .count {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 9px;
}
.chip.is-active .count {
  color: var(--accent);
}

.activity-list {
  display: flex;
  flex-direction: column;
}
.activity-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 2px;
  border-bottom: 1px dashed rgba(146, 178, 220, 0.08);
}
.activity-item:last-child {
  border-bottom: 0;
}
.activity-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--muted);
  background: rgba(146, 178, 220, 0.07);
  border: 1px solid var(--line);
}
.activity-icon--flash {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(66, 224, 194, 0.14);
}
.activity-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.activity-query {
  font-size: 11.5px;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.activity-query .mono {
  font-size: 11px;
}
.activity-meta {
  font-size: 9.5px;
  color: var(--muted-2);
}
.activity-time {
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
  font-family: var(--font-mono);
}
.activity-link {
  font-size: 10px;
  color: var(--accent);
  white-space: nowrap;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.brand-tile {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 12px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(8, 14, 23, 0.45);
  text-align: left;
  transition:
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease),
    background 0.18s var(--ease);
}
.brand-tile:hover {
  border-color: color-mix(in srgb, var(--brand-color) 35%, var(--line));
  background: color-mix(in srgb, var(--brand-color) 6%, rgba(8, 14, 23, 0.45));
  transform: translateY(-2px);
}
.brand-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.brand-tile .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 10px;
}
.brand-arrow {
  color: var(--muted-2);
  opacity: 0;
  transform: translate(-3px, 3px);
  transition: 0.18s var(--ease);
}
.brand-tile:hover .brand-arrow {
  opacity: 1;
  transform: none;
  color: var(--text-soft);
}
.brand-name {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.brand-en {
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.brand-count {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
}
.brand-count strong {
  color: var(--text-soft);
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 36px 20px;
  text-align: center;
}
.empty-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
  border: 1px solid var(--line);
  background: rgba(146, 178, 220, 0.04);
  margin-bottom: 3px;
}
.empty-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.empty-copy {
  font-size: 11px;
  color: var(--muted-2);
  max-width: 330px;
  line-height: 1.6;
}

/* ==========================================================================
   Search
   ========================================================================== */

.search-panel {
  padding: 20px 22px;
  background:
    radial-gradient(100% 180% at 0% 0%, rgba(66, 224, 194, 0.08), transparent 50%),
    var(--surface);
}
.search-form {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
}
.search-input-wrap > svg {
  position: absolute;
  left: 16px;
  color: var(--muted-2);
}
.search-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 47px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.55);
  color: var(--text);
  font-size: 14px;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.search-input::placeholder {
  color: #53657f;
}
.search-input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(66, 224, 194, 0.08);
}
.search-clear {
  position: absolute;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-2);
}
.search-clear:hover {
  color: var(--text);
  background: rgba(146, 178, 220, 0.08);
}
.search-form .btn {
  --btn-h: 52px;
  padding: 0 26px;
  border-radius: 13px;
  font-size: 13px;
}
.search-filter-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.search-filter-row::-webkit-scrollbar {
  height: 0;
}
.search-filter-row .chip {
  height: 29px;
  white-space: nowrap;
  flex: none;
}
.search-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 10px;
  margin-top: 12px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.search-hints .hint-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.hint-chip {
  padding: 2px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(146, 178, 220, 0.04);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  transition: 0.18s;
}
.hint-chip:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}
.search-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--muted-2);
  flex-wrap: wrap;
}
.search-status strong {
  color: var(--text-soft);
  font-weight: 600;
}
.quota-inline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.quota-inline .progress {
  width: 90px;
  height: 4px;
}

.result-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.result-group {
  padding: 0;
  overflow: hidden;
}
.result-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.result-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.result-brand-name {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.result-brand-name strong {
  font-size: 12.5px;
  font-weight: 650;
}
.result-brand-name span {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.result-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
}
.result-list {
  display: flex;
  flex-direction: column;
}
.result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(146, 178, 220, 0.06);
  transition: background 0.16s;
}
.result-row:last-child {
  border-bottom: 0;
}
.result-row:hover {
  background: rgba(66, 224, 194, 0.025);
}
.result-main {
  min-width: 0;
}
.result-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.4;
}
.result-title.is-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-detail {
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.result-file {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.file-code {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid var(--line);
  color: var(--muted-2);
  transition: 0.18s var(--ease);
}
.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.result-side {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--muted-2);
  white-space: nowrap;
}
.result-size {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(146, 178, 220, 0.06);
}

.intro-panel {
  padding: 30px 24px;
}
.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.suggestion-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.35);
  text-align: left;
  transition: 0.18s var(--ease);
}
.suggestion-card:hover {
  border-color: var(--line-strong);
  background: rgba(146, 178, 220, 0.04);
  transform: translateY(-1px);
}
.suggestion-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-soft);
  flex: none;
}
.suggestion-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.suggestion-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-soft);
}
.suggestion-copy {
  font-size: 9.5px;
  color: var(--muted-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.skeleton-row {
  height: 76px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(146, 178, 220, 0.04) 30%, rgba(146, 178, 220, 0.09) 50%, rgba(146, 178, 220, 0.04) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

/* ==========================================================================
   DSG table
   ========================================================================== */

.table-card {
  padding: 0;
  overflow: hidden;
}
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.table-toolbar .search-input-wrap {
  max-width: 420px;
}
.table-toolbar .input {
  height: 40px;
  font-size: 12px;
}
.table-toolbar .btn {
  --btn-h: 40px;
}
.table-count {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.data-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  white-space: nowrap;
}
.data-table td {
  padding: 13px 16px;
  font-size: 11.5px;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(146, 178, 220, 0.06);
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover {
  background: rgba(66, 224, 194, 0.025);
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table .mono {
  font-size: 10.5px;
  color: var(--muted);
}
.data-table .td-strong {
  font-weight: 600;
  color: var(--text-soft);
}
.data-table .cell-file {
  display: flex;
  align-items: center;
  gap: 7px;
}
.series-tag {
  display: inline-flex;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(91, 140, 255, 0.2);
  background: rgba(91, 140, 255, 0.08);
  color: #9db7ff;
  font-family: var(--font-mono);
  font-size: 9.5px;
  white-space: nowrap;
}

/* ==========================================================================
   Account
   ========================================================================== */

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.profile-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.profile-email {
  font-size: 11px;
  color: var(--muted-2);
}
.profile-meta-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.meta-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 3px;
}
.meta-value {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.account-sub-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.account-sub-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.account-sub-plan {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 3px;
}
.account-remaining {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-mono);
}
.account-remaining strong {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}
.account-remaining span {
  font-size: 10px;
  color: var(--muted-2);
  font-family: var(--font-ui);
}
.account-sub-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.account-sub-card .btn {
  margin-top: 2px;
}

.orders-card {
  padding: 0;
  overflow: hidden;
}
.orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.order-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.order-status--paid {
  color: var(--accent);
  border-color: rgba(66, 224, 194, 0.22);
  background: var(--accent-soft);
}
.order-status--pending {
  color: var(--warn);
  border-color: rgba(245, 184, 75, 0.22);
  background: var(--warn-soft);
}
.order-status--failed {
  color: var(--danger);
  border-color: rgba(255, 107, 122, 0.22);
  background: var(--danger-soft);
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--text-soft);
}
.plan-tag small {
  color: var(--muted-2);
  font-size: 9px;
}
.amount-cell {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-soft);
}
.pay-method {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--muted);
}
.pay-method .channel-mark {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 10px;
}
.pay-method .channel-mark svg {
  width: 13px;
  height: 13px;
}

.security-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.password-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

/* ==========================================================================
   Renewal
   ========================================================================== */

.renew-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.renew-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.renew-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.current-plan-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background:
    radial-gradient(100% 150% at 100% 0%, rgba(66, 224, 194, 0.1), transparent 55%),
    var(--surface);
}
.current-plan-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.current-plan-main h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.current-plan-dates {
  font-size: 10.5px;
  color: var(--muted-2);
  font-family: var(--font-mono);
}
.current-plan-side {
  text-align: right;
  flex: none;
}
.current-plan-side strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.2;
}
.current-plan-side strong.is-expired {
  color: var(--danger);
}
.current-plan-side span {
  font-size: 9.5px;
  color: var(--muted-2);
}
.current-plan-card .progress {
  height: 4px;
  margin-top: 3px;
}

.renew-section-head {
  margin-bottom: 16px;
}
.renew-section-head h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
}
.renew-section-head p {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted-2);
}
.plan-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.plan-option--row {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
}
.plan-option--row .plan-check {
  position: static;
  flex: none;
}
.plan-option--row .plan-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.plan-option--row .plan-topline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plan-option--row .plan-name {
  font-size: 13px;
}
.plan-option--row .plan-desc {
  margin-top: 3px;
  font-size: 10px;
  color: var(--muted-2);
}
.plan-option--row .plan-price-col {
  text-align: right;
  flex: none;
}
.plan-option--row .plan-price {
  justify-content: flex-end;
  margin: 0;
}
.plan-option--row .plan-price strong {
  font-size: 20px;
}
.plan-option--row .plan-perday {
  text-align: right;
}
.plan-tagline {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}
.plan-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 7px;
}
.perk {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--muted-2);
}
.perk svg {
  color: var(--accent);
}

.coupon-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.coupon-box .coupon-row {
  max-width: 420px;
}
.demo-coupon-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.demo-coupon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  transition: 0.18s;
}
.demo-coupon:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

.checkout-card {
  padding: 22px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(66, 224, 194, 0.1), transparent 52%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--surface);
}
.checkout-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 15px;
}
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.channel-option--row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(5, 10, 18, 0.35);
  text-align: left;
  transition: 0.18s var(--ease);
}
.channel-option--row:hover {
  border-color: var(--line-strong);
}
.channel-option--row.is-selected {
  border-color: var(--channel-color, var(--accent-line));
  background: color-mix(in srgb, var(--channel-color, var(--accent)) 8%, transparent);
}
.channel-option--row .channel-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
}
.channel-option--row .channel-mark svg {
  width: 20px;
  height: 20px;
}
.channel-option--row .channel-text {
  flex: 1;
}
.channel-option--row .channel-desc {
  display: block;
  font-size: 9px;
  color: var(--muted-2);
  margin-top: 1px;
}
.channel-option--row .channel-currency {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted-2);
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(146, 178, 220, 0.06);
}

.summary-box {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.4);
  margin-bottom: 15px;
}
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.summary-line strong {
  color: var(--text-soft);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.summary-line .discount {
  color: var(--accent);
}
.summary-line--total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  align-items: flex-end;
}
.summary-line--total > span {
  font-size: 11.5px;
  color: var(--text-soft);
  font-weight: 600;
}
.summary-line--total strong {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.checkout-cta {
  width: 100%;
}
.checkout-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 11px;
  font-size: 9.5px;
  color: var(--muted-2);
  line-height: 1.55;
}
.checkout-note svg {
  flex: none;
  margin-top: 1px;
}
.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted-2);
}
.secure-note svg {
  color: var(--accent);
}

.expired-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 107, 122, 0.24);
  background:
    radial-gradient(100% 200% at 0% 0%, rgba(255, 107, 122, 0.1), transparent 60%),
    rgba(255, 107, 122, 0.045);
}
.expired-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 107, 122, 0.2);
}
.expired-banner-main {
  flex: 1;
  min-width: 0;
}
.expired-banner-main strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #ffc1c7;
}
.expired-banner-main span {
  font-size: 10.5px;
  color: #b98d93;
}

/* Standalone renewal page */
.renew-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.renew-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 11, 18, 0.7);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.renew-top-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.renew-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.4;
}
.renew-user-meta strong {
  font-size: 11.5px;
  font-weight: 600;
}
.renew-user-meta span {
  font-size: 9.5px;
  color: var(--muted-2);
}
.renew-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 36px 32px 70px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.renew-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.renew-heading h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 6px;
}
.renew-heading p {
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.7;
}
.renew-heading-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(146, 178, 220, 0.04);
  color: var(--accent);
  flex: none;
}

/* ==========================================================================
   Modal / payment
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 6, 11, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s var(--ease) both;
}
.modal {
  position: relative;
  width: min(860px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(var(--pay-rgb, 66, 224, 194), 0.08), transparent 45%),
    linear-gradient(165deg, #101b2b, #070c14 70%);
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.35s var(--ease) both;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: rgba(146, 178, 220, 0.06);
  border: 1px solid var(--line);
  transition: 0.18s;
}
.modal-close:hover {
  color: var(--text);
  background: rgba(146, 178, 220, 0.12);
}
.payment-modal {
  padding: 0;
}
.payment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 64px 20px 24px;
  border-bottom: 1px solid var(--line);
}
.payment-head-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 650;
  color: var(--text-soft);
}
.payment-head-title svg {
  color: var(--accent);
}
.payment-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: var(--muted-2);
}
.payment-secure svg {
  color: var(--accent);
}
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}
.payment-main {
  padding: 26px 26px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.payment-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.payment-channel .channel-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
}
.payment-channel .channel-mark svg {
  width: 18px;
  height: 18px;
}
.payment-channel strong {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}
.payment-channel span {
  font-size: 9px;
  color: var(--muted-2);
}
.payment-amount {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.payment-amount small {
  font-size: 12px;
  color: var(--muted-2);
  font-family: var(--font-ui);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
}
.qr-frame {
  position: relative;
  width: 210px;
  height: 210px;
  padding: 12px;
  border-radius: 16px;
  background: #f7fbff;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}
.qr-frame svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-center {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 0 0 3px #fff;
}
.qr-center .channel-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 16px;
}
.qr-center .channel-mark svg {
  width: 24px;
  height: 24px;
}
.qr-demo-tag {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 99px;
  background: #0a1320;
  border: 1px solid rgba(245, 184, 75, 0.35);
  color: var(--warn);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.qr-note {
  font-size: 10.5px;
  color: var(--muted-2);
  line-height: 1.6;
  max-width: 260px;
}
.pay-demo-alert {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid rgba(245, 184, 75, 0.2);
  background: var(--warn-soft);
  color: #d8b984;
  font-size: 10px;
  text-align: left;
  line-height: 1.5;
}
.pay-demo-alert svg {
  flex: none;
  color: var(--warn);
  margin-top: 1px;
}
.pay-redirect-note {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: center;
}
.paypal-mark {
  font-size: 30px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.04em;
  color: #5aa6f0;
}
.paypal-mark span {
  color: #c8e2ff;
}
.payment-side {
  padding: 26px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.order-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(4, 8, 14, 0.35);
  overflow: hidden;
}
.fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(146, 178, 220, 0.06);
  font-size: 10.5px;
}
.fact:last-child {
  border-bottom: 0;
}
.fact-label {
  color: var(--muted-2);
  flex: none;
}
.fact-value {
  color: var(--text-soft);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 10px;
  word-break: break-all;
}
.fact-value.is-accent {
  color: var(--accent);
}
.pay-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px;
  border-radius: 8px;
  border: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--muted-2);
}
.pay-countdown strong {
  font-family: var(--font-mono);
  color: var(--warn);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.payment-side .btn {
  width: 100%;
}
.payment-side .btn-link {
  color: var(--muted-2);
  font-size: 10.5px;
  text-align: center;
  padding: 4px;
}
.payment-side .btn-link:hover {
  color: var(--text);
}
.payment-success {
  padding: 54px 30px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}
.success-check {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #04211a;
  background: linear-gradient(145deg, #8ff2df, #42e0c2);
  box-shadow:
    0 0 0 10px rgba(66, 224, 194, 0.08),
    0 18px 50px rgba(66, 224, 194, 0.25);
  animation: checkPop 0.5s var(--ease) both;
}
.success-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.success-copy {
  font-size: 12px;
  color: var(--muted);
  max-width: 380px;
  line-height: 1.7;
}
.success-meta {
  display: flex;
  gap: 22px;
  margin-top: 6px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(4, 8, 14, 0.35);
}
.success-meta div {
  text-align: center;
}
.success-meta span {
  display: block;
  font-size: 9px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.success-meta strong {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}

/* ==========================================================================
   Payment result page
   ========================================================================== */

.result-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
}
.result-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.result-card {
  width: min(520px, 100%);
  padding: 38px 34px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.result-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(146, 178, 220, 0.05);
  color: var(--muted);
}
.result-icon--success {
  color: #04211a;
  background: linear-gradient(145deg, #8ff2df, #42e0c2);
  border-color: transparent;
  box-shadow: 0 16px 44px rgba(66, 224, 194, 0.22);
}
.result-icon--error {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 107, 122, 0.25);
  box-shadow: none;
}
.result-title {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.result-copy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 380px;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 8px;
}
.result-facts {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(4, 8, 14, 0.35);
}
.result-facts .fact {
  padding: 10px 14px;
}

/* ==========================================================================
   Toasts
   ========================================================================== */

.toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: min(360px, calc(100vw - 40px));
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 21, 34, 0.96);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-soft);
  pointer-events: auto;
  animation: toastIn 0.3s var(--ease) both;
}
.toast.is-leaving {
  animation: toastOut 0.25s var(--ease) both;
}
.toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 0;
}
.toast--success {
  border-color: rgba(66, 224, 194, 0.25);
}
.toast--success .toast-icon {
  color: var(--accent);
  background: var(--accent-soft);
}
.toast--error {
  border-color: rgba(255, 107, 122, 0.28);
}
.toast--error .toast-icon {
  color: var(--danger);
  background: var(--danger-soft);
}
.toast--info .toast-icon {
  color: #8aa9ff;
  background: rgba(91, 140, 255, 0.1);
}
.toast-message {
  flex: 1;
}
.toast-close {
  color: var(--muted-2);
  line-height: 1;
  padding: 2px;
}
.toast-close:hover {
  color: var(--text);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}
@keyframes softPulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(66, 224, 194, 0.08);
  }
  50% {
    opacity: 0.65;
    box-shadow: 0 0 0 6px rgba(66, 224, 194, 0.03);
  }
}
@keyframes shimmer {
  to {
    background-position: -120% 0;
  }
}
@keyframes checkPop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes barIn {
  from {
    transform: scaleX(0);
    transform-origin: left;
  }
  to {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1240px) {
  .auth-main {
    grid-template-columns: minmax(0, 1fr) minmax(400px, 480px);
    gap: 42px;
    padding-inline: 36px;
  }
  .auth-top {
    padding-inline: 36px;
  }
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.85fr);
  }
}

@media (max-width: 1060px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 620px;
    padding: 10px 28px 50px;
  }
  .auth-hero {
    max-width: none;
    gap: 18px;
  }
  .auth-hero .hero-console,
  .auth-hero .hero-points {
    display: none;
  }
  .hero-title {
    font-size: clamp(34px, 6vw, 46px);
  }
  .auth-panel {
    max-height: none;
    overflow: visible;
  }
  .auth-shell {
    overflow: visible;
  }
  .auth-aurora {
    position: fixed;
  }
  .auth-top-right .link-quiet {
    display: none;
  }
  .auth-main {
    align-items: start;
  }
  .lower-grid,
  .account-grid {
    grid-template-columns: 1fr;
  }
  .renew-grid {
    grid-template-columns: 1fr;
  }
  .renew-aside {
    position: static;
  }
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --sidebar-w: 264px;
  }
  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.32s var(--ease);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.45);
  }
  body.sidebar-open .sidebar {
    transform: none;
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(3, 6, 11, 0.6);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease);
  }
  body.sidebar-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .workspace-main {
    margin-left: 0;
  }
  .hamburger {
    display: inline-flex;
  }
  .topbar {
    padding: 0 18px;
    height: 66px;
  }
  .topbar-actions .quota-chip {
    display: none;
  }
  .page {
    padding: 22px 18px 48px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .stat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .result-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
  }
  .result-file {
    grid-column: 1 / -1;
  }
  .result-side {
    grid-row: 1;
    grid-column: 2;
  }
  .renew-container {
    padding: 26px 18px 50px;
  }
  .renew-top {
    padding: 16px 18px;
  }
  .renew-heading-icon {
    display: none;
  }
  .suggestion-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .auth-top {
    padding: 20px;
  }
  .lang-switch {
    height: 26px;
  }
  .lang-switch button {
    height: 20px;
    padding: 0 6px;
    font-size: 9px;
  }
  .auth-top-right {
    gap: 8px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .renew-top-user {
    gap: 6px;
  }
  .result-top-actions .health-pill {
    display: none;
  }
  .auth-main {
    padding-top: 12px;
  }
  .auth-hero {
    padding-top: 10px;
    gap: 0;
  }
  .auth-hero .eyebrow,
  .auth-hero .hero-copy,
  .auth-hero .hero-metrics,
  .auth-hero .hero-console,
  .auth-hero .hero-points {
    display: none;
  }
  .auth-hero .hero-title {
    font-size: clamp(28px, 8.4vw, 38px);
    margin-bottom: 8px;
  }
  .auth-footer {
    padding: 16px 20px 22px;
    gap: 7px;
    font-size: 9.5px;
  }
  .auth-footer .footer-spacer {
    display: none;
  }
  .renew-top .health-pill {
    display: none;
  }
  .auth-top-right {
    gap: 10px;
  }
  .auth-top-right .health-pill {
    display: none;
  }
  .auth-main {
    padding: 8px 16px 40px;
  }
  .auth-card {
    padding: 24px 18px 22px;
  }
  .hero-metrics {
    width: 100%;
  }
  .metric {
    flex: 1;
    padding: 10px 14px;
  }
  .metric strong {
    font-size: 17px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .plan-grid--single .plan-option {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "check head"
      "check perday"
      "price price";
    padding: 13px 14px;
  }
  .plan-grid--single .plan-price {
    justify-self: start;
    margin-top: 5px;
  }
  .plan-option {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
  }
  .plan-option .plan-head {
    padding-left: 20px;
  }
  .plan-option .plan-price {
    margin: 0 0 0 auto;
  }
  .plan-option .plan-perday {
    display: none;
  }
  .channel-grid {
    grid-template-columns: 1fr;
  }
  .channel-option {
    padding: 10px 12px;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    flex: 1;
  }
  .topbar-eyebrow {
    display: none;
  }
  .topbar-title h1 {
    font-size: 15px;
  }
  .time-pill-label {
    display: none;
  }
  .time-pill {
    padding: 0 10px;
  }
  .topbar-actions {
    gap: 6px;
  }
  .topbar-avatar .user-meta {
    display: none;
  }
  .topbar-avatar {
    padding: 3px;
  }
  .stat-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .stat-card {
    padding: 13px 15px;
  }
  .subscription-card {
    padding: 20px 18px;
  }
  .countdown-hero {
    gap: 7px;
  }
  .cd-value {
    font-size: clamp(30px, 9.4vw, 44px);
  }
  .cd-sep {
    font-size: 24px;
  }
  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .suggestion-grid {
    grid-template-columns: 1fr;
  }
  .search-form {
    flex-direction: column;
  }
  .search-form .btn {
    width: 100%;
    --btn-h: 46px;
  }
  .result-row {
    padding: 13px 15px;
  }
  .file-code {
    max-width: 200px;
  }
  .payment-layout {
    grid-template-columns: 1fr;
  }
  .payment-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .payment-side {
    padding-top: 20px;
  }
  .modal-backdrop {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }
  .modal {
    max-height: none;
    margin: 10px 0;
    border-radius: 20px;
  }
  .profile-meta-list {
    grid-template-columns: 1fr 1fr;
  }
  .renew-heading h1 {
    font-size: 27px;
  }
  .renew-top .brand-word span {
    display: none;
  }
  .renew-user-meta {
    display: none;
  }
  .plan-option--row {
    flex-wrap: wrap;
  }
  .plan-option--row .plan-price-col {
    min-width: 90px;
  }
  .plan-option--row .plan-perks {
    width: 100%;
  }
  .payment-head {
    padding: 16px 18px;
  }
  .payment-secure {
    display: none;
  }
  .toast-stack {
    top: 12px;
    right: 12px;
    width: calc(100vw - 24px);
  }
  .result-top {
    padding: 16px 20px;
  }
  .result-card {
    padding: 30px 20px 26px;
  }
}

@media (max-width: 420px) {
  .hero-title {
    font-size: 32px;
  }
  .hero-copy {
    font-size: 12.5px;
  }
  .metric span {
    font-size: 8.5px;
  }
  .auth-card-title {
    font-size: 20px;
  }
  .cd-value {
    font-size: 29px;
  }
  .brand-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-meta-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
