:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-accent: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-muted: #f3f7ff;
  --surface-dark: #10284d;
  --surface-dark-strong: #143563;
  --border: rgba(29, 77, 163, 0.12);
  --text: #173253;
  --text-soft: #6981a1;
  --text-strong: #0f2440;
  --primary: #7c5cff;
  --primary-strong: #6a45f5;
  --primary-soft: color-mix(in srgb, var(--primary) 14%, transparent);
  --success: #22c55e;
  --danger: #ef4444;
  --shadow: 0 32px 72px -42px rgba(16, 41, 78, 0.38);
  --shadow-soft: 0 18px 30px -20px color-mix(in srgb, var(--primary) 36%, transparent);
  --radius-xxl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07080b;
  --bg-accent: #07080b;
  --surface: rgba(28, 33, 38, 0.94);
  --surface-strong: #1b2026;
  --surface-muted: #242a31;
  --surface-dark: #15191e;
  --surface-dark-strong: #20262d;
  --border: rgba(151, 180, 255, 0.14);
  --text: #f2f7ff;
  --text-soft: #a6b8d3;
  --text-strong: #ffffff;
  --primary: #7ba9ff;
  --primary-strong: #9abdfd;
  --primary-soft: rgba(123, 169, 255, 0.14);
  --danger: #ff8ea5;
  --shadow: 0 30px 70px -42px rgba(0, 0, 0, 0.75);
  --shadow-soft: 0 16px 28px -18px rgba(87, 140, 255, 0.2);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
}

body {
  background: var(--bg-accent);
  color: var(--text);
  font-family: "Segoe UI", "Manrope", sans-serif;
}

:root[data-theme="dark"] body {
  background: var(--bg-accent);
}

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

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 26px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

:root[data-theme="dark"] .site-header {
  background: rgba(8, 14, 24, 0.78);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  box-shadow: var(--shadow-soft);
}

.brand {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-strong);
}

.brand-subline,
.muted,
.micro-copy,
.register-copy,
.auth-footer,
.notice,
.hero-lead,
.text-soft,
label span,
table td,
table th,
.detail-list span,
.trust-strip span,
.visual-tile span,
.metric-card p,
.nav-welcome {
  color: var(--text-soft);
}

.header-right,
.nav-cluster,
.hero-actions,
.register-footer-actions,
.inline-actions,
.mini-row,
.mini-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-right {
  margin-left: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cluster {
  flex-wrap: wrap;
}

.language-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 50px;
  border-radius: 999px;
  background: transparent;
}

.language-badge,
.language-shell-button,
.theme-toggle,
.button,
.provider-button,
.nav-link {
  min-height: 40px;
  border-radius: 999px;
}

.language-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.language-shell-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-strong);
}

.language-code {
  font-weight: 800;
  color: var(--text-strong);
  min-width: 28px;
}

.language-caret {
  display: none;
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
}

