:root {
  color-scheme: dark;
  --bg: #02030a;
  --bg-elevated: #080d1c;
  --surface: #0e1730;
  --surface-strong: #17254a;
  --surface-soft: rgba(11, 19, 43, 0.86);
  --border: #293c69;
  --border-strong: #49649b;
  --text: #ffffff;
  --text-secondary: #dbe7ff;
  --muted: #9aaed0;
  --primary: #8b3dff;
  --primary-hover: #a45cff;
  --primary-soft: rgba(139, 61, 255, 0.2);
  --accent: #00e5ff;
  --positive: #20f6b5;
  --negative: #ff4d7d;
  --warning: #ffd43b;
  --danger: #e11d48;
  --focus: #a78bfa;
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.36);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --sidebar-width: 264px;
  --topbar-height: 78px;
  --motion-fast: 160ms;
  --motion: 240ms;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { min-height: 100%; overflow-x: hidden; background: var(--bg); scroll-behavior: smooth; }

body {
  min-width: 0;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 17% -8%, rgba(135, 41, 255, 0.35), transparent 34rem),
    radial-gradient(circle at 96% 8%, rgba(0, 229, 255, 0.18), transparent 30rem),
    radial-gradient(circle at 76% 92%, rgba(255, 45, 132, 0.13), transparent 34rem),
    linear-gradient(145deg, #02030a 0%, #050818 54%, #020711 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, a, label, select { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

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

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 200; transform: translateY(-150%); padding: 10px 16px; border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(90px); opacity: 0.5; }
.ambient-one { width: 22rem; height: 22rem; top: -12rem; left: 24%; background: #5b21b6; }
.ambient-two { width: 18rem; height: 18rem; right: -10rem; top: 35%; background: #155e75; }

.surface-card {
  background: linear-gradient(145deg, rgba(22, 34, 69, 0.96), rgba(7, 13, 31, 0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.eyebrow { margin: 0 0 6px; color: #b8a6ff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.brand-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; }
.brand-lockup-large { gap: 14px; font-size: 1.45rem; }
.brand-lockup img { flex: 0 0 auto; }

.button, .icon-button, .text-button, .nav-item, .avatar-button, .credit-chip, .section-toggle, .wallet-card {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 750;
  text-decoration: none;
  transition: background var(--motion-fast) ease, border-color var(--motion-fast) ease, opacity var(--motion-fast) ease, transform var(--motion-fast) ease;
}
.button:active:not(:disabled) { transform: scale(0.98); }
.button:disabled, .icon-button:disabled { cursor: not-allowed; opacity: 0.45; }
.button-primary { background: linear-gradient(105deg, #7627ff, #ad40ff 48%, #008cff); color: #fff; box-shadow: 0 14px 32px rgba(124, 58, 237, 0.38), 0 0 24px rgba(0, 229, 255, 0.12); }
.button-primary:hover:not(:disabled) { background: var(--primary-hover); }
.button-secondary { background: var(--surface-strong); color: var(--text); border: 1px solid var(--border-strong); }
.button-secondary:hover:not(:disabled) { background: #1d2944; border-color: #52627f; }
.button-danger { background: rgba(225, 29, 72, 0.1); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.35); }
.button-danger:hover:not(:disabled) { background: rgba(225, 29, 72, 0.18); }
.button-block { width: 100%; }
.button.is-loading { pointer-events: none; }
.button.is-loading svg { display: none; }
.button.is-loading::after {
  content: "";
  width: 30px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 28%, rgba(255, 255, 255, 0.95) 48% 58%, rgba(255, 255, 255, 0.2) 78% 100%);
  background-size: 220% 100%;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: button-progress 1.25s ease-in-out infinite;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease, border-color var(--motion-fast) ease;
}
.icon-button:hover:not(:disabled) { color: var(--text); background: #1d2944; border-color: var(--border-strong); }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; padding: 4px 0; background: transparent; color: #c4b5fd; font-weight: 700; }
.text-button:hover { color: #ddd6fe; text-decoration: underline; }

.auth-view { min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.auth-shell { width: min(100%, 1060px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 68px; align-items: center; }
.auth-story { max-width: 560px; padding: 32px 0; }
.auth-story > .eyebrow { margin-top: 60px; }
.auth-story h1 { max-width: 520px; margin: 0; font-size: clamp(2.6rem, 6vw, 5.1rem); line-height: 0.98; letter-spacing: -0.065em; }
.auth-lead { max-width: 520px; margin: 24px 0 0; color: var(--text-secondary); font-size: 1.1rem; line-height: 1.7; }
.trust-list { display: grid; gap: 18px; margin-top: 42px; }
.trust-list > div { display: flex; gap: 14px; align-items: center; }
.trust-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: var(--primary-soft); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.22); }
.trust-list strong, .trust-list small { display: block; }
.trust-list strong { color: var(--text); font-size: 0.95rem; }
.trust-list small { margin-top: 2px; color: var(--muted); font-size: 0.82rem; }
.auth-card { padding: 34px; box-shadow: var(--shadow-lg); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: 1.65rem; line-height: 1.22; letter-spacing: -0.03em; }
.section-heading > p:last-child { margin: 9px 0 0; color: var(--muted); }
.section-heading.compact { margin-bottom: 28px; }
.form-stack { display: grid; gap: 18px; }
.form-stack.compact-form { gap: 14px; }
.field-group { min-width: 0; }
.field-group label, .field-group > label, .field-group legend { display: block; margin: 0 0 7px; color: var(--text-secondary); font-size: 0.84rem; font-weight: 700; }
.field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), .field-group select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #0c1426;
  color: var(--text);
  font-size: 1rem;
  transition: border-color var(--motion-fast) ease, box-shadow var(--motion-fast) ease, background var(--motion-fast) ease;
}
.field-group input:hover, .field-group select:hover { border-color: #51607c; }
.field-group input:focus, .field-group select:focus { outline: 0; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.17); background: #0e172a; }
.field-group input[aria-invalid="true"] { border-color: var(--negative); }
.field-error { min-height: 18px; margin: 4px 0 0; color: #fda4af; font-size: 0.76rem; }
.input-action { position: relative; }
.input-action input { padding-right: 56px !important; }
.input-button { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; background: transparent; border: 0; }
.form-message { min-height: 20px; color: #fda4af; font-size: 0.84rem; text-align: center; }
.form-message.is-success { color: var(--positive); }
.form-hint { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 0; color: var(--muted); font-size: 0.78rem; }
.form-hint svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 2px; }
.auth-links { display: grid; gap: 7px; justify-items: center; margin-top: 22px; font-size: 0.84rem; }
.auth-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }
.auth-links a:hover { color: var(--text); }

/* Nexora Prism login — secure intelligence gateway */
.auth-view { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 18% 12%, rgba(125, 36, 255, 0.28), transparent 30rem), radial-gradient(circle at 89% 82%, rgba(0, 217, 255, 0.17), transparent 28rem); }
.auth-view::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: 0.2; background-image: linear-gradient(rgba(99, 122, 215, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(99, 122, 215, 0.18) 1px, transparent 1px); background-size: 42px 42px; mask-image: radial-gradient(circle at 44% 48%, #000, transparent 72%); -webkit-mask-image: radial-gradient(circle at 44% 48%, #000, transparent 72%); }
.auth-view::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; left: 42%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(150, 88, 255, 0.12); border-radius: 50%; box-shadow: 0 0 0 90px rgba(101, 44, 255, 0.025), 0 0 0 180px rgba(0, 219, 255, 0.018); }
.auth-shell { width: min(100%, 1180px); grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.78fr); gap: 78px; }
.auth-story { max-width: 630px; padding: 18px 0; }
.auth-story > .eyebrow { display: flex; align-items: center; gap: 8px; margin-top: 34px; color: #cfb5ff; }
.auth-story > .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2affbe; box-shadow: 0 0 0 5px rgba(42, 255, 190, 0.1), 0 0 16px #2affbe; animation: prism-pulse 1.8s ease-in-out infinite; }
.auth-story h1 { max-width: 620px; font-size: clamp(3.2rem, 6.3vw, 6rem); background: linear-gradient(102deg, #fff 4%, #d7bdff 42%, #5defff 82%); background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: 0 18px 70px rgba(98, 43, 255, 0.24); }
.auth-lead { max-width: 590px; color: #b8c7e5; font-size: 1.08rem; }
.auth-prism-scene { position: relative; height: 180px; overflow: hidden; margin-top: 28px; border: 1px solid rgba(133, 93, 255, 0.52); border-radius: 28px; background: radial-gradient(circle at 50% 54%, rgba(124, 60, 255, 0.27), transparent 24%), radial-gradient(circle at 76% 20%, rgba(0, 229, 255, 0.16), transparent 32%), linear-gradient(145deg, rgba(18, 16, 53, 0.92), rgba(4, 17, 38, 0.95)); box-shadow: 0 24px 54px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.09); }
.auth-prism-scene::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(122, 145, 222, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(122, 145, 222, 0.12) 1px, transparent 1px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 24% 76%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24% 76%, transparent); }
.auth-prism-scene::after { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, #a660ff, #fff, #18efff, transparent); }
.auth-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid rgba(113, 209, 255, 0.34); border-radius: 50%; transform: translate(-50%, -50%); }
.auth-orbit-one { width: 142px; height: 142px; box-shadow: 0 0 34px rgba(124, 64, 255, 0.12); }
.auth-orbit-two { width: 102px; height: 102px; border-color: rgba(190, 113, 255, 0.46); }
.auth-orbit-two::after { content: ""; position: absolute; width: 8px; height: 8px; right: 7px; top: 17px; border-radius: 50%; background: #3ffff0; box-shadow: 0 0 15px #3ffff0; animation: prism-pulse 2s ease-in-out infinite; }
.auth-core { position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; display: grid; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(212, 180, 255, 0.7); border-radius: 24px; background: conic-gradient(from 210deg, rgba(87, 27, 255, 0.86), rgba(201, 72, 255, 0.82), rgba(0, 215, 255, 0.7), rgba(87, 27, 255, 0.86)); box-shadow: 0 0 0 7px rgba(128, 65, 255, 0.1), 0 0 38px rgba(128, 65, 255, 0.46); }
.auth-core img { width: 54px; filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.4)); }
.auth-scene-chip { position: absolute; z-index: 3; min-height: 35px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(165, 185, 255, 0.34); border-radius: 12px; background: rgba(6, 11, 31, 0.84); color: #ecf3ff; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em; backdrop-filter: blur(12px); }
.auth-scene-chip svg { width: 15px; height: 15px; }
.auth-scene-chart { left: 8%; top: 24px; color: #e0c7ff; border-color: rgba(179, 100, 255, 0.46); }
.auth-scene-future { right: 7%; bottom: 23px; color: #ffbdd0; border-color: rgba(255, 80, 128, 0.4); }
.auth-scene-live { left: 11%; bottom: 22px; color: #9dffe1; border-color: rgba(41, 255, 192, 0.38); }
.auth-scene-live i { width: 7px; height: 7px; border-radius: 50%; background: #2affbe; box-shadow: 0 0 11px #2affbe; }
.auth-data-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(102, 222, 255, 0.62), transparent); }
.auth-data-line-one { width: 29%; right: 6%; top: 41px; }
.auth-data-line-two { width: 25%; left: 7%; top: 94px; transform: rotate(-9deg); }
.trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.trust-list > div { min-height: 112px; display: grid; align-content: start; gap: 10px; padding: 14px; border: 1px solid rgba(95, 120, 181, 0.35); border-radius: 17px; background: linear-gradient(145deg, rgba(18, 27, 60, 0.74), rgba(6, 12, 29, 0.76)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.06); }
.trust-icon { width: 38px; height: 38px; border-color: rgba(165, 102, 255, 0.42); background: linear-gradient(145deg, rgba(139, 61, 255, 0.3), rgba(0, 212, 255, 0.08)); color: #dbc2ff; box-shadow: 0 0 18px rgba(139, 61, 255, 0.14); }
.trust-list strong { font-size: 0.8rem; }
.trust-list small { font-size: 0.7rem; line-height: 1.4; }
.auth-card { position: relative; overflow: hidden; padding: 31px; border-color: rgba(155, 89, 255, 0.7); background: radial-gradient(circle at 95% 2%, rgba(0, 229, 255, 0.19), transparent 28%), radial-gradient(circle at 0 100%, rgba(153, 43, 255, 0.25), transparent 35%), linear-gradient(150deg, rgba(25, 22, 65, 0.98), rgba(5, 14, 33, 0.99)); box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55), 0 0 44px rgba(109, 42, 255, 0.19), inset 0 1px rgba(255, 255, 255, 0.12); }
.auth-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.14; background-image: linear-gradient(rgba(128, 152, 222, 0.17) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 152, 222, 0.17) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(145deg, #000, transparent 68%); -webkit-mask-image: linear-gradient(145deg, #000, transparent 68%); }
.auth-card-beam { position: absolute; z-index: 2; left: 16px; right: 16px; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #a24cff 30%, #fff 52%, #0fe6ff 75%, transparent); box-shadow: 0 0 18px rgba(151, 75, 255, 0.46); }
.auth-card > *:not(.auth-card-beam) { position: relative; z-index: 1; }
.auth-security-strip { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -4px 0 24px; padding-bottom: 14px; border-bottom: 1px solid rgba(100, 127, 193, 0.34); color: #9eb0d2; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.auth-security-strip span { display: inline-flex; align-items: center; gap: 7px; }
.auth-security-strip i, .auth-proof-row i { width: 7px; height: 7px; border-radius: 50%; background: #2affbe; box-shadow: 0 0 11px #2affbe; }
.auth-security-strip strong { color: #66efff; }
.auth-card .section-heading h2 { color: #fff; font-size: 1.8rem; }
.auth-card .section-heading > p:last-child { color: #9dafce; }
.auth-card .field-group label { color: #dce7ff; }
.auth-card .field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { min-height: 54px; border-color: rgba(92, 120, 183, 0.68); background: rgba(3, 9, 25, 0.83); box-shadow: inset 0 1px rgba(255, 255, 255, 0.04); }
.auth-card .field-group input:hover { border-color: rgba(126, 166, 255, 0.84); }
.auth-card .field-group input:focus { border-color: #aa66ff; background: rgba(7, 12, 31, 0.96); box-shadow: 0 0 0 3px rgba(156, 84, 255, 0.19), 0 0 24px rgba(106, 52, 255, 0.14); }
.auth-card .button-primary { min-height: 56px; margin-top: 2px; border: 1px solid rgba(217, 182, 255, 0.4); box-shadow: 0 18px 38px rgba(103, 32, 255, 0.35), 0 0 28px rgba(0, 206, 255, 0.15); }
.auth-proof-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #8196b9; font-size: 0.65rem; font-weight: 700; }
.auth-proof-row span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #a7d8d1; }
.auth-links { margin-top: 18px; }
.auth-links a { color: #a8bbdc; }

.app-shell { min-height: 100dvh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); display: flex; flex-direction: column; padding: max(24px, env(safe-area-inset-top)) 20px max(22px, env(safe-area-inset-bottom)); background: linear-gradient(180deg, rgba(15, 9, 38, 0.98), rgba(3, 9, 24, 0.98)); border-right: 1px solid rgba(132, 76, 255, 0.48); box-shadow: 12px 0 42px rgba(27, 7, 76, 0.28); backdrop-filter: blur(22px); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sidebar-brand { padding: 0 8px; }
.sidebar-brand i { color: #a78bfa; font-style: normal; }
.sidebar-close, .mobile-menu-button, .nav-scrim { display: none; }
.sidebar-nav { display: grid; gap: 7px; margin-top: 34px; }
.sidebar-nav-label { margin: 17px 14px 3px; color: #77859d; font-size: 0.68rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.sidebar-nav-label:first-child { margin-top: 0; }
.nav-item { min-height: 50px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 14px; border-radius: 13px; background: transparent; color: var(--muted); font-size: 0.91rem; font-weight: 700; text-align: left; transition: color var(--motion-fast), background var(--motion-fast); }
.nav-item svg { width: 21px; height: 21px; }
.nav-item:hover { background: rgba(148, 163, 184, 0.08); color: var(--text-secondary); }
.nav-item.is-active { background: linear-gradient(105deg, rgba(124, 45, 255, 0.36), rgba(0, 187, 255, 0.12)); color: #fff; border: 1px solid rgba(158, 94, 255, 0.34); box-shadow: inset 0 0 24px rgba(124, 45, 255, 0.12), 0 8px 22px rgba(37, 12, 86, 0.18); }
.sidebar-note { display: flex; gap: 10px; margin-top: auto; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: rgba(148, 163, 184, 0.05); }
.sidebar-note svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.sidebar-note p { margin: 0; color: var(--muted); font-size: 0.72rem; line-height: 1.5; }
.sidebar-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding: 0 5px; color: #64748b; font-size: 0.7rem; }
.sidebar-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); }

.app-column { grid-column: 2; min-width: 0; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 20; min-height: var(--topbar-height); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: max(14px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 12px max(28px, env(safe-area-inset-left)); background: linear-gradient(90deg, rgba(9, 8, 27, 0.94), rgba(3, 14, 29, 0.92)); border-bottom: 1px solid rgba(87, 98, 181, 0.48); box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24); backdrop-filter: blur(22px); }
.topbar-title h1 { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.02em; }
.topbar-title .eyebrow { margin-bottom: 3px; font-size: 0.62rem; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.mode-chip { min-height: 30px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px; background: rgba(45, 212, 191, 0.09); color: #99f6e4; border: 1px solid rgba(45, 212, 191, 0.2); font-size: 0.65rem; font-weight: 850; letter-spacing: 0.07em; }
.mode-chip.is-otc { background: rgba(251, 191, 36, 0.09); color: #fde68a; border-color: rgba(251, 191, 36, 0.2); }
.mode-chip.is-safety { background: rgba(251, 113, 133, 0.1); color: #fecdd3; border-color: rgba(251, 113, 133, 0.22); }
.credit-chip { min-height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 12px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); font-size: 0.76rem; }
.credit-chip strong { color: var(--text); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.credit-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.11); }
.avatar-button { width: 46px; height: 46px; display: grid; place-items: center; padding: 3px; border-radius: 14px; background: var(--surface-strong); border: 1px solid var(--border-strong); }
.avatar-button img { width: 38px; height: 38px; object-fit: cover; border-radius: 11px; }
.offline-banner { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 20px; background: rgba(251, 191, 36, 0.11); color: #fde68a; border-bottom: 1px solid rgba(251, 191, 36, 0.2); font-size: 0.8rem; }
.offline-banner svg { width: 17px; height: 17px; }

.main-content { width: min(100%, 1320px); margin: 0 auto; padding: 38px 36px 72px; }
.page-section { animation: page-in var(--motion) ease-out both; }

/* Nexora home — cinematic mobile bento dashboard */
.home-page { width: min(100%, 980px); margin: 0 auto; }
.home-dashboard { display: grid; gap: 16px; }
.home-welcome-box, .home-limit-box, .home-tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #34445f;
  background: linear-gradient(145deg, rgba(25, 31, 62, 0.96), rgba(12, 18, 37, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.26), inset 0 1px rgba(255, 255, 255, 0.045);
}
.home-welcome-box { min-height: 220px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; padding: 28px; border-radius: 26px; }
.home-welcome-box::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(116deg, rgba(124, 58, 237, 0.15), transparent 46%, rgba(34, 211, 238, 0.055)); }
.home-glow { position: absolute; border-radius: 50%; filter: blur(18px); opacity: 0.62; pointer-events: none; }
.home-glow-one { width: 150px; height: 150px; right: 18%; top: -90px; background: rgba(124, 58, 237, 0.32); }
.home-glow-two { width: 120px; height: 120px; right: -48px; bottom: -52px; background: rgba(34, 211, 238, 0.17); }
.home-identity, .home-state-cluster { position: relative; z-index: 1; }
.home-identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.home-avatar { width: 78px; height: 78px; flex: 0 0 auto; display: grid; place-items: center; padding: 4px; border: 1px solid rgba(167, 139, 250, 0.64); border-radius: 22px; background: linear-gradient(145deg, rgba(124, 58, 237, 0.48), rgba(34, 211, 238, 0.2)); box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.1), 0 14px 34px rgba(124, 58, 237, 0.22); cursor: pointer; touch-action: manipulation; }
.home-avatar img { width: 68px; height: 68px; border-radius: 17px; object-fit: cover; }
.home-identity h3 { margin: 0; overflow-wrap: anywhere; font-size: clamp(1.55rem, 4vw, 2.25rem); line-height: 1.08; letter-spacing: -0.045em; }
.home-plan-badge { min-height: 30px; display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; padding: 0 10px; border: 1px solid rgba(45, 212, 191, 0.24); border-radius: 999px; background: rgba(45, 212, 191, 0.085); color: #99f6e4; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.home-plan-badge svg { width: 15px; height: 15px; }
.home-state-cluster { width: 326px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-state-box { min-height: 142px; display: grid; align-content: end; padding: 17px; border-radius: 20px; background: rgba(8, 13, 28, 0.62); border: 1px solid rgba(118, 135, 168, 0.24); }
.home-state-box > span { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 13px; }
.home-state-box svg { width: 21px; height: 21px; }
.home-state-box small, .home-state-box strong { display: block; }
.home-state-box small { color: #91a0b8; font-size: 0.73rem; }
.home-state-box strong { margin-top: 3px; color: #eff5ff; font-size: 0.92rem; }
.home-state-ai { box-shadow: inset 0 0 38px rgba(124, 58, 237, 0.08); }
.home-state-ai > span { color: #c4b5fd; background: rgba(124, 58, 237, 0.14); border: 1px solid rgba(167, 139, 250, 0.27); }
.home-state-market { box-shadow: inset 0 0 38px rgba(45, 212, 191, 0.07); }
.home-state-market > span { color: #99f6e4; background: rgba(45, 212, 191, 0.1); border: 1px solid rgba(45, 212, 191, 0.24); }

.home-limit-box { min-height: 92px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 20px; }
.home-limit-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(34, 211, 238, 0.08); color: #67e8f9; border: 1px solid rgba(34, 211, 238, 0.2); }
.home-limit-icon svg { width: 22px; height: 22px; }
.home-limit-box p, .home-limit-box strong, .home-limit-box small { display: block; margin: 0; }
.home-limit-box p { color: #93a3bb; font-size: 0.73rem; }
.home-limit-box > div > strong { margin-top: 2px; font-size: 0.96rem; }
.home-limit-box small { margin-top: 2px; color: #718199; font-size: 0.7rem; }
.home-credit-total { display: grid; justify-items: end; }
.home-credit-total strong { color: #e9faff; font-size: 1.9rem !important; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.05em; }
.home-credit-total span { margin-top: 5px; color: #67e8f9; font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }

.home-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.home-tool-card { --tool: #a78bfa; --tool-rgb: 167, 139, 250; min-height: 188px; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr; align-items: start; padding: 20px; border-color: rgba(var(--tool-rgb), 0.36); border-radius: 22px; color: var(--text); text-align: left; cursor: pointer; touch-action: manipulation; transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), border-color 180ms ease, box-shadow 180ms ease; }
.home-tool-card::before { content: ""; position: absolute; right: -52px; bottom: -66px; width: 154px; height: 154px; border-radius: 50%; background: rgba(var(--tool-rgb), 0.15); box-shadow: 0 0 56px rgba(var(--tool-rgb), 0.14); pointer-events: none; }
.home-tool-card:hover { transform: translateY(-2px); border-color: rgba(var(--tool-rgb), 0.64); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3), 0 0 28px rgba(var(--tool-rgb), 0.08); }
.home-tool-card:active { transform: scale(0.98); }
.home-tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--tool); background: rgba(var(--tool-rgb), 0.11); border: 1px solid rgba(var(--tool-rgb), 0.31); box-shadow: inset 0 0 22px rgba(var(--tool-rgb), 0.08); }
.home-tool-icon svg { width: 23px; height: 23px; }
.home-tool-arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--tool); background: rgba(var(--tool-rgb), 0.08); border: 1px solid rgba(var(--tool-rgb), 0.22); }
.home-tool-arrow svg { width: 17px; height: 17px; }
.home-tool-copy { position: relative; z-index: 1; grid-column: 1 / -1; align-self: end; }
.home-tool-copy strong, .home-tool-copy small { display: block; }
.home-tool-copy strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.home-tool-copy small { margin-top: 4px; color: var(--tool); font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; }
.home-tool-chart { --tool: #b9a4ff; --tool-rgb: 185, 164, 255; }
.home-tool-news { --tool: #7ef4b1; --tool-rgb: 126, 244, 177; }
.home-tool-future { --tool: #ff7f9d; --tool-rgb: 255, 127, 157; }
.home-tool-account { --tool: #ffc967; --tool-rgb: 255, 201, 103; }
.home-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 4px 0; color: #687890; font-size: 0.67rem; font-weight: 750; letter-spacing: 0.08em; }
.home-footer a { min-height: 44px; display: inline-flex; align-items: center; color: #9aabc1; text-decoration: none; letter-spacing: 0; }
.home-footer a:hover { color: #d8e2f0; }

/* Nexora Prism — high-contrast, original visual system */
.brand-lockup img, .avatar-button img { filter: drop-shadow(0 0 12px rgba(137, 71, 255, 0.56)); }
.sidebar-brand i { background: linear-gradient(90deg, #c166ff, #32e6ff); background-clip: text; -webkit-background-clip: text; color: transparent; }
.mode-chip { color: #79ffe0; border-color: rgba(32, 246, 181, 0.44); background: rgba(32, 246, 181, 0.11); box-shadow: 0 0 22px rgba(32, 246, 181, 0.12); }
.credit-chip { background: linear-gradient(145deg, rgba(19, 31, 66, 0.96), rgba(7, 13, 31, 0.98)); border-color: rgba(91, 128, 210, 0.58); box-shadow: inset 0 0 18px rgba(51, 105, 255, 0.08); }

.home-dashboard { position: relative; gap: 18px; }
.home-welcome-box, .home-limit-box, .home-tool-card { isolation: isolate; }
.home-welcome-box {
  min-height: 238px;
  overflow: hidden;
  border: 1px solid rgba(164, 92, 255, 0.82);
  background:
    radial-gradient(circle at 10% 110%, rgba(154, 48, 255, 0.38), transparent 38%),
    radial-gradient(circle at 92% 4%, rgba(0, 230, 255, 0.25), transparent 35%),
    linear-gradient(112deg, #1a0f3e 0%, #11193a 52%, #06283a 100%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.46), 0 0 42px rgba(119, 45, 255, 0.2), inset 0 1px rgba(255, 255, 255, 0.13);
}
.home-welcome-box::before { content: ""; position: absolute; z-index: 3; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, #bb72ff 24%, #ffffff 50%, #21eaff 76%, transparent); opacity: 0.92; }
.home-welcome-box::after { background: linear-gradient(108deg, rgba(255, 255, 255, 0.055), transparent 36%, rgba(0, 229, 255, 0.08)); }
.home-grid-graphic { position: absolute; z-index: 0; inset: 0; opacity: 0.16; background-image: linear-gradient(rgba(132, 160, 255, 0.22) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 160, 255, 0.22) 1px, transparent 1px); background-size: 31px 31px; mask-image: linear-gradient(100deg, transparent 0 26%, #000 68%, transparent 100%); -webkit-mask-image: linear-gradient(100deg, transparent 0 26%, #000 68%, transparent 100%); }
.home-glow-one { width: 300px; height: 300px; left: -110px; bottom: -180px; background: #8b22ff; opacity: 0.38; }
.home-glow-two { width: 250px; height: 250px; right: -72px; top: -132px; background: #00d9ff; opacity: 0.34; }
.home-live-eyebrow { display: flex; align-items: center; gap: 7px; color: #dbc5ff; }
.home-live-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #26ffc0; box-shadow: 0 0 0 5px rgba(38, 255, 192, 0.1), 0 0 16px #26ffc0; animation: prism-pulse 1.8s ease-in-out infinite; }
.home-identity h3 { color: #fff; text-shadow: 0 4px 24px rgba(118, 58, 255, 0.48); }
.home-avatar { border: 2px solid rgba(219, 185, 255, 0.9); background: conic-gradient(from 210deg, #4f16ff, #c84dff, #00dcff, #4f16ff); box-shadow: 0 0 0 5px rgba(150, 73, 255, 0.15), 0 0 34px rgba(144, 56, 255, 0.48), 0 18px 42px rgba(0, 0, 0, 0.4); }
.home-plan-badge { color: #b5ffe7; border-color: rgba(42, 255, 190, 0.55); background: rgba(18, 232, 170, 0.13); box-shadow: 0 0 22px rgba(32, 246, 181, 0.1); }
.home-state-cluster { width: 348px; gap: 14px; }
.home-state-box { position: relative; min-height: 158px; overflow: hidden; border-color: rgba(171, 193, 255, 0.3); background: linear-gradient(160deg, rgba(22, 26, 69, 0.86), rgba(5, 13, 34, 0.92)); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3), inset 0 1px rgba(255, 255, 255, 0.08); }
.home-state-box > span { position: relative; z-index: 2; box-shadow: 0 0 22px currentColor; }
.home-state-box small, .home-state-box strong { position: relative; z-index: 2; }
.home-state-box small { color: #aab9d8; }
.home-state-box strong { color: #fff; font-size: 1rem; }
.home-state-ai { border-color: rgba(178, 97, 255, 0.52); background: linear-gradient(150deg, rgba(83, 25, 143, 0.48), rgba(8, 13, 36, 0.92)); }
.home-state-market { border-color: rgba(21, 239, 213, 0.44); background: linear-gradient(150deg, rgba(7, 94, 102, 0.46), rgba(7, 16, 35, 0.92)); }
.state-scan { position: absolute; inset: 0; background: linear-gradient(110deg, transparent 24%, rgba(197, 121, 255, 0.2) 48%, transparent 72%); transform: translateX(-120%); animation: prism-scan 3.8s ease-in-out infinite; }
.state-orbit { position: absolute; width: 94px; height: 94px; right: -34px; top: -34px; border: 1px solid rgba(70, 255, 229, 0.35); border-radius: 50%; box-shadow: 0 0 0 18px rgba(45, 236, 220, 0.06), 0 0 32px rgba(0, 229, 255, 0.18); }
.state-orbit::after { content: ""; position: absolute; width: 7px; height: 7px; left: 9px; bottom: 9px; border-radius: 50%; background: #44ffe0; box-shadow: 0 0 12px #44ffe0; }

.home-limit-box { min-height: 104px; grid-template-columns: auto minmax(0, 1fr) auto auto; border: 1px solid rgba(77, 179, 255, 0.62); background: linear-gradient(105deg, rgba(17, 45, 91, 0.94), rgba(28, 18, 71, 0.96) 58%, rgba(58, 15, 86, 0.92)); box-shadow: 0 20px 46px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.1), 0 0 30px rgba(45, 112, 255, 0.11); }
.home-limit-icon { width: 54px; height: 54px; color: #fff; border-color: rgba(98, 224, 255, 0.62); background: linear-gradient(145deg, rgba(0, 197, 255, 0.34), rgba(107, 48, 255, 0.3)); box-shadow: 0 0 26px rgba(0, 211, 255, 0.24); }
.home-limit-box p { color: #a9c8ee; }
.home-limit-box > div > strong { color: #fff; font-size: 1.02rem; }
.home-limit-box small { display: flex; align-items: center; gap: 6px; color: #8eb6de; }
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: #1effb7; box-shadow: 0 0 10px #1effb7; }
.home-credit-wave { height: 42px; display: flex; align-items: center; gap: 5px; padding: 0 18px; }
.home-credit-wave i { width: 4px; height: 35%; border-radius: 999px; background: linear-gradient(180deg, #3af7ff, #a449ff); box-shadow: 0 0 9px rgba(56, 239, 255, 0.58); animation: prism-wave 1.9s ease-in-out infinite; }
.home-credit-wave i:nth-child(2), .home-credit-wave i:nth-child(6) { height: 62%; animation-delay: -0.25s; }
.home-credit-wave i:nth-child(3), .home-credit-wave i:nth-child(5) { height: 92%; animation-delay: -0.5s; }
.home-credit-wave i:nth-child(4) { height: 50%; animation-delay: -0.75s; }
.home-credit-total strong { color: #fff; text-shadow: 0 0 22px rgba(55, 225, 255, 0.44); }
.home-credit-total span { color: #58efff; }

.home-tool-grid { gap: 18px; }
.home-tool-card { min-height: 224px; overflow: hidden; padding: 21px; border-width: 1px; border-color: rgba(var(--tool-rgb), 0.72); background: radial-gradient(circle at 86% 28%, rgba(var(--tool-rgb), 0.23), transparent 29%), linear-gradient(140deg, rgba(var(--tool-rgb), 0.16), rgba(12, 20, 48, 0.97) 48%, rgba(5, 10, 27, 0.99)); box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38), 0 0 26px rgba(var(--tool-rgb), 0.11), inset 0 1px rgba(255, 255, 255, 0.1); }
.home-tool-card::before { right: -64px; bottom: -78px; width: 190px; height: 190px; background: rgba(var(--tool-rgb), 0.22); box-shadow: 0 0 68px rgba(var(--tool-rgb), 0.23); }
.home-tool-card::after { content: ""; position: absolute; z-index: 0; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tool-rgb), 0.9), #fff, transparent); opacity: 0.85; }
.home-tool-card:hover { transform: translateY(-5px) scale(1.008); border-color: var(--tool); box-shadow: 0 28px 58px rgba(0, 0, 0, 0.46), 0 0 38px rgba(var(--tool-rgb), 0.2); }
.home-tool-icon { position: relative; z-index: 3; width: 52px; height: 52px; color: #fff; border-color: rgba(var(--tool-rgb), 0.7); background: linear-gradient(145deg, rgba(var(--tool-rgb), 0.48), rgba(var(--tool-rgb), 0.13)); box-shadow: 0 0 28px rgba(var(--tool-rgb), 0.36), inset 0 1px rgba(255, 255, 255, 0.2); }
.home-tool-arrow { position: relative; z-index: 3; color: #fff; border-color: rgba(var(--tool-rgb), 0.5); background: rgba(var(--tool-rgb), 0.2); }
.home-tool-number { position: absolute; z-index: 1; right: 22px; top: 65px; color: rgba(255, 255, 255, 0.12); font-size: 2.5rem; font-weight: 900; letter-spacing: -0.08em; }
.home-tool-copy { z-index: 4; }
.home-tool-copy strong { color: #fff; font-size: 1.14rem; text-shadow: 0 4px 18px rgba(0, 0, 0, 0.55); }
.home-tool-copy small { color: var(--tool); text-shadow: 0 0 15px rgba(var(--tool-rgb), 0.38); }
.home-tool-visual { position: absolute; z-index: 2; top: 62px; left: 88px; right: 58px; height: 82px; pointer-events: none; opacity: 0.94; }
.chart-visual { display: flex; align-items: end; justify-content: center; gap: 10px; border-bottom: 1px solid rgba(var(--tool-rgb), 0.34); }
.chart-visual i { position: relative; width: 10px; height: 40%; border-radius: 3px; background: linear-gradient(180deg, #f4eaff, var(--tool)); box-shadow: 0 0 16px rgba(var(--tool-rgb), 0.5); }
.chart-visual i::before { content: ""; position: absolute; width: 2px; height: calc(100% + 15px); left: 4px; top: -8px; background: rgba(238, 222, 255, 0.8); }
.chart-visual i:nth-child(2) { height: 66%; }
.chart-visual i:nth-child(3) { height: 48%; background: linear-gradient(180deg, #ff8fa8, #ff4d7d); }
.chart-visual i:nth-child(4) { height: 82%; }
.chart-visual i:nth-child(5) { height: 96%; }
.chart-visual b { position: absolute; left: 6%; right: 5%; bottom: 20px; height: 2px; transform: rotate(-14deg); transform-origin: left center; background: linear-gradient(90deg, transparent, #fff, var(--tool)); box-shadow: 0 0 10px var(--tool); }
.news-visual i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 1px solid rgba(var(--tool-rgb), 0.58); border-radius: 50%; box-shadow: 0 0 18px rgba(var(--tool-rgb), 0.16); }
.news-visual i:nth-child(1) { width: 78px; height: 78px; }
.news-visual i:nth-child(2) { width: 52px; height: 52px; }
.news-visual i:nth-child(3) { width: 25px; height: 25px; background: rgba(var(--tool-rgb), 0.15); }
.news-visual::before, .news-visual::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 1px; background: rgba(var(--tool-rgb), 0.48); }
.news-visual::after { left: 18%; right: 18%; top: 50%; bottom: auto; width: auto; height: 1px; }
.news-visual b { position: absolute; width: 9px; height: 9px; left: calc(50% + 24px); top: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(var(--tool-rgb), 0.2), 0 0 20px var(--tool); animation: prism-pulse 2s ease-in-out infinite; }
.future-visual { display: flex; align-items: center; justify-content: center; gap: 6px; }
.future-visual i { width: 5px; height: 26%; border-radius: 999px; background: linear-gradient(180deg, #fff, var(--tool)); box-shadow: 0 0 12px rgba(var(--tool-rgb), 0.58); animation: prism-wave 1.65s ease-in-out infinite; }
.future-visual i:nth-child(2), .future-visual i:nth-child(6) { height: 62%; animation-delay: -0.2s; }
.future-visual i:nth-child(3), .future-visual i:nth-child(5) { height: 92%; animation-delay: -0.4s; }
.future-visual i:nth-child(4) { height: 48%; animation-delay: -0.6s; }
.future-visual i:nth-child(7) { height: 74%; animation-delay: -0.8s; }
.future-visual b { position: absolute; inset: 50% 5% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--tool-rgb), 0.7), transparent); }
.account-visual i { position: absolute; width: 76px; height: 47px; left: 50%; top: 50%; border: 1px solid rgba(var(--tool-rgb), 0.72); border-radius: 12px; background: linear-gradient(145deg, rgba(var(--tool-rgb), 0.25), rgba(10, 15, 37, 0.88)); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(var(--tool-rgb), 0.16); }
.account-visual i:nth-child(1) { transform: translate(-67%, -62%) rotate(-11deg); opacity: 0.55; }
.account-visual i:nth-child(2) { transform: translate(-50%, -50%); }
.account-visual i:nth-child(3) { width: 26px; height: 20px; transform: translate(45%, -50%); border-radius: 7px; background: rgba(var(--tool-rgb), 0.32); }
.account-visual b { position: absolute; width: 8px; height: 8px; left: calc(50% + 21px); top: calc(50% - 4px); border-radius: 50%; background: #fff; box-shadow: 0 0 14px var(--tool); }
.home-tool-chart { --tool: #b66cff; --tool-rgb: 182, 108, 255; }
.home-tool-news { --tool: #3dffc1; --tool-rgb: 61, 255, 193; }
.home-tool-future { --tool: #ff537d; --tool-rgb: 255, 83, 125; }
.home-tool-account { --tool: #ffd34f; --tool-rgb: 255, 211, 79; }
.home-footer { color: #758ab2; }
.home-footer a { color: #b9caf0; }

@keyframes prism-pulse { 0%, 100% { transform: scale(0.9); opacity: 0.7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes prism-scan { 0%, 18% { transform: translateX(-120%); opacity: 0; } 34%, 68% { opacity: 1; } 86%, 100% { transform: translateX(160%); opacity: 0; } }
@keyframes prism-wave { 0%, 100% { transform: scaleY(0.55); opacity: 0.64; } 50% { transform: scaleY(1.08); opacity: 1; } }
.page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-intro h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.45rem); line-height: 1.12; letter-spacing: -0.045em; }
.page-intro p:not(.eyebrow) { max-width: 690px; margin: 10px 0 0; color: var(--muted); }
.status-pill { min-height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border-radius: 999px; border: 1px solid rgba(45, 212, 191, 0.22); background: rgba(45, 212, 191, 0.08); color: #99f6e4; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--positive); }
.signal-layout, .planner-layout { display: grid; grid-template-columns: minmax(330px, 0.82fr) minmax(420px, 1.18fr); gap: 22px; align-items: start; }
.analysis-input-card, .result-card, .planner-layout > .surface-card, .control-card, .news-result, .schedule-card { padding: 22px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-heading h3 { margin: 0; font-size: 1.06rem; }
.card-heading > span { color: var(--muted); font-size: 0.7rem; font-weight: 700; }
.card-actions { display: flex; gap: 8px; }
.upload-zone { position: relative; min-height: 315px; display: grid; place-items: center; overflow: hidden; padding: 20px; border: 1px dashed #465879; border-radius: var(--radius-md); background: rgba(7, 11, 23, 0.58); cursor: pointer; transition: border-color var(--motion-fast), background var(--motion-fast); }
.upload-zone:hover, .upload-zone.is-dragging { border-color: #a78bfa; background: rgba(124, 58, 237, 0.07); }
.upload-zone.has-preview { height: var(--preview-height, 315px); min-height: 0; padding: 0; transition: height 220ms ease, border-color var(--motion-fast); }
.upload-zone.has-preview.is-portrait { border-style: solid; border-color: #344968; background: #060b15; }
.upload-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload-zone > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #070b17; }
.upload-placeholder { display: grid; justify-items: center; max-width: 270px; text-align: center; }
.upload-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 18px; background: var(--primary-soft); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.24); }
.upload-icon svg { width: 25px; height: 25px; }
.upload-placeholder strong { font-size: 1rem; }
.upload-placeholder small { margin-top: 7px; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.upload-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: -10px; color: var(--muted); font-size: 0.78rem; }
.upload-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card { min-height: 515px; }
.empty-result, .result-loading { min-height: 468px; display: grid; align-content: center; justify-items: center; text-align: center; }
.empty-result > span { width: 66px; height: 66px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 21px; background: rgba(148, 163, 184, 0.07); color: #64748b; border: 1px solid var(--border); }
.empty-result h3 { margin: 0; font-size: 1.08rem; }
.empty-result p { max-width: 330px; margin: 8px 0 0; color: var(--muted); font-size: 0.84rem; }
.result-loading { padding: 34px 22px; }
.result-loading .ai-scan { position: relative; width: min(100%, 280px); height: 118px; overflow: hidden; margin: 0 auto 24px; border: 1px solid #2b3b56; border-radius: 16px; background: linear-gradient(180deg, #0b1526, #08111f); }
.ai-scan::before, .ai-scan::after { content: ""; position: absolute; left: 16px; right: 16px; height: 1px; background: rgba(91, 116, 153, 0.16); }
.ai-scan::before { top: 39px; }
.ai-scan::after { top: 78px; }
.ai-scan svg { position: absolute; inset: 11px 14px; width: calc(100% - 28px); height: calc(100% - 22px); fill: none; stroke: #63e6e2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.78; }
.ai-scan svg circle { fill: #63e6e2; stroke: #07111f; stroke-width: 4; }
.ai-scan > span { position: absolute; top: 0; bottom: 0; left: 0; width: 36%; transform: translateX(-120%); background: linear-gradient(90deg, transparent, rgba(99, 230, 226, 0.12), rgba(99, 230, 226, 0.3), transparent); animation: scan-pass 1.6s ease-in-out infinite; }
.result-loading > h3 { margin: 6px 0 0; color: #edf4ff; font-size: 1.05rem; letter-spacing: -0.02em; }
.result-loading > p:not(.eyebrow) { margin: 9px 0 0; color: #8291aa; font-size: 0.76rem; }
.ai-scan-progress { width: min(100%, 220px); height: 3px; overflow: hidden; margin: 24px auto 0; border-radius: 999px; background: #17243a; }
.ai-scan-progress span { display: block; width: 34%; height: 100%; transform: translateX(-110%); border-radius: inherit; background: #63e6e2; animation: scan-progress 1.6s ease-in-out infinite; }
.result-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.result-hero h3 { margin: 0; font-size: 1.8rem; letter-spacing: -0.04em; }
.decision-badge { min-width: 82px; min-height: 38px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 11px; background: rgba(148, 163, 184, 0.1); color: var(--text-secondary); border: 1px solid var(--border-strong); font-size: 0.82rem; font-weight: 900; letter-spacing: 0.05em; }
.decision-badge.is-call, .decision-badge.is-buy { background: rgba(45, 212, 191, 0.12); color: #99f6e4; border-color: rgba(45, 212, 191, 0.28); }
.decision-badge.is-put, .decision-badge.is-sell { background: rgba(251, 113, 133, 0.12); color: #fecdd3; border-color: rgba(251, 113, 133, 0.28); }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.metric-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-grid > div { min-height: 78px; display: flex; flex-direction: column; justify-content: center; padding: 13px; border-radius: 13px; background: rgba(7, 11, 23, 0.52); border: 1px solid var(--border); }
.metric-grid span { color: var(--muted); font-size: 0.7rem; }
.metric-grid strong { margin-top: 4px; overflow-wrap: anywhere; color: var(--text); font-size: 0.96rem; font-variant-numeric: tabular-nums; }
.rationale-box { margin-top: 16px; padding: 16px; border-radius: 14px; background: rgba(124, 58, 237, 0.07); border: 1px solid rgba(167, 139, 250, 0.16); }
.rationale-box span { color: #c4b5fd; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.rationale-box p { margin: 7px 0 0; color: var(--text-secondary); font-size: 0.86rem; line-height: 1.65; }
.risk-note { margin: 15px 0 0; color: #728097; font-size: 0.72rem; text-align: center; }

/* Chart AI result — Nexora Spectrum */
.result-card {
  --decision: #63e6e2;
  --decision-rgb: 99, 230, 226;
  --decision-edge: #5b8cff;
  scroll-margin-top: calc(var(--topbar-height) + 14px);
}
.result-card.is-call { --decision: #63e6e2; --decision-rgb: 99, 230, 226; --decision-edge: #5b8cff; }
.result-card.is-put { --decision: #ff9a72; --decision-rgb: 255, 154, 114; --decision-edge: #ff5e85; }
.analysis-report { display: grid; gap: 16px; animation: report-in 280ms cubic-bezier(0.16, 1, 0.3, 1) both; }

.decision-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.72fr) 122px;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(var(--decision-rgb), 0.3);
  border-radius: 18px 18px 34px 18px;
  background:
    linear-gradient(112deg, rgba(var(--decision-rgb), 0.085), transparent 43%),
    linear-gradient(145deg, #0a1528 0%, #0c1b30 58%, #0a1425 100%);
  box-shadow: inset 4px 0 0 var(--decision), inset 0 1px rgba(255, 255, 255, 0.045);
}
.decision-canvas::after {
  content: "";
  position: absolute;
  right: -64px;
  bottom: -94px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(var(--decision-rgb), 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 36px rgba(var(--decision-rgb), 0.025), 0 0 0 74px rgba(var(--decision-rgb), 0.018);
  pointer-events: none;
}
.decision-identity, .verdict-column, .confidence-orbit { position: relative; z-index: 1; min-width: 0; }
.instrument-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 5px; }
.instrument-line h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; overflow-wrap: anywhere; font-size: clamp(1.35rem, 4vw, 2.2rem); line-height: 1.12; letter-spacing: -0.045em; }
.asset-leg { display: inline-flex; align-items: center; gap: 5px; }
.asset-flag { font-size: 0.76em; line-height: 1; letter-spacing: 0; filter: saturate(0.92); }
.asset-slash { color: #71829d; font-weight: 500; }
.asset-otc { color: var(--decision); font-size: 0.48em; font-weight: 850; letter-spacing: 0.03em; }
.instrument-line > span { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border: 1px solid rgba(var(--decision-rgb), 0.24); border-radius: 7px; color: var(--decision); background: rgba(var(--decision-rgb), 0.065); font-size: 0.67rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em; }
.context-rail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 21px 0 0; padding-top: 16px; border-top: 1px solid rgba(109, 133, 168, 0.22); }
.context-rail div { min-width: 0; padding: 0 12px; border-left: 1px solid rgba(109, 133, 168, 0.22); }
.context-rail div:first-child { padding-left: 0; border-left: 0; }
.context-rail dt { color: #8291aa; font-size: 0.63rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.context-rail dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #dce7f7; font-size: 0.78rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.verdict-column { padding-left: 20px; border-left: 1px solid rgba(109, 133, 168, 0.22); }
.verdict-kicker { color: #8291aa; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.verdict-line { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.verdict-line strong { color: var(--decision); font-size: clamp(2rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.055em; }
.verdict-icon { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(var(--decision-rgb), 0.42); border-radius: 12px; color: var(--decision); background: rgba(var(--decision-rgb), 0.08); }
.verdict-icon svg { width: 24px; height: 24px; stroke-width: 2; }
.verdict-column > p { margin: 10px 0 0; color: #8d9bb2; font-size: 0.73rem; }
.verdict-column > p span { color: #dce7f7; font-weight: 800; }

.confidence-orbit {
  --confidence-angle: 0deg;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  justify-self: end;
  border-radius: 50%;
  background: conic-gradient(var(--decision) var(--confidence-angle), rgba(97, 117, 148, 0.22) 0);
  box-shadow: 0 12px 34px rgba(var(--decision-rgb), 0.1);
}
.confidence-orbit::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(109, 133, 168, 0.24); border-radius: inherit; background: #0b1729; }
.confidence-orbit > span { position: relative; z-index: 1; display: grid; justify-items: center; }
.confidence-orbit strong { color: #f3f8ff; font-size: 1.42rem; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; }
.confidence-orbit small { margin-top: 6px; color: #8291aa; font-size: 0.58rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.07em; }

.price-map { padding: 20px 22px 21px; border: 1px solid #263650; border-radius: 16px; background: #0b1322; }
.price-map > header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.price-map h4, .ai-readout h4 { margin: 3px 0 0; color: #edf4ff; font-size: 1rem; letter-spacing: -0.02em; }
.price-map > header > span { max-width: 52%; padding: 6px 9px; border-radius: 7px; background: #131f32; color: #b8c6d9; font-size: 0.69rem; font-weight: 700; text-align: right; }
.price-track { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 23px; }
.price-track::before { content: ""; position: absolute; top: 7px; left: 7%; right: 7%; height: 1px; background: linear-gradient(90deg, var(--decision), #557499 50%, var(--decision-edge)); }
.price-track > div { position: relative; min-width: 0; display: grid; justify-items: center; text-align: center; }
.price-track i { position: relative; z-index: 1; width: 15px; height: 15px; border: 3px solid #0b1322; border-radius: 50%; background: var(--decision); box-shadow: 0 0 0 1px rgba(var(--decision-rgb), 0.45); }
.price-track > div:nth-child(2) i { width: 19px; height: 19px; margin-top: -2px; border-radius: 4px; transform: rotate(45deg); background: #dbe8f8; box-shadow: 0 0 0 1px #6883a7; }
.price-track > div:nth-child(3) i { background: var(--decision-edge); box-shadow: 0 0 0 1px var(--decision-edge); }
.price-track span { margin-top: 10px; color: #8291aa; font-size: 0.61rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.price-track strong { margin-top: 5px; overflow-wrap: anywhere; color: #edf4ff; font-size: 0.83rem; font-variant-numeric: tabular-nums; }

.ai-readout { padding: 20px 22px; border-left: 2px solid var(--decision); border-radius: 0 14px 14px 0; background: linear-gradient(90deg, rgba(var(--decision-rgb), 0.075), rgba(10, 18, 32, 0.72) 40%); }
.ai-readout > header { display: flex; align-items: center; gap: 12px; }
.ai-readout > header > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(var(--decision-rgb), 0.3); border-radius: 10px; color: var(--decision); background: rgba(var(--decision-rgb), 0.07); }
.ai-readout svg { width: 19px; height: 19px; }
.ai-readout > p { max-width: 72ch; margin: 15px 0 0; color: #c0ccdc; font-size: 0.84rem; line-height: 1.72; }
.ai-readout > small { display: block; margin-top: 13px; color: #72819a; font-size: 0.66rem; }
.analyze-another { width: 100%; min-height: 52px; border: 1px solid rgba(var(--decision-rgb), 0.4); color: #e9f4ff; background: rgba(var(--decision-rgb), 0.055); box-shadow: none; }
.analyze-another:hover { border-color: var(--decision); background: rgba(var(--decision-rgb), 0.1); }
.analyze-another:active { background: rgba(var(--decision-rgb), 0.14); }
.analyze-another svg { width: 19px; height: 19px; color: var(--decision); }

.control-card { margin-bottom: 18px; }
.control-grid { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(180px, 0.7fr) minmax(260px, 1fr) auto; gap: 14px; align-items: end; }
.segmented-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.segmented { min-height: 48px; display: grid; grid-template-columns: repeat(2, 1fr); padding: 4px; border: 1px solid var(--border-strong); border-radius: 12px; background: #0c1426; }
.segmented label { margin: 0; }
.segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.segmented span { min-height: 38px; display: grid; place-items: center; border-radius: 9px; color: var(--muted); cursor: pointer; font-size: 0.8rem; }
.segmented input:checked + span { background: var(--surface-strong); color: var(--text); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.segmented input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.inline-status { min-height: 30px; color: var(--muted); font-size: 0.84rem; }
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.event-card { min-height: 210px; display: grid; align-content: space-between; gap: 13px; width: 100%; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); color: var(--text); text-align: left; cursor: pointer; transition: border-color var(--motion-fast), background var(--motion-fast), transform var(--motion-fast); }
.event-card:hover { border-color: var(--border-strong); background: #151f35; }
.event-card:active { transform: scale(0.99); }
.event-card.is-selected { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.13); }
.event-card-header { display: flex; align-items: flex-start; gap: 12px; }
.event-currency { min-width: 47px; height: 36px; display: grid; place-items: center; padding: 0 9px; border-radius: 10px; background: var(--primary-soft); color: #c4b5fd; font-size: 0.74rem; font-weight: 850; }
.event-card h3 { margin: 0; font-size: 0.96rem; line-height: 1.45; }
.event-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 0.72rem; }
.impact-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; color: #fde68a; background: rgba(251, 191, 36, 0.1); border: 1px solid rgba(251, 191, 36, 0.2); font-weight: 800; }
.impact-badge.is-high { color: #fecdd3; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.22); }
.event-snapshot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.event-snapshot span { min-height: 34px; display: flex; align-items: center; padding: 7px 9px; border-radius: 9px; background: rgba(7, 11, 23, 0.5); border: 1px solid var(--border); color: var(--muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.event-signal-row { display: flex; flex-wrap: wrap; gap: 7px; }
.event-signal { min-height: 27px; display: inline-flex; align-items: center; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(148, 163, 184, 0.08); color: var(--text-secondary); font-size: 0.67rem; font-weight: 850; letter-spacing: 0.03em; }
.event-signal.is-call { color: #99f6e4; background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.24); }
.event-signal.is-put { color: #fecdd3; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.24); }
.selected-event { position: sticky; bottom: 18px; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 16px; padding: 14px; box-shadow: var(--shadow-lg); }
.selected-event > div { min-width: 0; display: flex; align-items: center; gap: 12px; }
.selected-event small, .selected-event strong { display: block; }
.selected-event small { color: var(--muted); font-size: 0.68rem; }
.selected-event strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.86rem; }
.news-result { margin-top: 18px; }

.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.range-field > div { display: flex; align-items: center; justify-content: space-between; }
.range-field output { color: #c4b5fd; font-weight: 800; font-variant-numeric: tabular-nums; }
.range-field input { width: 100%; accent-color: var(--primary); }
.range-field p { margin: 5px 0 0; color: var(--muted); font-size: 0.75rem; }
.future-relay-status { align-self: flex-start; }
.future-relay-status b { font-size: inherit; }
.future-relay-status.is-connecting { color: #c4b5fd; border-color: rgba(167, 139, 250, 0.28); background: rgba(139, 92, 246, 0.09); }
.future-relay-status.is-connecting span { background: #a78bfa; box-shadow: 0 0 12px rgba(167, 139, 250, 0.7); }
.future-relay-status.is-live span { background: #2dd4bf; box-shadow: 0 0 12px rgba(45, 212, 191, 0.72); }
.future-relay-status.is-stale { color: #fde68a; border-color: rgba(251, 191, 36, 0.25); background: rgba(251, 191, 36, 0.08); }
.future-relay-status.is-stale span { background: #fbbf24; }
.future-relay-status.is-offline { color: #fecdd3; border-color: rgba(251, 113, 133, 0.25); background: rgba(251, 113, 133, 0.08); }
.future-relay-status.is-offline span { background: #fb7185; }
.future-control-card { position: relative; overflow: hidden; }
.future-control-card::before { content: ""; position: absolute; width: 230px; height: 230px; right: -116px; top: -126px; border-radius: 50%; background: radial-gradient(circle, rgba(45, 212, 191, 0.12), transparent 68%); pointer-events: none; }
.timeframe-lock { min-height: 31px; display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(45, 212, 191, 0.22); border-radius: 999px; background: rgba(45, 212, 191, 0.08); color: #99f6e4; font-size: 0.7rem; font-weight: 850; letter-spacing: 0.04em; text-transform: uppercase; }
.timeframe-lock svg { width: 14px; height: 14px; }
.field-label-row { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-action { min-width: 82px; min-height: 44px; margin: -9px -7px -7px 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 10px; background: transparent; color: #99f6e4; font: inherit; font-size: 0.72rem; font-weight: 800; cursor: pointer; }
.field-action:hover, .field-action:focus-visible { background: rgba(45, 212, 191, 0.08); color: #ccfbf1; }
.field-action:disabled { opacity: 0.52; cursor: wait; }
.field-action svg { width: 14px; height: 14px; }
.field-helper { min-height: 18px; margin: 6px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.future-asset-field select:disabled { opacity: 0.66; cursor: wait; }
.future-confidence-field { padding: 14px; border: 1px solid rgba(167, 139, 250, 0.16); border-radius: 14px; background: rgba(139, 92, 246, 0.055); }
.strategy-logic { display: flex; flex-wrap: wrap; gap: 7px; }
.strategy-logic span { min-height: 29px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(148, 163, 184, 0.15); border-radius: 999px; background: rgba(148, 163, 184, 0.06); color: var(--text-secondary); font-size: 0.65rem; font-weight: 750; }
.live-signal-card { overflow: hidden; }
.future-empty { min-height: 390px; }
.future-empty small { color: var(--muted); font-size: 0.72rem; }
.future-signal-result { display: grid; gap: 14px; }
.future-verdict { position: relative; overflow: hidden; display: grid; gap: 22px; padding: 20px; border: 1px solid rgba(148, 163, 184, 0.19); border-radius: 18px; background: linear-gradient(145deg, rgba(14, 23, 44, 0.92), rgba(7, 13, 28, 0.92)); }
.future-verdict::before { content: ""; position: absolute; width: 190px; height: 190px; right: -75px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(148, 163, 184, 0.16), transparent 70%); pointer-events: none; }
.future-verdict.is-call { border-color: rgba(45, 212, 191, 0.3); background: linear-gradient(145deg, rgba(8, 47, 48, 0.72), rgba(6, 19, 31, 0.95)); }
.future-verdict.is-call::before { background: radial-gradient(circle, rgba(45, 212, 191, 0.24), transparent 70%); }
.future-verdict.is-put { border-color: rgba(251, 113, 133, 0.3); background: linear-gradient(145deg, rgba(62, 20, 37, 0.72), rgba(20, 10, 25, 0.95)); }
.future-verdict.is-put::before { background: radial-gradient(circle, rgba(251, 113, 133, 0.23), transparent 70%); }
.future-verdict.is-wait { border-color: rgba(251, 191, 36, 0.28); background: linear-gradient(145deg, rgba(51, 39, 14, 0.64), rgba(17, 15, 22, 0.96)); }
.future-verdict.is-wait::before { background: radial-gradient(circle, rgba(251, 191, 36, 0.2), transparent 70%); }
.future-verdict-top, .future-pair-row, .future-analysis-heading { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.future-direction { min-height: 32px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid rgba(251, 191, 36, 0.28); border-radius: 999px; background: rgba(251, 191, 36, 0.1); color: #fde68a; font-size: 0.74rem; font-weight: 900; letter-spacing: 0.1em; }
.future-verdict.is-call .future-direction { color: #99f6e4; border-color: rgba(45, 212, 191, 0.3); background: rgba(45, 212, 191, 0.12); }
.future-verdict.is-put .future-direction { color: #fecdd3; border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.12); }
.future-market-label { display: inline-flex; align-items: center; gap: 7px; color: var(--text-secondary); font-size: 0.7rem; font-weight: 750; }
.future-market-label i { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 10px rgba(45, 212, 191, 0.65); }
.future-pair-row p { margin: 0 0 5px; color: var(--text-secondary); font-size: 0.74rem; }
.future-pair-row h4 { margin: 0; color: var(--text); font-size: clamp(1.25rem, 2.8vw, 1.8rem); letter-spacing: -0.03em; }
.future-entry { min-width: 92px; display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.future-entry small { color: var(--muted); font-size: 0.58rem; font-weight: 850; letter-spacing: 0.13em; }
.future-entry strong { color: #fff; font-size: 1.45rem; }
.future-entry span { color: #99f6e4; font-size: 0.64rem; font-weight: 750; }
.future-signal-code { position: relative; z-index: 1; overflow-x: auto; padding: 11px 12px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 11px; background: rgba(2, 7, 16, 0.56); }
.future-signal-code code { color: #dffdf6; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.78rem; font-weight: 800; white-space: nowrap; }
.future-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.future-metric-grid > div { min-width: 0; display: grid; gap: 5px; padding: 12px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 13px; background: rgba(7, 11, 23, 0.44); }
.future-metric-grid small { overflow: hidden; color: var(--muted); font-size: 0.61rem; text-overflow: ellipsis; white-space: nowrap; }
.future-metric-grid strong { overflow: hidden; color: var(--text); font-size: 0.9rem; text-overflow: ellipsis; white-space: nowrap; }
.future-analysis-block { padding: 16px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 15px; background: rgba(7, 11, 23, 0.38); }
.future-analysis-heading { align-items: flex-start; }
.future-analysis-heading h4 { margin: 2px 0 0; color: var(--text); font-size: 0.9rem; }
.future-analysis-heading > span { min-height: 28px; display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid rgba(167, 139, 250, 0.22); border-radius: 999px; background: rgba(139, 92, 246, 0.09); color: #c4b5fd; font-size: 0.64rem; font-weight: 800; }
.future-analysis-block ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.future-analysis-block li { position: relative; padding-left: 15px; color: var(--text-secondary); font-size: 0.73rem; line-height: 1.5; }
.future-analysis-block li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: #a78bfa; }
.schedule-card { min-height: 510px; }
.empty-compact { min-height: 390px; display: grid; align-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-compact svg { width: 34px; height: 34px; color: #64748b; }
.empty-compact p { margin: 12px 0 0; }
.schedule-loading { min-height: 390px; display: grid; align-content: center; gap: 22px; padding: 18px; }
.schedule-loading-head { display: flex; align-items: center; justify-content: center; gap: 13px; text-align: left; }
.schedule-loading-head strong, .schedule-loading-head small { display: block; }
.schedule-loading-head strong { color: var(--text); font-size: 0.9rem; }
.schedule-loading-head small { margin-top: 3px; color: var(--muted); font-size: 0.72rem; }
.signal-pulse { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid rgba(167, 139, 250, 0.24); border-radius: 13px; background: var(--primary-soft); }
.signal-pulse i { width: 4px; height: 14px; border-radius: 999px; background: #c4b5fd; transform-origin: center; animation: signal-wave 1.1s ease-in-out infinite; }
.signal-pulse i:nth-child(2) { animation-delay: 120ms; }
.signal-pulse i:nth-child(3) { animation-delay: 240ms; }
.signal-skeleton { display: grid; gap: 9px; width: min(100%, 420px); margin: 0 auto; }
.signal-skeleton span { position: relative; height: 48px; overflow: hidden; border: 1px solid var(--border); border-left: 3px solid rgba(167, 139, 250, 0.5); border-radius: 11px; background: rgba(7, 11, 23, 0.52); }
.signal-skeleton span::after { content: ""; position: absolute; inset: 0; transform: translateX(-115%); background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.08), rgba(196, 181, 253, 0.17), transparent); animation: signal-shimmer 1.4s ease-in-out infinite; }
.signal-skeleton span:nth-child(2)::after { animation-delay: 110ms; }
.signal-skeleton span:nth-child(3)::after { animation-delay: 220ms; }
.schedule-list { display: grid; gap: 7px; max-height: 410px; overflow: auto; padding-right: 4px; }
.schedule-row { display: flex; align-items: center; min-height: 48px; padding: 9px 12px; border-radius: 11px; background: rgba(7, 11, 23, 0.52); border: 1px solid var(--border); border-left-width: 3px; font-variant-numeric: tabular-nums; }
.schedule-row.is-call { border-left-color: #2dd4bf; }
.schedule-row.is-put { border-left-color: #fb7185; }
.future-signal-line { overflow-x: auto; color: var(--text); font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.8rem; font-weight: 750; line-height: 1.5; white-space: nowrap; }
.schedule-row.is-call .future-signal-line { color: #99f6e4; }
.schedule-row.is-put .future-signal-line { color: #fecdd3; }

.drawer-layer, .modal-layer { position: fixed; inset: 0; z-index: 80; }
.drawer-scrim, .modal-scrim { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(3, 6, 14, 0.66); backdrop-filter: blur(5px); border: 0; cursor: default; }
.profile-drawer { position: absolute; top: 0; right: 0; width: min(100%, 440px); height: 100%; overflow-y: auto; padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); background: #0b1221; border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); animation: drawer-in var(--motion) ease-out both; }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.drawer-header h2 { margin: 0; font-size: 1.5rem; }
.profile-identity { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 18px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.profile-avatar { position: relative; flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border-radius: 20px; background: var(--surface-strong); border: 1px solid var(--border-strong); cursor: pointer; }
.profile-avatar img { width: 72px; height: 72px; object-fit: cover; border-radius: 19px; }
.profile-avatar > span { position: absolute; right: -5px; bottom: -5px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--primary); color: #fff; border: 2px solid #0b1221; }
.profile-avatar > span svg { width: 14px; height: 14px; }
.profile-identity h3 { margin: 0; font-size: 1.15rem; }
.profile-identity p { margin: 3px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 0.8rem; }
.profile-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 12px; }
.profile-stats > div { padding: 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); }
.profile-stats span, .profile-stats strong { display: block; }
.profile-stats span { color: var(--muted); font-size: 0.7rem; }
.profile-stats strong { margin-top: 3px; font-size: 0.94rem; text-transform: capitalize; }
.profile-section { margin: 12px 0 0; padding: 16px; border-radius: var(--radius-md); background: var(--surface); border: 1px solid var(--border); }
.settings-fieldset { margin: 0; padding: 0; border: 0; }
.check-grid { display: grid; gap: 8px; }
.check-grid label { min-height: 56px; display: flex; align-items: center; gap: 11px; margin: 0; padding: 9px 11px; border-radius: 11px; background: #0c1426; border: 1px solid var(--border); cursor: pointer; }
.check-grid input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.check-grid strong, .check-grid small { display: block; }
.check-grid strong { color: var(--text-secondary); font-size: 0.78rem; }
.check-grid small { margin-top: 2px; color: var(--muted); font-size: 0.66rem; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-row h3 { margin: 0; font-size: 0.92rem; }
.section-row p { margin: 3px 0 0; color: var(--muted); font-size: 0.72rem; }
.switch { position: relative; flex: 0 0 auto; }
.switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch span { position: relative; display: block; width: 50px; height: 30px; border-radius: 999px; background: #293650; border: 1px solid #40506c; cursor: pointer; transition: background var(--motion-fast); }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #dbe4f2; transition: transform var(--motion-fast); }
.switch input:checked + span { background: var(--primary); border-color: var(--primary); }
.switch input:checked + span::after { transform: translateX(20px); background: #fff; }
.switch input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.switch small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.section-toggle { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; margin-top: 12px; padding: 10px 14px; border-radius: var(--radius-md); background: var(--surface); color: var(--text); border: 1px solid var(--border); text-align: left; }
.section-toggle > span { display: flex; align-items: center; gap: 12px; }
.section-toggle strong, .section-toggle small { display: block; }
.section-toggle strong { font-size: 0.88rem; }
.section-toggle small { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }
.section-toggle > svg { flex: 0 0 auto; color: var(--muted); transition: transform var(--motion-fast); }
.section-toggle[aria-expanded="true"] > svg { transform: rotate(180deg); }
.toggle-icon { width: 38px; height: 38px; display: grid !important; place-items: center; border-radius: 11px; background: var(--primary-soft); color: #c4b5fd; }
#purchasePanel { padding-top: 14px; }
.binance-payment-card { min-height: 82px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 14px; padding: 13px; border-radius: 14px; background: #0c1426; border: 1px solid var(--border); }
.binance-payment-card img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; }
.binance-payment-card strong, .binance-payment-card span { display: block; }
.binance-payment-card strong { color: var(--text); font-size: 0.88rem; }
.binance-payment-card span { margin-top: 2px; color: var(--muted); font-size: 0.68rem; line-height: 1.45; }
.binance-payment-card .binance-account-id { margin-top: 4px; color: #d8e7f7; font-weight: 700; }
.binance-payment-card .binance-account-id code { margin-left: 5px; color: #fef3c7; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; letter-spacing: 0.035em; }
.binance-payment-card b { padding: 7px 9px; border-radius: 9px; background: rgba(245, 158, 11, 0.14); color: #fde68a; font-size: 0.68rem; white-space: nowrap; }
.payment-history { display: grid; gap: 7px; margin-top: 14px; }
.payment-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border-radius: 10px; background: #0c1426; border: 1px solid var(--border); font-size: 0.72rem; }
.payment-row > div { min-width: 0; }
.payment-row strong, .payment-row small { display: block; }
.payment-row small { overflow-wrap: anywhere; color: var(--muted); }
.payment-status { color: #fde68a; text-transform: capitalize; }
.payment-status.is-approved { color: #99f6e4; }
.payment-status.is-rejected { color: #fda4af; }
.payment-empty { margin: 0; padding: 12px; border: 1px dashed var(--border); border-radius: 11px; color: var(--muted); font-size: 0.72rem; text-align: center; }
#logoutButton { margin-top: 18px; }

.modal-layer { display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.install-modal { position: relative; z-index: 1; width: min(100%, 470px); padding: 24px; box-shadow: var(--shadow-lg); animation: modal-in var(--motion) ease-out both; }
.install-visual { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 16px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); }
.install-visual strong, .install-visual span { display: block; }
.install-visual strong { font-size: 1.05rem; }
.install-visual span { color: var(--muted); font-size: 0.76rem; }
.install-steps { display: grid; gap: 12px; margin: 22px 0; padding: 0; list-style: none; }
.install-steps li { display: flex; align-items: center; gap: 12px; }
.install-steps li > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: var(--primary-soft); color: #c4b5fd; font-size: 0.78rem; font-weight: 850; }
.install-steps p { margin: 0; color: var(--text-secondary); font-size: 0.84rem; }
.install-note { margin: 0 0 18px; color: var(--muted); font-size: 0.76rem; }

.toast-region { position: fixed; z-index: 120; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: min(340px, calc(100vw - 40px)); max-width: 420px; display: flex; align-items: flex-start; gap: 10px; padding: 13px 15px; border-radius: 13px; background: #152039; color: var(--text-secondary); border: 1px solid var(--border-strong); box-shadow: var(--shadow-lg); font-size: 0.8rem; animation: toast-in var(--motion) ease-out both; }
.toast svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--positive); }
.toast.is-error svg { color: var(--negative); }

@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes button-progress { 0%, 100% { background-position: 100% 0; opacity: 0.72; } 50% { background-position: 0 0; opacity: 1; } }
@keyframes signal-wave { 0%, 100% { transform: scaleY(0.48); opacity: 0.55; } 50% { transform: scaleY(1); opacity: 1; } }
@keyframes signal-shimmer { 0%, 12% { transform: translateX(-115%); opacity: 0; } 30% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateX(115%); opacity: 0; } }
@keyframes report-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scan-pass { 0%, 12% { transform: translateX(-120%); opacity: 0; } 28% { opacity: 1; } 78% { opacity: 1; } 100% { transform: translateX(360%); opacity: 0; } }
@keyframes scan-progress { 0% { transform: translateX(-110%); } 52% { transform: translateX(95%); } 100% { transform: translateX(295%); } }

@media (max-width: 1080px) {
  .signal-layout, .planner-layout { grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr); }
  .control-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .control-grid > .button { width: 100%; }
  .metric-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 959px) {
  :root { --topbar-height: 72px; }
  .app-shell { display: block; }
  .sidebar { z-index: 60; width: min(84vw, 304px); transform: translateX(-104%); visibility: hidden; box-shadow: 22px 0 64px rgba(0, 0, 0, 0.48); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), visibility 240ms; }
  body.nav-open { overflow: hidden; }
  body.nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .sidebar-close { display: inline-grid; }
  .nav-scrim { position: fixed; inset: 0; z-index: 55; display: block; opacity: 0; visibility: hidden; background: rgba(2, 5, 14, 0.64); border: 0; pointer-events: none; transition: opacity 180ms ease, visibility 180ms; }
  body.nav-open .nav-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
  .app-column { min-height: 100dvh; }
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
  .mobile-menu-button { display: inline-grid; }
  .topbar-title { text-align: center; }
  .topbar-title .eyebrow { display: none; }
  .topbar-title h1 { font-size: 1.02rem; }
  .main-content { padding: 28px 22px calc(46px + env(safe-area-inset-bottom)); }
  .toast-region { bottom: max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 800px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 470px; gap: 0; }
  .auth-story { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-view::after { width: 330px; height: 330px; left: 50%; box-shadow: 0 0 0 58px rgba(101, 44, 255, 0.025), 0 0 0 116px rgba(0, 219, 255, 0.018); }
  .auth-card { border-radius: 26px; }
  .auth-mobile-brand { color: #fff; }
  .signal-layout, .planner-layout { grid-template-columns: 1fr; }
  .result-card { min-height: 460px; }
  .empty-result, .result-loading { min-height: 410px; }
  .event-grid { grid-template-columns: 1fr; }
  #page-signal.has-analysis .page-intro, #page-signal.has-analysis .analysis-input-card { display: none; }
  #page-signal.has-analysis .signal-layout { display: block; }
  #page-signal.has-analysis .result-card { min-height: 0; }
}

@media (max-width: 620px) {
  .auth-view { align-items: start; padding-top: max(26px, env(safe-area-inset-top)); }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .auth-security-strip { margin-bottom: 20px; }
  .auth-security-strip strong { display: none; }
  .auth-card .section-heading h2 { font-size: 1.55rem; }
  .auth-proof-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .topbar { gap: 10px; }
  .credit-chip span:last-child { display: none; }
  .mode-chip { display: none; }
  .main-content { padding-left: 16px; padding-right: 16px; }
  .home-welcome-box { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 21px; border-radius: 22px; }
  .home-grid-graphic { opacity: 0.1; mask-image: linear-gradient(180deg, transparent 0 34%, #000 72%, transparent); -webkit-mask-image: linear-gradient(180deg, transparent 0 34%, #000 72%, transparent); }
  .home-identity { gap: 14px; }
  .home-avatar { width: 68px; height: 68px; border-radius: 19px; }
  .home-avatar img { width: 58px; height: 58px; border-radius: 14px; }
  .home-identity h3 { font-size: 1.55rem; }
  .home-state-cluster { width: 100%; gap: 10px; }
  .home-state-box { min-height: 116px; padding: 14px; border-radius: 17px; }
  .home-state-box > span { width: 36px; height: 36px; margin-bottom: 14px; border-radius: 11px; }
  .home-limit-box { grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 16px; border-radius: 18px; }
  .home-limit-icon { width: 44px; height: 44px; border-radius: 13px; }
  .home-credit-total { grid-column: 2; grid-row: 2; display: flex; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .home-credit-total strong { font-size: 1.55rem !important; }
  .home-credit-total span { margin: 0; }
  .home-credit-wave { display: none; }
  .home-tool-grid { gap: 12px; }
  .home-tool-card { min-height: 178px; padding: 16px; border-radius: 19px; }
  .home-tool-icon { width: 42px; height: 42px; border-radius: 13px; }
  .home-tool-number { right: 16px; top: 55px; font-size: 2rem; }
  .home-tool-visual { top: 56px; left: 54px; right: 36px; height: 64px; transform: scale(0.82); transform-origin: center; }
  .home-tool-copy strong { font-size: 0.94rem; }
  .home-tool-copy small { font-size: 0.66rem; }
  .home-footer { display: grid; justify-items: center; justify-content: stretch; gap: 0; text-align: center; }
  .page-intro { display: block; }
  .page-intro .status-pill { margin-top: 16px; }
  .future-relay-status { width: max-content; }
  .page-intro h2 { font-size: 1.75rem; }
  .analysis-input-card, .result-card, .planner-layout > .surface-card, .control-card, .news-result, .schedule-card { padding: 17px; border-radius: 18px; }
  .upload-zone { min-height: 265px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid > div { min-height: 72px; }
  .decision-canvas { grid-template-columns: minmax(0, 1fr) 98px; gap: 18px 14px; padding: 20px 18px; border-radius: 16px 16px 28px 16px; }
  .decision-identity { grid-column: 1 / -1; }
  .verdict-column { padding-left: 0; border-left: 0; }
  .confidence-orbit { width: 94px; height: 94px; }
  .confidence-orbit::before { inset: 7px; }
  .confidence-orbit strong { font-size: 1.2rem; }
  .context-rail { margin-top: 18px; padding-top: 14px; }
  .context-rail div { padding: 0 8px; }
  .context-rail dd { font-size: 0.72rem; }
  .price-map { padding: 18px 15px 20px; }
  .price-map > header { align-items: flex-start; }
  .price-map > header > span { max-width: 56%; }
  .price-track { gap: 6px; }
  .price-track strong { font-size: 0.75rem; }
  .ai-readout { padding: 18px 16px; }
  .control-grid, .form-grid.two { grid-template-columns: 1fr; }
  .control-grid { gap: 11px; }
  .selected-event { align-items: stretch; flex-direction: column; bottom: 92px; }
  .selected-event .button { width: 100%; }
  .schedule-row { padding: 8px 9px; }
  .future-signal-line { font-size: 0.72rem; }
  .future-verdict { gap: 18px; padding: 17px; }
  .future-pair-row { align-items: flex-end; }
  .future-entry strong { font-size: 1.28rem; }
  .future-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .future-metric-grid > div { min-height: 67px; }
  .profile-drawer { padding-left: 18px; padding-right: 18px; }
  .install-modal { padding: 20px; }
}

@media (max-width: 360px) {
  .topbar { padding-left: 12px; padding-right: 12px; }
  .topbar-actions { gap: 6px; }
  .credit-chip { padding: 0 9px; }
  .home-tool-grid { gap: 10px; }
  .home-tool-card { min-height: 170px; padding: 14px; }
  .timeframe-lock { padding: 0 8px; font-size: 0.62rem; }
  .future-verdict-top { align-items: flex-start; flex-direction: column; gap: 9px; }
  .future-pair-row h4 { font-size: 1.12rem; }
  .future-entry { min-width: 78px; }
  .home-tool-arrow { width: 31px; height: 31px; }
  .home-tool-visual { left: 43px; right: 27px; transform: scale(0.72); }
  .home-tool-number { font-size: 1.7rem; }
}

@media (max-height: 600px) and (orientation: landscape) {
  .auth-view { place-items: start center; }
  .profile-drawer { padding-top: 18px; }
}

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

/* Nexora Access Deck v1.8 — cinematic market terminal */
.auth-view {
  background:
    radial-gradient(circle at 7% 14%, rgba(0, 255, 204, 0.14), transparent 30rem),
    radial-gradient(circle at 92% 82%, rgba(38, 113, 255, 0.23), transparent 34rem),
    linear-gradient(135deg, #02090f 0%, #05111f 46%, #040816 100%);
}
.auth-view::before {
  opacity: 0.31;
  background-image:
    linear-gradient(rgba(69, 210, 210, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 210, 210, 0.11) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(120deg, #000, transparent 75%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 75%);
  transform: perspective(600px) rotateX(8deg) scale(1.08);
}
.auth-view::after {
  width: 42vw;
  height: 42vw;
  left: -10vw;
  top: 105%;
  border-color: rgba(39, 247, 205, 0.12);
  box-shadow: 0 0 0 110px rgba(28, 223, 196, 0.018), 0 0 0 220px rgba(42, 124, 255, 0.016);
}
.auth-shell {
  width: min(100%, 1210px);
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, 0.72fr);
  gap: 0;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(95, 193, 216, 0.27);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(6, 20, 31, 0.92), rgba(5, 11, 25, 0.96));
  box-shadow: 0 48px 120px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 255, 255, 0.025), 0 0 80px rgba(0, 204, 193, 0.08);
  backdrop-filter: blur(28px);
}
.auth-story {
  max-width: none;
  min-height: 694px;
  display: flex;
  flex-direction: column;
  padding: 38px 42px 34px;
  border: 1px solid rgba(90, 184, 205, 0.21);
  border-radius: 25px;
  background:
    linear-gradient(150deg, rgba(5, 34, 42, 0.7), rgba(6, 14, 30, 0.32)),
    radial-gradient(circle at 80% 14%, rgba(40, 112, 255, 0.2), transparent 36%);
}
.auth-story .brand-lockup-large img { filter: drop-shadow(0 0 20px rgba(82, 255, 220, 0.35)); }
.auth-story > .eyebrow {
  margin-top: 38px;
  color: #76e6da;
  letter-spacing: 0.14em;
}
.auth-story > .eyebrow::before {
  background: #57ffd8;
  box-shadow: 0 0 0 5px rgba(87, 255, 216, 0.09), 0 0 18px rgba(87, 255, 216, 0.75);
}
.auth-story h1 {
  max-width: 670px;
  font-size: clamp(3.35rem, 6vw, 5.8rem);
  line-height: 0.91;
  letter-spacing: -0.07em;
  color: #f4fbff;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 22px 72px rgba(0, 0, 0, 0.42);
}
.auth-story h1 span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(92deg, #5affd7, #4fd6ff 48%, #8ba7ff 92%);
  background-clip: text;
  -webkit-background-clip: text;
}
.auth-lead { max-width: 590px; margin-top: 20px; color: #9eb8c8; }
.auth-market-scene {
  position: relative;
  min-height: 213px;
  overflow: hidden;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(74, 211, 213, 0.26);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(3, 17, 27, 0.96), rgba(8, 19, 39, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.055), 0 24px 50px rgba(0, 0, 0, 0.26);
}
.auth-market-scene::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  left: -120px;
  background: linear-gradient(90deg, transparent, rgba(80, 255, 221, 0.08), transparent);
  transform: skewX(-18deg);
  animation: access-scan 4.8s ease-in-out infinite;
}
.auth-market-head { display: flex; align-items: center; justify-content: space-between; color: #7895a8; font-size: 0.62rem; font-weight: 850; letter-spacing: 0.12em; }
.auth-market-head span { display: inline-flex; align-items: center; gap: 8px; }
.auth-market-head i { width: 7px; height: 7px; border-radius: 50%; background: #52f5c7; box-shadow: 0 0 11px #52f5c7; }
.auth-market-head strong { padding: 5px 8px; border: 1px solid rgba(82, 245, 199, 0.25); border-radius: 999px; color: #7bf8d5; background: rgba(82, 245, 199, 0.07); font-size: 0.56rem; }
.auth-market-pair { position: absolute; z-index: 2; left: 18px; top: 54px; display: flex; align-items: center; gap: 10px; }
.auth-pair-flags { display: flex; align-items: center; padding-left: 4px; }
.auth-pair-flags i { width: 25px; height: 25px; display: grid; place-items: center; margin-left: -4px; border: 2px solid #071622; border-radius: 50%; color: #fff; font-size: 0.45rem; font-style: normal; font-weight: 900; letter-spacing: -0.03em; background: linear-gradient(145deg, #2563eb, #4338ca); box-shadow: 0 5px 12px rgba(0, 0, 0, 0.28); }
.auth-pair-flags i:last-child { background: linear-gradient(145deg, #1d4ed8 0 46%, #dc2626 46% 68%, #f8fafc 68%); }
.auth-market-pair div { display: grid; }
.auth-market-pair small, .auth-signal-pulse small { color: #69879b; font-size: 0.52rem; font-weight: 850; letter-spacing: 0.12em; }
.auth-market-pair strong { color: #effaff; font-size: 0.92rem; }
.auth-market-pair em { color: #57e4cc; font-size: 0.52rem; font-style: normal; }
.auth-market-pair > b { margin-left: 7px; color: #77f7d5; font-size: 0.8rem; }
.auth-candle-stage { position: absolute; left: 26px; right: 24px; top: 104px; height: 64px; display: flex; align-items: end; justify-content: flex-end; gap: clamp(10px, 2.4vw, 23px); padding-right: 12px; border-bottom: 1px solid rgba(91, 153, 181, 0.18); }
.auth-candle-stage::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgba(89, 190, 204, 0.18); }
.auth-candle { position: relative; z-index: 1; width: 8px; height: var(--h); margin-bottom: var(--l); border-radius: 2px; background: #48edbd; box-shadow: 0 0 14px rgba(72, 237, 189, 0.17); }
.auth-candle::before { content: ""; position: absolute; left: 50%; top: -8px; bottom: -8px; width: 1px; transform: translateX(-50%); background: currentColor; }
.auth-candle.up { color: #48edbd; }
.auth-candle.down { color: #ff607e; background: #ff607e; box-shadow: 0 0 14px rgba(255, 96, 126, 0.15); }
.auth-candle.candle-one { --h: 34%; --l: 7%; }
.auth-candle.candle-two { --h: 48%; --l: 8%; }
.auth-candle.candle-three { --h: 39%; --l: 6%; }
.auth-candle.candle-four { --h: 27%; --l: 10%; }
.auth-candle.candle-five { --h: 62%; --l: 7%; }
.auth-candle.candle-six { --h: 44%; --l: 12%; }
.auth-candle.candle-seven { --h: 31%; --l: 8%; }
.auth-candle.candle-eight { --h: 72%; --l: 6%; }
.auth-signal-pulse { position: absolute; z-index: 3; right: 18px; top: 48px; min-width: 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(82, 245, 199, 0.21); border-radius: 14px; background: rgba(5, 25, 33, 0.82); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22); backdrop-filter: blur(14px); }
.auth-signal-pulse > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 9px; color: #5bf3cd; background: rgba(77, 244, 202, 0.09); }
.auth-signal-pulse svg { width: 16px; height: 16px; }
.auth-signal-pulse div { display: grid; }
.auth-signal-pulse strong { color: #dffdf6; font-size: 0.68rem; }
.auth-signal-pulse > i { width: 8px; height: 8px; border-radius: 50%; background: #5bf3cd; box-shadow: 0 0 13px #5bf3cd; animation: access-blink 1.9s ease-in-out infinite; }
.auth-story .trust-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: auto; padding-top: 20px; border-top: 1px solid rgba(91, 153, 181, 0.16); }
.auth-story .trust-list > div { min-height: 0; padding: 0 15px; border: 0; border-right: 1px solid rgba(91, 153, 181, 0.16); border-radius: 0; background: transparent; box-shadow: none; }
.auth-story .trust-list > div:first-child { padding-left: 0; }
.auth-story .trust-list > div:last-child { padding-right: 0; border-right: 0; }
.auth-story .trust-icon { width: 34px; height: 34px; border-radius: 10px; color: #59efd0; border-color: rgba(77, 240, 207, 0.24); background: rgba(48, 191, 177, 0.07); box-shadow: none; }
.auth-story .trust-list strong { color: #dcebf3; }
.auth-story .trust-list small { color: #708ca0; }
.auth-card {
  align-self: center;
  margin: 30px 32px;
  padding: 32px;
  border-color: rgba(81, 200, 218, 0.34);
  border-radius: 25px;
  background:
    radial-gradient(circle at 94% 0, rgba(29, 133, 255, 0.18), transparent 31%),
    linear-gradient(155deg, rgba(5, 18, 29, 0.99), rgba(4, 10, 23, 0.99));
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.07);
}
.auth-card::before { opacity: 0.08; background-size: 36px 36px; }
.auth-card-beam { left: 28%; right: 28%; height: 2px; background: linear-gradient(90deg, transparent, #55f2d1, #e8fffb, #50bfff, transparent); box-shadow: 0 0 22px rgba(85, 242, 209, 0.5); }
.auth-security-strip { color: #7792a5; border-bottom-color: rgba(91, 153, 181, 0.2); }
.auth-security-strip i, .auth-proof-row i { background: #55f2d1; box-shadow: 0 0 12px #55f2d1; }
.auth-security-strip strong { color: #5ce7d2; }
.auth-card .section-heading .eyebrow { color: #5de8d3; }
.auth-card .section-heading h2 { font-size: 1.9rem; letter-spacing: -0.045em; }
.auth-card .field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { border-color: rgba(91, 153, 181, 0.42); background: rgba(2, 11, 20, 0.84); }
.auth-card .field-group input:hover { border-color: rgba(83, 223, 213, 0.65); }
.auth-card .field-group input:focus { border-color: #57e8d2; background: rgba(2, 14, 23, 0.98); box-shadow: 0 0 0 3px rgba(69, 228, 207, 0.13), 0 0 25px rgba(69, 228, 207, 0.09); }
.auth-card .button-primary { border-color: rgba(172, 255, 238, 0.33); background: linear-gradient(108deg, #12bfa8, #168fdc 58%, #536cff); color: #fff; box-shadow: 0 18px 42px rgba(15, 148, 190, 0.29), 0 0 26px rgba(69, 228, 207, 0.11); }
.auth-card .button-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(15, 148, 190, 0.37), 0 0 30px rgba(69, 228, 207, 0.15); }
.auth-proof-row span:first-child { color: #8bd8cc; }
.auth-links a { color: #83a5bb; }
.auth-links a:hover { color: #69ead7; }
.auth-links .text-button { color: #68d9cc; }

@keyframes access-scan {
  0%, 24% { left: -120px; opacity: 0; }
  38% { opacity: 1; }
  72%, 100% { left: calc(100% + 60px); opacity: 0; }
}
@keyframes access-blink { 0%, 100% { opacity: 0.5; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1); } }

@media (max-width: 1080px) and (min-width: 801px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr); }
  .auth-story { padding-left: 30px; padding-right: 30px; }
  .auth-story h1 { font-size: clamp(3rem, 5.6vw, 4.6rem); }
  .auth-card { margin-left: 22px; margin-right: 22px; }
  .auth-signal-pulse { min-width: 170px; }
}

@media (max-width: 800px) {
  .auth-shell { max-width: 470px; display: block; padding: 7px; border-radius: 30px; background: rgba(4, 13, 25, 0.94); }
  .auth-story { display: none; }
  .auth-card { margin: 0; padding: 30px 26px; border-radius: 23px; background: radial-gradient(circle at 100% 0, rgba(34, 139, 255, 0.2), transparent 34%), linear-gradient(155deg, rgba(5, 22, 31, 0.99), rgba(4, 9, 23, 0.99)); }
  .auth-mobile-brand { margin-bottom: 30px; }
  .auth-mobile-brand img { filter: drop-shadow(0 0 17px rgba(82, 255, 220, 0.4)); }
  .auth-card .section-heading h2 { font-size: 1.85rem; }
}

@media (max-width: 620px) {
  .auth-view { padding: max(18px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .auth-shell { border-radius: 26px; }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .auth-card .section-heading h2 { font-size: 1.65rem; }
  .auth-card .section-heading > p:last-child { font-size: 0.88rem; line-height: 1.55; }
}

/* Nexora Liquid Profile v1.8.1 — iOS-inspired optical glass */
.drawer-layer { isolation: isolate; }
.drawer-scrim {
  background:
    radial-gradient(circle at 84% 18%, rgba(91, 105, 255, 0.2), transparent 29rem),
    radial-gradient(circle at 64% 88%, rgba(0, 233, 211, 0.1), transparent 26rem),
    rgba(2, 6, 17, 0.53);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  backdrop-filter: blur(18px) saturate(135%);
}
.profile-drawer {
  width: min(100%, 480px);
  height: 100dvh;
  padding: max(22px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
  border-left: 1px solid rgba(223, 238, 255, 0.22);
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 2%, rgba(72, 106, 196, 0.16), transparent 20rem),
    radial-gradient(circle at 3% 43%, rgba(112, 63, 196, 0.11), transparent 23rem),
    radial-gradient(circle at 96% 82%, rgba(0, 158, 153, 0.07), transparent 22rem),
    linear-gradient(158deg, rgba(10, 19, 40, 0.91), rgba(4, 10, 24, 0.94));
  -webkit-backdrop-filter: blur(54px) saturate(155%);
  backdrop-filter: blur(54px) saturate(155%);
  box-shadow:
    -30px 0 90px rgba(1, 4, 15, 0.58),
    inset 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.08);
  scrollbar-width: thin;
  scrollbar-color: rgba(70, 86, 124, 0.74) rgba(3, 8, 19, 0.34);
}
.profile-drawer::-webkit-scrollbar { width: 6px; height: 0; }
.profile-drawer::-webkit-scrollbar-track { background: rgba(3, 8, 19, 0.34); }
.profile-drawer::-webkit-scrollbar-thumb { border: 1px solid rgba(150, 173, 221, 0.1); border-radius: 999px; background: linear-gradient(180deg, rgba(74, 91, 132, 0.82), rgba(41, 53, 83, 0.88)); }
.profile-drawer::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(91, 108, 153, 0.9), rgba(51, 65, 98, 0.94)); }
.profile-drawer::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.profile-drawer::-webkit-scrollbar-corner { background: transparent; }
.profile-drawer::before,
.profile-drawer::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
.profile-drawer::before {
  width: 260px;
  height: 260px;
  right: -104px;
  top: -116px;
  border: 1px solid rgba(192, 224, 255, 0.16);
  box-shadow: 0 0 0 48px rgba(68, 126, 255, 0.035), 0 0 0 96px rgba(125, 92, 255, 0.018);
}
.profile-drawer::after {
  width: 170px;
  height: 170px;
  left: -100px;
  top: 42%;
  background: rgba(124, 74, 255, 0.07);
  box-shadow: 0 0 90px rgba(124, 74, 255, 0.3);
}
.profile-drawer > * { position: relative; z-index: 1; }
.profile-drawer .drawer-header {
  position: sticky;
  z-index: 8;
  top: -22px;
  margin: -8px -8px 0;
  align-items: center;
  padding: 11px 8px 12px;
  border-bottom: 1px solid rgba(204, 226, 255, 0.1);
  background: linear-gradient(180deg, rgba(6, 14, 31, 0.92), rgba(6, 14, 31, 0.7) 76%, transparent);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  backdrop-filter: blur(32px) saturate(155%);
}
.profile-drawer .drawer-header .eyebrow { color: #b8a8ff; letter-spacing: 0.12em; }
.profile-drawer .drawer-header h2 { color: #fff; font-size: 1.65rem; letter-spacing: -0.045em; }
.profile-drawer #profileClose {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  color: #6b1714;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.profile-drawer #profileClose svg { position: absolute; z-index: 2; left: 50%; top: 50%; width: 11px; height: 11px; stroke-width: 2.15; opacity: 0.78; transform: translate(-50%, -50%); transition: opacity 160ms ease; }
.profile-drawer #profileClose::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; pointer-events: none; border: 1px solid #e0443e; border-radius: 50%; background: linear-gradient(145deg, #ff756e, #ff5f57 58%, #ec4b45); box-shadow: inset 0 1px rgba(255,255,255,.34), inset 0 -1px rgba(133,16,12,.2), 0 4px 12px rgba(255,95,87,.18); transform: translate(-50%, -50%); }
.profile-drawer #profileClose::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; }
.profile-drawer #profileClose:hover { color: #59110e; border: 0; background: transparent; box-shadow: none; }
.profile-drawer #profileClose:hover svg { opacity: 0.94; }
.profile-identity,
.profile-stats > div,
.profile-section,
.profile-drawer > .section-toggle {
  border-color: rgba(213, 230, 255, 0.16);
  background:
    linear-gradient(142deg, rgba(168, 194, 242, 0.075), rgba(62, 83, 132, 0.04) 42%, rgba(13, 24, 50, 0.11)),
    rgba(6, 15, 34, 0.64);
  -webkit-backdrop-filter: blur(30px) saturate(155%);
  backdrop-filter: blur(30px) saturate(155%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.16),
    inset 1px 0 rgba(255, 255, 255, 0.06),
    0 15px 34px rgba(0, 0, 0, 0.15);
}
.profile-identity {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 28px;
}
.profile-identity::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), rgba(93, 195, 255, 0.48), transparent);
}
.profile-avatar {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(233, 241, 255, 0.42);
  border-radius: 25px;
  background: rgba(201, 218, 255, 0.12);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.28), 0 14px 28px rgba(0, 0, 0, 0.25), 0 0 24px rgba(111, 89, 255, 0.12);
}
.profile-avatar img { width: 76px; height: 76px; border-radius: 24px; }
.profile-avatar > span {
  right: -4px;
  bottom: -4px;
  border-color: rgba(10, 20, 43, 0.82);
  border-radius: 50%;
  background: linear-gradient(145deg, #b44dff, #5c67ff);
  box-shadow: 0 6px 18px rgba(99, 74, 255, 0.42), inset 0 1px rgba(255, 255, 255, 0.42);
}
.profile-identity h3 { color: #fff; font-size: 1.18rem; letter-spacing: -0.02em; }
.profile-identity p { color: #a8c9ff; }
.profile-stats { gap: 11px; margin-top: 11px; }
.profile-stats > div { position: relative; min-height: 79px; display: grid; align-content: center; padding: 15px 17px; border-radius: 21px; }
.profile-stats > div::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at 90% 4%, rgba(112, 159, 255, 0.16), transparent 47%); }
.profile-stats span { color: #92a8cb; font-size: 0.66rem; letter-spacing: 0.04em; }
.profile-stats strong { color: #fff; font-size: 1rem; }
.profile-section { margin-top: 11px; padding: 17px; border-radius: 25px; }
.profile-section .section-row h3 { color: #f4f8ff; }
.profile-section .section-row p { color: #8ca3c9; }
.profile-drawer .field-group label,
.profile-drawer .field-group legend { color: #d9e6ff; }
.profile-drawer .field-group select,
.profile-drawer .field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  min-height: 52px;
  border-color: rgba(205, 225, 255, 0.18);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(173, 198, 255, 0.11), rgba(7, 17, 38, 0.36));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.1);
}
.profile-drawer .field-group select:focus,
.profile-drawer .field-group input:focus {
  border-color: rgba(123, 193, 255, 0.72);
  background: rgba(25, 45, 79, 0.66);
  box-shadow: 0 0 0 3px rgba(93, 156, 255, 0.14), inset 0 1px rgba(255, 255, 255, 0.18);
}
.profile-drawer .check-grid { gap: 9px; }
.profile-drawer .check-grid label {
  min-height: 62px;
  padding: 11px 13px;
  border-color: rgba(205, 225, 255, 0.15);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(183, 207, 255, 0.09), rgba(20, 34, 66, 0.2));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}
.profile-drawer .check-grid label:has(input:checked) { border-color: rgba(153, 112, 255, 0.5); background: linear-gradient(135deg, rgba(147, 88, 255, 0.2), rgba(48, 94, 177, 0.13)); }
.profile-drawer .check-grid input { accent-color: #9a62ff; }
.profile-drawer .check-grid strong { color: #f1f5ff; }
.profile-drawer .check-grid small { color: #94add3; }
.profile-drawer .switch span {
  width: 53px;
  height: 32px;
  border-color: rgba(211, 229, 255, 0.18);
  background: rgba(124, 149, 190, 0.22);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px rgba(255, 255, 255, 0.1);
}
.profile-drawer .switch span::after { width: 24px; height: 24px; background: linear-gradient(145deg, #fff, #d9e9ff); box-shadow: 0 3px 10px rgba(0, 0, 0, 0.34); }
.profile-drawer .switch input:checked + span { border-color: rgba(102, 255, 221, 0.48); background: linear-gradient(90deg, #20bfa8, #3a82ff); box-shadow: 0 5px 18px rgba(33, 193, 172, 0.24), inset 0 1px rgba(255, 255, 255, 0.2); }
.profile-drawer .switch input:checked + span::after { transform: translateX(21px); }
.profile-drawer .button-secondary {
  min-height: 52px;
  border: 1px solid rgba(205, 226, 255, 0.25);
  border-radius: 17px;
  background: linear-gradient(110deg, rgba(130, 72, 255, 0.78), rgba(60, 111, 255, 0.76) 52%, rgba(23, 188, 206, 0.7));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.25), 0 13px 28px rgba(49, 68, 174, 0.23);
}
.profile-drawer .button-secondary:hover { border-color: rgba(234, 243, 255, 0.42); background: linear-gradient(110deg, rgba(148, 87, 255, 0.9), rgba(65, 127, 255, 0.88) 52%, rgba(26, 207, 212, 0.82)); }
.profile-section > .section-toggle { min-height: 68px; margin: 0; padding: 7px 4px; border: 0; border-radius: 17px; background: transparent; box-shadow: none; }
.profile-drawer > .section-toggle { min-height: 78px; margin-top: 11px; padding: 11px 15px; border-radius: 23px; }
.profile-drawer .section-toggle:hover { border-color: rgba(222, 235, 255, 0.28); background-color: rgba(151, 183, 255, 0.08); }
.profile-drawer .section-toggle strong { color: #f7f9ff; }
.profile-drawer .section-toggle small { color: #8fa8ce; }
.profile-drawer .toggle-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(203, 220, 255, 0.16);
  border-radius: 14px;
  color: #d0b8ff;
  background: linear-gradient(145deg, rgba(153, 88, 255, 0.26), rgba(65, 116, 255, 0.12));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 8px 22px rgba(65, 55, 173, 0.12);
}
.profile-drawer .binance-payment-card,
.profile-drawer .payment-row {
  border-color: rgba(205, 225, 255, 0.15);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(170, 195, 255, 0.1), rgba(9, 20, 43, 0.3));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
}
.profile-drawer #logoutButton {
  min-height: 52px;
  border-radius: 17px;
  border-color: rgba(255, 143, 163, 0.2);
  background: rgba(255, 78, 113, 0.07);
  color: #ff9caf;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .profile-drawer { background: #0b1429; }
  .profile-identity, .profile-stats > div, .profile-section, .profile-drawer > .section-toggle { background: #111d38; }
}

@media (max-width: 620px) {
  .profile-drawer { width: 100%; padding: max(17px, env(safe-area-inset-top)) 14px max(24px, env(safe-area-inset-bottom)); }
  .profile-drawer .drawer-header { top: -17px; margin-left: -2px; margin-right: -2px; }
  .profile-identity { padding: 17px; border-radius: 24px; }
  .profile-stats > div { min-height: 75px; border-radius: 19px; }
  .profile-section { padding: 15px; border-radius: 23px; }
  .profile-drawer #profileClose { width: 24px; height: 24px; }
  .profile-drawer #profileClose svg { width: 11px; height: 11px; }
  .profile-drawer #profileClose::after { inset: -10px; }
}

/* Nexora Liquid Command v1.9.0 — distinct instruments and stronger optical glass */
.sidebar-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #b8c7e4;
  border-color: rgba(185, 211, 255, 0.18);
  background: linear-gradient(145deg, rgba(115, 147, 216, 0.15), rgba(27, 43, 79, 0.2));
  -webkit-backdrop-filter: blur(16px) saturate(165%);
  backdrop-filter: blur(16px) saturate(165%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 8px 20px rgba(0, 0, 0, 0.17);
}
.sidebar-close svg { width: 17px; height: 17px; }
.sidebar-close:hover:not(:disabled) { color: #fff; background: rgba(102, 132, 203, 0.2); border-color: rgba(202, 223, 255, 0.31); }
.sidebar-footer { display: block; margin-top: 14px; padding: 0; }
.telegram-admin {
  width: 100%;
  min-height: 56px !important;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 8px 10px !important;
  border: 1px solid rgba(68, 211, 255, 0.22);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(31, 155, 215, 0.14), rgba(89, 71, 207, 0.08));
  color: #ddecff !important;
  text-decoration: none;
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.telegram-admin:hover { border-color: rgba(73, 216, 255, 0.46); background: linear-gradient(135deg, rgba(31, 177, 235, 0.22), rgba(103, 78, 223, 0.13)); transform: translateY(-1px); }
.telegram-admin > span:first-child { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #36c8ff, #5d73ff); box-shadow: 0 8px 22px rgba(40, 178, 246, 0.26), inset 0 1px rgba(255, 255, 255, 0.32); }
.telegram-admin svg { width: 19px; height: 19px; fill: currentColor; stroke: none; }
.telegram-admin > span:last-child { min-width: 0; display: grid; gap: 1px; }
.telegram-admin small { color: #7891b7; font-size: 0.62rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.telegram-admin strong { color: #f5f9ff; font-size: 0.78rem; letter-spacing: 0.01em; }

.credit-chip { min-width: 84px; gap: 7px; padding: 0 11px 0 8px; }
.credit-coin { position: relative; width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid rgba(136, 224, 255, 0.48); border-radius: 50%; color: #e9fcff; background: radial-gradient(circle at 32% 25%, rgba(255,255,255,.75), transparent 12%), conic-gradient(from 200deg, #00d9ff, #7858ff, #d251ff, #00d9ff); box-shadow: inset 0 0 0 3px rgba(7, 16, 40, 0.6), 0 0 15px rgba(62, 206, 255, 0.27); }
.credit-coin::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.36); border-radius: inherit; }
.credit-coin svg { position: relative; z-index: 1; width: 15px; height: 15px; stroke-width: 2; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }

.home-welcome-box,
.home-limit-box,
.home-tool-card,
.home-state-box {
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  backdrop-filter: blur(34px) saturate(190%);
}
.home-welcome-box {
  background:
    radial-gradient(circle at 8% 108%, rgba(166, 63, 255, 0.42), transparent 41%),
    radial-gradient(circle at 92% 2%, rgba(13, 226, 255, 0.29), transparent 38%),
    linear-gradient(120deg, rgba(53, 27, 104, 0.69), rgba(14, 25, 61, 0.69) 52%, rgba(7, 57, 70, 0.65));
  border-color: rgba(205, 171, 255, 0.66);
  box-shadow: 0 30px 74px rgba(0,0,0,.44), 0 0 46px rgba(119,45,255,.18), inset 0 1px rgba(255,255,255,.26), inset 1px 0 rgba(255,255,255,.09);
}
.home-limit-box {
  border-color: rgba(116, 213, 255, 0.58);
  background: linear-gradient(112deg, rgba(28, 76, 132, 0.62), rgba(46, 31, 104, 0.62) 58%, rgba(83, 24, 100, 0.56));
  box-shadow: 0 22px 52px rgba(0,0,0,.36), 0 0 34px rgba(45,112,255,.13), inset 0 1px rgba(255,255,255,.24), inset 1px 0 rgba(255,255,255,.08);
}
.home-tool-card {
  background: radial-gradient(circle at 86% 25%, rgba(var(--tool-rgb), .27), transparent 31%), linear-gradient(142deg, rgba(var(--tool-rgb), .19), rgba(15, 24, 56, .69) 50%, rgba(6, 13, 31, .74));
  box-shadow: 0 23px 52px rgba(0,0,0,.39), 0 0 29px rgba(var(--tool-rgb),.13), inset 0 1px rgba(255,255,255,.22), inset 1px 0 rgba(255,255,255,.07);
}
.home-tool-card::after { height: 2px; opacity: .72; }
.home-state-box { background: linear-gradient(154deg, rgba(82, 95, 154, .22), rgba(7, 16, 38, .57)); box-shadow: 0 18px 38px rgba(0,0,0,.24), inset 0 1px rgba(255,255,255,.18); }
.home-state-ai { background: linear-gradient(145deg, rgba(96, 41, 151, .39), rgba(8, 15, 39, .58)); }
.home-state-market { background: linear-gradient(145deg, rgba(4, 110, 112, .35), rgba(7, 18, 39, .58)); }

.home-credit-orb { position: relative; width: 66px; height: 66px; display: grid; place-items: center; margin: 0 10px; border-radius: 50%; color: #effdff; background: radial-gradient(circle at 31% 24%, rgba(255,255,255,.86), transparent 9%), conic-gradient(from 205deg, #12dcff, #6656ff 34%, #c744ff 66%, #12dcff); box-shadow: inset 0 0 0 6px rgba(10,18,49,.67), inset 0 0 24px rgba(255,255,255,.16), 0 0 29px rgba(55,216,255,.26); }
.home-credit-orb::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(255,255,255,.42); border-radius: inherit; box-shadow: inset 0 0 16px rgba(255,255,255,.12); }
.home-credit-orb i { position: absolute; width: 82px; height: 31px; border: 1px solid rgba(95,229,255,.34); border-radius: 50%; transform: rotate(-18deg); }
.home-credit-orb svg { position: relative; z-index: 2; width: 27px; height: 27px; filter: drop-shadow(0 3px 6px rgba(0,0,0,.42)); }
.home-credit-orb b { position: absolute; right: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #89fff0; box-shadow: 0 0 13px #43ffe2; }

.future-visual { display: block; }
.future-visual::before { content: ""; position: absolute; left: 7%; right: 7%; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--tool-rgb),.42), var(--tool), rgba(var(--tool-rgb),.42), transparent); box-shadow: 0 0 12px rgba(var(--tool-rgb),.35); }
.future-visual i { position: absolute; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 3px solid rgba(8,14,33,.78); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--tool), 0 0 17px rgba(var(--tool-rgb),.62); animation: none; }
.future-visual i:nth-child(1) { left: 13%; opacity: .48; }
.future-visual i:nth-child(2) { left: 37%; opacity: .72; }
.future-visual i:nth-child(3) { left: 61%; }
.future-visual i:nth-child(4) { left: 84%; width: 19px; height: 19px; margin-top: -9px; background: var(--tool); box-shadow: 0 0 0 5px rgba(var(--tool-rgb),.15), 0 0 23px var(--tool); }
.future-visual b { position: absolute; width: 35%; height: 42px; right: 0; top: 50%; transform: translateY(-50%); border: 1px solid rgba(var(--tool-rgb),.36); border-left: 0; border-radius: 0 42px 42px 0; background: radial-gradient(circle at 75% 50%, rgba(var(--tool-rgb),.21), transparent 56%); }

.price-map { background: linear-gradient(145deg, rgba(28, 43, 76, .48), rgba(6, 16, 34, .7)); -webkit-backdrop-filter: blur(22px) saturate(165%); backdrop-filter: blur(22px) saturate(165%); box-shadow: inset 0 1px rgba(255,255,255,.09); }
.price-track > div:nth-child(2) strong { min-width: 68px; padding: 4px 8px; border-radius: 8px; color: #071225; background: linear-gradient(135deg, #dff8ff, #b7cfff); box-shadow: 0 7px 20px rgba(91,164,255,.2); }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .home-welcome-box { background: #17214a; }
  .home-limit-box { background: #17224b; }
  .home-tool-card { background: #101a38; }
}

@media (max-width: 800px) {
  .home-limit-box { grid-template-columns: auto minmax(0,1fr) auto; }
  .home-credit-orb { grid-column: 3; grid-row: 1 / span 2; width: 48px; height: 48px; margin: 0; }
  .home-credit-orb i { width: 59px; height: 23px; }
  .home-credit-orb svg { width: 21px; height: 21px; }
  .home-credit-total { grid-column: 2; grid-row: 2; }
}

@media (max-width: 430px) {
  .sidebar-close { width: 36px; height: 36px; border-radius: 11px; }
  .credit-chip { min-width: 62px; padding-right: 8px; }
  .credit-coin { width: 24px; height: 24px; }
  .credit-coin svg { width: 14px; height: 14px; }
  .home-credit-orb { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-live-eyebrow > span, .news-visual b { animation: none !important; }
  .state-scan { display: none; }
}

/* Nexora Control Glass v2.0.0 — smoked liquid surfaces and compact access */
.auth-view {
  background:
    radial-gradient(circle at 18% 12%, rgba(117, 80, 210, 0.14), transparent 28rem),
    radial-gradient(circle at 88% 84%, rgba(31, 156, 176, 0.1), transparent 27rem),
    linear-gradient(145deg, #050811, #080d17 54%, #04070e);
}
.auth-shell {
  width: min(100%, 960px);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 410px);
  padding: 10px;
  border: 1px solid rgba(238, 245, 255, 0.13);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 0, rgba(255, 255, 255, 0.1), transparent 25%),
    linear-gradient(145deg, rgba(118, 132, 154, 0.12), rgba(16, 24, 38, 0.08)),
    rgba(7, 12, 21, 0.68);
  -webkit-backdrop-filter: blur(54px) saturate(140%);
  backdrop-filter: blur(54px) saturate(140%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.19),
    inset 1px 0 rgba(255, 255, 255, 0.07),
    0 34px 90px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(24, 35, 53, 0.34);
}
.auth-shell::before {
  opacity: 0.55;
  background:
    radial-gradient(circle at 0 0, rgba(183, 205, 235, 0.12), transparent 24%),
    radial-gradient(circle at 100% 100%, rgba(91, 84, 177, 0.09), transparent 27%);
}
.auth-story {
  min-height: 520px;
  justify-content: center;
  padding: 34px 36px;
  border: 1px solid rgba(235, 244, 255, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 5%, rgba(255, 255, 255, 0.1), transparent 23%),
    radial-gradient(circle at 78% 22%, rgba(91, 90, 164, 0.11), transparent 32%),
    linear-gradient(155deg, rgba(100, 115, 137, 0.1), rgba(18, 27, 42, 0.04)),
    rgba(7, 13, 23, 0.62);
  -webkit-backdrop-filter: blur(42px) saturate(135%);
  backdrop-filter: blur(42px) saturate(135%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), inset 1px 0 rgba(255, 255, 255, 0.055);
}
.auth-story > .eyebrow { margin-top: 30px; color: #aca4ee; }
.auth-story > .eyebrow::before { background: #9d91f1; box-shadow: 0 0 0 5px rgba(157, 145, 241, 0.08), 0 0 16px rgba(157, 145, 241, 0.35); }
.auth-story h1 {
  max-width: 560px;
  margin-top: 15px;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  line-height: 0.96;
}
.auth-story h1 span { background-image: linear-gradient(92deg, #c8c2ff, #86c9e9 50%, #a8d9d0); }
.auth-lead { max-width: 530px; margin-top: 16px; color: #9caabd; font-size: 1rem; line-height: 1.65; }
.auth-story .trust-list { margin-top: 28px; padding-top: 18px; }
.auth-story .trust-list > div { padding: 0 12px; }
.auth-story .trust-icon {
  border-color: rgba(229, 239, 255, 0.13);
  color: #c7c2f6;
  background: linear-gradient(145deg, rgba(192, 202, 220, 0.12), rgba(40, 50, 68, 0.1));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14);
}
.auth-story .trust-list strong { color: #e8eef7; }
.auth-story .trust-list small { display: none; }
.auth-card {
  margin: 18px 22px;
  padding: 27px;
  border: 1px solid rgba(237, 245, 255, 0.14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 16% 0, rgba(255, 255, 255, 0.1), transparent 25%),
    radial-gradient(circle at 100% 0, rgba(83, 130, 164, 0.11), transparent 31%),
    linear-gradient(150deg, rgba(110, 124, 146, 0.11), rgba(25, 34, 49, 0.06)),
    rgba(5, 10, 18, 0.67);
  -webkit-backdrop-filter: blur(46px) saturate(135%);
  backdrop-filter: blur(46px) saturate(135%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 1px 0 rgba(255, 255, 255, 0.055),
    0 24px 58px rgba(0, 0, 0, 0.34);
}
.auth-card::before { opacity: 0.035; }
.auth-card-beam {
  left: 34%;
  right: 34%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(217, 229, 255, 0.85), rgba(137, 203, 214, 0.58), transparent);
  box-shadow: 0 0 13px rgba(153, 205, 224, 0.21);
}
.auth-security-strip { color: #8290a3; border-bottom-color: rgba(231, 241, 255, 0.1); }
.auth-security-strip i, .auth-proof-row i { background: #78d6c8; box-shadow: 0 0 10px rgba(120, 214, 200, 0.65); }
.auth-security-strip strong,
.auth-card .section-heading .eyebrow { color: #9fafe0; }
.auth-card .section-heading h2 { font-size: 1.72rem; }
.auth-card .section-heading > p:last-child { color: #919fb2; }
.auth-card .form-stack { gap: 15px; }
.auth-card .field-error:empty,
.auth-card .form-message:empty { display: none; }
.auth-card .field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) {
  min-height: 50px;
  border-color: rgba(229, 240, 255, 0.14);
  background: linear-gradient(145deg, rgba(154, 167, 186, 0.09), rgba(9, 15, 25, 0.18)), rgba(3, 7, 14, 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  backdrop-filter: blur(22px) saturate(130%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}
.auth-card .field-group input:hover { border-color: rgba(203, 217, 238, 0.25); }
.auth-card .field-group input:focus {
  border-color: rgba(155, 178, 225, 0.72);
  background: rgba(12, 19, 31, 0.82);
  box-shadow: 0 0 0 3px rgba(135, 139, 218, 0.1), inset 0 1px rgba(255, 255, 255, 0.11);
}
.auth-card .button-primary {
  min-height: 52px;
  border-color: rgba(223, 231, 255, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(105deg, rgba(116, 84, 206, 0.92), rgba(75, 104, 176, 0.9) 55%, rgba(62, 137, 151, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.24), 0 15px 33px rgba(22, 30, 59, 0.34);
}
.auth-card .button-primary:hover:not(:disabled) { box-shadow: inset 0 1px rgba(255, 255, 255, 0.3), 0 18px 39px rgba(35, 44, 83, 0.4); }
.auth-proof-row span:first-child { color: #9eb9b6; }
.auth-links { justify-content: center; }
.auth-links a { min-height: 32px; }
.auth-links a { color: #909caf; }
.auth-links a:hover { color: #c9d3e2; }

.drawer-scrim {
  background: rgba(1, 4, 10, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(118%);
  backdrop-filter: blur(22px) saturate(118%);
}
.profile-drawer {
  border-left-color: rgba(235, 244, 255, 0.15);
  background:
    radial-gradient(circle at 82% 4%, rgba(102, 123, 154, 0.13), transparent 18rem),
    radial-gradient(circle at 10% 48%, rgba(91, 72, 130, 0.09), transparent 22rem),
    linear-gradient(158deg, rgba(9, 15, 25, 0.91), rgba(4, 8, 17, 0.96));
  -webkit-backdrop-filter: blur(62px) saturate(135%);
  backdrop-filter: blur(62px) saturate(135%);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.4), inset 1px 0 rgba(255, 255, 255, 0.09);
}
.profile-drawer::before {
  width: 170px;
  height: 170px;
  right: 0;
  top: -78px;
  border-color: rgba(224, 235, 250, 0.09);
  box-shadow: 0 0 0 48px rgba(122, 137, 160, 0.02), 0 0 0 96px rgba(96, 80, 137, 0.015);
}
.profile-drawer::after { background: rgba(95, 74, 135, 0.04); box-shadow: 0 0 90px rgba(81, 66, 121, 0.16); }
.profile-drawer .drawer-header {
  background: linear-gradient(180deg, rgba(7, 12, 21, 0.95), rgba(7, 12, 21, 0.76) 76%, transparent);
  -webkit-backdrop-filter: blur(40px) saturate(125%);
  backdrop-filter: blur(40px) saturate(125%);
}
.profile-drawer .drawer-header .eyebrow { color: #aaa2df; }
.profile-identity,
.profile-stats > div,
.profile-section,
.profile-drawer > .section-toggle {
  border-color: rgba(235, 244, 255, 0.13);
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.08), transparent 28%),
    linear-gradient(145deg, rgba(146, 158, 176, 0.11), rgba(31, 41, 58, 0.08)),
    rgba(8, 14, 24, 0.58);
  -webkit-backdrop-filter: blur(38px) saturate(140%);
  backdrop-filter: blur(38px) saturate(140%);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.18);
}
.profile-stats > div::after { background: radial-gradient(circle at 90% 4%, rgba(207, 221, 244, 0.06), transparent 47%); }
.profile-drawer .field-group select,
.profile-drawer .field-group input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
.profile-drawer .check-grid label,
.profile-drawer .binance-payment-card,
.profile-drawer .payment-row {
  border-color: rgba(230, 240, 255, 0.13);
  background:
    linear-gradient(145deg, rgba(153, 165, 184, 0.09), rgba(28, 38, 54, 0.07)),
    rgba(5, 10, 18, 0.5);
  -webkit-backdrop-filter: blur(28px) saturate(130%);
  backdrop-filter: blur(28px) saturate(130%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.11), 0 9px 24px rgba(0, 0, 0, 0.12);
}
.profile-drawer .check-grid label:has(input:checked) {
  border-color: rgba(169, 153, 225, 0.35);
  background: linear-gradient(145deg, rgba(116, 91, 176, 0.17), rgba(34, 45, 63, 0.1)), rgba(6, 11, 20, 0.54);
}
.profile-drawer .switch span {
  border-color: rgba(224, 235, 250, 0.13);
  background: rgba(65, 76, 94, 0.56);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.31), inset 0 1px rgba(255, 255, 255, 0.09);
}
.profile-drawer .switch input:checked + span {
  border-color: rgba(104, 211, 193, 0.38);
  background: linear-gradient(90deg, rgba(48, 161, 145, 0.9), rgba(68, 111, 157, 0.9));
  box-shadow: 0 5px 17px rgba(42, 138, 130, 0.17), inset 0 1px rgba(255, 255, 255, 0.16);
}
.profile-drawer .button-secondary {
  border-color: rgba(224, 234, 251, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    linear-gradient(108deg, rgba(92, 67, 163, 0.85), rgba(62, 91, 150, 0.85) 58%, rgba(43, 123, 134, 0.82));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 13px 28px rgba(13, 20, 38, 0.24);
}
.profile-drawer .button-secondary:hover {
  border-color: rgba(236, 243, 255, 0.28);
  background: linear-gradient(108deg, rgba(105, 78, 181, 0.9), rgba(68, 100, 163, 0.9) 58%, rgba(48, 137, 148, 0.88));
}
.profile-drawer .toggle-icon {
  border-color: rgba(229, 239, 255, 0.13);
  color: #c5bde9;
  background: linear-gradient(145deg, rgba(157, 166, 186, 0.12), rgba(46, 55, 72, 0.09));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 8px 21px rgba(0, 0, 0, 0.13);
}
.profile-drawer .section-toggle:hover { border-color: rgba(231, 240, 253, 0.2); background-color: rgba(172, 186, 207, 0.055); }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .auth-shell, .auth-story, .auth-card { background: #0c121d; }
  .profile-drawer { background: #080d16; }
  .profile-identity, .profile-stats > div, .profile-section, .profile-drawer > .section-toggle { background: #111925; }
}

@media (max-width: 1080px) and (min-width: 801px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(350px, 395px); }
  .auth-story { padding: 30px; }
  .auth-story h1 { font-size: clamp(2.7rem, 5vw, 4rem); }
  .auth-card { margin: 16px; }
}

@media (max-width: 800px) {
  .auth-view { align-items: center; }
  .auth-shell {
    max-width: 430px;
    display: block;
    padding: 6px;
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(125, 138, 157, 0.11), rgba(18, 26, 38, 0.06)), rgba(5, 9, 16, 0.77);
  }
  .auth-card {
    margin: 0;
    padding: 24px 22px;
    border-radius: 21px;
    background: radial-gradient(circle at 12% 0, rgba(255, 255, 255, 0.09), transparent 24%), linear-gradient(155deg, rgba(92, 108, 132, 0.1), rgba(19, 27, 41, 0.05)), rgba(5, 10, 18, 0.72);
  }
  .auth-mobile-brand { margin-bottom: 22px; }
  .auth-card .section-heading h2 { font-size: 1.62rem; }
}

@media (max-width: 620px) {
  .auth-view { padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
  .auth-shell { border-radius: 24px; }
  .auth-card { padding: 22px 18px; border-radius: 19px; }
  .auth-security-strip { margin-bottom: 20px; padding-bottom: 13px; }
  .auth-card .section-heading h2 { font-size: 1.5rem; }
  .auth-card .section-heading > p:last-child { font-size: 0.84rem; line-height: 1.5; }
  .auth-proof-row { font-size: 0.62rem; }
  .auth-links { margin-top: 16px; }
}

/* Nexora Liquid Motion v2.1.0 — calmer hierarchy, purposeful tools, spatial navigation */
:root { --liquid-spring: cubic-bezier(0.16, 1, 0.3, 1); }

.main-content { view-transition-name: nexora-stage; }
.page-section { animation: none; }
.page-section.is-route-entering { animation: liquid-page-fallback 340ms var(--liquid-spring) both; }

::view-transition-group(nexora-stage) { animation-duration: 360ms; animation-timing-function: var(--liquid-spring); }
::view-transition-old(nexora-stage),
::view-transition-new(nexora-stage) { mix-blend-mode: normal; }
html[data-route-direction="forward"]::view-transition-old(nexora-stage) { animation: liquid-page-out-forward 180ms ease-in both; }
html[data-route-direction="forward"]::view-transition-new(nexora-stage) { animation: liquid-page-in-forward 340ms var(--liquid-spring) both; }
html[data-route-direction="back"]::view-transition-old(nexora-stage) { animation: liquid-page-out-back 180ms ease-in both; }
html[data-route-direction="back"]::view-transition-new(nexora-stage) { animation: liquid-page-in-back 340ms var(--liquid-spring) both; }

/* The two context panels stay premium but quieter than the four primary tools. */
.home-welcome-box {
  border-color: rgba(186, 198, 228, 0.34);
  background:
    radial-gradient(circle at 9% 112%, rgba(116, 77, 180, 0.22), transparent 39%),
    radial-gradient(circle at 94% 1%, rgba(49, 142, 156, 0.15), transparent 37%),
    linear-gradient(120deg, rgba(29, 27, 54, 0.8), rgba(15, 25, 48, 0.82) 54%, rgba(10, 36, 44, 0.78));
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.36), inset 0 1px rgba(255, 255, 255, 0.16), inset 1px 0 rgba(255, 255, 255, 0.05);
}
.home-welcome-box::before { opacity: 0.4; background: linear-gradient(90deg, transparent, rgba(190, 174, 230, 0.78), rgba(202, 238, 245, 0.78), transparent); }
.home-welcome-box::after { background: linear-gradient(112deg, rgba(255, 255, 255, 0.04), transparent 43%, rgba(99, 184, 194, 0.045)); }
.home-glow-one { background: #7650ab; opacity: 0.18; }
.home-glow-two { background: #2d8795; opacity: 0.16; }
.home-live-eyebrow > span { animation: none; background: #79d7c7; box-shadow: 0 0 0 4px rgba(121, 215, 199, 0.08), 0 0 12px rgba(121, 215, 199, 0.48); }
.home-avatar { border-color: rgba(211, 203, 237, 0.58); background: linear-gradient(145deg, rgba(116, 83, 187, 0.72), rgba(49, 133, 151, 0.64)); box-shadow: 0 0 0 4px rgba(143, 114, 204, 0.09), 0 16px 34px rgba(0, 0, 0, 0.3); }
.home-identity h3 { text-shadow: 0 4px 20px rgba(86, 68, 129, 0.26); }
.home-plan-badge { color: #bce3dc; border-color: rgba(127, 205, 191, 0.3); background: rgba(69, 142, 132, 0.1); box-shadow: none; }
.home-state-box { border-color: rgba(200, 214, 239, 0.18); background: linear-gradient(150deg, rgba(105, 117, 143, 0.12), rgba(8, 14, 27, 0.7)); box-shadow: 0 14px 31px rgba(0, 0, 0, 0.22), inset 0 1px rgba(255, 255, 255, 0.1); }
.home-state-ai { border-color: rgba(175, 145, 218, 0.28); background: linear-gradient(150deg, rgba(88, 59, 126, 0.24), rgba(8, 13, 28, 0.74)); }
.home-state-market { border-color: rgba(101, 186, 178, 0.25); background: linear-gradient(150deg, rgba(35, 100, 101, 0.23), rgba(8, 15, 29, 0.74)); }
.home-state-box > span { box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.16); }
.state-scan { display: none; }
.state-orbit { opacity: 0.5; box-shadow: 0 0 0 16px rgba(45, 160, 151, 0.035); }

.home-limit-box {
  border-color: rgba(169, 195, 224, 0.32);
  background:
    radial-gradient(circle at 100% 50%, rgba(92, 70, 136, 0.14), transparent 28%),
    linear-gradient(108deg, rgba(30, 55, 82, 0.7), rgba(28, 28, 62, 0.72) 58%, rgba(44, 28, 63, 0.68));
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.29), inset 0 1px rgba(255, 255, 255, 0.14), inset 1px 0 rgba(255, 255, 255, 0.04);
}
.home-limit-icon { color: #d8e9f2; border-color: rgba(152, 198, 214, 0.32); background: linear-gradient(145deg, rgba(68, 133, 151, 0.2), rgba(89, 71, 143, 0.17)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.11); }
.home-limit-box p { color: #9eb0c5; }
.home-limit-box small { color: #8599af; }
.sync-dot { background: #79d7c7; box-shadow: 0 0 8px rgba(121, 215, 199, 0.55); }
.home-credit-orb { width: 58px; height: 58px; color: #edf4ff; background: radial-gradient(circle at 31% 24%, rgba(255,255,255,.72), transparent 9%), conic-gradient(from 205deg, #5b9dad, #6860ad, #8b639c, #5b9dad); box-shadow: inset 0 0 0 6px rgba(10,18,36,.72), inset 0 0 19px rgba(255,255,255,.1), 0 0 19px rgba(85,143,162,.14); }
.home-credit-orb i { width: 72px; border-color: rgba(155, 195, 207, 0.2); }
.home-credit-orb b { background: #9bd9cf; box-shadow: 0 0 9px rgba(155, 217, 207, 0.58); }
.home-credit-total strong { text-shadow: 0 0 16px rgba(114, 182, 193, 0.24); }
.home-credit-total span { color: #9bcbd2; }

/* The four tools keep their bento form; only their instruments gain motion. */
.home-tool-card { will-change: transform, opacity; }
.home-page.is-home-entering .home-tool-card { animation: home-tool-arrive 520ms var(--liquid-spring) both; }
.home-page.is-home-entering .home-tool-card:nth-child(1) { animation-delay: 35ms; }
.home-page.is-home-entering .home-tool-card:nth-child(2) { animation-delay: 75ms; }
.home-page.is-home-entering .home-tool-card:nth-child(3) { animation-delay: 115ms; }
.home-page.is-home-entering .home-tool-card:nth-child(4) { animation-delay: 155ms; }

.home-page.is-home-entering .chart-visual i { transform-origin: center bottom; animation: chart-candle-arrive 720ms var(--liquid-spring) both; }
.home-page.is-home-entering .chart-visual i:nth-child(2) { animation-delay: 60ms; }
.home-page.is-home-entering .chart-visual i:nth-child(3) { animation-delay: 100ms; }
.home-page.is-home-entering .chart-visual i:nth-child(4) { animation-delay: 140ms; }
.home-page.is-home-entering .chart-visual i:nth-child(5) { animation-delay: 180ms; }
.home-page.is-home-entering .chart-visual b { animation: chart-line-arrive 820ms 150ms var(--liquid-spring) both; }

.news-visual b { animation: none; }
.home-page.is-home-entering .news-visual i:nth-child(1) { animation: radar-ring-arrive 760ms 80ms var(--liquid-spring) both; }
.home-page.is-home-entering .news-visual i:nth-child(2) { animation: radar-ring-arrive 680ms 130ms var(--liquid-spring) both; }
.home-page.is-home-entering .news-visual i:nth-child(3) { animation: radar-core-arrive 560ms 190ms var(--liquid-spring) both; }
.home-page.is-home-entering .news-visual b { animation: radar-dot-arrive 820ms 180ms var(--liquid-spring) both; }

.future-visual {
  display: grid;
  grid-template-columns: minmax(64px, 1fr) 52px;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 2px 4px;
}
.future-visual::before { content: none; }
.future-visual > b { position: absolute; left: 7%; right: 7%; top: 50%; width: auto; height: 1px; border: 0; border-radius: 0; background: linear-gradient(90deg, transparent, rgba(var(--tool-rgb), 0.22), rgba(var(--tool-rgb), 0.72), transparent); box-shadow: 0 0 10px rgba(var(--tool-rgb), 0.25); transform: none; }
.future-calendar {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 61px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--tool-rgb), 0.62);
  border-radius: 14px;
  color: #fff1f5;
  background: linear-gradient(150deg, rgba(var(--tool-rgb), 0.29), rgba(9, 14, 31, 0.88));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.16), 0 10px 24px rgba(0, 0, 0, 0.24), 0 0 19px rgba(var(--tool-rgb), 0.14);
}
.future-calendar::before { content: ""; position: absolute; left: 8px; right: 8px; top: 16px; height: 1px; background: rgba(255, 255, 255, 0.2); }
.future-calendar svg { width: 28px; height: 28px; stroke-width: 1.6; opacity: 0.92; }
.future-calendar i { position: absolute; top: auto; bottom: 9px; width: 4px; height: 4px; margin: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.44); box-shadow: none; animation: none; }
.future-calendar i:nth-of-type(1) { left: 22px; }
.future-calendar i:nth-of-type(2) { left: 34px; background: var(--tool); box-shadow: 0 0 8px rgba(var(--tool-rgb), 0.68); }
.future-calendar i:nth-of-type(3) { left: 46px; }
.future-clock {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--tool-rgb), 0.55);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.17), transparent 25%), rgba(13, 17, 36, 0.88);
  box-shadow: 0 0 0 5px rgba(var(--tool-rgb), 0.07), 0 0 20px rgba(var(--tool-rgb), 0.17);
}
.future-clock svg { width: 27px; height: 27px; stroke-width: 1.6; }
.future-clock i { position: absolute; left: 24px; top: 12px; width: 2px; height: 14px; margin: 0; border: 0; border-radius: 999px; background: var(--tool); box-shadow: 0 0 8px rgba(var(--tool-rgb), 0.68); transform: rotate(38deg); transform-origin: 50% 13px; animation: none; }
.home-page.is-home-entering .future-calendar { animation: future-calendar-arrive 700ms 120ms var(--liquid-spring) both; }
.home-page.is-home-entering .future-clock { animation: future-clock-arrive 620ms 190ms var(--liquid-spring) both; }
.home-page.is-home-entering .future-clock i { animation: future-hand-set 760ms 230ms var(--liquid-spring) both; }

.home-page.is-home-entering .account-visual { animation: wallet-stack-arrive 720ms 170ms var(--liquid-spring) both; }

@media (hover: hover) and (pointer: fine) {
  .home-tool-chart:hover .chart-visual b,
  .home-tool-chart:focus-visible .chart-visual b { transform: rotate(-10deg) scaleX(1.04); }
  .home-tool-news:hover .news-visual b,
  .home-tool-news:focus-visible .news-visual b { transform: translate(-9px, 15px) scale(1.08); }
  .home-tool-future:hover .future-clock i,
  .home-tool-future:focus-visible .future-clock i { transform: rotate(128deg); }
  .home-tool-account:hover .account-visual i:nth-child(1),
  .home-tool-account:focus-visible .account-visual i:nth-child(1) { transform: translate(-74%, -67%) rotate(-15deg); }
}
.chart-visual b,
.news-visual b,
.future-clock i,
.account-visual i { transition: transform 280ms var(--liquid-spring); }

@media (max-width: 959px) {
  .sidebar {
    transform: translate3d(-106%, 0, 0);
    touch-action: pan-y;
    will-change: transform;
    -webkit-backdrop-filter: blur(46px) saturate(142%);
    backdrop-filter: blur(46px) saturate(142%);
    transition: transform 360ms var(--liquid-spring), visibility 0s linear 360ms;
  }
  body.nav-open .sidebar {
    transform: translate3d(var(--drawer-drag-x, 0px), 0, 0);
    transition-delay: 0s;
  }
  .sidebar.is-dragging { transition: none !important; }
  .nav-scrim {
    opacity: 0;
    background: rgba(2, 5, 14, 0.54);
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
    transition: opacity 280ms ease, visibility 0s linear 280ms, -webkit-backdrop-filter 320ms ease, backdrop-filter 320ms ease;
  }
  body.nav-open .nav-scrim {
    opacity: var(--drawer-drag-opacity, 1);
    -webkit-backdrop-filter: blur(14px) saturate(122%);
    backdrop-filter: blur(14px) saturate(122%);
    transition-delay: 0s;
  }
  .sidebar .nav-item { opacity: 0.72; transform: translate3d(-10px, 0, 0); transition: color var(--motion-fast), background var(--motion-fast), opacity 220ms ease, transform 320ms var(--liquid-spring); }
  body.nav-open .sidebar .nav-item { opacity: 1; transform: translate3d(0, 0, 0); }
  body.nav-open .sidebar .nav-item:nth-of-type(1) { transition-delay: 25ms; }
  body.nav-open .sidebar .nav-item:nth-of-type(2) { transition-delay: 50ms; }
  body.nav-open .sidebar .nav-item:nth-of-type(3) { transition-delay: 75ms; }
  body.nav-open .sidebar .nav-item:nth-of-type(4) { transition-delay: 100ms; }
  body.nav-open .sidebar .nav-item:nth-of-type(5) { transition-delay: 125ms; }
}

@keyframes liquid-page-out-forward { to { opacity: 0; transform: translate3d(-16px, 0, 0) scale(0.992); filter: blur(4px); } }
@keyframes liquid-page-in-forward { from { opacity: 0; transform: translate3d(22px, 0, 0) scale(0.988); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes liquid-page-out-back { to { opacity: 0; transform: translate3d(16px, 0, 0) scale(0.992); filter: blur(4px); } }
@keyframes liquid-page-in-back { from { opacity: 0; transform: translate3d(-22px, 0, 0) scale(0.988); filter: blur(5px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes liquid-page-fallback { from { opacity: 0; transform: translate3d(18px, 0, 0) scale(0.992); filter: blur(4px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes home-tool-arrive { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.975); } to { opacity: 1; transform: none; } }
@keyframes chart-candle-arrive { from { opacity: 0; transform: scaleY(0.12); } to { opacity: 1; transform: scaleY(1); } }
@keyframes chart-line-arrive { from { opacity: 0; transform: rotate(-14deg) scaleX(0.12); } to { opacity: 1; transform: rotate(-14deg) scaleX(1); } }
@keyframes radar-ring-arrive { from { opacity: 0; transform: translate(-50%, -50%) scale(0.42); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes radar-core-arrive { from { opacity: 0; transform: translate(-50%, -50%) scale(0.2); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes radar-dot-arrive { from { opacity: 0; transform: translate(-28px, 30px) scale(0.45); } to { opacity: 1; transform: none; } }
@keyframes future-calendar-arrive { from { opacity: 0; transform: translate3d(-15px, 7px, 0) rotate(-7deg) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes future-clock-arrive { from { opacity: 0; transform: translate3d(13px, 0, 0) scale(0.62); } to { opacity: 1; transform: none; } }
@keyframes future-hand-set { from { transform: rotate(-148deg); } to { transform: rotate(38deg); } }
@keyframes wallet-stack-arrive { from { opacity: 0; transform: translate3d(0, 13px, 0) rotate(3deg) scale(0.84); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(nexora-stage),
  ::view-transition-old(nexora-stage),
  ::view-transition-new(nexora-stage),
  .page-section.is-route-entering,
  .home-page.is-home-entering .home-tool-card,
  .home-page.is-home-entering .home-tool-visual,
  .home-page.is-home-entering .home-tool-visual *,
  .sidebar,
  .sidebar .nav-item,
  .nav-scrim { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Nexora Unified Home v2.2.0 — one command surface, two purposeful instruments */
body[data-route="home"] .topbar .mode-chip,
body[data-route="home"] .topbar .credit-chip { display: none; }
body[data-route="home"] .topbar-actions { gap: 0; }

.home-welcome-box {
  grid-template-rows: auto auto;
  min-height: 0;
  row-gap: 22px;
}

.home-limit-inline {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  min-height: 62px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  margin: 0;
  padding: 17px 2px 0;
  overflow: visible;
  border: 0;
  border-top: 1px solid rgba(210, 227, 248, 0.15);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-limit-inline::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: min(42%, 260px);
  height: 1px;
  background: linear-gradient(90deg, rgba(168, 137, 231, 0.66), transparent);
  box-shadow: 0 0 16px rgba(128, 103, 196, 0.16);
}
.home-limit-inline .home-limit-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #e9f6ff;
  border-color: rgba(172, 210, 228, 0.28);
  background: linear-gradient(145deg, rgba(86, 150, 168, 0.2), rgba(102, 80, 156, 0.17));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.12), 0 9px 20px rgba(0, 0, 0, 0.2);
}
.home-limit-inline .home-limit-icon svg { width: 19px; height: 19px; }
.home-limit-copy { min-width: 0; }
.home-limit-inline .home-limit-copy > strong {
  margin: 0;
  color: #f4f8ff;
  font-size: 0.91rem;
  line-height: 1.12;
}
.home-limit-inline .home-limit-copy > small {
  margin-top: 4px;
  color: #8fa2bb;
  font-size: 0.67rem;
  line-height: 1;
}
.home-limit-inline .home-credit-total {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
}
.home-limit-inline .home-credit-total strong {
  color: #f7fbff;
  font-size: 1.65rem !important;
  text-shadow: 0 0 18px rgba(121, 215, 199, 0.2);
}
.home-limit-inline .home-credit-total span {
  margin: 0;
  color: #a4cfc8;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

/* Card entrance follows the page transition; only chart and calendar illustrate motion. */
.home-page.is-home-entering .home-tool-card,
.home-page.is-home-entering .news-visual,
.home-page.is-home-entering .news-visual *,
.home-page.is-home-entering .account-visual,
.home-page.is-home-entering .account-visual * { animation: none; }

.future-visual {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  gap: 0;
  padding: 0;
}
.future-visual > b,
.future-clock { display: none !important; }
.future-calendar {
  width: 82px;
  height: 68px;
  border-radius: 17px;
  border-color: rgba(var(--tool-rgb), 0.7);
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
    linear-gradient(150deg, rgba(var(--tool-rgb), 0.35), rgba(9, 14, 31, 0.9) 64%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 13px 27px rgba(0, 0, 0, 0.26), 0 0 25px rgba(var(--tool-rgb), 0.19);
}
.future-calendar::before { left: 10px; right: 10px; top: 18px; }
.future-calendar svg { width: 31px; height: 31px; transform: translateY(-2px); }
.future-visual .future-calendar i {
  top: auto;
  bottom: 10px;
  width: 4px;
  height: 4px;
  margin: 0;
  border: 0;
  opacity: 1;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: none;
}
.future-visual .future-calendar i:nth-of-type(1) { left: 26px; }
.future-visual .future-calendar i:nth-of-type(2) { left: 39px; background: var(--tool); box-shadow: 0 0 8px rgba(var(--tool-rgb), 0.68); }
.future-visual .future-calendar i:nth-of-type(3) { left: 52px; }
.home-page.is-home-entering .future-calendar { animation: calendar-glass-arrive 680ms 105ms var(--liquid-spring) both; }
.home-page.is-home-entering .future-calendar i:nth-of-type(2) { animation: calendar-date-set 620ms 360ms var(--liquid-spring) both; }

@keyframes calendar-glass-arrive {
  from { opacity: 0; transform: translate3d(0, 13px, 0) rotateX(18deg) scale(0.82); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}
@keyframes calendar-date-set {
  from { opacity: 0; transform: scale(0.2); }
  68% { opacity: 1; transform: scale(1.6); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 620px) {
  .home-welcome-box { row-gap: 18px; }
  .home-limit-inline {
    min-height: 58px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    padding: 15px 0 0;
    border-radius: 0;
  }
  .home-limit-inline .home-limit-icon { width: 40px; height: 40px; border-radius: 13px; }
  .home-limit-inline .home-credit-total { grid-column: 3; grid-row: 1; }
  .home-limit-inline .home-credit-total strong { font-size: 1.45rem !important; }
  .home-tool-copy small { letter-spacing: 0.055em; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page.is-home-entering .chart-visual i,
  .home-page.is-home-entering .chart-visual b,
  .home-page.is-home-entering .future-calendar,
  .home-page.is-home-entering .future-calendar i { animation: none !important; }
}

/* Nexora Command Resize v2.3.0 — hold, reveal, resize */
body[data-route="home"] .topbar-title h1 {
  font-family: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: 0.025em;
  background: linear-gradient(100deg, #ffffff 6%, #d9d7ff 48%, #6fe9f4 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* Profile photography is the control: no square frame around it. */
.avatar-button {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.avatar-button img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: none;
  box-shadow: none;
}
.home-avatar {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}
.home-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 180ms var(--liquid-spring), filter 180ms ease;
}
.home-avatar:hover img { filter: brightness(1.06); }
.home-avatar:active img { transform: scale(0.95); }

.home-welcome-box {
  transform-origin: center;
  transition: transform 180ms var(--liquid-spring), border-color 220ms ease, box-shadow 220ms ease;
}
.home-welcome-box.is-resize-pressing { transform: scale(0.992); }
.home-welcome-box.is-resize-mode {
  border-color: rgba(213, 224, 255, 0.72);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(164, 123, 255, 0.18),
    0 0 38px rgba(100, 187, 211, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.2);
}
.home-welcome-box.is-resize-mode .home-limit-inline { padding-right: 58px; }

.command-resize-handle {
  --resize-drag-y: 0px;
  position: absolute;
  z-index: 12;
  right: 7px;
  bottom: 7px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #f6fbff;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  cursor: ns-resize;
  transform: translate3d(8px, calc(8px + var(--resize-drag-y)), 0) scale(0.72);
  transition: opacity 150ms ease, visibility 150ms ease, transform 240ms var(--liquid-spring);
}
.command-resize-handle::before {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(230, 242, 255, 0.5);
  border-radius: 52% 52% 52% 22%;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.42), transparent 23%),
    linear-gradient(145deg, rgba(210, 226, 255, 0.35), rgba(95, 101, 156, 0.27) 48%, rgba(30, 48, 76, 0.5));
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), inset 0 -1px rgba(18, 28, 52, 0.38), 0 9px 24px rgba(0, 0, 0, 0.28), 0 0 18px rgba(145, 169, 255, 0.17);
  transform: rotate(-12deg);
}
.command-resize-handle svg {
  position: relative;
  z-index: 1;
  width: 17px;
  height: 17px;
  stroke-width: 1.75;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.35));
}
.home-welcome-box.is-resize-mode .command-resize-handle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, var(--resize-drag-y), 0) scale(1);
  animation: command-handle-in 260ms var(--liquid-spring) both;
}
.home-welcome-box.is-handle-dragging .command-resize-handle { transition: none; }
.command-resize-handle:hover::before,
.command-resize-handle:focus-visible::before { border-color: rgba(255, 255, 255, 0.82); background-color: rgba(160, 176, 224, 0.18); }
.command-resize-handle:active::before { transform: rotate(-12deg) scale(0.92); }

.home-welcome-box[data-command-size="compact"] {
  gap: 20px;
  row-gap: 16px;
  padding: 22px;
}
.home-welcome-box[data-command-size="compact"] .home-avatar,
.home-welcome-box[data-command-size="compact"] .home-avatar img { width: 62px; height: 62px; }
.home-welcome-box[data-command-size="compact"] .home-identity { gap: 14px; }
.home-welcome-box[data-command-size="compact"] .home-identity h3 { font-size: 1.72rem; }
.home-welcome-box[data-command-size="compact"] .home-state-cluster { width: 304px; gap: 10px; }
.home-welcome-box[data-command-size="compact"] .home-state-box { min-height: 112px; padding: 14px; border-radius: 18px; }
.home-welcome-box[data-command-size="compact"] .home-state-box > span { width: 36px; height: 36px; margin-bottom: 12px; }
.home-welcome-box[data-command-size="compact"] .home-limit-inline { min-height: 52px; padding-top: 12px; }
.home-welcome-box[data-command-size="compact"] .home-limit-icon { width: 38px; height: 38px; }
.home-welcome-box[data-command-size="compact"] .home-credit-total strong { font-size: 1.45rem !important; }

body.is-command-size-transition .main-content { view-transition-name: none; }
body.is-command-size-transition .home-welcome-box { view-transition-name: command-center; }
::view-transition-group(command-center) { animation-duration: 320ms; animation-timing-function: var(--liquid-spring); }
::view-transition-old(command-center) { animation: command-size-old 180ms ease-in both; }
::view-transition-new(command-center) { animation: command-size-new 320ms var(--liquid-spring) both; }

@keyframes command-handle-in {
  from { opacity: 0; transform: translate3d(8px, 8px, 0) scale(0.7) rotate(16deg); }
  to { opacity: 1; transform: translate3d(0, var(--resize-drag-y), 0) scale(1) rotate(0); }
}
@keyframes command-size-old { to { opacity: 0.4; transform: scale(0.985); filter: blur(2px); } }
@keyframes command-size-new { from { opacity: 0.4; transform: scale(0.975); filter: blur(3px); } to { opacity: 1; transform: none; filter: blur(0); } }

@media (max-width: 620px) {
  .avatar-button { width: 44px; height: 44px; }
  .avatar-button img { width: 42px; height: 42px; }
  .home-avatar,
  .home-avatar img { width: 64px; height: 64px; }

  .home-welcome-box[data-command-size="compact"] {
    gap: 13px;
    row-gap: 13px;
    padding: 16px;
    border-radius: 21px;
  }
  .home-welcome-box[data-command-size="compact"] .home-identity { gap: 11px; }
  .home-welcome-box[data-command-size="compact"] .home-avatar,
  .home-welcome-box[data-command-size="compact"] .home-avatar img { width: 54px; height: 54px; }
  .home-welcome-box[data-command-size="compact"] .home-identity h3 { font-size: 1.3rem; }
  .home-welcome-box[data-command-size="compact"] .home-live-eyebrow { margin-bottom: 3px; font-size: 0.64rem; }
  .home-welcome-box[data-command-size="compact"] .home-plan-badge { min-height: 25px; margin-top: 7px; padding: 0 8px; font-size: 0.62rem; }
  .home-welcome-box[data-command-size="compact"] .home-state-cluster { width: 100%; gap: 8px; }
  .home-welcome-box[data-command-size="compact"] .home-state-box {
    min-height: 78px;
    grid-template-columns: 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: center;
    align-items: center;
    column-gap: 9px;
    padding: 10px;
    border-radius: 16px;
  }
  .home-welcome-box[data-command-size="compact"] .home-state-box > span {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 32px;
    height: 32px;
    margin: 0;
    border-radius: 10px;
  }
  .home-welcome-box[data-command-size="compact"] .home-state-box small { grid-column: 2; grid-row: 1; font-size: 0.65rem; }
  .home-welcome-box[data-command-size="compact"] .home-state-box strong { grid-column: 2; grid-row: 2; margin: 0; font-size: 0.8rem; }
  .home-welcome-box[data-command-size="compact"] .home-limit-inline { min-height: 48px; padding-top: 10px; }
  .home-welcome-box[data-command-size="compact"] .home-limit-icon { width: 36px; height: 36px; }
  .home-welcome-box[data-command-size="compact"] .home-limit-copy > strong { font-size: 0.82rem; }
  .home-welcome-box[data-command-size="compact"] .home-limit-copy > small { font-size: 0.62rem; }
  .home-welcome-box[data-command-size="compact"] .home-credit-total strong { font-size: 1.3rem !important; }
  .home-welcome-box[data-command-size="compact"] .home-credit-total span { font-size: 0.56rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-welcome-box,
  .home-avatar img,
  .command-resize-handle,
  .home-welcome-box.is-resize-mode .command-resize-handle,
  ::view-transition-group(command-center),
  ::view-transition-old(command-center),
  ::view-transition-new(command-center) { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Nexora Command Resize v2.4.0 — tap-select, square corner grip, live finger tracking */
#homeCommandCard {
  --command-resize-duration: 260ms;
  --command-resize-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --command-card-padding: 28px;
  --command-card-gap: 28px;
  --command-card-row-gap: 22px;
  --command-card-radius: 26px;
  --command-avatar-size: 72px;
  --command-identity-gap: 18px;
  --command-name-size: 36px;
  --command-eyebrow-size: 11.2px;
  --command-badge-height: 30px;
  --command-badge-margin: 11px;
  --command-badge-pad: 10px;
  --command-badge-font: 11.52px;
  --command-state-width: 348px;
  --command-state-gap: 14px;
  --command-state-height: 158px;
  --command-state-padding: 17px;
  --command-state-radius: 20px;
  --command-state-icon: 42px;
  --command-state-icon-margin: 22px;
  --command-state-label: 11.68px;
  --command-state-value: 16px;
  --command-limit-height: 62px;
  --command-limit-top: 17px;
  --command-limit-icon: 42px;
  --command-limit-title: 14.56px;
  --command-limit-note: 10.72px;
  --command-credit-size: 26.4px;
  gap: var(--command-card-gap);
  row-gap: var(--command-card-row-gap);
  padding: var(--command-card-padding);
  border-radius: var(--command-card-radius);
  cursor: pointer;
  touch-action: pan-y;
  transition:
    gap var(--command-resize-duration) var(--command-resize-ease),
    row-gap var(--command-resize-duration) var(--command-resize-ease),
    padding var(--command-resize-duration) var(--command-resize-ease),
    border-radius var(--command-resize-duration) var(--command-resize-ease),
    transform 180ms var(--liquid-spring),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

#homeCommandCard.is-resize-mode {
  cursor: default;
  border-color: rgba(222, 232, 255, 0.86);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    0 0 0 2px rgba(155, 118, 255, 0.22),
    0 0 42px rgba(68, 212, 232, 0.16),
    inset 0 1px rgba(255, 255, 255, 0.23);
}

#homeCommandCard .home-identity { gap: var(--command-identity-gap); transition: gap var(--command-resize-duration) var(--command-resize-ease); }
#homeCommandCard .home-avatar,
#homeCommandCard .home-avatar img {
  width: var(--command-avatar-size);
  height: var(--command-avatar-size);
  border-radius: 50%;
  transition: width var(--command-resize-duration) var(--command-resize-ease), height var(--command-resize-duration) var(--command-resize-ease), transform 180ms var(--liquid-spring), filter 180ms ease;
}
#homeCommandCard .home-identity h3 { font-size: var(--command-name-size); transition: font-size var(--command-resize-duration) var(--command-resize-ease); }
#homeCommandCard .home-live-eyebrow { font-size: var(--command-eyebrow-size); transition: font-size var(--command-resize-duration) var(--command-resize-ease); }
#homeCommandCard .home-plan-badge {
  min-height: var(--command-badge-height);
  margin-top: var(--command-badge-margin);
  padding-inline: var(--command-badge-pad);
  font-size: var(--command-badge-font);
  transition: min-height var(--command-resize-duration) var(--command-resize-ease), margin var(--command-resize-duration) var(--command-resize-ease), padding var(--command-resize-duration) var(--command-resize-ease), font-size var(--command-resize-duration) var(--command-resize-ease);
}

#homeCommandCard .home-state-cluster {
  width: var(--command-state-width);
  gap: var(--command-state-gap);
  transition: width var(--command-resize-duration) var(--command-resize-ease), gap var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard .home-state-box {
  min-height: var(--command-state-height);
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-content: end;
  align-items: stretch;
  column-gap: 0;
  padding: var(--command-state-padding);
  border-radius: var(--command-state-radius);
  transition: min-height var(--command-resize-duration) var(--command-resize-ease), padding var(--command-resize-duration) var(--command-resize-ease), border-radius var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard .home-state-box > span {
  grid-column: 1;
  grid-row: 1;
  width: var(--command-state-icon);
  height: var(--command-state-icon);
  margin: 0 0 var(--command-state-icon-margin);
  transition: width var(--command-resize-duration) var(--command-resize-ease), height var(--command-resize-duration) var(--command-resize-ease), margin var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard .home-state-box small {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--command-state-label);
  transition: font-size var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard .home-state-box strong {
  grid-column: 1;
  grid-row: 3;
  margin-top: 3px;
  font-size: var(--command-state-value);
  transition: font-size var(--command-resize-duration) var(--command-resize-ease);
}

#homeCommandCard .home-limit-inline {
  min-height: var(--command-limit-height);
  padding-top: var(--command-limit-top);
  transition: min-height var(--command-resize-duration) var(--command-resize-ease), padding var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard.is-resize-mode .home-limit-inline { padding-right: 54px; }
#homeCommandCard .home-limit-inline .home-limit-icon {
  width: var(--command-limit-icon);
  height: var(--command-limit-icon);
  transition: width var(--command-resize-duration) var(--command-resize-ease), height var(--command-resize-duration) var(--command-resize-ease);
}
#homeCommandCard .home-limit-inline .home-limit-copy > strong { font-size: var(--command-limit-title); transition: font-size var(--command-resize-duration) var(--command-resize-ease); }
#homeCommandCard .home-limit-inline .home-limit-copy > small { font-size: var(--command-limit-note); transition: font-size var(--command-resize-duration) var(--command-resize-ease); }
#homeCommandCard .home-limit-inline .home-credit-total strong { font-size: var(--command-credit-size) !important; transition: font-size var(--command-resize-duration) var(--command-resize-ease); }

#commandResizeHandle {
  position: absolute;
  z-index: 14;
  right: -1px;
  bottom: -1px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px 0 var(--command-card-radius) 0;
  color: #f8fbff;
  background: transparent;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  touch-action: none;
  cursor: ns-resize;
  transform: scale(0.82);
  transform-origin: 100% 100%;
  transition: opacity 150ms ease, visibility 0s linear 150ms, transform 220ms var(--liquid-spring);
}
#commandResizeHandle::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(226, 239, 255, 0.56);
  border-right: 0;
  border-bottom: 0;
  border-radius: 11px 0 calc(var(--command-card-radius) - 1px) 0;
  background:
    linear-gradient(135deg, rgba(232, 240, 255, 0.3), rgba(122, 118, 184, 0.23) 46%, rgba(29, 54, 79, 0.54)),
    rgba(25, 35, 61, 0.68);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  backdrop-filter: blur(20px) saturate(175%);
  box-shadow: inset 1px 1px rgba(255, 255, 255, 0.38), -8px -8px 22px rgba(7, 11, 25, 0.2), 0 0 20px rgba(142, 167, 255, 0.16);
  transform: none;
}
#commandResizeHandle svg {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 7px 0 0 7px;
  stroke-width: 1.9;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.38));
}
#homeCommandCard.is-resize-mode #commandResizeHandle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  animation: command-square-handle-in 240ms var(--liquid-spring) both;
  transition-delay: 0s;
}
#commandResizeHandle:hover::before,
#commandResizeHandle:focus-visible::before {
  border-color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, rgba(243, 247, 255, 0.4), rgba(140, 126, 208, 0.31) 48%, rgba(35, 69, 97, 0.6));
}
#commandResizeHandle:focus-visible { outline: 2px solid #9eeaf3; outline-offset: -5px; }
#commandResizeHandle:active::before { transform: scale(0.96); transform-origin: 100% 100%; }

#homeCommandCard.is-handle-dragging {
  cursor: ns-resize;
  user-select: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.14);
}
#homeCommandCard.is-handle-dragging .home-state-box,
#homeCommandCard.is-handle-dragging .home-limit-inline {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
#homeCommandCard.is-handle-dragging > *:not(#commandResizeHandle) { pointer-events: none; }
#homeCommandCard.is-handle-dragging,
#homeCommandCard.is-handle-dragging .home-identity,
#homeCommandCard.is-handle-dragging .home-avatar,
#homeCommandCard.is-handle-dragging .home-avatar img,
#homeCommandCard.is-handle-dragging .home-identity h3,
#homeCommandCard.is-handle-dragging .home-live-eyebrow,
#homeCommandCard.is-handle-dragging .home-plan-badge,
#homeCommandCard.is-handle-dragging .home-state-cluster,
#homeCommandCard.is-handle-dragging .home-state-box,
#homeCommandCard.is-handle-dragging .home-state-box > span,
#homeCommandCard.is-handle-dragging .home-state-box small,
#homeCommandCard.is-handle-dragging .home-state-box strong,
#homeCommandCard.is-handle-dragging .home-limit-inline,
#homeCommandCard.is-handle-dragging .home-limit-icon,
#homeCommandCard.is-handle-dragging .home-limit-copy > strong,
#homeCommandCard.is-handle-dragging .home-limit-copy > small,
#homeCommandCard.is-handle-dragging .home-credit-total strong,
#homeCommandCard.is-handle-dragging #commandResizeHandle { transition: none !important; }
#homeCommandCard.is-handle-dragging .state-scan,
#homeCommandCard.is-handle-dragging .state-orbit { animation-play-state: paused; }

@keyframes command-square-handle-in {
  from { opacity: 0; transform: translate3d(7px, 7px, 0) scale(0.78); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  #homeCommandCard {
    --command-card-padding: 21px;
    --command-card-gap: 22px;
    --command-card-row-gap: 18px;
    --command-card-radius: 22px;
    --command-avatar-size: 64px;
    --command-identity-gap: 14px;
    --command-name-size: 24.8px;
    --command-state-width: 100%;
    --command-state-gap: 10px;
    --command-state-height: 116px;
    --command-state-padding: 14px;
    --command-state-radius: 17px;
    --command-state-icon: 36px;
    --command-state-icon-margin: 14px;
    --command-limit-height: 58px;
    --command-limit-top: 15px;
    --command-limit-icon: 40px;
    --command-credit-size: 23.2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #homeCommandCard,
  #homeCommandCard *,
  #commandResizeHandle,
  #homeCommandCard.is-resize-mode #commandResizeHandle { animation: none !important; transition-duration: 0.01ms !important; }
}

/* Nexora Widget Motion v2.5.0 — four purposeful instruments + iOS-style identity tile */
#homeCommandCard .home-avatar {
  width: var(--command-avatar-size);
  height: var(--command-avatar-size);
  padding: 3px;
  overflow: hidden;
  border: 1px solid rgba(226, 219, 255, 0.62);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(202, 183, 255, 0.36), rgba(90, 208, 224, 0.18)),
    rgba(19, 25, 48, 0.72);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.3),
    0 12px 30px rgba(0, 0, 0, 0.3),
    0 0 24px rgba(143, 95, 255, 0.2);
}
#homeCommandCard .home-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}
#homeCommandCard.is-handle-dragging .home-avatar {
  border-radius: clamp(16px, calc(var(--command-avatar-size) * 0.27), 22px);
}

/* Header profile remains a clean circular control. */
.topbar .avatar-button,
.topbar .avatar-button img {
  border-radius: 50%;
}

body[data-route="home"] .home-tool-chart .chart-visual i {
  transform-origin: 50% 100%;
  animation: widget-chart-candle 6.4s var(--liquid-spring) infinite;
}
body[data-route="home"] .home-tool-chart .chart-visual i:nth-child(2) { animation-delay: -5.98s; }
body[data-route="home"] .home-tool-chart .chart-visual i:nth-child(3) { animation-delay: -5.56s; }
body[data-route="home"] .home-tool-chart .chart-visual i:nth-child(4) { animation-delay: -5.14s; }
body[data-route="home"] .home-tool-chart .chart-visual i:nth-child(5) { animation-delay: -4.72s; }
body[data-route="home"] .home-tool-chart .chart-visual b {
  animation: widget-chart-line 6.4s var(--liquid-spring) infinite;
}

body[data-route="home"] #page-home .home-tool-news .news-visual i:nth-child(1) {
  animation: widget-radar-ring 7.2s -7.2s ease-out infinite;
}
body[data-route="home"] #page-home .home-tool-news .news-visual i:nth-child(2) {
  animation: widget-radar-ring 7.2s -6.78s ease-out infinite;
}
body[data-route="home"] #page-home .home-tool-news .news-visual i:nth-child(3) {
  animation: widget-radar-ring 7.2s -6.36s ease-out infinite;
}
body[data-route="home"] #page-home .home-tool-news .news-visual b {
  left: 50%;
  top: 50%;
  animation: widget-radar-point 7.2s var(--liquid-spring) infinite;
}

body[data-route="home"] .home-tool-future .future-calendar {
  transform-origin: center bottom;
  animation: widget-calendar-set 7.8s var(--liquid-spring) infinite;
}
body[data-route="home"] .home-tool-future .future-calendar i:nth-of-type(2) {
  animation: widget-calendar-date 7.8s var(--liquid-spring) infinite;
}

body[data-route="home"] .home-tool-account .account-visual i:nth-child(1) {
  transform-origin: 50% 50%;
  animation: widget-wallet-back 8.4s var(--liquid-spring) infinite;
}
body[data-route="home"] .home-tool-account .account-visual i:nth-child(2) {
  animation: widget-wallet-front 8.4s var(--liquid-spring) infinite;
}
body[data-route="home"] .home-tool-account .account-visual b {
  animation: widget-wallet-light 8.4s ease-in-out infinite;
}

@keyframes widget-chart-candle {
  0%, 17% { transform: scaleY(0.76); filter: brightness(0.88); }
  7% { transform: scaleY(1.07); filter: brightness(1.2); }
  24%, 100% { transform: scaleY(1); filter: none; }
}
@keyframes widget-chart-line {
  0% { opacity: 0.45; transform: rotate(-14deg) scaleX(0.72); }
  12% { opacity: 1; transform: rotate(-14deg) scaleX(1.04); }
  22%, 100% { opacity: 0.94; transform: rotate(-14deg) scaleX(1); }
}
@keyframes widget-radar-ring {
  0% { opacity: 0.18; transform: translate(-50%, -50%) scale(0.58); }
  14% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.06); }
  24%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes widget-radar-point {
  0% { opacity: 0.2; transform: translate(-3px, -31px) scale(0.75); }
  6% { opacity: 1; transform: translate(22px, -23px) scale(1.08); }
  12% { transform: translate(31px, 3px) scale(1); }
  18% { transform: translate(12px, 25px) scale(0.92); }
  24%, 100% { opacity: 1; transform: translate(24px, -28px) scale(1); }
}
@keyframes widget-calendar-set {
  0% { opacity: 0.72; transform: translate3d(0, 6px, 0) scale(0.92); }
  10% { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.035); }
  19%, 100% { opacity: 1; transform: none; }
}
@keyframes widget-calendar-date {
  0% { opacity: 0.35; transform: scale(0.45); }
  10% { opacity: 1; transform: scale(1.7); }
  18%, 100% { opacity: 1; transform: scale(1); }
}
@keyframes widget-wallet-back {
  0% { opacity: 0.25; transform: translate(-56%, -54%) rotate(-4deg) scale(0.9); }
  11% { opacity: 0.68; transform: translate(-72%, -66%) rotate(-13deg) scale(1.02); }
  21%, 100% { opacity: 0.55; transform: translate(-67%, -62%) rotate(-11deg); }
}
@keyframes widget-wallet-front {
  0% { opacity: 0.72; transform: translate(-44%, -45%) scale(0.94); }
  11% { opacity: 1; transform: translate(-52%, -52%) scale(1.025); }
  21%, 100% { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes widget-wallet-light {
  0%, 4% { opacity: 0.3; filter: brightness(0.8); }
  10% { opacity: 1; filter: brightness(1.55); }
  19%, 100% { opacity: 1; filter: none; }
}

@media (max-width: 620px) {
  #homeCommandCard {
    --command-avatar-size: 76px;
    --command-identity-gap: 15px;
  }
  #homeCommandCard .home-avatar { border-radius: 20px; }
  #homeCommandCard .home-avatar img { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-route="home"] .home-tool-visual,
  body[data-route="home"] .home-tool-visual *,
  body[data-route="home"] .home-tool-visual::before,
  body[data-route="home"] .home-tool-visual::after { animation: none !important; }
}

/* Nexora Command Resize v2.6.4 — five snap stages + slim border-straddling liquid-glass bean grip */
.home-command-shell {
  position: relative;
  overflow: visible;
}
#homeCommandCard {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
}
#homeCommandCard .home-identity > div { min-width: 0; }
#homeCommandCard .home-state-cluster { align-self: center; }
#homeCommandCard .home-limit-inline { grid-column: 1 / -1; }

/* The smallest tile keeps the person visually dominant, like an iOS identity widget. */
#homeCommandCard[data-command-stage="identity"] {
  grid-template-columns: minmax(0, 1fr) var(--command-state-width);
}
#homeCommandCard[data-command-stage="identity"] .home-state-cluster {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
#homeCommandCard[data-command-stage="identity"] .home-state-box {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  place-items: center;
  align-content: center;
  padding: var(--command-state-padding);
}
#homeCommandCard[data-command-stage="identity"] .home-state-box > span {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
#homeCommandCard[data-command-stage="identity"] .home-state-box small,
#homeCommandCard[data-command-stage="identity"] .home-state-box strong {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mini keeps all information but converts the status tiles into compact horizontal controls. */
#homeCommandCard[data-command-stage="mini"] .home-state-box {
  grid-template-columns: var(--command-state-icon) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  column-gap: 8px;
}
#homeCommandCard[data-command-stage="mini"] .home-state-box > span {
  grid-column: 1;
  grid-row: 1 / span 2;
  margin: 0;
}
#homeCommandCard[data-command-stage="mini"] .home-state-box small {
  grid-column: 2;
  grid-row: 1;
}
#homeCommandCard[data-command-stage="mini"] .home-state-box strong {
  grid-column: 2;
  grid-row: 2;
  margin-top: 1px;
}

/* Only the curved glass bean is visible; the transparent 58px button preserves a safe touch target. */
#commandResizeHandle {
  right: -17px;
  bottom: -10px;
  width: 58px;
  height: 58px;
  border-radius: 0 0 var(--command-card-radius) 0;
  cursor: ns-resize;
  transform: translate3d(6px, 6px, 0) scale(0.8);
  transform-origin: 100% 100%;
}
#commandResizeHandle::before {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.54), transparent 31%),
    linear-gradient(145deg, rgba(246, 252, 255, 0.34), rgba(203, 229, 243, 0.17) 46%, rgba(129, 174, 198, 0.13));
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  backdrop-filter: blur(24px) saturate(190%);
  box-shadow: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23000' d='M36 2C44 2 49 8 48 16C47 29 39 40 25 47C17 51 8 49 4 43C1 38 3 32 8 29C12 27 16 28 21 26C30 23 33 17 33 9C33 5 34 3 36 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23000' d='M36 2C44 2 49 8 48 16C47 29 39 40 25 47C17 51 8 49 4 43C1 38 3 32 8 29C12 27 16 28 21 26C30 23 33 17 33 9C33 5 34 3 36 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.98))
    drop-shadow(0 1px 1px rgba(255, 255, 255, 0.52))
    drop-shadow(0 8px 13px rgba(0, 0, 0, 0.25))
    drop-shadow(0 0 10px rgba(190, 229, 255, 0.18));
  transform: rotate(-5deg);
  transform-origin: 50% 50%;
}
#commandResizeHandle::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 42px;
  height: 42px;
  border-radius: 0;
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.62), transparent 34%),
    radial-gradient(circle at 68% 78%, rgba(200, 239, 255, 0.26), transparent 44%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23000' d='M36 2C44 2 49 8 48 16C47 29 39 40 25 47C17 51 8 49 4 43C1 38 3 32 8 29C12 27 16 28 21 26C30 23 33 17 33 9C33 5 34 3 36 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50'%3E%3Cpath fill='%23000' d='M36 2C44 2 49 8 48 16C47 29 39 40 25 47C17 51 8 49 4 43C1 38 3 32 8 29C12 27 16 28 21 26C30 23 33 17 33 9C33 5 34 3 36 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: 0.52;
  transform: rotate(-5deg);
  pointer-events: none;
}
#commandResizeHandle svg { display: none; }
#homeCommandCard.is-resize-mode + #commandResizeHandle {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  animation: command-curve-handle-in 240ms var(--liquid-spring) both;
}
#homeCommandCard.is-handle-dragging + #commandResizeHandle { transition: none !important; }
#commandResizeHandle:hover::before,
#commandResizeHandle:focus-visible::before {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.88), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.64), rgba(216, 238, 250, 0.34) 46%, rgba(147, 194, 216, 0.26));
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 1))
    drop-shadow(0 0 8px rgba(235, 249, 255, 0.72))
    drop-shadow(0 8px 16px rgba(0, 0, 0, 0.26))
    drop-shadow(0 0 18px rgba(181, 226, 255, 0.38));
}
#commandResizeHandle:focus-visible { outline: 0; }
#commandResizeHandle:focus-visible::after { opacity: 1; }
#commandResizeHandle:active::before,
#commandResizeHandle:active::after { transform: rotate(-5deg) scale(0.94); }

@keyframes command-curve-handle-in {
  from { opacity: 0; transform: translate3d(8px, 8px, 0) scale(0.72) rotate(12deg); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 620px) {
  #homeCommandCard { grid-template-columns: 1fr; }
  #homeCommandCard[data-command-stage="identity"] {
    grid-template-columns: minmax(0, 1fr) var(--command-state-width);
  }
  #homeCommandCard[data-command-stage="identity"] .home-avatar { border-radius: 22px; }
  #homeCommandCard[data-command-stage="identity"] .home-avatar img { border-radius: 18px; }
  #homeCommandCard[data-command-stage="identity"] .home-plan-badge { max-width: 100%; }
  #homeCommandCard[data-command-stage="mini"] .home-state-box { column-gap: 7px; }
}

@media (max-width: 370px) {
  #homeCommandCard[data-command-stage="identity"] {
    grid-template-columns: minmax(0, 1fr) 72px;
  }
  #homeCommandCard[data-command-stage="identity"] .home-identity { gap: 9px; }
  #homeCommandCard[data-command-stage="identity"] .home-avatar,
  #homeCommandCard[data-command-stage="identity"] .home-avatar img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  #homeCommandCard,
  #homeCommandCard *,
  #commandResizeHandle,
  #commandResizeHandle::before,
  #commandResizeHandle::after { animation: none !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 480px) {
  .binance-payment-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .binance-payment-card b {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .payment-row {
    align-items: flex-start;
  }
}

/* Nexora Login Admin Contact v3.4.4 */
.auth-admin-contact {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(164, 184, 213, 0.13);
}

.auth-admin-contact > p {
  margin: 0;
  color: #8e9caf;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.auth-admin-contact > p strong {
  color: #dce6f3;
  font-weight: 750;
}

.auth-admin-link {
  justify-self: center;
  width: min(100%, 212px);
  min-height: 46px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 7px;
  padding: 6px 8px 6px 7px;
  border: 1px solid rgba(75, 197, 238, 0.24);
  border-radius: 15px;
  color: #eff9ff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(27, 150, 206, 0.15), rgba(70, 80, 169, 0.1));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09), 0 12px 28px rgba(0, 0, 0, 0.13);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  cursor: pointer;
  touch-action: manipulation;
}

.auth-admin-link:hover {
  border-color: rgba(81, 215, 255, 0.48);
  background: linear-gradient(135deg, rgba(30, 171, 228, 0.23), rgba(84, 91, 199, 0.15));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.13), 0 15px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.auth-admin-link:active { transform: translateY(0); }

.auth-admin-link:focus-visible {
  outline: 3px solid rgba(76, 222, 255, 0.34);
  outline-offset: 3px;
}

.auth-admin-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(145deg, #32c7ff, #5975ff);
  box-shadow: 0 8px 20px rgba(39, 174, 236, 0.25), inset 0 1px rgba(255, 255, 255, 0.3);
}

.auth-admin-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  stroke: none;
}

.auth-admin-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.auth-admin-copy small {
  color: #85a5bf;
  font-size: 0.54rem;
  font-weight: 780;
  letter-spacing: 0.08em;
}

.auth-admin-copy strong {
  overflow: hidden;
  color: #f5fbff;
  font-size: 0.7rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-admin-arrow {
  width: 14px;
  height: 14px;
  color: #8edfff;
  fill: none;
  stroke: currentColor;
}

@media (max-width: 620px) {
  .auth-admin-contact { margin-top: 18px; padding-top: 16px; }
  .auth-admin-link { width: min(100%, 210px); min-height: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-admin-link { transition-duration: 0.01ms; }
}

/* Nexora Binance on-demand verification v3.5.0 */
.binance-verify-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  margin-bottom: 12px;
  padding: 17px;
  border: 1px solid rgba(245, 190, 49, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0, rgba(245, 158, 11, 0.18), transparent 42%),
    linear-gradient(145deg, rgba(31, 26, 52, 0.96), rgba(9, 17, 34, 0.98));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 16px 34px rgba(0, 0, 0, 0.22);
}
.binance-verify-brand { display: flex; align-items: center; gap: 12px; }
.binance-verify-brand img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: cover; border-radius: 15px; box-shadow: 0 10px 24px rgba(240, 185, 11, 0.16); }
.binance-verify-brand > div { min-width: 0; display: grid; gap: 2px; }
.binance-verify-brand strong { color: #fff; font-size: 1rem; }
.binance-verify-brand small { color: #aab7ca; font-size: 0.69rem; }
.payment-security-chip { width: fit-content; display: inline-flex; align-items: center; gap: 5px; color: #a7f3d0; font-size: 0.55rem; font-weight: 850; letter-spacing: 0.1em; }
.payment-security-chip svg { width: 12px; height: 12px; }
.binance-verify-hero > b { width: fit-content; padding: 7px 10px; border: 1px solid rgba(251, 191, 36, 0.25); border-radius: 999px; background: rgba(245, 158, 11, 0.1); color: #fde68a; font-size: 0.68rem; }
.binance-verify-hero > p { margin: 0; color: #d9e3f0; font-size: 0.78rem; font-weight: 650; line-height: 1.55; }

.payment-steps { display: grid; gap: 7px; margin: 0 0 13px; padding: 0; list-style: none; }
.payment-steps li { min-height: 53px; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 1px solid rgba(178, 196, 224, 0.13); border-radius: 13px; background: rgba(7, 13, 27, 0.62); }
.payment-steps li > span { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid rgba(245, 190, 49, 0.27); border-radius: 9px; background: rgba(245, 158, 11, 0.1); color: #fde68a; font-size: 0.68rem; font-weight: 900; }
.payment-steps li > div { min-width: 0; }
.payment-steps strong, .payment-steps small { display: block; }
.payment-steps strong { color: #edf3fb; font-size: 0.73rem; }
.payment-steps small { margin-top: 2px; color: #8fa0b8; font-size: 0.63rem; line-height: 1.4; }
.payment-order-form { padding: 14px; border: 1px solid rgba(159, 177, 211, 0.16); border-radius: 15px; background: rgba(8, 15, 31, 0.66); }
.payment-order-form .field-group input,
.payment-active-order .field-group input { min-height: 48px; font-size: 1rem; }
.payment-order-form .button,
.payment-active-order .button { min-height: 48px; }
.payment-order-form .button svg,
.payment-active-order .button svg { width: 17px; height: 17px; }

.payment-active-order { position: relative; display: grid; gap: 12px; padding: 15px; border: 1px solid rgba(80, 203, 238, 0.28); border-radius: 17px; background: linear-gradient(150deg, rgba(12, 35, 55, 0.82), rgba(11, 16, 35, 0.96)); box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 16px 34px rgba(0, 0, 0, 0.2); animation: payment-order-in 240ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.payment-active-order > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.payment-active-order h3 { margin: 4px 0 0; color: #fff; font-size: 0.9rem; }
.payment-live-dot { display: inline-flex; align-items: center; gap: 6px; color: #9df5df; font-size: 0.56rem; font-weight: 850; letter-spacing: 0.11em; }
.payment-live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1), 0 0 13px rgba(45, 212, 191, 0.75); }
#paymentOrderTimer { min-width: 70px; min-height: 34px; display: grid; place-items: center; padding: 0 9px; border: 1px solid rgba(45, 212, 191, 0.23); border-radius: 10px; background: rgba(45, 212, 191, 0.08); color: #99f6e4; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; font-weight: 850; font-variant-numeric: tabular-nums; }
#paymentOrderTimer.is-expiring { border-color: rgba(251, 191, 36, 0.32); background: rgba(245, 158, 11, 0.1); color: #fde68a; }
#paymentOrderTimer.is-expired { border-color: rgba(251, 113, 133, 0.3); background: rgba(225, 29, 72, 0.09); color: #fda4af; }
.payment-order-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.payment-order-summary > div { min-width: 0; padding: 11px; border: 1px solid rgba(167, 187, 217, 0.15); border-radius: 12px; background: rgba(3, 9, 22, 0.46); }
.payment-order-summary small, .payment-order-summary strong { display: block; }
.payment-order-summary small { color: #8fa0b8; font-size: 0.6rem; }
.payment-order-summary strong { margin-top: 4px; overflow-wrap: anywhere; color: #f6f9fd; font-size: 0.77rem; font-variant-numeric: tabular-nums; }
.payment-receiver { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 9px 9px 12px; border: 1px solid rgba(245, 190, 49, 0.24); border-radius: 13px; background: rgba(245, 158, 11, 0.075); }
.payment-receiver small, .payment-receiver strong { display: block; }
.payment-receiver small { color: #bcae80; font-size: 0.55rem; font-weight: 800; letter-spacing: 0.11em; }
.payment-receiver strong { margin-top: 3px; color: #fff3bd; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88rem; letter-spacing: 0.04em; }
.payment-copy-button { min-width: 76px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; border: 1px solid rgba(251, 191, 36, 0.28); border-radius: 11px; background: rgba(245, 158, 11, 0.1); color: #fde68a; font-size: 0.68rem; font-weight: 800; cursor: pointer; transition: background 180ms ease, border-color 180ms ease; }
.payment-copy-button:hover { border-color: rgba(251, 191, 36, 0.5); background: rgba(245, 158, 11, 0.17); }
.payment-copy-button:focus-visible { outline: 3px solid rgba(245, 190, 49, 0.28); outline-offset: 2px; }
.payment-copy-button svg { width: 15px; height: 15px; }
.payment-actions-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.payment-cancel-button { padding-inline: 14px; border: 1px solid rgba(251, 113, 133, 0.3); background: rgba(225, 29, 72, 0.08); color: #fecdd3; }
.payment-cancel-button:hover:not(:disabled) { border-color: rgba(251, 113, 133, 0.5); background: rgba(225, 29, 72, 0.15); }
.payment-api-checks { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid rgba(45, 212, 191, 0.16); border-radius: 11px; background: rgba(45, 212, 191, 0.055); color: #a9c9c2; font-size: 0.62rem; line-height: 1.48; }
.payment-api-checks svg { width: 15px; height: 15px; flex: 0 0 auto; color: #5eead4; }
.payment-message { margin-top: 11px; padding-inline: 4px; line-height: 1.45; }
.payment-message:empty { display: none; }
.payment-status.is-paid, .payment-status.is-verifying { color: #99f6e4; }
.payment-status.is-cancelled, .payment-status.is-expired { color: #aab7ca; }
.payment-status.is-awaiting_payment { color: #fde68a; }

@keyframes payment-order-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 390px) {
  .payment-actions-grid { grid-template-columns: 1fr; }
  .payment-actions-grid .button { width: 100%; }
  .payment-order-summary { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .payment-active-order { animation: none; }
}
