@import url("../../assets/brands/tokvara/colors/tokvara-colors.css");
@import url("../../assets/brands/metavra/colors/metavra-colors.css");
@import url("../../assets/brands/cryptuix/colors/cryptuix-colors.css");
@import url("../../assets/brands/ethorus/colors/ethorus-colors.css");
@import url("../../assets/brands/chainuix/colors/chainuix-colors.css");

:root {
  color-scheme: dark;
  --bg: var(--tokvara-dark-background, #09111f);
  --bg-soft: #101827;
  --panel: #121c2e;
  --panel-strong: #172846;
  --line: rgba(255, 255, 255, 0.12);
  --text: var(--tokvara-text-primary, #f7f9ff);
  --muted: var(--tokvara-text-secondary, #a7b4cc);
  --accent: var(--tokvara-accent, #2dd4ff);
  --accent-strong: var(--tokvara-primary, #4f69f6);
  --gold: var(--tokvara-warning, #fdb022);
  --blue: var(--tokvara-primary, #4f69f6);
  --success: var(--tokvara-success, #32d583);
  --error: var(--tokvara-error, #f04438);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --header-surface: rgba(8, 16, 28, 0.76);
  --sidebar-surface: rgba(8, 16, 28, 0.82);
  --sidebar-hover-surface: rgba(255, 255, 255, 0.05);
  --sidebar-active-border: rgba(45, 212, 255, 0.36);
  --sidebar-active-surface: rgba(45, 212, 255, 0.12);
  --member-surface: rgba(8, 16, 28, 0.38);
  --modal-backdrop-surface: rgba(3, 8, 16, 0.72);
  --modal-surface: #0c1626;
  --network-option-surface: rgba(255, 255, 255, 0.035);
  --quick-amount-surface: rgba(255, 255, 255, 0.04);
  --hero-orbit-surface: linear-gradient(135deg, rgba(45, 212, 255, 0.1), transparent 45%), rgba(255, 255, 255, 0.03);
  --card-accent-glow: rgba(45, 212, 255, 0.22);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 255, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 16%, rgba(79, 105, 246, 0.16), transparent 28rem),
    linear-gradient(180deg, #09111f 0%, #0b1320 54%, #0c111a 100%);
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
}

body[data-brand="metavra"] {
  --bg: var(--metavra-deep, #17132B);
  --bg-soft: #211b3a;
  --panel: #251f42;
  --panel-strong: #30295a;
  --line: rgba(216, 211, 238, 0.18);
  --text: #f8f6ff;
  --muted: rgba(216, 211, 238, 0.78);
  --accent: var(--metavra-highlight, #B8AFFF);
  --accent-strong: var(--metavra-primary, #6C5CE7);
  --gold: var(--metavra-warning, #E7AD55);
  --blue: var(--metavra-secondary, #8B7CF6);
  --success: var(--metavra-success, #32C98A);
  --error: var(--metavra-error, #D65B72);
  background:
    radial-gradient(circle at 16% 10%, rgba(184, 175, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(108, 92, 231, 0.2), transparent 26rem),
    linear-gradient(180deg, #17132B 0%, #211B3D 54%, #151228 100%);
}

body[data-brand="cryptuix"] {
  --bg: var(--cryptuix-pearl-white, #F8FAF9);
  --bg-soft: var(--cryptuix-light-background, #F4F8F6);
  --panel: #ffffff;
  --panel-strong: var(--cryptuix-soft-mint, #DDF8EE);
  --line: rgba(19, 35, 31, 0.14);
  --text: var(--cryptuix-dark-text, #13231F);
  --muted: rgba(19, 35, 31, 0.68);
  --accent: var(--cryptuix-primary-emerald, #10B981);
  --accent-strong: var(--cryptuix-deep-emerald, #047857);
  --gold: var(--cryptuix-warning, #D99A3D);
  --blue: var(--cryptuix-primary-emerald, #10B981);
  --success: var(--cryptuix-success, #16A874);
  --error: var(--cryptuix-error, #D95757);
  background:
    radial-gradient(circle at 14% 8%, rgba(221, 248, 238, 0.9), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(16, 185, 129, 0.16), transparent 25rem),
    linear-gradient(180deg, #F8FAF9 0%, #F4F8F6 52%, #EAF5F0 100%);
}

body[data-brand="ethorus"] {
  --bg: var(--ethorus-deep-charcoal, #191816);
  --bg-soft: var(--ethorus-graphite, #2C2924);
  --panel: #25231F;
  --panel-strong: #322D25;
  --line: rgba(216, 179, 106, 0.22);
  --text: var(--ethorus-ivory, #F5F0E6);
  --muted: rgba(184, 177, 164, 0.88);
  --accent: var(--ethorus-champagne-gold, #D8B36A);
  --accent-strong: var(--ethorus-warm-gold, #B8893E);
  --gold: var(--ethorus-soft-gold, #F7DFA8);
  --blue: var(--ethorus-champagne-gold, #D8B36A);
  --success: #78B68B;
  --error: #D66F62;
  --header-surface: rgba(25, 24, 22, 0.9);
  --sidebar-surface: rgba(25, 24, 22, 0.94);
  --sidebar-hover-surface: rgba(216, 179, 106, 0.08);
  --sidebar-active-border: rgba(216, 179, 106, 0.48);
  --sidebar-active-surface: rgba(216, 179, 106, 0.15);
  --member-surface: rgba(37, 35, 31, 0.78);
  --modal-backdrop-surface: rgba(15, 14, 12, 0.76);
  --modal-surface: #25231F;
  --network-option-surface: rgba(37, 35, 31, 0.9);
  --quick-amount-surface: rgba(37, 35, 31, 0.82);
  --hero-orbit-surface: linear-gradient(135deg, rgba(216, 179, 106, 0.18), transparent 45%), rgba(255, 248, 232, 0.035);
  --card-accent-glow: rgba(216, 179, 106, 0.24);
  background:
    radial-gradient(circle at 15% 8%, rgba(216, 179, 106, 0.13), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(107, 82, 44, 0.2), transparent 26rem),
    linear-gradient(180deg, #191816 0%, #211F1B 54%, #171614 100%);
}

body[data-brand="chainuix"] {
  --bg: var(--chainuix-midnight, #0B1020);
  --bg-soft: var(--chainuix-near-black, #111827);
  --panel: #151B35;
  --panel-strong: var(--chainuix-deep-indigo, #1E1B4B);
  --line: rgba(196, 181, 253, 0.2);
  --text: var(--chainuix-ice-white, #F6F8FF);
  --muted: rgba(147, 197, 253, 0.82);
  --accent: var(--chainuix-electric-violet, #7C3AED);
  --accent-strong: var(--chainuix-indigo, #4F46E5);
  --gold: var(--chainuix-soft-blue, #93C5FD);
  --blue: var(--chainuix-indigo, #4F46E5);
  --success: #69D5B0;
  --error: #F06C9B;
  background:
    radial-gradient(circle at 14% 8%, rgba(124, 58, 237, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 14%, rgba(79, 70, 229, 0.2), transparent 26rem),
    linear-gradient(180deg, #0B1020 0%, #111827 54%, #090D1A 100%);
}

body[data-brand="cryptuix"] .site-header,
body[data-brand="cryptuix"] .app-sidebar {
  background: rgba(248, 250, 249, 0.86);
}

body[data-brand="cryptuix"] .app-sidebar {
  backdrop-filter: blur(18px);
}

body[data-brand="cryptuix"] select,
body[data-brand="cryptuix"] input,
body[data-brand="cryptuix"] textarea,
body[data-brand="cryptuix"] .language-select {
  color: var(--cryptuix-dark-text, #13231F);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(4, 120, 87, 0.26);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.06);
}

body[data-brand="cryptuix"] select:hover,
body[data-brand="cryptuix"] input:hover,
body[data-brand="cryptuix"] textarea:hover,
body[data-brand="cryptuix"] .language-select:hover {
  border-color: rgba(4, 120, 87, 0.44);
  background: var(--cryptuix-pearl-white, #F8FAF9);
}

body[data-brand="cryptuix"] select:focus,
body[data-brand="cryptuix"] input:focus,
body[data-brand="cryptuix"] textarea:focus,
body[data-brand="cryptuix"] .language-select:focus {
  outline: 3px solid rgba(16, 185, 129, 0.28);
  border-color: var(--cryptuix-deep-emerald, #047857);
  background: #ffffff;
}

body[data-brand="cryptuix"] select:disabled,
body[data-brand="cryptuix"] input:disabled,
body[data-brand="cryptuix"] textarea:disabled,
body[data-brand="cryptuix"] .language-select:disabled {
  color: rgba(19, 35, 31, 0.48);
  background: rgba(216, 222, 220, 0.56);
  border-color: rgba(19, 35, 31, 0.12);
}

body[data-brand="cryptuix"] select option,
body[data-brand="cryptuix"] .language-select option {
  color: var(--cryptuix-dark-text, #13231F);
  background: #ffffff;
}

body[data-brand="cryptuix"] select option:checked,
body[data-brand="cryptuix"] .language-select option:checked {
  color: #ffffff;
  background: var(--cryptuix-deep-emerald, #047857);
}

body[data-brand="cryptuix"] select option:hover,
body[data-brand="cryptuix"] .language-select option:hover {
  color: var(--cryptuix-dark-text, #13231F);
  background: var(--cryptuix-soft-mint, #DDF8EE);
}

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

.site-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: var(--header-surface);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-logo {
  width: 156px;
  height: auto;
  display: block;
}

.brand-symbol {
  width: 38px;
  height: 38px;
  display: block;
}

.brand-name {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.mobile-nav-menu {
  order: 1;
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.mobile-nav-panel {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-nav-menu > summary {
  display: none;
}

.main-nav {
  order: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.main-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: inherit;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.main-nav a:active,
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.main-nav a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
  outline-offset: 2px;
  color: var(--text);
}

.footer-links a:hover {
  color: var(--text);
}

.nav-action,
.primary-button,
.secondary-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

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

.mobile-nav-panel > .language-current {
  order: 2;
  flex: 0 0 auto;
}

.language-current {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.language-select {
  min-height: 36px;
  width: auto;
  max-width: 160px;
  padding: 0 30px 0 10px;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color-scheme: dark;
}

.language-select option {
  background: #101923;
  color: #f4f6fa;
}

.language-select option:checked,
.language-select option:hover {
  background: #1d5260;
  color: #ffffff;
}

.language-select option:disabled {
  background: #18222d;
  color: #b8c4d0;
}

.language-select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 72%, #ffffff);
  outline-offset: 2px;
}

/* The language control owns the visual border. Keep the native select
   borderless so the shared field styling cannot create a second rectangle. */
body[data-brand="ethorus"] .language-select,
body[data-brand="ethorus"] .language-select:hover,
body[data-brand="ethorus"] .language-select:focus {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

body[data-brand="ethorus"] .language-current > select[data-account-language-select],
body[data-brand="ethorus"] .language-current > select[data-account-language-select]:hover,
body[data-brand="ethorus"] .language-current > select[data-account-language-select]:focus {
  width: auto;
  min-height: 36px;
  max-width: 160px;
  padding: 0 30px 0 10px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: var(--ethorus-soft-gold, #F7DFA8);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color-scheme: dark;
}

body[data-brand="ethorus"] .language-current:focus-within {
  border-color: var(--ethorus-champagne-gold, #D8B36A);
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.16);
}

.app-language {
  flex: 0 0 auto;
}

.nav-action {
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.primary-button,
.secondary-button {
  padding: 0 22px;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #07111d;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-action:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 54px;
  padding: 62px 0 80px;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 18px max(-3vw, -36px) 26px;
  z-index: -2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(9, 17, 31, 0.96) 0%, rgba(9, 17, 31, 0.76) 42%, rgba(9, 17, 31, 0.2) 100%),
    url("../../assets/brands/tokvara/hero/tokvara-hero-background-1600x900.png") center right / cover no-repeat;
  opacity: 0.78;
}

body[data-brand="metavra"] .hero-section::before {
  background:
    linear-gradient(90deg, rgba(23, 19, 43, 0.95) 0%, rgba(23, 19, 43, 0.72) 42%, rgba(23, 19, 43, 0.22) 100%),
    url("../../assets/brands/metavra/hero/hero-desktop.png") center right / cover no-repeat;
  opacity: 0.82;
}

body[data-brand="cryptuix"] .hero-section::before {
  background:
    linear-gradient(90deg, rgba(248, 250, 249, 0.96) 0%, rgba(248, 250, 249, 0.74) 42%, rgba(248, 250, 249, 0.18) 100%),
    url("../../assets/brands/cryptuix/hero/hero-desktop.png") center right / cover no-repeat;
  opacity: 0.9;
}

body[data-brand="ethorus"] .hero-section::before {
  background:
    linear-gradient(90deg, rgba(25, 24, 22, 0.96) 0%, rgba(25, 24, 22, 0.76) 42%, rgba(25, 24, 22, 0.2) 100%),
    image-set(
      url("../../assets/brands/ethorus/hero/hero-desktop.avif") type("image/avif") 1x,
      url("../../assets/brands/ethorus/hero/hero-desktop.webp") type("image/webp") 1x,
      url("../../assets/brands/ethorus/hero/hero-desktop.png") type("image/png") 1x
    ) center right / cover no-repeat;
  opacity: 0.84;
}

body[data-brand="chainuix"] .hero-section::before {
  background:
    linear-gradient(90deg, rgba(11, 16, 32, 0.96) 0%, rgba(11, 16, 32, 0.74) 42%, rgba(11, 16, 32, 0.2) 100%),
    image-set(
      url("../../assets/brands/chainuix/hero/hero-desktop.avif") type("image/avif") 1x,
      url("../../assets/brands/chainuix/hero/hero-desktop.webp") type("image/webp") 1x,
      url("../../assets/brands/chainuix/hero/hero-desktop.png") type("image/png") 1x
    ) center right / cover no-repeat;
  opacity: 0.84;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.18rem;
}

.hero-subtitle,
.section p,
.site-footer p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: min(680px, 100%);
  font-size: 1.08rem;
}

.hero-copy {
  min-width: 0;
  max-width: 100%;
}

.hero-copy > .eyebrow {
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero-copy > h1 {
  margin-bottom: 20px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 28px;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
}

.hero-metrics span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics strong {
  color: var(--text);
}

.hero-visual {
  min-height: 520px;
  display: grid;
  place-items: center;
}

.card-orbit {
  width: min(100%, 490px);
  aspect-ratio: 1 / 1;
  position: relative;
  display: grid;
  place-items: center;
}

.card-orbit::before {
  content: "";
  position: absolute;
  inset: 5%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: var(--hero-orbit-surface);
}

.virtual-card {
  width: min(420px, 100%);
  aspect-ratio: 1.586 / 1;
  border-radius: 22px;
  padding: 18px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(150deg, #1b2f5e 0%, #0c1624 45%, #14264c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
}

body[data-brand="metavra"] .hero-visual .virtual-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 34%),
    url("../../assets/brands/metavra/card/card-bg-secondary.png") center / cover no-repeat,
    linear-gradient(150deg, #2B2452 0%, #17132B 100%);
}

body[data-brand="metavra"] .card-layout-financial {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    url("../../assets/brands/metavra/card/card-bg-primary.png") center / cover no-repeat,
    linear-gradient(150deg, #312A63 0%, #17132B 100%);
}

body[data-brand="cryptuix"] .hero-visual .virtual-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.36), transparent 36%),
    url("../../assets/brands/cryptuix/card/card-bg-secondary.png") center / cover no-repeat,
    linear-gradient(150deg, #FFFFFF 0%, #DDF8EE 48%, #10B981 100%);
  color: var(--cryptuix-dark-text, #13231F);
  border-color: rgba(16, 185, 129, 0.24);
}

body[data-brand="cryptuix"] .card-layout-financial {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 36%),
    url("../../assets/brands/cryptuix/card/card-bg-primary.png") center / cover no-repeat,
    linear-gradient(150deg, #FFFFFF 0%, #DDF8EE 50%, #10B981 100%);
  color: var(--cryptuix-dark-text, #13231F);
  border-color: rgba(16, 185, 129, 0.28);
}

body[data-brand="cryptuix"] .card-layout-financial .card-status-chip,
body[data-brand="cryptuix"] .card-layout-financial .card-network-badge {
  border-color: rgba(4, 120, 87, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cryptuix-deep-emerald, #047857);
}

body[data-brand="ethorus"] .hero-visual .virtual-card {
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.2), transparent 34%),
    image-set(
      url("../../assets/brands/ethorus/cards/card-bg-secondary.avif") type("image/avif") 1x,
      url("../../assets/brands/ethorus/cards/card-bg-secondary.webp") type("image/webp") 1x,
      url("../../assets/brands/ethorus/cards/card-bg-secondary.png") type("image/png") 1x
    ) center / cover no-repeat,
    linear-gradient(150deg, #3B3021 0%, #191816 100%);
  border-color: rgba(247, 223, 168, 0.34);
}

body[data-brand="ethorus"] .card-layout-financial {
  background:
    linear-gradient(135deg, rgba(255, 248, 232, 0.16), transparent 34%),
    url("../../assets/brands/ethorus/cards/card-bg-primary.png") center / cover no-repeat,
    linear-gradient(150deg, #3B3021 0%, #191816 100%);
  border-color: rgba(247, 223, 168, 0.34);
}

body[data-brand="ethorus"] .card-layout-financial .card-status-chip {
  border-color: rgba(247, 223, 168, 0.38);
  background: #191816;
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .card-layout-financial .card-network-badge {
  min-width: 0;
  border-color: rgba(247, 223, 168, 0.38);
  background: rgba(25, 24, 22, 0.82);
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .balance-panel,
body[data-brand="ethorus"] .coin-badge {
  border-color: rgba(216, 179, 106, 0.3);
  background: rgba(47, 41, 31, 0.88);
}

body[data-brand="ethorus"] .payment-flow-visual {
  border-color: rgba(216, 179, 106, 0.34);
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.14), rgba(37, 35, 31, 0.32)),
    rgba(255, 248, 232, 0.03);
}

body[data-brand="ethorus"] .payment-flow-step {
  border-color: rgba(247, 223, 168, 0.2);
  background: rgba(37, 35, 31, 0.8);
}

body[data-brand="ethorus"] .payment-flow-icon-0 {
  filter: drop-shadow(0 0 12px rgba(216, 179, 106, 0.22));
}

body[data-brand="ethorus"] .payment-flow-icon-1::before,
body[data-brand="ethorus"] .payment-flow-icon-2::before,
body[data-brand="ethorus"] .payment-flow-icon-3::before {
  background: rgba(216, 179, 106, 0.1);
}

body[data-brand="ethorus"] #card .icon-pill,
body[data-brand="ethorus"] #use-cases .icon-pill {
  border: 1px solid rgba(216, 179, 106, 0.4);
  background: rgba(216, 179, 106, 0.12);
  color: var(--ethorus-soft-gold, #F7DFA8);
}

body[data-brand="ethorus"] :is(#card, #use-cases) .feature-grid article {
  border-color: rgba(216, 179, 106, 0.22);
  background: rgba(37, 35, 31, 0.8);
}

body[data-brand="ethorus"] #advantages .advantage-list article {
  border-color: rgba(216, 179, 106, 0.24);
  background: linear-gradient(135deg, rgba(216, 179, 106, 0.1), rgba(37, 35, 31, 0.82));
}

body[data-brand="ethorus"] .auth-route-note,
body[data-brand="ethorus"] .auth-panel {
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.12), transparent 40%),
    rgba(37, 35, 31, 0.78);
}

body[data-brand="ethorus"] .language-select option {
  background: #25231F;
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .language-select option:checked,
body[data-brand="ethorus"] .language-select option:hover {
  background: #4A3B25;
  color: #FFFFFF;
}

body[data-brand="ethorus"] .language-select option:disabled {
  background: #322D25;
  color: rgba(245, 240, 230, 0.54);
}

body[data-brand="ethorus"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  border-color: rgba(216, 179, 106, 0.28);
  background: rgba(37, 35, 31, 0.9);
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea)::placeholder {
  color: rgba(245, 240, 230, 0.5);
}

body[data-brand="ethorus"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):hover {
  border-color: rgba(216, 179, 106, 0.46);
}

body[data-brand="ethorus"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):focus {
  border-color: var(--ethorus-champagne-gold, #D8B36A);
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.16);
  outline: none;
}

body[data-brand="ethorus"] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea):is(:disabled, [readonly]) {
  border-color: rgba(216, 179, 106, 0.14);
  background: rgba(25, 24, 22, 0.74);
  color: rgba(245, 240, 230, 0.52);
}

body[data-brand="ethorus"] select {
  color-scheme: dark;
}

body[data-brand="ethorus"] select option {
  background: #25231F;
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] select option:checked,
body[data-brand="ethorus"] select option:hover {
  background: #4A3B25;
  color: #FFFFFF;
}

body[data-brand="ethorus"] select option:disabled {
  background: #322D25;
  color: rgba(245, 240, 230, 0.54);
}

body[data-brand="ethorus"] input[type="file"] {
  padding: 7px 10px;
}

body[data-brand="ethorus"] input[type="file"]::file-selector-button {
  margin-right: 10px;
  border: 1px solid rgba(216, 179, 106, 0.38);
  border-radius: 5px;
  background: rgba(216, 179, 106, 0.12);
  color: var(--ethorus-soft-gold, #F7DFA8);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

body[data-brand="ethorus"] input[type="file"]::file-selector-button:hover {
  border-color: var(--ethorus-champagne-gold, #D8B36A);
  background: rgba(216, 179, 106, 0.2);
}

body[data-brand="ethorus"] .notification-panel {
  border-color: rgba(216, 179, 106, 0.26);
  background: rgba(37, 35, 31, 0.98);
}

body[data-brand="ethorus"] .notification-item {
  border-color: rgba(216, 179, 106, 0.18);
  background: rgba(25, 24, 22, 0.72);
}

body[data-brand="ethorus"] .notification-item.is-unread {
  border-color: rgba(216, 179, 106, 0.46);
  background: rgba(216, 179, 106, 0.1);
}

body[data-brand="ethorus"] .notice-list:not(.danger) {
  border-color: rgba(216, 179, 106, 0.24);
  background: rgba(37, 35, 31, 0.72);
}

body[data-brand="ethorus"] .notice-list:not(.danger) p {
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .deposit-payment-panel .notice-list:not(.danger) {
  border-color: rgba(216, 179, 106, 0.32);
  background: rgba(37, 35, 31, 0.82);
}

body[data-brand="ethorus"] .deposit-payment-panel .notice-list:not(.danger) p {
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .wallet-account-hint {
  border-color: rgba(216, 179, 106, 0.22);
  background: rgba(37, 35, 31, 0.72);
}

body[data-brand="ethorus"] .message-item {
  border-color: rgba(216, 179, 106, 0.18);
  background: rgba(25, 24, 22, 0.72);
}

body[data-brand="ethorus"] .message-item.unread {
  border-color: rgba(216, 179, 106, 0.38);
  background: rgba(216, 179, 106, 0.09);
}

body[data-brand="ethorus"] .account-card-panel .empty-state {
  padding: 18px;
  border: 1px solid rgba(216, 179, 106, 0.26);
  border-radius: 8px;
  background: rgba(37, 35, 31, 0.82);
}

body[data-brand="ethorus"] .account-card-panel .empty-state .icon-pill {
  background: rgba(216, 179, 106, 0.14);
  color: var(--ethorus-champagne-gold, #D8B36A);
}

body[data-brand="ethorus"] input[data-card-purchase-search] {
  border-color: rgba(216, 179, 106, 0.28);
  background: rgba(37, 35, 31, 0.9);
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] input[data-card-purchase-search]:focus {
  border-color: var(--ethorus-champagne-gold, #D8B36A);
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.16);
  outline: none;
}

body[data-brand="ethorus"] select[data-account-language-select] {
  border-color: rgba(216, 179, 106, 0.28);
  background: rgba(37, 35, 31, 0.9);
  color: var(--ethorus-ivory, #F5F0E6);
  color-scheme: dark;
}

body[data-brand="ethorus"] select[data-account-language-select]:focus {
  border-color: var(--ethorus-champagne-gold, #D8B36A);
  box-shadow: 0 0 0 3px rgba(216, 179, 106, 0.16);
  outline: none;
}

body[data-brand="ethorus"] select[data-account-language-select] option {
  background: #25231F;
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] select[data-account-language-select] option:checked,
body[data-brand="ethorus"] select[data-account-language-select] option:hover {
  background: #4A3B25;
  color: #FFFFFF;
}

body[data-brand="ethorus"] .support-card {
  border-color: rgba(216, 179, 106, 0.28);
  background: rgba(37, 35, 31, 0.82);
}

body[data-brand="chainuix"] .hero-visual .virtual-card {
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.12), transparent 36%),
    image-set(
      url("../../assets/brands/chainuix/cards/perspective/chainuix-card-perspective-1200x900.avif") type("image/avif") 1x,
      url("../../assets/brands/chainuix/cards/perspective/chainuix-card-perspective-1200x900.webp") type("image/webp") 1x,
      url("../../assets/brands/chainuix/cards/perspective/chainuix-card-perspective-1200x900.png") type("image/png") 1x
    ) center / cover no-repeat,
    linear-gradient(150deg, #1E1B4B 0%, #0B1020 100%);
}

body[data-brand="chainuix"] .card-layout-financial {
  background:
    linear-gradient(135deg, rgba(246, 248, 255, 0.1), transparent 36%),
    image-set(
      url("../../assets/brands/chainuix/cards/main/chainuix-card-main-1586x1000.avif") type("image/avif") 1x,
      url("../../assets/brands/chainuix/cards/main/chainuix-card-main-1586x1000.webp") type("image/webp") 1x,
      url("../../assets/brands/chainuix/cards/main/chainuix-card-main-1586x1000.png") type("image/png") 1x
    ) center / cover no-repeat,
    linear-gradient(150deg, #1E1B4B 0%, #0B1020 100%);
  border-color: rgba(196, 181, 253, 0.3);
}

body[data-brand="chainuix"] .card-layout-financial .card-status-chip,
body[data-brand="chainuix"] .card-layout-financial .card-network-badge {
  border-color: rgba(196, 181, 253, 0.34);
  background: rgba(11, 16, 32, 0.72);
  color: var(--chainuix-ice-white, #F6F8FF);
}

.virtual-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: var(--card-accent-glow);
}

.card-topline,
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}

.card-chip {
  width: 42px;
  height: 28px;
  border-radius: 8px;
  margin: 14px 0 8px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, #ffd979, #c9972b);
  background-size: 13px 100%, 100% 100%;
}

.card-balance {
  margin-bottom: 8px;
  font-size: 1.16rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.card-number {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}

.card-footer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.72);
  position: relative;
  z-index: 1;
}

.card-holder-name {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 900;
}

.card-status-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.card-status-chip {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  font-weight: 900;
}

.card-status-chip.success {
  color: #a8f8cf;
  background: rgba(50, 213, 131, 0.14);
}

.card-status-chip.danger {
  color: #ffb5ae;
  background: rgba(240, 68, 56, 0.16);
}

.balance-panel,
.coin-badge {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(18, 31, 49, 0.86);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.24);
}

.coin-badge img,
.asset-logo {
  display: block;
  width: 100%;
  height: 100%;
}

.coin-badge img {
  padding: 9px;
}

.card-brand-mark {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.card-brand-identity {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 900;
}

.card-network-badge {
  min-width: 74px;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.76rem;
  font-weight: 900;
}

.balance-panel {
  left: 4%;
  bottom: 10%;
  width: 210px;
  border-radius: 14px;
  padding: 16px;
}

.balance-panel span,
.balance-panel small {
  display: block;
  color: var(--muted);
}

.balance-panel strong {
  display: block;
  margin: 8px 0 4px;
  font-size: 1.7rem;
}

.coin-badge {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.coin-usdt {
  top: 8%;
  left: 12%;
  color: var(--success);
}

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

.feature-grid article,
.advantage-list article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.feature-grid article {
  min-height: 230px;
  padding: 26px;
}

.icon-pill {
  min-width: 44px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(45, 212, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.advantage-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 44px;
}

.payment-flow-visual {
  min-height: 286px;
  display: grid;
  align-content: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(45, 212, 255, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.11), rgba(8, 16, 28, 0.2)),
    rgba(255, 255, 255, 0.025);
}

.payment-flow {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr) auto
    minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.payment-flow-step {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 18px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.52);
  color: var(--text);
  text-align: center;
}

.payment-flow-icon {
  width: 52px;
  height: 52px;
  position: relative;
  flex: 0 0 auto;
  display: block;
  color: var(--accent);
}

.payment-flow-icon-0 {
  border-radius: 50%;
  filter: drop-shadow(0 0 12px rgba(45, 212, 255, 0.18));
}

.payment-flow-icon-1::before,
.payment-flow-icon-2::before,
.payment-flow-icon-3::before {
  content: "";
  position: absolute;
  inset: 7px 4px 9px;
  border: 2px solid currentColor;
  border-radius: 7px;
  background: rgba(45, 212, 255, 0.08);
}

.payment-flow-icon-1::after {
  content: "";
  position: absolute;
  top: 17px;
  right: 7px;
  width: 15px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 3px;
  background: var(--surface);
}

.payment-flow-icon-2::before {
  inset: 10px 3px;
  border-radius: 6px;
}

.payment-flow-icon-2::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 9px;
  width: 34px;
  border-top: 2px solid currentColor;
}

.payment-flow-icon-3::before {
  inset: 8px 4px;
  border-radius: 50%;
}

.payment-flow-icon-3::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 28px;
  font-weight: 800;
}

.payment-flow-label {
  font-weight: 750;
  line-height: 1.35;
}

.payment-flow-connector {
  color: var(--accent);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

@media (max-width: 760px) {
  .admin-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-dashboard-controls {
    justify-content: flex-start;
    width: 100%;
  }

  .admin-dashboard-owner {
    flex: 1 1 180px;
  }

  .admin-dashboard-metrics,
  .admin-dashboard-todos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-flow-visual {
    min-height: 0;
  }

  .payment-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .payment-flow-connector {
    transform: rotate(90deg);
  }

  .payment-flow-step {
    min-height: 124px;
  }
}

.advantage-list {
  display: grid;
  gap: 14px;
}

.advantage-list article {
  padding: 24px;
  background: linear-gradient(135deg, rgba(45, 212, 255, 0.08), rgba(255, 255, 255, 0.035));
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 0 22px;
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 800;
}

.faq-list p {
  margin-bottom: 20px;
}

.site-footer {
  padding: 38px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-content {
  width: 100%;
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
}

.share-panel {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.footer-share-panel {
  width: 100%;
  margin-top: 18px;
}

.footer-share-panel .share-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.blog-share-panel {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.blog-share-inline {
  width: min(100%, 680px);
  max-width: 100%;
  padding: 14px;
  background: rgba(255, 255, 255, 0.032);
}

.blog-share-inline .share-panel-head {
  font-size: 0.82rem;
}

.blog-share-inline .share-button {
  min-height: 44px;
  padding: 0 12px;
  font-size: 0.82rem;
}

.blog-share-ending {
  margin-top: 32px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  gap: 12px;
}

.blog-share-ending .share-panel-head {
  font-size: 0.9rem;
}

.blog-share-ending .share-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.blog-share-ending .share-button {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.78rem;
  white-space: nowrap;
}

.blog-share-ending .share-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.blog-share-ending .share-icon::before {
  width: 15px;
  height: 15px;
}

.blog-share-ending .share-feedback { font-size: 0.8rem; }
.blog-share-ending .share-feedback:empty { display: none; }

.share-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.share-panel-head strong {
  color: var(--text);
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.share-button {
  min-width: 0;
  min-height: 54px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  justify-items: start;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.share-button span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
}

.share-icon::before {
  content: "";
  width: 19px;
  height: 19px;
  display: block;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.share-icon-telegram::before {
  mask-image: url("../../assets/social/telegram.svg");
  -webkit-mask-image: url("../../assets/social/telegram.svg");
}

.share-icon-x::before {
  mask-image: url("../../assets/social/x.svg");
  -webkit-mask-image: url("../../assets/social/x.svg");
}

.share-icon-facebook::before {
  mask-image: url("../../assets/social/facebook.svg");
  -webkit-mask-image: url("../../assets/social/facebook.svg");
}

.share-icon-whatsapp::before {
  mask-image: url("../../assets/social/whatsapp.svg");
  -webkit-mask-image: url("../../assets/social/whatsapp.svg");
}

.share-icon-reddit::before {
  mask-image: url("../../assets/social/reddit.svg");
  -webkit-mask-image: url("../../assets/social/reddit.svg");
}

.share-icon-link::before {
  mask-image: url("../../assets/social/link.svg");
  -webkit-mask-image: url("../../assets/social/link.svg");
}

.share-icon-telegram {
  color: #229ed9;
}

.share-icon-x {
  color: #f5f7fa;
}

.share-icon-facebook {
  color: #1877f2;
}

.share-icon-whatsapp {
  color: #25d366;
}

.share-icon-reddit {
  color: #ff4500;
}

.share-button:hover,
.share-button:focus-visible {
  border-color: rgba(45, 212, 255, 0.42);
  background: rgba(45, 212, 255, 0.12);
  color: var(--accent);
}

.share-feedback {
  min-height: 20px;
  margin: 0;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
}

.blog-hero {
  max-width: 820px;
  padding-bottom: 54px;
}

.blog-hero h1 {
  max-width: 780px;
  font-size: clamp(2.7rem, 7vw, 5rem);
}

.blog-hero p:last-child {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
}

.blog-list-section {
  padding-top: 56px;
}

.blog-list {
  display: grid;
  gap: 18px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.07), transparent 42%),
    rgba(255, 255, 255, 0.045);
}

.blog-card-media {
  min-width: 0;
  aspect-ratio: 16 / 9;
  display: block;
  align-self: center;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.04);
}

.blog-card-media picture,
.blog-cover picture,
.blog-inline-image picture {
  width: 100%;
  height: 100%;
  display: block;
}

.blog-card-media img,
.blog-cover img,
.blog-inline-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.blog-card-body {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 28px;
}

.blog-card-body h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.blog-card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.blog-meta span,
.blog-meta time {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.read-more-link {
  width: max-content;
  color: var(--accent);
  font-weight: 900;
}

.blog-pagination {
  margin-top: 24px;
}

.blog-article-shell {
  max-width: 1040px;
  margin: 0 auto;
}

.blog-article {
  border-top: 0;
}

.blog-article-head {
  width: min(100%, 760px);
  margin-inline: auto;
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.blog-article-head h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  line-height: 1.16;
}

.blog-article-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.blog-cover {
  width: min(100%, 720px);
  margin: 0 auto 32px;
}

.blog-cover picture {
  width: 100%;
  height: auto;
}

.blog-cover img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.blog-inline-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  justify-self: center;
  min-height: 0;
  margin: 18px auto 0;
}

.blog-content .blog-inline-image + h2,
.blog-content .blog-flow + h2 {
  margin-top: 34px;
}

.blog-inline-image picture,
.blog-inline-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.blog-inline-image img {
  border-radius: 0;
  object-fit: contain;
}

.blog-content {
  display: grid;
  width: min(100%, 720px);
  margin: 0 auto;
  gap: 12px;
}

.blog-content > h2,
.blog-content > h3,
.blog-content > p,
.blog-content > ul,
.blog-content > ol {
  width: min(100%, 650px);
  margin-inline: auto;
}

.blog-content h2,
.related-posts h2 {
  margin: 34px 0 8px;
  font-size: clamp(1.5rem, 2.25vw, 1.85rem);
  line-height: 1.32;
}

.blog-content h3 {
  margin: 20px 0 2px;
  font-size: clamp(1.1rem, 1.65vw, 1.28rem);
  line-height: 1.45;
}

.related-posts h2 {
  margin: 18px 0 0;
}

.blog-content p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
}

.blog-content ul,
.blog-content ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-inline-start: 1.35rem;
  color: var(--muted);
  line-height: 1.75;
}

.blog-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

.blog-flow-step {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.blog-flow-arrow {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.blog-flow-arrow::before {
  content: "→";
  font-size: 1.45rem;
  font-weight: 800;
}

@media (max-width: 560px) {
  .blog-flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .blog-flow-arrow::before {
    content: "↓";
  }
}

.article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 900px);
  margin-top: 24px;
}

.article-nav-link,
.related-post-card {
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  line-height: 1.4;
}

.article-nav-link {
  display: grid;
  gap: 5px;
}

.article-nav-next {
  text-align: right;
}

.article-nav:has(> .article-nav-link:only-child) { grid-template-columns: minmax(0, 420px); }

.article-nav-label {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
}

.article-nav-link strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.article-nav-link:hover,
.article-nav-link:focus-visible {
  border-color: rgba(45, 212, 255, 0.42);
  background: rgba(45, 212, 255, 0.1);
}

@media (max-width: 1100px) {
  .blog-share-ending .share-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .blog-share-ending .share-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-share-ending .share-button {
    padding: 0 9px;
  }
}

.related-posts {
  display: grid;
  gap: 18px;
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.related-post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.related-post-card {
  display: grid;
  gap: 8px;
}

.related-post-card span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
}

.related-post-card strong {
  color: var(--text);
}

@media (max-width: 880px) {
  .site-shell {
    width: min(100% - 28px, 680px);
  }

  .site-header {
    min-height: auto;
    padding: 14px 0;
    align-items: center;
    flex-wrap: nowrap;
  }

  .mobile-nav-menu {
    order: 4;
    width: auto;
    display: block;
    position: relative;
    flex: 0 0 auto;
  }

  .mobile-nav-menu > summary {
    width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 900;
    list-style: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  }

  .mobile-nav-menu > summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav-menu > summary:hover,
  .mobile-nav-menu[open] > summary {
    border-color: color-mix(in srgb, var(--accent) 38%, transparent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    color: var(--accent);
  }

  .mobile-nav-menu > summary:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 34%, transparent);
    outline-offset: 2px;
  }

  .mobile-nav-trigger-icon {
    width: 18px;
    display: grid;
    gap: 3px;
  }

  .mobile-nav-trigger-icon span {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
  }

  .mobile-nav-panel {
    width: clamp(11rem, 45vw, 12.5rem);
    max-width: calc(100vw - 28px);
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    gap: 4px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
  }

  .mobile-nav-menu[open] .mobile-nav-panel,
  .mobile-nav-menu[open] .main-nav {
    display: grid;
  }

  .mobile-nav-panel > .language-current {
    width: fit-content;
    min-width: min(9.25rem, 100%);
    max-width: 100%;
    min-height: 44px;
    justify-content: flex-start;
    margin-left: 0;
    order: initial;
  }

  .main-nav {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 4px;
    margin: 0;
    padding: 0;
    order: initial;
    justify-items: start;
  }

  .main-nav a {
    min-height: 46px;
    width: fit-content;
    min-width: min(10rem, 100%);
    max-width: 100%;
    justify-content: flex-start;
    padding: 0 10px;
  }

  .nav-action {
    min-height: 38px;
    padding: 0 14px;
  }

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

  .hero-section,
  .split-section,
  .advantage-section {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    gap: 34px;
    padding: 46px 0 62px;
  }

  .hero-visual {
    min-height: 430px;
  }

  .feature-grid,
  .feature-grid.compact,
  .blog-card,
  .article-nav,
  .related-post-grid {
    grid-template-columns: 1fr;
  }

  .blog-card-media {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }

  .article-nav span:last-child {
    text-align: left;
  }

  .section {
    padding: 64px 0;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: flex;
    grid-template-columns: none;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .header-actions {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }

  .header-actions .nav-action {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 12px;
  }

  .brand-symbol {
    width: 34px;
    height: 34px;
  }

  .brand-logo {
    width: 128px;
  }

  .main-nav {
    font-size: 0.94rem;
  }

  .main-nav a {
    min-height: 46px;
    padding: 0 13px;
  }

  h1 {
    font-size: clamp(2.15rem, 8.8vw, 2.35rem);
  }

  .hero-actions a {
    width: 100%;
  }

  .blog-hero h1,
  .blog-article-head h1 {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .blog-card-body {
    padding: 22px 18px;
  }

  .blog-meta {
    gap: 8px;
  }

  .blog-meta span,
  .blog-meta time {
    min-height: 28px;
    font-size: 0.82rem;
  }

  .hero-metrics {
    display: grid;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-section::before {
    inset: 10px -14px 20px;
    background:
      linear-gradient(180deg, rgba(9, 17, 31, 0.94) 0%, rgba(9, 17, 31, 0.78) 54%, rgba(9, 17, 31, 0.5) 100%),
      url("../../assets/brands/tokvara/hero/tokvara-hero-background-1600x900.png") center right / cover no-repeat;
    opacity: 0.62;
  }

  body[data-brand="metavra"] .hero-section::before {
    background:
      linear-gradient(180deg, rgba(23, 19, 43, 0.95) 0%, rgba(23, 19, 43, 0.78) 54%, rgba(23, 19, 43, 0.52) 100%),
      url("../../assets/brands/metavra/hero/hero-mobile.png") center top / cover no-repeat;
    opacity: 0.7;
  }

  body[data-brand="cryptuix"] .hero-section::before {
    background:
      linear-gradient(180deg, rgba(248, 250, 249, 0.96) 0%, rgba(248, 250, 249, 0.82) 54%, rgba(248, 250, 249, 0.54) 100%),
      url("../../assets/brands/cryptuix/hero/hero-mobile.png") center top / cover no-repeat;
    opacity: 0.86;
  }

  body[data-brand="ethorus"] .hero-section::before {
    background:
      linear-gradient(180deg, rgba(25, 24, 22, 0.96) 0%, rgba(25, 24, 22, 0.8) 54%, rgba(25, 24, 22, 0.5) 100%),
      image-set(
        url("../../assets/brands/ethorus/hero/hero-mobile.avif") type("image/avif") 1x,
        url("../../assets/brands/ethorus/hero/hero-mobile.webp") type("image/webp") 1x,
        url("../../assets/brands/ethorus/hero/hero-mobile.png") type("image/png") 1x
      ) center top / cover no-repeat;
    opacity: 0.78;
  }

  body[data-brand="chainuix"] .hero-section::before {
    background:
      linear-gradient(180deg, rgba(11, 16, 32, 0.96) 0%, rgba(11, 16, 32, 0.8) 54%, rgba(11, 16, 32, 0.5) 100%),
      image-set(
        url("../../assets/brands/chainuix/hero/hero-mobile.avif") type("image/avif") 1x,
        url("../../assets/brands/chainuix/hero/hero-mobile.webp") type("image/webp") 1x,
        url("../../assets/brands/chainuix/hero/hero-mobile.png") type("image/png") 1x
      ) center top / cover no-repeat;
    opacity: 0.8;
  }

  .card-orbit {
    aspect-ratio: 0.9 / 1;
  }

  .virtual-card {
    padding: 22px;
  }

  .balance-panel {
    left: 0;
    bottom: 4%;
    width: 190px;
  }

  .coin-badge {
    width: 62px;
    height: 62px;
    font-size: 0.86rem;
  }
}

.app-body {
  min-height: 100vh;
}

.app-layout {
  width: min(1440px, 100%);
  max-width: 100vw;
  overflow-x: hidden;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.app-sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar-surface);
  backdrop-filter: blur(18px);
}

.app-sidebar-head {
  display: grid;
  gap: 14px;
}

.app-brand {
  padding: 0 8px;
}

.app-menu-button {
  display: none;
}

.app-nav {
  display: grid;
  gap: 8px;
}

.app-nav a,
.sidebar-return {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  color: var(--muted);
  border: 1px solid transparent;
  background: transparent;
  font-weight: 700;
}

/* Permission-gated account navigation is hidden until the server session grants access. */
.app-nav a[hidden] {
  display: none;
}

.app-nav a:hover,
.sidebar-return:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--sidebar-hover-surface);
}

.app-nav a.is-active,
.app-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--sidebar-active-border);
  background: var(--sidebar-active-surface);
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-return {
  margin-top: auto;
  border-color: var(--line);
}

.app-main {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  padding: 26px clamp(18px, 3vw, 42px) 62px;
}

.app-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.app-topbar h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.app-topbar-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.notification-wrap {
  position: relative;
}

.notification-button {
  position: relative;
  width: 48px;
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.notification-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f04438;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 3px #09111f;
}

.notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: min(380px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 130px));
  overflow-y: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.notification-panel[hidden] {
  display: none;
}

.notification-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 12px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.notification-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.notification-item {
  width: 100%;
  min-height: 0;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  text-align: left;
}

.notification-item.is-unread {
  border-color: rgba(45, 212, 255, 0.38);
  background: rgba(45, 212, 255, 0.1);
}

.notification-item span,
.notification-item small,
.notification-item time {
  color: var(--muted);
}

.notification-item span {
  font-size: 0.76rem;
  font-weight: 900;
}

.notification-item strong {
  font-size: 1rem;
}

.notification-item small {
  line-height: 1.45;
}

.notification-item time {
  font-size: 0.82rem;
  justify-self: end;
  margin-top: 10px;
}

.notification-item-heading { display:flex; align-items:baseline; gap:10px; padding:0; min-height:0; border:0; background:transparent; color:inherit; text-align:left; width:100%; }
.notification-item-heading strong { min-width:0; overflow-wrap:anywhere; }
.notification-item .inbox-message-text, .inbox-message-link { overflow-wrap:anywhere; }
.inbox-message-link { justify-self:start; color:var(--accent); font-size:0.9rem; }
.admin-inbox-link-fields { grid-column:1 / -1; display:grid; grid-template-columns:minmax(140px,1fr) minmax(220px,2fr); gap:12px; }
.admin-inbox-link-fields label { min-width:0; }
@media(max-width:600px) { .admin-inbox-link-fields { grid-template-columns:minmax(0,1fr); } }

.account-chip {
  min-width: 230px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.account-chip span,
.account-chip strong {
  display: block;
}

.account-chip span {
  color: var(--muted);
  font-size: 0.84rem;
}

.account-chip strong {
  margin-top: 4px;
  font-size: 0.96rem;
}

.app-section {
  min-width: 0;
  scroll-margin-top: 24px;
  padding: 34px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.06), transparent 34%),
    rgba(255, 255, 255, 0.045);
}

.app-section[hidden] {
  display: none;
}

.compact-heading {
  margin-bottom: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.summary-grid article,
.wallet-asset-card,
.account-card-panel,
.payment-panel,
.settings-grid article,
.kyc-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.summary-grid article {
  min-height: 150px;
  padding: 20px;
}

.summary-grid span,
.summary-grid small,
.detail-list dt,
.message-item span {
  color: var(--muted);
}

.summary-grid strong {
  display: block;
  margin: 10px 0 6px;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.two-column,
.deposit-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

#cards.two-column {
  grid-template-columns: 1fr;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.status-pill {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  font-weight: 800;
}

.status-pill.success {
  border-color: rgba(50, 213, 131, 0.34);
  color: var(--success);
  background: rgba(50, 213, 131, 0.1);
}

.status-pill.closed {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
}

.account-card-panel,
.payment-panel,
.kyc-panel {
  padding: 22px;
}

.app-card {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 22px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
}

.detail-list dd {
  text-align: right;
  font-weight: 800;
}

.asset-symbol {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 212, 255, 0.12);
  color: var(--accent);
  font-weight: 900;
}

.asset-logo {
  width: 58px;
  height: 58px;
}

.payment-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.payment-heading h3,
.payment-heading p {
  margin-bottom: 0;
}

.payment-network-icons {
  position: relative;
  width: 70px;
  height: 58px;
  flex: 0 0 70px;
}

.payment-network-icons .asset-logo {
  position: absolute;
  left: 0;
  top: 0;
  width: 52px;
  height: 52px;
}

.payment-network-icons .network-logo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 30px;
  padding: 3px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--panel);
}

.address-text,
.detail-list dd {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.notice-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 14px;
  border: 1px solid rgba(45, 212, 255, 0.18);
  border-radius: 8px;
  background: rgba(45, 212, 255, 0.07);
}

.notice-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wallet-records {
  margin-top: 22px;
}

.deposit-record-status {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.84rem;
  white-space: nowrap;
}

.wallet-record-status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}

.wallet-record-type {
  font-weight: 700;
  white-space: nowrap;
}

.wallet-record-type-deposit {
  color: var(--accent);
}

.wallet-record-type-withdrawal {
  color: var(--gold);
}

.wallet-record-id {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: left;
  white-space: nowrap;
}

.wallet-record-id:hover,
.wallet-record-id:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.wallet-record-id-modal {
  width: min(460px, calc(100vw - 32px));
}

.wallet-record-id-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.wallet-record-id-details > div {
  display: grid;
  gap: 4px;
}

.wallet-record-id-details dt {
  color: var(--muted);
  font-size: 0.84rem;
}

.wallet-record-id-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.deposit-record-row {
  cursor: pointer;
}

.deposit-record-row:hover td {
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}

.deposit-record-status:hover,
.deposit-record-status:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.wallet-overview {
  width: min(100%, 1040px);
}

.wallet-asset-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 18px 22px;
}

.wallet-asset-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wallet-asset-main span {
  display: inline;
  color: var(--muted);
  font-weight: 800;
}

.wallet-summary-values { --wallet-summary-amount-size: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; min-width: 0; }
.wallet-summary-values > div { min-width: 0; }
.wallet-summary-label { display: block; color: var(--muted); font-size: 0.875rem; line-height: 1.5; }
.wallet-summary-values strong { display: block; color: var(--text); font-size: var(--wallet-summary-amount-size); line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wallet-summary-values strong small { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.wallet-summary-values .wallet-frozen-value strong,
.wallet-summary-values .wallet-frozen-value strong small { color: #ef929b; }
.wallet-summary-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.wallet-summary-actions button:disabled { opacity: 0.5; cursor: not-allowed; }

.wallet-funds-region { display: contents; }
.wallet-account-hint { display: none; }
@media (min-width: 1101px) {
  .wallet-asset-card {
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, 0.85fr);
    gap: 24px;
    align-items: stretch;
  }
  .wallet-funds-region {
    display: grid;
    grid-template-columns: 72px minmax(240px, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 20px;
    row-gap: 8px;
    min-width: 0;
  }
  .wallet-funds-region .wallet-asset-main { display: contents; }
  .wallet-funds-region .asset-logo {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 72px;
    height: 72px;
  }
  .wallet-funds-region .wallet-asset-main > span {
    grid-column: 2;
    grid-row: 1;
    color: var(--accent);
    font-size: 1.125rem;
    line-height: 1.3;
  }
  .wallet-funds-region .wallet-summary-values {
    grid-column: 2;
    grid-row: 2;
    align-items: start;
    gap: 10px 72px;
  }
  .wallet-funds-region .wallet-summary-values strong { font-size: var(--wallet-summary-amount-size); }
  .wallet-funds-region .wallet-summary-actions {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    justify-self: end;
    gap: 12px;
    white-space: nowrap;
  }
  .wallet-account-hint {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255,255,255,0.025);
    padding: 18px 24px;
    color: var(--muted);
    overflow-wrap: anywhere;
  }
  .wallet-account-hint h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.5; }
  .wallet-account-hint p { margin: 0; font-size: 0.875rem; line-height: 1.65; }
  .wallet-account-hint small { display: block; margin-top: 8px; font-size: 0.75rem; line-height: 1.6; }
  .wallet-frozen-hint { display: none; }
  .wallet-asset-card:has([data-wallet-frozen]:not([hidden])) .wallet-frozen-hint { display: block; }
  .wallet-asset-card:has([data-wallet-frozen]:not([hidden])) .wallet-general-hint { display: none; }
}

@media (max-width: 1100px) {
  .wallet-asset-card { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .wallet-asset-main { grid-column: 1; }
  .wallet-summary-values { grid-column: 1 / -1; grid-row: 2; min-height: 64px; gap: 10px 20px; }
  .wallet-summary-values { --wallet-summary-amount-size: 1.5rem; }
  .wallet-summary-actions { grid-column: 2; grid-row: 1; }
  .wallet-asset-card .wallet-summary-actions button { width: auto; min-width: 64px; padding-inline: 12px; }
}

@media (max-width: 700px) {
  .wallet-asset-main span {
    max-inline-size: 100%;
    color: var(--accent);
    font-size: 1.125rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
}

[data-wallet-frozen][hidden] {
  display: none !important;
}

.wallet-asset-card button {
  min-width: 112px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  background: var(--accent);
  color: #06120e;
  font-weight: 900;
}


.deposit-form,
.settings-grid {
  display: grid;
  gap: 14px;
}

.deposit-form {
  margin-top: 24px;
}

.card-topup-form {
  max-width: 920px;
}

.card-topup-card-select {
  max-width: 440px;
}

.card-topup-form input[data-card-topup-amount] {
  appearance: textfield;
}

.card-topup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.card-topup-summary div {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 82%, #07111e);
}

.card-topup-summary dt {
  font-size: .8rem;
  color: var(--muted);
}

.card-topup-summary dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

.card-topup-summary div:last-child dd {
  color: var(--accent);
}

.card-topup-submit-row {
  display: flex;
  align-items: end;
  gap: 10px;
  width: fit-content;
}

.card-topup-submit-row label {
  flex: 0 1 400px;
  width: min(400px, 100%);
  min-width: 0;
}

.card-topup-submit-row input {
  width: 400px;
  max-width: 100%;
}

.card-topup-submit-row button {
  flex: 0 0 110px;
  width: 110px;
  min-width: 110px;
}

.card-topup-history {
  margin-top: 26px;
}

.card-topup-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-topup-history-heading h3,
.card-topup-history-heading p {
  margin: 0;
}

.card-topup-history-heading p {
  color: var(--muted);
  font-size: .875rem;
}

.card-topup-history .pagination {
  margin-top: 14px;
}

.card-topup-confirm-modal {
  width: min(480px, 100%);
}

.admin-shared-confirm-details {
  display: grid;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-shared-confirm-details div {
  display: grid;
  grid-template-columns: minmax(112px, .7fr) minmax(0, 1.3fr);
  gap: 16px;
  align-items: center;
  padding: 11px 13px;
  background: color-mix(in srgb, var(--panel) 82%, #07111e);
}

.admin-shared-confirm-details dt {
  color: var(--muted);
  font-size: .875rem;
}

.admin-shared-confirm-details dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.admin-shared-confirm-details .is-emphasized dd {
  color: var(--accent);
  font-size: 1.05rem;
}

@media (max-width: 640px) {
  .card-topup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-topup-submit-row {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .card-topup-submit-row label,
  .card-topup-submit-row input {
    width: 100%;
  }

  .card-topup-submit-row button {
    width: 100%;
    min-width: 0;
  }

  .card-topup-history-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-shared-confirm-details div {
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

.deposit-modal-backdrop[hidden] {
  display: none;
}

.deposit-modal {
  width: min(680px, 100%);
}

.modal-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.modal-title-row .compact-heading {
  margin-bottom: 0;
}

.modal-close-button {
  flex: 0 0 auto;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
}

.network-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.network-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--muted);
  font-weight: 800;
}

.network-option {
  position: relative;
  display: block;
  min-width: 0;
  cursor: pointer;
}

.network-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.network-option-content {
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--network-option-surface);
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.network-option-content img {
  width: 30px;
  height: 30px;
}

.network-option-content span {
  min-width: 0;
}

.network-option-content strong,
.network-option-content small {
  display: block;
}

.network-option-content strong {
  color: var(--text);
  font-size: 0.95rem;
}

.network-option-content small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.network-option:hover .network-option-content,
.network-option input:focus-visible + .network-option-content {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.network-option input:checked + .network-option-content {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* Shared read-only external-wallet surface. It inherits the active brand variables. */
.admin-metrics-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.admin-metric { min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.admin-metric span { display: block; color: var(--muted); font-size: .8rem; }
.admin-metric strong { display: block; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; }
.admin-segmented { display: flex; gap: 6px; align-items: center; }
.admin-segmented button.is-active { border-color: var(--accent); color: var(--accent); }
@media (max-width: 1100px) { .admin-metrics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .admin-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.traffic-analytics-section {
  display: grid;
  gap: 16px;
}

.traffic-analytics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.traffic-attribution {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 700;
}

.traffic-attribution select {
  width: auto;
  min-width: 132px;
  min-height: 34px;
  padding: 5px 28px 5px 10px;
}

.traffic-range button {
  min-width: 58px;
  white-space: nowrap;
}

body[data-brand="ethorus"] :is(.admin-segmented, .admin-dashboard-period) button {
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] :is(.admin-segmented, .admin-dashboard-period) button:hover,
body[data-brand="ethorus"] :is(.admin-segmented, .admin-dashboard-period) button.is-active {
  border-color: color-mix(in srgb, var(--accent) 68%, transparent);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--ethorus-ivory, #F5F0E6);
}

.traffic-metrics-grid {
  margin: 0;
  gap: 12px;
}

.traffic-metrics-grid .admin-metric {
  padding: 12px;
}

.traffic-filter-toolbar {
  display: grid;
  grid-template-columns: minmax(116px, .8fr) minmax(130px, .9fr) minmax(220px, 1.5fr) auto;
  align-items: end;
  gap: 10px;
  margin: 0;
}

.traffic-filter-toolbar label,
.traffic-filter-toolbar select,
.traffic-filter-toolbar input {
  min-width: 0;
}

.traffic-filter-toolbar .traffic-search {
  min-width: 0;
}

.traffic-table-wrap {
  overflow-x: hidden;
}

.traffic-analytics-table {
  table-layout: fixed;
  width: 100%;
}

.traffic-analytics-table col:nth-child(1) { width: 11%; }
.traffic-analytics-table col:nth-child(2) { width: 10%; }
.traffic-analytics-table col:nth-child(3) { width: 16%; }
.traffic-analytics-table col:nth-child(4) { width: 8%; }
.traffic-analytics-table col:nth-child(5) { width: 9%; }
.traffic-analytics-table col:nth-child(6) { width: 11%; }
.traffic-analytics-table col:nth-child(7) { width: 14%; }
.traffic-analytics-table col:nth-child(8) { width: 12%; }
.traffic-analytics-table col:nth-child(9) { width: 9%; }

.traffic-analytics-table th,
.traffic-analytics-table td {
  padding: 10px 8px;
  white-space: nowrap;
}

.traffic-analytics-table th {
  font-size: .76rem;
}

.traffic-analytics-table td:nth-child(-n + 3) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.traffic-empty-row td {
  padding: 28px 12px;
  text-align: center;
  color: var(--muted);
}

.traffic-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.traffic-pagination .admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  justify-content: flex-end;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .traffic-filter-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .traffic-filter-toolbar button { width: fit-content; }
  .traffic-table-wrap { overflow-x: auto; }
  .traffic-analytics-table { min-width: 860px; }
}

.wallet-authorization-shell {
  width: min(820px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 88px;
}

body[data-wallet-authorization-mode] {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 52rem 38rem at 50% -12%, rgba(216, 179, 106, 0.14), transparent 66%),
    radial-gradient(ellipse 42rem 34rem at 8% 88%, rgba(101, 73, 36, 0.1), transparent 72%),
    linear-gradient(145deg, #151410 0%, #1a1814 48%, #12110f 100%);
  background-attachment: fixed;
}

.wallet-authorization-header {
  display: grid;
  justify-items: center;
}

.wallet-authorization-header .brand { display: grid; justify-items: center; gap: 10px; color: var(--text); font-size: 1.24rem; font-weight: 800; letter-spacing: 0; line-height: 1.2; text-decoration: none; }
.wallet-authorization-header .brand-logo { width: auto; height: 84px; }

.wallet-authorization-main { display: grid; gap: 20px; margin-top: 30px; }

.wallet-authorization-intro { max-width: 620px; }
.wallet-authorization-intro h1 { margin: 6px 0 10px; font-size: clamp(2rem, 5vw, 3rem); }
.wallet-authorization-intro p:last-child { margin: 0; color: var(--muted); line-height: 1.7; }

.wallet-authorization-card {
  display: grid;
  gap: 16px;
  width: min(680px, 100%);
  margin: 0 auto;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--member-surface, var(--panel)) 92%, #0e0d0b);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.28);
}

.wallet-authorization-network {
  min-height: 78px;
  display: grid;
  grid-template-columns: 30px 30px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.wallet-authorization-network img { width: 30px; height: 30px; }
.wallet-authorization-network strong, .wallet-authorization-network small { display: block; }
.wallet-authorization-network small { margin-top: 2px; color: var(--muted); }

.wallet-authorization-section { display: grid; gap: 12px; }
.wallet-authorization-section h2 { margin: 0; font-size: 1rem; }
.wallet-authorization-wallets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

.wallet-authorization-wallet {
  position: relative;
  isolation: isolate;
  min-height: 98px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  overflow: hidden;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--network-option-surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wallet-authorization-wallet::before {
  position: absolute;
  z-index: 0;
  top: -34%;
  bottom: -34%;
  left: -38%;
  width: 24%;
  content: '';
  opacity: 0;
  pointer-events: none;
  transform: skewX(-18deg) translateX(0);
  background: linear-gradient(90deg, transparent 0%, rgba(247, 223, 168, 0.06) 20%, rgba(247, 223, 168, 0.72) 50%, rgba(216, 179, 106, 0.14) 76%, transparent 100%);
  filter: blur(1px);
}

.wallet-authorization-wallet:not(.is-unavailable):hover:not(:disabled), .wallet-authorization-wallet:not(.is-unavailable):focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  outline: none;
}

.wallet-authorization-wallet:disabled { cursor: wait; opacity: 0.62; }
.wallet-authorization-wallet.is-unavailable { cursor: not-allowed; opacity: 0.58; }
.wallet-authorization-wallet[data-processing="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wallet-authorization-wallet img { position: relative; z-index: 1; width: 48px; height: 48px; object-fit: contain; }
.wallet-authorization-wallet-fallback-icon {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 900;
}
.wallet-authorization-wallet span { position: relative; z-index: 1; overflow: hidden; font-size: 1.16rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

@keyframes wallet-authorization-gold-sweep {
  0%, 16% { opacity: 0; transform: skewX(-18deg) translateX(0); }
  25%, 48% { opacity: 0.82; }
  62%, 100% { opacity: 0; transform: skewX(-18deg) translateX(720%); }
}

@media (hover: hover) and (pointer: fine) {
  .wallet-authorization-wallet:not(.is-unavailable):not(:disabled):not([data-processing="true"]):hover::before {
    animation: wallet-authorization-gold-sweep 2.9s ease-in-out infinite;
  }
}

.wallet-authorization-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.wallet-authorization-details div { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: color-mix(in srgb, var(--panel) 80%, transparent); }
.wallet-authorization-details dt { color: var(--muted); font-size: 0.82rem; }
.wallet-authorization-details dd { margin: 6px 0 0; overflow-wrap: anywhere; color: var(--text); font-weight: 800; }
.wallet-authorization-details [data-status="authorized"] { color: var(--success); }
.wallet-authorization-details [data-status="not_authorized"] { color: var(--gold); }

.wallet-authorization-actions { display: flex; justify-content: flex-end; gap: 10px; }
.wallet-authorization-confirmation { display: grid; gap: 16px; padding-top: 4px; border-top: 1px solid var(--line); }
.wallet-authorization-confirmation h2 { margin: 0; font-size: 1rem; }
.wallet-authorization-confirmation .wallet-authorization-actions { justify-content: space-between; }

@media (max-width: 620px) {
  .wallet-authorization-shell { width: min(100% - 28px, 820px); padding: 42px 0 60px; }
  .wallet-authorization-header .brand { gap: 8px; font-size: 1.1rem; }
  .wallet-authorization-header .brand-logo { height: 70px; }
  .wallet-authorization-main { margin-top: 24px; }
  .wallet-authorization-card { padding: 26px 20px; }
  .wallet-authorization-wallet { min-height: 88px; gap: 14px; }
  .wallet-authorization-wallet img, .wallet-authorization-wallet-fallback-icon { width: 42px; height: 42px; }
  .wallet-authorization-wallet span { font-size: 1.06rem; }
  .wallet-authorization-wallets, .wallet-authorization-details { grid-template-columns: 1fr; }
  .wallet-authorization-actions, .wallet-authorization-confirmation .wallet-authorization-actions { align-items: stretch; flex-direction: column-reverse; }
}

.deposit-quick-amounts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.deposit-quick-amounts button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: var(--quick-amount-surface);
  color: var(--text);
  font-size: 0.88rem;
}

.deposit-quick-amounts button:hover,
.deposit-quick-amounts button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.deposit-custom-amount {
  min-height: 38px;
  padding: 0 10px;
  border-color: var(--line);
  background: var(--quick-amount-surface);
  font-size: 0.88rem;
}

.deposit-custom-amount::placeholder {
  color: var(--muted);
  opacity: 1;
}

.payment-countdown {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 18px auto 16px;
  text-align: center;
}

.card-purchase-payment-modal .modal-title-row .section-heading > p {
  margin: 10px 0 16px;
  line-height: 1.55;
}

.card-purchase-payment-modal .payment-panel { margin-top: 4px; }

.payment-countdown-label {
  color: #ff6b72;
  font-size: 1.05rem;
  letter-spacing: 0;
  font-weight: 850;
}

.payment-countdown-value {
  color: #ff7f86;
  font-size: 2.15rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

@media (max-width: 560px) {
  .payment-countdown-value {
    font-size: 1.9rem;
  }
}

.payment-address-row dd {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.payment-address-row .address-text {
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.payment-address-row .mini-copy-button {
  min-width: 72px;
  width: auto;
  min-height: 36px;
  height: 36px;
  padding: 0;
  white-space: nowrap;
}

.deposit-payment-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.deposit-payment-panel .notice-list {
  gap: 10px;
  margin-top: 20px;
  padding: 15px 16px;
  border-color: rgba(255, 127, 134, 0.38);
  border-left-width: 3px;
  background: rgba(255, 107, 114, 0.09);
}

.deposit-payment-panel .notice-list p {
  color: #ffd4d7;
  font-weight: 700;
  line-height: 1.65;
}

.product-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.product-home-actions button {
  flex: 1 1 180px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

select,
input,
textarea {
  min-height: 46px;
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 16, 28, 0.86);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

/* Native controls retain their compact dark appearance while opened in Chromium browsers. */
select { color-scheme: dark; }
select option { background: #101923; color: #f4f6fa; }
select option:checked, select option:hover { background: #1d5260; color: #ffffff; }
select option:disabled { background: #18222d; color: #8d9aaa; }

textarea {
  padding-top: 12px;
  line-height: 1.5;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #06120e;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.logout-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.qr-box {
  box-sizing: border-box;
  width: min(260px, 100%);
  aspect-ratio: 1 / 1;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 8px;
  background: #f5f8fb;
}

.generated-qr-box {
  display: flex;
}

.generated-qr {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 0.88rem;
}

.member-records-table th,
.member-records-table td {
  vertical-align: middle;
}

.member-deposit-records-table th:nth-child(1),
.member-deposit-records-table td:nth-child(1) { text-align: left; }
.member-deposit-records-table th:nth-child(2),
.member-deposit-records-table td:nth-child(2),
.member-deposit-records-table th:nth-child(3),
.member-deposit-records-table td:nth-child(3),
.member-deposit-records-table th:nth-child(4),
.member-deposit-records-table td:nth-child(4),
.member-billing-records-table th:nth-child(n + 2),
.member-billing-records-table td:nth-child(n + 2) { text-align: center; white-space: nowrap; }
.member-wallet-records-table th:nth-child(1),
.member-wallet-records-table td:nth-child(1),
.member-wallet-records-table th:nth-child(2),
.member-wallet-records-table td:nth-child(2) { text-align: left; white-space: nowrap; }
.member-wallet-records-table th:nth-child(n + 3),
.member-wallet-records-table td:nth-child(n + 3) { text-align: center; white-space: nowrap; }
.member-wallet-records-table {
  min-width: 0;
  table-layout: fixed;
}
.member-wallet-records-table th,
.member-wallet-records-table td { padding: 12px 10px; }
.member-wallet-records-table th:nth-child(1),
.member-wallet-records-table td:nth-child(1) { width: 10%; }
.member-wallet-records-table th:nth-child(2),
.member-wallet-records-table td:nth-child(2) { width: 23%; }
.member-wallet-records-table th:nth-child(3),
.member-wallet-records-table td:nth-child(3) { width: 16%; }
.member-wallet-records-table th:nth-child(4),
.member-wallet-records-table td:nth-child(4) { width: 16%; }
.member-wallet-records-table th:nth-child(5),
.member-wallet-records-table td:nth-child(5) { width: 18%; }
.member-wallet-records-table th:nth-child(6),
.member-wallet-records-table td:nth-child(6) { width: 17%; }
.member-wallet-records-table .deposit-record-status,
.member-wallet-records-table .wallet-record-status { min-width: 0; padding-inline: 8px; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pagination-button,
.pagination-number {
  min-height: 38px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.pagination-button {
  padding: 0 14px;
}

.pagination-number {
  min-width: 38px;
  padding: 0 10px;
}

.pagination-number.is-active {
  border-color: rgba(45, 212, 255, 0.48);
  background: rgba(45, 212, 255, 0.14);
  color: var(--text);
}

.pagination-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.pagination-ellipsis,
.pagination-status {
  color: var(--muted);
  font-weight: 800;
}

.pagination-status {
  margin-left: auto;
  font-size: 0.9rem;
}

.admin-body {
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
}

.admin-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 20px clamp(18px, 4vw, 56px) 48px;
}

.admin-header,
.admin-overview,
.admin-toolbar,
.admin-list-head,
.admin-header-actions,
.admin-row-actions,
.admin-management-actions,
.admin-preview-row {
  display: flex;
  align-items: center;
}

.admin-header {
  gap: 24px;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
}

.admin-header-title {
  min-width: 0;
}

.admin-header-title .section-kicker,
.admin-overview .section-kicker {
  margin: 0 0 3px;
}

.admin-header h1,
.admin-overview h2,
.admin-list-head h2 {
  margin: 0;
}

.admin-header-actions {
  margin-left: auto;
  gap: 10px;
}

.admin-role-chip,
.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.admin-role-chip,
.admin-status.is-published {
  border-color: rgba(45, 212, 255, 0.42);
  color: var(--accent);
  background: rgba(45, 212, 255, 0.09);
}

.admin-status.is-scheduled {
  border-color: rgba(241, 191, 104, 0.42);
  color: #f1bf68;
  background: rgba(241, 191, 104, 0.09);
}

.admin-status.is-unpublished {
  border-color: rgba(232, 107, 120, 0.42);
  color: #ef9ba4;
  background: rgba(232, 107, 120, 0.08);
}

.admin-status.is-draft {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.admin-main {
  display: grid;
  min-width: 0;
  gap: 22px;
  padding-top: 30px;
}

.admin-overview {
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.admin-overview p {
  max-width: 620px;
  margin: 8px 0 0;
  color: var(--muted);
}

.admin-overview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
}

.admin-overview-meta div {
  padding: 10px 0 10px 16px;
  border-left: 1px solid var(--line);
}

.admin-overview-meta dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-overview-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-dashboard-header,
.admin-dashboard-controls,
.admin-dashboard-period,
.admin-dashboard-todo {
  display: flex;
  align-items: center;
}

.admin-dashboard-header {
  justify-content: space-between;
  gap: 18px;
}

.admin-dashboard-header .section-kicker {
  margin: 0 0 3px;
}

.admin-dashboard-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.admin-dashboard-controls {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard-period {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-dashboard-period button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.admin-dashboard-period button:first-child {
  border-left: 0;
}

.admin-dashboard-period button:hover,
.admin-dashboard-period button.is-active {
  background: rgba(45, 212, 255, 0.1);
  color: var(--accent);
}

.admin-dashboard-owner {
  display: grid;
  gap: 4px;
  min-width: 178px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-dashboard-owner select {
  min-height: 32px;
  padding-block: 4px;
}

.admin-dashboard-metrics,
.admin-dashboard-todos {
  display: grid;
  gap: 12px;
}

.admin-dashboard-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-dashboard-authorization-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-dashboard-authorization-links > div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.admin-dashboard-authorization-links button {
  min-height: 28px;
  padding: 3px 10px;
}

.admin-dashboard-authorization-links small { min-width: 4.5em; color: var(--accent); }

.admin-dashboard-referral-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  padding: 3px 0;
}

.admin-dashboard-referral-links > h2 {
  margin: 0;
  font-size: 1.05rem;
  white-space: nowrap;
}

.admin-dashboard-referral-group {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 30px;
  color: var(--muted);
}

.admin-dashboard-referral-links code {
  min-width: 0;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-dashboard-referral-link code {
  max-width: clamp(14rem, 25vw, 27rem);
}

.admin-dashboard-referral-links button {
  min-height: 28px;
  padding: 3px 10px;
}

.admin-dashboard-referral-links small {
  min-width: 0;
  color: var(--accent);
  white-space: nowrap;
}

@media (max-width: 680px) {
  .admin-dashboard-referral-links {
    align-items: flex-start;
    gap: 5px 12px;
  }

  .admin-dashboard-referral-group {
    flex-wrap: wrap;
  }

  .admin-dashboard-referral-link code {
    max-width: min(15rem, calc(100vw - 148px));
  }
}

.admin-dashboard-metric,
.admin-dashboard-todo {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-dashboard-metric {
  display: grid;
  align-content: center;
  min-height: 96px;
  gap: 5px;
  padding: 14px 16px;
}

.admin-dashboard-metric p,
.admin-dashboard-metric span {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.admin-dashboard-metric strong {
  color: var(--text);
  font-size: 1.45rem;
  font-weight: 900;
}

.admin-dashboard-metric.is-primary {
  border-color: rgba(45, 212, 255, 0.34);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.admin-dashboard-metric.is-primary p {
  color: var(--accent);
}

.admin-dashboard-todo-section {
  display: grid;
  gap: 10px;
}

.admin-dashboard-todo-section .admin-list-head {
  min-height: auto;
}

.admin-dashboard-todo-section .admin-list-head h2 {
  font-size: 1.2rem;
}

.admin-dashboard-todos {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-dashboard-todo {
  position: relative;
  min-height: 78px;
  gap: 5px;
  padding: 12px 14px;
  color: var(--text);
  text-decoration: none;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.admin-dashboard-todo:hover {
  border-color: rgba(45, 212, 255, 0.44);
  background: rgba(45, 212, 255, 0.07);
}

.admin-dashboard-todo span,
.admin-dashboard-todo small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.admin-dashboard-todo strong {
  margin-left: auto;
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.admin-dashboard-todo small {
  margin-top: auto;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, max-content));
  justify-content: start;
  align-items: flex-end;
  column-gap: 12px;
  row-gap: 12px;
  min-width: 0;
}

.admin-toolbar > label {
  display: grid;
  gap: 6px;
  width: var(--admin-filter-width, 180px);
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-filter--xs { --admin-filter-width: 150px; }
.admin-filter--sm { --admin-filter-width: 180px; }
.admin-filter--md { --admin-filter-width: 220px; }
.admin-filter--lg { --admin-filter-width: 300px; }

.admin-toolbar > label:has(input[type="search"], input[name="query"]) {
  --admin-filter-width: clamp(260px, 24vw, 320px);
}

.admin-toolbar > label:has(input[type="date"]) {
  --admin-filter-width: 174px;
}

.admin-toolbar > label:has(select) {
  --admin-filter-width: 160px;
}

.admin-toolbar > :is(button, .admin-order-filter-actions, .admin-filter-actions) {
  align-self: end;
  width: max-content;
}

.admin-order-filters > label:has([data-admin-order-user-id]),
.admin-purchase-filters > label:has([data-purchase-id]) { --admin-filter-width: 180px; }
.admin-order-filters > label:has([data-admin-order-email]),
.admin-purchase-filters > label:has([data-purchase-email]) { --admin-filter-width: 300px; }
.admin-order-filters > label:has([data-admin-order-id]) { --admin-filter-width: 220px; }
.admin-order-filters > label:has([data-admin-order-status]),
.admin-purchase-filters > label:has([data-purchase-status]) { --admin-filter-width: 150px; }
.admin-order-filters > label:has([data-admin-order-date-from]),
.admin-order-filters > label:has([data-admin-order-date-to]) { --admin-filter-width: 174px; }
.admin-order-filters > label:has([data-admin-order-owner-filter]),
.admin-purchase-filters > label:has([data-purchase-owner]),
.admin-toolbar > label:has([data-admin-owner-filter]) { --admin-filter-width: 180px; }
.admin-toolbar > label:has([data-admin-search], [data-kyc-search]) { --admin-filter-width: 300px; }
.admin-toolbar > label:has([data-kyc-status]) { --admin-filter-width: 150px; }

/* User and funds management has a fixed set of wide filters; keep whole fields together. */
.admin-toolbar.user-funds-filter-grid {
  grid-template-columns: repeat(7, max-content);
  column-gap: 14px;
  row-gap: 14px;
}

.admin-toolbar.user-funds-filter-grid > label {
  width: 100%;
}

.admin-toolbar.user-funds-filter-grid > .user-funds-filter--user-id { width: clamp(180px, 16vw, 220px); }
.admin-toolbar.user-funds-filter-grid > .user-funds-filter--email { width: clamp(280px, 22vw, 320px); }
.admin-toolbar.user-funds-filter-grid > .user-funds-filter--order-id { width: clamp(260px, 21vw, 300px); }
.admin-toolbar.user-funds-filter-grid > .user-funds-filter--status { width: clamp(150px, 13vw, 180px); }
.admin-toolbar.user-funds-filter-grid > .user-funds-filter--date { width: clamp(170px, 14vw, 190px); }

.admin-toolbar.user-funds-filter-grid > .user-funds-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
}

@media (max-width: 1500px) {
  .admin-toolbar.user-funds-filter-grid {
    grid-template-columns: repeat(4, max-content);
  }
}

@media (max-width: 1080px) {
  .admin-toolbar.user-funds-filter-grid {
    grid-template-columns: repeat(2, max-content);
  }
}

@media (max-width: 760px) {
  .admin-toolbar.user-funds-filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-toolbar.user-funds-filter-grid > :is(label, .user-funds-filter-actions) {
    width: min(100%, 320px);
  }
}

.admin-order-stats {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-order-stats dl {
  display: grid;
  grid-template-columns: minmax(175px, 1.3fr) repeat(2, minmax(130px, 0.85fr)) minmax(120px, 0.78fr) minmax(150px, 1fr);
  gap: 0;
  margin: 0;
}

.admin-order-stats dl div {
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 54px;
  padding: 7px 16px;
  border-left: 1px solid var(--line);
}

.admin-order-stats dl div:first-child {
  border-left: 0;
}

.admin-order-stats dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-order-stats dd {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.admin-order-stats .admin-order-date-range dd {
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-order-stats .admin-order-total {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.admin-order-stats .admin-order-total dt {
  color: var(--accent);
}

.admin-order-stats .admin-order-total dd {
  color: var(--text);
  font-size: 1rem;
}

.admin-order-filter-actions {
  display: flex;
  align-self: end;
  gap: 8px;
}

.admin-page-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-page-size select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 8px;
}

.admin-toolbar input,
.admin-toolbar select,
.admin-preview-row select,
.admin-confirm-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

/* Keep native admin selects legible when their option list is opened. */
.admin-body select {
  background-color: var(--admin-control-surface);
  color: var(--text);
  color-scheme: dark;
}

.admin-auth-body {
  background: var(--admin-page-surface);
}

.admin-auth-body .auth-panel,
.admin-auth-body .auth-route-note {
  border-color: var(--line);
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.12), transparent 40%),
    var(--admin-control-surface);
}

.admin-body select:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, var(--line));
}

.admin-body select:focus-visible {
  border-color: var(--accent);
  outline: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
  outline-offset: 1px;
}

.admin-body select:disabled {
  background: color-mix(in srgb, var(--admin-control-surface) 72%, #000);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}

.admin-body select option {
  background: var(--admin-control-surface);
  color: var(--text);
}

.admin-body select option:checked,
.admin-body select option:hover {
  background: color-mix(in srgb, var(--accent) 32%, var(--admin-control-surface));
  color: var(--text);
}

.admin-body select option:disabled {
  background: color-mix(in srgb, var(--admin-control-surface) 72%, #000);
  color: var(--muted);
}

.admin-body select[multiple] {
  min-height: 96px;
  padding: 6px;
}

.admin-body select[multiple] option {
  padding: 7px 8px;
}

.admin-form-section {
  display: grid;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.admin-form-section h2 {
  margin: 0;
  font-size: 1.05rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.admin-form-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.admin-refund-settings-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 360px));
  align-items: end;
  gap: 12px;
  padding: 18px 0;
}

.admin-refund-settings-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-refund-settings-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.admin-refund-settings-form textarea {
  width: 100%;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  resize: vertical;
}

.admin-refund-settings-form .admin-setting-wide {
  grid-column: 1 / -1;
}

.admin-refund-settings-form .admin-form-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
  margin-top: 2px;
}

.admin-form-grid textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.admin-checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
}

.admin-checkbox-row input {
  width: auto;
  min-height: auto;
}

.admin-product-editor {
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
}

.admin-product-editor .confirm-modal-heading {
  align-items: flex-start;
}

.admin-product-id {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-product-operational-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-product-operational-fields .admin-checkbox-row {
  align-self: end;
}

.admin-product-locale-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 14px;
}

.admin-product-locale-fields label:first-child {
  grid-column: 1 / -1;
}

.admin-form-grid button {
  min-height: 42px;
  white-space: nowrap;
}

.manual-payment-create-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-payment-create-form .manual-payment-create-wide,
.manual-payment-create-form .admin-form-target {
  grid-column: 1 / -1;
}

.manual-payment-create-form .manual-payment-create-actions {
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.admin-settings-form,
.admin-brand-settings { display: grid; gap: 16px; }

.admin-settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.admin-settings-grid-compact { grid-template-columns: repeat(auto-fit, minmax(180px, max-content)); align-items: end; }

.admin-setting-short { width: min(100%, 210px); }

.admin-settings-grid label { display: grid; min-width: 0; gap: 6px; color: var(--muted); font-size: 0.84rem; font-weight: 800; }

.admin-settings-grid input,
.admin-settings-grid select,
.admin-settings-grid textarea { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.04); color: var(--text); padding: 0 12px; }
.admin-settings-grid textarea { min-height: 72px; padding-block: 10px; resize: vertical; }
.admin-settings-grid .admin-setting-wide { width: min(560px, 100%); }

.admin-brand-settings-group { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 6px; }

.admin-brand-settings-group legend { padding: 0 6px; color: var(--text); font-weight: 900; }

.admin-brand-selector {
  width: min(340px, 100%);
}

.admin-brand-selector label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-brand-selector select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  color-scheme: dark;
  padding: 0 12px;
}

.admin-brand-selector option {
  background: #121923;
  color: #f4f8fb;
}

.admin-selected-brand-settings {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-brand-identity-grid {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

/* Platform settings owns Ethorus identity and SEO only. Keep this panel
   compact without changing the shared Admin form layout. */
.admin-platform-settings-form { gap: 10px; }
.admin-platform-settings-form > .admin-form-section { gap: 10px; padding-block: 12px; }
.admin-brand-settings-section { padding-bottom: 10px !important; }
.admin-brand-identity-grid { grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 10px 12px; }
.admin-brand-identity-grid label,
.admin-brand-contact-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}
.admin-brand-identity-grid input,
.admin-brand-contact-grid input { width: 100%; min-width: 0; }
.admin-brand-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 12px; }

.admin-logo-manager {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.admin-logo-manager img {
  display: block;
  width: min(100%, 208px);
  min-height: 72px;
  max-height: 112px;
  object-fit: contain;
  object-position: left center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.admin-logo-manager .editor-file-input {
  width: fit-content;
  min-height: 38px;
}

.admin-deposit-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-deposit-currency {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.admin-deposit-currency label,
.admin-deposit-network-grid label,
.admin-site-content-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-deposit-currency input,
.admin-deposit-network-grid input,
.admin-site-content-grid input,
.admin-site-content-grid textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 12px;
}

.admin-site-content-grid textarea {
  min-height: 84px;
  padding-block: 10px;
  resize: vertical;
}

.admin-deposit-network-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-deposit-network-grid fieldset {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.admin-deposit-network-grid legend {
  padding: 0 5px;
  color: var(--text);
  font-weight: 850;
}

.admin-network-toggle {
  display: inline-flex !important;
  align-items: center;
  width: auto;
  min-height: 40px;
  gap: 7px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text) !important;
  white-space: nowrap;
}

.admin-network-toggle input { width: 16px; min-height: 16px; margin: 0; accent-color: var(--accent); }

.admin-network-multiselect { margin: 12px 0 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 6px; }

.admin-network-multiselect legend { padding: 0 5px; color: var(--text); font-weight: 850; }

.admin-network-multiselect > div { display: flex; flex-wrap: wrap; gap: 10px; }

.admin-site-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-site-content-grid label:first-child {
  grid-column: 1 / -1;
}

.admin-content-locale-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-content-locale-tabs button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-content-locale-tabs button:hover,
.admin-content-locale-tabs button:focus-visible,
.admin-content-locale-tabs button.is-active {
  border-color: var(--accent);
  color: var(--text);
}

.admin-content-locale-tabs button.is-active {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}

.admin-brand-switch-modal {
  width: min(480px, calc(100vw - 36px));
}

.admin-brand-switch-modal p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.admin-user-management-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-user-management-actions form {
  margin: 0;
}

.admin-user-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.admin-user-action-row label {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-user-action-row input,
.admin-user-action-row select,
.admin-user-transfer-row > input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 10px;
}

.admin-user-management-actions button {
  min-height: 38px;
  white-space: nowrap;
}

.admin-user-management-actions .form-message {
  margin: 2px 0 0;
}

.admin-user-transfer-summary {
  display: flex;
  gap: 16px;
  padding: 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-user-transfer-summary strong {
  margin-left: 4px;
  color: var(--text);
}

.admin-user-transfer-row {
  grid-template-columns: minmax(220px, 1fr) minmax(120px, 0.42fr) auto;
}

.admin-user-action-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.admin-purchase-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(116px, auto));
  gap: 8px;
  margin-left: auto;
}

.admin-purchase-stat {
  display: grid;
  gap: 2px;
  min-width: 124px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.018);
}

.admin-purchase-stat dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-purchase-stat dd {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.admin-purchase-sales-total {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

.admin-purchase-sales-total dt,
.admin-purchase-sales-total dd {
  color: var(--accent);
}

.admin-user-tree-row.is-expandable {
  cursor: pointer;
}

.admin-user-tree-row.is-expandable:hover td {
  background: color-mix(in srgb, var(--accent) 7%, transparent);
}

.admin-user-tree-row.is-expandable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.admin-user-tree-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  margin-right: 4px;
  color: var(--accent);
  font-size: 12px;
}

.admin-user-tree-email {
  padding-left: 12px !important;
}

.admin-user-children-row > td {
  padding: 0 !important;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent));
}

.admin-user-children {
  margin: 9px 32px 11px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 84%, var(--accent));
}

.admin-user-children-head {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin: 0 2px 7px;
  color: var(--accent);
  font-size: 0.78rem;
}

.admin-user-children-table-wrap {
  overflow-x: auto;
}

.admin-user-children-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.76rem;
}

.admin-user-children-table th,
.admin-user-children-table td {
  height: 34px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  vertical-align: middle;
}

.admin-user-children-table th {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 74%, var(--accent));
  font-weight: 750;
  white-space: nowrap;
}

.admin-user-children-table td:not(:nth-child(2)),
.admin-user-children-table th:not(:nth-child(2)) {
  text-align: center;
  white-space: nowrap;
}

.admin-user-children-table td:nth-child(2) {
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-children-table th:nth-child(1) { width: 10%; }
.admin-user-children-table th:nth-child(2) { width: 28%; }
.admin-user-children-table th:nth-child(3) { width: 13%; }
.admin-user-children-table th:nth-child(4) { width: 11%; }
.admin-user-children-table th:nth-child(5),
.admin-user-children-table th:nth-child(6),
.admin-user-children-table th:nth-child(7),
.admin-user-children-table th:nth-child(8) { width: 9.5%; }
}

.admin-user-table td:nth-child(1),
.admin-user-table th:nth-child(1),
.admin-user-table td:nth-child(2),
.admin-user-table th:nth-child(2),
.admin-user-table td:nth-child(4),
.admin-user-table th:nth-child(4),
.admin-user-table td:nth-child(6),
.admin-user-table th:nth-child(6),
.admin-user-table td:nth-child(7),
.admin-user-table th:nth-child(7),
.admin-user-table td:nth-child(9),
.admin-user-table th:nth-child(9),
.admin-user-table td:nth-child(10),
.admin-user-table th:nth-child(10) {
  white-space: nowrap;
}

.admin-user-email-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  vertical-align: middle;
}
.admin-user-email-verified > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-user-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  color: var(--accent);
  font-size: 10px;
  line-height: 1;
}

.admin-user-table {
  width: 100%;
  min-width: 1240px;
  table-layout: fixed;
}

.admin-user-table th:nth-child(1),
.admin-user-table td:nth-child(1) { width: 4%; min-width: 0; }
.admin-user-table th:nth-child(2),
.admin-user-table td:nth-child(2) { width: 6%; min-width: 0; }
.admin-user-table th:nth-child(3),
.admin-user-table td:nth-child(3) { width: 14%; }
.admin-user-table th:nth-child(4),
.admin-user-table td:nth-child(4) { width: 7%; }
.admin-user-table th:nth-child(5),
.admin-user-table td:nth-child(5) { width: 9%; }
.admin-user-table th:nth-child(6),
.admin-user-table td:nth-child(6) { width: 9%; }
.admin-user-table th:nth-child(7),
.admin-user-table td:nth-child(7),
.admin-user-table th:nth-child(8),
.admin-user-table td:nth-child(8) { width: 6%; }
.admin-user-table th:nth-child(9),
.admin-user-table td:nth-child(9) { width: 12%; }
.admin-user-table th:nth-child(10),
.admin-user-table td:nth-child(10),
.admin-user-table th:nth-child(11),
.admin-user-table td:nth-child(11),
.admin-user-table th:nth-child(12),
.admin-user-table td:nth-child(12),
.admin-user-table th:nth-child(13),
.admin-user-table td:nth-child(13) { width: 5%; }
.admin-user-table th:nth-child(14),
.admin-user-table td:nth-child(14) { width: 10%; }

.admin-user-table th:nth-child(3),
.admin-user-table td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-table th:nth-child(1),
.admin-user-table td:nth-child(1),
.admin-user-table th:nth-child(2),
.admin-user-table td:nth-child(2),
.admin-user-table th:nth-child(4),
.admin-user-table td:nth-child(4),
.admin-user-table th:nth-child(6),
.admin-user-table td:nth-child(6),
.admin-user-table th:nth-child(7),
.admin-user-table td:nth-child(7),
.admin-user-table th:nth-child(8),
.admin-user-table td:nth-child(8),
.admin-user-table th:nth-child(9),
.admin-user-table td:nth-child(9),
.admin-user-table th:nth-child(10),
.admin-user-table td:nth-child(10),
.admin-user-table th:nth-child(11),
.admin-user-table td:nth-child(11),
.admin-user-table th:nth-child(12),
.admin-user-table td:nth-child(12),
.admin-user-table th:nth-child(13),
.admin-user-table td:nth-child(13),
.admin-user-table th:nth-child(14),
.admin-user-table td:nth-child(14) {
  text-align: center;
}

.admin-purchase-table {
  min-width: 760px;
  table-layout: fixed;
}

.admin-purchase-table th:nth-child(1),
.admin-purchase-table td:nth-child(1) { width: 7%; min-width: 0; }
.admin-purchase-table th:nth-child(2),
.admin-purchase-table td:nth-child(2) { width: 11%; white-space: nowrap; }
.admin-purchase-table th:nth-child(3),
.admin-purchase-table td:nth-child(3) { width: 25%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-purchase-table th:nth-child(4),
.admin-purchase-table td:nth-child(4) { width: 14%; text-align: right; white-space: nowrap; }
.admin-purchase-table th:nth-child(5),
.admin-purchase-table td:nth-child(5) { width: 13%; text-align: center; white-space: nowrap; }
.admin-purchase-table th:nth-child(6),
.admin-purchase-table td:nth-child(6) { width: 12%; text-align: center; white-space: nowrap; }
.admin-purchase-table th:nth-child(7),
.admin-purchase-table td:nth-child(7) { width: 11%; text-align: right; white-space: nowrap; }
.admin-purchase-table th:nth-child(8),
.admin-purchase-table td:nth-child(8) { width: 7%; text-align: center; white-space: nowrap; }

.admin-detail-modal .confirm-modal-heading {
  position: relative;
  min-height: 30px;
  padding-right: 40px;
}

.admin-detail-modal .confirm-modal-heading .icon-button {
  position: absolute;
  top: 0;
  right: 0;
}

.admin-detail-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-action-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  padding: 11px 14px;
  border: 1px solid color-mix(in srgb, var(--success) 60%, var(--line));
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 94%, black);
  color: var(--text);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-action-toast.is-error {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
  color: color-mix(in srgb, var(--danger) 72%, var(--text));
}

.admin-service-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding-top: 2px;
}

.admin-service-status div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.admin-service-status dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.admin-service-status dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 850;
}

.admin-service-status .is-configured { color: var(--success); }
.admin-service-status .is-missing { color: var(--muted); }

.admin-form-target {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-address-create form {
  display: grid;
  grid-template-columns: 168px minmax(360px, 1fr) auto;
  align-items: end;
  gap: 10px;
  width: min(100%, 980px);
}

.admin-address-create label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px;
}

.admin-address-create .admin-form-target {
  grid-column: auto;
  margin: 0;
}

.admin-address-create label:first-child {
  min-width: 0;
}

.admin-address-create select {
  min-width: 0;
  background: var(--admin-control-surface);
  color: var(--text);
  color-scheme: dark;
}

.admin-address-create select option {
  background: var(--admin-control-surface);
  color: var(--text);
}

.admin-address-create select option:checked,
.admin-address-create select option:hover {
  background: color-mix(in srgb, var(--accent) 32%, var(--admin-control-surface));
  color: var(--text);
}

.admin-address-create .form-message {
  grid-column: 1 / -1;
  margin: 0;
}

.admin-address-pools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.admin-address-pool {
  min-width: 0;
}

.admin-address-value {
  overflow-wrap: anywhere;
}

.admin-blog-table.admin-address-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-address-table th:first-child,
.admin-address-table td:first-child {
  width: 52px;
  min-width: 52px;
  text-align: center;
}

.admin-address-table th:last-child,
.admin-address-table td:last-child {
  width: 72px;
  min-width: 72px;
  text-align: center;
}

.admin-address-table td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.admin-address-table th:nth-child(2),
.admin-address-table td:nth-child(2) {
  width: auto;
  min-width: 0;
}

.admin-address-table .admin-address-value {
  overflow-wrap: anywhere;
  word-break: break-all;
}

@media (max-width: 1120px) {
  .admin-address-create form {
    grid-template-columns: 168px minmax(260px, 1fr) auto;
  }

  .admin-address-pools {
    grid-template-columns: 1fr;
  }
}

.admin-form-actions {
  display: flex;
  gap: 8px;
}

.admin-section-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.admin-section-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.admin-section-tabs button.is-active {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.admin-detail-list {
  display: grid;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
}

.admin-detail-list div {
  display: grid;
  grid-template-columns: minmax(110px, 0.38fr) minmax(0, 1fr);
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.admin-detail-list dt {
  color: var(--muted);
  font-weight: 800;
}

.admin-detail-list dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-user-detail-modal {
  width: min(980px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
}

.admin-user-detail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  margin-top: 12px;
}

.admin-user-detail-list div {
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 8px 0;
}

.admin-user-detail-list .admin-user-detail-wide {
  grid-column: span 2;
}

.admin-user-operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-transfer-panel {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.admin-list-section {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.admin-list-head {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-list-head span {
  color: var(--muted);
  font-weight: 800;
}

.admin-list-head-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-row-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font-weight: 800;
}

.admin-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-referral-owner-filter {
  padding-bottom: 2px;
}

.admin-record-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.admin-inbox-section { margin-bottom: 16px; }
.admin-inbox-section h2 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 10px; }
.admin-inbox-settings { padding-top: 0; padding-bottom: 0; }
.admin-inbox-settings-toggle { width: 100%; min-height: 48px; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 0; background: transparent; color: var(--text); text-align: left; }
.admin-inbox-settings-toggle > span:first-child { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.admin-inbox-settings-toggle strong { font-size: 1.05rem; }
.admin-inbox-settings-toggle small { color: var(--muted); font-size: 0.84rem; }
.admin-inbox-settings-toggle [data-inbox-settings-toggle-label] { flex: 0 0 auto; color: var(--accent); font-weight: 700; }
.admin-inbox-settings-language { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.admin-inbox-settings-language label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }
.admin-inbox-settings-language select { width: 132px; min-height: 34px; }
.admin-inbox-compose { display: grid; grid-template-columns: 210px minmax(260px,1fr) minmax(150px,0.75fr); gap: 10px 12px; }
.admin-inbox-compose:has([data-inbox-target][hidden]) .admin-inbox-title { grid-column: 2 / -1; }
.admin-inbox-section .admin-form-actions { display: flex; justify-content: flex-end; }
.admin-inbox-section .form-message:empty { display: none; }
.admin-inbox-compose label, .admin-inbox-template label { display: grid; align-content: start; gap: 6px; min-width: 0; }
.admin-inbox-compose [hidden] { display: none; }
.admin-inbox-compose .admin-inbox-title { grid-column: auto / -1; }
.admin-inbox-compose .admin-inbox-body, .admin-inbox-compose .form-message, .admin-inbox-compose .admin-form-actions { grid-column: 1 / -1; }
.admin-inbox-compose textarea { min-height: 96px; resize: vertical; }
.admin-inbox-compose .admin-inbox-link-fields { grid-column: 1 / span 2; }
.admin-inbox-compose .admin-form-actions { grid-column: 3; align-self: end; }
.admin-inbox-compose .form-message { grid-column: 1 / -1; }
.admin-inbox-template { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 8px 0; display: grid; grid-template-columns: 68px minmax(180px,0.8fr) minmax(300px,1.4fr); gap: 10px; align-items: center; }
.admin-inbox-template textarea { min-height: 42px; height: 42px; padding: 6px 10px; resize: vertical; }
.admin-inbox-template input:not([type=checkbox]) { min-height: 36px; height: 36px; }
.admin-inbox-template label { gap: 3px; }
.admin-inbox-template legend { font-weight: 600; padding: 0; }
.admin-inbox-template .admin-inbox-enabled { display: flex; align-items: center; gap: 8px; }
.admin-inbox-enabled input { width: 16px; height: 16px; min-height: 0; }
.admin-inbox-table :is(th,td) { text-align: center; width: 1%; white-space: nowrap; }
.admin-inbox-table :is(th,td):nth-child(3), .admin-inbox-table :is(th,td):nth-child(4) { width: auto; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.admin-inbox-table input[type=checkbox] { width: 16px; height: 16px; min-height: 0; margin: 0; }
.admin-inbox-row-actions { display: flex; justify-content: center; gap: 6px; }
.inbox-message-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-item .inbox-message-text { display: block; max-height: none; overflow: visible; -webkit-line-clamp: unset; }
.admin-inbox-message-modal { width: min(680px, calc(100vw - 40px)); }
.admin-inbox-message-modal form { display: grid; gap: 12px; }
.admin-inbox-message-modal label { display: grid; gap: 6px; }
.admin-inbox-message-modal textarea { min-height: 180px; resize: vertical; }
@media(max-width:800px) {
  .admin-inbox-compose, .admin-inbox-template { grid-template-columns: minmax(0,1fr); }
  .admin-inbox-compose .admin-inbox-title, .admin-inbox-compose .admin-inbox-link-fields, .admin-inbox-compose .admin-form-actions { grid-column: 1; }
  .admin-inbox-settings-toggle > span:first-child { align-items: flex-start; flex-direction: column; gap: 2px; }
}

.admin-record-tabs [aria-selected="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.admin-record-filters {
  align-items: end;
}

.admin-toolbar.admin-record-filters > label:has([data-record-filter="email"]),
.admin-toolbar.admin-record-filters > label:has([name="query"]),
.admin-toolbar.admin-audit-filters > label:has([name="query"]),
.manual-payment-filters > label:has([name="query"]),
.traffic-filter-toolbar > label:has([name="query"]) { --admin-filter-width: 300px; }

.admin-toolbar.admin-record-filters > label:has([data-record-filter="from"]),
.admin-toolbar.admin-record-filters > label:has([data-record-filter="to"]) { --admin-filter-width: 174px; }

.admin-toolbar.admin-record-filters > label:has([data-record-filter="status"]),
.admin-toolbar.admin-record-filters > label:has([data-record-filter="network"]),
.admin-toolbar.admin-audit-filters > label:has([name="type"]),
.admin-toolbar.admin-audit-filters > label:has([name="result"]),
.manual-payment-filters > label:has([name="network"]),
.manual-payment-filters > label:has([name="status"]),
.traffic-filter-toolbar > label:has([name="source"]),
.traffic-filter-toolbar > label:has([name="campaign"]) { --admin-filter-width: 150px; }

.admin-toolbar.admin-record-filters > label:has([data-record-filter="owner"]),
.manual-payment-filters > label:has([name="owner"]) { --admin-filter-width: 180px; }
.admin-referral-records .admin-list-head { justify-content: space-between; }
.admin-referral-records .admin-page-size { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.admin-referral-detail-table { table-layout: fixed; width: 100%; min-width: 1100px; }
.admin-referral-records .admin-referral-detail-table :is(th, td) {
  text-align: center;
  padding: 9px 6px;
  width: 6%;
  white-space: nowrap;
}
.admin-referral-records .admin-referral-detail-table :is(th, td):is(:nth-child(2), :nth-child(6)) {
  width: 16%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-referral-records .admin-referral-detail-table :is(th, td):is(:nth-child(10), :nth-child(11), :nth-child(12)) { width: 8%; }
.admin-referral-records .admin-referral-detail-table :is(th, td):is(:nth-child(11), :nth-child(12)) { text-align: left; overflow-wrap: anywhere; white-space: normal; }

.admin-referral-owner-filter label {
  width: min(100%, 280px);
}

.admin-referral-table,
.admin-withdrawal-table {
  min-width: 760px;
}

.admin-withdrawal-table th,
.admin-withdrawal-table td {
  white-space: nowrap;
}

.admin-withdrawal-address {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-withdrawal-address .secondary-form-button {
  min-height: 30px;
  padding: 0 8px;
}

.admin-withdrawal-qr {
  display: grid;
  place-items: center;
  margin-top: 16px;
}

.admin-withdrawal-qr .generated-qr {
  width: 148px;
  height: 148px;
  padding: 8px;
  border-radius: 6px;
  background: #f5f8fb;
}

.admin-blog-table {
  min-width: 860px;
}

.admin-blog-table th,
.admin-blog-table td {
  vertical-align: middle;
  text-align: left;
}

.admin-blog-table :is(th, td):last-child,
.admin-blog-list-table :is(th, td):nth-child(n + 2),
.admin-product-table :is(th, td):nth-child(n + 2),
.admin-referral-table :is(th, td):nth-child(3),
.admin-referral-table :is(th, td):nth-child(4),
.admin-withdrawal-table :is(th, td):nth-child(2),
.admin-withdrawal-table :is(th, td):nth-child(3),
.admin-withdrawal-table :is(th, td):nth-child(5),
.admin-withdrawal-table :is(th, td):nth-child(6) {
  text-align: center;
}

.admin-blog-list-table {
  table-layout: fixed;
}

.admin-blog-list-table :is(th, td):first-child { width: 36%; }
.admin-blog-list-table :is(th, td):nth-child(2),
.admin-blog-list-table :is(th, td):nth-child(3),
.admin-blog-list-table :is(th, td):nth-child(4) { width: 12%; }
.admin-blog-list-table :is(th, td):nth-child(5) { width: 16%; }
.admin-blog-list-table :is(th, td):last-child { width: 12%; white-space: nowrap; }

.admin-product-table {
  table-layout: fixed;
}

.admin-product-table :is(th, td):first-child { width: 5%; text-align: center; }
.admin-product-table :is(th, td):nth-child(2) { width: 21%; }
.admin-product-table :is(th, td):nth-child(3),
.admin-product-table :is(th, td):nth-child(4),
.admin-product-table :is(th, td):nth-child(8),
.admin-product-table :is(th, td):nth-child(9) { width: 9%; }
.admin-product-table :is(th, td):nth-child(5),
.admin-product-table :is(th, td):nth-child(6),
.admin-product-table :is(th, td):nth-child(7) { width: 10%; }
.admin-product-table :is(th, td):last-child { width: 17%; white-space: nowrap; }

.admin-blog-table.admin-admins-table {
  min-width: 1180px;
  table-layout: fixed;
}

.admin-blog-table.admin-admins-table th,
.admin-blog-table.admin-admins-table td {
  white-space: nowrap;
}

.admin-blog-table.admin-admins-table th:nth-child(1),
.admin-blog-table.admin-admins-table td:nth-child(1) {
  width: 6%;
  min-width: 64px;
}

.admin-blog-table.admin-admins-table th:nth-child(2),
.admin-blog-table.admin-admins-table td:nth-child(2) {
  width: 16%;
  min-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-blog-table.admin-admins-table th:nth-child(3),
.admin-blog-table.admin-admins-table td:nth-child(3) {
  width: 9%;
  min-width: 92px;
}

.admin-blog-table.admin-admins-table th:nth-child(4),
.admin-blog-table.admin-admins-table td:nth-child(4) {
  width: 8%;
  min-width: 80px;
}

.admin-blog-table.admin-admins-table th:nth-child(5),
.admin-blog-table.admin-admins-table td:nth-child(5),
.admin-blog-table.admin-admins-table th:nth-child(6),
.admin-blog-table.admin-admins-table td:nth-child(6),
.admin-blog-table.admin-admins-table th:nth-child(8),
.admin-blog-table.admin-admins-table td:nth-child(8) {
  width: 6%;
  min-width: 64px;
  text-align: center;
}

.admin-blog-table.admin-admins-table th:nth-child(7),
.admin-blog-table.admin-admins-table td:nth-child(7),
.admin-blog-table.admin-admins-table th:nth-child(9),
.admin-blog-table.admin-admins-table td:nth-child(9) {
  width: 7%;
  min-width: 72px;
  text-align: center;
}

.admin-blog-table.admin-admins-table th:nth-child(10),
.admin-blog-table.admin-admins-table td:nth-child(10) {
  width: 11%;
  min-width: 110px;
  text-align: right;
}

.admin-blog-table.admin-admins-table th:last-child,
.admin-blog-table.admin-admins-table td:last-child {
  width: 18%;
  min-width: 210px;
  text-align: center;
}

.admin-blog-table.admin-admins-table .admin-row-actions {
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}

.admin-blog-table.admin-admins-table .admin-row-actions button {
  flex: 0 0 auto;
}

.admin-admins-table code {
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-order-table th.admin-order-select-cell,
.admin-order-table td.admin-order-select-cell {
  width: 34px;
  min-width: 34px;
  padding-inline: 7px;
  text-align: center;
}

.admin-order-table {
  min-width: 0;
  width: 100%;
  table-layout: fixed;
}

.admin-order-table :is(th, td) { padding: 9px 8px; }
.admin-order-table :is(th, td):nth-child(2) { width: 4%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(3) { width: 8%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(4) { width: 16%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(5) { width: 9%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(6) { width: 11%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(7) { width: 11%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):nth-child(8) { width: 12%; text-align: center; white-space: nowrap; }
.admin-order-table :is(th, td):last-child { width: 17%; text-align: center; }

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

.admin-order-actions .admin-language-status {
  min-height: 28px;
  padding-inline: 7px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.admin-payment-verification-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.admin-payment-verification-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-payment-verification-form em { color: var(--danger); font-style: normal; }

.admin-payment-verification-order-id {
  justify-self: start;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel-strong) 72%, transparent);
  color: var(--muted);
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.85rem;
}

.admin-payment-verification-form input { width: 100%; min-width: 0; }
.admin-payment-verification-log-index { max-width: 220px; }
.admin-payment-verification-form .form-message { min-height: 0; margin: 0; color: var(--danger); }
.admin-payment-verification-form .form-message:empty { display: none; }
.admin-body .confirm-modal .admin-payment-verification-form .admin-form-actions { justify-content: space-between; }
.admin-body .confirm-modal .admin-payment-verification-form .admin-modal-confirm-button { margin-left: auto; }

.admin-referral-table {
  table-layout: fixed;
}

.admin-referral-table :is(th, td):nth-child(1) { width: 6%; text-align: center; white-space: nowrap; }
.admin-referral-table :is(th, td):nth-child(2) { width: 24%; text-align: left; }
.admin-referral-table :is(th, td):nth-child(3) { width: 10%; text-align: center; white-space: nowrap; }
.admin-referral-table :is(th, td):nth-child(4) { width: 12%; text-align: center; white-space: nowrap; }
.admin-referral-table :is(th, td):nth-child(5) { width: 10%; text-align: center; white-space: nowrap; }
.admin-referral-table :is(th, td):nth-child(6) { width: 20%; text-align: center; white-space: nowrap; }
.admin-referral-table :is(th, td):nth-child(7) { width: 18%; text-align: center; white-space: nowrap; }

.admin-withdrawal-table {
  table-layout: fixed;
}

.admin-withdrawal-table :is(th, td):first-child { width: 6%; text-align: center; }
.admin-withdrawal-table :is(th, td):nth-child(2) { width: 17%; }
.admin-withdrawal-table :is(th, td):nth-child(3) { width: 10%; white-space: nowrap; }
.admin-withdrawal-table :is(th, td):nth-child(4) { width: 10%; white-space: nowrap; }
.admin-withdrawal-table :is(th, td):nth-child(5) { width: 25%; }
.admin-withdrawal-table :is(th, td):nth-child(6) { width: 12%; white-space: nowrap; }
.admin-withdrawal-table :is(th, td):nth-child(7) { width: 12%; white-space: nowrap; }
.admin-withdrawal-table :is(th, td):last-child { width: 11%; text-align: center; white-space: nowrap; }

.admin-order-select-cell input[type="checkbox"] {
  display: block;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0 auto;
  accent-color: var(--accent);
}

.admin-order-search-button {
  min-height: 42px;
  padding-inline: 18px;
  white-space: nowrap;
}

.admin-empty-cell > span {
  margin-right: 10px;
}

.admin-blog-table td strong,
.admin-blog-table td small {
  display: block;
}

.admin-blog-table td small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  overflow-wrap: anywhere;
}

.admin-language-status,
.admin-row-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  padding: 0 10px;
  font-weight: 800;
}

.admin-language-status {
  color: var(--accent);
}

.admin-row-actions,
.admin-management-actions {
  gap: 8px;
  flex-wrap: wrap;
}

.admin-empty-cell {
  padding-block: 36px !important;
  color: var(--muted);
  text-align: center !important;
}

.admin-pagination {
  margin-top: 16px;
}

/* One compact desktop treatment for every Admin list pagination contract. */
.admin-body .admin-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
  white-space: nowrap;
}

.admin-body .admin-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.admin-body .admin-pagination select {
  box-sizing: border-box;
  width: 78px;
  min-width: 78px;
  min-height: 32px;
  padding: 3px 24px 3px 8px;
}

.admin-body .admin-toolbar :is(.admin-order-filter-actions, .admin-management-actions) {
  align-self: end;
}

.admin-list-section > .admin-toolbar + .admin-table-wrap {
  margin-top: 14px;
}

.admin-audit-filters {
  margin-bottom: 2px;
}

.admin-table-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  margin-top: 14px;
}

.admin-table-pagination .admin-pagination,
.traffic-pagination .admin-pagination,
.manual-payment-table-footer .admin-pagination {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  white-space: nowrap;
}

.admin-table-pagination .admin-pagination label,
.traffic-pagination .admin-pagination label,
.manual-payment-table-footer .admin-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.admin-table-pagination .admin-pagination select,
.traffic-pagination .admin-pagination select,
.manual-payment-table-footer .admin-pagination select {
  box-sizing: border-box;
  width: 78px;
  min-width: 78px;
  min-height: 32px;
  padding: 3px 22px 3px 8px;
}

/* Shared Admin table pagination: the existing server-side pagination contracts stay untouched. */
.admin-body :is(.admin-table-pagination, .traffic-pagination, .manual-payment-pagination, .wallet-auth-pagination, .wallet-auth-transfer-pagination, .referral-pagination) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 14px;
  white-space: nowrap;
}

.admin-body :is(.admin-table-pagination, .traffic-pagination, .manual-payment-pagination, .wallet-auth-pagination, .wallet-auth-transfer-pagination, .referral-pagination) label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  white-space: nowrap;
}

.admin-body :is(.admin-table-pagination, .traffic-pagination, .manual-payment-pagination, .wallet-auth-pagination, .wallet-auth-transfer-pagination, .referral-pagination) select {
  box-sizing: border-box;
  width: 78px;
  min-width: 78px;
  min-height: 32px;
  padding: 3px 24px 3px 8px;
}

.admin-body :is(.admin-table-pagination, .traffic-pagination, .manual-payment-pagination, .wallet-auth-pagination, .wallet-auth-transfer-pagination, .referral-pagination) button[disabled] {
  color: color-mix(in srgb, var(--text) 72%, var(--muted));
  opacity: .62;
}

.manual-payment-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.manual-payment-pagination label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.manual-payment-pagination select {
  width: auto;
  min-height: 32px;
  padding: 3px 24px 3px 8px;
}

.manual-payment-section { display: grid; gap: 16px; }
.manual-payment-head { margin: 0; padding-bottom: 2px; }
.manual-payment-head p { margin: 0; }
.manual-payment-filters { margin: 0; padding: 12px 0 2px; border-top: 1px solid var(--line); }
.manual-payment-table :is(th, td) { white-space: nowrap; }
.manual-payment-table :is(th, td):first-child { width: 34px; text-align: center; }
.manual-payment-table input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin: 0; }
.manual-payment-table .admin-row-actions { display: flex; gap: 6px; }
.manual-payment-table .admin-row-actions button { min-height: 30px; padding: 4px 8px; }
.manual-payment-status { display: inline-flex; min-width: 62px; justify-content: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: .78rem; font-weight: 800; }
.manual-payment-status.is-pending { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.manual-payment-status.is-completed { color: var(--success); border-color: color-mix(in srgb, var(--success) 55%, var(--line)); }
.manual-payment-status.is-expired { color: var(--muted); }
.manual-payment-table-footer { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 14px; }
.manual-payment-bulk-actions { display: flex; gap: 8px; }
.manual-payment-table-footer .admin-pagination { margin-top: 0; }

.manual-payment-user-results {
  display: grid;
  gap: 4px;
  margin-top: 6px;
}

.manual-payment-user-results button {
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.manual-payment-user-results button:hover,
.manual-payment-user-results button:focus-visible {
  border-color: var(--accent);
}

.manual-payment-user-results span {
  color: var(--muted);
  font-size: .9rem;
}

.admin-table-wrap:has([data-kyc-view]) input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  padding: 0;
  margin: 0;
  vertical-align: middle;
}

.admin-table-wrap:has([data-kyc-view]) :is(th, td):first-child {
  width: 40px;
  text-align: center;
  padding-inline: 8px;
}

.admin-shared-form-modal.admin-kyc-detail-modal {
  width: min(1000px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
}

.admin-kyc-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
  margin: 0 0 16px;
}

.admin-kyc-details > div { min-width: 0; }
.admin-kyc-details .admin-kyc-wide { grid-column: span 2; }
.admin-kyc-details dt { color: var(--muted); font-size: 12px; line-height: 1.4; }
.admin-kyc-details dd { margin: 2px 0 0; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.admin-kyc-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-kyc-thumbnails figure { min-width: 0; margin: 0; }
.admin-kyc-thumbnails figcaption { margin-bottom: 6px; font-size: 13px; }
.admin-kyc-thumbnails button,
.admin-kyc-thumbnails .admin-kyc-missing {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 128px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
}
.admin-kyc-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
.admin-kyc-preview > img { display: block; width: 100%; height: min(65dvh, 640px); object-fit: contain; }
.admin-kyc-preview[hidden], [data-kyc-information][hidden] { display: none; }
@media (max-width: 700px) {
  .admin-kyc-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-kyc-thumbnails { gap: 8px; }
}
@media (max-width: 440px) {
  .admin-kyc-details { grid-template-columns: minmax(0, 1fr); }
  .admin-kyc-details .admin-kyc-wide { grid-column: auto; }
}

.admin-detail-modal {
  width: min(680px, calc(100vw - 32px));
}

.admin-detail-modal h2 {
  max-width: 520px;
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  line-height: 1.35;
}

.admin-gas-energy-modal {
  width: min(620px, calc(100vw - 32px));
  max-height: none;
  overflow: hidden;
}

.admin-gas-energy-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.admin-gas-energy-cell {
  min-width: 0;
  padding: 9px 10px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-gas-energy-cell:nth-last-child(-n + 4) { border-bottom: 0; }

.admin-gas-energy-cell.is-header {
  padding-block: 8px;
  border-bottom-color: var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  font-size: 0.71rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-gas-energy-modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-gas-energy-modal .modal-actions button { width: auto; }

.admin-account-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow-x: hidden;
  overflow-y: auto;
}

.admin-account-form {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.admin-account-basic-section {
  min-width: 0;
}

.admin-account-grid,
.admin-account-bot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.admin-account-grid label,
.admin-account-bot-grid label {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.admin-account-grid input,
.admin-account-bot-grid input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.admin-account-modal .admin-telegram-bot-fields {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}
.admin-account-modal .admin-telegram-bot-fields legend { padding: 0 6px; color: var(--text-primary); }
.admin-account-modal .admin-telegram-bot-fields p { margin: 0 0 10px; color: var(--text-muted); font-size: 13px; }
.admin-account-modal .admin-telegram-bot-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.admin-account-modal .admin-telegram-bot-heading p { margin: 0; }
.admin-account-modal .admin-telegram-bot-clear { margin-top: 10px; }
.admin-telegram-bot-status { display: block; margin-top: 5px; color: var(--text-muted); }

.admin-account-modal .admin-form-actions {
  justify-content: flex-end;
  margin-top: 2px;
}
.admin-telegram-notification-form { margin-top: 18px; }
.admin-telegram-notification-form .admin-telegram-panel { gap: 12px; padding: 14px 0 12px; }
.admin-telegram-settings-heading,
.admin-telegram-security-event,
.admin-telegram-super-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.admin-telegram-settings-heading h2,
.admin-telegram-notification-form h2 { margin: 0; }
.admin-telegram-settings-heading p,
.admin-telegram-security-event p,
.admin-telegram-super-status p { margin: 4px 0 0; color: var(--text-muted); font-size: 13px; }
.admin-telegram-event-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-telegram-meta-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 10px; align-items: stretch; }
.admin-telegram-security-wrap { display: grid; gap: 6px; }
.admin-telegram-security-wrap h3 { margin: 0; font-size: 13px; color: var(--text-muted); font-weight: 600; }
.admin-telegram-security-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-telegram-event,
.admin-telegram-security-event { padding: 12px; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(255,255,255,.015); }
.admin-telegram-event { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 8px 10px; }
.admin-telegram-event strong { font-size: 14px; }
.admin-telegram-security-event { padding: 8px 10px; min-height: 38px; }
.admin-telegram-security-event p { margin-top: 2px; font-size: 12px; }
.admin-telegram-super-status { padding: 10px; border: 1px solid var(--line-soft); border-radius: 6px; background: rgba(255,255,255,.015); }
.admin-telegram-super-status small { color: var(--text-muted); font-size: 12px; white-space: nowrap; }
.admin-telegram-notification-form .admin-form-actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 720px) {
  .admin-account-grid,
  .admin-account-bot-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-account-modal .admin-telegram-bot-heading { align-items: flex-start; flex-direction: column; }
  .admin-telegram-event-list,
  .admin-telegram-meta-grid,
  .admin-telegram-security-list { grid-template-columns: 1fr; }
  .admin-telegram-settings-heading,
  .admin-telegram-event,
  .admin-telegram-security-event,
  .admin-telegram-super-status { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (min-width: 721px) and (max-width: 1100px) {
  .admin-telegram-event-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-telegram-meta-grid { grid-template-columns: 1fr; }
}

.admin-detail-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-locales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.admin-locales div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-locales span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-locales strong {
  color: var(--success);
  font-size: 0.85rem;
  white-space: nowrap;
}

.admin-preview-row {
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.admin-preview-row label,
.admin-confirm-form label {
  display: grid;
  flex: 1;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-permission-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.admin-management-actions {
  margin-top: 18px;
}

.admin-confirm-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-confirm-form .form-message {
  min-height: 0;
  margin: 0;
  color: #ef9ba4;
}

.admin-editor-shell {
  max-width: 1180px;
}

.editor-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.editor-meta h2 {
  margin: 3px 0 6px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.3;
}

.editor-meta p:last-child {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.editor-locale-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.editor-locale-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-weight: 800;
}

.editor-locale-tabs button.is-active {
  border-color: rgba(45, 212, 255, 0.45);
  background: rgba(45, 212, 255, 0.1);
}

.editor-locale-tabs span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.editor-translation-pending {
  margin: -10px 0 0;
  color: #f1bf68;
  font-weight: 800;
}

.editor-form,
.editor-content,
.editor-images {
  display: grid;
  gap: 16px;
}

.editor-form > label,
.editor-field-grid label,
.editor-image-slot label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.editor-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.editor-form input,
.editor-form select,
.editor-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  line-height: 1.55;
}

.editor-form textarea {
  resize: vertical;
}

.editor-form input:disabled,
.editor-form select:disabled,
.editor-form textarea:disabled {
  opacity: 0.78;
}

.editor-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.editor-section-head h3 {
  margin: 0;
}

.editor-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.editor-tools button,
.editor-block button,
.editor-image-slot button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
}

.editor-image-slot {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.editor-image-preview {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.editor-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editor-image-slot > div:last-child {
  display: grid;
  gap: 10px;
}

.editor-file-input input {
  padding: 6px;
}

.editor-block {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.editor-block > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.editor-block select {
  width: min(180px, 100%);
  min-height: 32px;
  padding: 0 8px;
}

.editor-block-image {
  color: var(--muted);
  font-weight: 800;
}

.editor-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.editor-save-message {
  margin-right: auto;
  color: var(--success);
  font-weight: 800;
}

.editor-save-message.is-error {
  color: #ef9ba4;
}

@media (max-width: 760px) {
  .admin-user-transfer-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-user-transfer-row > input {
    grid-column: 1;
  }

  .admin-user-transfer-row > button {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .admin-user-transfer-summary {
    flex-wrap: wrap;
    gap: 8px 14px;
  }

  .admin-settings-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-brand-identity-grid,
  .admin-site-content-grid,
  .admin-deposit-network-grid,
  .admin-user-management-actions,
  .admin-user-operation-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-brand-contact-grid { grid-template-columns: minmax(0, 1fr); }

  .admin-site-content-grid label:first-child {
    grid-column: auto;
  }

  .admin-deposit-currency {
    display: grid;
    align-items: stretch;
  }

  .admin-shell {
    padding: 14px 16px 34px;
  }

  .admin-header {
    gap: 12px;
    min-height: 58px;
  }

  .admin-header .brand-logo {
    width: 112px;
  }

  .admin-header-title .section-kicker,
  .admin-role-chip {
    display: none;
  }

  .admin-header h1 {
    font-size: 1.15rem;
  }

  .admin-header-actions .secondary-form-button {
    min-height: 36px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .admin-main {
    gap: 18px;
    padding-top: 22px;
  }

  .admin-overview {
    display: grid;
    gap: 16px;
  }

  .admin-overview h2 {
    font-size: 1.35rem;
  }

  .admin-overview-meta {
    width: 100%;
  }

  .admin-toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-list-head-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .editor-meta,
  .editor-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-field-grid,
  .editor-image-slot {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-product-operational-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .editor-tools {
    justify-content: flex-start;
  }

  .editor-locale-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .editor-locale-tabs button {
    justify-content: space-between;
    min-width: 0;
  }

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

  .editor-save-message {
    grid-column: 1 / -1;
    margin-right: 0;
  }

  .admin-pagination .pagination-status {
    width: 100%;
    margin-left: 0;
  }

  .admin-detail-modal {
    width: calc(100vw - 24px);
    max-height: min(760px, calc(100vh - 24px));
    overflow-y: auto;
  }

  .admin-locales {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-preview-row button,
  .admin-management-actions button {
    width: 100%;
  }
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.message-item.unread {
  border-color: rgba(45, 212, 255, 0.28);
  background: rgba(45, 212, 255, 0.075);
}

.message-item h3 {
  margin-top: 6px;
}

.message-item p {
  margin-bottom: 0;
}

.message-item time {
  color: var(--muted);
  white-space: nowrap;
}

.support-panel {
  min-width: 0;
}

.refund-panel {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.refund-service-cards {
  display: grid;
  gap: 16px;
}

.refund-service-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  white-space: pre-wrap;
}

.refund-service-description-card {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.38);
}

.refund-service-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.refund-service-card {
  min-width: 0;
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.38);
}

.refund-service-card h3 {
  margin: 0;
  text-align: center;
}

.refund-service-card button {
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  border-color: rgba(45, 212, 255, 0.62);
  background: #20bedc;
  color: #021018;
  font-weight: 700;
}

.refund-service-card button:hover {
  background: #49d7ef;
}

@media (max-width: 760px) {
  .refund-service-card-grid {
    grid-template-columns: 1fr;
  }
}

.refund-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.38);
}

.refund-form textarea {
  width: 100%;
  resize: vertical;
}

.refund-confirm-row {
  align-items: flex-start;
}

.refund-records {
  display: grid;
  gap: 12px;
}

.refund-records h3 {
  margin: 0;
}

.refund-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.refund-record div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.refund-record span,
.refund-record small {
  color: var(--muted);
}

.refund-record strong {
  font-size: 1.05rem;
}

.referral-rewards-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

/* Shared desktop administration console. */
.admin-body,
.admin-auth-body {
  min-width: 0;
  --bg: #191816;
  --bg-soft: #211F1B;
  --panel: #25231F;
  --panel-strong: #322D25;
  --line: rgba(216, 179, 106, 0.2);
  --text: var(--ethorus-ivory, #F5F0E6);
  --muted: rgba(204, 195, 177, 0.78);
  --accent: var(--ethorus-champagne-gold, #D8B36A);
  --accent-strong: var(--ethorus-warm-gold, #B8893E);
  --gold: var(--ethorus-soft-gold, #F7DFA8);
  --blue: var(--ethorus-champagne-gold, #D8B36A);
  --admin-page-surface: #191816;
  --admin-sidebar-surface: #1F1D19;
  --admin-control-surface: #28251F;
  --modal-backdrop-surface: rgba(15, 14, 12, 0.78);
  --modal-surface: #25231F;
  background: var(--admin-page-surface);
  color-scheme: dark;
}

.admin-body .confirm-modal .secondary-form-button {
  border-color: rgba(216, 179, 106, 0.28);
  background: #28251F;
  color: var(--text);
}

.admin-body .confirm-modal .admin-modal-confirm-button:not(.is-danger) {
  border-color: var(--accent-strong);
  background: var(--accent);
  color: #191816;
}

.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
.admin-body textarea,
.admin-body select,
.admin-auth-body .auth-form input {
  background-color: var(--admin-control-surface);
  border-color: var(--line);
  color: var(--text);
}

.admin-body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
.admin-body textarea:focus,
.admin-body select:focus,
.admin-auth-body .auth-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

.admin-shell.admin-console-ready {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  width: 248px;
  height: 100vh;
  padding: 24px 16px 18px;
  border-right: 1px solid var(--line);
  background: var(--admin-sidebar-surface);
}

.admin-console-brand {
  display: grid;
  gap: 12px;
  padding: 4px 10px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-console-brand img {
  width: 150px;
  height: auto;
}

.admin-sidebar-nav {
  display: grid;
  gap: 4px;
  padding-top: 20px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-left: 2px solid transparent;
  color: #9ba9bb;
  font-size: 0.9rem;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus-visible {
  border-left-color: color-mix(in srgb, var(--accent) 70%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  color: var(--text);
  outline: none;
}

.admin-sidebar-link.is-active {
  border-left-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--text);
}

.admin-return-site {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 750;
}

.admin-return-site:hover,
.admin-return-site:focus-visible {
  color: var(--accent);
  outline: none;
}

.admin-workspace {
  min-width: 0;
  padding: 0 36px 48px;
}

.admin-console-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  min-height: 70px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  background: var(--admin-page-surface);
}

.admin-console-header .brand {
  display: none;
}

.admin-header-title .section-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-header h1 {
  font-size: 1.2rem;
  line-height: 1.2;
}

.admin-console-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  min-width: 0;
}

.admin-console-user {
  max-width: 260px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-console-actions .secondary-form-button {
  min-height: 34px;
  padding-inline: 12px;
  font-size: 0.82rem;
}

.admin-console-actions [data-admin-my-performance] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding-inline: 12px;
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.admin-console-actions [data-admin-my-performance]:hover,
.admin-console-actions [data-admin-my-performance]:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--text);
  outline: none;
}

.admin-main {
  gap: 20px;
  max-width: 1600px;
  padding-top: 28px;
}

.admin-overview,
.admin-list-section,
.admin-form-section {
  min-width: 0;
}

.admin-overview {
  padding: 0 0 18px;
}

.admin-toolbar,
.admin-form-section,
.admin-list-section {
  padding-top: 16px;
}

.admin-table-wrap {
  border-radius: 6px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.admin-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table-wrap th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-strong) 78%, transparent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.admin-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table-wrap tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}

.admin-body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: color-mix(in srgb, var(--accent) 24%, var(--line));
  background: var(--admin-control-surface);
  color: var(--text);
}

.admin-body :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  outline: none;
}

.admin-body select option {
  background: var(--admin-control-surface);
  color: var(--text);
}

.admin-body select option:checked,
.admin-body select option:hover {
  background: #4A3B25;
  color: #FFFFFF;
}

.admin-body .admin-role-chip,
.admin-body .admin-status.is-published,
.admin-body .pagination-number.is-active {
  border-color: color-mix(in srgb, var(--accent) 52%, transparent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--text);
}

@media (max-width: 900px) {
  .admin-shell.admin-console-ready {
    grid-template-columns: 200px minmax(0, 1fr);
  }

  .admin-sidebar {
    width: 200px;
    padding: 18px 12px 14px;
  }

  .admin-console-brand img {
    width: 136px;
  }

  .admin-workspace {
    padding-inline: 20px;
  }

  .admin-console-user {
    display: none;
  }
}

@media (max-width: 620px) {
  .admin-shell.admin-console-ready {
    grid-template-columns: 168px minmax(0, 1fr);
  }

  .admin-sidebar {
    width: 168px;
    padding-inline: 8px;
  }

  .admin-console-brand {
    padding-inline: 8px;
  }

  .admin-console-brand img {
    width: 126px;
  }

  .admin-sidebar-link {
    min-height: 40px;
    padding-inline: 9px;
    font-size: 0.82rem;
  }

  .admin-workspace {
    padding: 0 14px 28px;
  }

  .admin-console-header {
    min-height: 60px;
    gap: 10px;
  }

  .admin-header-title .section-kicker,
  .admin-role-chip {
    display: none;
  }

  .admin-header h1 {
    font-size: 1rem;
  }

  .admin-main {
    padding-top: 20px;
  }
}

.referral-topbar {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr);
  gap: 14px;
}

.referral-invite-compact,
.referral-summary-compact {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.referral-invite-compact {
  display: grid;
  gap: 12px;
}

.referral-summary-compact {
  display: grid;
  gap: 10px;
}

.referral-overview-grid,
.referral-content-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.referral-invite-card,
.referral-summary-card,
.referral-records-panel,
.referral-reward-details-panel,
.referral-withdraw-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.referral-invite-card {
  display: grid;
  gap: 16px;
}

.referral-copy-block {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.referral-copy-block > span,
.referral-summary-grid span,
.referral-withdraw-balance span,
.referral-panel-heading p,
.referral-record-meta dt,
.referral-withdraw-records small,
.referral-empty-note {
  color: var(--muted);
}

.referral-copy-row {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.referral-copy-row strong,
.referral-copy-row code {
  min-width: 0;
  overflow-wrap: anywhere;
}

.referral-copy-row code {
  color: var(--text);
  font-family: inherit;
  line-height: 1.45;
}

.referral-copy-row .secondary-form-button {
  min-height: 40px;
  white-space: nowrap;
}

.referral-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.referral-summary-grid > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 10px 12px;
  background: var(--panel);
}

.referral-summary-grid strong,
.referral-withdraw-balance strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.referral-summary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.referral-summary-actions button {
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.referral-balance-action-row {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.referral-balance-action-row > strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.referral-balance-action-row > div,
.referral-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.referral-balance-action-row button,
.referral-filter-tabs button {
  min-height: 36px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.referral-records-panel,
.referral-reward-details-panel,
.referral-withdraw-panel {
  display: grid;
  align-content: start;
  gap: 16px;
}

.referral-main-records-panel {
  gap: 14px;
}

.referral-records-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.referral-filter-tabs button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 800;
}

.referral-filter-tabs button.is-active {
  border-color: rgba(45, 212, 255, 0.42);
  background: rgba(45, 212, 255, 0.12);
  color: var(--text);
}

body[data-brand="ethorus"] .referral-filter-tabs button.is-active,
body[data-brand="ethorus"] .referral-filter-tabs button[aria-selected="true"] {
  border-color: rgba(216, 179, 106, 0.5);
  background: rgba(216, 179, 106, 0.16);
  color: var(--ethorus-ivory, #F5F0E6);
}

.referral-compact-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.referral-compact-list article {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(12ch, 0.8fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
}

.referral-compact-list strong,
.referral-compact-list time {
  min-width: 0;
  overflow-wrap: anywhere;
}

.referral-compact-list time {
  color: var(--muted);
  font-size: 0.92rem;
}

.referral-panel-heading h3,
.referral-withdraw-records h4 {
  margin: 0;
}

.referral-panel-heading p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.referral-rules-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.referral-rules-panel h3 {
  margin: 0;
}

.referral-rules-panel ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}

.referral-abuse-note {
  align-self: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 6px;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text);
  line-height: 1.55;
}

.referral-rules-compact {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  padding: 14px 16px;
}

.referral-rules-compact > p:first-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.referral-share-panel {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.38);
}

.referral-share-panel .share-actions {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.referral-share-panel .share-button {
  min-height: 46px;
  padding: 0 12px;
}

.referral-share-invite {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

.referral-share-invite > span {
  color: var(--muted);
}

.referral-share-invite > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.referral-share-invite .secondary-form-button {
  flex: 0 0 auto;
  width: auto;
  min-height: 36px;
  white-space: nowrap;
}

.referral-rules-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.referral-rules-link:hover,
.referral-rules-link:focus-visible {
  text-decoration: underline;
}

.referral-details-modal {
  width: min(760px, 100%);
}

.referral-details-section {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.referral-details-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.referral-withdraw-modal {
  width: min(520px, 100%);
}

.referral-wallet-info {
  display: grid;
  gap: 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
}

.referral-wallet-info div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(12ch, 0.75fr) minmax(0, 1.25fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.referral-wallet-info dt {
  color: var(--muted);
}

.referral-wallet-info dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.referral-wallet-info .withdrawal-bound-address {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.referral-wallet-info select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 10px;
}

.referral-wallet-lock-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.referral-record-list,
.referral-reward-list,
.referral-withdraw-records {
  display: grid;
  gap: 10px;
}

.referral-record {
  display: grid;
  gap: 13px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.referral-reward-record {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
}

.referral-reward-record > div,
.referral-reward-record dl {
  min-width: 0;
}

.referral-reward-record > div {
  display: grid;
  gap: 4px;
}

.referral-reward-record > div span,
.referral-reward-record dt {
  color: var(--muted);
}

.referral-reward-record dl {
  display: grid;
  gap: 7px;
  margin: 0;
}

.referral-reward-record dl div {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.referral-reward-record dt,
.referral-reward-record dd {
  margin: 0;
}

.referral-reward-record dd {
  overflow-wrap: anywhere;
}

.referral-pagination {
  margin-top: 4px;
}

.referral-pagination--compact {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.referral-pagination--compact .pagination-button {
  min-height: 34px;
  padding-inline: 10px;
}

.referral-pagination--compact .pagination-status {
  margin-left: 0;
  white-space: nowrap;
}

.referral-pagination-total {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.referral-record-head,
.referral-withdraw-records article {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.referral-record-head strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-pill.is-muted {
  color: var(--muted);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.referral-record-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}

.referral-record-meta div {
  min-width: 0;
}

.referral-record-meta dt,
.referral-record-meta dd {
  margin: 0;
}

.referral-record-meta dd {
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.referral-withdraw-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.referral-withdraw-form {
  display: grid;
  gap: 12px;
}

.referral-withdraw-form label {
  display: grid;
  gap: 7px;
}

.referral-withdraw-records {
  padding-top: 2px;
}

.referral-withdraw-records article {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.referral-withdraw-records article > div {
  display: grid;
  gap: 3px;
}

.compact-empty-state {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.support-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 16, 28, 0.38);
}

.support-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(45, 212, 255, 0.12);
  color: var(--accent);
}

.support-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.support-card span {
  color: var(--muted);
  font-weight: 900;
}

.support-card h3 {
  margin-top: 8px;
}

.support-card p {
  margin-bottom: 0;
}

.support-action {
  grid-column: 1 / -1;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #06120e;
  font-weight: 900;
}
.support-action.is-unavailable {
  cursor: not-allowed;
  background: color-mix(in srgb, var(--muted) 42%, var(--surface));
  color: var(--text);
  opacity: .72;
}

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

.settings-grid article {
  padding: 22px;
}

.settings-stack {
  display: grid;
  gap: 14px;
}

.settings-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.settings-panel h3,
.settings-panel p {
  margin-bottom: 0;
}

.settings-note {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.compact-detail-list div {
  padding: 4px 0;
}

.toggle-row {
  min-height: 44px;
  display: flex;
  grid-template-columns: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.toggle-row:last-of-type {
  border-bottom: 0;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--accent);
}

.toggle-row span {
  flex: 1;
  color: var(--text);
}

.kyc-panel button,
.settings-grid button {
  margin-top: 12px;
  width: 100%;
}

.kyc-heading {
  display: grid;
  justify-items: start;
  gap: 6px;
}

.kyc-heading .section-kicker,
.kyc-heading h2 {
  margin: 0;
}

.kyc-back-button {
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-weight: 800;
}

.kyc-back-button:hover,
.kyc-back-button:focus-visible {
  color: var(--accent);
}

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

#kyc .kyc-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.kyc-form input,
.kyc-form select {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.kyc-form select {
  color-scheme: dark;
}

.kyc-form option {
  background: var(--panel);
  color: var(--text);
}

.kyc-form label > span { line-height: 1.5; }
.kyc-form input[type="file"]::file-selector-button { max-width: 100%; }
.kyc-form [hidden] { display: none; }

.kyc-form-grid,
.kyc-upload-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.kyc-form label,
.kyc-upload-grid label {
  min-width: 0;
  gap: 6px;
  font-size: 0.88rem;
}

.kyc-form input,
.kyc-form select,
.kyc-form textarea {
  min-height: 42px;
}

.kyc-form input[type="file"] {
  min-width: 0;
  padding: 8px;
}

.kyc-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kyc-file-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.82rem;
}

.kyc-file-control button { flex: 0 0 auto; }
.kyc-file-control [data-kyc-file-name] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.required-mark {
  display: inline;
  margin-left: 3px;
  color: #ff9f9f;
}

.kyc-field-third { grid-column: span 2; }
.kyc-field-half { grid-column: span 3; }
.kyc-field-wide { grid-column: span 4; }
.kyc-field-full { grid-column: 1 / -1; }
.kyc-birth-selects { display: grid; grid-template-columns: minmax(90px,1.3fr) repeat(2,minmax(55px,1fr)); gap: 6px; }
.kyc-phone-input { display: grid; grid-template-columns: minmax(90px,130px) minmax(0,1fr); gap: 6px; max-width: 640px; }
.kyc-birth-selects select, .kyc-phone-input select { min-width: 0; color-scheme: dark; }
.kyc-birth-selects option, .kyc-phone-input option { background: #101923; color: #f4f6fa; }
.frontend-field-error { display: block; font-size: 0.8125rem; line-height: 1.5; color: #f3a5ad; white-space: normal; overflow-wrap: anywhere; }
.frontend-field-error[hidden] { display: none; }
.kyc-birth-selects .frontend-field-error, .kyc-phone-input .frontend-field-error { grid-column: 1 / -1; }
[data-frontend-field][aria-invalid="true"] { border-color: #df7180; }
[data-frontend-field][aria-invalid="true"]:focus { outline: 2px solid #df7180; outline-offset: 2px; }
.kyc-upload-grid > label { grid-column: span 2; }

.kyc-form-actions {
  display: flex;
  justify-content: flex-end;
}

.kyc-form-actions button {
  width: auto;
  min-width: 150px;
  margin-top: 0;
}

@media (max-width: 1120px) {
  .kyc-form-grid,
  .kyc-upload-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kyc-field-third,
  .kyc-field-half,
  .kyc-upload-grid > label {
    grid-column: span 1;
  }

  .kyc-field-wide {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .kyc-form-grid,
  .kyc-upload-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .kyc-field-third,
  .kyc-field-half,
  .kyc-field-wide,
  .kyc-upload-grid > label {
    grid-column: span 1;
  }

  .kyc-form-actions button {
    width: 100%;
  }
}

.settings-panel button {
  margin-top: 4px;
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.owned-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--member-surface);
}

.product-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.product-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.network-brand {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(90, 168, 255, 0.14);
  color: var(--blue);
  font-weight: 900;
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--muted);
}

.mini-list div {
  display: grid;
  gap: 4px;
}

.mini-list dt,
.mini-list dd {
  margin: 0;
}

.mini-list dd {
  color: var(--text);
  font-weight: 800;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.025);
}

.product-actions button {
  flex: 1 1 140px;
  padding: 0 14px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  grid-template-areas:
    "heading preview"
    "content preview"
    "actions preview";
  gap: 34px;
  align-items: start;
}

.product-detail-heading {
  grid-area: heading;
}

.product-detail-content {
  grid-area: content;
}

.product-preview-column {
  grid-area: preview;
  display: grid;
  align-content: start;
  gap: 20px;
}

.product-preview-column .product-preview-card {
  grid-area: auto;
}

.product-detail-aside {
  display: grid;
  gap: 18px;
}

.product-detail-aside .product-info-section {
  margin-top: 0;
}

.product-detail-actions {
  grid-area: actions;
  margin-top: 0;
}

.product-info-section {
  margin-top: 22px;
}

.product-info-section:first-child {
  margin-top: 0;
}

.product-info-section h3 {
  margin-bottom: 9px;
}

.product-info-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.product-info-list div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.025);
}

.product-info-list dt,
.product-info-list dd {
  margin: 0;
}

.product-info-list dt {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.product-info-list dd {
  margin-top: 4px;
  color: var(--text);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-fee-list {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-fee-list div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.product-fee-list dd {
  margin-top: 0;
  text-align: right;
  white-space: nowrap;
}

.product-limit-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.product-limit-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}

.product-limit-list div:last-child {
  border-right: 0;
}

.product-limit-list dd {
  margin-top: 0;
}

.product-notice {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--gold) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 7%, transparent);
}

.product-notice p {
  margin-top: 0;
}

.product-notice ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.product-summary .status-row {
  gap: 12px;
  margin: 24px 0 20px;
}

.product-summary .status-row + h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.product-summary .feature-list {
  margin-top: 0;
}

.product-preview-card {
  grid-area: preview;
  margin-top: 28px;
}

.purchase-note {
  margin: 18px 0;
}

.owned-card-list {
  display: grid;
  gap: 18px;
}

.owned-card {
  display: inline-grid;
  grid-template-columns: minmax(330px, 430px) minmax(140px, 180px);
  gap: 10px;
  padding: 22px;
  align-items: center;
  justify-content: start;
  width: fit-content;
  max-width: 100%;
}

.owned-card.has-alert {
  border-color: rgba(255, 159, 159, 0.42);
}

.owned-card .app-card {
  margin-bottom: 0;
}

.card-layout-financial {
  padding: 20px;
}

.card-layout-financial .card-topline {
  display: contents;
}

.card-layout-financial .card-brand-identity {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.05rem;
  line-height: 1;
  z-index: 1;
}

.card-layout-financial .card-brand-mark {
  width: 31px;
  height: 31px;
}

.card-layout-financial .card-status-row {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
}

.card-layout-financial .card-status-chip {
  min-height: 34px;
  padding: 0 16px;
  font-size: 1.04rem;
  line-height: 1;
}

.card-layout-financial .card-network-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.88rem;
  line-height: 1;
  z-index: 1;
}

.card-layout-financial .card-chip {
  position: absolute;
  top: 50%;
  left: 34px;
  transform: translateY(-50%);
  width: 52px;
  height: 34px;
  margin: 0;
}

.card-layout-financial .card-balance {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.78rem;
  line-height: 1.05;
  white-space: nowrap;
}

.card-layout-financial .card-number {
  position: absolute;
  top: 68%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 1.26rem;
  line-height: 1.15;
  font-weight: 800;
  white-space: nowrap;
}

.card-layout-financial .card-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  grid-template-columns: minmax(70px, 0.75fr) minmax(0, 1.2fr) minmax(62px, 0.55fr);
  align-items: end;
  gap: 10px;
  font-size: 0.86rem;
  line-height: 1.15;
}

.card-layout-financial .card-footer span {
  white-space: nowrap;
}

.card-layout-financial .card-holder-name {
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-layout-financial .card-footer span:last-child {
  text-align: right;
}

.owned-card-info {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.card-alias-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.card-alias-form label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.card-alias-form input {
  min-width: 0;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(4, 10, 18, 0.62);
  color: var(--text);
  font: inherit;
}

.card-alias-form input:focus {
  border-color: rgba(45, 212, 255, 0.5);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 212, 255, 0.12);
}

.card-alias-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.card-alias-actions strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-alias-actions button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.owned-card-info .product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 0;
}

.owned-card-info .product-actions button {
  width: 100%;
  flex: none;
}

.owned-card-info .product-card-top p {
  margin: 6px 0 0;
  color: var(--muted);
}

.owned-card .virtual-card,
.owned-card .detail-list,
.owned-card .detail-list dd {
  min-width: 0;
}

.owned-card .detail-list dd,
.card-number {
  overflow-wrap: anywhere;
}

.status-pill.danger {
  border-color: rgba(240, 68, 56, 0.42);
  color: #ffaca6;
  background: rgba(240, 68, 56, 0.1);
}

.card-detail-block {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.card-detail-block[hidden] {
  display: none;
}

.card-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.card-filter-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1 1 160px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
}

.card-filter-tabs button.is-active {
  border-color: rgba(45, 212, 255, 0.42);
  background: rgba(45, 212, 255, 0.13);
  color: var(--text);
}

body[data-brand="ethorus"] .card-filter-tabs button.is-active,
body[data-brand="ethorus"] .card-filter-tabs button[aria-selected="true"] {
  border-color: rgba(216, 179, 106, 0.5);
  background: rgba(216, 179, 106, 0.16);
  color: var(--ethorus-ivory, #F5F0E6);
}

.card-filter-tabs span {
  min-width: 26px;
  min-height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  color: var(--accent);
  font-size: 0.8rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--modal-backdrop-surface);
  backdrop-filter: blur(14px);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(500px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--modal-surface);
  box-shadow: var(--shadow);
}

.confirm-modal .confirm-modal-heading,
.confirm-modal .modal-title-row {
  margin-bottom: 12px;
}

.confirm-modal .confirm-modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.confirm-modal .confirm-modal-heading h2,
.confirm-modal .modal-title-row h2 {
  margin: 0;
}

.confirm-modal .confirm-modal-heading .icon-button,
.confirm-modal .modal-close-button {
  width: 30px;
  min-height: 30px;
  border-color: var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 1.25rem;
}

.confirm-modal .confirm-modal-heading .icon-button:hover,
.confirm-modal .confirm-modal-heading .icon-button:focus-visible,
.confirm-modal .modal-close-button:hover,
.confirm-modal .modal-close-button:focus-visible {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--text);
}

body[data-brand="ethorus"] .confirm-modal .confirm-modal-heading .icon-button,
body[data-brand="ethorus"] .confirm-modal .modal-close-button {
  border-color: rgba(216, 179, 106, 0.3);
  background: rgba(37, 35, 31, 0.86);
  color: var(--ethorus-ivory, #F5F0E6);
}

body[data-brand="ethorus"] .confirm-modal .detail-list div {
  border-bottom-color: rgba(216, 179, 106, 0.18);
  background: rgba(37, 35, 31, 0.56);
}

.confirm-modal > p,
.confirm-modal form > p:first-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.confirm-modal .admin-form-actions,
.confirm-modal .modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* Keep Admin modal footers compact and consistently aligned to the lower right. */
.admin-body .confirm-modal .admin-form-actions,
.admin-body .confirm-modal .modal-actions,
.admin-body .confirm-modal .product-actions,
.admin-body .confirm-modal .admin-management-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 8px;
  margin-top: 16px;
}

.admin-body .confirm-modal .product-actions {
  flex-wrap: wrap;
}

.admin-body .confirm-modal .product-actions button {
  flex: 0 0 auto;
}

.admin-shared-confirm-modal {
  width: min(460px, 100%);
}

.admin-shared-confirm-modal .admin-shared-modal-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.admin-shared-confirm-modal .admin-shared-confirm-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-shared-confirm-modal .admin-shared-confirm-form label {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.9rem;
}

.admin-modal-confirm-button.is-danger {
  border-color: rgba(232, 98, 108, 0.75);
  background: rgba(196, 62, 73, 0.88);
  color: #fff;
}

.admin-modal-confirm-button.is-danger:hover,
.admin-modal-confirm-button.is-danger:focus-visible {
  border-color: #ff9ba3;
  background: #c63e49;
}

.confirm-modal [data-admin-order-archive-confirm],
.confirm-modal [data-admin-user-archive-review],
.confirm-modal [data-admin-user-archive-confirm],
.confirm-modal [data-confirm-admin-delete] {
  border-color: rgba(232, 98, 108, 0.75);
  background: rgba(196, 62, 73, 0.88);
  color: #fff;
}

.confirm-modal [data-admin-order-archive-confirm]:hover,
.confirm-modal [data-admin-order-archive-confirm]:focus-visible,
.confirm-modal [data-admin-user-archive-review]:hover,
.confirm-modal [data-admin-user-archive-review]:focus-visible,
.confirm-modal [data-admin-user-archive-confirm]:hover,
.confirm-modal [data-admin-user-archive-confirm]:focus-visible,
.confirm-modal [data-confirm-admin-delete]:hover,
.confirm-modal [data-confirm-admin-delete]:focus-visible {
  border-color: #ff9ba3;
  background: #c63e49;
}

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

.card-purchase-payment-modal {
  width: min(680px, 100%);
}

.card-purchase-payment-modal .payment-panel {
  padding: 0;
  border: 0;
  background: transparent;
}

.payment-status-summary {
  display: grid;
  gap: 14px;
  padding: 8px 0;
}

.payment-status-summary h3 {
  margin: 0;
  color: var(--text);
}

.payment-status-summary.is-completed h3 {
  color: var(--accent);
}

.payment-status-summary .detail-list {
  margin: 0;
}

.copy-detail-list {
  gap: 0;
  width: 100%;
}

.copy-detail-list .copy-detail-row {
  display: grid;
  grid-template-columns: minmax(8ch, 0.85fr) minmax(0, 2fr) 74px;
  width: 100%;
  justify-content: stretch;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.copy-detail-list .copy-detail-row:last-child {
  border-bottom: 0;
}

.copy-detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.copy-detail-list dd {
  display: contents;
}

.copy-detail-list dd span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.3;
  font-weight: 850;
}

.mini-copy-button {
  width: 74px;
  min-height: 36px;
  height: 36px;
  padding: 0;
  font-size: 0.82rem;
  justify-self: end;
}

.notice-list.danger {
  border-color: rgba(240, 68, 56, 0.32);
  background: rgba(240, 68, 56, 0.09);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

#cards .detail-columns {
  grid-template-columns: 1fr;
}

.detail-columns section {
  min-width: 0;
}

@media (max-width: 1120px) {
  .app-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }

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

@media (max-width: 880px) {
  .app-layout {
    display: block;
  }

  .app-sidebar {
    min-height: auto;
    position: sticky;
    z-index: 20;
    padding: 16px 14px;
    gap: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
  }

  .app-sidebar-head {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
  }

  .app-menu-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
  }

  .app-nav {
    width: min(360px, calc(100vw - 28px));
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    z-index: 30;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: visible;
  }

  .app-nav.is-open {
    display: grid;
  }

  .app-nav a,
  .sidebar-return {
    white-space: nowrap;
  }

  .sidebar-return {
    display: none;
  }

  .app-main {
    padding: 24px 14px 54px;
  }

  .app-topbar,
  .two-column,
  .deposit-section {
    grid-template-columns: 1fr;
    display: grid;
  }

  .app-topbar {
    gap: 14px;
  }

  .app-topbar-actions {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .notification-panel {
    left: 0;
    right: auto;
    width: min(360px, calc(100vw - 28px));
    max-height: min(540px, calc(100vh - 112px));
  }

  .account-chip {
    width: min(100%, calc(100% - 60px));
    min-width: 0;
  }

  .app-language {
    width: max-content;
    padding: 0 6px;
  }

  .app-language .language-select {
    max-width: 124px;
    padding-left: 6px;
  }

  .settings-grid,
  .product-grid,
  .product-detail,
  .owned-card,
  .detail-columns,
  .referral-overview-grid,
  .referral-content-grid,
  .referral-rules-panel,
  .referral-topbar,
  .referral-rules-compact {
    grid-template-columns: 1fr;
  }

  .referral-copy-row {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .referral-copy-row .secondary-form-button {
    width: 100%;
  }

  .referral-share-panel .share-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .referral-share-invite {
    gap: 8px;
  }

  .referral-share-panel .share-button {
    min-height: 46px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    padding: 0 10px;
  }

  .referral-reward-record {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .referral-reward-record dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

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

  .referral-balance-action-row,
  .referral-records-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .referral-summary-actions,
  .referral-filter-tabs {
    width: 100%;
  }

  .referral-summary-actions button,
  .referral-filter-tabs button {
    flex: 1 1 0;
  }

  .referral-compact-list article {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 12px;
  }

  .referral-compact-list time {
    grid-column: 1 / 2;
  }

  .referral-compact-list .status-pill {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .referral-wallet-info div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .product-detail {
    grid-template-areas:
      "heading"
      "preview"
      "content"
      "aside"
      "actions";
    gap: 20px;
  }

  .product-preview-column {
    display: contents;
  }

  .product-preview-column .product-preview-card {
    grid-area: preview;
  }

  .product-detail-aside {
    grid-area: aside;
    gap: 18px;
  }

  .product-detail-actions {
    grid-area: actions;
    margin-top: 2px;
  }

  .product-preview-card {
    margin-top: 0;
    margin-bottom: 0;
  }

  .product-detail-content .status-row {
    margin-top: 18px;
    margin-bottom: 26px;
  }

  .product-detail-content .status-row + h3 {
    margin-top: 0;
  }

  .product-info-section {
    margin-top: 18px;
  }

  .product-info-list {
    grid-template-columns: 1fr;
  }

  .product-limit-list {
    grid-template-columns: 1fr;
  }

  .product-limit-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 8px 2px;
    border-right: 0;
  }

  .product-fee-list div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 8px 2px;
  }

  .product-notice {
    padding: 11px 12px;
  }

  .product-detail-content > .product-actions {
    margin-top: 20px;
  }

  .owned-card {
    justify-content: stretch;
    width: 100%;
  }

  .owned-card .app-card {
    width: min(420px, 100%);
  }
}

@media (max-width: 560px) {
  .app-section {
    padding: 22px 16px;
  }

  .card-layout-financial {
    padding: 15px;
  }

  .card-layout-financial .card-brand-identity {
    top: 16px;
    left: 16px;
    font-size: 0.84rem;
    gap: 7px;
  }

  .card-layout-financial .card-brand-mark {
    width: 26px;
    height: 26px;
  }

  .card-layout-financial .card-status-chip {
    min-height: 28px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .card-layout-financial .card-status-row {
    top: 34px;
  }

  .card-layout-financial .card-network-badge {
    top: 16px;
    right: 16px;
    min-width: 66px;
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.76rem;
  }

  .card-layout-financial .card-chip {
    top: 50%;
    left: 28px;
    width: 42px;
    height: 27px;
  }

  .card-layout-financial .card-balance {
    top: 54%;
    font-size: 1.42rem;
  }

  .card-layout-financial .card-number {
    top: 72%;
    font-size: 0.98rem;
  }

  .card-layout-financial .card-footer {
    left: 16px;
    right: 16px;
    bottom: 15px;
    grid-template-columns: minmax(56px, 0.7fr) minmax(0, 1.45fr) minmax(48px, 0.52fr);
    gap: 6px;
    font-size: 0.62rem;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .wallet-overview {
    width: 100%;
  }

  .deposit-modal {
    padding: 20px;
  }

  .network-selector {
    grid-template-columns: 1fr;
  }

  .network-option-content {
    min-height: 68px;
  }

  .deposit-quick-amounts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-list div,
  .message-item {
    display: grid;
  }

  .support-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .support-icon {
    width: 52px;
    height: 52px;
  }

  .pagination {
    justify-content: space-between;
  }

  .pagination-pages {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .pagination-status {
    margin-left: 0;
  }

  .site-footer {
    display: grid;
    gap: 22px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .share-actions,
  .footer-share-panel .share-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .blog-share-inline {
    width: 100%;
  }

  .blog-share-inline .share-actions {
    grid-template-columns: 1fr;
  }

  .share-button {
    width: 100%;
    min-height: 52px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 0 14px;
    text-align: left;
  }

  .share-icon {
    width: 38px;
    height: 38px;
  }

  .share-icon::before {
    width: 21px;
    height: 21px;
  }

  .footer-share-panel .share-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .footer-share-panel .share-button {
    min-height: 48px;
    grid-template-columns: 32px max-content;
    justify-content: center;
    justify-items: center;
    gap: 8px;
    padding: 0 10px;
    text-align: left;
  }

  .footer-share-panel .share-icon {
    width: 32px;
    height: 32px;
  }

  .footer-share-panel .share-icon::before {
    width: 18px;
    height: 18px;
  }

  .modal-backdrop {
    padding: 14px;
  }

  .confirm-modal {
    max-height: calc(100vh - 28px);
    padding: 20px;
  }

  .copy-detail-list dd {
    display: contents;
  }

  .copy-detail-list .copy-detail-row {
    grid-template-columns: minmax(7ch, 0.7fr) minmax(0, 1fr) 72px;
    gap: 8px;
    padding: 5px 0;
  }

  .copy-detail-list dt {
    font-size: 0.78rem;
  }

  .copy-detail-list dd span {
    font-size: 0.92rem;
  }

  .mini-copy-button {
    width: 72px;
    min-height: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .detail-list dd {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .pagination-pages {
    display: flex;
    width: auto;
    order: initial;
  }

  .share-actions {
    grid-template-columns: 1fr;
  }
}

.auth-checking .app-layout {
  visibility: hidden;
}

.auth-body {
  min-height: 100vh;
}

.auth-layout {
  width: min(1080px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
  gap: 36px;
  align-items: center;
  padding: 32px 0;
}

.auth-visual {
  min-height: min(680px, calc(100vh - 64px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.auth-visual h1 {
  max-width: 620px;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.auth-route-note,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(45, 212, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.auth-route-note {
  max-width: 560px;
  padding: 22px;
}

.auth-route-note span,
.auth-route-note strong {
  display: block;
}

.auth-route-note span {
  color: var(--muted);
  margin-bottom: 8px;
}

.auth-panel {
  align-self: center;
  padding: 28px;
  box-shadow: var(--shadow);
}

@media (min-width: 881px) {
  .auth-panel {
    position: relative;
    --auth-language-control-width: 192px;
  }

  .auth-panel > .language-current {
    position: absolute;
    top: 28px;
    right: 28px;
  }

  .auth-panel > .auth-form .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--auth-language-control-width);
    align-items: start;
    padding-right: 0;
  }

  .auth-panel > .auth-form .section-heading > h2 {
    grid-column: 1;
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

.auth-links button,
.secondary-form-button {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  border: 1px solid var(--line);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form[hidden] {
  display: none;
}

.auth-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.auth-links-single {
  grid-template-columns: 1fr;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.form-message[data-type="error"] {
  color: #ff9f9f;
}

.form-message[data-type="success"] {
  color: var(--accent);
}

.security-check {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.security-check > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.security-check span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.security-check strong {
  color: var(--muted);
  font-size: 0.92rem;
}

.security-check[data-security-state="success"] {
  border-color: rgba(45, 212, 255, 0.42);
  background: rgba(45, 212, 255, 0.07);
}

.security-check[data-security-state="success"] strong {
  color: var(--accent);
}

.security-check[data-security-state="failed"] {
  border-color: rgba(255, 159, 159, 0.48);
  background: rgba(255, 96, 96, 0.07);
}

.security-check[data-security-state="failed"] strong {
  color: #ff9f9f;
}

.security-check [data-turnstile-widget] {
  min-height: 65px;
  max-width: 100%;
  overflow: hidden;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.empty-state p {
  margin-bottom: 8px;
}

@media (max-width: 880px) {
  .auth-layout {
    width: min(100% - 28px, 680px);
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 24px 0 48px;
  }

  .auth-visual {
    min-height: auto;
    justify-content: flex-start;
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-form-grid button,
  .admin-form-actions {
    width: 100%;
  }

  .admin-form-actions button {
    flex: 1 1 0;
  }

  .admin-detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-user-detail-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-user-detail-list .admin-user-detail-wide {
    grid-column: auto;
  }

  .admin-user-transfer-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-panel {
    padding: 20px 16px;
  }

  .auth-links {
    grid-template-columns: 1fr;
  }
}
.account-security-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:8px 0; }
.account-security-row small { margin-inline-start:8px; color:var(--muted); }
.account-security-row button { width:auto; min-width:72px; }
.account-security-modal { width:min(480px, calc(100vw - 32px)); }
.confirm-modal.account-security-modal .confirm-modal-heading h2 { font-size:24px; line-height:1.4; }
.account-security-form { display:grid; gap:12px; min-width:0; }
.account-security-form label { display:grid; gap:6px; min-width:0; }
.account-security-code { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:10px; align-items:end; }
.account-security-code button { width:auto; }
.account-security-form .form-message:empty { display:none; }
.account-security-form .modal-actions { display:flex; justify-content:flex-end; gap:10px; }
.account-security-form .modal-actions button { width:auto; }
.development-security-code { display:flex; align-items:center; gap:8px; min-width:0; padding:8px 10px; border:1px solid rgba(93,203,222,.28); background:rgba(25,103,122,.16); border-radius:8px; color:var(--muted); font-size:13px; }
.development-security-code code { color:#82e6f4; font-family:var(--font-mono,ui-monospace,SFMono-Regular,Menlo,monospace); font-size:15px; font-weight:700; letter-spacing:.08em; }
.development-security-code button { width:auto; margin-inline-start:auto; padding:5px 9px; font-size:12px; }
.wallet-withdraw-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.wallet-withdraw-form label { display:grid; gap:6px; min-width:0; }
.wallet-withdraw-form input, .wallet-withdraw-form select { width:100%; min-width:0; }
.wallet-withdraw-form p, .wallet-withdraw-form .modal-actions { grid-column:1/-1; }
.wallet-withdraw-form .modal-actions { display:flex; justify-content:flex-end; gap:10px; }
.wallet-withdraw-form .modal-actions button { width:auto; }
.wallet-withdraw-form [data-error] { color:#f29b9b; margin:0; }
.wallet-withdraw-form [data-error]:empty { display:none; }
@media (max-width:600px) { .wallet-withdraw-form { grid-template-columns:minmax(0,1fr); } }

.kyc-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch; }
.kyc-method-card { min-width:0; min-height:172px; display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:20px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.035); }
.kyc-method-card h3, .kyc-method-card p { margin:0; }
.kyc-method-card p { color:var(--muted); line-height:1.6; }
.kyc-method-card button { align-self:flex-end; margin-top:auto; width:auto; }
.verified-badge { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--accent); vertical-align:middle; }
.verified-badge svg { display:block; width:100%; height:100%; }
.verified-badge--small { width:14px; height:14px; }
.verified-badge--large { width:64px; height:64px; padding:10px; border:1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius:50%; background:color-mix(in srgb, var(--accent) 8%, transparent); }
.verified-status { display:inline-flex; align-items:center; justify-content:center; gap:6px; color:var(--accent); font-size:0.875rem; line-height:1.5; }
[data-settings-verification][hidden] { display:none !important; }
.kyc-verified { display:grid; justify-items:center; gap:8px; padding:12px 0; text-align:center; overflow-wrap:anywhere; }
.kyc-verified h3, .kyc-verified p { margin:0; }
.kyc-verified h3 { font-size:1.375rem; line-height:1.5; max-width:100%; }
.kyc-verified p { color:var(--muted); font-size:0.875rem; line-height:1.6; }
.kyc-status-card { display:grid; grid-template-columns:max-content minmax(0, 480px); align-items:start; gap:14px; padding:8px 0; }
.kyc-status-card h3, .kyc-status-card p { margin:0; }
.kyc-status-card h3 { margin-bottom:6px; }
.kyc-status-card p { color:var(--muted); line-height:1.6; }
.kyc-status-card .detail-list { width:auto; margin:12px 0 0; }
.kyc-status-card .detail-list div { grid-template-columns:max-content max-content; gap:12px; }
.kyc-rejected-methods { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:stretch; }
.kyc-rejected-methods > section { min-height:172px; }
.kyc-rejected-methods .kyc-rejected-status { grid-template-columns:max-content minmax(0,1fr); align-items:stretch; padding:20px; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.035); }
.kyc-rejected-methods .kyc-rejected-status > div { display:flex; flex-direction:column; align-items:stretch; min-width:0; }
.kyc-rejected-methods .kyc-rejected-assisted { min-height:172px; }
.kyc-rejected-methods button { align-self:stretch; width:100%; min-height:42px; margin-top:auto; }
@media (max-width:720px) { .kyc-rejected-methods { grid-template-columns:minmax(0,1fr); } }
@media (max-width:640px) { .kyc-status-card { grid-template-columns:1fr; gap:10px; } }
.kyc-service-setup { display:flex; flex-wrap:wrap; gap:16px; align-items:end; }
.kyc-service-setup label { display:grid; gap:8px; }
.kyc-service-setup button { width:auto; }
.kyc-service-payment { max-width:620px; margin:20px auto; min-width:0; }
.kyc-service-payment dd { overflow-wrap:anywhere; min-width:0; }
[data-kyc-assisted-payment] h2 { font-size:28px; line-height:1.4; }
.wallet-auth-admin-page { display:grid; gap:16px; min-width:0; }
.wallet-auth-chain-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.wallet-auth-chain { min-width:0; padding:13px 14px; border:1px solid color-mix(in srgb,var(--line) 84%,transparent); border-radius:8px; background:color-mix(in srgb,var(--panel) 86%,transparent); }
.wallet-auth-chain.is-ready { border-color:color-mix(in srgb,var(--accent) 34%,var(--line)); }
.wallet-auth-chain-head { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.wallet-auth-chain-head strong { font-size:0.92rem; }
.wallet-auth-chain dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 12px; margin:0; }
.wallet-auth-chain dl div { min-width:0; }
.wallet-auth-chain dt { color:var(--muted); font-size:0.72rem; }
.wallet-auth-chain dd { margin:3px 0 0; overflow:hidden; color:var(--text); font-size:0.78rem; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.wallet-auth-tronagg { display:grid; grid-template-columns:1.25fr 1fr 1fr; gap:1px; overflow:hidden; border:1px solid var(--line); border-radius:7px; background:var(--line); }
.wallet-auth-tronagg > div { display:flex; align-items:baseline; justify-content:space-between; gap:12px; min-width:0; padding:11px 14px; background:color-mix(in srgb,var(--panel) 90%,transparent); font-size:0.8rem; }
.wallet-auth-tronagg span { color:var(--muted); }
.wallet-auth-tronagg strong { font-variant-numeric:tabular-nums; }
.wallet-auth-resources { margin-bottom:8px; padding-top:10px; }
.wallet-auth-resources .admin-list-head { align-items:center; gap:10px; margin-bottom:7px; }
.wallet-auth-resources .admin-list-head h2 { margin:0; font-size:0.95rem; line-height:1.25; }
.wallet-auth-resources .admin-list-head span { font-size:0.68rem; font-weight:600; opacity:.62; }
.wallet-auth-resources [data-wallet-auth-resource-refresh] { width:auto; min-height:30px; padding:4px 9px; font-size:0.76rem; }
.wallet-auth-resource-table th,
.wallet-auth-resource-table td { white-space:nowrap; }
.wallet-auth-resource-table :is(th,td) { padding:6px 10px; line-height:1.3; }
.wallet-auth-resource-table th { font-size:0.7rem; }
.wallet-auth-resource-table td { font-size:0.76rem; }
.wallet-auth-resource-table .admin-status { min-height:20px; padding:2px 7px; font-size:0.7rem; }
.wallet-auth-resource-table td:nth-child(3),
.wallet-auth-resource-table td:nth-child(5) { font-variant-numeric:tabular-nums; }
.wallet-auth-records { padding-top:0; }
.wallet-auth-records .admin-list-head { align-items:center; gap:14px; }
.wallet-auth-toolbar { display:grid; grid-template-columns:auto minmax(0, 1fr); align-items:end; gap:12px 16px; margin-bottom:12px; }
.wallet-auth-bind { display:grid; grid-template-columns:minmax(260px,360px) max-content; align-items:end; gap:8px; padding-right:16px; border-right:1px solid var(--line); }
.wallet-auth-bind label,
.wallet-auth-filters label { display:grid; min-width:0; gap:5px; color:var(--muted); font-size:0.75rem; font-weight:800; }
.wallet-auth-bind input { width:100%; min-height:34px; padding:6px 9px; }
.wallet-auth-bind button { width:auto; min-height:34px; padding:6px 12px; }
.wallet-auth-record-tools { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; gap:10px; margin-top:14px; padding:0 0 16px; }
.wallet-auth-record-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-start; column-gap:10px; row-gap:10px; }
.wallet-auth-record-tools button { width:auto; min-height:32px; padding:5px 10px; }
.wallet-auth-managed-amount { color:var(--muted); font-size:0.8rem; font-variant-numeric:tabular-nums; }
.wallet-auth-filters {
  display: grid;
  grid-template-columns:minmax(140px,160px) minmax(160px,210px) minmax(140px,170px) minmax(240px,320px) max-content;
  min-width:0;
  align-items: end;
  gap: 8px 10px;
}
.wallet-auth-filters:not(:has(.wallet-auth-filter-owner)) { grid-template-columns:minmax(140px,160px) minmax(140px,170px) minmax(240px,320px) max-content; }
.wallet-auth-filters :is(select,input) { width:100%; min-width:0; min-height:34px; padding:6px 9px; }
.wallet-auth-filters button, .wallet-auth-pagination button { width:auto; min-height:34px; padding:6px 12px; }
@media (max-width:1480px) {
  .wallet-auth-toolbar { grid-template-columns:minmax(0,1fr); }
  .wallet-auth-bind { justify-self:start; padding:0 0 10px; border-right:0; border-bottom:1px solid var(--line); }
}
@media (max-width:1050px) {
  .wallet-auth-filters,
  .wallet-auth-filters:not(:has(.wallet-auth-filter-owner)) { grid-template-columns:repeat(2, minmax(180px, 1fr)); }
}
.wallet-auth-table { min-width:1280px; }
.wallet-auth-table :is(th,td) { padding:10px 12px; }
.wallet-auth-table td { white-space:nowrap; font-size:0.8rem; font-variant-numeric:tabular-nums; }
.wallet-auth-table td:last-child button { min-width:64px; }
.wallet-auth-table input[type="checkbox"] { inline-size:16px; block-size:16px; accent-color:var(--accent); cursor:pointer; }
.wallet-auth-row-actions { display:inline-flex; gap:7px; }
.wallet-auth-delete-button { border-color:color-mix(in srgb,#bf4141 58%,var(--line)); color:#ed9a9a; }
.wallet-auth-pagination label { display:inline-flex; align-items:center; gap:5px; }
.wallet-auth-pagination select { min-height:30px; padding:4px 7px; }
.wallet-auth-pagination button.is-current { border-color:color-mix(in srgb,var(--accent) 62%,var(--line)); color:var(--accent); }
.wallet-auth-empty { padding:26px !important; color:var(--muted); text-align:center; }
.wallet-auth-pagination { display:flex; justify-content:flex-end; align-items:center; gap:8px; padding-top:10px; color:var(--muted); font-size:0.8rem; }
.admin-referral-parent-row.is-expandable { cursor:pointer; }
.admin-referral-parent-row.is-expandable:hover { background:color-mix(in srgb,var(--accent) 7%,transparent); }
.admin-referral-expand-label { color:var(--accent); font-weight:700; }
.admin-referral-children-row > td { padding:0 !important; }
.admin-referral-children { padding:12px 16px 16px; background:color-mix(in srgb,var(--panel-strong) 72%,transparent); }
.admin-referral-children > strong { display:block; margin-bottom:8px; color:var(--muted); font-size:.8rem; }
.admin-referral-children table { width:100%; border-collapse:collapse; font-size:.8rem; }
.admin-referral-children :is(th,td) { padding:8px 10px; border-top:1px solid var(--line); text-align:left; }
.wallet-auth-transfer-modal { width:min(560px,calc(100vw - 32px)); }
.wallet-auth-transfer-modal form { display:grid; gap:12px; }
.wallet-auth-transfer-modal label { display:grid; gap:6px; color:var(--muted); font-size:0.8rem; }
.wallet-auth-transfer-amount { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px; }
.wallet-auth-transfer-amount button { min-width:62px; }
.wallet-auth-transfer-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 16px; margin:0; padding:12px; border:1px solid var(--line); border-radius:6px; background:color-mix(in srgb,var(--panel-strong) 68%,transparent); }
.wallet-auth-transfer-details div { min-width:0; }
.wallet-auth-transfer-details dt { color:var(--muted); font-size:0.72rem; }
.wallet-auth-transfer-details dd { margin:3px 0 0; overflow:hidden; font-size:0.83rem; font-variant-numeric:tabular-nums; text-overflow:ellipsis; white-space:nowrap; }
.wallet-auth-transfer-modal .form-message { min-height:0; margin:0; color:#f3a1a1; }
.wallet-auth-transfer-modal .form-message:empty { display:none; }
.wallet-auth-transfer-modal .modal-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:2px; }
.wallet-auth-transfer-modal .modal-actions button { width:auto; }
.wallet-auth-refresh-result { width:min(420px,calc(100vw - 32px)); }
.wallet-auth-refresh-result .admin-shared-modal-body { display:grid; justify-items:center; text-align:center; }
.wallet-auth-refresh-icon { display:grid; place-items:center; inline-size:42px; block-size:42px; margin:2px 0 14px; border:1px solid color-mix(in srgb,var(--accent) 48%,var(--line)); border-radius:50%; color:var(--accent); font-weight:800; font-size:1.1rem; }
.wallet-auth-refresh-summary { margin:0; color:var(--muted); font-size:0.9rem; line-height:1.7; }
.wallet-auth-refresh-result .modal-actions { display:flex; justify-content:center; margin-top:18px; }
.wallet-auth-refresh-result .modal-actions button { width:auto; }
.wallet-auth-refresh-result.is-attention .wallet-auth-refresh-icon { border-color:color-mix(in srgb,#c79b55 65%,var(--line)); color:#d8ad63; }
.wallet-auth-transfer-records-modal { width:min(1040px,calc(100vw - 32px)); }
.wallet-auth-transfer-records { min-width:820px; }
.wallet-auth-transfer-records td { white-space:nowrap; font-size:0.8rem; }
.wallet-auth-transfer-records-modal .modal-actions { display:flex; justify-content:flex-end; margin-top:12px; }
@media (max-width:900px) {
  .kyc-methods { grid-template-columns:minmax(0,1fr); }
  .wallet-auth-chain-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .kyc-service-setup { display:grid; grid-template-columns:minmax(0,1fr); }
  .wallet-auth-chain-grid, .wallet-auth-tronagg, .wallet-auth-transfer-details { grid-template-columns:minmax(0,1fr); }
  .wallet-auth-toolbar { grid-template-columns:minmax(0,1fr); }
  .wallet-auth-bind { width:100%; grid-template-columns:minmax(0,1fr) max-content; padding:0 0 10px; border-right:0; border-bottom:1px solid var(--line); }
  .wallet-auth-filters,
  .wallet-auth-filters:not(:has(.wallet-auth-filter-owner)) { grid-template-columns:minmax(0,1fr); width:100%; }
  .wallet-auth-record-tools { justify-content:stretch; }
  .wallet-auth-record-actions { width:100%; }
  .wallet-auth-record-tools button { flex:1 1 42%; }
  .wallet-auth-filters :is(select,input,button) { width:100%; }
}