.language-flag {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 25.5px;
  flex: 0 0 48px;
  overflow: hidden;
  border-radius: 2px;
  border: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.language-flag.fi {
  background-size: cover;
  background-position: center;
}

.language-flag-us {
  background:
    linear-gradient(90deg, #22488f 0 42%, transparent 42%),
    repeating-linear-gradient(180deg, #c23b45 0 7.69%, #ffffff 7.69% 15.38%);
}

.language-flag-us::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 14px;
  height: 10px;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 4px 4px;
}

.language-flag-cn {
  background: #de2910;
}

.language-flag-cn::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 8px;
  height: 8px;
  background: #ffde00;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 35%);
}

.language-flag-cn::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 5px;
  width: 14px;
  height: 12px;
  background-image: radial-gradient(#ffde00 1.5px, transparent 1.6px);
  background-size: 7px 6px;
}

.language-flag-fr {
  background: linear-gradient(90deg, #1f4fa3 0 33%, #ffffff 33% 66%, #d64646 66%);
}

.language-flag-ae {
  background:
    linear-gradient(90deg, #d63838 0 25%, transparent 25%),
    linear-gradient(180deg, #14905f 0 33%, #ffffff 33% 66%, #111827 66%);
}

.language-flag-es {
  background: linear-gradient(180deg, #c73737 0 25%, #f4c542 25% 75%, #c73737 75%);
}

.language-flag-un {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  display: none;
  padding: 10px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
  z-index: 25;
}

.language-menu.is-open {
  display: grid;
  gap: 6px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.language-option:hover,
.language-option.is-active {
  background: var(--primary-soft);
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
}

.language-option-flag {
  width: 48px;
  height: 25.5px;
}

.language-option-copy {
  display: grid;
  gap: 2px;
}

.language-option-copy strong {
  color: var(--text-strong);
}

.language-option-copy small {
  color: var(--text-soft);
}

.theme-toggle,
.button,
.provider-button,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #fff;
  font-weight: 700;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.theme-toggle:hover,
.button:hover,
.provider-button:hover,
.nav-link:hover,
.workspace-link:hover,
.mobile-toggle:hover,
.workspace-menu-button:hover {
  transform: translateY(-1px);
}

.theme-toggle,
.button-secondary,
.provider-button,
.nav-link {
  color: var(--text);
  background: var(--surface-strong);
  border-color: var(--border);
}

.button-danger {
  color: var(--danger);
  background: rgba(213, 91, 119, 0.1);
  border-color: rgba(213, 91, 119, 0.18);
}

.button-small {
  min-height: 36px;
  padding-inline: 14px;
  font-size: 0.92rem;
}

.mobile-toggle,
.workspace-menu-button {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span,
.workspace-menu-button span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.page-shell {
  max-width: 1680px;
  margin: 0 auto;
  padding: 30px 20px 86px;
}

.page-shell:has(.workspace-shell) {
  max-width: 1760px;
  height: calc(100vh - 88px);
  padding: 14px 20px 20px;
  overflow: hidden;
}

.hero-shell,
.card-grid,
.content-band,
.band-cards,
.dashboard-grid,
.metric-grid,
.field-grid,
.trust-strip,
.visual-grid,
.stack-grid,
.provider-stack {
  display: grid;
  gap: 22px;
}

.hero-shell {
  grid-template-columns: 1.2fr 0.88fr;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.strategy-card,
.auth-card,
.workspace-panel,
.metric-card,
.info-card,
.cta-banner,
.workspace-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-xxl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 44px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  color: var(--text-strong);
  overflow: hidden;
}

:root[data-theme="dark"] .hero-copy {
  background:
    radial-gradient(circle at top left, rgba(114, 171, 255, 0.16), transparent 24%),
    linear-gradient(135deg, #091321 0%, #0d1e34 58%, #16345f 100%);
  color: #f4f8ff;
}

.hero-copy .eyebrow,
.hero-copy .micro-copy,
.hero-copy .trust-strip span,
.hero-copy .hero-lead {
  color: var(--text-soft);
}

:root[data-theme="dark"] .hero-copy .eyebrow,
:root[data-theme="dark"] .hero-copy .micro-copy,
:root[data-theme="dark"] .hero-copy .trust-strip span,
:root[data-theme="dark"] .hero-copy .hero-lead {
  color: rgba(238, 245, 255, 0.82);
}

.hero-copy h1,
.auth-card h1,
.section-heading h2,
.workspace-topbar h1,
.cta-banner h2 {
  margin: 0;
}

.hero-copy h1 {
  margin-bottom: 16px;
  max-width: 760px;
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.98;
}

.hero-lead {
  max-width: 640px;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.8;
}

.trust-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.trust-strip div {
  padding: 18px;
  border-radius: 22px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

:root[data-theme="dark"] .trust-strip div {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
}

.trust-strip strong,
.visual-tile strong,
.metric-card strong {
  display: block;
  color: var(--text-strong);
}

.hero-copy .trust-strip strong {
  color: var(--text-strong);
  margin-bottom: 8px;
}

:root[data-theme="dark"] .hero-copy .trust-strip strong {
  color: #fff;
}

.hero-visual {
  padding: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
}

:root[data-theme="dark"] .hero-visual {
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.98), rgba(12, 20, 35, 0.96));
}

.visual-card,
.visual-tile {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  border-radius: 24px;
}

.visual-card {
  padding: 28px;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 12%, #ffffff),
    color-mix(in srgb, var(--success) 8%, #ffffff)
  );
}

.visual-card h2 {
  margin: 14px 0;
  font-size: 2rem;
  line-height: 1.08;
  color: var(--text-strong);
}

.visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.visual-tile {
  padding: 20px;
}

.visual-tile strong {
  margin-bottom: 8px;
  font-size: 1.22rem;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-copy .pill {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

:root[data-theme="dark"] .hero-copy .pill {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.content-band {
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
  margin: 28px 0;
}

.band-copy,
.band-cards {
  min-width: 0;
}

.band-copy h2 {
  margin: 0 0 12px;
  font-size: 2.1rem;
  color: var(--text-strong);
}

.band-copy p:last-child {
  line-height: 1.8;
}

.band-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  padding: 24px;
}

.info-card h3,
.strategy-card h3,
.workspace-panel h3,
.auth-card h1 {
  color: var(--text-strong);
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.strategy-card {
  padding: 24px;
}

.strategy-card h3 {
  margin: 12px 0;
  font-size: 1.4rem;
}

.strategy-card p {
  line-height: 1.7;
}

.strategy-price {
  font-weight: 800;
  color: var(--text-strong);
}

.strategy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.performance-note {
  margin: 18px 0 10px;
  font-weight: 700;
}

.text-link {
  color: var(--primary-strong);
  font-weight: 800;
}

.section-heading {
  margin: 44px 0 22px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: 2.2rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 28px 30px;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding-top: 12px;
}

.auth-card {
  width: min(760px, 100%);
  padding: 34px;
}

.auth-panel {
  border-radius: 34px;
}

.register-shell {
  min-height: calc(100vh - 190px);
}

.register-card {
  width: min(760px, 100%);
  padding: 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(242, 247, 255, 0.96) 100%);
}

:root[data-theme="dark"] .register-card {
  background: linear-gradient(180deg, rgba(17, 27, 47, 0.98) 0%, rgba(10, 18, 30, 0.96) 100%);
}

.register-brand {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 700;
}

.register-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.08;
}

.register-copy {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: 1.14rem;
  line-height: 1.65;
}

.provider-stack {
  margin-bottom: 24px;
}

.social-button {
  min-height: 68px;
  justify-content: center;
  background: rgba(255, 255, 255, 0.82);
}

:root[data-theme="dark"] .social-button {
  background: rgba(255, 255, 255, 0.04);
}

.register-submit {
  width: 100%;
  min-height: 64px;
  background: linear-gradient(90deg, rgba(190, 231, 255, 1) 0%, rgba(200, 211, 255, 1) 100%);
  color: var(--text-strong);
  border-color: rgba(113, 157, 255, 0.2);
}

.register-footer-actions {
  justify-content: space-between;
  margin-top: 26px;
}

.footer-pill {
  min-width: 190px;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.flash,
.notice {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
}

.flash {
  background: rgba(49, 121, 255, 0.12);
  border: 1px solid rgba(49, 121, 255, 0.18);
}

.floating-flash {
  position: fixed;
  top: 86px;
  right: 24px;
  z-index: 100;
  max-width: min(360px, calc(100vw - 32px));
  margin: 0;
  box-shadow: 0 18px 42px rgba(21, 43, 77, 0.18);
}

.button.is-loading {
  opacity: 0.72;
  cursor: progress;
}

.notice {
  background: rgba(49, 121, 255, 0.08);
  border: 1px dashed rgba(49, 121, 255, 0.2);
}

.form-layout {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-strong);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.full-span {
  grid-column: 1 / -1;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-form-panel {
  overflow: hidden;
}

.profile-form-panel .form-layout {
  gap: 20px;
}

.profile-goal-field {
  gap: 10px;
}

.profile-goal-field textarea {
  display: block;
  min-height: 132px;
  resize: vertical;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  padding: 18px;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

:root[data-theme="dark"] .workspace-shell {
  background: #07080b;
  box-shadow: 0 34px 70px -42px rgba(4, 8, 18, 0.58);
}

.workspace-sidebar {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  padding: 18px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

:root[data-theme="dark"] .workspace-sidebar {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 18%, #171d24),
    color-mix(in srgb, var(--primary-strong) 10%, #151a20)
  );
  border-color: rgba(150, 170, 255, 0.1);
  box-shadow: 0 30px 60px -42px rgba(8, 18, 38, 0.75);
}

:root[data-theme="dark"] .workspace-profile-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 18%, #20262d),
    color-mix(in srgb, var(--primary-strong) 8%, #171c22)
  );
  border-color: rgba(255, 255, 255, 0.06);
}

:root[data-theme="dark"] .workspace-profile-card h2 {
  color: #ffffff;
}

:root[data-theme="dark"] .workspace-profile-card p,
:root[data-theme="dark"] .workspace-status {
  color: rgba(234, 242, 255, 0.82);
}

.workspace-topbar h1 {
  color: var(--text-strong);
}

.workspace-profile-card {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--primary) 10%, #ffffff),
    color-mix(in srgb, var(--primary-strong) 7%, #ffffff)
  );
  border: 1px solid var(--border);
  text-align: center;
}

.workspace-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
}

.workspace-profile-card h2 {
  margin: 0 0 6px;
  color: var(--text-strong);
}

.workspace-profile-card p {
  margin: 0 0 12px;
  color: var(--text-soft);
}

.workspace-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.workspace-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 18%, transparent);
}

.workspace-nav-label {
  flex: 0 0 auto;
  margin-top: 18px;
}

.workspace-sidebar .pill {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.workspace-nav {
  display: grid;
  align-content: start;
  grid-auto-rows: minmax(48px, auto);
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 12px;
  padding-right: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.workspace-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 16px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.workspace-link.is-active {
  color: var(--text-strong);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 12%, #ffffff),
    #ffffff
  );
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  box-shadow: inset 4px 0 0 var(--primary-strong);
}

.workspace-main {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 0;
  padding: 18px 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
}

:root[data-theme="dark"] .workspace-topbar {
  background: #1b1e2f;
  box-shadow: none;
  color: #f5f8ff;
}

.workspace-topbar-left {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: auto;
  min-width: 0;
}

.workspace-topbar-title {
  grid-column: 2;
  min-width: 0;
}

.workspace-topbar-title .eyebrow {
  margin-bottom: 8px;
}

.workspace-topbar-title h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: var(--text-strong);
}

.workspace-topbar-title .muted {
  margin: 0;
}

.workspace-topbar .workspace-menu-button {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex: 0 0 64px;
}

.workspace-searchbar {
  display: none !important;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  min-width: 0;
}

.workspace-searchbar input {
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.workspace-searchbar input:focus {
  box-shadow: none;
}

.workspace-search-icon {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.workspace-topbar-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.workspace-module-select {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
}

.workspace-module-select span {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-soft);
}

.workspace-module-select select {
  min-width: 150px;
  padding: 10px 12px;
}

.workspace-icon-pill {
  display: none !important;
  width: 64px;
  height: 64px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 1rem;
}

.workspace-user-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
}

.workspace-user-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #ffffff;
  font-weight: 800;
}

.workspace-user-pill strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.92rem;
}

.workspace-user-pill div span {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.workspace-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 9%, #ffffff),
    color-mix(in srgb, var(--primary-strong) 7%, #ffffff)
  );
  border: 1px solid var(--border);
}

.workspace-hero-card h1 {
  margin: 8px 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-strong);
}

.workspace-hero-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-weight: 800;
}

.dashboard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.workspace-dashboard-grid {
  align-items: stretch;
  margin-top: 4px;
}

.workspace-panel {
  position: relative;
  min-width: 0;
  padding: 22px;
  background: #ffffff;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

.workspace-shell .workspace-panel,
.workspace-shell .metric-card,
.workspace-shell .detail-list div,
.workspace-shell .checklist div,
.workspace-shell table th,
.workspace-shell table td,
.workspace-shell .muted,
.workspace-shell p,
.workspace-shell label span,
.workspace-shell .metric-card p {
  color: var(--text-soft);
}

.workspace-shell .workspace-panel h3,
.workspace-shell .workspace-topbar h1,
.workspace-shell .metric-card strong,
.workspace-shell .detail-list strong,
.workspace-shell .checklist strong,
.workspace-shell table th,
.workspace-shell .language-option-copy strong {
  color: var(--text-strong);
}

.workspace-shell input,
.workspace-shell select,
.workspace-shell textarea {
  background: var(--surface-strong);
  border-color: var(--border);
  color: var(--text-strong);
}

.workspace-shell input:focus,
.workspace-shell select:focus,
.workspace-shell textarea:focus {
  box-shadow: 0 0 0 4px rgba(89, 123, 255, 0.16);
}

.workspace-shell .button-secondary,
.workspace-shell .nav-link,
.workspace-shell .provider-button {
  background: var(--surface-muted);
  color: var(--text-strong);
  border-color: var(--border);
}

.workspace-shell .button-danger {
  background: rgba(213, 91, 119, 0.14);
}

.workspace-shell .pill {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

:root[data-theme="dark"] .workspace-shell .workspace-panel,
:root[data-theme="dark"] .workspace-shell .metric-card,
:root[data-theme="dark"] .workspace-shell .detail-list div,
:root[data-theme="dark"] .workspace-shell .checklist div,
:root[data-theme="dark"] .workspace-shell table th,
:root[data-theme="dark"] .workspace-shell table td,
:root[data-theme="dark"] .workspace-shell .muted,
:root[data-theme="dark"] .workspace-shell p,
:root[data-theme="dark"] .workspace-shell label span,
:root[data-theme="dark"] .workspace-shell .metric-card p {
  color: #aeb6d7;
}

:root[data-theme="dark"] .workspace-shell .workspace-panel h3,
:root[data-theme="dark"] .workspace-shell .workspace-topbar h1,
:root[data-theme="dark"] .workspace-shell .metric-card strong,
:root[data-theme="dark"] .workspace-shell .detail-list strong,
:root[data-theme="dark"] .workspace-shell .checklist strong,
:root[data-theme="dark"] .workspace-shell table th,
:root[data-theme="dark"] .workspace-shell .language-option-copy strong {
  color: #f6f8ff;
}

:root[data-theme="dark"] .workspace-shell input,
:root[data-theme="dark"] .workspace-shell select,
:root[data-theme="dark"] .workspace-shell textarea {
  background: #121524;
  border-color: rgba(150, 170, 255, 0.12);
  color: #f4f7ff;
}

:root[data-theme="dark"] .workspace-shell .button-secondary,
:root[data-theme="dark"] .workspace-shell .nav-link,
:root[data-theme="dark"] .workspace-shell .provider-button {
  background: #232841;
  color: #f5f8ff;
  border-color: rgba(150, 170, 255, 0.12);
}

:root[data-theme="dark"] .workspace-shell .pill {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

:root[data-theme="dark"] .workspace-link {
  color: rgba(235, 242, 255, 0.82);
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="dark"] .workspace-link.is-active {
  color: #fff;
  background: color-mix(in srgb, var(--primary) 22%, rgba(255, 255, 255, 0.07));
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 4px 0 0 var(--primary-strong);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  margin-bottom: 4px;
}

.metric-card {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.metric-card.metric-accent {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 10%, #ffffff),
    color-mix(in srgb, var(--primary-strong) 5%, #ffffff)
  );
}

.metric-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 700;
}

.metric-card strong {
  font-size: 2rem;
  margin-bottom: 10px;
}

.metric-card p {
  margin-top: auto;
}

.detail-list,
.checklist {
  display: grid;
  gap: 14px;
}

.detail-list div,
.checklist div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--surface-muted);
}

.checklist div {
  justify-content: flex-start;
}

.mini-card {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.subscription-mini-card {
  min-height: 148px;
}

.stack-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.compact-form {
  margin-bottom: 18px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toggle-row input {
  width: auto;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-weight: 800;
}

.switch-line input {
  width: 18px;
  height: 18px;
}

.status-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  cursor: pointer;
  color: var(--text);
  font-weight: 800;
}

.status-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.status-switch-track {
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f7dbe3;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.status-switch-track span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 35, 64, 0.16);
  transition: transform 0.16s ease;
}

.status-switch.is-on .status-switch-track {
  border-color: rgba(44, 125, 23, 0.28);
  background: #dfeeda;
}

.status-switch.is-on .status-switch-track span {
  transform: translateX(24px);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

table th {
  color: var(--text);
  font-size: 0.92rem;
}

.workspace-shell table {
  min-width: 100%;
}

.workspace-shell table th,
.workspace-shell table td {
  border-bottom-color: rgba(150, 170, 255, 0.08);
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.section-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-soft);
  font-weight: 700;
}

.section-tab.is-active {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  border-color: transparent;
  color: #fff;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 18px 0;
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-weight: 700;
}

.filter-bar input,
.filter-bar select {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-strong);
  padding: 0 12px;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  margin-top: 12px;
}

.copy-field input {
  min-width: 0;
  border-radius: 12px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-strong);
  color: var(--text-strong);
  font-size: 1.25rem;
  font-weight: 800;
}

.copy-message {
  min-height: 20px;
  margin: 8px 0 0;
  color: var(--success);
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.copy-message.is-visible {
  opacity: 1;
}

.payment-transfer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.payment-address-card,
.qr-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-muted);
}

.payment-address-card {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 18px;
}

.payment-address-card span {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.payment-address-card strong {
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.payment-address-card p {
  margin: 0;
}

.qr-card {
  display: grid;
  place-items: center;
  width: 190px;
  min-height: 190px;
  padding: 12px;
}

.qr-card img {
  width: 166px;
  height: 166px;
  border-radius: 10px;
  background: #fff;
}

.select-search {
  margin-bottom: 8px;
}

.country-combobox {
  position: relative;
  min-width: 0;
}

.country-combobox-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  color: var(--text-strong);
  text-align: left;
}

.country-selected-flag,
.country-option .fi {
  width: 28px;
  height: 20px;
  flex: 0 0 28px;
  border-radius: 3px;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.country-selected-flag:not(.fi) {
  background: linear-gradient(135deg, var(--primary-soft), var(--surface-muted));
}

.country-selected-label {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-caret {
  flex: 0 0 auto;
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.country-combobox-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.country-combobox.is-open .country-combobox-menu {
  display: grid;
}

.country-search {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
}

.country-option-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
}

.country-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-strong);
  text-align: left;
}

.country-option:hover,
.country-option:focus-visible {
  background: var(--surface-muted);
}

.country-option[hidden] {
  display: none;
}

.account-scroll-panel {
  display: flex;
  flex-direction: column;
}

.account-scroll-panel .detail-list {
  min-height: 0;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  cursor: help;
}

.info-popover {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.info-popover-panel {
  position: absolute;
  top: 28px;
  left: -8px;
  z-index: 50;
  display: none;
  width: min(420px, 82vw);
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(21, 43, 77, 0.2);
  color: var(--text-strong);
}

.info-popover:hover .info-popover-panel,
.info-popover:focus-within .info-popover-panel {
  display: block;
}

.info-popover-panel strong {
  display: block;
  margin-bottom: 8px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.info-table th,
.info-table td {
  padding: 9px 10px;
  border: 0;
  text-align: left;
  vertical-align: top;
}

.info-table tr:nth-child(odd) {
  background: var(--surface-muted);
}

.info-table tr:nth-child(even) {
  background: #fff;
}

.info-table th {
  width: 38%;
  color: var(--text-strong);
}

.detail-link-list {
  display: grid;
  gap: 8px;
}

.tier-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tier-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.tier-card strong {
  font-size: 34px;
}

.tier-card ul {
  margin: 0;
  padding-left: 20px;
}

.tier-admin-grid {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.referral-tree,
.referral-tree ul {
  margin: 0;
  padding-left: 22px;
}

.referral-tree > ul {
  padding-left: 0;
}

.referral-tree li {
  margin: 10px 0;
  list-style: none;
  border-left: 2px solid var(--border);
  padding-left: 14px;
}

.tree-node {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.2fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-muted);
}

.tree-node small {
  font-weight: 800;
  color: var(--primary-strong);
}

.tree-node-warning {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
  background: color-mix(in srgb, var(--danger) 10%, var(--surface-muted));
}

.admin-management-grid {
  grid-template-columns: 1.35fr 0.92fr;
  align-items: stretch;
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.workspace-chart-card {
  display: grid;
  gap: 18px;
}

.workspace-chart-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 220px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(70, 180, 168, 0.12), rgba(70, 180, 168, 0.02));
}

.workspace-chart-bars span {
  display: block;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--success) 82%, #ffffff), var(--success));
}

.workspace-chart-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.workspace-chart-footer div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.workspace-chart-footer strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  font-size: 1.15rem;
}

.workspace-chart-footer span {
  color: var(--text-soft);
}

.theme-preview-grid {
  display: grid;
  gap: 16px;
}

.theme-preview-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.theme-preview-card strong {
  color: var(--text-strong);
  font-size: 1.2rem;
}

.theme-preview-card p {
  margin: 0;
}

.theme-preview-light {
  background: #ffffff;
}

.theme-preview-dark {
  background: #1b2026;
  color: #f2f7ff;
}

.theme-preview-dark strong {
  color: #ffffff;
}

.theme-swatch-row,
.theme-preview-bars {
  display: flex;
  align-items: end;
  gap: 10px;
}

.theme-swatch-row span {
  width: 42px;
  height: 28px;
  border-radius: 10px;
}

.theme-preview-bars span {
  width: 28px;
  border-radius: 10px 10px 6px 6px;
  background: var(--success);
}

.theme-preview-bars span:nth-child(1) {
  height: 44px;
}

.theme-preview-bars span:nth-child(2) {
  height: 68px;
  background: var(--primary);
}

.theme-preview-bars span:nth-child(3) {
  height: 34px;
  background: var(--danger);
}

.strategy-market-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.strategy-select-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.strategy-select-top,
.strategy-select-meta,
.strategy-select-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.strategy-select-price {
  font-weight: 900;
  color: var(--text-strong);
  font-size: 1.3rem;
}

.strategy-select-card h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--text-strong);
}

