/* CardVault — modern digital-vault skin */
:root {
  --bg: #080b13;
  --surface: #111725;
  --surface-2: #171f30;
  --surface-3: #1d2639;
  --border: rgba(159, 174, 207, 0.16);
  --border-strong: rgba(159, 174, 207, 0.28);
  --text: #f5f7fb;
  --muted: #95a0b7;
  --accent: #5977f8;
  --accent-hover: #6f8aff;
  --accent-2: #69e6b1;
  --link: #8da2ff;
  --danger: #ff718a;
  --warning: #ffc86b;
  --radius: 18px;
  --radius-sm: 11px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

html { scroll-behavior: smooth; }

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

body {
  font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 15% 0%, rgba(89, 119, 248, 0.1), transparent 26rem),
    var(--bg);
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.5;
  overflow-x: hidden;
}

body::selection { background: rgba(89, 119, 248, 0.42); color: #fff; }

.container { width: min(1240px, calc(100% - 48px)); }
main { padding: 0 0 64px; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }

/* Header */
.site-header {
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 19, 0.76);
  border-bottom: 1px solid rgba(159, 174, 207, 0.11);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.header-inner {
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  min-height: 76px;
  height: auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: block;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(236, 177, 54, 0.58);
  border-radius: 50%;
  background: #eee3ca;
  box-shadow: 0 8px 26px rgba(0,0,0,0.32), 0 0 0 3px rgba(236,177,54,0.07);
  overflow: hidden;
}

.logo-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }

.logo-copy { display: grid; line-height: 1.05; }
.logo-copy small {
  margin-top: 4px;
  color: #6f7c95;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.main-nav {
  gap: 5px;
  padding: 4px;
  justify-self: center;
  border: 1px solid rgba(159, 174, 207, 0.1);
  border-radius: 99px;
  background: rgba(17, 23, 37, 0.52);
}

.nav-link {
  padding: 8px 14px;
  border-radius: 99px;
  color: #8792a8;
  font-size: 0.78rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.nav-link:hover,
.nav-link.active { color: #fff; background: rgba(255, 255, 255, 0.07); }

.header-actions { gap: 7px; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 40px;
  min-height: 38px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  color: #c9d2e5;
  font-family: inherit;
  font-size: 0.69rem;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.theme-toggle:hover { color: #fff; border-color: var(--border-strong); background: rgba(255,255,255,0.075); transform: translateY(-1px); }
.theme-icon { width: 17px; height: 17px; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html[data-theme="dark"] .theme-icon-moon,
html[data-theme="light"] .theme-icon-sun { display: none; }
.theme-toggle-text { white-space: nowrap; }
.lang-select,
select,
.sort-select {
  min-height: 38px;
  padding: 7px 30px 7px 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: rgba(17, 23, 37, 0.82);
  color: #c8d0e0;
  font-size: 0.75rem;
}

select:focus-visible,
input:focus-visible,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #8da2ff;
  outline-offset: 3px;
}

/* Buttons */
.btn {
  min-height: 42px;
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0) scale(0.985); }
.btn-primary {
  border-color: rgba(125, 149, 255, 0.75);
  background: linear-gradient(135deg, #6681fb, #4c68e3);
  color: #fff;
  box-shadow: 0 12px 30px rgba(72, 97, 215, 0.27), inset 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  border-color: #9badff;
  background: linear-gradient(135deg, #7890ff, #5873ee);
  box-shadow: 0 15px 36px rgba(72, 97, 215, 0.38), inset 0 1px rgba(255, 255, 255, 0.24);
}

.btn-sm { min-height: 34px; padding: 6px 11px; font-size: 0.75rem; }

/* Landing */
#view-auth { min-height: calc(100vh - 76px); }

.auth-bg {
  position: absolute;
  inset: 76px 0 auto;
  height: min(820px, calc(100vh - 20px));
  background:
    linear-gradient(rgba(112, 133, 176, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 133, 176, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.auth-bg::before {
  inset: 0;
  background:
    radial-gradient(48rem 34rem at 71% 30%, rgba(87, 115, 246, 0.19), transparent 64%),
    radial-gradient(30rem 24rem at 7% 62%, rgba(50, 211, 171, 0.07), transparent 70%);
}

.auth-bg::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 18%;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(121, 145, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(121, 145, 255, 0.025), 0 0 0 160px rgba(121, 145, 255, 0.018);
}

.float-card { opacity: 0; }

.auth-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.72fr);
  gap: clamp(56px, 8vw, 128px);
  align-items: center;
  min-height: min(770px, calc(100vh - 76px));
  padding-top: 68px;
  padding-bottom: 72px;
}

.auth-intro { position: relative; max-width: 650px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  color: #9ba8c1;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69e6b1;
  box-shadow: 0 0 0 5px rgba(105, 230, 177, 0.1), 0 0 18px rgba(105, 230, 177, 0.72);
  animation: statusPulse 2.4s ease-in-out infinite;
}

.auth-intro h1 {
  max-width: 720px;
  margin: 0;
  color: #f7f9fd;
  font-family: "Avenir Next", "Segoe UI Variable Display", sans-serif;
  font-size: clamp(3.7rem, 7vw, 6.8rem);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.072em;
}

.auth-intro h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(159, 176, 255, 0.8);
  text-shadow: 0 0 44px rgba(91, 119, 248, 0.18);
}

.hero-copy {
  max-width: 540px;
  margin-top: 29px;
  color: #9aa6bd;
  font-size: clamp(1rem, 1.35vw, 1.17rem);
  line-height: 1.72;
}

.hero-proof {
  display: flex;
  width: fit-content;
  margin-top: 36px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hero-proof div {
  display: grid;
  min-width: 126px;
  padding: 15px 25px 15px 0;
}

.hero-proof div + div { padding-left: 25px; border-left: 1px solid var(--border); }
.hero-proof strong { color: #edf1fa; font-size: 1.07rem; font-weight: 650; letter-spacing: -0.02em; }
.hero-proof span { color: #6f7c94; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Signature holographic card */
.hero-card {
  position: absolute;
  right: -34px;
  bottom: -18px;
  width: 290px;
  aspect-ratio: 1.586;
  padding: 22px;
  border: 1px solid rgba(181, 193, 255, 0.24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 78% 14%, rgba(115, 236, 190, 0.22), transparent 28%),
    linear-gradient(132deg, #141b30 4%, #2c3f84 46%, #16244a 72%, #131827 100%);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42), 0 0 60px rgba(75, 103, 227, 0.12), inset 0 1px rgba(255, 255, 255, 0.16);
  color: #fff;
  overflow: hidden;
  transform: rotate(-7deg) translateZ(0);
  animation: cardDrift 7s ease-in-out infinite;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -100% -20%;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.16) 50%, transparent 58%);
  transform: translateX(-70%);
  animation: foilSweep 5.8s ease-in-out infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(118deg, transparent 0 16px, rgba(255, 255, 255, 0.018) 16px 17px);
}

.hero-card-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(rgba(255,255,255,0.5) 0.5px, transparent 0.5px);
  background-size: 7px 7px;
}

.hero-card-head,
.hero-card-foot { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; }
.hero-chip {
  position: relative;
  width: 40px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #e4d39e, #8b7b4b);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
}
.hero-chip::before,
.hero-chip::after { content: ""; position: absolute; background: rgba(50,42,21,0.28); }
.hero-chip::before { top: 0; bottom: 0; left: 50%; width: 1px; }
.hero-chip::after { left: 0; right: 0; top: 50%; height: 1px; }
.hero-wordmark { font-size: 0.64rem; font-weight: 750; letter-spacing: 0.16em; }
.hero-card-number { position: relative; z-index: 2; margin-top: 38px; font: 500 0.96rem/1 "SFMono-Regular", monospace; letter-spacing: 0.08em; }
.hero-card-foot { margin-top: 26px; font-size: 0.73rem; }
.hero-card-foot small { display: block; margin-bottom: 1px; color: rgba(255,255,255,0.48); font-size: 0.43rem; letter-spacing: 0.12em; }
.hero-card-orbit { display: flex; }
.hero-card-orbit i { width: 24px; height: 24px; border: 1px solid rgba(255,255,255,0.7); border-radius: 50%; }
.hero-card-orbit i + i { margin-left: -9px; }

.auth-wrap { display: block; min-height: 0; }

.auth-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-left: auto;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid rgba(159, 174, 207, 0.2);
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(24, 32, 49, 0.94), rgba(13, 18, 30, 0.94));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(127, 150, 255, 0.78), transparent);
}

.auth-card-head { display: flex; align-items: center; gap: 13px; }
.auth-lock {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(123, 147, 255, 0.26);
  border-radius: 14px;
  background: rgba(89, 119, 248, 0.1);
}
.auth-lock::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 15px;
  height: 14px;
  border: 1.5px solid #8ea4ff;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.auth-lock span { width: 21px; height: 17px; margin-top: 10px; border-radius: 5px; background: #738cff; }
.auth-eyebrow { display: block; color: #7f8ba2; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.auth-card h2 { margin: 2px 0 0; text-align: left; color: #f5f7fb; font-size: 1.42rem; font-weight: 650; letter-spacing: -0.035em; }
.auth-sub { margin: 14px 0 16px; text-align: left; color: #8793aa; font-size: 0.78rem; line-height: 1.5; }
.auth-card label { margin-bottom: 10px; color: #a9b3c7; font-size: 0.66rem; font-weight: 650; letter-spacing: 0.04em; }
.auth-card input {
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 13px;
  border: 1px solid rgba(159, 174, 207, 0.17);
  border-radius: 11px;
  background: rgba(6, 9, 16, 0.5);
  color: #f5f7fb;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.auth-card input::placeholder { color: #525e75; }
.auth-card input:focus { border-color: #728cff; background: rgba(7, 10, 18, 0.75); box-shadow: 0 0 0 4px rgba(89, 119, 248, 0.11); }
.auth-signup-fields { display: grid; }
.auth-signup-fields.hidden { display: none; }
.auth-captcha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(116, 143, 255, 0.22);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(89,119,248,0.12), rgba(27,38,66,0.3));
}
.auth-captcha-label { display: block; margin-bottom: 4px; color: #7f8ba2; font-size: 0.56rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.auth-captcha strong { display: block; color: #f4f7ff; font: 700 1.05rem/1.1 "SFMono-Regular", Consolas, monospace; letter-spacing: 0.08em; }
.auth-captcha-refresh {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(142,164,255,0.3);
  border-radius: 11px;
  background: rgba(10,15,28,0.45);
  color: #9db0ff;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.auth-captcha-refresh:hover { border-color: rgba(142,164,255,0.65); color: #fff; transform: rotate(18deg); }
.auth-captcha-refresh:focus-visible { outline: 2px solid #8ea4ff; outline-offset: 3px; }
.auth-captcha-refresh svg { width: 19px; height: 19px; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-card .btn-primary { min-height: 45px; margin-top: 2px; }
.auth-switch { margin-top: 12px; color: #7f8aa1; font-size: 0.75rem; }
.auth-switch a { color: #9bacff; font-weight: 650; text-decoration: none; }
.auth-switch a:hover { color: #fff; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0 10px; color: #5f6a7f; font-size: 0.53rem; letter-spacing: 0.1em; text-transform: uppercase; }
.auth-divider::before,
.auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.trust-badges { gap: 8px 13px; margin: 0; color: #7e8aa1; font-size: 0.61rem; }
.trust-badges li { display: inline-flex; align-items: center; gap: 6px; }
.trust-badges li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #69e6b1; box-shadow: 0 0 7px rgba(105, 230, 177, 0.7); }

/* Public benefits */
.why-choose {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100% - 48px));
  max-width: none;
  margin: 0 auto;
  padding: 90px 0 46px;
  border-top: 1px solid var(--border);
}

.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading > span { color: #6f7b91; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.17em; text-transform: uppercase; }
.why-choose h3 { margin: 0; text-align: right; color: #edf1fa; font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 590; letter-spacing: -0.045em; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.why-card {
  position: relative;
  min-height: 210px;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(20, 27, 42, 0.72), rgba(12, 17, 28, 0.75));
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.why-card::after { content: ""; position: absolute; inset: auto -25% -70% 35%; height: 170px; background: radial-gradient(circle, rgba(89,119,248,0.13), transparent 68%); }
.why-card:hover { transform: translateY(-4px); border-color: rgba(141, 162, 255, 0.34); background: linear-gradient(145deg, rgba(25, 34, 53, 0.92), rgba(12, 17, 28, 0.85)); }
.why-icon { display: grid; place-items: center; width: 39px; height: 39px; margin-bottom: 36px; border: 1px solid rgba(141, 162, 255, 0.22); border-radius: 11px; background: rgba(89, 119, 248, 0.08); color: #9cafFF; font-size: 1.05rem; }
.why-card h4 { margin-bottom: 9px; color: #eef2fa; font-size: 1rem; font-weight: 650; }
.why-card p { max-width: 33ch; color: #7f8aa1; font-size: 0.82rem; line-height: 1.64; }

/* Interior pages */
.view.container { padding-top: 52px; }
.page-head { margin: 0 0 34px; }
.page-head h2,
.catalog-head h2,
.wallet-title { color: #f4f6fb; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 600; letter-spacing: -0.045em; }
.page-head p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.steps-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.step-card,
.filter-panel,
.checkout-card,
.order-summary,
.success-card,
.card-item,
.detail-layout,
.faq-list,
.table-wrap {
  border-color: var(--border);
  background: linear-gradient(145deg, rgba(20, 27, 42, 0.92), rgba(13, 18, 29, 0.92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}
.step-card { min-height: 190px; padding: 25px; border-radius: 16px; }
.step-card h4 { max-width: 80%; margin-bottom: 12px; color: #eef1f8; font-size: 1rem; }
.step-card p { color: #8995aa; font-size: 0.83rem; line-height: 1.65; }
.step-num { top: 21px; right: 22px; color: rgba(141, 162, 255, 0.42); font: 500 1.2rem/1 "SFMono-Regular", monospace; }
.faq-list { border-radius: 17px; }
.faq-list details { border-color: var(--border); }
.faq-list summary { padding: 18px 21px; color: #dfe5f0; font-size: 0.9rem; }
.faq-list summary::after { color: #8096ff; }
.faq-list details p { max-width: 78ch; padding: 0 21px 20px; color: #8894aa; }

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(330px, 0.72fr);
  gap: 18px;
  align-items: start;
}
.support-section-label {
  display: block;
  margin: 0 0 10px 3px;
  color: #728099;
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.support-ticket-card {
  position: sticky;
  top: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(20, 27, 42, 0.96), rgba(11, 17, 29, 0.97));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
}
.support-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 25px; }
.support-desk-status,
.support-response-time { display: inline-flex; align-items: center; gap: 7px; color: #7f8ca3; font-size: 0.61rem; font-weight: 680; letter-spacing: 0.06em; text-transform: uppercase; }
.support-desk-status i { width: 6px; height: 6px; border-radius: 50%; background: #70e5b1; box-shadow: 0 0 10px rgba(112, 229, 177, 0.72); }
.support-response-time strong { color: #9cafFF; font: 700 0.82rem/1 "SFMono-Regular", monospace; letter-spacing: 0; }
.support-ticket-card > h3,
.support-success h3 { margin: 0; color: #f0f3fa; font-size: 1.28rem; font-weight: 640; letter-spacing: -0.035em; }
.support-ticket-card > p { margin: 9px 0 23px; color: #8491a8; font-size: 0.8rem; line-height: 1.6; }
.support-form label { display: block; margin-bottom: 9px; color: #a7b1c4; font-size: 0.68rem; font-weight: 680; }
.support-form textarea {
  display: block;
  width: 100%;
  min-height: 170px;
  resize: vertical;
  padding: 14px 15px;
  border: 1px solid rgba(159, 174, 207, 0.18);
  border-radius: 12px;
  background: rgba(5, 8, 15, 0.5);
  color: #edf1f8;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.58;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.support-form textarea::placeholder { color: #536077; }
.support-form textarea:focus { border-color: #728cff; outline: none; background: rgba(5, 8, 15, 0.76); box-shadow: 0 0 0 4px rgba(89, 119, 248, 0.11); }
.support-form-meta { display: flex; justify-content: space-between; gap: 12px; margin: 8px 2px 17px; color: #66748c; font: 600 0.57rem/1.2 "SFMono-Regular", monospace; }
.support-form-error { margin: -5px 0 13px; color: #ff9d9d; font-size: 0.72rem; }
.support-form .btn { min-height: 46px; }
.support-success { padding: 8px 0 1px; text-align: center; animation: paymentReveal 220ms ease both; }
.support-success-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 18px; border: 1px solid rgba(112,229,177,0.24); border-radius: 16px; background: rgba(112,229,177,0.09); color: #70e5b1; font-size: 1.3rem; box-shadow: 0 12px 30px rgba(17,126,87,0.12); }
.support-success p { margin: 9px 0 18px; color: #8b98ad; font-size: 0.82rem; }
.support-success code { display: inline-block; margin-bottom: 24px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(5,8,15,0.44); color: #9cafFF; font-size: 0.68rem; }

@media (max-width: 900px) {
  .support-layout { grid-template-columns: 1fr; }
  .support-ticket-card { position: static; }
}

@media (max-width: 600px) {
  .support-ticket-card { padding: 20px; }
  .support-ticket-head { margin-bottom: 21px; }
  .support-form textarea { min-height: 150px; }
}

/* Catalog */
.market-header {
  position: relative;
  width: 100%;
  margin-left: 0;
  margin-bottom: 56px;
  border-bottom: 1px solid rgba(159, 174, 207, 0.18);
  background: #071327;
  box-shadow: 0 18px 56px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.market-header::before {
  content: none;
}

.market-banner {
  position: relative;
  height: clamp(270px, 25vw, 480px);
  overflow: hidden;
  isolation: isolate;
  background: #061327;
}
.market-banner > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.market-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5,12,29,0.94) 0%, rgba(5,12,29,0.54) 24%, rgba(5,12,29,0.05) 45%, rgba(5,12,29,0.08) 58%, rgba(5,12,29,0.75) 82%, rgba(5,12,29,0.95) 100%),
    linear-gradient(0deg, rgba(5,10,24,0.7), transparent 46%);
  pointer-events: none;
}

.market-header-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  height: 100%;
  min-height: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}

.account-welcome h1 {
  margin: 5px 0 14px;
  color: #fff;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 610;
  letter-spacing: -0.04em;
}
.account-welcome h1 span { color: #dfe5ff; }
.account-eyebrow {
  color: rgba(238, 241, 255, 0.64);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.account-facts { display: grid; gap: 5px; }
.account-facts div { display: flex; align-items: baseline; gap: 9px; }
.account-facts dt { color: rgba(235, 239, 255, 0.58); font-size: 0.73rem; }
.account-facts dd { color: #fff; font: 590 0.76rem/1.2 "SFMono-Regular", monospace; }

.vault-emblem { display: grid; place-items: center; }
.vault-brand-logo {
  display: block;
  width: 96px;
  height: 96px;
  border: 2px solid rgba(241, 188, 65, 0.72);
  border-radius: 50%;
  object-fit: cover;
  background: #eee3ca;
  box-shadow: 0 22px 52px rgba(0,0,0,0.32), 0 0 0 7px rgba(241,188,65,0.06);
}

.session-panel { justify-self: end; text-align: right; }
.session-time { display: flex; align-items: baseline; justify-content: flex-end; gap: 10px; }
.session-time span { color: rgba(241,243,255,0.68); font-size: 0.72rem; }
.session-time strong { color: #fff; font: 600 1rem/1 "SFMono-Regular", monospace; letter-spacing: 0.02em; }
.session-panel p { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin: 10px 0 17px; color: rgba(242,245,255,0.62); font-size: 0.7rem; }
.session-panel p i { width: 6px; height: 6px; border-radius: 50%; background: #79efba; box-shadow: 0 0 10px rgba(121,239,186,0.82); }
.market-signout {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 9px;
  background: rgba(9, 13, 35, 0.22);
  color: #fff;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}
.market-signout:hover { background: rgba(9,13,35,0.38); transform: translateY(-1px); }
.session-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.account-theme-toggle { min-height: 34px; border-color: rgba(255,255,255,0.18); background: rgba(9,13,35,0.24); color: #fff; }

.market-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  min-height: 56px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.13);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(8, 11, 29, 0.54);
  overflow: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  backdrop-filter: blur(18px);
}
.market-tabs::-webkit-scrollbar { display: none; }
.market-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: rgba(244,246,255,0.75);
  font-size: 0.78rem;
  font-weight: 630;
  text-decoration: none;
  scroll-snap-align: start;
  transition: color 150ms ease, background 150ms ease;
}
.market-tabs a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.market-tabs a.active { color: #fff; background: linear-gradient(135deg, rgba(102,129,251,0.9), rgba(75,101,215,0.92)); box-shadow: inset 0 1px rgba(255,255,255,0.2); }
.market-tabs .tab-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  color: rgba(218,225,244,0.68);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.market-tabs .tab-icon svg { width: 15px; height: 15px; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.market-tabs a:hover .tab-icon { color: #fff; border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.07); transform: translateY(-1px); }
.market-tabs a.active .tab-icon { color: #fff; border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.12); box-shadow: inset 0 1px rgba(255,255,255,0.11), 0 4px 12px rgba(23,36,96,0.22); }
.market-tabs-status { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; padding: 0 20px; color: rgba(239,243,255,0.6); font-size: 0.66rem; }
.market-tabs-status i { width: 6px; height: 6px; border-radius: 50%; background: #75ebb8; box-shadow: 0 0 9px rgba(117,235,184,0.75); }

body.account-session .site-header,
body.account-session #noticeBar { display: none; }
body.account-session .view.active.container { padding-top: 0; }
#view-store.view.container { padding-top: 0; }

.store-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.65fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: end;
  min-height: 430px;
  margin: -52px 0 54px;
  padding: 86px clamp(30px, 6vw, 74px) 54px;
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background:
    linear-gradient(rgba(125, 144, 187, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 144, 187, 0.035) 1px, transparent 1px),
    radial-gradient(44rem 25rem at 6% 28%, rgba(89, 119, 248, 0.2), transparent 65%),
    linear-gradient(145deg, rgba(20, 27, 44, 0.96), rgba(9, 13, 23, 0.97));
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2), inset 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 63%, rgba(105, 230, 177, 0.045));
  pointer-events: none;
}

.store-hero-copy { position: relative; z-index: 1; }
.store-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 21px;
  color: #8995ab;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.store-kicker span,
.catalog-sync i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #69e6b1;
  box-shadow: 0 0 0 5px rgba(105, 230, 177, 0.08), 0 0 14px rgba(105, 230, 177, 0.6);
}
.store-hero h1 {
  margin: 0;
  color: #f5f7fb;
  font-size: clamp(3.2rem, 6vw, 5.6rem);
  font-weight: 620;
  line-height: 0.94;
  letter-spacing: -0.068em;
}
.store-hero h1 em {
  color: #91a5ff;
  font-style: normal;
  font-weight: 500;
}
.store-hero-copy > p { max-width: 590px; margin-top: 24px; color: #8d99af; font-size: 0.95rem; line-height: 1.7; }
.store-pills { display: flex; gap: 8px; margin-top: 28px; }
.store-pills span {
  padding: 6px 10px;
  border: 1px solid rgba(141, 162, 255, 0.18);
  border-radius: 8px;
  background: rgba(89, 119, 248, 0.06);
  color: #8293db;
  font: 650 0.58rem/1 "SFMono-Regular", monospace;
  letter-spacing: 0.08em;
}

.desk-terminal {
  position: relative;
  z-index: 1;
  padding: 20px;
  border: 1px solid rgba(153, 171, 255, 0.2);
  border-radius: 17px;
  background: rgba(5, 8, 15, 0.66);
  box-shadow: 0 22px 50px rgba(0,0,0,0.28), inset 0 1px rgba(255,255,255,0.035);
  backdrop-filter: blur(12px);
}
.terminal-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--border); color: #718099; font: 650 0.59rem/1 "SFMono-Regular", monospace; letter-spacing: 0.11em; }
.terminal-head i { width: 7px; height: 7px; border-radius: 50%; background: #6c86ff; box-shadow: 0 0 14px rgba(108,134,255,0.78); }
.terminal-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(159,174,207,0.1); font-size: 0.72rem; }
.terminal-row span { color: #66738a; }
.terminal-row strong { color: #bdc7d8; font-weight: 600; }
.terminal-row strong.online { color: #70dfb1; }
.terminal-wave { display: flex; align-items: end; gap: 5px; height: 58px; margin-top: 17px; }
.terminal-wave i {
  flex: 1;
  height: var(--h);
  min-width: 4px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to top, rgba(89,119,248,0.12), rgba(112,139,255,0.8));
  transform-origin: bottom;
  animation: ledgerPulse 3.2s ease-in-out infinite alternate;
}
.terminal-wave i:nth-child(2n) { animation-delay: -1.1s; }
.terminal-wave i:nth-child(3n) { animation-delay: -2.2s; }

.catalog-head { margin-bottom: 24px; padding: 0 2px; }
.catalog-head > div { display: grid; gap: 4px; }
.catalog-eyebrow { color: #6d7a91; font-size: 0.6rem; font-weight: 750; letter-spacing: 0.15em; text-transform: uppercase; }
.catalog-sync { display: inline-flex; align-items: center; gap: 9px; color: #77849a; font-size: 0.69rem; }
.catalog-sync i { width: 5px; height: 5px; box-shadow: 0 0 9px rgba(105,230,177,0.62); }
.filter-panel { padding: 17px; margin-bottom: 16px; border-radius: 16px; }
.filter-grid { gap: 11px; }
.filter-box { gap: 6px; color: #718099; font-size: 0.61rem; letter-spacing: 0.11em; }
.filter-box input,
.filter-box select,
.search-box {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(5, 8, 15, 0.45);
  color: #dce2ed;
}
.filter-box input:focus,
.filter-box select:focus { border-color: #728cff; outline: none; }
.stats-bar { margin: 16px 2px 9px; color: #758198; }
.table-wrap { overflow: visible; border-radius: 16px; }
.bin-table { font-size: 0.82rem; }
.bin-table thead th {
  top: 0;
  z-index: 4;
  padding: 12px 15px;
  border-color: var(--border);
  background: #141b2a;
  color: #69768e;
  box-shadow: 0 1px 0 var(--border), 0 8px 18px rgba(5, 8, 15, 0.16);
}
.bin-row { border-color: var(--border); transition: background 140ms ease; }
.bin-row:hover { background: rgba(89, 119, 248, 0.055); }
.bin-row td { padding: 13px 15px; }
.brand-chip { border-color: var(--border); background: rgba(255, 255, 255, 0.05); }
.brand-chip.visa { border-color: rgba(109, 137, 255, 0.28); background: rgba(89, 119, 248, 0.11); color: #9aacff; }
.brand-chip.mc { border-color: rgba(255, 169, 100, 0.24); background: rgba(255, 154, 74, 0.08); color: #ffb377; }
.bank-line,
.price-sub,
.c-stock { color: #6f7b92; }
.c-balance { color: #74e9b7; }
.c-stock.low,
.stock-badge.low { color: var(--warning); }
.c-stock.out,
.stock-badge.out { color: var(--danger); }
.qty-stepper { border-color: var(--border); background: #0d131f; }
.qty-stepper button { background: #182132; color: #dfe5ef; }
.qty-stepper span { background: #0f1521; }

/* Cards, detail and checkout */
.card-item { border-radius: 17px; padding: 16px; }
.card-visual,
.mini-card {
  border: 1px solid rgba(174, 189, 255, 0.17);
  background:
    radial-gradient(circle at 80% 12%, rgba(105, 230, 177, 0.17), transparent 24%),
    linear-gradient(135deg, #18213a, #31478f 52%, #131a2d);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255,255,255,0.13);
}
.card-chip { background: linear-gradient(135deg, #ead9a2, #9f8950); }
.card-meta { color: #aeb8ce; }
.detail-layout { padding: 25px; border-radius: 18px; }
.detail-info h2 { color: #f0f3f9; font-weight: 610; letter-spacing: -0.025em; }
.detail-balance,
.feature-list { color: #8c98ae; }
.badge { border-color: rgba(105, 230, 177, 0.18); background: rgba(105, 230, 177, 0.07); color: #75e5b7; }
.tag { border-color: rgba(111, 139, 255, 0.22); background: rgba(89, 119, 248, 0.1); color: #9bacff; }
.checkout-card,
.order-summary { padding: 25px; border-radius: 17px; }
.checkout-card h2,
.checkout-card h3,
.order-summary h3 { color: #f0f3f9; }
.coin-btn { border-color: var(--border); background: rgba(255,255,255,0.035); color: #8793a9; }
.coin-btn.active { border-color: #7189f5; background: rgba(89,119,248,0.14); color: #dfe6ff; }
.address-row code,
.reveal-card { border-color: var(--border); background: rgba(5,8,15,0.48); color: #dce3ef; }
.warning { color: var(--warning); }
.pay-address-label { margin: 18px 0 7px; color: #7e8ba2; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.sum-row,
.paid-to { color: #7e8ba2; }
.sum-row.total,
.reveal-row { border-color: var(--border); }
.success-card { border-radius: 20px; }
.success-icon { background: rgba(105,230,177,0.12); color: #69e6b1; }

.notice { border-color: rgba(255, 200, 107, 0.24); background: rgba(69, 47, 15, 0.92); color: #ffd48d; }
.site-footer { padding: 22px 0; border-color: var(--border); background: rgba(8, 11, 19, 0.92); color: #657188; }
.toast { border: 1px solid var(--border-strong); border-radius: 12px; background: #1b2435; color: #fff; box-shadow: var(--shadow); }

/* Add funds */
.funds-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 32px;
}
.funds-head > div { max-width: 680px; }
.funds-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--accent-2);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.funds-head h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.15rem, 4vw, 3.45rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.055em;
}
.funds-head p { margin-top: 14px; color: #8793aa; font-size: 0.9rem; line-height: 1.65; }
.funds-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.72fr); gap: 22px; align-items: start; }
.funds-panel,
.funds-summary {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(17, 23, 37, 0.82);
  box-shadow: 0 24px 70px rgba(0,0,0,0.22), inset 0 1px rgba(255,255,255,0.035);
}
.funds-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
}
.funds-panel::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -110px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(89, 119, 248, 0.13);
  filter: blur(26px);
  pointer-events: none;
}
.funds-panel > * { position: relative; z-index: 1; }
.funds-panel-head { display: flex; align-items: center; gap: 13px; padding-bottom: 25px; border-bottom: 1px solid var(--border); }
.bitcoin-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 200, 107, 0.27);
  border-radius: 14px;
  background: rgba(255, 200, 107, 0.08);
  color: var(--warning);
  font: 700 1.25rem/1 "SFMono-Regular", monospace;
}
.funds-panel-head > div:nth-child(2) { display: grid; gap: 1px; }
.funds-panel-head > div:nth-child(2) span { color: #68758c; font-size: 0.58rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.funds-panel-head > div:nth-child(2) strong { color: #eaf0fb; font-size: 0.92rem; }
.network-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #70dfb1; font-size: 0.65rem; font-weight: 650; }
.network-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px rgba(105,230,177,0.7); }
.fund-amount-label { display: flex; justify-content: space-between; margin: 27px 2px 9px; color: #d5dbe7; font-size: 0.74rem; font-weight: 650; }
.fund-amount-label span { color: #647189; font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; }
.fund-amount-field {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 78px;
  padding: 12px 17px;
  border: 1px solid rgba(141, 162, 255, 0.26);
  border-radius: 16px;
  background: rgba(5, 8, 15, 0.5);
  box-shadow: inset 0 0 25px rgba(89,119,248,0.035);
}
.fund-amount-field > span { color: #6f7f9c; font-size: 1.45rem; }
.fund-amount-field input {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f6f8fc;
  font: 620 clamp(1.7rem, 5vw, 2.35rem)/1 "SFMono-Regular", monospace;
}
.fund-amount-field small { color: #8494b2; font: 0.7rem/1.3 "SFMono-Regular", monospace; white-space: nowrap; }
.fund-presets { display: flex; gap: 8px; margin: 11px 0 27px; }
.fund-presets button {
  min-width: 76px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255,255,255,0.025);
  color: #7e8ba3;
  font: 650 0.7rem/1 "SFMono-Regular", monospace;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}
.fund-presets button:hover,
.fund-presets button.active { border-color: rgba(141,162,255,0.48); background: rgba(89,119,248,0.13); color: #dfe5ff; }
.fund-amount-field:has(input[aria-invalid="true"]) { border-color: rgba(255,113,138,0.62); box-shadow: 0 0 0 3px rgba(255,113,138,0.08); }
.fund-continue { min-height: 50px; }
.fund-amount-error { margin: 9px 2px 0; color: var(--danger); font-size: 0.69rem; }
.fund-payment-step { margin-top: 27px; padding-top: 27px; border-top: 1px solid var(--border); animation: paymentReveal 260ms ease both; }
.fund-payment-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  padding: 17px 20px;
  border: 1px solid rgba(105,230,177,0.18);
  border-radius: 15px;
  background: rgba(105,230,177,0.045);
}
.fund-payment-summary > div { display: grid; gap: 2px; }
.fund-payment-summary > div:last-child { text-align: right; }
.fund-payment-summary span { color: #718178; font-size: 0.57rem; font-weight: 750; letter-spacing: 0.09em; text-transform: uppercase; }
.fund-payment-summary strong { color: #e8f4ef; font: 650 1.08rem/1.25 "SFMono-Regular", monospace; }
.fund-payment-summary small { color: #71847b; font-size: 0.61rem; }
.fund-payment-summary > div:last-child strong { color: #81e9bc; }
.fund-payment-summary > i { color: #6da98f; font-style: normal; }
.fund-address-card { padding: 20px; border: 1px solid var(--border); border-radius: 17px; background: rgba(7, 11, 19, 0.62); }
.fund-address-title { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.fund-address-title > div { display: grid; gap: 3px; }
.fund-address-title span { color: #e7ebf4; font-size: 0.76rem; font-weight: 650; }
.fund-address-title small { color: #707d94; font-size: 0.64rem; }
.fund-address-title .address-network { padding: 5px 8px; border: 1px solid rgba(255,200,107,0.2); border-radius: 7px; background: rgba(255,200,107,0.07); color: var(--warning); font: 700 0.56rem/1 "SFMono-Regular", monospace; }
.fund-address-card code { display: block; margin: 17px 0 12px; padding: 14px; border: 1px solid rgba(141,162,255,0.15); border-radius: 11px; background: rgba(89,119,248,0.055); color: #b7c3fa; font-size: clamp(0.68rem, 2vw, 0.82rem); line-height: 1.45; text-align: center; word-break: break-all; }
.fund-address-card .btn { min-height: 46px; }
.fund-waiting { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 14px 16px; border: 1px solid rgba(105,230,177,0.17); border-radius: 13px; background: rgba(105,230,177,0.045); }
.fund-waiting > div { display: grid; gap: 2px; }
.fund-waiting strong { color: #dce8e3; font-size: 0.75rem; }
.fund-waiting small { color: #71827d; font-size: 0.64rem; line-height: 1.45; }
.funds-summary { position: sticky; top: 98px; padding: 27px; }
.funds-summary-label { color: #718097; font-size: 0.59rem; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.funds-summary > strong { display: block; margin-top: 7px; color: #f3f6fb; font: 620 2.35rem/1 "SFMono-Regular", monospace; letter-spacing: -0.06em; }
.funds-summary > p { margin-top: 10px; color: #758198; font-size: 0.72rem; line-height: 1.55; }
.welcome-fund { margin: 24px -8px 20px; padding: 19px; border: 1px solid rgba(105,230,177,0.2); border-radius: 15px; background: rgba(105,230,177,0.065); }
.welcome-fund > span { color: #68cba2; font-size: 0.57rem; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; }
.welcome-fund > strong { display: block; margin-top: 4px; color: #8aebc1; font-size: 1.08rem; letter-spacing: -0.025em; }
.welcome-fund > p { margin-top: 6px; color: #718b81; font-size: 0.67rem; line-height: 1.5; }
.welcome-fund.fund-complete { border-color: rgba(141,162,255,0.21); background: rgba(89,119,248,0.07); }
.welcome-fund.fund-complete > span,
.welcome-fund.fund-complete > strong { color: #aab8f7; }
.fund-details { margin: 0; }
.fund-details > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--border); }
.fund-details dt { color: #6f7c93; font-size: 0.66rem; }
.fund-details dd { margin: 0; color: #cfd6e3; font-size: 0.68rem; font-weight: 650; }

/* First-purchase deposit gate */
.modal-open { overflow: hidden; }
.deposit-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.deposit-dialog {
  position: relative;
  width: min(100%, 620px);
  max-height: min(900px, calc(100vh - 32px));
  overflow-y: auto;
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid rgba(141, 162, 255, 0.3);
  border-radius: 24px;
  background:
    radial-gradient(30rem 17rem at 85% 0%, rgba(89, 119, 248, 0.18), transparent 64%),
    linear-gradient(150deg, #161e30, #0d121e 72%);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), inset 0 1px rgba(255,255,255,0.06);
}
.deposit-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: #a8b2c7;
  font-size: 1.2rem;
  cursor: pointer;
}
.deposit-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  border: 1px solid rgba(105, 230, 177, 0.25);
  border-radius: 18px;
  background: rgba(105, 230, 177, 0.09);
  color: #70e7b5;
  box-shadow: inset 0 0 22px rgba(105,230,177,0.07), 0 12px 28px rgba(0,0,0,0.18);
}
.deposit-mark span { font: 700 1rem/1 "SFMono-Regular", monospace; }
.deposit-eyebrow { color: #79869f; font-size: 0.62rem; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; }
.deposit-dialog h2 { margin: 7px 44px 12px 0; color: #f5f7fb; font-size: clamp(1.75rem, 5vw, 2.5rem); font-weight: 620; line-height: 1.05; letter-spacing: -0.05em; }
.deposit-dialog > p { color: #8e9aaf; font-size: 0.88rem; line-height: 1.65; }
.deposit-math {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.25fr;
  gap: 10px;
  align-items: center;
  margin: 27px 0;
}
.deposit-math > div { display: grid; gap: 2px; min-height: 73px; padding: 13px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,0.025); }
.deposit-math span { color: #6f7c93; font-size: 0.57rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.deposit-math strong { align-self: end; color: #e9edf6; font-size: 1.12rem; }
.deposit-math > i { color: #61708b; font-style: normal; }
.deposit-math .deposit-total { border-color: rgba(105,230,177,0.24); background: rgba(105,230,177,0.07); }
.deposit-math .deposit-total strong { color: #70e7b5; }
.deposit-address-block { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 17px; border: 1px solid var(--border); border-radius: 15px; background: rgba(5,8,15,0.45); }
.deposit-address-block > div { display: grid; }
.deposit-address-block > div span { color: #d9dfeb; font-size: 0.75rem; font-weight: 650; }
.deposit-address-block > div small { color: #69768e; font-size: 0.63rem; }
.deposit-address-block code { grid-column: 1 / -1; padding: 11px 12px; border: 1px solid rgba(141,162,255,0.14); border-radius: 10px; background: rgba(89,119,248,0.06); color: #aab8f6; font-size: 0.78rem; word-break: break-all; }
.deposit-address-block .btn { grid-column: 2; grid-row: 1; }
.deposit-selected { min-height: 20px; margin: 16px 2px; color: #7f8ca3; font-size: 0.75rem; }
.deposit-selected strong { color: #f0f3f9; }
.deposit-awaiting {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 17px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 200, 107, 0.2);
  border-radius: 13px;
  background: rgba(255, 200, 107, 0.055);
}
.deposit-awaiting > div { display: grid; gap: 2px; }
.deposit-awaiting strong { color: #e8edf6; font-size: 0.76rem; }
.deposit-awaiting small { color: #77849a; font-size: 0.65rem; line-height: 1.45; }
.deposit-spinner {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 200, 107, 0.18);
  border-top-color: #ffc86b;
  border-radius: 50%;
  animation: depositSpin 900ms linear infinite;
}
.deposit-dismiss { min-height: 46px; margin-top: 11px; }
.deposit-dialog .deposit-note { margin-top: 12px; text-align: center; color: #626e84; font-size: 0.68rem; }

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.75); opacity: 0.65; }
}

@keyframes depositSpin {
  to { transform: rotate(360deg); }
}

@keyframes paymentReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardDrift {
  0%, 100% { transform: rotate(-7deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-5deg) translate3d(0, -10px, 0); }
}

@keyframes foilSweep {
  0%, 35% { transform: translateX(-75%); }
  68%, 100% { transform: translateX(75%); }
}

@keyframes ledgerPulse {
  from { transform: scaleY(0.72); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr) minmax(350px, 0.72fr); gap: 42px; }
  .auth-intro h1 { font-size: clamp(3.5rem, 7vw, 5.2rem); }
  .hero-card { right: 0; bottom: -44px; width: 240px; }
  .hero-proof div { min-width: 105px; padding-right: 16px; }
  .hero-proof div + div { padding-left: 16px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 34px, 720px); }
  .header-inner { gap: 12px; min-height: 68px; }
  .logo-copy small { display: none; }
  .main-nav { justify-self: end; }
  .main-nav .nav-link { padding: 7px 10px; }
  .header-actions .lang-select { display: none; }
  .auth-bg { inset-top: 68px; }
  .auth-shell { grid-template-columns: 1fr; gap: 46px; min-height: 0; padding-top: 28px; padding-bottom: 54px; }
  .auth-wrap { grid-row: 1; width: 100%; }
  .auth-intro { grid-row: 2; max-width: 620px; }
  .auth-intro h1 { font-size: clamp(3.5rem, 12vw, 5.7rem); }
  .hero-copy { max-width: 500px; }
  .hero-card { right: 2%; bottom: -42px; width: 250px; }
  .auth-wrap { position: relative; z-index: 3; }
  .auth-card { max-width: 520px; margin: 0 auto; }
  .why-choose { width: min(100% - 34px, 720px); padding-top: 70px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-card { min-height: 170px; }
  .why-icon { margin-bottom: 25px; }
  .why-card p { max-width: 58ch; }
  .steps-grid { grid-template-columns: 1fr; }
  .store-hero { grid-template-columns: 1fr; gap: 42px; min-height: 0; margin-top: -52px; padding-top: 86px; }
  .desk-terminal { max-width: 560px; }
  .market-header-main { grid-template-columns: 1fr auto; gap: 30px; }
  .vault-emblem { display: none; }
  .market-tabs { overflow-x: auto; scroll-snap-type: x proximity; }
  .market-tabs a { flex: 0 0 auto; padding: 0 18px; }
  .market-tabs-status { display: none; }
  .funds-layout { grid-template-columns: 1fr; }
  .funds-summary { position: static; }
}

@media (min-width: 721px) and (max-width: 1080px) {
  .market-banner { height: clamp(210px, 25vw, 270px); }
}

@media (max-width: 720px) {
  .market-header { margin-bottom: 38px; }
  .market-banner { height: auto; min-height: 0; background: #071327; }
  .market-banner > img {
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
  }
  .market-banner::after { display: none; }
  .market-header-main {
    grid-template-columns: 1fr;
    gap: 24px;
    height: auto;
    min-height: 0;
    padding-top: 26px;
    padding-bottom: 26px;
    background: #071327;
  }
  .account-welcome h1 { font-size: 1.62rem; }
  .session-panel {
    justify-self: stretch;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    text-align: left;
  }
  .session-time { justify-content: flex-start; }
  .session-panel p { grid-column: 1; justify-content: flex-start; margin: 8px 0 0; }
  .session-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; }
  .account-theme-toggle .theme-toggle-text { display: none; }
  .account-theme-toggle { min-width: 0; }
}

@media (min-width: 601px) and (max-width: 960px) {
  .table-wrap { overflow-x: auto; }
  .bin-table thead th {
    position: static;
    box-shadow: 0 1px 0 var(--border);
  }
}

@media (min-width: 601px) and (max-width: 960px) {
  .bin-table {
    min-width: 0;
    table-layout: fixed;
    font-size: 0.7rem;
  }
  .bin-table thead th,
  .bin-row td { padding: 10px 7px; }
  .bin-table th:nth-child(1),
  .bin-table td:nth-child(1) { width: 62px; }
  .bin-table th:nth-child(3),
  .bin-table td:nth-child(3) { width: 84px; }
  .bin-table th:nth-child(4),
  .bin-table td:nth-child(4) { width: 60px; }
  .bin-table th:nth-child(5),
  .bin-table td:nth-child(5) { width: 72px; }
  .bin-table th:nth-child(6),
  .bin-table td:nth-child(6) { width: 116px; }
  .bin-num { white-space: normal; line-height: 1.35; }
  .bank-line { font-size: 0.59rem; line-height: 1.35; }
  .bin-row .buy-row { gap: 4px; }
  .bin-row .qty-stepper button { width: 25px; }
  .bin-row .qty-stepper span { min-width: 24px; }
  .bin-row .btn-sm { min-height: 31px; padding-inline: 8px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 520px); }
  main { padding-bottom: 38px; }
  .site-header { position: sticky; }
  .header-inner { grid-template-columns: auto 1fr auto; gap: 8px; min-height: 64px; }
  .logo-mark { width: 30px; height: 30px; border-radius: 9px; }
  .logo-copy { font-size: 0.94rem; }
  .main-nav { display: flex; justify-self: end; gap: 1px; padding: 3px; }
  .main-nav .nav-link { padding: 6px 8px; font-size: 0.7rem; }
  .main-nav:has(#navStore:not(.hidden)) [data-nav="guides"],
  .main-nav:has(#navStore:not(.hidden)) [data-nav="faq"] { display: none; }
  .header-actions { display: flex; }
  .header-actions .lang-select { display: none; }
  .header-actions .btn { min-height: 32px; padding: 5px 9px; font-size: 0.66rem; }
  .auth-shell { gap: 38px; padding-top: 16px; padding-bottom: 42px; }
  .hero-kicker { margin-bottom: 13px; font-size: 0.55rem; }
  .auth-intro h1 { font-size: clamp(2.55rem, 13vw, 3.4rem); line-height: 0.94; }
  .hero-copy { margin-top: 15px; font-size: 0.84rem; line-height: 1.55; }
  .hero-proof { width: 100%; margin-top: 18px; }
  .hero-proof div { flex: 1; min-width: 0; padding: 12px 8px 12px 0; }
  .hero-proof div + div { padding-left: 12px; }
  .hero-proof strong { font-size: 0.92rem; }
  .hero-proof span { font-size: 0.5rem; }
  .hero-card { display: none; }
  .auth-card { padding: 18px; border-radius: 17px; }
  .auth-card-head { gap: 10px; }
  .auth-lock { width: 39px; height: 39px; border-radius: 11px; }
  .auth-lock::before { top: 8px; }
  .auth-lock span { width: 19px; height: 15px; }
  .auth-card h2 { font-size: 1.22rem; }
  .auth-sub { margin: 10px 0 12px; font-size: 0.72rem; line-height: 1.42; }
  .auth-card label { margin-bottom: 8px; font-size: 0.61rem; }
  .auth-card input { min-height: 41px; margin-top: 5px; padding: 9px 11px; font-size: 0.82rem; }
  .auth-captcha { min-height: 54px; margin-bottom: 8px; padding: 8px 10px; }
  .auth-captcha-refresh { flex-basis: 36px; width: 36px; height: 36px; }
  .auth-card .btn-primary { min-height: 43px; }
  .auth-switch { margin-top: 10px; font-size: 0.7rem; }
  .auth-divider { margin: 12px 0 8px; font-size: 0.48rem; }
  .trust-badges { justify-content: center; gap: 6px 10px; font-size: 0.54rem; }
  .why-choose { width: min(100% - 28px, 520px); padding-top: 42px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > span { display: block; margin-bottom: 7px; }
  .why-choose h3 { text-align: left; }
  .why-card { min-height: 0; padding: 20px; }
  .why-icon { margin-bottom: 18px; }
  .view.container { padding-top: 34px; }
  .page-head h2,
  .catalog-head h2,
  .wallet-title { font-size: 1.9rem; }
  .detail-layout,
  .checkout-layout { grid-template-columns: 1fr; }
  .detail-layout,
  .checkout-card,
  .order-summary { padding: 18px; }
  .address-row { align-items: stretch; flex-direction: column; }
  .cards-grid { grid-template-columns: 1fr; }
  .store-hero { margin: -34px -1px 38px; padding: 67px 20px 25px; border-radius: 0 0 21px 21px; }
  .market-header { margin-bottom: 38px; }
  .market-banner { height: auto; min-height: 0; background: #071327; }
  .market-banner > img { position: relative; inset: auto; z-index: 0; display: block; width: 100%; height: auto; object-fit: contain; object-position: center; }
  .market-banner::after { display: none; }
  .market-header-main { grid-template-columns: 1fr; gap: 24px; min-height: 0; padding-top: 26px; padding-bottom: 26px; }
  .account-welcome h1 { font-size: 1.62rem; }
  .session-panel { justify-self: stretch; display: grid; grid-template-columns: 1fr auto; align-items: end; text-align: left; }
  .session-time { justify-content: flex-start; }
  .session-panel p { grid-column: 1; justify-content: flex-start; margin: 8px 0 0; }
  .session-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; align-items: stretch; }
  .account-theme-toggle .theme-toggle-text { display: none; }
  .account-theme-toggle { min-width: 0; }
  .market-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: min(100% - 28px, 520px);
    min-height: 66px;
    overflow: visible;
  }
  .market-tabs a {
    min-width: 0;
    padding: 7px 2px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
    white-space: normal;
    font-size: 0.57rem;
    line-height: 1.12;
  }
  .market-tabs .tab-icon { width: 25px; height: 25px; border-radius: 7px; }
  .market-tabs .tab-icon svg { width: 14px; height: 14px; }
  .step-card { min-height: 0; padding: 19px 20px; }
  .step-card h4 { margin-bottom: 7px; }
  .step-card p { line-height: 1.52; }
  .funds-head { display: grid; align-items: start; gap: 20px; margin-bottom: 24px; }
  .funds-head .btn { justify-self: start; }
  .funds-head h2 { font-size: 2.25rem; }
  .funds-panel { padding: 20px; border-radius: 18px; }
  .fund-amount-field { grid-template-columns: auto 1fr; min-height: 74px; }
  .fund-amount-field small { grid-column: 1 / -1; margin: 7px 0 0 27px; }
  .fund-presets button { flex: 1; min-width: 0; padding-inline: 8px; }
  .fund-payment-summary { grid-template-columns: 1fr; gap: 10px; }
  .fund-payment-summary > div:last-child { text-align: left; }
  .fund-payment-summary > i { display: none; }
  .fund-address-card { padding: 16px; }
  .fund-address-title { align-items: center; }
  .funds-summary { padding: 22px; border-radius: 18px; }
  .store-hero h1 { font-size: clamp(2.9rem, 15vw, 4.2rem); }
  .store-hero-copy > p { margin-top: 19px; font-size: 0.87rem; }
  .store-pills { margin-top: 22px; }
  .desk-terminal { padding: 16px; }
  .catalog-head { align-items: flex-end; }
  .catalog-sync { padding-bottom: 3px; font-size: 0.62rem; }
  .filter-panel { padding: 14px; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-box:first-child { grid-column: 1 / -1; }
  .stats-bar { align-items: stretch; }
  .stats-bar .sort-select { width: 100%; }
  .table-wrap { overflow: visible; border: 0; background: transparent; box-shadow: none; }
  .bin-table { min-width: 0; border-collapse: separate; border-spacing: 0 12px; }
  .bin-table thead { display: none; }
  .bin-table tbody,
  .bin-row { display: block; }
  .bin-row {
    position: relative;
    padding: 17px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: linear-gradient(145deg, rgba(20, 27, 42, 0.94), rgba(12, 17, 28, 0.94));
    box-shadow: 0 14px 34px rgba(0,0,0,0.16);
  }
  .bin-row td { display: block; padding: 0; }
  .bin-row .c-brand { position: absolute; top: 17px; right: 17px; }
  .bin-row .c-bin { padding-right: 64px; }
  .bin-row .bank-line { max-width: 34ch; margin-top: 6px; line-height: 1.5; }
  .bin-row .c-balance,
  .bin-row .c-stock,
  .bin-row .c-price { display: inline-block; margin-top: 17px; vertical-align: top; }
  .bin-row .c-balance { width: 34%; }
  .bin-row .c-stock { width: 31%; }
  .bin-row .c-price { width: 31%; }
  .bin-row .c-balance::before,
  .bin-row .c-stock::before,
  .bin-row .c-price::before { display: block; margin-bottom: 4px; color: #5e6b82; font: 650 0.51rem/1 "SFMono-Regular", monospace; letter-spacing: 0.1em; text-transform: uppercase; }
  .bin-row .c-balance::before { content: "Balance"; }
  .bin-row .c-stock::before { content: "Stock"; }
  .bin-row .c-price::before { content: "Price"; }
  .bin-row td:last-child { margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--border); }
  .buy-row { justify-content: space-between; }
  .buy-row .btn { flex: 1; }
  .deposit-modal { padding: 10px; align-items: end; }
  .deposit-dialog { max-height: calc(100vh - 10px); padding: 27px 20px 22px; border-radius: 22px 22px 12px 12px; }
  .deposit-math { grid-template-columns: 1fr 1fr; }
  .deposit-math > i { display: none; }
  .deposit-math .deposit-total { grid-column: 1 / -1; }
  .deposit-address-block { grid-template-columns: 1fr; }
  .deposit-address-block .btn { grid-column: 1; grid-row: auto; width: 100%; }
}

@media (max-width: 720px) and (orientation: landscape) {
  .market-header-main {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    gap: 22px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .session-panel { display: block; justify-self: stretch; width: 100%; min-width: 0; text-align: right; }
  .session-time { flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 5px; }
  .session-panel p { justify-content: flex-end; }
  .session-panel p { margin: 8px 0 13px; }
  .session-actions { display: flex; flex-direction: row; justify-content: flex-end; margin-top: 0; }
}

@media (max-width: 360px) and (orientation: portrait) {
  .session-panel { grid-template-columns: 1fr; align-items: start; }
  .session-time { grid-column: 1; grid-row: 1; }
  .session-panel p { grid-column: 1; grid-row: 2; }
  .session-actions {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 16px;
  }
  .account-theme-toggle { width: 44px; }
}

@media (max-width: 600px) and (max-height: 700px) {
  .notice-inner { padding-block: 6px; }
  .notice-inner span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .auth-shell { gap: 30px; padding-top: 10px; }
  .auth-card { padding: 14px; }
  .auth-card-head { gap: 8px; }
  .auth-lock { width: 35px; height: 35px; }
  .auth-card h2 { font-size: 1.12rem; }
  .auth-sub,
  .auth-divider,
  .trust-badges { display: none; }
  .auth-card form { margin-top: 10px; }
  .auth-card label { margin-bottom: 5px; }
  .auth-card input { min-height: 36px; margin-top: 3px; padding-block: 7px; }
  .auth-captcha { min-height: 45px; margin-bottom: 5px; padding: 6px 9px; }
  .auth-captcha-refresh { flex-basis: 32px; width: 32px; height: 32px; }
  .auth-card .btn-primary { min-height: 39px; }
  .auth-switch { margin-top: 7px; }
}

/* Light theme — dark remains the default */
html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --surface: #ffffff;
  --surface-2: #eef3fa;
  --surface-3: #e6ecf6;
  --border: rgba(39, 57, 89, 0.14);
  --border-strong: rgba(39, 57, 89, 0.25);
  --text: #172033;
  --muted: #66738a;
  --accent: #4f6ee8;
  --accent-hover: #405fd9;
  --accent-2: #198963;
  --link: #465fcb;
  --danger: #c94059;
  --warning: #a9650a;
  --shadow: 0 24px 70px rgba(40, 55, 85, 0.14);
}
html[data-theme="light"] body {
  background:
    radial-gradient(circle at 15% 0%, rgba(79, 110, 232, 0.11), transparent 28rem),
    #f4f7fc;
  color: var(--text);
}
html[data-theme="light"] .site-header { background: rgba(255,255,255,0.84); border-color: rgba(39,57,89,0.11); box-shadow: 0 1px 0 rgba(39,57,89,0.04); }
html[data-theme="light"] .logo { color: #172033; }
html[data-theme="light"] .logo-copy small { color: #71809a; }
html[data-theme="light"] .main-nav { border-color: rgba(39,57,89,0.1); background: rgba(235,240,248,0.82); }
html[data-theme="light"] .nav-link { color: #65728a; }
html[data-theme="light"] .nav-link:hover,
html[data-theme="light"] .nav-link.active { color: #172033; background: rgba(255,255,255,0.92); }
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .btn:not(.btn-primary) { border-color: var(--border); background: rgba(255,255,255,0.82); color: #35415a; }
html[data-theme="light"] .theme-toggle:hover,
html[data-theme="light"] .btn:not(.btn-primary):hover { border-color: var(--border-strong); background: #fff; color: #172033; }
html[data-theme="light"] .lang-select,
html[data-theme="light"] select,
html[data-theme="light"] .sort-select { border-color: var(--border); background-color: rgba(255,255,255,0.9); color: #35415a; }

html[data-theme="light"] .auth-bg {
  background:
    linear-gradient(rgba(69, 91, 136, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(69, 91, 136, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
}
html[data-theme="light"] .auth-bg::before { background: radial-gradient(48rem 34rem at 71% 30%, rgba(79,110,232,0.14), transparent 64%), radial-gradient(30rem 24rem at 7% 62%, rgba(25,137,99,0.08), transparent 70%); }
html[data-theme="light"] .hero-kicker,
html[data-theme="light"] .hero-copy { color: #66738a; }
html[data-theme="light"] .auth-intro h1 { color: #172033; }
html[data-theme="light"] .auth-intro h1 em { -webkit-text-stroke-color: rgba(67,91,197,0.82); text-shadow: 0 0 38px rgba(79,110,232,0.1); }
html[data-theme="light"] .hero-proof strong { color: #27344b; }
html[data-theme="light"] .hero-proof span { color: #71809a; }
html[data-theme="light"] .auth-card { border-color: rgba(39,57,89,0.14); background: linear-gradient(155deg, rgba(255,255,255,0.97), rgba(245,248,253,0.98)); box-shadow: var(--shadow), inset 0 1px #fff; }
html[data-theme="light"] .auth-card h2 { color: #172033; }
html[data-theme="light"] .auth-eyebrow,
html[data-theme="light"] .auth-sub,
html[data-theme="light"] .auth-switch,
html[data-theme="light"] .trust-badges { color: #68758d; }
html[data-theme="light"] .auth-card label { color: #536078; }
html[data-theme="light"] .auth-card input { border-color: rgba(39,57,89,0.16); background: #f5f8fc; color: #172033; }
html[data-theme="light"] .auth-card input::placeholder { color: #98a3b6; }
html[data-theme="light"] .auth-card input:focus { background: #fff; }
html[data-theme="light"] .auth-captcha { border-color: rgba(79,110,232,0.2); background: linear-gradient(135deg, rgba(79,110,232,0.08), rgba(231,237,252,0.78)); }
html[data-theme="light"] .auth-captcha strong { color: #24304a; }
html[data-theme="light"] .auth-captcha-label { color: #6a7892; }
html[data-theme="light"] .auth-captcha-refresh { border-color: rgba(79,110,232,0.24); background: rgba(255,255,255,0.75); color: #465fcb; }
html[data-theme="light"] .auth-switch a { color: #465fcb; }
html[data-theme="light"] .auth-switch a:hover { color: #253b9d; }

html[data-theme="light"] .section-heading > span,
html[data-theme="light"] .catalog-eyebrow,
html[data-theme="light"] .catalog-sync,
html[data-theme="light"] .filter-box,
html[data-theme="light"] .stats-bar { color: #71809a; }
html[data-theme="light"] .why-choose h3,
html[data-theme="light"] .page-head h2,
html[data-theme="light"] .catalog-head h2,
html[data-theme="light"] .wallet-title,
html[data-theme="light"] .funds-head h2 { color: #172033; }
html[data-theme="light"] .why-card,
html[data-theme="light"] .step-card,
html[data-theme="light"] .filter-panel,
html[data-theme="light"] .checkout-card,
html[data-theme="light"] .order-summary,
html[data-theme="light"] .success-card,
html[data-theme="light"] .card-item,
html[data-theme="light"] .detail-layout,
html[data-theme="light"] .faq-list,
html[data-theme="light"] .support-ticket-card,
html[data-theme="light"] .table-wrap { border-color: var(--border); background: rgba(255,255,255,0.92); box-shadow: 0 18px 48px rgba(45,62,96,0.08); }
html[data-theme="light"] .why-card:hover { border-color: rgba(79,110,232,0.28); background: #fff; }
html[data-theme="light"] .why-card h4,
html[data-theme="light"] .step-card h4,
html[data-theme="light"] .faq-list summary,
html[data-theme="light"] .support-ticket-card > h3,
html[data-theme="light"] .support-success h3,
html[data-theme="light"] .detail-info h2,
html[data-theme="light"] .checkout-card h2,
html[data-theme="light"] .checkout-card h3,
html[data-theme="light"] .order-summary h3 { color: #263249; }
html[data-theme="light"] .why-card p,
html[data-theme="light"] .step-card p,
html[data-theme="light"] .faq-list details p,
html[data-theme="light"] .support-ticket-card > p,
html[data-theme="light"] .support-success p,
html[data-theme="light"] .detail-balance,
html[data-theme="light"] .feature-list { color: #65728a; }
html[data-theme="light"] .support-section-label,
html[data-theme="light"] .support-desk-status,
html[data-theme="light"] .support-response-time,
html[data-theme="light"] .support-form-meta { color: #71809a; }
html[data-theme="light"] .support-form label { color: #526078; }
html[data-theme="light"] .support-form textarea { border-color: var(--border); background: #f7f9fc; color: #263249; }
html[data-theme="light"] .support-form textarea::placeholder { color: #8b96a9; }
html[data-theme="light"] .support-form textarea:focus { border-color: #6681fb; background: #fff; }
html[data-theme="light"] .support-success code { border-color: rgba(79,110,232,0.16); background: rgba(79,110,232,0.06); color: #4056b7; }

html[data-theme="light"] .market-header { border-color: rgba(39,57,89,0.14); background: #edf2f9; box-shadow: 0 18px 50px rgba(40,55,85,0.13); }
html[data-theme="light"] .market-tabs { border-color: rgba(39,57,89,0.14); background: rgba(255,255,255,0.94); }
html[data-theme="light"] .market-tabs a { border-color: rgba(39,57,89,0.09); color: #59667e; }
html[data-theme="light"] .market-tabs a:hover { color: #1d2a40; background: #f3f6fb; }
html[data-theme="light"] .market-tabs a.active { color: #fff; background: linear-gradient(135deg, #6681fb, #4c68e3); }
html[data-theme="light"] .market-tabs .tab-icon { border-color: rgba(39,57,89,0.1); background: #f1f4f9; color: #69768e; }
html[data-theme="light"] .market-tabs a:hover .tab-icon { color: #26344c; border-color: rgba(39,57,89,0.18); background: #fff; }
html[data-theme="light"] .market-tabs a.active .tab-icon { color: #fff; border-color: rgba(255,255,255,0.24); background: rgba(255,255,255,0.13); }
html[data-theme="light"] .market-tabs-status { color: #6d7990; }

html[data-theme="light"] .filter-box input,
html[data-theme="light"] .filter-box select,
html[data-theme="light"] .search-box { border-color: var(--border); background: #f7f9fc; color: #263249; }
html[data-theme="light"] .bin-table thead th { border-color: var(--border); background: #edf2f8; color: #6c7890; box-shadow: 0 1px 0 var(--border), 0 8px 18px rgba(45,62,96,0.07); }
html[data-theme="light"] .bin-row:hover { background: rgba(79,110,232,0.045); }
html[data-theme="light"] .brand-chip { background: #f3f6fb; }
html[data-theme="light"] .bank-line,
html[data-theme="light"] .price-sub,
html[data-theme="light"] .c-stock { color: #69768e; }
html[data-theme="light"] .c-balance { color: #16845f; }
html[data-theme="light"] .qty-stepper { background: #eef2f8; }
html[data-theme="light"] .qty-stepper button { background: #e5ebf5; color: #2f3b52; }
html[data-theme="light"] .qty-stepper span { background: #f7f9fc; color: #263249; }

html[data-theme="light"] .coin-btn { border-color: var(--border); background: #f3f6fb; color: #65728a; }
html[data-theme="light"] .coin-btn.active { border-color: #7189f5; background: rgba(79,110,232,0.1); color: #344ead; }
html[data-theme="light"] .address-row code,
html[data-theme="light"] .reveal-card { border-color: var(--border); background: #f4f7fb; color: #27344b; }
html[data-theme="light"] .sum-row,
html[data-theme="light"] .paid-to { color: #69768e; }
html[data-theme="light"] .success-icon { background: rgba(25,137,99,0.11); color: #16845f; }
html[data-theme="light"] .site-footer { border-color: var(--border); background: rgba(255,255,255,0.86); color: #71809a; }
html[data-theme="light"] .toast { border-color: var(--border-strong); background: #fff; color: #172033; box-shadow: var(--shadow); }

html[data-theme="light"] .funds-head p { color: #66738a; }
html[data-theme="light"] .funds-panel,
html[data-theme="light"] .funds-summary { border-color: var(--border); background: rgba(255,255,255,0.94); box-shadow: 0 24px 70px rgba(40,55,85,0.1), inset 0 1px #fff; }
html[data-theme="light"] .funds-panel-head { border-color: var(--border); }
html[data-theme="light"] .funds-panel-head > div:nth-child(2) strong,
html[data-theme="light"] .fund-amount-label,
html[data-theme="light"] .fund-address-title span,
html[data-theme="light"] .fund-payment-summary strong { color: #263249; }
html[data-theme="light"] .fund-amount-field { border-color: rgba(79,110,232,0.24); background: #f6f8fc; }
html[data-theme="light"] .fund-amount-field input { color: #172033; }
html[data-theme="light"] .fund-presets button { border-color: var(--border); background: #f4f7fb; color: #647189; }
html[data-theme="light"] .fund-presets button:hover,
html[data-theme="light"] .fund-presets button.active { border-color: rgba(79,110,232,0.4); background: rgba(79,110,232,0.09); color: #334aa8; }
html[data-theme="light"] .fund-payment-summary { border-color: rgba(25,137,99,0.18); background: rgba(25,137,99,0.055); }
html[data-theme="light"] .fund-payment-summary > div:last-child strong { color: #16845f; }
html[data-theme="light"] .fund-address-card { border-color: var(--border); background: #f7f9fc; }
html[data-theme="light"] .fund-address-card code { border-color: rgba(79,110,232,0.14); background: rgba(79,110,232,0.06); color: #3d53ad; }
html[data-theme="light"] .fund-waiting { border-color: rgba(25,137,99,0.16); background: rgba(25,137,99,0.05); }
html[data-theme="light"] .fund-waiting strong { color: #29483c; }
html[data-theme="light"] .funds-summary > strong { color: #172033; }
html[data-theme="light"] .welcome-fund { border-color: rgba(25,137,99,0.2); background: rgba(25,137,99,0.07); }
html[data-theme="light"] .welcome-fund > span,
html[data-theme="light"] .welcome-fund > strong { color: #147454; }
html[data-theme="light"] .fund-details dd { color: #344157; }

html[data-theme="light"] .deposit-modal { background: rgba(32,43,64,0.56); }
html[data-theme="light"] .deposit-dialog { border-color: rgba(79,110,232,0.25); background: radial-gradient(30rem 17rem at 85% 0%, rgba(79,110,232,0.1), transparent 64%), linear-gradient(150deg, #fff, #f2f6fb 72%); box-shadow: 0 40px 100px rgba(40,55,85,0.25), inset 0 1px #fff; }
html[data-theme="light"] .deposit-close { border-color: var(--border); background: #f2f5fa; color: #536078; }
html[data-theme="light"] .deposit-dialog h2,
html[data-theme="light"] .deposit-math strong,
html[data-theme="light"] .deposit-address-block > div span,
html[data-theme="light"] .deposit-selected strong,
html[data-theme="light"] .deposit-awaiting strong { color: #263249; }
html[data-theme="light"] .deposit-dialog > p,
html[data-theme="light"] .deposit-selected { color: #65728a; }
html[data-theme="light"] .deposit-math > div { border-color: var(--border); background: #f7f9fc; }
html[data-theme="light"] .deposit-math .deposit-total { border-color: rgba(25,137,99,0.2); background: rgba(25,137,99,0.07); }
html[data-theme="light"] .deposit-math .deposit-total strong { color: #16845f; }
html[data-theme="light"] .deposit-address-block { border-color: var(--border); background: #f7f9fc; }
html[data-theme="light"] .deposit-address-block code { border-color: rgba(79,110,232,0.14); background: rgba(79,110,232,0.06); color: #3d53ad; }
html[data-theme="light"] .deposit-awaiting { border-color: rgba(169,101,10,0.18); background: rgba(169,101,10,0.06); }

@media (max-width: 720px) {
  html[data-theme="light"] .market-header-main { background: linear-gradient(150deg, #f8faff, #e9eff8); }
  html[data-theme="light"] .account-welcome h1,
  html[data-theme="light"] .account-welcome h1 span,
  html[data-theme="light"] .account-facts dd,
  html[data-theme="light"] .session-time strong { color: #172033; }
  html[data-theme="light"] .account-eyebrow,
  html[data-theme="light"] .account-facts dt,
  html[data-theme="light"] .session-time span,
  html[data-theme="light"] .session-panel p { color: #65728a; }
  html[data-theme="light"] .account-theme-toggle,
  html[data-theme="light"] .market-signout { border-color: var(--border); background: #fff; color: #35415a; }
}

@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; }
}