.strategy-select-card p {
  margin: 0;
  line-height: 1.7;
}

.strategy-select-meta span,
.strategy-select-note {
  color: var(--text-soft);
  font-size: 0.93rem;
}

.product-detail-modal {
  width: min(840px, 100%);
}

.product-detail-copy {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding: 18px;
  border-radius: 18px;
  background: var(--surface-muted);
  color: var(--text);
  line-height: 1.7;
}

.product-detail-copy p {
  margin: 0;
}

.broker-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.broker-option-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.broker-option-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.broker-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: #fff;
}

.broker-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--primary);
}

.button-ghost {
  background: transparent;
}

.button-disabled {
  opacity: 0.65;
  pointer-events: none;
}

.subscriptions-dashboard-grid {
  grid-template-columns: 1.2fr 0.92fr;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 16, 32, 0.58);
  backdrop-filter: blur(8px);
}

.modal-card {
  width: min(720px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-muted);
  color: var(--text-strong);
  font-size: 1.5rem;
  line-height: 1;
}

:root[data-theme="dark"] .workspace-panel,
:root[data-theme="dark"] .metric-card {
  background: #1b1e2f;
  border-color: rgba(150, 170, 255, 0.1);
  box-shadow: none;
}

:root[data-theme="dark"] .workspace-searchbar,
:root[data-theme="dark"] .workspace-user-pill,
:root[data-theme="dark"] .workspace-icon-pill,
:root[data-theme="dark"] .workspace-hero-card,
:root[data-theme="dark"] .strategy-select-card,
:root[data-theme="dark"] .workspace-chart-footer div {
  background: #1b1e2f;
  border-color: rgba(150, 170, 255, 0.1);
}

:root[data-theme="dark"] .workspace-hero-card,
:root[data-theme="dark"] .visual-card {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 18%, #1b2026),
    color-mix(in srgb, var(--primary-strong) 8%, #20262d)
  );
}

:root[data-theme="dark"] .detail-list div,
:root[data-theme="dark"] .checklist div,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .payment-address-card,
:root[data-theme="dark"] .qr-card {
  background: #232841;
}

:root[data-theme="dark"] .mini-card {
  border-color: rgba(150, 170, 255, 0.08);
}

:root[data-theme="dark"] .section-tab {
  border-color: rgba(150, 170, 255, 0.12);
  background: #1b1e2f;
  color: #aeb6d7;
}

:root[data-theme="dark"] .country-combobox-trigger,
:root[data-theme="dark"] .country-combobox-menu,
:root[data-theme="dark"] .country-option:hover,
:root[data-theme="dark"] .country-option:focus-visible {
  background: #121524;
}

:root[data-theme="dark"] .country-combobox-trigger,
:root[data-theme="dark"] .country-combobox-menu {
  border-color: rgba(150, 170, 255, 0.12);
}

:root[data-theme="dark"] .workspace-chart-bars {
  background: linear-gradient(180deg, rgba(70, 180, 168, 0.16), rgba(70, 180, 168, 0.04));
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92em;
}

@media (max-width: 1180px) {
  .hero-shell,
  .content-band,
  .workspace-shell {
    grid-template-columns: 1fr;
  }

  .workspace-shell {
    position: relative;
  }

  .workspace-sidebar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 15;
    width: min(360px, 100%);
    max-height: 100%;
    height: 100%;
  }

  .workspace-sidebar.is-open {
    display: flex;
  }

  .workspace-menu-button {
    display: inline-flex;
  }

  .band-cards,
  .dashboard-grid,
  .metric-grid,
  .admin-management-grid,
  .subscriptions-dashboard-grid,
  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .payment-transfer-grid {
    grid-template-columns: 1fr;
  }

  .qr-card {
    width: 100%;
  }

  .country-combobox-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 18px;
    max-height: min(520px, calc(100vh - 80px));
  }

  .country-option-list {
    max-height: min(400px, calc(100vh - 180px));
  }
}

@media (max-width: 920px) {
  .site-header {
    padding: 16px 18px;
  }

  .page-shell {
    padding: 24px 16px 72px;
    max-width: 100%;
  }

  .header-right {
    gap: 10px;
  }

  .theme-toggle {
    min-width: 120px;
  }

  .hero-copy,
  .hero-visual,
  .workspace-panel,
  .auth-card,
  .cta-banner {
    padding: 24px;
    border-radius: 28px;
  }

  .field-grid,
  .visual-grid,
  .band-cards,
  .metric-grid,
  .dashboard-grid,
  .admin-management-grid,
  .workspace-chart-footer,
  .subscriptions-dashboard-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .workspace-hero-card {
    flex-direction: column;
    align-items: stretch;
  }

  .workspace-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
  }

  .workspace-topbar-left {
    width: 64px;
  }

  .workspace-topbar-actions {
    justify-content: flex-end;
  }

  .workspace-searchbar {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: center;
  }

  .brand-subline {
    display: none;
  }

  .header-right {
    width: auto;
    margin-left: 0;
  }

  .header-actions {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    padding: 14px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    box-shadow: var(--shadow);
  }

  .header-actions.is-open,
  .workspace-sidebar.is-open {
    display: flex;
  }

  .nav-cluster,
  .hero-actions,
  .register-footer-actions,
  .inline-actions,
  .auth-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-toggle,
  .workspace-menu-button {
    display: inline-flex;
  }

  .button,
  .provider-button,
  .theme-toggle,
  .nav-link {
    width: 100%;
  }

  .language-shell {
    min-height: 48px;
  }

  .language-badge {
    min-width: 48px;
  }

  .theme-toggle {
    display: none;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .workspace-shell {
    position: relative;
  }

  .workspace-sidebar {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    z-index: 15;
    max-height: 100%;
    height: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 16px;
  }

  .workspace-topbar {
    padding: 18px 20px;
    border-radius: 22px;
  }

  .workspace-panel,
  .hero-copy,
  .hero-visual,
  .auth-card,
  .cta-banner {
    padding: 22px 18px;
  }

  .workspace-user-pill,
  .workspace-icon-pill {
    display: none;
  }

  .register-card {
    padding: 28px 22px;
  }

  .register-footer-actions .footer-pill {
    min-width: 0;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .site-header {
    gap: 12px;
    padding: 14px 12px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

  .brand {
    font-size: 1rem;
  }

  .header-right {
    gap: 8px;
  }

  .language-shell {
    max-width: none;
  }

  .language-code {
    font-size: 0.95rem;
  }

  .language-shell-button {
    min-width: 54px;
    padding: 0;
  }

  .language-menu {
    left: 0;
    right: auto;
    min-width: 190px;
  }

  .mobile-toggle,
  .workspace-menu-button {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .workspace-topbar-left,
  .workspace-topbar .workspace-menu-button {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .page-shell {
    padding-inline: 12px;
  }

  .hero-copy h1,
  .register-card h1,
  .workspace-topbar h1 {
    font-size: 2.15rem;
  }

  table th,
  table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
}
