/* Auto-generated file. Do not edit directly. */
/* Source order: frontend/css/bundle-order.txt */

/* --- frontend/css/src/core/tokens.css --- */
/* Design tokens */

:root {
  --emp-color-bg: #0e0e0e;
  --emp-color-text: #ffffff;
  --emp-color-text-muted: #b9c0c8;
  --emp-color-text-soft: #d0d6e2;
  --emp-color-input-bg: #333;

  --emp-color-gold-1: #8b6f1d;
  --emp-color-gold-2: #d4af37;
  --emp-color-gold-3: #f8e473;
  --emp-color-gold-bright: #f5d76e;
  --emp-color-gold-outline: rgba(212,175,55,0.35);
  --emp-color-gold-outline-soft: rgba(212,175,55,0.15);

  --emp-color-silver-1: #a0a0a0;
  --emp-color-silver-2: #d9d9d9;
  --emp-color-silver-3: #f5f5f5;

  --emp-color-black-strong: rgba(0,0,0,0.85);
  --emp-color-black-mid: rgba(0,0,0,0.6);
  --emp-color-black-soft: rgba(0,0,0,0.4);

  --emp-radius-sm: 6px;
  --emp-radius-md: 8px;
  --emp-radius-lg: 10px;
  --emp-radius-xl: 14px;
  --emp-radius-pill: 999px;

  --emp-shadow-gold-sm: 0 0 10px rgba(212,175,55,0.6), 0 0 10px rgba(212,175,55,0.4);
  --emp-shadow-gold-md: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  --emp-shadow-gold-hover: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
  --emp-shadow-silver-md: 0 0 10px rgba(200,200,200,0.4), 0 0 10px rgba(180,180,180,0.3);
  --emp-shadow-silver-hover: 0 0 15px rgba(255,255,255,0.7), 0 0 30px rgba(255,255,255,0.5);
  --emp-shadow-card: 0 8px 18px rgba(0,0,0,0.6);
  --emp-shadow-footer: 0 -1px 5px rgba(0,0,0,.5);

  --emp-grad-gold: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  --emp-grad-silver: linear-gradient(90deg, #a0a0a0, #d9d9d9, #f5f5f5, #d9d9d9, #a0a0a0);
  --emp-grad-card: radial-gradient(circle at top, rgba(212,175,55,0.15) 0, rgba(0,0,0,0.15) 45%, rgba(0,0,0,0.55) 100%);
  --emp-grad-modal-overlay: radial-gradient(circle at top, rgba(212,175,55,0.20) 0, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.90) 100%);
  --emp-grad-modal-box: radial-gradient(circle at top, rgba(212,175,55,0.15) 0, rgba(7,7,7,0.95) 55%, rgba(0,0,0,0.98) 100%);

  --emp-footer-btn-h: 35px;
  --emp-footer-gap: 10px;
  --emp-footer-pad: 10px;
}

/* --- frontend/css/src/core/base.css --- */
/* Global base styles */

body {
  font-family: Arial, sans-serif;
  background-color: var(--emp-color-bg);
  background-image: url('../images/empirebackground.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--emp-color-text);
  margin: 0;
  padding: 0;
  height: 100%;
  min-height: 100vh;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

html:has(body.dashboard-page),
html:has(body.banking-page),
html:has(body.copytrade-page.business-page),
html:has(body.society-page),
html:has(body.ailabs-dashboard-page) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100%;
  background: #05070b url('../images/empire-krypto-capital-panel.png') center center / cover fixed no-repeat;
}

html:has(body.ailabs-dashboard-page) {
  background: #05070b url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover fixed no-repeat;
}

body.dashboard-page,
body.banking-page,
body.copytrade-page,
body.society-page,
body.ailabs-dashboard-page {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

html.intro-pending,
html.intro-pending body {
  background: #050505 !important;
}

html.intro-pending #appShell {
  opacity: 0;
  visibility: hidden;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-radius: var(--emp-radius-sm);
  background-color: var(--emp-color-input-bg);
  color: var(--emp-color-text);
}

/* Farbakzente pro Tier */
.tier-badge.starter { color:#9ad1ff; border-color:#2a4b66; }
.tier-badge.bronze  { color:#d2a679; border-color:#5a3c23; }
.tier-badge.silver  { color:#dfe4ea; border-color:#6b6f74; }
.tier-badge.gold    { color:#ffd166; border-color:#7a5a00; }

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 10px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 1.2rem;
}

/* iOS Fix: kein fixed-Background auf kleinen Screens */
@media (max-width: 900px) {
  body { background-attachment: scroll; }
}


/* --- frontend/css/src/core/layout.css --- */
/* Global layout primitives */

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo {
  max-width: 80%;
  height: auto;
}

.logo-container {
  text-align: center;
  margin: 40px 0;
}

.logo-container img {
  max-width: 350px;
  height: auto;
}

.empire-brand {
  --empire-brand-page-shift: 10px;
  --empire-brand-glow: rgba(242, 190, 54, 0.30);
  margin: 18px auto 24px;
  width: min(100%, 960px);
  display: flex;
  justify-content: center;
}

.empire-brand__link {
  color: inherit;
  text-decoration: none;
}

.empire-brand__frame {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto;
  gap: 0;
  min-width: min(100%, 640px);
  padding: 20px 42px 18px 22px;
  isolation: isolate;
}

.empire-brand__frame::before,
.empire-brand__frame::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.empire-brand__frame::before {
  left: 0;
  right: 0;
  top: calc(100% - 16px);
  height: 2px;
  background:
    linear-gradient(
      90deg,
      rgba(212,175,55,0) 0%,
      rgba(212,175,55,0.24) 10%,
      rgba(248,228,115,0.20) 28%,
      rgba(255,223,118,0.38) 50%,
      rgba(248,228,115,0.20) 72%,
      rgba(212,175,55,0.24) 90%,
      rgba(212,175,55,0) 100%
    ),
    linear-gradient(
      100deg,
      rgba(255,255,255,0) 0%,
      rgba(255,240,170,0) 28%,
      rgba(255,244,196,0.55) 48%,
      rgba(255,214,82,0.34) 52%,
      rgba(255,244,196,0.55) 56%,
      rgba(255,240,170,0) 72%,
      rgba(255,255,255,0) 100%
    );
  background-size: 100% 100%, 220% 100%;
  background-position: 0 0, 140% 0;
  border-radius: 999px;
  box-shadow:
    0 0 10px rgba(255, 210, 72, 0.10),
    0 1px 0 rgba(255, 244, 196, 0.08) inset;
  transform: none;
  animation: empireBrandRuleSweep 10.5s ease-in-out infinite;
}

.empire-brand__frame::after {
  display: none;
}

.empire-brand__the {
  position: absolute;
  left: 40px;
  top: 8px;
  z-index: 2;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(255, 223, 118, 0.88);
  font-family: "Cormorant Garamond", Georgia, serif;
  text-shadow:
    0 0 12px rgba(255, 210, 72, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.26);
  opacity: 0;
  animation: empireBrandReveal 900ms cubic-bezier(.2,.75,.2,1) 120ms forwards;
}

.empire-brand__empire {
  position: relative;
  z-index: 1;
  display: block;
  font-size: clamp(88px, 11.8vw, 140px);
  line-height: 0.88;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: "Cinzel", Georgia, serif;
  font-feature-settings: normal;
  -webkit-text-stroke: 0;
  background: linear-gradient(180deg, #f7dfa0 0%, #efc85b 22%, #dca72a 44%, #bd8615 68%, #7e5b0d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 0 20px var(--empire-brand-glow),
    0 0 40px rgba(242, 190, 54, 0.14),
    0 12px 26px rgba(0,0,0,0.42);
  font-variant-ligatures: none;
  transform-origin: center bottom;
  opacity: 0;
  background-size: 100% 100%, 260% 100%;
  background-image:
    linear-gradient(180deg, #f7dfa0 0%, #efc85b 22%, #dca72a 44%, #bd8615 68%, #7e5b0d 100%),
    linear-gradient(108deg, rgba(255,255,255,0) 10%, rgba(245,211,104,0.20) 34%, rgba(249,225,149,0.34) 45%, rgba(233,177,46,0.18) 52%, rgba(249,225,149,0.34) 60%, rgba(245,211,104,0.20) 72%, rgba(255,255,255,0) 90%);
  background-blend-mode: screen;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    empireBrandReveal 1100ms cubic-bezier(.2,.75,.2,1) 180ms forwards,
    empireBrandPulse 12s ease-in-out 1.4s infinite,
    empireBrandShine 10.5s linear 1.4s infinite;
}

.empire-brand__page {
  position: relative;
  z-index: 1;
  display: block;
  justify-self: end;
  margin-top: -8px;
  margin-right: var(--empire-brand-page-shift);
  padding-top: 10px;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 232, 156, 0.82);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-variant: normal;
  text-shadow:
    0 0 12px rgba(255,210,72,0.10),
    0 2px 8px rgba(0,0,0,0.24);
  opacity: 0;
  animation: empireBrandReveal 1000ms cubic-bezier(.2,.75,.2,1) 260ms forwards;
}


body.banking-page .empire-brand {
  --empire-brand-page-shift: 2px;
}

body.copytrade-page.business-page .empire-brand {
  --empire-brand-page-shift: 6px;
}

body.copytrade-page:not(.business-page) .empire-brand {
  --empire-brand-page-shift: 0px;
}

@keyframes empireBrandPulse {
  0%, 100% {
    filter: brightness(1) saturate(1);
    text-shadow:
      0 0 18px rgba(255, 210, 72, 0.20),
      0 0 32px rgba(255, 200, 46, 0.10),
      0 12px 26px rgba(0,0,0,0.42);
  }

  50% {
    filter: brightness(1.04) saturate(1.05);
    text-shadow:
      0 0 24px rgba(255, 210, 72, 0.26),
      0 0 40px rgba(255, 200, 46, 0.16),
      0 13px 27px rgba(0,0,0,0.43);
  }
}

@keyframes empireBrandReveal {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes empireBrandRuleSweep {
  0%, 100% {
    background-position: 0 0, 140% 0;
  }

  50% {
    background-position: 0 0, -40% 0;
  }
}

@keyframes empireBrandShine {
  0% {
    background-position: 0 0, 155% 0;
  }

  45% {
    background-position: 0 0, 24% 0;
  }

  100% {
    background-position: 0 0, -115% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empire-brand__the,
  .empire-brand__empire,
  .empire-brand__page {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .empire-brand {
    margin: 14px auto 14px;
    width: calc(100% - 18px);
  }

  .empire-brand__frame {
    width: 100%;
    min-width: 0;
    padding: 18px 8px 14px 8px;
  }

  .empire-brand__frame::before {
    left: 0;
    top: calc(100% - 12px);
    height: 1px;
  }

  .empire-brand__frame::after {
    display: none;
  }

  .empire-brand__the {
    left: 18px;
    top: 7px;
    font-size: 11px;
    letter-spacing: 0.24em;
  }

  .empire-brand__empire {
    font-size: clamp(58px, 16.5vw, 82px);
    letter-spacing: 0.08em;
  }

  .empire-brand__page {
    margin-top: -4px;
    margin-right: 0;
    padding-top: 8px;
    padding-left: 18px;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

}

.container {
  max-width: 400px;
  margin: 40px auto 120px auto;
  padding: 30px 20px;
  background-color: rgba(28, 28, 28, 0.2);
  border-radius: var(--emp-radius-md);
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Tabs (base) */
.tabs{
  display:flex;
  gap:8px;
  justify-content:center;
  margin: 10px 0 18px;
}

.tab-btn{
  padding:10px 16px;
  border-radius: var(--emp-radius-md);
  border:1px solid rgba(255,215,0,.35);
  background: rgba(28,28,28,.5);
  color:#eee;
  font-weight:700;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, opacity .12s ease;
}

.tab-btn.active{
  background: var(--emp-grad-gold);
  background-size: 300% auto;
  color:#000;
  box-shadow: var(--emp-shadow-gold-md);
}

.tab-panel{
  display:none;
}

.tab-panel.active{
  display:block;
}

/* Spacer fuer Footer-Overlay */
.spacer{
  height: 90px;
}

/* Footer */

.footer-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1a1a1a;
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom,0));
  box-shadow: var(--emp-shadow-footer);
  border-top: 1px solid #333;
  z-index: 9999;
  transform: translateZ(0);
}

.footer-nav button{
  height: 35px !important;
  min-width: 140px;
  font-size: 0.95rem !important;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0 16px !important;
  border-radius: var(--emp-radius-md);
}

@media (max-width: 600px){
  .footer-nav{
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: var(--emp-footer-btn-h);
    gap: var(--emp-footer-gap);
    padding: var(--emp-footer-pad) var(--emp-footer-pad)
             calc(var(--emp-footer-pad) + env(safe-area-inset-bottom,0));
  }

  .footer-nav button{
    width: 100%;
    height: 100% !important;
    font-size: 1.00rem !important;
    padding: 0 14px !important;
    border-radius: var(--emp-radius-lg);
  }

  .spacer{
    height: calc(
      var(--emp-footer-btn-h) * 2 +
      var(--emp-footer-gap) +
      var(--emp-footer-pad) * 2 +
      env(safe-area-inset-bottom,0)
    ) !important;
  }
}

@media (min-width: 601px){
  .spacer{
    height: calc(35px + 24px) !important;
  }
}


/* --- frontend/css/src/components/cards.css --- */
/* Shared card styles */

/* Basis-Card fuer Transfer/Withdraw-Naehe */
.card {
  background: rgba(28, 28, 28, 0.4);
  border: 1px solid rgba(43, 43, 43, 0.4);
  border-radius: var(--emp-radius-lg);
  padding: 14px;
}

.transfer-box {
  background: rgba(28, 28, 28, 0.4);
  border: 1px solid rgba(42, 42, 42, 0.4);
  border-radius: var(--emp-radius-lg);
  padding: 14px;
}

/* Generic Dashboard Cards */
.dash-card {
  margin-left: 0.7rem;
  margin-right: 0.7rem;
  position: relative;
  background: var(--emp-grad-card);
  border-radius: var(--emp-radius-xl);
  padding: 14px 16px 12px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    var(--emp-shadow-card);
  box-sizing: border-box;
  margin-bottom: 0.8rem;
  overflow: visible;
}

.dash-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--emp-color-gold-outline-soft);
  pointer-events: none;
}

.dash-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.dash-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emp-color-gold-bright);
}

.dash-label,
.dash-label-small {
  font-size: 11px;
  color: var(--emp-color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-label-small {
  font-size: 10px;
}


/* --- frontend/css/src/components/buttons.css --- */
/* Shared button styles */

/* Luxurioese Gold-Buttons (Footer und Formular-Buttons) */
.footer-nav button,
.btn-primary,
.btn-secondary,
.toggle-link {
  background: var(--emp-grad-gold);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: var(--emp-radius-sm);
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: var(--emp-shadow-gold-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-nav button:hover,
.btn-primary:hover,
.btn-secondary:hover,
.toggle-link:hover {
  transform: scale(1.05);
  box-shadow: var(--emp-shadow-gold-hover);
}

.btn-primary {
  background: var(--emp-grad-gold);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: var(--emp-radius-sm);
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: var(--emp-shadow-gold-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: var(--emp-shadow-gold-hover);
}

.btn-secondary {
  background: var(--emp-grad-silver);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: var(--emp-radius-sm);
  animation: silverShine 6s ease-in-out infinite;
  box-shadow: var(--emp-shadow-silver-md);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover,
.btn-secondary:active {
  background-color: #c0c0c0 !important;
  color: #000 !important;
}

.btn-secondary:hover {
  transform: scale(1.05);
  box-shadow: var(--emp-shadow-silver-hover);
}

@keyframes goldShine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.toggle-link {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: var(--emp-grad-silver);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  border: none;
  border-radius: var(--emp-radius-sm);
  animation: silverShine 6s ease-in-out infinite;
  box-shadow: var(--emp-shadow-silver-md);
  padding: 10px 14px;
  margin-top: 12px;
  cursor: pointer;
  text-decoration: none !important;
}

.toggle-link:hover {
  transform: scale(1.05);
  box-shadow: var(--emp-shadow-silver-hover);
}

@keyframes silverShine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

.btn-primary:active,
.btn-primary:focus {
  background: var(--emp-grad-gold) !important;
  background-size: 300% auto;
  color: #000 !important;
  box-shadow: var(--emp-shadow-gold-hover) !important;
}

.btn-secondary:active,
.btn-secondary:focus {
  background: var(--emp-grad-silver) !important;
  background-size: 300% auto;
  color: #000 !important;
  box-shadow: var(--emp-shadow-silver-hover) !important;
}


/* --- frontend/css/src/components/modals.css --- */
/* Empire modals (global base) */

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 12000;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 0 calc(112px + env(safe-area-inset-bottom,0));

  background: var(--emp-grad-modal-overlay);
  backdrop-filter: blur(6px);
}

.modal.show {
  display: flex;
  align-items: flex-start;
}

.modal-box {
  position: relative;
  max-width: min(420px);
  width: 100%;
  max-height: calc(100vh - 140px - env(safe-area-inset-bottom,0));
  margin: 0 16px;
  box-sizing: border-box;
  padding: 20px 22px 18px;
  border-radius: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--emp-grad-modal-box);
  box-shadow:
    0 0 0 1px var(--emp-color-gold-outline),
    0 18px 40px rgba(0,0,0,0.85);
}

body.modal-open,
html.modal-open {
  overflow: hidden;
}

.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.modal-box::after {
  content: "";
  position: absolute;
  inset: -40% -40% auto;
  background: radial-gradient(circle at top,
    rgba(245,215,110,0.20) 0,
    transparent 60%);
  opacity: .6;
  pointer-events: none;
}

.modal-box h3 {
  margin: 0 0 14px 0;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--emp-color-gold-bright);
}

.modal-box label {
  display: block;
  margin: 10px 0 4px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emp-color-text-muted);
}

.modal-box input,
.modal-box select {
  width: 100%;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(17,17,17,0.96);
  color: var(--emp-color-text);
  font-size: 13px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 6px 14px rgba(0,0,0,0.8);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.12s ease;
}

.modal-box input::placeholder,
.modal-box select::placeholder {
  color: #6f7a86;
}

.modal-box input:focus,
.modal-box select:focus {
  outline: none;
  border-color: rgba(245,215,110,0.85);
  background: #131313;
  box-shadow:
    0 0 0 1px rgba(245,215,110,0.75),
    0 0 18px rgba(245,215,110,0.45);
  transform: translateY(-1px);
}

.modal-box input[type="file"] {
  padding: 7px 8px;
  font-size: 12px;
  cursor: pointer;
}

.modal-actions {
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-box .btn-primary,
.modal-box .btn-secondary {
  min-width: 110px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border-width: 1px;
  text-transform: none;
}

.modal-box .btn-primary:hover {
  filter: brightness(1.03);
  transform: translateY(-1px);
}

.modal-box .btn-primary:active {
  filter: brightness(0.96);
  transform: translateY(0);
}

.modal-box .btn-secondary:hover {
  filter: brightness(1.06);
}

#kycGuide {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--emp-color-text-soft);
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
}

#kycGuide strong {
  color: var(--emp-color-gold-bright);
}

#kycHint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #ffb37a;
}

.kyc-status-card {
  margin-top: 10px;
  padding: 14px;
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 42%),
    linear-gradient(180deg, rgba(20,20,20,0.96), rgba(8,8,8,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.kyc-status-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.kyc-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emp-color-text-muted);
}

.kyc-status-heading {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--emp-color-gold-bright);
}

.kyc-status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7e1a0;
  background: rgba(0,0,0,0.45);
}

.kyc-status-copy {
  margin-top: 8px;
  color: var(--emp-color-text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.kyc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.kyc-step {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.kyc-step span {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: var(--emp-color-gold-bright);
  font-size: 11px;
  font-weight: 700;
}

.kyc-step strong {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--emp-color-text-soft);
}

.kyc-step.is-active {
  border-color: rgba(212,175,55,0.32);
  background: rgba(212,175,55,0.08);
}

.kyc-step.is-active strong {
  color: var(--emp-color-gold-bright);
}

.kyc-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kyc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kyc-field-wide {
  grid-column: 1 / -1;
}

.kyc-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.kyc-upload-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.kyc-upload-card:hover {
  transform: translateY(-1px);
  border-color: rgba(212,175,55,0.34);
  background: rgba(212,175,55,0.06);
}

.kyc-upload-title {
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.kyc-upload-meta {
  color: var(--emp-color-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.kyc-upload-file {
  color: var(--emp-color-gold-bright);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  word-break: break-word;
}

.kyc-upload-card.has-file {
  border-color: rgba(212,175,55,0.34);
  background: rgba(212,175,55,0.08);
}

.kyc-upload-card input[type="file"] {
  display: none;
}

.kyc-inline-hint {
  min-height: 1.2em;
  margin-top: 10px;
}

.modal.show .modal-box {
  animation: empireModalIn 0.24s ease-out;
}

@keyframes empireModalIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Calculator modal */
.calc-intro {
  margin: 0 0 10px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--emp-color-text-soft);
}

.calc-results {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.18) 0,
    rgba(0,0,0,0.95) 65%
  );
  border: 1px solid rgba(255,215,0,0.35);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.9),
    0 8px 20px rgba(0,0,0,0.85);
  font-size: 12px;
  color: #fdfdfd;
}

.calc-results-header {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.calc-results-pill {
  flex: 1 1 48%;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.calc-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emp-color-text-muted);
}

.calc-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--emp-color-text);
}

.calc-highlight {
  font-size: 14px;
  font-weight: 700;
  color: var(--emp-color-gold-bright);
}

.calc-results-main {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 8px;
  margin-top: 6px;
}

.calc-results-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.calc-results-row.calc-results-sub {
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.9;
}

.calc-results-row .calc-value {
  text-align: right;
  white-space: nowrap;
}

.calc-value.up {
  color: #16c784;
}

.calc-value.down {
  color: #e74c3c;
}

.calc-note {
  margin: 8px 0 0;
  font-size: 10px;
  color: var(--emp-color-text-muted);
  opacity: 0.9;
}

#calcBalance,
#calcBalance:hover,
#calcBalance:focus,
#calcBalance:active {
  background: rgba(17,17,17,0.96) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  transform: none !important;
}

#calcBalance,
#calcBalance::placeholder {
  color: #ffffff !important;
}

#calcBalance::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

/* KYC form fields: fixed dark input style */
#kycFullName,
#kycDob,
#kycCountry,
#kycFullName:hover,
#kycDob:hover,
#kycCountry:hover,
#kycFullName:focus,
#kycDob:focus,
#kycCountry:focus,
#kycFullName:active,
#kycDob:active,
#kycCountry:active {
  background: rgba(17,17,17,0.96) !important;
  border-color: rgba(255,255,255,0.12) !important;
  box-shadow: none !important;
  outline: none !important;
  transform: none !important;
  color: #ffffff !important;
}

#kycFullName::placeholder,
#kycDob::placeholder,
#kycCountry::placeholder {
  color: rgba(255,255,255,0.45) !important;
}

#kycFullName,
#kycDob,
#kycCountry {
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  -webkit-appearance: none;
}

#kycCountry {
  min-height: 46px;
}

@media (max-width: 720px) {
  .kyc-steps,
  .kyc-form-grid,
  .kyc-upload-grid {
    grid-template-columns: 1fr;
  }
}


/* --- frontend/css/src/pages/login.css --- */
/* Login / Register page */

/* Ticker/Footer auf Login-Seite ausblenden */
body.login-page .ticker,
body.login-page .footer-nav,
body.login-page .spacer {
  display: none !important;
}

body.login-page {
  background:
    radial-gradient(circle at 50% 0%, rgba(240, 207, 102, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(3, 5, 8, 0.38), rgba(5, 8, 12, 0.44) 42%, rgba(5, 8, 12, 0.64)),
    url('../images/empire-krypto-capital-panel.png') center top / cover no-repeat scroll,
    #05070b;
}

@media (max-width: 900px) {
  body.login-page {
    min-height: 100vh;
    background: #05070b;
    background-image: none;
    overflow-x: hidden;
  }

  body.login-page::before,
  body.login-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.login-page::before {
    background: url('../images/empire-krypto-capital-panel.png') 54% 12px / 360% auto no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.login-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.56) 0%, rgba(3, 5, 8, 0.35) 38%, rgba(3, 5, 8, 0.17) 64%, rgba(3, 5, 8, 0.49) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.13) 62%, rgba(5, 8, 12, 0.35)),
      linear-gradient(180deg, transparent 59%, rgba(3, 5, 8, 0.5) 100%);
  }

  body.login-page .container {
    position: relative;
    z-index: 1;
  }
}

/* Container auf Login-Seite */
body.login-page .container {
  max-width: 460px;
  margin: 22px auto 36px;
  padding: 0 16px 28px;
  background: transparent !important;
  box-shadow: none !important;
  animation: loginPageReveal 0.7s ease-out both;
}

/* HERO / LOGO-BEREICH */
body.login-page .logo-container.hero {
  text-align: center;
  margin: 0 0 2px !important;
  padding: 0 6px;
}

body.login-page .hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  width: 100%;
  max-width: 100%;
}

body.login-page .desktop-auth-narrative {
  display: none;
}

body.login-page .auth-portal-header {
  display: none;
}

body.login-page .hero-copy {
  min-width: 0;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

body.login-page .hero-wordmark {
  font-family: Georgia, serif;
  font-size: clamp(3rem, 6.8vw, 3.95rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(245, 215, 110, 0.92);
  margin: 0;
  animation: loginHeroRise 0.65s ease-out 0.04s both;
}

body.login-page .hero-submark {
  font-family: Georgia, serif;
  font-size: clamp(1.02rem, 2.35vw, 1.28rem);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
  color: rgba(226, 231, 236, 0.88);
  padding-left: 0.28em;
  margin: 0;
  animation: loginHeroRise 0.7s ease-out 0.08s both;
}

body.login-page .hero-subline {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #d0d6e2;
}

body.login-page .logo {
  width: 106px;
  max-width: 106px;
  height: auto;
  margin: 0;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 0 rgba(245, 215, 110, 0));
  animation:
    loginLogoReveal 0.8s ease-out 0.18s both,
    loginLogoGlow 5.8s ease-in-out 1.2s infinite;
}

body.login-page .auth-utility {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  justify-content: center;
  margin: -4px 0 2px;
}

body.login-page .mobile-portal-pill {
  min-height: 30px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(240, 207, 102, 0.28);
  border-radius: 999px;
  background: rgba(212, 175, 55, 0.08);
  color: rgba(244, 232, 198, 0.95);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: loginHeroRise 0.62s ease-out 0.3s both;
}

body.login-page .lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 220, 230, 0.62);
  animation: loginHeroRise 0.62s ease-out 0.34s both;
}

body.login-page .lang-switch .separator {
  opacity: 0.34;
}

body.login-page .lang-option {
  cursor: pointer;
  opacity: 0.56;
  transition: opacity 0.18s ease, color 0.18s ease;
}

body.login-page .lang-option.active {
  opacity: 1;
  color: #f5d76e;
}

/* AUTH-CARD im Empire-Stil */
body.login-page .auth-card {
  position: relative;
  margin-top: 2px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: radial-gradient(
    circle at top,
    rgba(212, 175, 55, 0.18) 0,
    rgba(0, 0, 0, 0.18) 45%,
    rgba(0, 0, 0, 0.75) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.35),
    0 12px 26px rgba(0, 0, 0, 0.85);
  box-sizing: border-box;
  overflow: hidden;
  animation: loginCardReveal 0.72s ease-out 0.32s both;
}

body.login-page .auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212, 175, 55, 0.18);
  pointer-events: none;
}

body.login-page .auth-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 0.7rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.login-page .auth-tab-btn {
  flex: 0 0 auto;
  position: relative;
  border: none;
  padding: 0 0 6px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(224, 228, 234, 0.62);
  background: transparent;
  cursor: pointer;
  outline: none;
  transition:
    color 0.18s ease,
    transform 0.08s ease;
  margin: 0 !important;
  white-space: nowrap;
}

body.login-page .auth-tab-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(245, 215, 110, 0.85);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

body.login-page .auth-tab-btn:hover {
  color: #ffffff;
}

body.login-page .auth-tab-btn.active {
  color: #f5d76e;
  transform: none;
}

body.login-page .auth-tab-btn.active::after {
  transform: scaleX(1);
}

body.login-page .auth-copy {
  margin-bottom: 10px;
}

body.login-page .auth-status {
  margin: 0 0 10px;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid rgba(245, 215, 110, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #d0d6e2;
  font-size: 0.84rem;
  line-height: 1.35;
  text-align: left;
}

body.login-page .auth-status.is-error {
  border-color: rgba(255, 107, 107, 0.42);
  color: #ffd1d1;
  background: rgba(90, 18, 18, 0.34);
}

body.login-page .auth-status.is-success {
  border-color: rgba(97, 214, 147, 0.42);
  color: #c9f5d9;
  background: rgba(17, 74, 42, 0.28);
}

body.login-page .auth-status.is-info {
  border-color: rgba(245, 215, 110, 0.32);
  color: #f3e3a0;
}

body.login-page .auth-headline {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: #f5d76e;
}

body.login-page .auth-subline {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #f5d76e;
}

body.login-page .auth-headline.is-hidden {
  display: none;
}

body.login-page .auth-subline.is-muted {
  color: #c9d0dd;
}

body.login-page .auth-panel {
  margin: 8px 0 0;
}

body.login-page input,
body.login-page button {
  width: 100%;
  max-width: none;
  margin: 10px 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.2;
}

body.login-page .btn-primary {
  background: linear-gradient(180deg, #efd98f 0%, #e2bd58 52%, #c99622 100%);
  color: #17120a !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 10px;
  animation: none;
  box-shadow:
    0 0 0 1px rgba(126, 91, 13, 0.22) inset,
    0 10px 20px rgba(0, 0, 0, 0.26),
    0 2px 6px rgba(212, 175, 55, 0.14);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

body.login-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(126, 91, 13, 0.26) inset,
    0 12px 22px rgba(0, 0, 0, 0.3),
    0 3px 8px rgba(212, 175, 55, 0.16);
  filter: saturate(1.02) brightness(1.01);
}

body.login-page .btn-primary:active,
body.login-page .btn-primary:focus {
  background: linear-gradient(180deg, #efd98f 0%, #e2bd58 52%, #c99622 100%) !important;
  color: #17120a !important;
  transform: translateY(0);
  box-shadow:
    0 0 0 1px rgba(126, 91, 13, 0.24) inset,
    0 8px 16px rgba(0, 0, 0, 0.24),
    0 2px 5px rgba(212, 175, 55, 0.12) !important;
}

body.login-page input {
  height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #222;
  color: #ebebeb;
  border: 1px solid #444;
}

body.login-page #inviteCode.readonly {
  background: #181818;
  border-color: rgba(245, 215, 110, 0.6);
}

body.login-page .password-wrapper {
  position: relative;
}

body.login-page .password-wrapper input {
  padding-right: 40px;
}

body.login-page .password-wrapper .toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(201, 208, 221, 0.72);
  cursor: pointer;
  transition: color 0.18s ease, opacity 0.18s ease;
}

body.login-page .password-wrapper .toggle-password::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d0dd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-6 10-6 10 6 10 6-3.6 6-10 6-10-6-10-6Z'/%3E%3Ccircle cx='12' cy='12' r='2.6'/%3E%3C/svg%3E");
}

body.login-page .password-wrapper .toggle-password.is-visible::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9d0dd' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.2A12.9 12.9 0 0 1 12 6c6.4 0 10 6 10 6a18.4 18.4 0 0 1-4.1 4.7'/%3E%3Cpath d='M6.7 6.7C4 8.4 2 12 2 12s3.6 6 10 6c1.8 0 3.4-.5 4.8-1.2'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
}

body.login-page .password-wrapper .toggle-password:hover,
body.login-page .password-wrapper .toggle-password:focus {
  color: #f5d76e;
  opacity: 1;
  outline: none;
}

body.login-page input::placeholder {
  font-size: 14px;
  color: antiquewhite;
}

body.login-page .field-hint {
  display: block;
  margin: -6px 0 6px;
  font-size: 0.78rem;
  color: #c9d0dd;
}

body.login-page--ai .mentor-contact-card {
  position: relative;
  margin: 12px 0;
  padding: 13px;
  border: 1px solid rgba(142, 197, 255, 0.22);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0, rgba(142, 197, 255, 0.16), transparent 36%),
    linear-gradient(145deg, rgba(12, 29, 45, 0.86), rgba(4, 10, 18, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 34px rgba(0, 0, 0, 0.28);
  text-align: left;
}

body.login-page--ai .mentor-contact-card__head span {
  display: block;
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.login-page--ai .mentor-contact-card__head p {
  margin: 6px 0 10px;
  color: rgba(225, 240, 250, 0.74);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.45;
}

body.login-page--ai .mentor-contact-select {
  min-height: 52px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(157, 215, 248, 0.18);
  border-radius: 12px;
  background: rgba(214, 236, 255, 0.055);
  color: #f2fbff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

body.login-page--ai .mentor-contact-select b,
body.login-page--ai .mentor-contact-options b {
  display: block;
  color: #f2fbff;
  font-size: 12px;
  font-weight: 900;
}

body.login-page--ai .mentor-contact-select small,
body.login-page--ai .mentor-contact-options small,
body.login-page--ai .mentor-contact-hint {
  display: block;
  margin-top: 3px;
  color: rgba(213, 235, 248, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

body.login-page--ai .mentor-contact-select svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  color: #9edcff;
  transition: transform 0.18s ease;
}

body.login-page--ai .mentor-contact-select[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

body.login-page--ai .mentor-contact-options {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

body.login-page--ai .mentor-contact-options[hidden] {
  display: none;
}

body.login-page--ai .mentor-contact-options button {
  min-height: 48px;
  margin: 0;
  padding: 9px 11px;
  border: 1px solid rgba(157, 215, 248, 0.13);
  border-radius: 10px;
  background: rgba(4, 12, 22, 0.72);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

body.login-page--ai .mentor-contact-options button:hover {
  transform: translateY(-1px);
  border-color: rgba(158, 220, 255, 0.42);
  background: rgba(142, 197, 255, 0.09);
}

body.login-page--ai .mentor-contact-value {
  margin: 9px 0 8px;
  border-color: rgba(142, 197, 255, 0.34);
  background: rgba(3, 11, 19, 0.72);
}

body.login-page--ai .mentor-contact-value[hidden] {
  display: none;
}

body.login-page--ai .mentor-contact-hint {
  margin: 8px 1px 0;
}

body.login-page .agb-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  text-align: left;
}

body.login-page .agb-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  transform: translateY(1px);
}

body.login-page .agb-row .agb-text {
  display: flex;
  align-items: center;
  line-height: 1.1;
  font-size: 0.82rem;
  color: #c9d0dd !important;
  -webkit-text-fill-color: #c9d0dd !important;
}

body.login-page .agb-row .linklike {
  width: auto !important;
  display: inline !important;
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  animation: none !important;
  font: inherit !important;
  text-decoration: underline;
}

body.login-page .agb-row .gold-link {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  animation: none;
}

body.login-page .agb-row .linklike.gold-link {
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
}

body.login-page .login-meta {
  width: 100%;
  max-width: none;
  margin: -6px 0 12px;
  padding: 0 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.login-page .login-meta > * {
  margin: 0 !important;
}

body.login-page .login-meta label.remember {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #ddd;
  cursor: pointer;
  user-select: none;
}

body.login-page .login-meta label.remember input {
  width: 16px;
  height: 16px;
  margin: 0;
}

body.login-page .login-meta label.remember span {
  white-space: nowrap;
  color: #f5d76e;
  -webkit-text-fill-color: #f5d76e;
}

body.login-page .login-meta .link-btn {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  animation: none !important;
  color: #aaaaaa !important;
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  white-space: nowrap;
}

body.login-page .toggle-link.btn-thin {
  width: 100%;
  height: 34px;
  padding: 6px 10px;
  font-size: 0.92rem;
  line-height: 1.1;
}

body.login-page #resetForm h1 {
  display: none;
}

body.login-page #resetForm #resetInfo {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #d0d6e2;
}

body.login-page .code-section {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.login-page .auth-panel.anim-in {
  animation: authPanelIn 0.22s ease-out;
}

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

body.login-page .auth-trust {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}

body.login-page .auth-trust-item {
  position: relative;
  min-height: 92px;
  padding: 10px 8px 9px;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(212, 175, 55, 0.09), rgba(8, 8, 8, 0.42) 46%),
    rgba(8, 8, 8, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  box-sizing: border-box;
  overflow: hidden;
  animation: loginTrustReveal 0.58s ease-out both;
}

body.login-page .auth-trust-item:nth-child(1) {
  animation-delay: 0.48s;
}

body.login-page .auth-trust-item:nth-child(2) {
  animation-delay: 0.56s;
}

body.login-page .auth-trust-item:nth-child(3) {
  animation-delay: 0.64s;
}

body.login-page .auth-trust-item::before {
  content: attr(data-trust-icon);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
  margin-bottom: 8px;
  border-radius: 7px;
  background: rgba(245, 215, 110, 0.12);
  border: 1px solid rgba(245, 215, 110, 0.32);
  color: #f5d76e;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
}

body.login-page .auth-trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  line-height: 1.15;
  color: #f5d76e;
}

body.login-page .auth-trust-item span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.25;
  color: #c4cad5;
  white-space: pre-line;
}

@media (min-width: 901px) {
  body.login-page {
    min-height: 100vh;
    background:
      #05070b;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
  }

  body.login-page::before,
  body.login-page::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
  }

  body.login-page::before {
    inset: 0;
    background: url('../images/empire-krypto-capital-panel.png') center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.login-page::after {
    inset: 0;
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
      linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  }

  body.login-page .container {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 64px), 1240px);
    min-height: 100vh;
    max-width: none;
    margin: 0 auto;
    padding: 96px 0 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 430px);
    align-items: center;
    gap: clamp(48px, 7vw, 112px);
  }

  body.login-page .auth-portal-header {
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 3;
    width: min(calc(100% - 64px), 1240px);
    padding: 24px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
    isolation: isolate;
  }

  body.login-page .auth-portal-header::before {
    content: "";
    position: absolute;
    inset: 0 calc((100vw - 100%) / -2) -16px;
    z-index: -1;
    background:
      linear-gradient(180deg, rgba(3, 5, 8, 0.94), rgba(3, 5, 8, 0.78) 72%, rgba(3, 5, 8, 0));
    backdrop-filter: blur(10px);
    pointer-events: none;
  }

  body.login-page .portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
  }

  body.login-page .portal-brand__mark {
    width: 46px;
    height: 46px;
    object-fit: contain;
  }

  body.login-page .portal-brand__copy {
    display: grid;
    gap: 4px;
  }

  body.login-page .portal-brand__eyebrow {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 207, 102, 0.74);
  }

  body.login-page .portal-brand__name {
    margin: 0;
    color: #f4e5b4;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 24px;
    line-height: 0.96;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  body.login-page .portal-brand__subline {
    margin: 0;
    color: rgba(219, 227, 238, 0.68);
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
  }

  body.login-page .portal-nav {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  body.login-page .portal-lang,
  body.login-page .portal-nav__link {
    min-height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: rgba(180, 190, 204, 0.9);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
  }

  body.login-page .portal-lang {
    cursor: pointer;
  }

  body.login-page .portal-lang__option {
    opacity: 1;
    color: rgba(219, 227, 238, 0.9);
  }

  body.login-page .portal-nav__link:hover,
  body.login-page .portal-nav__link:focus-visible,
  body.login-page .portal-lang:hover {
    color: #f5f7fb;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
  }

  body.login-page .portal-nav__link--portal {
    color: rgba(240, 207, 102, 0.94);
    border-color: rgba(240, 207, 102, 0.22);
    background: rgba(212, 175, 55, 0.06);
  }

  body.login-page .portal-nav__link--portal:hover,
  body.login-page .portal-nav__link--portal:focus-visible {
    color: rgba(248, 228, 115, 0.98);
    border-color: rgba(240, 207, 102, 0.34);
    background: rgba(212, 175, 55, 0.12);
  }

  body.login-page .logo-container.hero {
    justify-self: start;
    width: min(100%, 680px);
    margin: 0 !important;
    padding: 22px 0 30px;
    text-align: left;
  }

  body.login-page .hero-row {
    justify-content: flex-start;
    gap: 16px;
    margin-bottom: 34px;
  }

  body.login-page .hero-row .logo:last-child {
    display: none;
  }

  body.login-page .logo {
    width: 104px;
    max-width: 104px;
    opacity: 0.94;
  }

  body.login-page .hero-copy {
    align-items: flex-start;
    gap: 8px;
  }

  body.login-page .hero-wordmark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(4.8rem, 8vw, 7.7rem);
    line-height: 0.86;
    letter-spacing: 0.07em;
    color: #f4e5b4;
    text-shadow:
      0 0 26px rgba(212, 175, 55, 0.18),
      0 24px 42px rgba(0, 0, 0, 0.34);
  }

  body.login-page .hero-submark {
    font-size: clamp(1.06rem, 1.55vw, 1.42rem);
    letter-spacing: 0.44em;
    color: rgba(236, 240, 246, 0.78);
  }

  body.login-page .desktop-auth-narrative {
    display: block;
    max-width: 650px;
  }

  body.login-page .desktop-auth-kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 16px;
    color: rgba(240, 207, 102, 0.86);
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
  }

  body.login-page .desktop-auth-kicker::after {
    content: "";
    width: 72px;
    height: 1px;
    background: linear-gradient(90deg, rgba(240, 207, 102, 0.72), rgba(240, 207, 102, 0));
  }

  body.login-page .desktop-auth-title {
    max-width: min-content;
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.8rem, 4.86vw, 5.22rem);
    line-height: 0.92;
    font-weight: 600;
    letter-spacing: 0.035em;
    text-transform: uppercase;
    color: #f4e5b4;
    text-shadow:
      0 0 24px rgba(212, 175, 55, 0.14),
      0 20px 38px rgba(0, 0, 0, 0.42);
  }

  body.login-page .desktop-auth-copy {
    max-width: 560px;
    margin: 22px 0 0;
    color: rgba(219, 227, 238, 0.78);
    font-size: 15px;
    line-height: 1.76;
  }

  body.login-page .desktop-auth-markets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
  }

  body.login-page .desktop-auth-markets span {
    min-height: 34px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(240, 207, 102, 0.22);
    border-radius: 999px;
    background: rgba(212, 175, 55, 0.06);
    color: rgba(244, 232, 198, 0.94);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.login-page .auth-utility {
    display: none;
  }

  body.login-page .mobile-portal-pill {
    display: none;
  }

  body.login-page .lang-switch {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(219, 227, 238, 0.72);
    font-size: 11px;
    transition: border-color 180ms ease, background 180ms ease;
  }

  body.login-page .lang-switch:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
  }

  body.login-page .auth-card {
    justify-self: end;
    width: 100%;
    margin: 58px 0 0;
    padding: 24px 24px 22px;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.88), rgba(7, 10, 15, 0.92)),
      rgba(7, 10, 14, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 24px 70px rgba(0, 0, 0, 0.46),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(14px);
  }

  body.login-page .auth-card::before {
    border-color: rgba(240, 207, 102, 0.13);
  }

  body.login-page .auth-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 207, 102, 0.42), transparent);
    pointer-events: none;
  }

  body.login-page .auth-tabs {
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  body.login-page .auth-tab-btn {
    font-size: 11px;
    letter-spacing: 0.13em;
    color: rgba(219, 227, 238, 0.58);
  }

  body.login-page .auth-headline {
    margin-bottom: 8px;
    color: #f4e5b4;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  body.login-page .auth-subline,
  body.login-page .auth-subline.is-muted {
    color: rgba(219, 227, 238, 0.7);
    font-size: 13px;
    line-height: 1.55;
  }

  body.login-page input {
    height: 46px;
    margin: 9px 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(7, 10, 14, 0.76);
    color: #f5f7fb;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  }

  body.login-page input:focus {
    outline: none;
    border-color: rgba(240, 207, 102, 0.42);
    background: rgba(9, 12, 18, 0.94);
    box-shadow:
      0 0 0 3px rgba(212, 175, 55, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.035);
  }

  body.login-page input::placeholder {
    color: rgba(219, 227, 238, 0.46);
  }

  body.login-page .btn-primary {
    height: 46px;
    margin-top: 12px;
    border-radius: 6px;
    background: linear-gradient(180deg, #f3df9b 0%, #d7ad43 56%, #a97618 100%);
    box-shadow:
      0 0 0 1px rgba(255, 244, 196, 0.14) inset,
      0 14px 30px rgba(0, 0, 0, 0.34),
      0 3px 10px rgba(212, 175, 55, 0.12);
  }

  body.login-page .login-meta {
    margin: -2px 0 14px;
  }

  body.login-page .login-meta .link-btn {
    color: rgba(219, 227, 238, 0.62) !important;
  }

  body.login-page .auth-trust {
    margin-top: 18px;
    padding-top: 16px;
    gap: 10px;
  }

  body.login-page .auth-trust-item {
    min-height: 104px;
    border-color: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
      rgba(7, 10, 14, 0.58);
  }

  body.login-page .auth-trust-item::before {
    border-color: rgba(240, 207, 102, 0.22);
    background: rgba(212, 175, 55, 0.075);
    color: #f0cf66;
  }

  body.login-page .auth-trust-item strong {
    color: rgba(244, 232, 198, 0.95);
  }
}

@keyframes loginPageReveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes loginLogoReveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginLogoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0 rgba(245, 215, 110, 0));
    transform: translateY(0);
  }
  50% {
    filter: drop-shadow(0 0 13px rgba(245, 215, 110, 0.2));
    transform: translateY(-1px);
  }
}

@keyframes loginGoldlineReveal {
  from {
    opacity: 0;
    transform: scaleX(0.18);
  }
  to {
    opacity: 0.7;
    transform: scaleX(1);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  body.login-page .container,
  body.login-page .hero-wordmark,
  body.login-page .hero-submark,
  body.login-page .logo,
  body.login-page .lang-switch,
  body.login-page .auth-card,
  body.login-page .auth-trust-item {
    animation: none !important;
  }
}

@media (max-width: 480px) {
  body.login-page .container {
    margin-top: 16px;
  }
  body.login-page .auth-utility {
    margin-bottom: 8px;
  }
  body.login-page .hero-row {
    gap: 6px;
    margin: 0;
    padding: 0 2px;
  }
  body.login-page .logo {
    width: clamp(52px, 18vw, 72px);
    max-width: clamp(52px, 18vw, 72px);
    flex: 0 1 clamp(52px, 18vw, 72px);
  }
  body.login-page .logo-container .logo,
  body.login-page .logo-container img {
    width: clamp(52px, 18vw, 72px);
    max-width: clamp(52px, 18vw, 72px);
  }
  body.login-page .hero-copy {
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }
  body.login-page .hero-wordmark {
    font-size: clamp(1.55rem, 7vw, 2rem);
    letter-spacing: 0.08em;
  }
  body.login-page .hero-submark {
    font-size: clamp(0.72rem, 3vw, 0.84rem);
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
  body.login-page .auth-card {
    padding: 16px 12px 14px;
  }
  body.login-page .auth-trust {
    grid-template-columns: 1fr;
  }
  body.login-page .auth-trust-item {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 8px;
    min-height: 0;
    padding: 9px 10px;
  }
  body.login-page .auth-trust-item::before {
    grid-row: 1 / span 2;
    margin: 0;
  }
  body.login-page .auth-trust-item strong {
    margin-bottom: 2px;
  }
}

body.login-page .logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  margin: 0 0 10px !important;
}

body.login-page .logo-container .logo,
body.login-page .logo-container img {
  display: block;
  width: 106px;
  max-width: 106px;
  height: auto;
  margin: 0;
}

@media (min-width: 901px) {
  body.login-page .logo-container.hero .hero-row .logo:first-child {
    width: 128px;
    max-width: 128px;
  }
}

body.login-page .lang-switch {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.login-page .lang-switch .lang-option {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0;
}

body.login-page .lang-switch .separator {
  margin: 0;
  opacity: 0.34;
}

body.login-page--ai {
  --ai-ice: #8ec5ff;
  --ai-ice-bright: #d6ecff;
  --ai-silver: #dbe3ee;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.22), rgba(2, 5, 10, 0.44)),
    url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover fixed no-repeat,
    #05070b;
}

body.login-page--ai::before {
  background: url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover no-repeat;
}

body.login-page--ai::after {
  background:
    radial-gradient(circle at 24% 16%, rgba(142, 197, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 15, 0.18), rgba(3, 6, 12, 0.48));
}

body.login-page--ai .hero-row .logo {
  filter: drop-shadow(0 0 18px rgba(142, 197, 255, 0.12));
}

body.login-page--ai .hero-submark,
body.login-page--ai .desktop-auth-kicker,
body.login-page--ai .portal-brand__subline {
  color: rgba(214, 236, 255, 0.88);
}

body.login-page--ai .desktop-auth-kicker::after,
body.login-page--ai .auth-tab-btn.active::after {
  background: linear-gradient(90deg, transparent, rgba(142, 197, 255, 0.72), transparent);
}

body.login-page--ai .desktop-auth-title,
body.login-page--ai .auth-headline,
body.login-page--ai .auth-trust-item strong {
  color: rgba(232, 242, 255, 0.96);
}

body.login-page--ai .desktop-auth-markets span,
body.login-page--ai .portal-nav__link--portal,
body.login-page--ai .btn-primary,
body.login-page--ai .auth-trust-item::before {
  border-color: rgba(142, 197, 255, 0.28);
}

body.login-page--ai .desktop-auth-markets span,
body.login-page--ai .auth-trust-item::before {
  background: rgba(142, 197, 255, 0.08);
  color: rgba(214, 236, 255, 0.96);
}

body.login-page--ai .btn-primary {
  color: #06111d;
  background: linear-gradient(90deg, #7fb8f2, #d6ecff, #9fcfff);
  box-shadow: 0 16px 38px rgba(42, 103, 163, 0.26), inset 0 1px 0 rgba(255,255,255,0.48);
}

body.login-page--ai input:focus {
  border-color: rgba(142, 197, 255, 0.42);
  box-shadow: 0 0 0 1px rgba(142, 197, 255, 0.18), 0 0 22px rgba(142, 197, 255, 0.1);
}

body.login-page--ai .auth-tab-btn.active,
body.login-page--ai .lang-option.active,
body.login-page--ai .agb-row .gold-link,
body.login-page--ai .login-meta label.remember span,
body.login-page--ai .login-meta .link-btn:hover {
  color: rgba(214, 236, 255, 0.96) !important;
}

body.login-page--ai .auth-card,
body.login-page--ai .auth-trust-item {
  border-color: rgba(142, 197, 255, 0.1);
}

@media (max-width: 900px) {
  body.login-page--ai {
    background:
      linear-gradient(180deg, rgba(2, 6, 12, 0.18), rgba(2, 5, 10, 0.38)),
      url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center 32px / 255% auto fixed no-repeat,
      #05070b;
  }

  body.login-page--ai::before {
    background: url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center 32px / 255% auto no-repeat;
  }
}


/* --- frontend/css/src/pages/dashboard.css --- */
/* Dashboard page */

/* Value-Typo */
.dash-value {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  word-break: break-all;
}

/* ===== Top Card (Status + Settings) ===== */
.dash-top-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

/* ===== User-Card (ID + E-Mail + KYC) ===== */
.dash-user-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.dash-user-col {
  flex: 1 1 0;
  min-width: 0;
}

.dash-user-details {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dash-user-field {
  display: grid;
  gap: 2px;
}

.dash-user-field .dash-value {
  font-size: 14px;
}

#userEmail {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.dash-kyc-col {
  display: grid;
  justify-items: end;
  gap: 2px;
  align-self: start;
}

.dash-kyc-label,
.dash-kyc-status {
  text-align: right;
}

.dash-kyc-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.dash-kyc-status-text {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
}

.dash-kyc-status-text.kyc-unverified {
  color: #9ca3af;
}

.dash-kyc-status-text.kyc-rejected {
  color: #f08080;
}

.dash-kyc-link {
  font-size: 12px;
  color: #f5d76e;
  cursor: pointer;
  text-decoration: underline;
}

/* ===== Balance Hero Card ===== */
.dash-balance-card {
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding-top: 16px;
  padding-bottom: 16px;
}

.dash-balance-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 4px;
}

.dash-unit {
  font-size: 0.58em;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #b9c0c8;
  margin-left: 0.18em;
  vertical-align: baseline;
}

.dash-balance-note {
  margin-top: 2px;
  font-size: 11px;
  color: #b9c0c8;
}

.balance-glow {
  animation: balanceGlow 380ms ease-out;
}

@keyframes balanceGlow {
  0% {
    text-shadow: 0 0 0 rgba(255, 215, 140, 0);
  }
  40% {
    text-shadow: 0 0 12px rgba(255, 215, 140, 0.35);
  }
  100% {
    text-shadow: 0 0 0 rgba(255, 215, 140, 0);
  }
}

/* ===== Performance Grid (4 Mini-Cards) ===== */
.dash-perf-wrapper {
  padding-bottom: 14px;
}

.dash-perf-header {
  position: relative;
}

.dash-perf-info-wrap {
  position: relative;
  margin-left: auto;
}

.dash-perf-info-btn {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 110, 0.28);
  background: rgba(255,255,255,0.04);
  color: #f5d76e;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.dash-perf-info-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(260px, 70vw);
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(8, 10, 14, 0.96);
  color: rgba(215, 221, 229, 0.92);
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  z-index: 20;
}

.dash-perf-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dash-perf-card {
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.75) 85%
  );
  border-radius: 10px;
  padding: 8px 9px 7px;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.22),
    0 4px 12px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dash-perf-label {
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-perf-amount {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.dash-perf-pct {
  font-size: 11px;
}

.dash-perf-pct.up {
  color: #16c784;
}
.dash-perf-pct.down {
  color: #e74c3c;
}
.dash-perf-pct.neutral {
  color: #b9c0c8;
}

/* ===== Equity Card ===== */
.dash-equity-card {
  padding-bottom: 14px;
}

.dash-equity-card .equity-chart-wrap {
  margin-top: 6px;
}

/* Mobile-Feintuning */
@media (max-width: 1023px) {
  body.dashboard-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    overflow-x: hidden;
  }

  body.dashboard-page::before,
  body.dashboard-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  body.dashboard-page::before {
    z-index: 0;
    background: url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.dashboard-page::after {
    z-index: 0;
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.56) 0%, rgba(3, 5, 8, 0.35) 38%, rgba(3, 5, 8, 0.17) 64%, rgba(3, 5, 8, 0.49) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.13) 62%, rgba(5, 8, 12, 0.35)),
      linear-gradient(180deg, transparent 59%, rgba(3, 5, 8, 0.5) 100%);
  }

  body.dashboard-page #appShell {
    position: relative;
    z-index: 1;
  }

  body.dashboard-page .dash-card {
    background: radial-gradient(
      circle at top,
      rgba(212,175,55,0.20) 0,
      rgba(0,0,0,0.40) 45%,
      rgba(0,0,0,0.60) 100%
    );
  }
}

@media (max-width: 600px) {
  body.dashboard-page .empire-brand__page {
    width: calc(100% - 36px);
    display: flex;
    justify-content: space-between;
    justify-self: center;
    margin-top: -4px;
    margin-right: 0;
    padding-top: 8px;
    padding-left: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.dashboard-page .empire-brand__page::before,
  body.dashboard-page .empire-brand__page::after {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.dashboard-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(255, 232, 156, 0.9);
  }

  body.dashboard-page .empire-brand__page::after {
    content: "Dashboard";
    color: rgba(226, 234, 245, 0.82);
  }

  .container {
    padding: 0.8rem 0.7rem 1.2rem;
  }

  .dash-card {
    padding: 12px 12px 10px;
  }

  .dash-balance-value {
    font-size: 24px;
  }

  .dash-perf-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Full width fix */
.section.chart-only.dash-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

@media (max-width: 600px) {
  .section.chart-only.dash-card-wrap {
    padding-left: 0;
    padding-right: 0;
  }
}

.dash-user-card .dash-user-row {
  text-align: left;
}

.dash-kyc-col {
  text-align: right;
  align-self: start;
  padding-top: 0;
}

.dash-kyc-inline {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-height: 21px;
}

.dash-kyc-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  background: rgba(255,255,255,0.035);
  box-shadow: none;
}

.kyc-badge.kyc-unverified.dash-kyc-status {
  color: #aeb8c4;
  border: 1px solid rgba(255,255,255,0.12);
}

.kyc-badge.kyc-pending.dash-kyc-status {
  color: #d8c98a;
  border: 1px solid rgba(212,175,55,0.28);
}

.kyc-badge.kyc-rejected.dash-kyc-status {
  color: #e8aaa3;
  border: 1px solid rgba(231,76,60,0.38);
}

.kyc-badge.kyc-level1.dash-kyc-status {
  color: #9fcfaf;
  border: 1px solid rgba(82,196,125,0.36);
}

.top-actions {
  position: relative;
  z-index: 20;
}

.settings-menu {
  position: absolute;
  right: 0;
  top: 110%;
  background-color: #2a2a2a;
  min-width: 120px;
  border-radius: 6px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
}

.settings-menu a {
  color: #fff;
  padding: 10px 14px;
  text-decoration: none;
  display: block;
}

.settings-menu a:hover {
  background-color: #444;
}

.settings-menu.open {
  display: block;
}

.dash-card.dash-top-card {
  overflow: visible;
}

/* Trade-Erfolgsuebersicht */
.dash-tradestats-card {
  padding-top: 10px;
  padding-bottom: 14px;
}

.trade-stats-body {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

.trade-stats-chart-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.trade-stats-chart-shell {
  position: relative;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(
    circle at top,
    rgba(22,199,132,0.16) 0,
    rgba(0,0,0,0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 0 18px rgba(22,199,132,0.22),
    0 6px 14px rgba(0,0,0,0.75);
  overflow: hidden;
}

.trade-stats-chart-shell canvas {
  width: 100%;
  height: 100%;
}

.trade-stats-chart-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at center,
    rgba(0,0,0,0.95) 0,
    rgba(0,0,0,0.6) 50%,
    transparent 70%
  );
  pointer-events: none;
}

.trade-stats-chart-center span:first-child {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.trade-stats-chart-center span:last-child {
  margin-top: 2px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9c0c8;
}

.trade-stats-legend {
  display: flex;
  gap: 10px;
  font-size: 10px;
  color: #d7dde5;
}

.trade-stats-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.trade-stats-legend .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.8);
}

.dot-win {
  background: linear-gradient(135deg, rgba(22,199,132,0.9), rgba(46,213,124,0.7));
}
.dot-loss {
  background: linear-gradient(135deg, rgba(231,76,60,0.9), rgba(255,118,97,0.7));
}

.trade-stats-metrics {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trade-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.trade-stats-label {
  font-size: 11px;
  color: #b9c0c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trade-stats-value {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.trade-stats-value.up {
  color: #16c784;
}
.trade-stats-value.down {
  color: #e74c3c;
}

.trade-stats-value.mixed {
  display: flex;
  gap: 3px;
}

.trade-stats-value.mixed .slash {
  color: #b9c0c8;
}

.trade-stats-divider {
  height: 1px;
  width: 100%;
  margin: 2px 0 1px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0),
    rgba(255,255,255,0.18),
    rgba(255,255,255,0)
  );
}

.trade-stats-global-row {
  margin-top: 1px;
}

.trade-stats-note {
  margin-top: -4px;
  font-size: 10px;
  color: #8f99a6;
  text-align: right;
}

#tradeAvgWinPct {
  color: #16c784;
}
#tradeAvgLossPct {
  color: #e74c3c;
}

/* Performance calendar */
.dash-performance-calendar-card {
  padding-bottom: 14px;
}

.perf-calendar-header {
  align-items: flex-start;
  gap: 12px;
}

.perf-calendar-header > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.perf-calendar-sub {
  margin-top: 3px;
  font-size: 11px;
  color: #b9c0c8;
}

.perf-calendar-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.perf-calendar-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(255,255,255,0.07);
  color: #f5d76e;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.perf-calendar-nav-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.perf-calendar-month {
  min-width: 112px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
}

.perf-calendar-weekdays,
.perf-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.perf-calendar-weekdays {
  margin-top: 12px;
  color: #8f99a6;
  font-size: 10px;
  text-align: center;
  text-transform: uppercase;
}

.perf-calendar-grid {
  margin-top: 6px;
}

.perf-calendar-cell {
  min-width: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  background: rgba(255,255,255,0.05);
  color: #d7dde5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 5px;
  cursor: pointer;
  overflow: hidden;
}

.perf-calendar-cell-empty {
  border-color: transparent;
  background: transparent;
  pointer-events: none;
}

.perf-calendar-cell.is-positive {
  background: linear-gradient(135deg, rgba(22,199,132,0.30), rgba(22,199,132,0.10));
  border-color: rgba(22,199,132,0.45);
}

.perf-calendar-cell.is-negative {
  background: linear-gradient(135deg, rgba(231,76,60,0.32), rgba(231,76,60,0.10));
  border-color: rgba(231,76,60,0.45);
}

.perf-calendar-cell.is-flat {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.perf-calendar-cell.is-today {
  box-shadow: 0 0 0 1px rgba(212,175,55,0.72), 0 0 12px rgba(212,175,55,0.22);
}

.perf-calendar-cell.is-selected {
  outline: 2px solid rgba(245,215,110,0.42);
  outline-offset: 1px;
}

.perf-calendar-daynum {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.perf-calendar-value {
  width: 100%;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 700;
  text-align: right;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.perf-calendar-cell.is-empty-day .perf-calendar-value {
  color: #747e8a;
}

.perf-calendar-detail {
  margin-top: 10px;
  min-height: 18px;
  font-size: 11px;
  color: #d7dde5;
}

@media (max-width: 480px) {
  .perf-calendar-header {
    flex-direction: column;
    align-items: stretch;
  }

  .perf-calendar-nav {
    justify-content: space-between;
  }

  .perf-calendar-month {
    flex: 1 1 auto;
  }

  .perf-calendar-cell {
    padding: 4px;
  }

  .perf-calendar-value {
    font-size: 9px;
  }
}

@media (max-width: 600px) {
  .trade-stats-body {
    flex-direction: row !important;
    align-items: center;
    gap: 10px;
  }

  .trade-stats-chart-wrap {
    flex: 0 0 120px;
  }

  .trade-stats-chart-shell {
    width: 120px;
    height: 120px;
  }

  .trade-stats-chart-shell canvas {
    width: 120px !important;
    height: 120px !important;
  }

  .trade-stats-chart-center span:first-child {
    font-size: 18px;
  }

  .trade-stats-metrics {
    gap: 4px;
  }

  .trade-stats-value {
    font-size: 13px;
  }
}

.dash-settings-card {
  padding-bottom: 14px;
}

.dash-settings-grid,
.dash-settings-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.dash-settings-stack {
  flex-direction: column;
}

.dash-settings-btn {
  flex: 1 1 48%;
  min-width: 120px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  color: #f0e3ba !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.dash-settings-stack .dash-settings-btn {
  flex: 0 0 auto;
  width: 100%;
}

.dash-settings-btn-wide {
  flex-basis: 100%;
  width: 100%;
}

.dash-settings-toggle {
  position: relative;
  width: 100%;
  text-align: center;
  padding-right: 32px;
  padding-left: 32px;
}

.dash-settings-toggle::after {
  content: "+";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-weight: 800;
}

.dash-settings-toggle[aria-expanded="true"]::after {
  content: "-";
}

.dash-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 2px 0 4px;
}

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

.dash-settings-subbtn {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #d7dde5;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.dash-settings-subtoggle {
  position: relative;
  padding-right: 30px;
}

.dash-settings-subtoggle::after {
  content: "+";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #d4af37;
  font-weight: 800;
}

.dash-settings-subtoggle[aria-expanded="true"]::after {
  content: "-";
}

.dash-settings-subbtn:hover:not(:disabled) {
  border-color: rgba(255,215,0,0.35);
  color: #fdf6d0;
}

.dash-settings-export-card {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
}

.dash-settings-export-card[hidden] {
  display: none;
}

.dash-settings-export-head {
  color: #f0e3ba;
  font-size: 12px;
  font-weight: 700;
}

.dash-settings-export-copy {
  color: #b9c0c8;
  font-size: 11px;
  line-height: 1.45;
}

.dash-settings-export-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.dash-settings-export-select,
.dash-settings-export-month {
  min-height: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(180deg, rgba(23, 26, 30, 0.98), rgba(10, 12, 14, 0.98));
  color: #f0e3ba;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.45),
    0 4px 12px rgba(0,0,0,0.18);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.dash-settings-export-select {
  flex: 0 1 148px;
  padding-right: 30px;
  background-image:
    linear-gradient(180deg, rgba(23, 26, 30, 0.98), rgba(10, 12, 14, 0.98)),
    linear-gradient(45deg, transparent 50%, #d4af37 50%),
    linear-gradient(135deg, #d4af37 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size:
    auto,
    7px 7px,
    7px 7px;
  background-position:
    0 0,
    calc(100% - 16px) 12px,
    calc(100% - 11px) 12px;
}

.dash-settings-export-month {
  flex: 0 1 132px;
  padding-right: 30px;
  background-image:
    linear-gradient(180deg, rgba(23, 26, 30, 0.98), rgba(10, 12, 14, 0.98)),
    linear-gradient(45deg, transparent 50%, #d4af37 50%),
    linear-gradient(135deg, #d4af37 50%, transparent 50%);
  background-repeat: no-repeat;
  background-size:
    auto,
    7px 7px,
    7px 7px;
  background-position:
    0 0,
    calc(100% - 16px) 12px,
    calc(100% - 11px) 12px;
}

.dash-settings-export-select:focus,
.dash-settings-export-month:focus {
  border-color: rgba(212,175,55,0.5);
  box-shadow:
    inset 0 0 0 1px rgba(212,175,55,0.18),
    0 0 0 3px rgba(212,175,55,0.08);
}

.dash-settings-export-select option {
  background: #111315;
  color: #f0e3ba;
}

.dash-settings-export-month option {
  background: #111315;
  color: #f0e3ba;
}

.dash-settings-export-month.hidden {
  display: none;
}

.dash-settings-export-btn {
  margin-top: 0;
}

.dash-settings-export-status {
  min-height: 1.2em;
  color: #b9c0c8;
  font-size: 11px;
}

.dash-settings-subbtn-disabled,
.dash-settings-subbtn:disabled {
  opacity: 0.45;
  cursor: default;
}

.dash-settings-btn:hover {
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
  transform: translateY(-1px);
}

.dash-settings-btn:active {
  transform: translateY(0);
}

.dash-settings-btn-danger {
  border-color: rgba(231,76,60,0.7);
  color: #ffe6e2 !important;
}

.dash-settings-btn-danger:hover {
  border-color: rgba(231,76,60,0.9);
  background: rgba(31,18,18,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(231,76,60,0.18);
}

.modal-hint {
  color: #cbd5df;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.sessions-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.session-main {
  min-width: 0;
}

.session-device {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  color: #f3f6fb;
  font-size: 13px;
  font-weight: 700;
}

.session-current {
  border-radius: 999px;
  border: 1px solid rgba(255,215,0,0.35);
  padding: 2px 7px;
  color: #f8db75;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-history-badge {
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.login-history-success {
  border: 1px solid rgba(76, 175, 80, 0.45);
  color: #9ee6b8;
}

.login-history-failed {
  border: 1px solid rgba(255, 100, 100, 0.45);
  color: #ff9b9b;
}

.notification-toggle-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
}

.notification-toggle-row span {
  display: grid;
  gap: 4px;
}

.notification-toggle-row strong {
  color: #f3f6fb;
  font-size: 13px;
}

.notification-toggle-row small {
  color: #aeb8c4;
  font-size: 12px;
  line-height: 1.4;
}

.notification-toggle-row input {
  width: 42px;
  height: 22px;
  accent-color: #d7b44c;
}

.session-meta,
.sessions-empty {
  color: #aeb8c4;
  font-size: 12px;
  line-height: 1.45;
}

.session-end {
  border: 1px solid rgba(255,215,0,0.35);
  border-radius: 8px;
  background: rgba(255,215,0,0.08);
  color: #f8db75;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 9px;
  cursor: pointer;
}

.session-end:disabled {
  opacity: 0.55;
  cursor: default;
}

@media (max-width: 480px) {
  .dash-settings-btn {
    flex: 1 1 100%;
  }

  .session-item {
    grid-template-columns: 1fr;
  }

  .session-end {
    width: 100%;
  }
}

/* Empire Status */
.dash-status-card {
  padding-top: 16px;
  padding-bottom: 14px;
}

.dash-login-reward-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(245, 215, 110, 0.28);
  padding: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.05);
  background:
    radial-gradient(circle at 88% 12%, rgba(245, 215, 110, 0.16), transparent 24%),
    radial-gradient(circle at 8% 0%, rgba(117, 82, 22, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(22, 19, 11, 0.96), rgba(8, 8, 8, 0.98));
}

.dash-login-reward-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 215, 110, 0.18), transparent 34%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 9px);
  opacity: 0.55;
}

.dash-login-reward-card > * {
  position: relative;
  z-index: 1;
}

.dash-login-reward-card.is-warning {
  border-color: rgba(255, 176, 82, 0.44);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 176, 82, 0.24), transparent 25%),
    radial-gradient(circle at 10% 4%, rgba(148, 58, 24, 0.28), transparent 38%),
    linear-gradient(180deg, rgba(27, 16, 10, 0.98), rgba(9, 8, 8, 0.98));
}

.dash-login-reward-card.hidden {
  display: none;
}

.dash-login-reward-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dash-login-reward-kicker {
  margin: 0;
  color: #f6d87c;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
}

.dash-login-reward-title {
  margin-top: 3px;
  color: #ffe8a3;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-shadow: 0 0 18px rgba(245, 215, 110, 0.18);
}

.dash-login-reward-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  max-width: 92px;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe88c, #b98523);
  border: 1px solid rgba(255, 245, 190, 0.32);
  color: #160f04;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(185, 133, 35, 0.2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-login-reward-card.is-warning .dash-login-reward-points {
  background: linear-gradient(135deg, #ffbd69, #d5622d);
  color: #1a0903;
}

.dash-login-reward-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash-login-reward-meta span {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 27px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 110, 0.12);
  background: rgba(255, 255, 255, 0.055);
  color: #d7c994;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
}

.dash-login-reward-meta span:first-child {
  color: #ffe8a3;
  background: rgba(245, 215, 110, 0.095);
}

.dash-login-reward-meta span:nth-child(2) {
  color: #bfe7b8;
  border-color: rgba(139, 214, 125, 0.18);
}

.dash-login-reward-card.is-warning .dash-login-reward-meta span:nth-child(2) {
  color: #ffba78;
  border-color: rgba(255, 176, 82, 0.24);
  background: rgba(255, 176, 82, 0.08);
}

.dash-login-reward-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dash-login-reward-btn,
.dash-login-reward-link {
  min-height: 30px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.dash-login-reward-btn {
  border: 0;
  background: linear-gradient(135deg, #ffe88c, #b98523);
  color: #130f07;
  box-shadow: 0 10px 24px rgba(185, 133, 35, 0.2);
}

.dash-login-reward-link {
  border: 1px solid rgba(245, 215, 110, 0.16);
  background: rgba(255,255,255,0.035);
  color: #d7c994;
}

.dash-login-reward-btn:hover,
.dash-login-reward-link:hover {
  transform: translateY(-1px);
}

.dash-login-reward-link:hover {
  border-color: rgba(245, 215, 110, 0.32);
  background: rgba(245, 215, 110, 0.06);
}

.dash-login-reward-btn.hidden {
  display: none;
}

.dash-promo-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 16px 14px 14px;
  border: 1px solid rgba(90, 197, 255, 0.18);
  background:
    radial-gradient(circle at 92% 10%, rgba(90, 197, 255, 0.16), transparent 26%),
    radial-gradient(circle at 12% 0%, rgba(27, 99, 170, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 10, 16, 0.98));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255,255,255,0.04);
}

.dash-promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04), transparent 40%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 10px);
  opacity: 0.55;
}

.dash-promo-card > * {
  position: relative;
  z-index: 1;
}

.dash-promo-card.hidden {
  display: none;
}

.dash-promo-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.dash-promo-title {
  display: block;
  max-width: 100%;
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

.dash-promo-copy {
  margin: 0;
  color: #d2def6;
  font-size: 13px;
  line-height: 1.4;
  max-width: 34ch;
  text-align: center;
  justify-self: center;
}

.dash-promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #07111d;
  background: linear-gradient(135deg, #82e6ff, #44b7ff);
  border: 1px solid rgba(194, 240, 255, 0.34);
  box-shadow: 0 10px 22px rgba(68, 183, 255, 0.16);
}

.dash-promo-badge.is-active {
  color: #11150b;
  background: linear-gradient(135deg, #b7f36f, #68bf45);
  border-color: rgba(211, 255, 175, 0.28);
  box-shadow: 0 10px 22px rgba(104, 191, 69, 0.15);
}

.dash-promo-actions {
  display: flex;
  justify-content: stretch;
}

.dash-promo-btn {
  min-height: 34px;
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: linear-gradient(135deg, #86ebff, #2e9dff);
  color: #08111d;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
  box-shadow: 0 12px 24px rgba(46, 157, 255, 0.18);
}

.dash-promo-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.promo-modal-box {
  max-width: min(560px, calc(100vw - 32px));
  padding-top: 18px;
}

.promo-modal-close-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: #f2f4f8;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.promo-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 44px;
}

.promo-modal-copy h3 {
  margin-bottom: 8px;
}

.promo-modal-hint {
  margin: 0;
  max-width: 36ch;
}

.promo-modal-flyer-frame {
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.promo-modal-flyer {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 560px) {
  .dash-login-reward-card {
    padding: 12px;
  }

  .dash-login-reward-top {
    align-items: flex-start;
  }

  .dash-login-reward-title {
    font-size: 14px;
  }

  .dash-login-reward-kicker {
    font-size: 12px;
  }

  .dash-login-reward-points {
    max-width: 78px;
    height: 30px;
    font-size: 12px;
  }

  .dash-login-reward-meta {
    gap: 5px;
  }

  .dash-login-reward-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .dash-promo-card {
    gap: 12px;
    padding-top: 18px;
  }

  .promo-modal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-promo-copy {
    max-width: none;
  }

  .dash-promo-badge {
    min-width: 42px;
  }

  .dash-promo-btn {
    width: 100%;
  }

  .promo-modal-box {
    padding-left: 16px;
    padding-right: 16px;
  }

  .promo-modal-header {
    padding-right: 34px;
  }
}

.dash-status-card .dash-card-header {
  align-items: flex-start;
}

.dash-status-card .dash-card-header > div:first-child {
  text-align: left;
}

.dash-status-rank {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
}

.dash-status-share {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 600;
  color: #f5d76e;
}

.dash-status-next {
  text-align: right;
  align-self: flex-start;
}

.dash-status-next-label {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #f5d76e;
}

.dash-status-progress-wrap {
  margin-top: 10px;
}

.dash-status-progress-bg {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.15),
    0 6px 14px rgba(0,0,0,0.9);
  overflow: hidden;
}

.dash-status-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6f1d, #ffd700, #16c784);
  box-shadow: 0 0 16px rgba(248,228,115,0.55);
  transform-origin: left center;
  transition: width 1s ease-out;
}

.dash-status-progress-meta {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dash-status-quests {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}

.dash-status-claim {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(245, 215, 110, 0.2);
  background:
    radial-gradient(circle at top right, rgba(245, 215, 110, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(20, 18, 10, 0.94), rgba(9, 9, 9, 0.98));
}

.dash-status-claim.hidden {
  display: none;
}

.dash-status-claim-copy {
  font-size: 12px;
  line-height: 1.45;
  color: #e5d6a1;
  white-space: pre-line;
}

.dash-status-claim-btn {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: linear-gradient(135deg, #ffe88c, #b98523);
  color: #130f07;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(185, 133, 35, 0.24);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dash-status-claim-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.dash-status-claim-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.status-quest {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #e0e4ea;
  opacity: 0;
  transform: translateY(4px);
  animation: dashQuestFadeIn 0.4s ease-out forwards;
}

.status-quest:nth-child(1) { animation-delay: 0.05s; }
.status-quest:nth-child(2) { animation-delay: 0.12s; }
.status-quest:nth-child(3) { animation-delay: 0.19s; }
.status-quest:nth-child(4) { animation-delay: 0.26s; }

.status-quest-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.status-quest-icon.done {
  background: rgba(22,199,132,0.18);
  border: 1px solid rgba(22,199,132,0.7);
  color: #2ecc71;
}

.status-quest-icon.todo {
  background: rgba(149,165,166,0.2);
  border: 1px solid rgba(149,165,166,0.5);
  color: #ecf0f1;
}

.status-quest-icon.locked {
  background: rgba(52,73,94,0.3);
  border: 1px solid rgba(52,73,94,0.7);
  color: #95a5a6;
}

.status-quest-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1 1 auto;
  text-align: left;
}

.status-quest-title {
  font-weight: 600;
  font-size: 12px;
}

.status-quest-progress {
  font-size: 11px;
  color: #b9c0c8;
}

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

.dash-status-gold-stats {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.dash-status-gold-title {
  font-size: 11px;
  color: #f5d76e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.dash-status-gold-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.dash-status-gold-item {
  background: rgba(0,0,0,0.55);
  border-radius: 10px;
  padding: 6px 8px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 4px 10px rgba(0,0,0,0.7);
}

.dash-status-gold-label {
  font-size: 10px;
  color: #b9c0c8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-status-gold-value {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.dash-teamcareer-card #teamCareerProgressFill {
  background: linear-gradient(90deg, #8b6f1d, #ffd700, #6cb8ff);
}

.dash-teamcareer-card #teamCareerRewards .dash-status-gold-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.dash-teamcareer-card #teamCareerRewards .dash-status-gold-value {
  font-size: 13px;
}

@media (max-width: 600px) {
  .dash-status-gold-grid {
    grid-template-columns: 1fr;
  }
}

.dash-balance-card:focus-visible {
  outline: 2px solid rgba(255,255,255,0.18);
  outline-offset: 3px;
  border-radius: 16px;
}

.dash-balance-card:hover {
  transform: translateY(-1px);
}

.dash-balance-card:active {
  transform: translateY(0px);
}

.dash-balance-card.balance-empty {
  position: relative;
}

@keyframes empireBreathe {
  0%   { box-shadow: 0 0 0 rgba(255,255,255,0.00); border-color: rgba(255,255,255,0.10); }
  50%  { box-shadow: 0 0 22px rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.22); }
  100% { box-shadow: 0 0 0 rgba(255,255,255,0.00); border-color: rgba(255,255,255,0.10); }
}

.dash-balance-card.balance-empty.balance-breathe {
  animation: empireBreathe 4.8s ease-in-out infinite;
}

.dash-balance-card.balance-empty .dash-balance-value {
  font-size: 1.05rem;
  line-height: 1.35;
  letter-spacing: 0.2px;
  opacity: 0.92;
}

.dash-balance-card.balance-empty .dash-balance-note {
  opacity: 0.75;
}

/* Trade history row highlight */
.tx-row-focus {
  position: relative;
  animation: txFocusPulse 1.6s ease-in-out;
  box-shadow: 0 0 0 1px rgba(212,175,55,0.55), 0 0 18px rgba(212,175,55,0.25);
  background: rgba(212,175,55,0.08);
}

@keyframes txFocusPulse {
  0%   { transform: scale(1);   background: rgba(212,175,55,0.12); }
  50%  { transform: scale(1.01); background: rgba(212,175,55,0.18); }
  100% { transform: scale(1);   background: rgba(212,175,55,0.08); }
}

/* Dashboard intro overlay */
.empire-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 0s linear 180ms;
}

.empire-intro.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0s linear 0s;
}

.empire-intro__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.985), rgba(0,0,0,0.985)),
    radial-gradient(1100px 700px at 50% 45%,
      rgba(212,175,55,0.14) 0%,
      rgba(10,10,10,0.96) 55%,
      rgba(0,0,0,0.995) 100%),
    radial-gradient(1200px 900px at 50% 55%,
      rgba(255,255,255,0.05) 0%,
      rgba(0,0,0,0.00) 55%),
    radial-gradient(1400px 900px at 50% 50%,
      rgba(0,0,0,0.00) 40%,
      rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 260ms ease;
}

.empire-intro.show .empire-intro__bg {
  opacity: 1;
}

.empire-intro__center {
  position: relative;
  text-align: center;
  transform: translateY(6px) scale(0.99);
  opacity: 0;
  transition: opacity 260ms ease, transform 260ms ease;
  will-change: transform, opacity;
}

.empire-intro.show .empire-intro__center {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.empire-intro__logo {
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
  font-size: clamp(40px, 7vw, 78px);
  filter: none;
}

.empire-letter {
  display: inline-block;
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 10px rgba(212,175,55,0.20))
          drop-shadow(0 0 24px rgba(248,228,115,0.10));
}

.empire-i {
  display: inline-block;
  transform: translateZ(0);
  will-change: transform, filter;
}

.empire-intro.play .empire-i {
  animation: empireIHop 650ms cubic-bezier(.2, .8, .2, 1) 1 both;
}

@keyframes empireIHop {
  0%   { transform: translateY(0) scaleX(1) scaleY(1); }
  22%  {
    transform: translateY(-12px) scaleX(0.98) scaleY(1.02);
    filter: drop-shadow(0 0 12px rgba(248,228,115,0.35))
            drop-shadow(0 0 32px rgba(245,215,110,0.22));
  }
  52%  { transform: translateY(0) scaleX(1.025) scaleY(0.975); }
  64%  { transform: translateY(-3px) scaleX(0.997) scaleY(1.003); }
  78%  { transform: translateY(0) scaleX(1.008) scaleY(0.992); }
  88%  { transform: translateY(-1px) scaleX(0.999) scaleY(1.001); }
  100% {
    transform: translateY(0) scaleX(1) scaleY(1);
    filter: drop-shadow(0 0 10px rgba(212,175,55,0.20))
            drop-shadow(0 0 24px rgba(248,228,115,0.10));
  }
}

.empire-intro.out .empire-intro__bg {
  opacity: 0;
}

.empire-intro.out .empire-intro__center {
  opacity: 0;
  transform: translateY(-4px) scale(0.995);
}

@media (prefers-reduced-motion: reduce) {
  .empire-intro__bg,
  .empire-intro__center {
    transition: none !important;
  }
  .empire-intro.play .empire-i {
    animation: none !important;
  }
}

.empire-intro__stack{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empire-intro__sub{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(12px, 1.6vw, 16px);
  color: rgba(226, 231, 236, 0.88);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  padding-left: 0.22em;
}

.empire-intro__rule{
  width: min(320px, 70vw);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(245,215,110,0.20) 20%,
    rgba(255,255,255,0.10) 50%,
    rgba(245,215,110,0.20) 80%,
    rgba(255,255,255,0) 100%);
  opacity: 0.55;
  transform: translateY(-2px);
}

.desktop-security-heading,
.desktop-security-status,
.desktop-security-section {
  display: none;
}

@media (min-width: 1024px) {
  body.dashboard-page .dash-settings-card {
    background:
      radial-gradient(circle at 92% 0%, rgba(240,207,102,0.12), transparent 28%),
      linear-gradient(180deg, rgba(13, 17, 24, 0.62), rgba(7, 10, 15, 0.68)),
      rgba(7, 10, 14, 0.24);
  }

  body.dashboard-page .dash-settings-card .dash-card-header {
    display: block;
    min-height: 0;
    padding-bottom: 14px;
  }

  body.dashboard-page .dash-settings-title-mobile {
    display: none;
  }

  body.dashboard-page .desktop-security-heading {
    display: grid;
    gap: 4px;
  }

  body.dashboard-page .desktop-security-subline {
    color: rgba(185,196,209,0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  body.dashboard-page .desktop-security-status {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
  }

  body.dashboard-page .desktop-security-chip {
    min-width: 0;
    padding: 9px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.dashboard-page .desktop-security-chip span,
  body.dashboard-page .desktop-security-chip strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.dashboard-page .desktop-security-chip span {
    color: rgba(185,196,209,0.68);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  body.dashboard-page .desktop-security-chip strong {
    margin-top: 3px;
    color: rgba(244,232,198,0.92);
    font-size: 11px;
    font-weight: 900;
  }

  body.dashboard-page .dash-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 16px;
  }

  body.dashboard-page #settingsSecurityToggle,
  body.dashboard-page #settingsPrefsToggle {
    display: none !important;
  }

  body.dashboard-page #settingsSecurityPanel,
  body.dashboard-page #settingsPrefsPanel,
  body.dashboard-page #settingsSecurityPanel[hidden],
  body.dashboard-page #settingsPrefsPanel[hidden] {
    display: contents !important;
  }

  body.dashboard-page .desktop-security-section {
    display: block;
    margin: 9px 0 2px;
    color: rgba(240,207,102,0.78);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  body.dashboard-page .desktop-protection-section { order: 10; }
  body.dashboard-page #settingsKyc { order: 11; }
  body.dashboard-page #open2FA { order: 12; }
  body.dashboard-page #changePassword { order: 13; }
  body.dashboard-page #changeEmail { order: 14; }
  body.dashboard-page .desktop-access-section { order: 20; }
  body.dashboard-page #activeSessions { order: 21; }
  body.dashboard-page #loginHistory { order: 22; }
  body.dashboard-page .desktop-tools-section { order: 30; }
  body.dashboard-page #openCalculator { order: 31; }
  body.dashboard-page #notificationsSettings { order: 32; }
  body.dashboard-page #changeLanguage { order: 33; }
  body.dashboard-page #tradeExportToggle { order: 34; }
  body.dashboard-page #tradeExportPanel { order: 35; }
  body.dashboard-page #logoutBtn { order: 50; }

  body.dashboard-page .dash-settings-card .dash-settings-btn,
  body.dashboard-page .dash-settings-card .dash-settings-subbtn {
    position: relative;
    min-height: 52px;
    padding: 10px 42px 10px 13px !important;
    border-radius: 8px;
    text-align: left;
    line-height: 1.15;
    white-space: normal;
  }

  body.dashboard-page .dash-settings-card .dash-settings-btn::before,
  body.dashboard-page .dash-settings-card .dash-settings-subbtn::before {
    content: ">";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(240,207,102,0.74);
    font-size: 15px;
    font-weight: 900;
  }

  body.dashboard-page .dash-settings-card .dash-settings-btn[data-desktop-subline]::after,
  body.dashboard-page .dash-settings-card .dash-settings-subbtn[data-desktop-subline]::after {
    content: attr(data-desktop-subline);
    position: static;
    display: block;
    margin-top: 4px;
    transform: none;
    color: rgba(185,196,209,0.68);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
  }

  body.dashboard-page .dash-settings-card .dash-settings-btn-danger {
    min-height: 42px;
    margin-top: 10px;
    border-color: rgba(231,76,60,0.24);
    background: rgba(231,76,60,0.045);
  }

  body.dashboard-page .dash-settings-card .dash-settings-btn-danger::before {
    color: rgba(255,170,160,0.72);
  }

  body.dashboard-page .dash-settings-export-card {
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
  }
}


/* --- frontend/css/src/pages/business.css --- */
/* Business page */

/* Shared tabbar style for Business + Copytrade sections */
.business-page .tabs,
.copytrade-page .tabs,
.biz-tabs {
  display: flex;
  gap: 6px;
  margin: 0.8rem 0 1.1rem;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 6px 16px rgba(0,0,0,0.7);
}

.business-page .tab-btn,
.copytrade-page .tab-btn,
.biz-tabs .tab-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.business-page .tab-btn:hover,
.copytrade-page .tab-btn:hover,
.biz-tabs .tab-btn:hover {
  color: #ffffff;
}

.business-page .tab-btn.active,
.copytrade-page .tab-btn.active,
.biz-tabs .tab-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85),
    0 0 14px rgba(255,215,0,0.55);
  transform: translateY(-1px);
}

body.business-page .gold-title {
  display: block;
  width: 100%;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
  color: #f5d76e !important;
  text-align: center !important;
  margin: 0.4rem 0 1.2rem !important;
  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18) !important;
}

/* allbusiness page has both classes: copytrade-page + business-page */
body.copytrade-page.business-page .gold-title {
  display: block;
  width: 100%;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.copytrade-page.business-page .deposit-container {
  padding-top: 0.15rem;
}

.business-page .btn-gold {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.business-page .btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

body.business-page #refLink,
body.business-page #searchInput {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 12px;
  display: block;
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d) !important;
  color: #000 !important;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  text-align: center;
  box-sizing: border-box;
}

body.business-page #refLink::placeholder,
body.business-page #searchInput::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

.business-page #searchInput {
  font-size: 14px !important;
  height: 33px;
  padding: 8px 12px;
}

.business-page #searchInput::placeholder { font-size: 14px; }

#panel-business .biz-section {
  margin-top: 0.75rem;
}

#panel-business .biz-section-title {
  margin-bottom: 0.5rem;
}

.biz-card {
  position: relative;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 14px 16px 12px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  overflow: hidden;
  box-sizing: border-box;
}

.biz-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

.biz-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.biz-card-header h3 {
  margin: 0;
}

.biz-card .ct-card-title {
  font-size: 13px;
  line-height: 1.25;
}

.biz-subtitle {
  margin: 10px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  text-align: left !important;
  width: 100%;
}

.biz-subtitle #biz-inviteCodeTitle {
  margin: 0;
}

.biz-subtitle #biz-inviteCodeDisplay {
  font-size: 13px;
  line-height: 1.25;
  color: #f0e3ba;
}

.biz-subtitle.ct-card-title {
  margin: 10px 0 6px;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 6px;
  text-align: left !important;
  font-size: 13px;
  line-height: 1.25;
}

.biz-subtitle.ct-card-title span {
  font-size: 13px;
  line-height: 1.25;
}

/* Stats cards */
.biz-stats-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.biz-stats-note {
  margin: 0 0 8px;
  color: rgba(215, 221, 229, 0.72);
  font-size: 11px;
  line-height: 1.35;
}

.biz-stat-card {
  position: relative;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.11) 0,
    rgba(0,0,0,0.55) 85%
  );
  border-radius: 12px;
  padding: 10px 11px 9px;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 70px;
}

.biz-stat-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.2;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

#biz-teamCareerRewardsTitle {
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

.biz-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.biz-stat-note {
  font-size: 11px;
  color: #b9c0c8;
}

.biz-stat-card-level {
  background: radial-gradient(
    circle at top,
    rgba(111, 201, 255, 0.25) 0,
    rgba(0,0,0,0.65) 85%
  );
  box-shadow:
    0 0 0 1px rgba(111,201,255,0.28),
    0 8px 18px rgba(0,0,0,0.6);
}

@media (max-width: 900px) {
  .biz-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .biz-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Referral card */
.biz-card-ref {
  margin-top: 0;
}

.biz-copy-field {
  margin-top: 6px;
}

.biz-share-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.biz-share-btn {
  flex: 1 1 0;
  min-width: 120px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  color: #f0e3ba !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.biz-share-btn:hover {
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
  transform: translateY(-1px);
}

.biz-share-btn:active {
  transform: translateY(0);
}

.biz-qr-wrap {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.08);
}

#biz-qrCode {
  padding: 8px;
  border-radius: 12px;
  background: rgba(15,17,20,0.95);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 4px 12px rgba(0,0,0,0.45);
}

.biz-qr-hint {
  font-size: 11px;
  color: #aeb4bd;
  text-align: center;
  max-width: 360px;
  letter-spacing: 0.01em;
}

/* Members table and search */
.biz-card-members {
  margin-top: 0;
}

.biz-search-wrap {
  margin: 8px 0 10px;
}

#biz-searchInput {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.55);
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,0,0,0.9);
}

#biz-searchInput::placeholder {
  color: #aaaaaa;
}

.biz-table-wrap {
  margin-top: 4px;
}

#biz-memberTable thead th {
  border-bottom: 1px solid rgba(255,255,255,0.18);
  padding-bottom: 6px;
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  text-align: left !important;
  background: none !important;
  background-size: auto !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
}

/* Legacy business table/copy tuning */
.copy-field {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 12px;
}

.copy-field input#biz-refLink {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
  padding-right: 78px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.48);
  color: #d2d7df;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 0 0 1px rgba(0,0,0,0.85);
}

.copy-field input#biz-refLink:focus {
  outline: none;
  border-color: rgba(212,175,55,0.45);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 0 0 1px rgba(212,175,55,0.45);
}

.copy-emoji {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(16,18,21,0.9);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 8px;
  color: #f0e3ba;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  height: 32px;
  min-width: 66px;
  padding: 0 10px;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.copy-emoji:hover {
  transform: translateY(-50%) translateY(-1px);
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
}

.copy-emoji:active,
.copy-emoji:focus,
.copy-emoji:focus-visible {
  transform: translateY(-50%);
  border-color: rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  color: #f0e3ba;
  outline: none;
}

#biz-memberTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

#biz-memberTable td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

#biz-memberTable td:nth-child(3) {
  width: 30%;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ececec;
}

#biz-memberTable tbody td { font-size: 13px; }

@media (max-width: 480px) {
  #biz-memberTable tbody td { font-size: 13px; }
}

#biz-searchInput { margin-bottom: 18px !important; }

#biz-memberTable th:nth-child(1),
#biz-memberTable td:nth-child(1) { width: 16%; text-align: left; }
#biz-memberTable th:nth-child(2),
#biz-memberTable td:nth-child(2) { width: 30%; text-align: left; }
#biz-memberTable th:nth-child(3),
#biz-memberTable td:nth-child(3) { width: 25%; text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
#biz-memberTable th:nth-child(4),
#biz-memberTable td:nth-child(4) { width: 29%; text-align: right; }

a.direct-count {
  cursor: pointer;
  text-decoration: underline;
  color: #ffd700;
}

a.direct-count.disabled {
  text-decoration: none;
  color: #aaa;
  cursor: default;
}

#biz-memberTable td .direct-count,
#biz-memberTable td .direct-count:link,
#biz-memberTable td .direct-count:visited,
#biz-memberTable td .direct-count:hover,
#biz-memberTable td .direct-count:active,
#biz-memberTable td .direct-count:focus {
  all: unset;
  display: inline;
  cursor: pointer;
}

#biz-memberTable td .direct-count.disabled {
  cursor: default;
  opacity: .6;
  pointer-events: none;
}

@media (max-width: 600px) {
  .biz-card {
    padding: 12px 12px 10px;
  }

  .biz-stat-value {
    font-size: 18px;
  }
}

.section.chart-only.biz-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;
}

.biz-teamcareer-card .dash-status-gold-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.biz-teamcareer-card .biz-card-header {
  align-items: flex-start;
}

.biz-teamcareer-card .biz-card-header > div:first-child {
  text-align: left;
}

.biz-teamcareer-card #biz-teamCareerCurrentLevel {
  font-size: 16px;
  font-weight: 700;
}

.biz-teamcareer-card .dash-status-gold-item {
  background: rgba(0,0,0,0.48);
}

.biz-teamcareer-payout-hint {
  margin-top: 4px;
  font-size: 11px;
  color: #9ea4ad;
}

#biz-teamCareerRewardsTitle {
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .biz-teamcareer-card .dash-status-gold-grid {
    grid-template-columns: 1fr;
  }
}

body.copytrade-page.business-page .biz-stat-label,
body.copytrade-page.business-page #biz-teamCareerRewardsTitle {
  background: none !important;
  background-size: auto !important;
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
}


/* --- frontend/css/src/pages/banking.css --- */
/* Banking page */

/* Haupt-Layout */
body.banking-page .withdraw-container {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.8rem 0.7rem 1.5rem;
  box-sizing: border-box;
}

body.banking-page .gold-title {
  display: block;
  width: 100%;
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase;
  color: #f5d76e !important;
  text-align: center !important;
  margin: 0.4rem 0 1.2rem !important;
  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18) !important;
}

body.banking-page .withdraw-container {
  padding-top: 0.15rem;
}

.banking-toolbar__copy {
  display: none;
}

/* Tabs */
.banking-page .tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0.9rem;
  padding: 4px;
  border-radius: 999px;
  background: radial-gradient(
    circle at top,
    rgba(255,215,0,0.12) 0,
    rgba(0,0,0,0.85) 70%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.45),
    0 6px 16px rgba(0,0,0,0.7);
}

.banking-page .tab-btn {
  flex: 1 1 0;
  border-radius: 999px;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e0e4ea;
  background: transparent;
  cursor: pointer;
  outline: none;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

.banking-page .tab-btn:hover {
  color: #ffffff;
}

.banking-page .tab-btn.active {
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.85),
    0 0 14px rgba(255,215,0,0.55);
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .banking-page .tabs {
    gap: 4px;
    padding: 4px;
  }

  .banking-page .tab-btn {
    min-width: 0;
    padding: 7px 6px;
    font-size: 11px;
    letter-spacing: 0.02em;
  }
}

.banking-page .tab-panel {
  display: none;
  margin-top: 0.6rem;
}

.banking-page .tab-panel.active {
  display: block;
}

/* Generische Banking-Karten */
.banking-page .deposit-box,
.banking-page .card,
.banking-page .transfer-box,
.banking-page section.rules,
.banking-page .history-card {
  position: relative;
  margin-bottom: 0.8rem;
  padding: 14px 16px 12px;
  border-radius: 14px;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  box-sizing: border-box;
  overflow: hidden;
}

.banking-page .deposit-box::before,
.banking-page .card::before,
.banking-page .transfer-box::before,
.banking-page section.rules::before,
.banking-page .history-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

.banking-page .card-head .title span,
.banking-page section.rules > h3,
.banking-page .balances h3,
.banking-page .history > h3,
.banking-page .gold-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f5d76e;
}

.banking-page .address-card .card-head,
.banking-page .history-card .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.banking-page .address-card .helper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.banking-page .withdraw-card {
  margin-top: 10px;
}

.banking-page .withdraw-card-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.banking-page .withdraw-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

.banking-page .withdraw-card-header .withdraw-toggle {
  margin: 0 0 0 auto;
}

.banking-page .dash-card-header .deposit-toggle {
  margin: 0 0 0 auto;
}

.banking-page .withdraw-address-block {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.banking-page .withdraw-action-block {
  padding-top: 13px;
}

.banking-page .muted {
  font-size: 11px;
  color: #b9c0c8;
}

.banking-page .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.banking-page .btn-compact {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
}

.banking-page #w-editAddrBtn,
.banking-page #w-hPrev,
.banking-page #w-hNext,
.banking-page #d-hPrev,
.banking-page #d-hNext {
  background: rgba(16,18,21,0.88) !important;
  color: #cfd5dd !important;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 8px;
  animation: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 2px 7px rgba(0,0,0,0.28);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.banking-page #w-editAddrBtn:hover,
.banking-page #w-hPrev:hover,
.banking-page #w-hNext:hover,
.banking-page #d-hPrev:hover,
.banking-page #d-hNext:hover {
  background: rgba(24,27,31,0.94) !important;
  color: #f0e3ba !important;
  border-color: rgba(212,175,55,0.38);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 9px rgba(212,175,55,0.12);
  transform: translateY(-1px);
}

.banking-page #w-hPrev:disabled,
.banking-page #w-hNext:disabled,
.banking-page #d-hPrev:disabled,
.banking-page #d-hNext:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.banking-page #w-hPrev:disabled:hover,
.banking-page #w-hNext:disabled:hover,
.banking-page #d-hPrev:disabled:hover,
.banking-page #d-hNext:disabled:hover {
  background: rgba(16,18,21,0.88) !important;
  color: #cfd5dd !important;
  border-color: rgba(212,175,55,0.22);
  transform: none;
  box-shadow: none;
}

.banking-page .btn-chip {
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 4px 8px !important;
  font-size: 0.78rem !important;
  line-height: 1.1;
  border-radius: 999px;
}

.banking-page .btn-chip:hover {
  transform: none;
}

.banking-page .balance-line {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.banking-page .amount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.banking-page #w-amount {
  box-sizing: border-box;
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.55);
  color: #fff;
}

.banking-page #w-amount:focus {
  outline: none;
}

.banking-page .amount-suffix {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 42px;
  padding: 10px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.55);
  color: #ddd;
  font-size: 12px;
}

.banking-page .fee-box {
  margin-top: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.10);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.banking-page .fee-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  color: #c7cdd5;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.055);
}

.banking-page .fee-row.total {
  margin-top: 1px;
  font-weight: 700;
  border-bottom: 0;
  color: #ffffff;
}

.banking-page .fee-row.total strong {
  color: #f5d76e;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.banking-page #w-autoLimitCard {
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.035);
}

.banking-page #w-autoLimitCard.is-ok {
  border-color: rgba(75, 211, 136, 0.34);
  background: rgba(32, 114, 72, 0.12);
}

.banking-page #w-autoLimitCard.is-warn {
  border-color: rgba(212,175,55,0.28);
  background: rgba(212,175,55,0.08);
}

.banking-page #w-autoLimitCard.is-danger {
  border-color: rgba(255,118,118,0.36);
  background: rgba(140, 38, 38, 0.16);
}

.banking-page #w-autoLimitSplit {
  margin-top: 6px;
  font-size: 12px;
}

.banking-page #w-autoLimitInfo {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.4;
}

.banking-page #w-withdrawBtn:disabled {
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.42) !important;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none !important;
  animation: none !important;
  cursor: not-allowed;
  transform: none !important;
}

.banking-page .status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.banking-page .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
}

.banking-page .pill-warn {
  background: rgba(255,196,0,0.12);
  color: #ffd46e;
  border: 1px solid rgba(255,196,0,0.35);
}

.banking-page .agb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: #d6dbe3;
}

.banking-page .error-msg,
.banking-page .form-msg {
  margin-top: 8px;
  font-size: 12px;
}

.banking-page .error-msg {
  color: #ff8a8a;
}

.banking-page .history {
  margin-top: 8px;
}

.banking-page .bk-deposit-history-card .history {
  overflow-x: auto;
}

.banking-page .transfer-history-card {
  margin-top: 16px;
  padding: 14px 16px 12px;
}

.banking-page .transfer-history-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.banking-page .transfer-history-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

.banking-page .withdraw-history-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.banking-page .withdraw-history-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

.banking-page .withdraw-history-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.banking-page .history table,
.banking-page .w-history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.banking-page .d-history-table {
  table-layout: fixed;
}

.banking-page .d-history-table th:nth-child(1),
.banking-page .d-history-table td:nth-child(1) {
  width: 29%;
}

.banking-page .d-history-table th:nth-child(2),
.banking-page .d-history-table td:nth-child(2) {
  width: 18%;
}

.banking-page .d-history-table th:nth-child(3),
.banking-page .d-history-table td:nth-child(3) {
  width: 18%;
}

.banking-page .d-history-table th:nth-child(4),
.banking-page .d-history-table td:nth-child(4) {
  width: 35%;
}

.banking-page .d-history-table th,
.banking-page .d-history-table td,
.banking-page .d-history-table th.right,
.banking-page .d-history-table td.right {
  text-align: left;
}

.banking-page .d-history-table th {
  color: #f5d76e;
}

.banking-page .history th,
.banking-page .history td,
.banking-page .w-history-table th,
.banking-page .w-history-table td {
  padding: 8px 8px;
}

.banking-page .history th,
.banking-page .w-history-table th {
  text-align: left;
  color: #b9c0c8;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  font-weight: 600;
}

.banking-page #panel-deposit .d-history-table thead th {
  color: #f5d76e;
}

.banking-page #w-historyCard .w-history-table thead th {
  color: #f5d76e;
}

.banking-page .history td.right,
.banking-page .w-history-table td.right,
.banking-page .history th.right,
.banking-page .w-history-table th.right {
  text-align: right;
}

.banking-page .w-history-main-row {
  cursor: pointer;
}

.banking-page .w-history-main-row:hover td,
.banking-page .w-history-main-row:focus td,
.banking-page .w-history-main-row.is-open td {
  background: rgba(255,255,255,0.035);
}

.banking-page .w-history-main-row:focus {
  outline: none;
}

.banking-page .d-history-row td {
  border-bottom: 1px solid rgba(255,255,255,0.055);
  color: #dce1e8;
}

.banking-page .d-history-row:last-child td {
  border-bottom: 0;
}

.banking-page .d-history-status {
  display: inline-block;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.055);
  color: #dce1e8;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.banking-page .d-history-status.is-pending {
  border-color: rgba(245,215,110,0.28);
  background: rgba(245,215,110,0.09);
  color: #f5d76e;
}

.banking-page .d-history-status.is-received {
  border-color: rgba(130,190,255,0.28);
  background: rgba(130,190,255,0.09);
  color: #b8d8ff;
}

.banking-page .d-history-status.is-done {
  border-color: rgba(22,199,132,0.28);
  background: rgba(22,199,132,0.10);
  color: #8ff0c5;
}

.banking-page .d-history-tx {
  display: block;
  margin-top: 4px;
  color: #f5d76e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.banking-page .d-history-tx:hover {
  text-decoration: underline;
}

.banking-page .bk-history-empty {
  padding: .75rem 0;
  display: none;
}

.banking-page .w-history-status {
  display: inline-block;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.banking-page .w-history-toggle {
  display: inline-block;
  margin-left: 6px;
  color: #aeb4bd;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease;
  vertical-align: middle;
}

.banking-page .w-history-main-row.is-open .w-history-toggle {
  color: #f5d76e;
  transform: rotate(180deg);
}

.banking-page .w-history-detail-cell {
  width: auto;
  min-width: 0;
  padding: 0 8px 10px !important;
  background: rgba(0,0,0,0.20);
  white-space: normal;
}

.banking-page .w-history-detail-list {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.28);
}

.banking-page .w-history-detail-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.banking-page .w-history-detail-label {
  color: #aeb4bd;
}

.banking-page .w-history-detail-value,
.banking-page .w-history-detail-value a {
  display: block;
  color: #dce1e8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.banking-page #w-hPrev,
.banking-page #w-hNext,
.banking-page #d-hPrev,
.banking-page #d-hNext {
  width: auto !important;
  min-width: 70px;
}

.banking-page .balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.banking-page .balances .balance-card {
  margin: 0;
  padding: 13px 14px 12px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.055), rgba(255,255,255,0.012)),
    rgba(11,13,16,0.86);
  border: 1px solid rgba(212,175,55,0.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 4px 10px rgba(0,0,0,0.24);
}

.banking-page .balance-card-wallet {
  border-color: rgba(190,198,210,0.24);
}

.banking-page .balance-card-trade {
  border-color: rgba(212,175,55,0.34);
}

.banking-page .balances .balance-card h3 {
  margin: 0;
  font-size: 11px;
  line-height: 1.2;
}

.banking-page .balances .balance-card .amt {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.1;
  font-weight: 850;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.banking-page .balances .balance-card-trade .amt {
  color: #f5d76e;
  text-shadow: 0 0 12px rgba(212,175,55,0.14);
}

.banking-page .balance-hint {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #aeb4bd;
}

@media (max-width: 520px) {
  .banking-page .balances {
    gap: 8px;
  }

  .banking-page .balances .balance-card {
    padding: 11px 10px 10px;
  }

  .banking-page .balances .balance-card .amt {
    font-size: 20px;
  }

  .banking-page .balance-hint {
    font-size: 10px;
  }
}

.banking-page .transfer-box {
  margin-top: 6px;
}

.banking-page .transfer-card {
  margin-top: 0;
}

.banking-page .transfer-card > label {
  display: inline-block;
  margin-bottom: 6px;
}

.banking-page .transfer-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.banking-page .transfer-actions .btn-primary {
  flex: 1 1 0;
  min-width: 120px;
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  color: #f0e3ba !important;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  animation: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.banking-page .transfer-actions .btn-primary:hover {
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
  transform: translateY(-1px);
}

.banking-page .transfer-actions .btn-primary:active,
.banking-page .transfer-actions .btn-primary:focus {
  background: rgba(24,27,31,0.95) !important;
  color: #f0e3ba !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18) !important;
  transform: translateY(0);
}

.banking-page #t-amount {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(212,175,55,0.24);
  background: rgba(0,0,0,0.36);
  color: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.58),
    0 2px 8px rgba(0,0,0,0.22);
}

.banking-page #t-amount:focus {
  outline: none;
  border-color: rgba(212,175,55,0.48);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.58),
    0 0 0 1px rgba(212,175,55,0.20),
    0 0 10px rgba(212,175,55,0.12);
}

.banking-page .transfer-help {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.35;
  color: #aeb4bd;
}

.banking-page .transfer-rule-status {
  margin-top: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
  color: #d7dde5;
  font-size: 12px;
  line-height: 1.35;
}

.banking-page .transfer-rule-status[hidden] {
  display: none;
}

.banking-page .transfer-rule-status.is-ok {
  border-color: rgba(75, 211, 136, 0.34);
  color: #bff3d2;
  background: rgba(32, 114, 72, 0.12);
}

.banking-page .transfer-rule-status.is-warn {
  border-color: rgba(212,175,55,0.18);
  color: #c3c8d0;
  background: rgba(255,255,255,0.035);
}

.banking-page .transfer-empty {
  padding: 10px 0 2px;
  font-size: 12px;
}

.banking-page .accordion {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
}

.banking-page .acc-head {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  color: #f5d76e;
  cursor: pointer;
}

.banking-page .acc-body {
  display: none;
  padding: 0 12px 10px;
  font-size: 12px;
  color: #d7dde5;
}

.banking-page .acc-body ul{
  margin: 0;
  padding-left: 18px;
}

.banking-page .acc-body li{
  margin: 0 0 10px;
}

.banking-page .acc-body li:last-child{
  margin-bottom: 0;
}

.banking-page .accordion.open .acc-body {
  display: block;
}

.banking-page #t-msg {
  margin-top: 8px;
  font-size: 12px;
}

/* Toast (global, used by banking actions as well) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%) translateY(20px);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,0.88);
  border: 1px solid rgba(255,215,0,0.6);
  color: #f5d76e;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 99999;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#w-amount {
  color: #ffffff !important;
  text-transform: uppercase;
}

#t-amount {
  color: #ffffff !important;
}

#w-amount::placeholder,
#t-amount::placeholder,
#w-addrModal .modal-box input::placeholder {
  color: rgba(255,255,255,0.45) !important;
  text-transform: none !important;
}

#w-addrModal .modal-box input {
  background: #111 !important;
  color: #ffffff !important;
  border: 1px solid #555 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  font-variant-ligatures: none;
}

#w-addrModal .modal-box input:focus {
  outline: none;
  border-color: rgba(255,215,0,0.55) !important;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.12) !important;
  text-transform: none !important;
}

#w-addrModal .field-label,
#w-addrModal small.muted {
  color: #b9c0c8 !important;
}

#w-confirmModal .modal-box {
  max-width: min(430px, calc(100vw - 28px));
  padding: 22px 20px 18px;
}

#w-confirmModal .modal-box h3 {
  margin-bottom: 12px;
}

#w-confirmModal .review {
  display: grid;
  gap: 9px;
  margin: 10px 0 14px;
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(8, 9, 12, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px rgba(0,0,0,0.28);
}

#w-confirmModal .review > div {
  display: grid;
  grid-template-columns: minmax(92px, 110px) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

#w-confirmModal .review span {
  color: #9ea6b0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#w-confirmModal .review strong {
  color: #f4f6f9;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

#w-confirmModal .review #w-revNet {
  color: #f5d76e;
}

#w-confirmModal .field-label {
  color: #b9c0c8 !important;
  margin-top: 0;
}

#w-confirmModal #w-twofaOTP {
  background: #111 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.16) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 6px 14px rgba(0,0,0,0.55) !important;
  text-transform: none !important;
  letter-spacing: 0.18em !important;
  text-align: center;
  font-size: 15px !important;
  font-weight: 700;
  font-variant-ligatures: none;
}

#w-confirmModal #w-twofaOTP::placeholder {
  color: rgba(255,255,255,0.42) !important;
  letter-spacing: 0.12em !important;
}

#w-confirmModal #w-twofaOTP:focus {
  outline: none;
  color: #ffffff !important;
  background: #111 !important;
  border-color: rgba(255,215,0,0.58) !important;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.52),
    0 0 14px rgba(255,215,0,0.16) !important;
  transform: none !important;
}

#w-confirmModal #w-twofaMsg {
  min-height: 18px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  #w-confirmModal .modal-box {
    padding: 18px 16px 16px;
  }

  #w-confirmModal .review {
    gap: 8px;
    padding: 10px 11px;
  }

  #w-confirmModal .review > div {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 8px;
  }

  #w-confirmModal .review span {
    font-size: 10px;
  }

  #w-confirmModal .review strong {
    font-size: 12px;
  }
}

/* Deposit (Dash-Card Look) Overrides */
.bk-card { margin-left: 0; margin-right: 0; }

.bk-notice{
  margin: 0.7rem 0.7rem 0.9rem;
  border-radius: 12px;
  padding: 12px 14px;
  background: radial-gradient(circle at top, rgba(22,199,132,0.18) 0, rgba(0,0,0,0.75) 80%);
  box-shadow: 0 0 0 1px rgba(22,199,132,0.25), 0 10px 18px rgba(0,0,0,0.55);
}
.bk-notice-title{
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
}
.bk-notice-text{
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}

.bk-badge{
  font-size: 11px;
  color: #f5d76e;
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(0,0,0,0.45);
  white-space: nowrap;
}
.bk-chip{
  font-size: 11px;
  color: #111;
  border-radius: 999px;
  padding: 5px 10px;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.85);
  white-space: nowrap;
}

.bk-summary-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}
.bk-summary-item{
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 10px;
}

.bk-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 10px;
}
.bk-status{
  font-size: 12px;
  color: #b9c0c8;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}

.bk-push{
  min-width: 260px;
  max-width: 420px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.35);
}
.bk-push-info{
  min-width: 0;
  justify-self: end;
  opacity: 0.82;
}
.ct-push-info{
  margin-top: 6px;
  text-align: right;
}
.bk-push-status{
  font-size: 11px;
  line-height: 1.35;
  color: #b9c0c8;
}
.bk-switch{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.bk-switch input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.bk-switch{ position: relative; }
.bk-switch-ui{
  width: 42px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.85) inset;
}
.bk-switch-ui::after{
  content:"";
  width: 18px;
  height: 18px;
  border-radius: 999px;
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  transition: transform 0.18s ease;
}
.bk-switch input:checked + .bk-switch-ui{
  background: rgba(212,175,55,0.35);
  border-color: rgba(212,175,55,0.55);
}
.bk-switch input:checked + .bk-switch-ui::after{
  transform: translate(18px, -50%);
}
.bk-switch-label{
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}
.bk-push-hint{
  margin-top: 6px;
  font-size: 11px;
  color: #b9c0c8;
}

.banking-page #panel-deposit .deposit-box{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 4px;
}

.bk-qr-frame{
  padding: 10px;
  border-radius: 14px;
  background: radial-gradient(circle at top, rgba(212,175,55,0.10) 0, rgba(0,0,0,0.85) 85%);
  border: 1px solid rgba(212,175,55,0.30);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.85) inset, 0 10px 18px rgba(0,0,0,0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#d-qrBox{
  width: 220px;
  height: 220px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
}
#d-qrBox canvas, #d-qrBox img, #d-qrBox svg{
  width: 100% !important;
  height: 100% !important;
  display:block;
  border-radius: 10px;
}
.bk-qr-caption{
  margin-top: 10px;
  font-size: 11px;
  color: #b9c0c8;
  text-align: center;
}

.banking-page #panel-deposit .addr-label{
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b9c0c8;
  margin-bottom: 8px;
}
.banking-page #panel-deposit .addr-row{
  display:flex;
  align-items:center;
  gap: 8px;
  margin: 0;
}
.banking-page #panel-deposit .addr-code{
  flex: 1;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0,0,0,0.70);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fdfdfd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.banking-page #panel-deposit .copy-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.55);
  background: radial-gradient(circle at top, rgba(255,215,0,0.18) 0, rgba(0,0,0,0.85) 75%);
  color: #f5d76e;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.85), 0 10px 18px rgba(0,0,0,0.45);
}
.banking-page #panel-deposit .bk-copy-icon{
  font-size: 18px;
  line-height: 1;
  display: block;
}
.bk-copy-feedback{
  height: 16px;
  margin-top: 8px;
  font-size: 11px;
  color: rgba(245,215,110,0.92);
}
.bk-small-note{
  margin-top: 10px;
  font-size: 11px;
  color: #b9c0c8;
}

.bk-rules-top{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.88);
  font-size: 12px;
}
.bk-rules-top li{ margin: 6px 0; }

.bk-details{
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.30);
  padding: 10px 12px;
}
.bk-details summary{
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: #f5d76e;
  letter-spacing: 0.02em;
}
.bk-details-body{
  margin-top: 10px;
  color: #b9c0c8;
  font-size: 12px;
  line-height: 1.45;
}
.bk-details-body p{
  margin: 0;
  color: #b9c0c8;
  font-size: 12px;
  line-height: 1.45;
}
.bk-details-body .rules{
  margin: 0;
  padding-left: 18px;
  color: #b9c0c8;
  font-size: 12px;
  line-height: 1.45;
}
.bk-details-body .rules li{
  margin: 0 0 10px;
  color: #b9c0c8;
}
.bk-details-body .rules li:last-child{
  margin-bottom: 0;
}
.bk-details-body strong{
  color: rgba(255,255,255,0.78);
  font-weight: 700;
}

.bk-support-link{
  font-size: 12px;
  color: #f5d76e;
  text-decoration: underline;
}

@media (max-width: 680px){
  .bk-summary-row{ grid-template-columns: 1fr; }
  .banking-page #panel-deposit .deposit-box{
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .banking-page #panel-deposit .addr-col{ width: 100%; }
}

/* Asset Toggle */
.banking-page .deposit-toggle,
.banking-page .withdraw-toggle{
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(255,215,0,0.12) 0, rgba(0,0,0,0.85) 70%);
  box-shadow: 0 0 0 1px rgba(212,175,55,0.45), 0 6px 16px rgba(0,0,0,0.7);
  width: fit-content;
  margin: 10px auto 10px;
}

.banking-page .deposit-toggle .asset-btn,
.banking-page .withdraw-toggle .asset-btn{
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #e0e4ea;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
  min-width: 58px;
}

.banking-page .deposit-toggle .asset-btn:hover,
.banking-page .withdraw-toggle .asset-btn:hover{
  color: #ffffff;
}

.banking-page .deposit-toggle .asset-btn.active,
.banking-page .withdraw-toggle .asset-btn.active{
  color: #000;
  background: linear-gradient(90deg, #b8860b, #ffd700, #f5e6a3);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.85), 0 0 14px rgba(255,215,0,0.55);
  transform: translateY(-1px);
}

.banking-page .deposit-toggle .asset-btn:focus-visible,
.banking-page .withdraw-toggle .asset-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,215,0,0.18), 0 0 0 1px rgba(212,175,55,0.45);
}


/* --- frontend/css/src/pages/copytrade.css --- */
/* Copytrade page */

/* Titel "Aktionen" wie Business-/Banking-Titel */
body.copytrade-page .gold-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #f5d76e;
  margin: 0.4rem 0 1.2rem;
  text-shadow:
    0 0 20px rgba(245,215,110,0.32),
    0 0 40px rgba(245,215,110,0.18);
}

/* Hauptcontainer */
body.copytrade-page .deposit-container {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  padding: 0.15rem 0.7rem 1.5rem;
  box-sizing: border-box;
}

/* Kartenlook */
body.copytrade-page .card {
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

body.copytrade-page .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

body.copytrade-page .loyalty-points-card {
  min-height: 150px;
}

body.copytrade-page .loyalty-points-card .card-head {
  margin-bottom: 18px;
}

body.copytrade-page .loyalty-points-card .title {
  color: #f5d76e;
  font-size: 18px;
}

body.copytrade-page .loyalty-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: #ffffff;
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
}

body.copytrade-page .loyalty-balance-unit {
  color: rgba(255,255,255,0.64);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 560px) {
  body.copytrade-page .loyalty-balance {
    font-size: 40px;
  }
}

body.copytrade-page #signalCodeInput {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 12px;
  display: block;
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d) !important;
  color: #000 !important;
  border: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.6);
  text-align: center;
  box-sizing: border-box;
}

body.copytrade-page #signalCodeInput::placeholder {
  color: rgba(0, 0, 0, 0.6);
}

/* Trading Center redesign: must live in source CSS so build:css keeps it */
.ct-card {
  background:
    radial-gradient(circle at top left, rgba(212,175,55,0.14), transparent 34%),
    linear-gradient(160deg, rgba(28,28,28,0.96), rgba(12,12,12,0.94));
  border-radius: 24px;
  padding: 18px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.18),
    0 24px 60px rgba(0,0,0,0.42);
}

.ct-card-shell {
  display: grid;
  gap: 5px;
}

.ct-hero {
  display: grid;
  gap: 5px;
  padding-bottom: 1px;
}

.ct-card-row {
  margin-bottom: 0;
}

.ct-panel-title {
  color: var(--emp-color-gold-bright, #f5d76e);
}

.ct-symbol-left {
  gap: 2px;
}

.ct-symbol-main {
  font-size: 16px;
  font-weight: 700;
  color: #fff4cf;
}

.ct-symbol-sub {
  font-size: 12px;
  color: #bdb7a7;
  max-width: 48ch;
  line-height: 1.45;
}

.ct-progress-panel {
  width: 100%;
  display: grid;
  gap: 6px;
}

.ct-section-label {
  margin-bottom: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.52);
}

.ct-time-meta-line {
  font-size: 12px;
  color: #c8c0ae;
  line-height: 1.45;
}

.ct-countdown-text {
  font-size: 11px;
  color: #d8d0be;
  text-align: right;
}

.ct-progress {
  width: 100%;
  height: 10px;
  background: rgba(255,255,255,0.08);
  margin-top: 0;
}

.ct-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.ct-stat {
  min-height: 0;
  padding: 9px 12px 6px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  gap: 4px;
  min-height: 68px;
  justify-content: flex-start;
}

.ct-stat-muted {
  opacity: 0.55;
  filter: saturate(0.6);
}

.ct-stat-label {
  color: rgba(255,255,255,0.66);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.ct-stat-value {
  font-size: clamp(18px, 2.3vw, 24px);
  white-space: normal;
  line-height: 1.05;
}

.ct-stat-note {
  font-size: 11px;
  line-height: 1.4;
  min-height: 14px;
}

.ct-card-action {
  gap: 8px;
  padding: 9px 11px 3px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(212,175,55,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(212,175,55,0.14);
}

.ct-card-action-active {
  padding-bottom: 9px;
}

.ct-action-header {
  display: grid;
  gap: 4px;
}

.ct-card-action-active .ct-action-header {
  gap: 3px;
}

.ct-active-meta {
  display: grid;
  gap: 4px;
}

.ct-action-copy {
  font-size: 12px;
  color: #c3bca7;
  line-height: 1.4;
}

.ct-card-action-active .ct-action-copy {
  max-width: 58ch;
}

.ct-action-grid {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 8px;
}

.ct-action-grid.is-hidden,
.ct-rules-accordion.is-hidden {
  display: none !important;
}

.ct-duration-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.ct-duration-option {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: #e5dcc4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ct-duration-option:hover {
  border-color: rgba(212,175,55,0.22);
  color: #fff3c5;
}

.ct-duration-option.active {
  border-color: rgba(212,175,55,0.30);
  background: linear-gradient(180deg, rgba(212,175,55,0.18), rgba(95,73,18,0.28));
  color: #fff6db;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.ct-duration-option.disabled,
.ct-duration-option:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ct-join-btn {
  min-height: 42px;
  font-size: 13px;
  border-radius: 12px;
}

.ct-join-hint {
  font-size: 11px;
  color: #b8b19e;
  line-height: 1.4;
  margin-top: 2px;
}

.ct-card-action-active .ct-join-hint {
  margin-top: 0;
}

.ct-join-hint:empty {
  display: none;
}

.ct-join-status {
  font-size: 11px;
  font-weight: 600;
}

.ct-join-status:empty {
  display: none;
}

.ct-report-list {
  display: grid;
  gap: 6px;
}

.ct-report-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-start;
}

.ct-report-open-btn {
  min-width: 104px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  color: #f0e3ba !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.08s ease;
}

.ct-report-open-btn:hover {
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
  transform: translateY(-1px);
  color: #f0e3ba !important;
  filter: none !important;
}

.ct-report-open-btn:active {
  transform: translateY(0);
  background: rgba(16,18,21,0.9) !important;
  border-color: rgba(212,175,55,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  filter: none !important;
}

.ct-report-open-btn:focus,
.ct-report-open-btn:focus-visible {
  background: rgba(16,18,21,0.9) !important;
  border-color: rgba(212,175,55,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  filter: none !important;
}

#panel-trading #ct-txApply.btn-secondary,
#panel-trading #ct-txApply {
  width: auto;
  min-width: 104px;
  height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(212,175,55,0.35);
  background: rgba(16,18,21,0.9);
  color: #f0e3ba !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35);
}

#panel-trading #ct-txApply.btn-secondary:hover,
#panel-trading #ct-txApply:hover {
  border-color: rgba(212,175,55,0.55);
  background: rgba(24,27,31,0.95);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18);
  transform: translateY(-1px);
  color: #f0e3ba !important;
  filter: none !important;
}

#panel-trading #ct-txApply.btn-secondary:active,
#panel-trading #ct-txApply:active {
  transform: translateY(0);
  background: rgba(16,18,21,0.9) !important;
  border-color: rgba(212,175,55,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  filter: none !important;
}

#panel-trading #ct-txApply.btn-secondary:focus,
#panel-trading #ct-txApply.btn-secondary:focus-visible,
#panel-trading #ct-txApply:focus,
#panel-trading #ct-txApply:focus-visible {
  background: rgba(16,18,21,0.9) !important;
  border-color: rgba(212,175,55,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  filter: none !important;
}

.ct-report-link {
  width: 100%;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: transparent;
  color: rgba(243,228,175,0.88);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.ct-report-link:hover {
  color: #fff1b8;
  border-color: rgba(212,175,55,0.22);
}

.ct-report-link:last-child {
  border-bottom: 0;
}

.ct-report-item {
  border: 1px solid rgba(212, 175, 55, 0.14);
  border-radius: 18px;
  padding: 12px 14px;
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.08), transparent 28%),
    linear-gradient(180deg, rgba(24,24,24,0.94), rgba(14,14,14,0.94));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.ct-report-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding-right: 24px;
  color: #fff1b8;
  font-size: 12px;
  font-weight: 700;
}

.ct-report-item summary::-webkit-details-marker {
  display: none;
}

.ct-report-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: rgba(243,228,175,0.85);
}

.ct-report-item[open] summary::after {
  content: "−";
}

.ct-report-body {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  color: #e7dfcc;
  font-size: 12px;
}

.ct-report-item .muted {
  color: #b9b3a0;
  font-size: 11px;
}

.ct-report-modal-box {
  max-width: 760px;
  width: calc(100vw - 32px);
}

.ct-report-modal-body {
  max-height: min(68vh, 720px);
  overflow: auto;
  display: grid;
  gap: 12px;
  padding-right: 4px;
}

.ct-rules-accordion {
  margin-top: 2px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(circle at top right, rgba(212,175,55,0.06), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.015));
}

.ct-rules-accordion summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  font-size: 12px;
  font-weight: 700;
  color: #f3e4af;
  text-decoration: none;
  text-align: center;
}

.ct-rules-accordion summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  color: rgba(243,228,175,0.85);
}

.ct-rules-accordion[open] summary::after {
  content: "−";
}

.ct-rules-accordion summary::-webkit-details-marker {
  display: none;
}

.ct-rules-body {
  display: grid;
  gap: 8px;
  padding: 12px 0 0;
}

.ct-rule-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.ct-rule-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.ct-rule-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f3e4af;
}

.ct-rule-text {
  font-size: 12px;
  color: #d2cab7;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .ct-card {
    padding: 16px;
  }

  .ct-card-stats {
    grid-template-columns: 1fr;
  }

  .ct-card-action {
    padding: 16px;
  }

  .ct-action-grid {
    grid-template-columns: 1fr;
  }

  .ct-rule-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}


/* --- frontend/css/src/pages/society.css --- */
/* Empire Society page */

body.society-page .gold-title {
  margin-bottom: 0.8rem;
}

body.society-page .society-tabs {
  margin: 0.8rem 0 1.1rem;
}

body.society-page .society-subtabs {
  margin: 0 0 1rem;
}

body.society-page .society-subpanel {
  display: none;
}

body.society-page .society-subpanel.active {
  display: block;
}

body.society-page .card-head .title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emp-color-gold-bright);
}

body.society-page .society-feature-card {
  padding: 14px 16px 16px;
  margin-bottom: 14px;
}

body.society-page .society-awards-card {
  padding: 14px 16px 16px;
}

body.society-page .society-ranking-card {
  padding: 14px 16px 16px;
}

body.society-page .society-ranking-card + .society-ranking-card {
  margin-top: 14px;
}

body.society-page .loyalty-points-card,
body.society-page .loyalty-status-card,
body.society-page .loyalty-redeem-card,
body.society-page .loyalty-rules-card {
  padding: 14px 16px 16px;
}

body.society-page .loyalty-status-card,
body.society-page .loyalty-redeem-card,
body.society-page .loyalty-rules-card {
  margin-top: 14px;
}

body.society-page .loyalty-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

body.society-page #loyaltyPointsValue {
  color: #fff5d4;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

body.society-page .loyalty-balance-unit {
  color: #f5d76e;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.society-page .loyalty-balance-note {
  margin-top: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.45;
}

body.society-page .loyalty-status-grid,
body.society-page .loyalty-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

body.society-page .loyalty-status-item,
body.society-page .loyalty-metric,
body.society-page .loyalty-rule-item {
  border-radius: 14px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(22,22,22,0.96), rgba(10,10,10,0.98));
  border: 1px solid rgba(212,175,55,0.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 18px rgba(0,0,0,0.24);
}

body.society-page .loyalty-status-label,
body.society-page .loyalty-metric-label,
body.society-page .loyalty-rule-label {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.society-page .loyalty-status-value,
body.society-page .loyalty-metric-value {
  margin-top: 8px;
  color: #fff5d4;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

body.society-page .loyalty-status-note,
body.society-page .loyalty-metric-note {
  margin-top: 8px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  line-height: 1.45;
}

body.society-page .loyalty-rule-groups {
  display: grid;
  gap: 14px;
}

body.society-page .loyalty-rule-group {
  display: grid;
  gap: 10px;
}

body.society-page .loyalty-rule-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,0.16);
  background: linear-gradient(180deg, rgba(24,24,24,0.96), rgba(10,10,10,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 18px rgba(0,0,0,0.24);
  cursor: pointer;
  text-align: left;
}

body.society-page .loyalty-rule-group-title {
  margin: 0;
  color: #f5d76e;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.society-page .loyalty-rule-toggle-icon {
  color: #fff5d4;
  font-size: 24px;
  line-height: 1;
}

body.society-page .loyalty-rule-list {
  display: grid;
  gap: 10px;
}

body.society-page .loyalty-rule-list[hidden] {
  display: none;
}

body.society-page .loyalty-rule-item {
  display: grid;
  gap: 8px;
}

body.society-page .loyalty-rule-value {
  color: #fff5d4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body.society-page .loyalty-breakdown-list {
  display: grid;
  gap: 10px;
}

body.society-page .loyalty-breakdown-row {
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, rgba(20,20,20,0.92), rgba(10,10,10,0.96));
  border: 1px solid rgba(212,175,55,0.14);
}

body.society-page .loyalty-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.society-page .loyalty-breakdown-label {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

body.society-page .loyalty-breakdown-value {
  color: #f5d76e;
  font-size: 14px;
  font-weight: 800;
}

body.society-page .loyalty-shop-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(212,175,55,0.12);
}

body.society-page .loyalty-shop-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

body.society-page .loyalty-shop-tab.active {
  background: linear-gradient(135deg, rgba(245,215,110,0.22), rgba(185,135,44,0.2));
  color: #fff5d4;
  box-shadow: inset 0 0 0 1px rgba(245,215,110,0.18);
}

body.society-page .loyalty-shop-panel {
  display: none;
  gap: 9px;
}

body.society-page .loyalty-shop-panel.active {
  display: grid;
}

body.society-page .loyalty-redeem-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 92px 104px;
  gap: 8px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025)),
    linear-gradient(180deg, rgba(18,18,18,0.96), rgba(8,8,8,0.98));
  border: 1px solid rgba(212,175,55,0.12);
}

body.society-page .loyalty-redeem-row:has(input) {
  grid-template-columns: minmax(0, 1fr) 68px 92px 104px;
}

body.society-page .loyalty-redeem-row:not(:has(input)) {
  grid-template-columns: minmax(0, 1fr) 68px 104px;
}

body.society-page .loyalty-redeem-main {
  min-width: 0;
}

body.society-page .loyalty-redeem-main h3 {
  margin: 0;
  color: #fff5d4;
  font-size: 15px;
  font-weight: 800;
}

body.society-page .loyalty-redeem-main p {
  margin: 3px 0 0;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.45;
}

body.society-page .loyalty-redeem-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(245,215,110,0.08);
  border: 1px solid rgba(245,215,110,0.16);
  color: #f5d76e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

body.society-page .loyalty-redeem-price::after {
  content: " P";
  opacity: 0.7;
  font-weight: 800;
}

body.society-page .loyalty-redeem-row input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.18);
  background: rgba(0,0,0,0.28);
  color: #fff5d4;
  padding: 0 13px;
  text-align: center;
}

body.society-page .loyalty-redeem-btn {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 10px;
  background: linear-gradient(135deg, #f5d76e, #b9872c);
  color: #130f07;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

body.society-page .loyalty-redeem-btn:disabled {
  cursor: wait;
  opacity: 0.65;
}

body.society-page .loyalty-redeem-status {
  margin-top: 12px;
  min-height: 18px;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
}

body.society-page .loyalty-redeem-status.is-error {
  color: #ff8e8e;
}

@media (max-width: 720px) {
  body.society-page .loyalty-shop-tabs {
    border-radius: 18px;
  }

  body.society-page .loyalty-redeem-row,
  body.society-page .loyalty-redeem-row:has(input),
  body.society-page .loyalty-redeem-row:not(:has(input)) {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.society-page .loyalty-redeem-price {
    justify-self: start;
  }
}

body.society-page .society-feature {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

body.society-page .society-feature-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
}

body.society-page .society-feature-kicker {
  color: rgba(255,232,156,0.62);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.society-page .society-feature-name {
  color: #fff5d4;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

body.society-page .society-feature-note {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
  line-height: 1.4;
}

body.society-page .society-award-icon {
  width: 94px;
  height: 94px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,245,186,0.30), rgba(255,245,186,0) 36%),
    linear-gradient(180deg, rgba(54,42,16,0.95), rgba(15,13,10,0.98));
  border: 1px solid rgba(212,175,55,0.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    0 10px 18px rgba(0,0,0,0.28);
}

body.society-page .society-award-icon span {
  color: #f5d76e;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

body.society-page .society-award-art {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

body.society-page .society-award-icon img,
body.society-page .society-award-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  border-radius: 16px;
}

body.society-page .society-awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

body.society-page .society-award {
  position: relative;
  min-height: 124px;
  border-radius: 14px;
  padding: 14px 12px;
  background:
    linear-gradient(180deg, rgba(22,22,22,0.96), rgba(10,10,10,0.98));
  border: 1px solid rgba(212,175,55,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 10px 18px rgba(0,0,0,0.28);
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

body.society-page .society-award.is-unlocked {
  border-color: rgba(212,175,55,0.26);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 18px rgba(0,0,0,0.30),
    0 0 18px rgba(245,215,110,0.08);
}

body.society-page .society-award.is-locked {
  opacity: 0.65;
  filter: saturate(0.65);
}

body.society-page .society-award--bronze .society-award-icon {
  border-color: rgba(192, 123, 55, 0.36);
}

body.society-page .society-award--silver .society-award-icon {
  border-color: rgba(204, 214, 229, 0.32);
}

body.society-page .society-award--gold .society-award-icon,
body.society-page .society-award--special .society-award-icon {
  border-color: rgba(245, 215, 110, 0.38);
}

body.society-page .society-award-meta {
  display: grid;
  gap: 6px;
  justify-items: center;
}

body.society-page .society-award-title {
  color: #fff5d4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

body.society-page .society-award-subtitle {
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.society-page .society-ranking-list {
  display: grid;
  gap: 10px;
}

body.society-page .society-ranking-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(20,20,20,0.92), rgba(10,10,10,0.96));
  border: 1px solid rgba(212,175,55,0.14);
}

body.society-page .society-ranking-rank {
  min-width: 38px;
  color: #f5d76e;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

body.society-page .society-ranking-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body.society-page .society-ranking-name {
  color: #fff5d4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

body.society-page .society-ranking-note {
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  line-height: 1.3;
}

body.society-page .society-ranking-value {
  color: #f5d76e;
  font-size: 20px;
  font-weight: 900;
  white-space: nowrap;
  min-width: 2ch;
  text-align: right;
}

body.society-page .society-ranking-empty {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
  padding: 10px 2px 2px;
}

@media (max-width: 560px) {
  body.society-page .society-feature {
    justify-items: center;
  }

  body.society-page .society-awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.society-page .loyalty-status-grid,
  body.society-page .loyalty-metrics-grid {
    grid-template-columns: 1fr;
  }

  body.society-page .society-ranking-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
  }

  body.society-page .society-ranking-value {
    grid-column: auto;
    justify-self: end;
    font-size: 18px;
  }
}


/* --- frontend/css/style_v2.css --- */


.btn-secondary:hover { background:#555; }

/* Goldener Glanzeffekt für Business Center Titel */
.gold-title {
  font-weight: bold;
  font-size: 2rem; /* etwas größer für Business Center */
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

/* Goldener Glanzeffekt für Dein Einladungslink */
.gold-link {
  font-weight: bold;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
}

/* Legacy compatibility: these rules existed only in the bundled CSS before
   the src split. They must stay in a build source so npm run build:css keeps
   the previous input/button rendering. */
input[type="text"],
#searchInput {
  width: 95%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
}

input[type="text"],
#searchInput {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: normal;
  font-size: 12px;
  box-shadow: none;
}

input[type="text"]::placeholder,
#searchInput::placeholder {
  color: rgba(0, 0, 0, 0.9);
}

#signalCodeInput {
  width: var(--cta-width);
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 6px;
  margin-bottom: 12px;
  text-align: center;
  background: #222;
  color: white;
  border: 1px solid #444;
  box-sizing: border-box;
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-row button {
  width: var(--cta-width);
  padding: 10px;
  height: 45px;
  background-color: #ffcc00;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-row button:hover {
  background-color: #ffdd33;
}

/* Obere Box auf der Trading Seite */
.section {
  background-color: rgba(28, 28, 28, 0.0);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.0);
  text-align: center;
}

:root { --cta-width: 380px; }


/* Karte wie im Business Center */
.section.chart-only{
  background-color: rgba(28,28,28,0,2);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 0 8px rgba(0,0,0,.5);
  max-width: 980px;
  margin: 20px auto;
}

/* ==================== Chartbereich ==================== */
.chart-only {
  margin-top: 20px;
}

.dropdown {
  position: relative;
}

.dd-toggle {
  min-width: 160px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.btn-gold,
.dd-toggle.btn-gold {
  background: linear-gradient(145deg, #FFD700, #FFA500);
  border: 1px solid #d4af37;
  color: #000;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-gold:hover,
.dd-toggle.btn-gold:hover {
  background: linear-gradient(145deg, #ffea00, #ffb700);
  transform: translateY(-1px);
}

.copytrade-page .btn-gold {
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000 !important;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(212,175,55,0.6), 0 0 20px rgba(212,175,55,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.copytrade-page .btn-gold:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(248,228,115,0.8), 0 0 30px rgba(248,228,115,0.6);
}

.copytrade-page .dd-menu button {
  width: 100%;
  margin: 4px 0;
  padding: 10px 12px;
  border-radius: 6px;
  border: none;
  background: linear-gradient(90deg, #8b6f1d, #d4af37, #f8e473, #d4af37, #8b6f1d);
  background-size: 300% auto;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  animation: goldShine 6s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(212,175,55,0.45), 0 0 16px rgba(212,175,55,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: center;
}

.copytrade-page .dd-menu button:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(248,228,115,0.7), 0 0 24px rgba(248,228,115,0.5);
}

.copytrade-page .dd-toggle::after {
  content: '';
  margin-left: .25rem;
}

/* Historie Tablette Goldene Schrift */

table thead th {
  font-weight: bold;
  font-size: 0.8rem;
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: goldShine 6s ease-in-out infinite;
  }

.th-left { text-align: left; }
.th-right { text-align: right; }

/* Container der beiden Dropdowns */
.chart-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;   /* Desktop darf umbrechen, falls nötig */
}

/* Mobile: Buttons kompakter und je 50% Breite */
@media (max-width: 480px) {
  #symbolToggle,
  #intervalToggle {
    /* kompakter */
    padding: 8px 25px;
    font-size: 14px;
    height: 38px;
    border-radius: 8px;

    /* nebeneinander */
    flex: 1 1 calc(50% - 10px);
    min-width: 0;         /* verhindert zu große Mindestbreite */
  }
}

/* Mobile: Dropdown-Menü kleiner */
@media (max-width: 480px) {
  #symbolMenu button,
  #intervalMenu button {
    padding: 3px 5px;   /* weniger Innenabstand */
    font-size: 10px;     /* kleinere Schrift */
    height: auto;        /* passt sich dem Inhalt an */
    min-height: 15px;    /* nicht zu klein, für Klickfläche */
  }

  #symbolMenu,
  #intervalMenu {
    border-radius: 8px;  /* weniger abgerundet */
    padding: 4px 0;      /* weniger Abstand oben/unten */
  }
}

/* Dropdown-Listen kürzer machen */
#symbolMenu,
#intervalMenu {
  min-width: unset !important; /* Entfernt Mindestbreite */
  width: auto !important;      /* passt sich Inhalt an */
}

/* Menü-Buttons innen kleiner machen */
#symbolMenu button,
#intervalMenu button {
  padding: 6px 14px;
  font-size: 14px;
}

#txFilterContainer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.tx-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 12px;
}

.tx-filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.tx-filter input[type="date"] {
  padding: 6px 8px;
  height: 22px;
  border-radius: 6px;
  border: none;
  background: #222;
  color: #fff;
  outline: 1px solid #444;
}

.tx-apply {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tx-apply .btn-secondary {
  height: 20px;
  padding: 0 18px;
}

.tx-apply .muted {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1;
  color: #9aa0a6;
  white-space: nowrap;
}

.txFilterRow {
  display: flex;
  align-items: center;
  gap: 6px;
}

#txFilterContainer label {
  font-size: 0.9rem;
  color: gold;
}

#txFilterContainer input[type="date"] {
  padding: 4px 6px;
  font-size: 0.9rem;
}

#txFilterContainer button {
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 6px;
}

.txNote {
  font-size: 0.8rem;
  color: #aaa;
}

/* Mini-Badge für Gewinn/Verlust in der Historie */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  background: rgba(255,255,255,0.06);
}
.chip .arrow {
  font-size: 12px;
  line-height: 1;
}
.chip.up   { color: #00f900; }  /* Grün */
.chip.down { color: #e74c3c; }  /* Rot  */


/* Ticker neu und mit richtigen Daten */
.ticker-wrap{ 
  position:relative; 
  overflow:hidden; 
  background: rgba(28, 28, 28, 0.4); 
  border-top:1px solid #222; 
  border-bottom:1px solid #222; 
  height:46px; }
.ticker-wrap::before,.ticker-wrap::after{ content:""; position:absolute; top:0; width:60px; height:100%; background:linear-gradient(to right,#0e0e0e,rgba(14,14,14,0)); pointer-events:none; }
.ticker-wrap::after{ right:0; transform:scaleX(-1); }
.ticker-wrap::before{ left:0; }

.ticker-slot{
  display:inline-flex;
  align-items:center;
}

.ti{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height: 22px;
  line-height: 1;
  font-size:14px;
  font-family: Georgia, "Times New Roman", serif;
  color:#f3f0e6;
  opacity:.98;
}
.ti .sym{
  font-weight:700;
  letter-spacing:.03em;
  text-transform: uppercase;
  color:#d9c487;
}
.ti .px{ font-variant-numeric:tabular-nums; }
.ti .chg{ font-variant-numeric:tabular-nums; font-weight:700; }
.ti .arrow{ font-size:12px; opacity:.9; }
.ti .num{ font-variant-numeric:tabular-nums; font-weight:800; color:#fff5d3; }
.ti span,
.ti img {
  align-self: center;
}
.ticker-wrap .ti + .ti::before{
  content:"•";
  margin-right:18px;
  color:rgba(245,215,110,0.7);
  font-size:13px;
  line-height:1;
}
.ti-btc-live,
.ti-btc-focus{ color:#f2f2f2; }
.ti-members{ color:#f5d76e; }
.ti-new-members{ color:#2ee5a2; }
.ti-members span:last-child,
.ti-new-members span:last-child,
.ti-btc-focus span:last-child {
  color:#d8d2c3;
  font-size: 13px;
  letter-spacing: .02em;
}
.coin-symbol{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#f7931a;
  color:#111;
  font-size:13px;
  font-weight:800;
  line-height:1;
}

/* stärkere Spezifität innerhalb des Tickers */
.ticker-wrap .ti.up .chg, .ticker-wrap .ti.up .arrow{ color:#2ee5a2; }
.ticker-wrap .ti.down .chg, .ticker-wrap .ti.down .arrow{ color:#ff6b6b; }

@keyframes ticker-move{
  from{ transform:translateX(0); }
  to{ transform:translateX(var(--ticker-shift,-50%)); }
}
.ticker-wrap:hover .ticker-track{ animation-play-state:paused; }
@media (prefers-reduced-motion:reduce){ .ticker-track{ animation:none; } }

/* Logos im Ticker */
.ti .logo{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-flex;
  filter: drop-shadow(0 0 1px rgba(0,0,0,.4));
}
.ti{ gap: 10px; } /* minimal größer, damit Logo Luft hat */
.ticker-wrap::before,
.ticker-wrap::after {
  z-index: 2;        /* oben drüber */
}

.ticker-track{
  position: relative; 
  z-index: 1; 
  display:inline-flex; 
  align-items:center; 
  white-space:nowrap; 
  will-change:transform; 
  gap:28px; 
  padding:0 12px; 
  height:46px;
  animation: ticker-move var(--ticker-duration, 60s) linear infinite;
  transform: translate3d(0,0,0);
}

.ti .px,
.ti .chg {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

/* Label + Pfeil in einer Linie */
.label[data-field="profitLabel"]{
  display:flex; align-items:center; gap:2px;
}

/* KYC */
.kyc-badge {
  display:inline-flex; align-items:center; gap:6px;
  padding:3px 10px; border-radius:999px;
  border:1px solid #555; font-weight:600; font-size:.75rem;
}
.kyc-unverified { color:#bbb; border-color:#666; }
.kyc-pending    { color:#ffcf66; border-color:#7a6100; }
.kyc-rejected   { color:#ff6b6b; border-color:#7a1e1e; }
.kyc-level1     { color:#00ff80; border-color:#0d5; }
.linklike { background:none; border:none; color:gold; cursor:pointer; padding:0; }

/* Einheilticher Abstand zwischen Boxen */
.info-box { margin: 0 0 2rem; }
.info-box + .info-box { margin-top: 2rem; }

/* ID + KYC nebeneinander: links/rechts */
.info-pair{
  display:flex;
  align-items:flex-start;
  justify-content:space-between; /* ID links, KYC rechts */
  gap:16px;
}

/* KYC: Titel über Badge, rechtsbündig */
.kyc-block{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:1px;
}

/* KYC-Trigger als Text */
#kycOpen{
  all:unset;
  display:inline;
  color: gold;
  font-weight:600;
  font-size:.98rem;
  cursor:pointer;
}
#kycOpen:hover,#kycOpen:focus{ text-decoration: underline; outline: none; }

/* Performance-Toggle (damit er nicht verschwindet) */
.label[data-field="profitLabel"]{ display:flex; align-items:center; gap:4px; }
#perfCycle{
  all:unset; display:inline-flex; align-items:center; justify-content:center;
  cursor:pointer; margin-left:2px;
}
#perfCycle svg{ width:16px; height:16px; fill:gold; }

/* 2 Faktor Verifizierung 2SF im Dashboard */
/* === 2FA-Modal – HARTE ISOLATION (ganz ans Ende der CSS!) === */
#twofaModal { display:none; }
#twofaModal.show { display:flex; }

#twofaModal .modal-box{
  width: min(92vw, 560px);
  max-width: 560px;
  box-sizing: border-box;
}

/* Alles im 2FA-Modal zurück auf „normal“ zwingen */
#twofaModal .modal-box,
#twofaModal .modal-box *{
  writing-mode: horizontal-tb !important;
  text-orientation: mixed !important;
  direction: ltr !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: anywhere !important;

  transform: none !important;
  float: none !important;
  position: static !important;
}

/* Nur Checkbox-Zeilen im Grid layouten */
#twofaModal .modal-box label.twofa-row{
  display: grid !important;
  grid-template-columns: 18px 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  width: 100% !important;
  margin: .6rem 0 !important;
}

/* Normale Labels (ohne Checkbox) einfach blockig anzeigen */
#twofaModal .modal-box label:not(.twofa-row){
  display: block !important;
  margin: .6rem 0 !important;
}
#twofaModal .modal-box label.twofa-row > input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  margin-top: 2px !important;
}

/* Typografie & Inputs im Modal */
#twofaModal .modal-box p{ margin:.3rem 0 .8rem !important; }
#twofaModal .modal-actions{ display:flex; justify-content:flex-end; gap:10px; }
#twofaModal input[type="text"]{
  width:100%;
  background:#131313 !important;
  color:#f3f6fb !important;
  -webkit-text-fill-color:#f3f6fb !important;
  border-color:rgba(255,255,255,0.14) !important;
}
#twofaModal input[type="text"]::placeholder{
  color:#8f99a6 !important;
  -webkit-text-fill-color:#8f99a6 !important;
}
#twofaModal input[type="text"]:focus{
  background:#16181b !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}
#twofaSecret{ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* === Withdraw Confirm Modal – final override after legacy global inputs === */
#w-confirmModal .modal-box{
  width: min(92vw, 430px);
  max-width: 430px;
  padding: 22px 20px 18px;
  border: 1px solid rgba(255, 215, 0, 0.14);
  background:
    linear-gradient(180deg, rgba(26, 27, 31, 0.98), rgba(11, 12, 15, 0.98)),
    #0c0d10;
  box-shadow:
    0 22px 60px rgba(0,0,0,0.48),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

#w-confirmModal .review{
  display:grid;
  gap:9px;
  margin:10px 0 14px;
  padding:12px 13px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)),
    rgba(8,9,12,0.82);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.03),
    0 8px 18px rgba(0,0,0,0.28);
}

#w-confirmModal .review > div{
  display:grid;
  grid-template-columns:minmax(92px,110px) minmax(0,1fr);
  gap:10px;
  align-items:center;
}

#w-confirmModal .review span{
  color:#9ea6b0;
  font-size:11px;
  font-weight:600;
  letter-spacing:.05em;
  text-transform:uppercase;
}

#w-confirmModal .review strong{
  color:#f4f6f9;
  font-size:13px;
  font-weight:700;
  text-align:right;
}

#w-confirmModal .review #w-revNet{ color:#f5d76e; }
#w-confirmModal .field-label{ color:#b9c0c8 !important; }

#w-confirmModal #w-twofaOTP{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  display:block !important;
  box-sizing:border-box !important;
  background:#111419 !important;
  color:#f5f7fa !important;
  border:1px solid rgba(255,255,255,0.16) !important;
  border-radius:10px !important;
  padding:12px 14px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.02),
    0 6px 14px rgba(0,0,0,0.55) !important;
  text-transform:none !important;
  letter-spacing:.18em !important;
  text-align:center !important;
  font-size:15px !important;
  font-weight:700 !important;
  font-variant-ligatures:none;
}

#w-confirmModal #w-twofaOTP::placeholder{
  color:rgba(255,255,255,0.42) !important;
  letter-spacing:.12em !important;
}

#w-confirmModal #w-twofaOTP:focus{
  outline:none;
  color:#ffffff !important;
  background:#111419 !important;
  border-color:rgba(255,215,0,0.58) !important;
  box-shadow:
    0 0 0 1px rgba(255,215,0,0.52),
    0 0 14px rgba(255,215,0,0.16) !important;
  transform:none !important;
}

#w-confirmModal #w-twofaMsg{
  min-height:18px;
  margin-top:8px;
}

@media (max-width: 480px){
  #w-confirmModal .modal-box{ padding:18px 16px 16px; }
  #w-confirmModal .review{ gap:8px; padding:10px 11px; }
  #w-confirmModal .review > div{
    grid-template-columns:86px minmax(0,1fr);
    gap:8px;
  }
  #w-confirmModal .review span{ font-size:10px; }
  #w-confirmModal .review strong{ font-size:12px; }
}

/* ================================= */
/* ===== Auszahlung / Withdraw ===== */
.withdraw-container { max-width: 720px; }

.withdraw-toggle{
  display:flex; gap:8px; justify-content:center; margin: 10px 0 16px;
}
.withdraw-wallet{
  margin: 16px 0;
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 14px;
}
.withdraw-wallet .addr-label{ color:#ccc; margin-bottom:6px; }
.withdraw-wallet .addr-row{ display:flex; gap:10px; align-items:center; }
.withdraw-wallet input{ flex:1; padding:8px; border-radius:6px; border:1px solid #555; background:#111; color:#fff; }

.withdraw-box{
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
}
.withdraw-box label{ display:block; margin: 12px 0 4px; }
.withdraw-box select,
.withdraw-box input{ width:100%; padding:10px; border-radius:8px; border:1px solid #555; background:#111; color:#fff; }

.amount-row{ display:flex; gap:10px; }
.amount-row input{ flex:1; }

.fee-box{
  margin-top: 12px;
  padding:10px;
  background: rgba(0,0,0,.25);
  border-radius: 8px;
  font-size: .95rem;
  color:#ddd;
}

.agb-row{ display:flex; gap:8px; align-items:center; margin:12px 0; }
.error-msg{ color:#ff6666; font-size:.9rem; margin-top:4px; }

.msg{ margin-top:8px; color:#f88; font-size:.9rem; }


/* ===== Admin: Withdraw UI ===== */
.w-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.w-spacer { flex: 1 1 auto; }

.pill { padding:3px 8px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill.pending_admin { color:#e6b800; border-color:#e6b800; background: rgba(230,184,0,.08); }
.pill.approved      { color:#00d084; border-color:#00d084; background: rgba(0,208,132,.08); }
.pill.paid          { color:#76b7ff; border-color:#76b7ff; background: rgba(118,183,255,.12); }
.pill.rejected      { color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.addr, .txid { max-width:380px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

table.withdraw { width:100%; border-collapse:collapse; margin-top:8px; }
table.withdraw th, table.withdraw td { padding:8px 10px; border-bottom:1px solid #444; text-align:left; }
table.withdraw tr:hover { background:#151515; }

.btn-outline { background:transparent; border:1px solid #555; color:#fff; }

/* ===== Cards (Empire Style) ===== */
.card{
  background: rgba(28,28,28,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25) inset;
  margin: 16px 0;
  color:#eee;
}
.card-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.card-head .title{ font-weight:700; display:flex; gap:8px; align-items:center; }
.card .card-actions{ display:flex; gap:10px; }

/* Address card */
.address-card .addr-row{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px; border:1px dashed rgba(255,255,255,.2);
  border-radius:8px; background: rgba(0,0,0,.25);
}
.addr-code{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.btn-chip{ padding:4px 8px; border:1px solid rgba(255,255,255,.15); background:transparent; border-radius:999px; font-size:.85rem; color:#fff; }
.btn-wide{ width:100%; }

/* Pills */
.pill{ padding:4px 10px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill-good{ color:#00d084; border-color:#00d084; background: rgba(0,208,132,.08); }
.pill-bad{ color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }
.pill-warn{ color:#e6b800; border-color:#e6b800; background: rgba(230,184,0,.12); }

/* Action card */
.balance-line{ display:flex; align-items:center; gap:10px; justify-content:flex-end; margin-bottom:6px; }
.field-label{ display:block; margin: 12px 0 6px; color:#ccc; }
.amount-row{ display:flex; gap:10px; align-items:center; }
.amount-row input{ flex: 1 1 auto; padding:12px; border-radius:8px; border:1px solid #555; background:#111; color:#fff; }
.amount-suffix{ min-width:68px; text-align:center; padding:10px 12px; border:1px solid #555; border-radius:8px; background:#111; }

.banking-page .amount-row{
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.banking-page #w-amount,
.banking-page .amount-suffix{
  box-sizing: border-box;
  height: 42px;
}
.banking-page #w-amount{
  width: 100%;
  padding: 10px 12px;
}
.banking-page .amount-suffix{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 10px;
}

/* Fee box stronger */
.banking-page .fee-box-strong{
  margin-top: 12px;
  background: rgba(255,255,255,0.035);
}
.banking-page .fee-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 0;
}
.banking-page .fee-row.total strong{
  font-size: 16px;
  color: #f5d76e;
}

/* Status line */
.status-line{ display:flex; gap:8px; align-items:center; margin-top:12px; }

/* Messages */
.form-msg{ margin-top:10px; color:#ddd; }
.form-msg.ok{ color:#00d084; }
.error-msg{ color:#ff7676; margin-top:6px; }

.modal-box .review{ display:grid; grid-template-columns: 1fr auto; gap:8px 12px; padding:10px; background:#111; border:1px solid #333; border-radius:8px; margin:8px 0 12px; }

/* Responsive */
@media (max-width:560px){
  .balance-line{ justify-content:space-between; }
  .amount-suffix{ min-width:58px; }
}

.agb-row{
  display:grid;
  grid-template-columns: 18px 1fr;
  align-items:start;
  gap:10px;
  margin:12px 0;
}
.agb-row input{ width:16px; height:16px; margin-top:2px; }
.agb-row span{ line-height:1.35; }

/* kleine Helfer */
.hidden { display: none !important; }

.w-head { display:flex; align-items:center; gap:10px; }
.w-head .pill { margin-left: auto; }

/* User-facing Pills */
.pill { padding:3px 10px; border-radius:999px; border:1px solid #444; font-size:.85rem; }
.pill-ok   { color:#00d084; border-color:#00d084; background: rgba(0,208,132,.10); }
.pill-warn { color:#ff7676; border-color:#ff7676; background: rgba(255,118,118,.12); }

/* Status-Badges Reihe */
.status-badges{ display:flex; gap:8px; margin-top:10px; flex-wrap:wrap; }

/* ===== Withdraw polish (Empire) ===== */
.banking-page .withdraw-card-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

.banking-page .withdraw-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

.address-card .btn-compact{
  padding: 6px 10px;
  font-size: .85rem;
  line-height: 1.1;
}

/* dezent goldiger Rahmen für die Adresse-Box */
.address-card .addr-row{
  border-color: rgba(248, 228, 115, .18); /* zarter Gold-Ton */
  background: rgba(0,0,0,.22);
}

/* Zahlen leicht betonen */
.action-card .balance-line strong{
  letter-spacing: .2px;
  font-weight: 800;
}

/* Gold-Link-Labels in diesen Zeilen nicht umbrechen */
.card-head .gold-link,
.balance-line .gold-link{
  display: inline-block;
  white-space: nowrap;
}


/* Withdraw: kompakter Edit-Button (falls noch nicht vorhanden) */
.address-card .btn-compact{
  padding: 6px 10px; font-size: .85rem; line-height: 1.1;
}

.banking-page #w-editAddrBtn,
.banking-page #w-hPrev,
.banking-page #w-hNext {
  background: rgba(16,18,21,0.88) !important;
  color: #cfd5dd !important;
  border: 1px solid rgba(212,175,55,0.22);
  border-radius: 8px;
  animation: none !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 2px 7px rgba(0,0,0,0.28);
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, transform 0.08s ease;
}

.banking-page #w-editAddrBtn:hover,
.banking-page #w-hPrev:hover,
.banking-page #w-hNext:hover {
  background: rgba(24,27,31,0.94) !important;
  color: #f0e3ba !important;
  border-color: rgba(212,175,55,0.38);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 9px rgba(212,175,55,0.12);
  transform: translateY(-1px);
}

.banking-page #w-hPrev:disabled,
.banking-page #w-hNext:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==== TRANSFER: Guthaben-Karten ==== */
#panel-transfer .balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
#panel-transfer .balances .balance-card {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ==== TRANSFER: Regeln-Box wie bei Einzahlung ==== */
.rules-transfer { margin-top: 12px; }

/* ==== TRANSFER: Buttons weiter unten + dezenter ==== */
.transfer-actions{
  margin-top: 16px;           /* Abstand nach Regeln */
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* dezenter Button-Stil speziell für Umbuchung */
.btn-quiet{
  background: rgba(28,28,28,.58);
  border: 1px solid rgba(255,215,0,.28);
  color: #eee !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: none;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn-quiet:hover{
  background: rgba(28,28,28,.72);
  transform: translateY(-1px);
}

/* Mobile: Buttons ganze Breite */
@media (max-width: 480px){
  .transfer-actions button{
    flex: 1 1 100%;
  }
}

/* ==== TRANSFER: Letzte Transaktionen – COMPACT ==== */
#panel-transfer .transfer-history-card { margin-top: 16px; }
#panel-transfer .transfer-history-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}
#panel-transfer .transfer-history-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

#panel-transfer .history table{
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;            /* fixe Spaltenbreiten, damit es ruhig bleibt */
}

/* Header kleiner */
#panel-transfer .history thead th{
  padding: 6px 8px;
  font-size: 11px;
  letter-spacing: .2px;
}

/* Zellen kompakt + dezenter */
#panel-transfer .history tbody td{
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.15;
  color: #d7d7d7;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#panel-transfer .history tbody tr:hover{ background: rgba(255,255,255,.03); }

/* Spalten-Breiten + Trunkierung */
#panel-transfer .history th:nth-child(1),
#panel-transfer .history td:nth-child(1){ width: 27%; }  /* Datum */
#panel-transfer .history th:nth-child(2),
#panel-transfer .history td:nth-child(2){ width: 15%; }  /* Von */
#panel-transfer .history th:nth-child(3),
#panel-transfer .history td:nth-child(3){ width: 15%; }  /* Nach */
#panel-transfer .history th:nth-child(4),
#panel-transfer .history td:nth-child(4){ width: 25%; }  /* Notiz */
#panel-transfer .history th:nth-child(5),
#panel-transfer .history td:nth-child(5){ width: 18%; }  /* Betrag */

#panel-transfer .history td:nth-child(4){
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Beträge klar rechts & tabular-nums */
#panel-transfer .history td.right{
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: #ececec;
}

/* Extra klein auf Phone */
@media (max-width: 480px){
  #panel-transfer .history thead th{ font-size: 10px; padding: 5px 6px; }
  #panel-transfer .history tbody td{ font-size: 11px; padding: 4px 6px; }
}

/* ====== Auszahlung: History-Card kompakter & sauber ====== */
#panel-withdraw .history-card {
  margin-top: 16px;
  padding: 12px 14px;
}

#w-historyCard .card-head {
  margin-bottom: 6px;
}

#w-historyCard .card-head .title {
  font-size: 0.95rem;
}

#w-historyCard .withdraw-history-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 10px;
}

#w-historyCard .withdraw-history-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

#w-historyCard .withdraw-history-pager {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

/* Pager schlank */
#w-historyCard .btn-compact {
  font-size: 11,5px;
  line-height: 1;
  padding: 3px 7px;
  height: 24px;
  border-radius: 6px;
}
#w-hPage {
  font-size: 12px;
  opacity: .85;
}

/* Tabelle kompakt, fixe Spaltenbreiten, schöne Ausrichtung */
#w-historyCard .w-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  border-radius: 8px;
  overflow: hidden;
}

#w-historyCard .w-history-table thead th {
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .2px;
  text-align: left;
  padding: 8px 10px;
  background: rgba(255,255,255,.06);
}

#w-historyCard .w-history-table td {
  font-size: 13px;
  padding: 8px 10px;
  border-top: 1px solid rgba(255,255,255,.06);
  vertical-align: middle;
}

#w-historyCard .w-history-table td.right { text-align: right; }

/* lange Strings hübsch kürzen */
#w-historyCard .w-history-table td.mono,
#w-historyCard .w-history-table td a,
#w-historyCard .w-history-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Zebra-Optik leicht */
#w-historyCard .w-history-table tbody tr:nth-child(odd) td {
  background: rgba(255,255,255,.02);
}

/* Abstand zwischen „Betrag“-Card und History */
.withdraw-container .withdraw-card + .history-card {
  margin-top: 18px;
}

/* "Keine Historie" dezenter */
#w-hEmpty {
  margin-top: 8px;
  opacity: .85;
  font-size: 13px;
}

/* Mobile Optimierungen */
@media (max-width: 560px) {
  #w-historyCard .w-history-table th,
  #w-historyCard .w-history-table td { padding: 6px 8px; font-size: 12px; }


  #w-historyCard .btn-compact { height: 26px; padding: 4px 7px; font-size: 11.5px; }
  #w-hPage { font-size: 11.5px; }
}

/* === Wallet-History: Sichtbare, goldene Header === */
#w-historyCard .w-history-table thead th{
  /* Gold wie überall, ohne Text-Clip-Tricks */
  color:#f5d76e !important;
  background: rgba(255,255,255,.06) !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  animation: none !important;
  font-weight: 700;
}

/* === Wallet-History: horizontales Scrollen erlauben === */
#w-historyCard .history{
  overflow-x: auto;                 /* Scrollbar falls nötig */
  -webkit-overflow-scrolling: touch;/* flüssig auf iOS */
}
#w-historyCard .w-history-table{
  min-width: 820px;                 /* genug Breite für alle Spalten */
  table-layout: fixed;              /* ruhige Layouts */
}

/* Monospace + Trunkierung (Titel zeigt vollen Wert) */
#w-historyCard .w-history-table td.mono,
#w-historyCard .w-history-table td a{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* === Saubere Spaltenaufteilung Auszahlungstabelle === */
#w-historyCard .w-history-table {
  min-width: 0;
  table-layout: fixed;
}

/* Datum/Uhrzeit */
#w-historyCard .w-history-table th:nth-child(1),
#w-historyCard .w-history-table td:nth-child(1) {
  width: 40%;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
}

/* Summe */
#w-historyCard .w-history-table th:nth-child(2),
#w-historyCard .w-history-table td:nth-child(2) {
  width: 30%;
  min-width: 0;
  text-align: right;
}

/* Status */
#w-historyCard .w-history-table th:nth-child(3),
#w-historyCard .w-history-table td:nth-child(3) {
  width: 30%;
  min-width: 0;
  text-align: center;
}

#w-historyCard .w-history-table td {
  vertical-align: middle;
  padding-top: 10px;
  padding-bottom: 10px;
}

#w-historyCard .w-history-status {
  display: inline-block;
  max-width: calc(100% - 18px);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

#w-historyCard .w-history-toggle {
  display: inline-block;
  margin-left: 6px;
  color: #aeb4bd;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.16s ease, color 0.16s ease;
  vertical-align: middle;
}

#w-historyCard .w-history-main-row.is-open .w-history-toggle {
  color: #f5d76e;
  transform: rotate(180deg);
}

#w-historyCard .w-history-detail-cell {
  width: auto !important;
  min-width: 0 !important;
  padding: 0 8px 10px !important;
  text-align: left !important;
  background: rgba(0,0,0,0.20) !important;
  white-space: normal !important;
}

#w-historyCard .w-history-detail-cell .w-history-detail-list {
  white-space: normal;
}


/* Veraltete ct-signalCodeInput/ct-submitSignal-Regeln entfernt */

/* Chart-Dropdowns kleiner & unaufdringlicher (passen nebeneinander) */
#panel-trading .chart-controls{ gap:8px !important; margin:6px 0 8px !important; }
/* Veraltete ct-symbolToggle/ct-intervalToggle-Regeln entfernt */

/* Teilnahme-Historie: Body-Schrift kleiner, Header bleibt */
#panel-trading .tx-table tbody td{
  font-size:12px !important; padding:6px 8px !important;
}
#panel-trading .tx-table .chip{
  font-size:11px !important; padding:2px 6px !important;
}

/* ===== Trading Center: kompakte Dropdowns ===== */

/* Toggle-Buttons (BTC/USDT & 1m) – klein & dezent */
#panel-trading .chart-controls .dd-toggle{
  min-width: 110px !important;
  width: auto !important;
  height: 30px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

/* Dropdown-Panel kleiner und dichter */
#panel-trading .chart-controls .dd-menu{
  top: calc(100% + 4px) !important;
  min-width: 100px !important;
  padding: 4px !important;
  border-radius: 8px !important;
}

/* Menü-Einträge schlank (keine fetten Gold-Buttons) */
#panel-trading .chart-controls .dd-menu button{
  background: #1f1f1f !important;
  color: #ffd700 !important;
  border: 1px solid rgba(255,215,0,.22) !important;
  box-shadow: none !important;
  margin: 2px 0 !important;
  padding: 6px 8px !important;
  height: 24px !important;
  font-size: 10px !important;
  border-radius: 6px !important;
  transform: none !important;
}
#panel-trading .chart-controls .dd-menu button:hover{
  background: rgba(255,215,0,.12) !important;
  transform: none !important;
  box-shadow: none !important;
}

.tx-note-row .tx-note-cell{
  padding: 6px 8px;
  font-size: 0.78rem;
  color: #9aa0a6;
  text-align: right;        /* oder center; Geschmackssache */
  border-top: 1px solid rgba(255,255,255,.06);
}



/* ===== Legal fullpage ===== */
.legal-view { padding: 16px 16px 56px; }
.legal-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 980px; margin: 0 auto 12px;
}
.brand-logo-small { height: 56px; width: auto; display: block; }

.back-link {
  background: none; border: 0; cursor: pointer;
  color: #ccc; font-size: 0.95rem; padding: 6px 10px; border-radius: 6px;
}
.back-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

.legal-wrap {
  max-width: 980px; margin: 0 auto;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 28px 22px;
  text-align: left; line-height: 1.65;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.legal-wrap .lead { opacity: .85; margin-top: -6px; }
.legal-wrap h2 { margin: 28px 0 8px; font-size: 1.25rem; color: #ffd166; }
.legal-wrap h3 { margin: 18px 0 6px; font-size: 1.05rem; color: #ffd166; }
.legal-wrap p,
.legal-wrap li { color: #e9e9e9; }

.legal-wrap ul, .legal-wrap ol { padding-left: 20px; }



/* Liste im Modal */
.direct-list{ margin-top:8px; }
.direct-list table{ width:100%; border-collapse:collapse; }
.direct-list th, .direct-list td{ padding:6px 8px; border-bottom:1px solid rgba(255,255,255,.08); }
.direct-flag{ font-size:12px; padding:2px 6px; border-radius:999px; }
.direct-flag.ge{ background:rgba(46,204,113,.15); color:#5bd26a; }   /* >= 500 $ */
.direct-flag.lt{ background:rgba(255,255,255,.1); color:#ddd; }      /* < 500 $ */

.chartBox {
  position: relative;
  width: min(520px, 100%);
  height: 360px;           /* fixe Höhe */
  margin: 0 auto;
}
.chartBox > canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}


/* Button-Morph states (dezent, Gold bleibt) */
.btn-primary.state-info    { filter: saturate(.95) brightness(.98); }
.btn-primary.state-success { box-shadow: 0 0 0 2px rgba(46,204,113,.28) inset; }
.btn-primary.state-error   { box-shadow: 0 0 0 2px rgba(231,76,60,.28) inset; }

/* Mini-Pop für kurze Rückmeldung */
.btn-primary.pulse { animation: btn-pop .18s ease-out; }
@keyframes btn-pop {
  0% { transform: scale(1); }
  50%{ transform: scale(1.03); }
  100%{transform: scale(1); }
}

/* === Sprachwahl bei Registrierung === */
.lang-switch {
  margin-top: 10px;
  margin-bottom: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: #ccc;
  user-select: none;
}

.lang-switch .lang-option {
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-switch .lang-option.active {
  color: #ffd700; /* Gold für aktive Sprache */
  text-shadow: 0 0 6px rgba(255,215,0,0.6);
}

.lang-switch .lang-option:hover {
  color: #fff;
}

.lang-switch .separator {
  margin: 0 6px;
  opacity: 0.6;
}

/* ======= Trading-Historie Tabelle (kompakter & scrollbar) ======= */
.tx-table {
  display: table;
  table-layout: fixed;
  border-collapse: collapse;
  width: 100%;
}

.tx-table th,
.tx-table td {
  padding: 6px 8px !important;    /* kompakter */
  min-width: 80px;                /* vorher 110px */
  white-space: nowrap;
  text-align: right;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#panel-trading .tx-table thead th {
  color: #f5d76e;
}

.tx-table .tx-cell.tx-left,
.tx-table .th-left {
  text-align: left !important;
}

.tx-table .tx-cell.tx-center {
  text-align: center !important;
}

.tx-table .th-center {
  text-align: center !important;
}

.tx-table .tx-cell.tx-right,
.tx-table .th-right {
  text-align: right !important;
}

.tx-open-value {
  font-weight: 700;
  color: #f5c91a;
}

.tx-table th:nth-child(1) { min-width: 170px; } /* Time */
.tx-table th:nth-child(2) { min-width: 120px; } /* Rang */
.tx-table th:nth-child(3) { min-width: 120px; } /* Realized % */
.tx-table th:nth-child(4) { min-width: 100px; } /* P&L */

.tx-table th:nth-child(1),
.tx-table td:nth-child(1) { width: 33%; }
.tx-table th:nth-child(2),
.tx-table td:nth-child(2) { width: 28%; }
.tx-table th:nth-child(3),
.tx-table td:nth-child(3) { width: 20%; }
.tx-table th:nth-child(4),
.tx-table td:nth-child(4) { width: 19%; }

@media (max-width: 430px) {
  .tx-table th,
  .tx-table td {
    padding: 6px 5px !important;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tx-table th:nth-child(1),
  .tx-table td:nth-child(1) { width: 33%; }
  .tx-table th:nth-child(2),
  .tx-table td:nth-child(2) { width: 28%; }
  .tx-table th:nth-child(3),
  .tx-table td:nth-child(3) { width: 20%; }
  .tx-table th:nth-child(4),
  .tx-table td:nth-child(4) { width: 19%; }
}

/* Chart-Header nutzt jetzt denselben ct-card-title Stil wie die anderen Karten */

.tx-main-row {
  cursor: pointer;
}

.tx-main-row:hover td,
.tx-main-row:focus td {
  background: rgba(255, 255, 255, 0.04);
}

.tx-main-row:focus {
  outline: none;
}

.tx-table .ct-tier-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 9px;
  font-size: 10px;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tx-expand-indicator {
  display: inline-block;
  margin-left: 6px;
  transform: rotate(0deg);
  color: #f5c91a;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.tx-main-row.is-open .tx-expand-indicator {
  transform: rotate(180deg);
}

.tx-status-chip {
  display: inline-block;
  min-width: 76px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tx-status-chip.live {
  background: rgba(212,175,55,0.24);
  color: #f5c91a;
  border: 1px solid rgba(212,175,55,0.6);
}

.tx-status-chip.closed {
  background: rgba(255,255,255,0.08);
  color: #d2d5da;
  border: 1px solid rgba(255,255,255,0.18);
}

.tx-detail-cell {
  padding: 10px 8px 12px !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  white-space: normal !important;
  text-align: left !important;
  box-sizing: border-box;
}

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

.tx-detail-grid-top {
  grid-template-columns: minmax(0, 30fr) minmax(0, 30fr) minmax(0, 20fr) minmax(0, 20fr);
  margin-bottom: 8px;
}

.tx-detail-grid-bottom {
  grid-template-columns: minmax(0, 30fr) minmax(0, 30fr) minmax(0, 20fr) minmax(0, 20fr);
}

.tx-detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-align: left;
  min-width: 0;
}

.tx-detail-item.tx-span-2 {
  grid-column: span 2;
}

.tx-detail-grid .tx-detail-item:nth-child(1) {
  justify-content: flex-start;
  text-align: left;
}

.tx-detail-grid .tx-detail-item:nth-child(2) {
  justify-content: center;
  text-align: center;
}

.tx-detail-grid .tx-detail-item:nth-child(3),
.tx-detail-grid .tx-detail-item:nth-child(4) {
  justify-content: flex-end;
  text-align: right;
}

.tx-detail-label {
  font-size: 11px;
  color: #aeb4bd;
  white-space: nowrap;
}

.tx-detail-value {
  font-size: 12px;
  font-weight: 600;
  color: #f1f2f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 700px) {
  .tx-detail-grid-top,
  .tx-detail-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 10px;
  }

  .tx-detail-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    text-align: left;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
  }

  .tx-detail-grid .tx-detail-item:nth-child(1),
  .tx-detail-grid .tx-detail-item:nth-child(2),
  .tx-detail-grid .tx-detail-item:nth-child(3),
  .tx-detail-grid .tx-detail-item:nth-child(4) {
    justify-content: flex-start;
    text-align: left;
  }

  .tx-detail-grid-bottom .tx-detail-item:nth-child(1),
  .tx-detail-grid-bottom .tx-detail-item:nth-child(2) {
    grid-column: 1 / -1;
  }

  .tx-detail-label {
    font-size: 10px;
  }

  .tx-detail-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
    font-size: 12px;
  }
}

/* ===== Bybit-Style Chart ===== */

.byb-chart {
  background: rgba(0,0,0,0.05); /* ganz leichtes grau 5% */
  border-radius: 12px;
  padding: 12px 14px 10px;
  color: #eee;
}

/* Header oben */
.byb-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.byb-header-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.byb-last-label {
  font-size: 11px;
  color: #f5d76e !important;
}

.byb-last-price {
  font-size: 22px;
  font-weight: 700;
  color: #16c784; /* Grün wie Bybit */
  line-height: 1.1;
}

.byb-mark-price {
  font-size: 12px;
  color: #f5d76e !important;
}

.byb-header-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  text-align: right;
}

.byb-stat-row span:first-child {
  color: #f5c91a !important;
  margin-right: 8px;
}

.byb-stat-row span:last-child {
  color: #ddd;
}

/* Toolbar / Timeframes */
.byb-toolbar {
  display: flex;
  align-items: center;
  margin: 6px 0 4px;
  font-size: 12px;
}

.byb-timeframes {
  display: inline-flex;
  gap: 8px;
}

.tf-btn {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 12px;
  padding: 2px 4px;
  cursor: pointer;
}

.tf-btn.active {
  color: #f5c91a; /* gelb wie Bybit */
  border-bottom: 2px solid #f5c91a;
}

/* MA-Legende */
.byb-ma-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-bottom: 4px;
}

.byb-ma-legend span {
  white-space: nowrap;
}

.byb-ma-legend .ma7 {
  color: #f1c40f;  /* gelb */
}
.byb-ma-legend .ma14 {
  color: #3498db;  /* blau */
}
.byb-ma-legend .ma28 {
  color: #9b59b6;  /* lila */
}

/* Chart + Price-Tag */
.byb-chart-wrap {
  position: relative;
}

.byb-price-tag {
  position: absolute;
  right: 0;
  top: 40%;
  transform: translateY(-50%);
  background: #000;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 11px;
  color: #fff;
  border: 1px solid #555;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 70px;
  pointer-events: none;
}

.byb-price-tag div:first-child {
  color: #fff;
}
.byb-price-tag div:last-child {
  color: #ccc;
  font-size: 10px;
}

/* Volume-Legende */
.byb-volume-legend {
  display: flex;
  gap: 12px;
  font-size: 11px;
  margin-top: 4px;
}

.byb-volume-legend span {
  white-space: nowrap;
}

.byb-volume-legend #ct-volumeLabel {
  color: #2ecc71; /* grün */
}
.byb-volume-legend #ct-volumeMa5Label {
  color: #f1c40f; /* gelb */
}
.byb-volume-legend #ct-volumeMa10Label {
  color: #3498db; /* blau */
}

/* Bybit-Style: Price-Tag rechts im Chart ausblenden */
.byb-price-tag {
  display: none;
}

.chart-title-empire {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  letter-spacing: .5px;

  /* exakt dieselbe Gold-Optik wie .gold-link */
  background: linear-gradient(90deg, #b8860b, #ffd700, #b8860b);
  background-size: 300% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;

  animation: goldShine 6s ease-in-out infinite;
  margin-bottom: 8px;
}

.utc-time {
  margin-top: 4px;
  font-size: 13px;
  color: #f5c91a; /* dezentes Gold */
  font-weight: 600;
}

/* Kleine Legende unter Volume für RSI / MACD */
.byb-osc-legend {
  margin-top: 2px;
  padding: 0 4px 2px;
  display: flex;
  gap: 16px;
  font-size: 11px;
  font-weight: 500;
}

.byb-osc-legend span {
  color: #e0e0e0;
}

.byb-osc-legend #ct-rsiLabel {
  color: #f1c40f;   /* goldig */
}

.byb-osc-legend #ct-macdLabel {
  color: #9b59b6;   /* lila wie MA28 */
}

/* Standard-Höhe für Desktop / Tablet */
.byb-chart .chart-canvas {
  height: 520px;      /* vorher 360px – etwas mehr Raum */
}

/* Auf Smartphones extra viel Platz für alle Panels */
@media (max-width: 600px) {
  .byb-chart .chart-canvas {
    height: 520px;    /* kannst 480 / 520 / 560 testen */
  }

  /* Optional: außen ein bisschen mehr Luft unten */
  .byb-chart {
    padding-bottom: 14px;
  }
}


/* Aktiver Trade in der Teilnahme-Historie (LIVE) */
.tx-row-active {
  position: relative;
  border-radius: 6px;
  animation: txLivePulse 2.4s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.75),
    0 0 14px rgba(212,175,55,0.45),
    0 0 26px rgba(212,175,55,0.25);
  background: radial-gradient(circle at center, rgba(212,175,55,0.12) 0, transparent 60%);
}

/* damit die untere Linie bei der aktiven Zeile auch golden wirkt */
.tx-row-active td {
  border-bottom-color: rgba(212,175,55,0.6) !important;
}

/* Puls-Animation für die LIVE-Zeile */
@keyframes txLivePulse {
  0% {
    box-shadow:
      0 0 0 1px rgba(212,175,55,0.55),
      0 0 6px rgba(212,175,55,0.35),
      0 0 12px rgba(212,175,55,0.15);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(255,215,0,0.95),
      0 0 20px rgba(255,215,0,0.75),
      0 0 35px rgba(255,215,0,0.45);
  }
  100% {
    box-shadow:
      0 0 0 1px rgba(212,175,55,0.55),
      0 0 6px rgba(212,175,55,0.35),
      0 0 12px rgba(212,175,55,0.15);
  }
}

/* Kleines LIVE-Badge in Empire-Gold */
.tx-live-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #8b6f1d,
    #d4af37,
    #f8e473,
    #d4af37,
    #8b6f1d
  );
  background-size: 250% auto;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  animation: goldShine 6s ease-in-out infinite; /* du hast goldShine schon */
  box-shadow: 0 0 6px rgba(212,175,55,0.5);
}

/* ================== Copytrading Panel (High-End Card) ================== */

.ct-card {
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.15) 0,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.55) 100%
  );
  border-radius: 14px;
  padding: 12px 14px 10px;
  box-shadow:
    0 0 0 1px rgba(212,175,55,0.28),
    0 8px 18px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Copytrade-Section: gleiche Breite wie Chart, aber ohne grauen Chart-Rahmen */
.section.chart-only.ct-card-wrap {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 0;             /* Rahmen/Innenabstand macht die Card selbst */
}

.ct-history-card {
  margin-top: 2px;
}

.ct-history-header {
  margin-bottom: 10px;
}

.ct-chart-card {
  margin-top: 2px;
  background: radial-gradient(
    circle at top,
    rgba(212,175,55,0.08) 0,
    rgba(0,0,0,0.14) 34%,
    rgba(0,0,0,0.55) 100%
  );
}

.ct-chart-header {
  margin-bottom: 10px;
}

.ct-chart-body.byb-chart {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.ct-chart-card::before {
  border-color: rgba(212,175,55,0.10);
}

/* dezente Goldkante oben */
.ct-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(212,175,55,0.15);
  pointer-events: none;
}

.ct-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ct-card-row:last-child {
  margin-bottom: 0;
}

/* Zeile 1: Titel & Status */
.ct-card-header {
  font-size: 13px;
}

.ct-card-title {
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5d76e;
}

/* Status-Pill (LIVE / Kein Signal / Loading) */
.ct-status-pill {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.ct-status-live {
  background: linear-gradient(
    90deg,
    #8b6f1d,
    #d4af37,
    #f8e473,
    #d4af37,
    #8b6f1d
  );
  background-size: 250% auto;
  color: #000;
  animation: goldShine 6s ease-in-out infinite;
}

.ct-status-nosignal {
  background: rgba(120,120,120,0.2);
  color: #ccc;
}

.ct-status-loading {
  background: rgba(245,201,26,0.16);
  color: #f5c91a;
}

/* Zeile 2: Symbol & Tier */
.ct-card-symbol {
  align-items: flex-start;
}

.ct-symbol-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-symbol-main {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
}

.ct-symbol-sub {
  font-size: 11px;
  color: #bbb;
}

.ct-symbol-right {
  display: flex;
  align-items: center;
}

.ct-tier-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

/* Tier-Farben */
.ct-tier-starter {
  background: rgba(52, 152, 219, 0.25); /* hellblau-transparent */
  border: 1px solid rgba(52, 152, 219, 0.8);
  color: #d6e9ff;
}

.ct-tier-bronze {
  background: rgba(205, 127, 50, 0.22);
  border: 1px solid #cd7f32;
  color: #ffd3a0;
}

.ct-tier-silver {
  background: rgba(189, 195, 199, 0.22);
  border: 1px solid #bdc3c7;
  color: #f5f7fa;
}

.ct-tier-gold {
  background: rgba(212,175,55,0.24);
  border: 1px solid #d4af37;
  color: #fff9d6;
}

/* Zeile 3: Zeitfenster, Countdown, Progress */
.ct-card-time {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ct-time-window {
  font-size: 13px;
  font-weight: 600;
  color: #f5c91a;
}

.ct-countdown-text {
  font-size: 11px;
  color: #f9e79f;
}

.ct-progress {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  margin-top: 3px;
}

.ct-progress-inner {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8b6f1d, #ffd700, #16c784);
  transition: width 0.3s ease-out;
}

/* Zeile 4: Stats */
.ct-card-stats {
  gap: 10px;
}

.ct-stat {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-stat-label {
  font-size: 11px;
  color: #ccc;
}

.ct-stat-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.ct-stat-amount {
  color: #16c784; /* wie byb-last-price */
}

.ct-stat-win {
  color: #f5d76e;
}

.ct-stat-note {
  font-size: 10px;
  color: #aaa;
}

/* Zeile 5: Button + Hinweise */
.ct-card-action {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.ct-join-btn {
  width: 100%;
  font-size: 14px;
}

.ct-join-btn.disabled,
.ct-join-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ct-join-hint {
  font-size: 10px;
  color: #aaa;
}

.ct-join-status {
  font-size: 11px;
}

/* Farben für Status-Text unten */
.ct-join-status.ok {
  color: #2ecc71;
}

.ct-join-status.error {
  color: #e74c3c;
}

/* Mobile: Card etwas kompakter */
@media (max-width: 600px) {
  .ct-card {
    padding: 10px 12px 9px;
  }

  .ct-symbol-main {
    font-size: 15px;
  }

  .ct-card-stats {
    flex-direction: row;
  }
}

/* ==== iOS Anti-Zoom Fix ==== */
input,
select,
textarea {
  font-size: 16px !important;
  -webkit-text-size-adjust: 100%;
}

/* ===== Teilnahme-Historie: Bybit-Style Filterzeile (hart überschrieben) ===== */

#panel-trading #ct-txFilterContainer .txFilterRow {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  background: transparent !important;
  flex-wrap: nowrap !important;
  overflow: hidden !important;
}

#panel-trading #ct-txFilterContainer .tx-filter-field {
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex: 0 1 auto !important;
}

/* Labels */
#panel-trading #ct-txFilterContainer label {
  flex: 0 0 auto !important;
  min-width: 0 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #f5d76e !important;
  white-space: nowrap !important;
}

/* Date-Inputs */
#panel-trading #ct-txFrom,
#panel-trading #ct-txTo {
  appearance: none !important;
  -webkit-appearance: none !important;

  flex: 0 1 132px !important;
  width: 132px !important;
  min-width: 0 !important;
  line-height: 1.1 !important;

  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-radius: 6px !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  height: 28px !important;
  padding: 0 7px !important;
}

/* Kalender-Icon */
#panel-trading #ct-txFrom::-webkit-calendar-picker-indicator,
#panel-trading #ct-txTo::-webkit-calendar-picker-indicator {
  filter: invert(1) !important;
  opacity: 0.7 !important;
}

/* Filtern-Button */
#panel-trading #ct-txApply.btn-secondary,
#panel-trading #ct-txApply {
  width: auto !important;
  min-width: 64px !important;
  height: 28px !important;
  padding: 0 9px !important;
  font-size: 10px !important;
  line-height: 1 !important;
  white-space: nowrap !important;

  border-radius: 8px !important;
  background: rgba(16,18,21,0.9) !important;
  border: 1px solid rgba(212,175,55,0.35) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  flex: 0 0 auto !important;
}

#panel-trading #ct-txApply.btn-secondary:hover,
#panel-trading #ct-txApply:hover {
  border-color: rgba(212,175,55,0.55) !important;
  background: rgba(24,27,31,0.95) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.55),
    0 0 10px rgba(212,175,55,0.18) !important;
  color: #f0e3ba !important;
  transform: translateY(-1px) !important;
  filter: none !important;
}

#panel-trading #ct-txApply.btn-secondary:active,
#panel-trading #ct-txApply:active,
#panel-trading #ct-txApply.btn-secondary:focus,
#panel-trading #ct-txApply.btn-secondary:focus-visible,
#panel-trading #ct-txApply:focus,
#panel-trading #ct-txApply:focus-visible {
  border-color: rgba(212,175,55,0.35) !important;
  background: rgba(16,18,21,0.9) !important;
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.65),
    0 2px 8px rgba(0,0,0,0.35) !important;
  color: #f0e3ba !important;
  transform: translateY(0) !important;
  filter: none !important;
}

/* Date-Felder flacher */
#panel-trading #ct-txFrom,
#panel-trading #ct-txTo{
  height: 28px !important;
  padding: 0 7px !important;
  font-size: 11px !important;
}

@media (max-width: 700px) {
  #panel-trading #ct-txFilterContainer .txFilterRow {
    gap: 5px !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
  }

  #panel-trading #ct-txFilterContainer label {
    font-size: 8px !important;
  }

  #panel-trading #ct-txFilterContainer .tx-filter-field {
    gap: 3px !important;
  }

  #panel-trading #ct-txFrom,
  #panel-trading #ct-txTo {
    flex-basis: 108px !important;
    width: 108px !important;
    min-width: 108px !important;
    height: 26px !important;
    font-size: 10px !important;
    padding: 0 5px !important;
  }

  #panel-trading #ct-txApply.btn-secondary,
  #panel-trading #ct-txApply {
    min-width: 58px !important;
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 9px !important;
  }
}

/* ================== TEAM CENTER / BUSINESS PANEL ================== */
/* =======================================
   BUSINESS – EMPIRE TAB-BAR STYLE
   ======================================= */








/* ================== DASHBOARD ================== */



/* ===================================== */
/*    LOGIN / REGISTRIEREN (index.html)  */
/* ===================================== */

/* hidden-Helfer ist zentral weiter oben definiert */



/* Active-Tab Style ist zentral weiter oben definiert */





/* ========================= */
/* Allbusiness: einheitliche Gold-Typografie */
body.copytrade-page.business-page .gold-title,
body.copytrade-page.business-page .ct-card-title,
body.copytrade-page.business-page .gold-link,
body.copytrade-page.business-page .biz-stat-label,
body.copytrade-page.business-page .chart-title-empire,
body.copytrade-page.business-page .ct-time-window,
body.copytrade-page.business-page .ct-countdown-text {
  font-family: Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
}

body.copytrade-page.business-page #biz-memberTable thead th {
  color: #f5d76e !important;
  -webkit-text-fill-color: #f5d76e !important;
  font-family: Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  text-transform: none !important;
  text-align: left !important;
  background: none !important;
  background-size: auto !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  animation: none !important;
}

/* Desktop Executive Dashboard */
@media (min-width: 1024px) {
  body.dashboard-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') center center / cover fixed no-repeat;
    color: #f5f7fb;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
  }

  body.dashboard-page::before,
  body.dashboard-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
  }

  body.dashboard-page::before {
    z-index: 0;
    background: url('../images/empire-krypto-capital-panel.png') center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.dashboard-page::after {
    z-index: 0;
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
      linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  }

  body.dashboard-page #appShell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 22px 0 118px;
  }

  body.dashboard-page .ticker-wrap {
    width: min(calc(100% - 64px), 1320px);
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.66);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035), 0 18px 42px rgba(0,0,0,0.24);
    overflow: hidden;
  }

  body.dashboard-page .empire-brand {
    width: min(calc(100% - 64px), 1320px);
    margin: 28px auto 22px;
    justify-content: flex-start;
  }

  body.dashboard-page .empire-brand__frame {
    min-width: 0;
    padding: 18px 34px 18px 18px;
  }

  body.dashboard-page .empire-brand__the {
    left: 32px;
    font-size: 12px;
  }

  body.dashboard-page .empire-brand__empire {
    font-size: clamp(72px, 8vw, 116px);
    letter-spacing: 0.09em;
  }

  body.dashboard-page .empire-brand__page {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: -4px;
    margin-left: 6px;
    margin-right: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.dashboard-page .empire-brand__page::before,
  body.dashboard-page .empire-brand__page::after {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  body.dashboard-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(240, 207, 102, 0.96);
    text-shadow: 0 0 22px rgba(240, 207, 102, 0.18);
  }

  body.dashboard-page .empire-brand__page::after {
    content: "Dashboard";
    color: rgba(226, 234, 245, 0.84);
  }

  body.dashboard-page .section.chart-only.dash-card-wrap {
    width: min(calc(100% - 64px), 1320px);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
  }

  body.dashboard-page .dash-card {
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    overflow: hidden;
  }

  body.dashboard-page .dash-card::before {
    border-color: rgba(240, 207, 102, 0.12);
  }

  body.dashboard-page .dash-card-title,
  body.dashboard-page .dash-label,
  body.dashboard-page .dash-label-small,
  body.dashboard-page .dash-perf-label,
  body.dashboard-page .trade-stats-label,
  body.dashboard-page .dash-status-gold-label {
    letter-spacing: 0.12em;
  }

  body.dashboard-page .dash-balance-card {
    grid-column: 1 / 6;
    grid-row: 1;
    min-height: 190px;
    padding: 24px;
  }

  body.dashboard-page .dash-balance-value {
    margin-top: 18px;
    font-size: clamp(42px, 4vw, 64px);
    line-height: 0.95;
    letter-spacing: 0.01em;
  }

  body.dashboard-page .dash-balance-note {
    margin-top: 10px;
    font-size: 13px;
  }

  body.dashboard-page .dash-perf-wrapper {
    grid-column: 1 / 5;
    grid-row: 2;
    min-height: 190px;
    padding: 20px;
  }

  body.dashboard-page .dash-perf-grid {
    margin-top: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body.dashboard-page .dash-perf-card {
    min-height: 72px;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055);
  }

  body.dashboard-page .dash-user-card {
    grid-column: 10 / 13;
    grid-row: 1;
    min-height: 190px;
    padding: 20px;
  }

  body.dashboard-page .dash-user-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  body.dashboard-page .dash-kyc-col,
  body.dashboard-page .dash-kyc-label,
  body.dashboard-page .dash-kyc-status {
    justify-items: start;
    text-align: left;
  }

  body.dashboard-page #statusCard {
    grid-column: 6 / 10;
    grid-row: 1;
    padding: 20px;
  }

  body.dashboard-page .dash-tradestats-card {
    grid-column: 5 / 9;
    grid-row: 2;
    padding: 20px;
  }

  body.dashboard-page .trade-stats-body {
    gap: 18px;
  }

  body.dashboard-page .trade-stats-chart-shell {
    width: 150px;
    height: 150px;
  }

  body.dashboard-page .trade-stats-chart-shell canvas {
    width: 150px !important;
    height: 150px !important;
  }

  body.dashboard-page .dash-settings-card {
    grid-column: 9 / 13;
    grid-row: 2 / span 2;
    padding: 20px;
  }

  body.dashboard-page .dash-performance-calendar-card {
    grid-column: 1 / 9;
    grid-row: 3;
    padding: 20px;
  }

  body.dashboard-page .perf-calendar-cell {
    border-radius: 8px;
  }

  body.dashboard-page .dash-promo-card,
  body.dashboard-page .dash-login-reward-card {
    grid-column: 9 / 13;
  }

  body.dashboard-page .footer-nav {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(calc(100% - 64px), 720px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.dashboard-page .footer-nav button {
    width: auto;
    min-width: 128px;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: none;
    animation: none;
    color: rgba(219,227,238,0.86) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.dashboard-page .footer-nav button.active,
  body.dashboard-page .footer-nav button:hover {
    color: rgba(244,232,198,0.98) !important;
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    transform: translateY(-1px);
  }

  body.dashboard-page .spacer {
    height: 0 !important;
  }
}

@media (min-width: 1024px) {
  body.dashboard-page .dash-card-header {
    min-height: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.055);
  }

  body.dashboard-page .dash-card-title {
    color: rgba(244,232,198,0.94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.dashboard-page .dash-label,
  body.dashboard-page .dash-label-small,
  body.dashboard-page .dash-perf-label,
  body.dashboard-page .trade-stats-label {
    color: rgba(185,196,209,0.74);
    font-size: 10px;
    font-weight: 800;
  }

  body.dashboard-page .dash-value,
  body.dashboard-page .dash-status-rank,
  body.dashboard-page .dash-status-next-label {
    color: rgba(248,251,255,0.96);
  }

  body.dashboard-page .dash-balance-card {
    background:
      radial-gradient(circle at 92% 8%, rgba(240,207,102,0.16), transparent 28%),
      linear-gradient(135deg, rgba(18,23,31,0.62), rgba(7,10,15,0.62) 58%, rgba(5,7,10,0.68));
  }

  body.dashboard-page .dash-balance-card .dash-card-header {
    border-bottom-color: rgba(240,207,102,0.12);
  }

  body.dashboard-page .dash-unit {
    color: rgba(240,207,102,0.76);
    font-size: 0.34em;
    letter-spacing: 0.14em;
    vertical-align: baseline;
  }

  body.dashboard-page .dash-perf-amount {
    color: rgba(248,251,255,0.95);
    font-size: 18px;
    font-weight: 800;
  }

  body.dashboard-page .dash-perf-pct {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 800;
  }

  body.dashboard-page .dash-user-card .dash-value {
    max-width: 100%;
    color: rgba(246,248,252,0.94);
    font-size: 13px;
    font-weight: 700;
    overflow-wrap: anywhere;
  }

  body.dashboard-page .dash-kyc-status {
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.07);
  }

  body.dashboard-page .dash-status-quests {
    gap: 8px;
  }

  body.dashboard-page .status-quest {
    padding: 9px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.055);
  }

  body.dashboard-page .trade-stats-row {
    min-height: 24px;
    padding: 3px 0;
  }

  body.dashboard-page .trade-stats-value {
    font-size: 14px;
    font-weight: 800;
  }

  body.dashboard-page .perf-calendar-weekdays,
  body.dashboard-page .perf-calendar-grid {
    gap: 7px;
  }

  body.dashboard-page .perf-calendar-weekdays {
    margin-top: 14px;
    color: rgba(185,196,209,0.62);
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  body.dashboard-page .perf-calendar-cell {
    border-color: rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.dashboard-page .perf-calendar-detail {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.035);
    color: rgba(222,230,240,0.86);
  }

  body.dashboard-page .dash-settings-stack {
    gap: 9px;
    margin-top: 14px;
  }

  body.dashboard-page .dash-settings-btn,
  body.dashboard-page .dash-settings-subbtn {
    min-height: 39px;
    border-radius: 8px;
    border-color: rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    color: rgba(232,238,247,0.9) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.dashboard-page .dash-settings-btn:hover,
  body.dashboard-page .dash-settings-subbtn:hover:not(:disabled) {
    border-color: rgba(240,207,102,0.26);
    background: rgba(212,175,55,0.07);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.045), 0 10px 24px rgba(0,0,0,0.2);
  }

  body.dashboard-page .dash-settings-btn-danger {
    border-color: rgba(231,76,60,0.32);
    color: rgba(255,230,226,0.94) !important;
    background: rgba(231,76,60,0.06);
  }
}

@media (max-width: 1023px) {
  body.banking-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    overflow-x: hidden;
  }

  body.banking-page::before,
  body.banking-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.banking-page::before {
    background: url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.banking-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.56) 0%, rgba(3, 5, 8, 0.35) 38%, rgba(3, 5, 8, 0.17) 64%, rgba(3, 5, 8, 0.49) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.13) 62%, rgba(5, 8, 12, 0.35)),
      linear-gradient(180deg, transparent 59%, rgba(3, 5, 8, 0.5) 100%);
  }

  body.banking-page .empire-brand,
  body.banking-page .withdraw-container {
    position: relative;
    z-index: 1;
  }

  body.banking-page .deposit-box,
  body.banking-page .card,
  body.banking-page .transfer-box,
  body.banking-page section.rules,
  body.banking-page .history-card,
  body.banking-page .dash-card {
    background: rgba(0, 0, 0, 0.42) !important;
  }

  body.banking-page .bk-summary-item,
  body.banking-page .bk-status,
  body.banking-page .bk-push,
  body.banking-page .fee-box,
  body.banking-page .bk-details,
  body.banking-page .balances .balance-card,
  body.banking-page .withdraw-address-block,
  body.banking-page .withdraw-action-block,
  body.banking-page .transfer-rule-status,
  body.banking-page .accordion,
  body.banking-page #panel-deposit .addr-code,
  body.banking-page #w-amount,
  body.banking-page #t-amount {
    background: rgba(0, 0, 0, 0.18) !important;
  }
}

@media (max-width: 600px) {
  body.banking-page .empire-brand__page {
    width: calc(100% - 36px);
    display: flex;
    justify-content: space-between;
    justify-self: center;
    margin-top: -4px;
    margin-right: 0;
    padding-top: 8px;
    padding-left: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.banking-page .empire-brand__page::before,
  body.banking-page .empire-brand__page::after {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.banking-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(255, 232, 156, 0.9);
  }

  body.banking-page .empire-brand__page::after {
    content: "Banking";
    color: rgba(226, 234, 245, 0.82);
  }
}

/* Desktop Executive Banking */
@media (min-width: 1024px) {
  body.banking-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') center center / cover fixed no-repeat;
    color: #f5f7fb;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
  }

  body.banking-page::before,
  body.banking-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.banking-page::before {
    background: url('../images/empire-krypto-capital-panel.png') center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.banking-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
      linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  }

  body.banking-page .empire-brand,
  body.banking-page .withdraw-container {
    position: relative;
    z-index: 1;
  }

  body.banking-page .empire-brand {
    width: min(calc(100% - 64px), 1320px);
    margin: 28px auto 22px;
    justify-content: flex-start;
  }

  body.banking-page .empire-brand__frame {
    min-width: 0;
    padding: 18px 34px 18px 18px;
  }

  body.banking-page .empire-brand__the {
    left: 32px;
    font-size: 12px;
  }

  body.banking-page .empire-brand__empire {
    font-size: clamp(72px, 8vw, 116px);
    letter-spacing: 0.09em;
  }

  body.banking-page .empire-brand__page {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: -4px;
    margin-left: 6px;
    margin-right: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.banking-page .empire-brand__page::before,
  body.banking-page .empire-brand__page::after {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  body.banking-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(240, 207, 102, 0.96);
    text-shadow: 0 0 22px rgba(240, 207, 102, 0.18);
  }

  body.banking-page .empire-brand__page::after {
    content: "Banking";
    color: rgba(226, 234, 245, 0.84);
  }

  body.banking-page .withdraw-container {
    width: min(calc(100% - 64px), 1320px);
    max-width: none;
    margin: 0 auto;
    padding: 0 0 118px;
  }

  body.banking-page .banking-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 16px;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }

  body.banking-page .banking-toolbar__copy {
    display: grid;
    gap: 5px;
    min-width: 260px;
  }

  body.banking-page .banking-toolbar__title {
    color: rgba(244,232,198,0.96);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.banking-page .banking-toolbar__subline {
    color: rgba(185,196,209,0.72);
    font-size: 12px;
    line-height: 1.35;
  }

  body.banking-page .tabs {
    width: min(58vw, 640px);
    margin: 0;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.74);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.banking-page .tab-btn {
    flex: 1 1 0;
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    color: rgba(219,227,238,0.86);
    background: rgba(255,255,255,0.035);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  body.banking-page .tab-btn.active,
  body.banking-page .tab-btn:hover {
    color: rgba(244,232,198,0.98);
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    box-shadow: none;
    transform: translateY(-1px);
  }

  body.banking-page .tab-panel.active {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
    margin-top: 0;
  }

  body.banking-page .dash-card,
  body.banking-page .card,
  body.banking-page .transfer-box,
  body.banking-page .history-card {
    margin: 0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    overflow: hidden;
  }

  body.banking-page .dash-card::before,
  body.banking-page .card::before,
  body.banking-page .transfer-box::before,
  body.banking-page .history-card::before {
    border-color: rgba(240, 207, 102, 0.12);
  }

  body.banking-page .dash-card-header,
  body.banking-page .withdraw-card-header,
  body.banking-page .withdraw-history-header,
  body.banking-page .transfer-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 28px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.055);
  }

  body.banking-page .dash-card-title,
  body.banking-page .withdraw-card-title,
  body.banking-page .withdraw-history-title,
  body.banking-page .transfer-history-title,
  body.banking-page .gold-link {
    color: rgba(244,232,198,0.94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  body.banking-page #panel-deposit > .bk-card:nth-of-type(1) {
    grid-column: 1 / 5;
    min-height: 220px;
  }

  body.banking-page #panel-deposit > .bk-card:nth-of-type(2) {
    grid-column: 5 / 13;
    min-height: 220px;
  }

  body.banking-page #panel-deposit > .bk-deposit-history-card {
    grid-column: 1 / 9;
  }

  body.banking-page #panel-deposit > .bk-card:nth-of-type(4),
  body.banking-page #panel-deposit > .bk-card:nth-of-type(5) {
    grid-column: 9 / 13;
  }

  body.banking-page #panel-deposit .deposit-box {
    grid-template-columns: 230px 1fr;
    gap: 20px;
    margin: 0;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.075);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.018));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
  }

  body.banking-page .bk-summary-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.banking-page .bk-summary-item,
  body.banking-page .bk-status,
  body.banking-page .bk-push,
  body.banking-page .fee-box,
  body.banking-page .bk-details,
  body.banking-page .balance-card,
  body.banking-page .withdraw-address-block,
  body.banking-page .withdraw-action-block {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.075);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
  }

  body.banking-page .bk-meta-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  body.banking-page .deposit-toggle,
  body.banking-page .withdraw-toggle {
    width: fit-content;
    margin: 0;
    padding: 3px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.035);
    box-shadow: none;
  }

  body.banking-page .withdraw-card-header .withdraw-toggle {
    margin-left: auto;
  }

  body.banking-page .dash-card-header .deposit-toggle {
    margin-left: auto;
  }

  body.banking-page .deposit-toggle .asset-btn,
  body.banking-page .withdraw-toggle .asset-btn {
    border: 1px solid transparent;
    color: rgba(219,227,238,0.86);
  }

  body.banking-page .deposit-toggle .asset-btn.active,
  body.banking-page .withdraw-toggle .asset-btn.active {
    color: rgba(244,232,198,0.98);
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    box-shadow: none;
  }

  body.banking-page #panel-withdraw > .withdraw-card {
    grid-column: 1 / 7;
    grid-row: 1;
    min-height: 430px;
  }

  body.banking-page #panel-withdraw > .history-card {
    grid-column: 7 / 13;
    grid-row: 1;
    margin-top: 0;
    min-height: 430px;
  }

  body.banking-page .withdraw-address-block,
  body.banking-page .withdraw-action-block {
    padding: 14px;
    border-bottom: 0;
  }

  body.banking-page .withdraw-action-block {
    margin-top: 12px;
  }

  body.banking-page .balances {
    gap: 12px;
    margin-bottom: 16px;
  }

  body.banking-page .balances .balance-card {
    padding: 16px;
    border-color: rgba(255,255,255,0.075);
    background:
      linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02)),
      rgba(7, 10, 14, 0.2);
  }

  body.banking-page .balances .balance-card .amt {
    margin-top: 10px;
    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 0.98;
  }

  body.banking-page .balances .balance-card .dash-unit {
    font-size: 0.36em;
    letter-spacing: 0.12em;
  }

  body.banking-page #panel-transfer > .transfer-card {
    grid-column: 1 / 7;
    min-height: 420px;
  }

  body.banking-page #panel-transfer > .transfer-history-card {
    grid-column: 7 / 13;
    margin-top: 0;
    min-height: 420px;
  }

  body.banking-page .history {
    overflow-x: auto;
  }

  body.banking-page .history table,
  body.banking-page .w-history-table {
    border-collapse: collapse;
  }

  body.banking-page .history th,
  body.banking-page .history td,
  body.banking-page .w-history-table th,
  body.banking-page .w-history-table td {
    border-bottom-color: rgba(255,255,255,0.06);
  }

  body.banking-page #w-amount,
  body.banking-page #t-amount,
  body.banking-page #panel-deposit .addr-code {
    border-radius: 8px;
    border-color: rgba(255,255,255,0.1);
    background: rgba(3, 5, 8, 0.42);
  }

  body.banking-page .footer-nav {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(calc(100% - 64px), 720px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.banking-page .footer-nav button {
    width: auto;
    min-width: 128px;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: none;
    animation: none;
    color: rgba(219,227,238,0.86) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.banking-page .footer-nav button.active,
  body.banking-page .footer-nav button:hover {
    color: rgba(244,232,198,0.98) !important;
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    transform: translateY(-1px);
  }

  body.banking-page .spacer {
    height: 0 !important;
  }
}

.business-toolbar__copy {
  display: none;
}

html:has(body.copytrade-page.business-page) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 1023px) {
  body.copytrade-page.business-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    overflow-x: hidden;
  }

  body.copytrade-page.business-page::before,
  body.copytrade-page.business-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.copytrade-page.business-page::before {
    background: url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.copytrade-page.business-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.56) 0%, rgba(3, 5, 8, 0.35) 38%, rgba(3, 5, 8, 0.17) 64%, rgba(3, 5, 8, 0.49) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.13) 62%, rgba(5, 8, 12, 0.35)),
      linear-gradient(180deg, transparent 59%, rgba(3, 5, 8, 0.5) 100%);
  }

  body.copytrade-page.business-page .empire-brand,
  body.copytrade-page.business-page .deposit-container {
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
  }

  body.copytrade-page.business-page .ct-card,
  body.copytrade-page.business-page .biz-card,
  body.copytrade-page.business-page .biz-stat-card,
  body.copytrade-page.business-page .card {
    background: rgba(0, 0, 0, 0.42) !important;
    border-radius: 14px;
  }

  body.copytrade-page.business-page .ct-stat,
  body.copytrade-page.business-page .ct-card-action,
  body.copytrade-page.business-page .ct-rules-accordion,
  body.copytrade-page.business-page .biz-teamcareer-card .dash-status-gold-item,
  body.copytrade-page.business-page .biz-qr-wrap,
  body.copytrade-page.business-page #biz-searchInput,
  body.copytrade-page.business-page .copy-field input#biz-refLink,
  body.copytrade-page.business-page #ct-txFilterContainer,
  body.copytrade-page.business-page .byb-chart,
  body.copytrade-page.business-page .byb-header,
  body.copytrade-page.business-page .byb-toolbar {
    background: rgba(0, 0, 0, 0.18) !important;
  }

  body.copytrade-page.business-page .biz-tabs {
    box-sizing: border-box;
    width: 100%;
    margin: 0.8rem 0 1.1rem;
    gap: 4px;
    padding: 4px;
  }

  body.copytrade-page.business-page .biz-tabs .tab-btn {
    min-width: 0;
    min-height: auto;
    padding: 7px 6px;
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
}

@media (max-width: 600px) {
  body.copytrade-page.business-page .empire-brand__page {
    width: calc(100% - 36px);
    display: flex;
    justify-content: space-between;
    justify-self: center;
    margin-top: -4px;
    margin-right: 0;
    padding-top: 8px;
    padding-left: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.copytrade-page.business-page .empire-brand__page::before,
  body.copytrade-page.business-page .empire-brand__page::after {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.copytrade-page.business-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(255, 232, 156, 0.9);
  }

  body.copytrade-page.business-page .empire-brand__page::after {
    content: "Business";
    color: rgba(226, 234, 245, 0.82);
  }
}

/* Desktop Executive Business */
@media (min-width: 1024px) {
  body.copytrade-page.business-page {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') center center / cover fixed no-repeat;
    color: #f5f7fb;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
  }

  body.copytrade-page.business-page::before,
  body.copytrade-page.business-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.copytrade-page.business-page::before {
    background: url('../images/empire-krypto-capital-panel.png') center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.copytrade-page.business-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
      linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  }

  body.copytrade-page.business-page .empire-brand,
  body.copytrade-page.business-page .deposit-container {
    position: relative;
    z-index: 1;
  }

  body.copytrade-page.business-page .empire-brand {
    width: min(calc(100% - 64px), 1320px);
    margin: 28px auto 22px;
    justify-content: flex-start;
  }

  body.copytrade-page.business-page .empire-brand__frame {
    min-width: 0;
    padding: 18px 34px 18px 18px;
  }

  body.copytrade-page.business-page .empire-brand__the {
    left: 32px;
    font-size: 12px;
  }

  body.copytrade-page.business-page .empire-brand__empire {
    font-size: clamp(72px, 8vw, 116px);
    letter-spacing: 0.09em;
  }

  body.copytrade-page.business-page .empire-brand__page {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: -4px;
    margin-left: 6px;
    margin-right: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.copytrade-page.business-page .empire-brand__page::before,
  body.copytrade-page.business-page .empire-brand__page::after {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  body.copytrade-page.business-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(240, 207, 102, 0.96);
    text-shadow: 0 0 22px rgba(240, 207, 102, 0.18);
  }

  body.copytrade-page.business-page .empire-brand__page::after {
    content: "Business";
    color: rgba(226, 234, 245, 0.84);
  }

  body.copytrade-page.business-page .deposit-container {
    width: min(calc(100% - 64px), 1320px);
    max-width: none;
    margin: 0 auto;
    padding: 0 0 118px;
  }

  body.copytrade-page.business-page .business-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 16px;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }

  body.copytrade-page.business-page .business-toolbar__copy {
    display: grid;
    gap: 5px;
    min-width: 260px;
  }

  body.copytrade-page.business-page .business-toolbar__title {
    color: rgba(244,232,198,0.96);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.copytrade-page.business-page .business-toolbar__subline {
    color: rgba(185,196,209,0.72);
    font-size: 12px;
    line-height: 1.35;
  }

  body.copytrade-page.business-page .biz-tabs {
    width: min(46vw, 520px);
    margin: 0;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.74);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.copytrade-page.business-page .biz-tabs .tab-btn {
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    color: rgba(219,227,238,0.86);
    background: rgba(255,255,255,0.035);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
  }

  body.copytrade-page.business-page .biz-tabs .tab-btn.active,
  body.copytrade-page.business-page .biz-tabs .tab-btn:hover {
    color: rgba(244,232,198,0.98);
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    box-shadow: none;
    transform: translateY(-1px);
  }

  body.copytrade-page.business-page .tab-panel.active {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 16px;
    margin-top: 0;
  }

  body.copytrade-page.business-page .ct-card,
  body.copytrade-page.business-page .biz-card,
  body.copytrade-page.business-page .biz-stat-card {
    margin: 0;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }

  body.copytrade-page.business-page .ct-card-header,
  body.copytrade-page.business-page .biz-card-header {
    min-height: 28px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.055);
  }

  body.copytrade-page.business-page .ct-panel-title,
  body.copytrade-page.business-page .dash-card-title,
  body.copytrade-page.business-page .gold-link,
  body.copytrade-page.business-page .biz-stat-label {
    color: rgba(244,232,198,0.94) !important;
    font-size: 12px;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(1) {
    grid-column: 1 / 6;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(2) {
    grid-column: 6 / 13;
  }

  body.copytrade-page.business-page #panel-trading > #ct-reportSection {
    grid-column: 1 / 6;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:last-of-type {
    grid-column: 1 / 13;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(1) {
    grid-column: 1 / 7;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(2) {
    grid-column: 7 / 13;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(3) {
    grid-column: 1 / 6;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(4) {
    grid-column: 6 / 13;
  }

  body.copytrade-page.business-page .biz-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
  }

  body.copytrade-page.business-page .ct-stat,
  body.copytrade-page.business-page .ct-card-action,
  body.copytrade-page.business-page .ct-rules-accordion,
  body.copytrade-page.business-page .biz-teamcareer-card .dash-status-gold-item,
  body.copytrade-page.business-page .biz-qr-wrap,
  body.copytrade-page.business-page #biz-searchInput,
  body.copytrade-page.business-page .copy-field input#biz-refLink {
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.075);
    background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.035);
  }

  body.copytrade-page.business-page .byb-chart {
    border-radius: 8px;
    background: rgba(3, 5, 8, 0.42);
  }

  body.copytrade-page.business-page .footer-nav {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(calc(100% - 64px), 720px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.copytrade-page.business-page .footer-nav button {
    width: auto;
    min-width: 128px;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: none;
    animation: none;
    color: rgba(219,227,238,0.86) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.copytrade-page.business-page .footer-nav button.active,
  body.copytrade-page.business-page .footer-nav button:hover {
    color: rgba(244,232,198,0.98) !important;
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    transform: translateY(-1px);
  }

  body.copytrade-page.business-page .spacer {
    height: 0 !important;
  }
}

@media (min-width: 1024px) {
  body.copytrade-page.business-page .section.chart-only.ct-card-wrap,
  body.copytrade-page.business-page .section.chart-only.biz-card-wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
  }

  body.copytrade-page.business-page .tab-panel.active {
    grid-auto-flow: row;
    align-items: start;
    gap: 18px;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(1) {
    grid-column: 1 / 6;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(2) {
    grid-column: 6 / 13;
  }

  body.copytrade-page.business-page #panel-trading > #ct-reportSection:not([hidden]) {
    grid-column: 1 / 6;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:last-of-type {
    grid-column: 1 / 13;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(1) {
    grid-column: 1 / 8;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(2) {
    grid-column: 8 / 13;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(3) {
    grid-column: 1 / 5;
  }

  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(4) {
    grid-column: 5 / 13;
  }

  body.copytrade-page.business-page .ct-card,
  body.copytrade-page.business-page .biz-card,
  body.copytrade-page.business-page .biz-stat-card {
    width: 100%;
    min-width: 0;
  }

  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(1) .ct-card,
  body.copytrade-page.business-page #panel-trading > .ct-card-wrap:nth-of-type(2) .ct-card,
  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(1) .biz-card,
  body.copytrade-page.business-page #panel-business > .biz-card-wrap:nth-of-type(2) .biz-stats-grid {
    height: 100%;
  }

  body.copytrade-page.business-page .biz-stats-grid {
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    height: 100%;
    min-height: 356px;
    padding: 1px;
    border: 1px solid rgba(255,255,255,0.075);
    border-radius: 8px;
    background:
      linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255,255,255,0.08) 50%, transparent calc(50% + 0.5px)),
      linear-gradient(180deg, transparent calc(50% - 0.5px), rgba(255,255,255,0.08) 50%, transparent calc(50% + 0.5px)),
      rgba(7, 10, 14, 0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.copytrade-page.business-page .biz-stat-card {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 0;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 16px 14px;
    overflow: hidden;
    border: 0;
    border-radius: 7px;
    background: rgba(7, 10, 14, 0.3) !important;
    box-shadow: none;
    text-align: center;
  }

  body.copytrade-page.business-page .biz-stat-label {
    max-width: 100%;
    min-height: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 10px !important;
    line-height: 1.35;
    letter-spacing: 0.1em !important;
    text-align: center;
    overflow-wrap: anywhere;
  }

  body.copytrade-page.business-page .biz-stat-value {
    font-size: 25px;
    line-height: 1.05;
  }

  body.copytrade-page.business-page .biz-stat-note {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.32;
    color: rgba(205, 215, 226, 0.74);
    overflow-wrap: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 29px;
  }

  body.copytrade-page.business-page .biz-card-members .biz-table-wrap,
  body.copytrade-page.business-page .ct-history-card {
    overflow: hidden;
  }

  body.copytrade-page.business-page .biz-card-members .biz-table-wrap,
  body.copytrade-page.business-page .ct-history-card .tx-table {
    min-width: 0;
  }
}

/* Empire Krypto Society: aligned with Dashboard, Banking and Business */
.society-toolbar__copy {
  display: none;
}

body.society-page .society-subtabs.is-hidden {
  display: none !important;
}

@media (max-width: 1023px) {
  body.society-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    background-image: none;
    overflow-x: hidden;
  }

  body.society-page::before,
  body.society-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.society-page::before {
    background: url('../images/empire-krypto-capital-panel.png') 54% 34px / 255% auto no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.society-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.56) 0%, rgba(3, 5, 8, 0.35) 38%, rgba(3, 5, 8, 0.17) 64%, rgba(3, 5, 8, 0.49) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.05), rgba(5, 8, 12, 0.13) 62%, rgba(5, 8, 12, 0.35)),
      linear-gradient(180deg, transparent 59%, rgba(3, 5, 8, 0.5) 100%);
  }

  body.society-page .empire-brand,
  body.society-page .deposit-container {
    position: relative;
    z-index: 1;
  }

  body.society-page .empire-brand__page {
    width: calc(100% - 36px);
    display: flex;
    justify-content: space-between;
    justify-self: center;
    margin-top: -4px;
    margin-right: 0;
    padding-top: 8px;
    padding-left: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.society-page .empire-brand__page::before,
  body.society-page .empire-brand__page::after {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.society-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(255, 232, 156, 0.9);
  }

  body.society-page .empire-brand__page::after {
    content: "Society";
    color: rgba(226, 234, 245, 0.82);
  }

  body.society-page .society-tabs,
  body.society-page .society-subtabs,
  body.society-page .loyalty-shop-tabs {
    box-sizing: border-box;
    width: 100%;
    margin: 0.8rem 0 1.1rem;
    gap: 4px;
    padding: 4px;
  }

  body.society-page .society-subtabs.is-hidden {
    display: none !important;
  }

  body.society-page #panel-points.active {
    display: grid;
    gap: 14px;
  }

  body.society-page .society-points-column {
    display: contents;
  }

  body.society-page .loyalty-points-card { order: 1; }
  body.society-page .loyalty-redeem-card { order: 2; }
  body.society-page .loyalty-rules-card { order: 3; }
  body.society-page .loyalty-status-card { order: 4; }

  body.society-page .society-tabs .tab-btn,
  body.society-page .society-subtabs .tab-btn {
    min-width: 0;
    min-height: auto;
    padding: 7px 6px;
    font-size: 11px;
    line-height: normal;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  body.society-page .card,
  body.society-page .society-award,
  body.society-page .society-ranking-row,
  body.society-page .loyalty-redeem-row,
  body.society-page .loyalty-rule-toggle,
  body.society-page .loyalty-rule-item,
  body.society-page .loyalty-breakdown-row {
    background: rgba(0, 0, 0, 0.42) !important;
    border-color: rgba(255,255,255,0.09);
  }

  body.society-page .society-award-icon,
  body.society-page .loyalty-shop-tabs,
  body.society-page .loyalty-redeem-row input {
    background: rgba(0, 0, 0, 0.18) !important;
  }

  body.society-page .loyalty-redeem-row,
  body.society-page .loyalty-redeem-row:has(input),
  body.society-page .loyalty-redeem-row:not(:has(input)) {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  body.society-page {
    min-height: 100vh;
    background: #05070b url('../images/empire-krypto-capital-panel.png') center center / cover fixed no-repeat;
    color: #f5f7fb;
    font-family: Inter, Arial, sans-serif;
    overflow-x: hidden;
  }

  body.society-page::before,
  body.society-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
  }

  body.society-page::before {
    background: url('../images/empire-krypto-capital-panel.png') center center / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.society-page::after {
    background:
      radial-gradient(circle at 22% 16%, rgba(240, 207, 102, 0.16), transparent 28%),
      linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.025)),
      linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
      linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  }

  body.society-page .empire-brand,
  body.society-page .deposit-container {
    position: relative;
    z-index: 1;
  }

  body.society-page .empire-brand {
    width: min(calc(100% - 64px), 1320px);
    margin: 28px auto 22px;
    justify-content: flex-start;
  }

  body.society-page .empire-brand__frame {
    min-width: 0;
    padding: 18px 34px 18px 18px;
  }

  body.society-page .empire-brand__the {
    left: 32px;
    font-size: 12px;
  }

  body.society-page .empire-brand__empire {
    font-size: clamp(72px, 8vw, 116px);
    letter-spacing: 0.09em;
  }

  body.society-page .empire-brand__page {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-top: -4px;
    margin-left: 6px;
    margin-right: 0;
    font-size: 0;
    letter-spacing: 0;
  }

  body.society-page .empire-brand__page::before,
  body.society-page .empire-brand__page::after {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.24em;
    text-transform: uppercase;
  }

  body.society-page .empire-brand__page::before {
    content: "Krypto";
    color: rgba(240, 207, 102, 0.96);
    text-shadow: 0 0 22px rgba(240, 207, 102, 0.18);
  }

  body.society-page .empire-brand__page::after {
    content: "Society";
    color: rgba(226, 234, 245, 0.84);
  }

  body.society-page .deposit-container {
    width: min(calc(100% - 64px), 1320px);
    max-width: none;
    margin: 0 auto;
    padding: 0 0 118px;
  }

  body.society-page .society-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 16px;
    padding: 14px 14px 14px 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }

  body.society-page .society-toolbar__copy {
    display: grid;
    gap: 5px;
    min-width: 260px;
  }

  body.society-page .society-toolbar__title {
    color: rgba(244,232,198,0.96);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  body.society-page .society-toolbar__subline {
    color: rgba(185,196,209,0.72);
    font-size: 12px;
    line-height: 1.35;
  }

  body.society-page .society-tabs {
    width: min(30vw, 340px);
    margin: 0;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.74);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.society-page .society-tabs .tab-btn,
  body.society-page .society-subtabs .tab-btn,
  body.society-page .loyalty-shop-tab {
    flex: 1 1 0;
    min-height: 36px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px;
    color: rgba(219,227,238,0.86);
    background: rgba(255,255,255,0.035);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.society-page .society-tabs .tab-btn.active,
  body.society-page .society-tabs .tab-btn:hover,
  body.society-page .society-subtabs .tab-btn.active,
  body.society-page .society-subtabs .tab-btn:hover,
  body.society-page .loyalty-shop-tab.active,
  body.society-page .loyalty-shop-tab:hover {
    color: rgba(244,232,198,0.98);
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    box-shadow: none;
    transform: translateY(-1px);
  }

  body.society-page .society-subtabs,
  body.society-page .loyalty-shop-tabs {
    width: 100%;
    margin: 0 0 16px;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.62);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.society-page .society-toolbar__tabs {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
  }

  body.society-page .deposit-container > .society-subtabs {
    width: min(34vw, 390px);
    margin: -10px 0 12px auto;
    padding: 6px;
    background: rgba(7, 10, 14, 0.54);
    border-color: rgba(255,255,255,0.065);
    box-shadow: 0 14px 42px rgba(0,0,0,0.24), inset 0 1px 0 rgba(255,255,255,0.03);
  }

  body.society-page .deposit-container > .society-subtabs .tab-btn {
    min-height: 31px;
    padding: 0 14px;
    font-size: 10px;
    letter-spacing: 0.11em;
  }

  body.society-page .society-subpanel.active,
  body.society-page #panel-points.active {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
  }

  body.society-page #hall-panel-awards .society-feature-card {
    grid-column: 1 / 5;
  }

  body.society-page #hall-panel-awards .society-awards-card {
    grid-column: 5 / 13;
  }

  body.society-page #hall-panel-top10 .society-ranking-card {
    grid-column: span 6;
    margin-top: 0 !important;
    align-self: start;
  }

  body.society-page .loyalty-points-card {
    grid-column: auto;
    grid-row: auto;
  }

  body.society-page .loyalty-status-card {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  body.society-page .loyalty-redeem-card {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  body.society-page .loyalty-rules-card {
    grid-column: auto;
    grid-row: auto;
    margin-top: 0;
  }

  body.society-page .society-points-column {
    display: grid;
    gap: 18px;
    align-content: start;
    min-width: 0;
  }

  body.society-page .society-points-column--left {
    grid-column: 1 / 7;
  }

  body.society-page .society-points-column--right {
    grid-column: 7 / 13;
  }

  body.society-page .card,
  body.society-page .society-award,
  body.society-page .society-ranking-row,
  body.society-page .loyalty-redeem-row,
  body.society-page .loyalty-rule-toggle,
  body.society-page .loyalty-rule-item,
  body.society-page .loyalty-breakdown-row {
    margin: 0;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.09);
    background:
      linear-gradient(180deg, rgba(13, 17, 24, 0.58), rgba(7, 10, 15, 0.64)),
      rgba(7, 10, 14, 0.22);
    box-shadow: 0 24px 70px rgba(0,0,0,0.38), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
  }

  body.society-page .card {
    padding: 20px;
  }

  body.society-page .card-head {
    min-height: 28px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.055);
  }

  body.society-page .card-head .title,
  body.society-page .loyalty-rule-group-title,
  body.society-page .loyalty-status-label,
  body.society-page .loyalty-metric-label,
  body.society-page .loyalty-rule-label {
    color: rgba(244,232,198,0.94) !important;
    font-size: 12px;
    font-weight: 800 !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase !important;
  }

  body.society-page .society-awards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.society-page .society-feature {
    min-height: 300px;
    align-content: center;
  }

  body.society-page .loyalty-balance {
    display: grid;
    gap: 8px;
    align-items: start;
  }

  body.society-page #loyaltyPointsValue {
    font-size: clamp(54px, 5.8vw, 86px);
    letter-spacing: 0;
  }

  body.society-page .loyalty-breakdown-list,
  body.society-page .loyalty-rule-groups,
  body.society-page .society-ranking-list {
    gap: 10px;
  }

  body.society-page .loyalty-redeem-row {
    grid-template-columns: minmax(0, 1fr) 76px 106px 118px;
    border-radius: 8px;
    min-height: 74px;
  }

  body.society-page .loyalty-redeem-row:not(:has(input)) {
    grid-template-columns: minmax(0, 1fr) 76px 118px;
  }

  body.society-page .loyalty-redeem-row input,
  body.society-page .loyalty-redeem-price,
  body.society-page .loyalty-redeem-btn,
  body.society-page .society-award-icon {
    border-radius: 8px;
  }

  body.society-page .footer-nav {
    left: 50%;
    right: auto;
    bottom: 22px;
    width: min(calc(100% - 64px), 720px);
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(7, 10, 14, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 22px 70px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.035);
  }

  body.society-page .footer-nav button {
    width: auto;
    min-width: 128px;
    height: 36px !important;
    padding: 0 18px !important;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.035);
    box-shadow: none;
    animation: none;
    color: rgba(219,227,238,0.86) !important;
    font-size: 11px !important;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  body.society-page .footer-nav button.active,
  body.society-page .footer-nav button:hover {
    color: rgba(244,232,198,0.98) !important;
    border-color: rgba(240,207,102,0.28);
    background: rgba(212,175,55,0.08);
    transform: translateY(-1px);
  }

  body.society-page .spacer {
    height: 0 !important;
  }
}

/* AI Labs login overrides must stay below legacy bundled login rules. */
body.login-page--ai {
  --ai-ice: #8ec5ff;
  --ai-ice-bright: #d6ecff;
  --ai-silver: #dbe3ee;
  background:
    linear-gradient(180deg, rgba(2, 6, 12, 0.22), rgba(2, 5, 10, 0.44)),
    url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover fixed no-repeat,
    #05070b !important;
}

body.login-page--ai::before {
  background: url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover no-repeat !important;
}

body.login-page--ai::after {
  background:
    radial-gradient(circle at 24% 16%, rgba(142, 197, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 15, 0.18), rgba(3, 6, 12, 0.48)) !important;
}

body.login-page--ai .hero-row .logo {
  filter: drop-shadow(0 0 18px rgba(142, 197, 255, 0.12)) !important;
}

body.login-page--ai .hero-submark,
body.login-page--ai .desktop-auth-kicker,
body.login-page--ai .portal-brand__subline {
  color: rgba(214, 236, 255, 0.88) !important;
}

body.login-page--ai .desktop-auth-kicker::after,
body.login-page--ai .auth-tab-btn.active::after {
  background: linear-gradient(90deg, transparent, rgba(142, 197, 255, 0.72), transparent) !important;
}

body.login-page--ai .desktop-auth-title,
body.login-page--ai .auth-headline,
body.login-page--ai .auth-trust-item strong {
  color: rgba(232, 242, 255, 0.96) !important;
}

body.login-page--ai .desktop-auth-markets span,
body.login-page--ai .portal-nav__link--portal,
body.login-page--ai .btn-primary,
body.login-page--ai .auth-trust-item::before {
  border-color: rgba(142, 197, 255, 0.28) !important;
}

body.login-page--ai .desktop-auth-markets span,
body.login-page--ai .auth-trust-item::before {
  background: rgba(142, 197, 255, 0.08) !important;
  color: rgba(214, 236, 255, 0.96) !important;
}

body.login-page--ai .btn-primary {
  color: #06111d !important;
  background: linear-gradient(90deg, #7fb8f2, #d6ecff, #9fcfff) !important;
  box-shadow: 0 16px 38px rgba(42, 103, 163, 0.26), inset 0 1px 0 rgba(255,255,255,0.48) !important;
}

body.login-page--ai input:focus {
  border-color: rgba(142, 197, 255, 0.42) !important;
  box-shadow: 0 0 0 1px rgba(142, 197, 255, 0.18), 0 0 22px rgba(142, 197, 255, 0.1) !important;
}

body.login-page--ai .auth-tab-btn.active,
body.login-page--ai .lang-option.active,
body.login-page--ai .agb-row .gold-link,
body.login-page--ai .agb-row .linklike.gold-link,
body.login-page--ai .login-meta label.remember span,
body.login-page--ai .login-meta .link-btn:hover {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: rgba(214, 236, 255, 0.96) !important;
  -webkit-text-fill-color: rgba(214, 236, 255, 0.96) !important;
  animation: none !important;
}

body.login-page--ai .auth-card,
body.login-page--ai .auth-trust-item {
  border-color: rgba(142, 197, 255, 0.1) !important;
}

@media (max-width: 900px) {
  body.login-page--ai {
    background:
      linear-gradient(180deg, rgba(2, 6, 12, 0.18), rgba(2, 5, 10, 0.38)),
      url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center 32px / 255% auto fixed no-repeat,
      #05070b !important;
  }

  body.login-page--ai::before {
    background: url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center 32px / 255% auto no-repeat !important;
  }
}

/* MUSS IMMER UNTEN SEIN !!! */
/* Premium Number Rendering (keine Wackler beim Count-Up) */
.num,
.dash-balance-value,
.dash-perf-amount,
.dash-perf-pct,
.trade-stats-value,
#tradeWinRatePct {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Final AI Labs link color override: keep Krypto gold untouched. */
body.login-page.login-page--ai .login-meta label.remember .gold-link,
body.login-page.login-page--ai .login-meta label.remember span.gold-link,
body.login-page.login-page--ai .agb-row a.gold-link,
body.login-page.login-page--ai .agb-row .linklike.gold-link,
body.login-page.login-page--ai .agb-row .gold-link {
  background: none !important;
  background-image: none !important;
  background-size: auto !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  color: #d6ecff !important;
  -webkit-text-fill-color: #d6ecff !important;
  text-fill-color: #d6ecff !important;
  animation: none !important;
  text-shadow: 0 0 14px rgba(142, 197, 255, 0.16) !important;
}

/* Empire AI Labs Dashboard */
html:has(body.ailabs-dashboard-page) {
  min-height: 100%;
  background: #05070b url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover fixed no-repeat !important;
}

body.ailabs-dashboard-page {
  min-height: 100vh;
  overflow-x: hidden;
  background: #05070b url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover fixed no-repeat !important;
  color: rgba(245, 248, 255, 0.96);
}

body.ailabs-dashboard-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url('../images/empire-ai-labs-infrastructure-desktop-bg.png') center center / cover no-repeat;
  pointer-events: none;
}

body.ailabs-dashboard-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 22% 16%, rgba(142, 197, 255, 0.12), transparent 28%),
    linear-gradient(90deg, rgba(3, 5, 8, 0.5) 0%, rgba(3, 5, 8, 0.28) 38%, rgba(3, 5, 8, 0.1) 64%, rgba(3, 5, 8, 0.42) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018), transparent 18%, transparent 82%, rgba(255, 255, 255, 0.018)),
    linear-gradient(180deg, rgba(5, 8, 12, 0.02), rgba(5, 8, 12, 0.08) 62%, rgba(5, 8, 12, 0.28)),
    linear-gradient(180deg, transparent 62%, rgba(3, 5, 8, 0.42) 100%);
  pointer-events: none;
}

body.ailabs-dashboard-page .ailabs-shell {
  width: min(calc(100% - 32px), 1240px);
  margin: 0 auto;
  padding: 22px 0 110px;
}

.ai-dashboard-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.ai-dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(214, 236, 255, 0.1);
  border-radius: 10px;
  background: rgba(5, 10, 17, 0.6);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
}

.ai-dashboard-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.ai-dashboard-brand__mark {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(142, 197, 255, 0.14));
}

.ai-dashboard-brand__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ai-dashboard-brand__copy span,
.ai-card-head small,
.ai-dashboard-hero p,
.ai-product-copy span,
.ai-health-state span,
.ai-status-list span,
.ai-security-profile span,
.ai-network-stats span,
.ai-investment-meta span,
.ai-yield-grid span,
.ai-utilization-footer span {
  color: rgba(214, 225, 238, 0.64);
}

.ai-dashboard-brand__copy span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ai-dashboard-brand__copy strong {
  overflow: hidden;
  color: rgba(232, 242, 255, 0.96);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-dashboard-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.ai-dashboard-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(142, 197, 255, 0.2);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.08);
  color: rgba(214, 236, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.ai-dashboard-pill--ghost {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  color: rgba(219, 227, 238, 0.78);
}

.ai-dashboard-hero {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  text-align: center;
}

.ai-dashboard-title {
  display: grid;
  justify-items: center;
  gap: 0;
  line-height: 1;
}

.ai-dashboard-title span {
  color: rgba(214, 236, 255, 0.72);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(17px, 1.6vw, 23px);
  font-style: italic;
}

.ai-dashboard-title strong {
  color: rgba(248, 251, 255, 0.98);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(52px, 7.5vw, 104px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-shadow: 0 0 22px rgba(142, 197, 255, 0.18), 0 24px 70px rgba(0,0,0,0.42);
}

.ai-dashboard-title em {
  margin-top: 2px;
  color: rgba(214, 236, 255, 0.9);
  font-size: clamp(14px, 1.55vw, 22px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ai-dashboard-hero p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.65;
}

.ai-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.ai-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(214, 236, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(13, 20, 31, 0.64), rgba(5, 10, 17, 0.7)),
    rgba(5, 10, 17, 0.28);
  box-shadow: 0 26px 74px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  padding: 20px;
}

.ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(214, 236, 255, 0.06), transparent);
  transform: translateX(-120%);
  animation: aiCardScan 8s ease-in-out infinite;
  pointer-events: none;
}

.ai-card > * {
  position: relative;
  z-index: 1;
}

.ai-card.is-hidden {
  display: none !important;
}

.ai-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
  margin-bottom: 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(214, 236, 255, 0.07);
}

.ai-card-head span {
  color: rgba(232, 242, 255, 0.96);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-card-head small {
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.ai-investment-card {
  grid-column: span 5;
  min-height: 200px;
}

.ai-account-bar {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 14px 16px;
}

.ai-health-card {
  grid-column: span 3;
  min-height: 228px;
}

.ai-yield-card {
  grid-column: span 7;
  min-height: 200px;
  overflow: hidden;
}

.ai-products-card {
  grid-column: span 5;
  min-height: 436px;
}

.ai-utilization-card {
  grid-column: span 7;
  min-height: 436px;
}

.ai-network-card,
.ai-payout-card,
.ai-activity-card {
  grid-column: span 3;
  min-height: 270px;
}

.ai-security-card {
  grid-column: span 6;
  min-height: 270px;
}

.ai-security-card .ai-card-head span {
  font-size: 13px;
  letter-spacing: 0.055em;
  line-height: 1.35;
  text-transform: none;
}

.ai-balance-stack {
  display: grid;
  grid-template-rows: minmax(88px, 1fr) auto minmax(60px, 0.58fr);
  min-height: 134px;
}

.ai-balance-primary,
.ai-balance-secondary {
  display: grid;
  align-content: center;
  gap: 8px;
}

.ai-balance-primary span,
.ai-balance-secondary span {
  color: rgba(214, 225, 238, 0.64);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-balance-primary strong {
  color: rgba(248, 251, 255, 0.98);
  font-size: clamp(40px, 4.8vw, 64px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ai-balance-secondary strong {
  color: rgba(214, 236, 255, 0.98);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ai-balance-divider {
  height: 1px;
  margin: 1px 0 10px;
  background: linear-gradient(90deg, transparent, rgba(214,236,255,0.28), transparent);
  box-shadow: 0 0 24px rgba(142,197,255,0.16);
}

.ai-treasury-card {
  isolation: isolate;
  min-height: 242px;
  border-color: rgba(213, 236, 250, 0.18);
  background:
    radial-gradient(circle at 88% 4%, rgba(164, 224, 255, 0.13), transparent 31%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), transparent 30%),
    linear-gradient(145deg, rgba(9, 20, 32, 0.9), rgba(3, 8, 15, 0.78));
}

.ai-treasury-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 22%);
}

.ai-treasury-card .ai-card-head {
  margin-bottom: 12px;
}

.ai-treasury-card .ai-balance-stack {
  grid-template-rows: auto auto auto;
  min-height: 158px;
  gap: 13px;
}

.ai-treasury-card .ai-balance-primary {
  gap: 7px;
  min-height: 82px;
}

.ai-treasury-card .ai-balance-primary span,
.ai-treasury-card .ai-balance-secondary span,
.ai-treasury-card .ai-balance-secondary small {
  color: rgba(214, 230, 242, 0.62);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ai-treasury-card .ai-balance-primary strong {
  color: rgba(250, 253, 255, 0.99);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 950;
  letter-spacing: -0.055em;
  text-shadow: 0 0 34px rgba(125, 220, 255, 0.13);
}

.ai-treasury-card .ai-balance-divider {
  height: 1px;
  margin: 0;
  background: linear-gradient(90deg, rgba(214,236,255,0.05), rgba(214,236,255,0.22), rgba(214,236,255,0.05));
  box-shadow: none;
}

.ai-treasury-card .ai-balance-secondary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  align-content: center;
  gap: 4px 16px;
  min-height: 70px;
  padding: 13px 14px;
  border: 1px solid rgba(205, 234, 255, 0.11);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
    rgba(4, 12, 20, 0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-treasury-card .ai-balance-secondary span,
.ai-treasury-card .ai-balance-secondary small {
  grid-column: 1;
}

.ai-treasury-card .ai-balance-secondary strong {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(232, 248, 255, 0.98);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 950;
  letter-spacing: -0.04em;
  text-align: right;
}

.ai-treasury-card .ai-balance-secondary small {
  color: rgba(151, 219, 255, 0.78);
  font-size: 9px;
  letter-spacing: 0.13em;
}

@media (max-width: 760px) {
  .ai-treasury-card {
    min-height: 0;
  }

  .ai-treasury-card .ai-balance-stack {
    gap: 11px;
    min-height: 0;
  }

  .ai-treasury-card .ai-balance-primary {
    min-height: 70px;
  }

  .ai-treasury-card .ai-balance-primary strong {
    font-size: clamp(38px, 12vw, 52px);
  }

  .ai-treasury-card .ai-balance-secondary {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 0;
    padding: 12px 13px;
  }

  .ai-treasury-card .ai-balance-secondary strong {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    text-align: left;
  }
}

.ai-investment-meta,
.ai-network-stats,
.ai-yield-grid,
.ai-security-profile,
.ai-status-list {
  display: grid;
  gap: 10px;
}

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

.ai-investment-meta div,
.ai-yield-grid div,
.ai-network-stats div,
.ai-security-profile div,
.ai-status-list div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(214, 236, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-investment-meta strong,
.ai-yield-grid strong,
.ai-network-stats strong,
.ai-status-list strong,
.ai-security-profile strong {
  overflow: hidden;
  color: rgba(232, 242, 255, 0.96);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ai-health-ring {
  --health: 98;
  width: 138px;
  height: 138px;
  margin: 8px auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(6, 14, 24, 0.9) 0 56%, transparent 57%),
    conic-gradient(from 210deg, rgba(142,197,255,0.98) calc(var(--health) * 1%), rgba(255,255,255,0.08) 0);
  box-shadow: 0 0 40px rgba(142, 197, 255, 0.12), inset 0 0 34px rgba(0,0,0,0.42);
}

.ai-health-ring span {
  color: rgba(232, 242, 255, 0.98);
  font-size: 26px;
  font-weight: 900;
}

.ai-health-state {
  display: grid;
  gap: 5px;
  text-align: center;
}

.ai-health-state strong {
  color: rgba(142, 197, 255, 0.98);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-yield-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-yield-total {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.62fr);
  gap: 14px;
  align-items: stretch;
  min-height: 86px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(142, 197, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(142, 197, 255, 0.13), transparent 43%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 18px 42px rgba(0,0,0,0.16);
}

.ai-yield-total::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.42;
  pointer-events: none;
  background:
    linear-gradient(rgba(214,236,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,236,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.ai-yield-total-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 6px;
}

.ai-yield-total-copy span,
.ai-yield-grid span {
  color: rgba(214, 225, 238, 0.64);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-yield-total-copy strong {
  color: rgba(248, 251, 255, 0.98);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow: 0 0 30px rgba(142,197,255,0.16);
}

.ai-yield-signal {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  min-height: 58px;
  padding: 8px 10px;
  border-left: 1px solid rgba(214, 236, 255, 0.09);
}

.ai-yield-signal span {
  display: block;
  height: calc(22% + (var(--i, 1) * 10%));
  min-height: 20px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, rgba(215,239,255,0.96), rgba(68,163,255,0.36));
  box-shadow: 0 0 20px rgba(142,197,255,0.22);
  animation: aiYieldSignal 2.8s ease-in-out infinite;
}

.ai-yield-signal span:nth-child(1) { --i: 2; animation-delay: -0.4s; }
.ai-yield-signal span:nth-child(2) { --i: 5; animation-delay: -1.1s; }
.ai-yield-signal span:nth-child(3) { --i: 3; animation-delay: -0.7s; }
.ai-yield-signal span:nth-child(4) { --i: 6; animation-delay: -1.6s; }
.ai-yield-signal span:nth-child(5) { --i: 4; animation-delay: -0.2s; }

@keyframes aiYieldSignal {
  0%, 100% { transform: scaleY(0.82); opacity: 0.68; }
  50% { transform: scaleY(1); opacity: 1; }
}

.ai-yield-grid strong {
  font-size: 18px;
}

.ai-yield-grid div {
  position: relative;
  overflow: hidden;
  min-height: 66px;
  padding: 10px 12px;
}

.ai-yield-grid div::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px;
  height: 1px;
  background: linear-gradient(90deg, rgba(142,197,255,0.1), rgba(214,236,255,0.46), rgba(142,197,255,0.08));
  opacity: 0.62;
}

.ai-yield-grid i {
  position: relative;
  display: block;
  overflow: hidden;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(214, 236, 255, 0.08);
}

.ai-yield-grid i b {
  display: block;
  width: calc(var(--yield, 18) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(107,185,255,0.42), rgba(221,244,255,0.96));
  box-shadow: 0 0 18px rgba(142,197,255,0.25);
}

.ai-yield-note {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid rgba(214, 236, 255, 0.07);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.ai-yield-note span {
  color: rgba(214, 225, 238, 0.66);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.ai-yield-card--settlement {
  isolation: isolate;
  min-height: 250px;
  border-color: rgba(216, 235, 248, 0.2);
  background:
    radial-gradient(circle at 78% 18%, rgba(164, 224, 255, 0.16), transparent 31%),
    linear-gradient(116deg, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(145deg, rgba(10, 22, 34, 0.96), rgba(3, 8, 15, 0.92) 56%, rgba(10, 17, 27, 0.96));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ai-yield-card--settlement::before {
  opacity: 0.38;
  background: linear-gradient(112deg, transparent 0 42%, rgba(238, 248, 255, 0.11), transparent 57%);
  animation: aiCardScan 11s ease-in-out infinite;
}

.ai-yield-card--settlement::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09), transparent 18%),
    radial-gradient(circle at 100% 0%, rgba(125, 220, 255, 0.1), transparent 34%);
}

.ai-yield-card--settlement .ai-card-head {
  margin-bottom: 18px;
  border-bottom-color: rgba(216, 235, 248, 0.1);
}

.ai-yield-card--settlement .ai-card-head small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(201, 236, 255, 0.9);
  letter-spacing: 0.13em;
}

.ai-yield-card--settlement .ai-card-head small::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8f3ff;
  box-shadow: 0 0 0 5px rgba(125, 220, 255, 0.08), 0 0 18px rgba(125, 220, 255, 0.78);
}

.ai-yield-settlement {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "value";
  gap: 0;
  align-items: stretch;
  min-height: 168px;
}

.ai-yield-settlement__value {
  grid-area: value;
  position: relative;
  display: grid;
  min-height: 168px;
  padding: 18px 20px;
  border: 1px solid rgba(220, 240, 255, 0.16);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.02) 38%, rgba(115, 205, 255, 0.055)),
    rgba(255, 255, 255, 0.028);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.035),
    0 22px 52px rgba(0, 0, 0, 0.25);
}

.ai-yield-settlement__value::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 16px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(239, 250, 255, 0.82), rgba(126, 214, 255, 0.22), rgba(239, 250, 255, 0.58));
  box-shadow: 0 0 22px rgba(125, 220, 255, 0.2);
}

.ai-yield-ledger {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 8px 18px 12px 20px;
}

.ai-yield-ledger span,
.ai-yield-ledger small {
  color: rgba(216, 230, 242, 0.62);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-yield-ledger strong {
  color: rgba(250, 253, 255, 0.99);
  font-size: clamp(48px, 6.5vw, 82px);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow: 0 0 38px rgba(125, 220, 255, 0.16);
}

.ai-yield-ledger small {
  color: rgba(165, 223, 255, 0.9);
}

.ai-yield-card--settlement .ai-yield-details {
  margin-top: 16px;
  padding-inline: 0;
}

.ai-yield-card--settlement .ai-yield-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 18px;
  color: rgba(194, 226, 246, 0.72);
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.14em;
  list-style: none;
  text-transform: uppercase;
}

.ai-yield-card--settlement .ai-yield-details summary::-webkit-details-marker {
  display: none;
}

.ai-yield-card--settlement .ai-yield-details summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}

.ai-yield-card--settlement .ai-yield-details[open] summary svg {
  transform: rotate(180deg);
}

.ai-yield-card--settlement .ai-yield-grid {
  gap: 0;
  padding: 8px 14px 2px;
  border: 1px solid rgba(205, 234, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(4, 12, 20, 0.24);
}

.ai-yield-card--settlement .ai-yield-grid__head,
.ai-yield-card--settlement .ai-yield-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.ai-yield-card--settlement .ai-yield-grid__head {
  min-height: 30px;
  padding: 0 2px 5px;
  border: 0;
  border-bottom: 1px solid rgba(205, 234, 255, 0.1);
  border-radius: 0;
  background: transparent;
}

.ai-yield-card--settlement .ai-yield-grid__head span {
  color: rgba(174, 206, 228, 0.54);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-yield-card--settlement .ai-yield-grid__head span:last-child {
  text-align: right;
}

.ai-yield-card--settlement .ai-yield-row {
  min-height: 38px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid rgba(205, 234, 255, 0.075);
  border-radius: 0;
  background: transparent;
}

.ai-yield-card--settlement .ai-yield-row:last-child {
  border-bottom: 0;
}

.ai-yield-card--settlement .ai-yield-row span {
  color: rgba(217, 233, 244, 0.72);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-yield-card--settlement .ai-yield-row strong {
  color: rgba(244, 251, 255, 0.96);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ai-yield-card--settlement .ai-yield-grid div::after,
.ai-yield-card--settlement .ai-yield-grid i {
  display: none;
}

.ai-product-list {
  display: grid;
  gap: 13px;
}

.ai-product-row {
  --load: 0;
  --gpu-accent: #8dd6ff;
  --gpu-accent-rgb: 141, 214, 255;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(136px, 190px) minmax(70px, 92px);
  align-items: center;
  gap: 13px;
  min-height: 98px;
  padding: 16px 15px 16px 17px;
  overflow: hidden;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gpu-accent-rgb), 0.22), transparent 35%),
    linear-gradient(135deg, rgba(142,197,255,0.08), rgba(255,255,255,0.026)),
    rgba(3, 9, 16, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 18px 44px rgba(0,0,0,0.18),
    0 0 24px rgba(var(--gpu-accent-rgb), 0.055);
}

.ai-product-row--gpu-basic-rtx-4090 { --gpu-accent: #8dd6ff; --gpu-accent-rgb: 141, 214, 255; }
.ai-product-row--gpu-pro-rtx-5090 { --gpu-accent: #76eedf; --gpu-accent-rgb: 118, 238, 223; }
.ai-product-row--gpu-pro-supercluster-4x-rtx-5090 { --gpu-accent: #b3a1ff; --gpu-accent-rgb: 179, 161, 255; }
.ai-product-row--gpu-elite-h200 { --gpu-accent: #ffd88b; --gpu-accent-rgb: 255, 216, 139; }

.ai-product-row::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(var(--gpu-accent-rgb), 0.86), transparent);
  box-shadow: 0 0 22px rgba(var(--gpu-accent-rgb), 0.3);
  opacity: 0.86;
}

.ai-product-row::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(var(--gpu-accent-rgb), 0.045));
  pointer-events: none;
}

.ai-product-row.is-setting-up {
  border-color: rgba(214, 236, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(214,236,255,0.06), rgba(142,197,255,0.03)),
    rgba(255,255,255,0.02);
}

.ai-product-row.is-setting-up .ai-product-meter span {
  width: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(142,197,255,0.16) 0 10px, rgba(214,236,255,0.34) 10px 20px);
  animation: aiSetupStripes 1.4s linear infinite;
}

.ai-product-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ai-product-copy strong {
  overflow: hidden;
  color: rgba(232, 242, 255, 0.96);
  font-size: 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-product-copy span,
.ai-product-copy em,
.ai-product-load {
  font-size: 12px;
  font-weight: 800;
}

.ai-product-copy em {
  overflow: hidden;
  color: var(--gpu-accent);
  font-style: normal;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-shadow: 0 0 18px rgba(var(--gpu-accent-rgb), 0.22);
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-product-meta i {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.13);
  border-radius: 999px;
  background: rgba(var(--gpu-accent-rgb), 0.045);
  color: rgba(216, 233, 244, 0.7);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-product-meter {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 0 0 1px rgba(var(--gpu-accent-rgb), 0.08);
}

.ai-product-meter span {
  display: block;
  width: calc(var(--load) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--gpu-accent-rgb), 0.48), rgba(238, 250, 255, 0.94));
  box-shadow: 0 0 18px rgba(var(--gpu-accent-rgb), 0.22);
  transition: width 700ms ease;
}

.ai-product-load {
  display: grid;
  gap: 4px;
  color: rgba(214,236,255,0.96);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ai-product-load span {
  color: rgba(196, 218, 232, 0.52);
  font-size: 8px;
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1.1;
  text-transform: uppercase;
}

.ai-product-load strong {
  color: rgba(244, 251, 255, 0.98);
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-shadow: 0 0 18px rgba(var(--gpu-accent-rgb), 0.18);
}

.ai-utilization-stage {
  --load: 82;
  position: relative;
  min-height: 220px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214,236,255,0.08);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 50%, rgba(142,197,255,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}

.ai-utilization-core {
  position: relative;
  z-index: 3;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(7,14,24,0.92) 0 55%, rgba(7,14,24,0.4) 56%),
    conic-gradient(from 180deg, rgba(214,236,255,0.96) calc(var(--load) * 1%), rgba(255,255,255,0.07) 0);
  box-shadow: 0 0 52px rgba(142,197,255,0.16), inset 0 0 30px rgba(0,0,0,0.44);
}

.ai-utilization-core span {
  color: rgba(248,251,255,0.98);
  font-size: 38px;
  font-weight: 950;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ai-utilization-core small {
  color: rgba(214,225,238,0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-utilization-waves,
.ai-utilization-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ai-utilization-waves span {
  position: absolute;
  inset: calc(18px + var(--i) * 21px);
  border: 1px solid rgba(142,197,255,0.11);
  border-radius: 50%;
  animation: aiUtilWave 4.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.7s);
}

.ai-utilization-orbit::before,
.ai-utilization-orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d6ecff;
  box-shadow: 0 0 18px rgba(214,236,255,0.72);
  animation: aiOrbit 7s linear infinite;
}

.ai-utilization-orbit::after {
  animation-duration: 10s;
  animation-direction: reverse;
}

.ai-utilization-bars {
  height: 78px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(56, minmax(2px, 1fr));
  align-items: end;
  gap: 3px;
}

.ai-utilization-bars span {
  min-height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214,236,255,0.88), rgba(142,197,255,0.26));
  box-shadow: 0 0 14px rgba(142,197,255,0.08);
  transition: height 600ms ease, background 600ms ease;
}

.ai-utilization-bars span.is-hot {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(142,197,255,0.42));
  box-shadow: 0 0 20px rgba(142,197,255,0.24);
}

.ai-utilization-footer {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 13px;
  border: 1px solid rgba(205, 234, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(4, 12, 20, 0.22);
}

.ai-utilization-status-mark {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(185, 224, 250, 0.28);
  border-radius: 50%;
  background: rgba(142, 197, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.ai-utilization-status-mark::before,
.ai-utilization-status-mark::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.ai-utilization-status-mark::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(205, 234, 255, 0.72);
}

.ai-utilization-footer.is-utilization-low .ai-utilization-status-mark {
  border-color: rgba(147, 178, 202, 0.28);
  background: rgba(124, 157, 181, 0.07);
}

.ai-utilization-footer.is-utilization-low .ai-utilization-status-mark::before {
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(166, 193, 213, 0.76);
}

.ai-utilization-footer.is-utilization-stable .ai-utilization-status-mark {
  border-color: rgba(178, 231, 255, 0.34);
  box-shadow: 0 0 0 5px rgba(125, 220, 255, 0.04), inset 0 1px 0 rgba(255,255,255,0.1);
}

.ai-utilization-footer.is-utilization-stable .ai-utilization-status-mark::before,
.ai-utilization-footer.is-utilization-stable .ai-utilization-status-mark::after {
  width: 9px;
  height: 2px;
  border-radius: 999px;
  background: rgba(196, 240, 255, 0.86);
}

.ai-utilization-footer.is-utilization-stable .ai-utilization-status-mark::before {
  transform: translate(-50%, calc(-50% - 2px));
}

.ai-utilization-footer.is-utilization-stable .ai-utilization-status-mark::after {
  transform: translate(-50%, calc(-50% + 2px));
}

.ai-utilization-footer.is-utilization-high .ai-utilization-status-mark,
.ai-utilization-footer.is-utilization-peak .ai-utilization-status-mark {
  border-color: rgba(208, 244, 255, 0.48);
  background: rgba(125, 220, 255, 0.11);
  box-shadow: 0 0 18px rgba(125, 220, 255, 0.16), inset 0 1px 0 rgba(255,255,255,0.12);
}

.ai-utilization-footer.is-utilization-high .ai-utilization-status-mark::before {
  width: 0;
  height: 0;
  border-right: 5px solid transparent;
  border-bottom: 9px solid rgba(222, 248, 255, 0.92);
  border-left: 5px solid transparent;
  border-radius: 1px;
  background: transparent;
}

.ai-utilization-footer.is-utilization-peak .ai-utilization-status-mark::before {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: rgba(239, 252, 255, 0.95);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 0 14px rgba(125, 220, 255, 0.44);
}

.ai-utilization-footer.is-utilization-empty .ai-utilization-status-mark,
.ai-utilization-footer.is-utilization-setup .ai-utilization-status-mark,
.ai-utilization-footer.is-utilization-maintenance .ai-utilization-status-mark {
  border-color: rgba(160, 184, 204, 0.2);
  background: rgba(160, 184, 204, 0.04);
}

.ai-utilization-footer.is-utilization-empty .ai-utilization-status-mark::before,
.ai-utilization-footer.is-utilization-setup .ai-utilization-status-mark::before,
.ai-utilization-footer.is-utilization-maintenance .ai-utilization-status-mark::before {
  width: 6px;
  height: 6px;
  background: rgba(157, 179, 197, 0.68);
}

.ai-utilization-footer strong {
  color: rgba(214,236,255,0.96);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.ai-utilization-footer.is-utilization-low strong,
.ai-utilization-footer.is-utilization-empty strong,
.ai-utilization-footer.is-utilization-setup strong,
.ai-utilization-footer.is-utilization-maintenance strong {
  color: rgba(196, 216, 230, 0.82);
}

.ai-utilization-footer.is-utilization-stable strong {
  color: rgba(214, 242, 255, 0.96);
}

.ai-utilization-footer.is-utilization-high strong,
.ai-utilization-footer.is-utilization-peak strong {
  color: rgba(238, 251, 255, 0.98);
  text-shadow: 0 0 20px rgba(125, 220, 255, 0.16);
}

.ai-utilization-card.is-utilization-empty,
.ai-utilization-card.is-utilization-setup,
.ai-utilization-card.is-utilization-maintenance {
  --util-accent: rgba(157, 179, 197, 0.7);
  --util-glow: rgba(125, 150, 170, 0.08);
}

.ai-utilization-card.is-utilization-low {
  --util-accent: rgba(166, 193, 213, 0.78);
  --util-glow: rgba(125, 150, 170, 0.1);
}

.ai-utilization-card.is-utilization-stable {
  --util-accent: rgba(196, 240, 255, 0.94);
  --util-glow: rgba(125, 220, 255, 0.16);
}

.ai-utilization-card.is-utilization-high,
.ai-utilization-card.is-utilization-peak {
  --util-accent: rgba(239, 252, 255, 0.98);
  --util-glow: rgba(125, 220, 255, 0.28);
}

.ai-utilization-card.is-utilization-low .ai-utilization-stage .ai-utilization-core,
.ai-utilization-card.is-utilization-empty .ai-utilization-stage .ai-utilization-core,
.ai-utilization-card.is-utilization-setup .ai-utilization-stage .ai-utilization-core,
.ai-utilization-card.is-utilization-maintenance .ai-utilization-stage .ai-utilization-core {
  box-shadow: 0 0 0 7px rgba(142,197,255,0.018), 0 0 34px var(--util-glow), inset 0 0 30px rgba(0,0,0,0.44);
}

.ai-utilization-card .ai-utilization-core__progress {
  stroke: var(--util-accent, rgba(214,236,255,0.96));
}

.ai-utilization-card.is-utilization-low .ai-utilization-history__bar.is-current,
.ai-utilization-card.is-utilization-empty .ai-utilization-history__bar.is-current,
.ai-utilization-card.is-utilization-setup .ai-utilization-history__bar.is-current,
.ai-utilization-card.is-utilization-maintenance .ai-utilization-history__bar.is-current {
  border-color: rgba(178, 203, 221, 0.38);
  background: linear-gradient(180deg, rgba(197, 216, 230, 0.78), rgba(95, 121, 143, 0.24));
  box-shadow: 0 0 12px rgba(125, 150, 170, 0.12);
}

@media (max-width: 560px) {
  .ai-utilization-footer {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
  }

  .ai-utilization-footer strong {
    grid-column: 2;
    text-align: left;
    white-space: normal;
  }
}

.ai-network-stats {
  grid-template-columns: 1fr;
}

.ai-network-stats strong {
  font-size: 28px;
}

.ai-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  margin-top: 15px;
  border: 1px solid rgba(142,197,255,0.22);
  border-radius: 999px;
  background: rgba(142,197,255,0.08);
  color: rgba(214,236,255,0.96);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.ai-security-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ai-security-metrics div {
  display: grid;
  gap: 5px;
  min-height: 64px;
  align-content: center;
  padding: 11px;
  border: 1px solid rgba(142,197,255,0.14);
  border-radius: 8px;
  background: rgba(142,197,255,0.055);
}

.ai-security-metrics span {
  color: rgba(214,236,255,0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-security-metrics strong {
  overflow: hidden;
  color: rgba(232,242,255,0.96);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-security-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ai-security-actions button,
.ai-session-row button {
  min-height: 36px;
  border: 1px solid rgba(142,197,255,0.18);
  border-radius: 999px;
  background: rgba(142,197,255,0.075);
  color: rgba(214,236,255,0.96);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ai-security-actions button:hover,
.ai-session-row button:hover:not(:disabled) {
  border-color: rgba(214,236,255,0.32);
  background: rgba(142,197,255,0.12);
}

.ai-security-panel {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(214,236,255,0.09);
  border-radius: 8px;
  background: rgba(255,255,255,0.026);
}

.ai-security-panel.is-hidden {
  display: none;
}

.ai-security-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.ai-security-panel-head span {
  color: rgba(232,242,255,0.94);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-security-panel-head small {
  color: rgba(214,225,238,0.58);
  font-size: 10px;
  font-weight: 800;
}

.ai-session-list,
.ai-login-history-list {
  display: grid;
  gap: 8px;
}

.ai-session-row,
.ai-login-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(214,236,255,0.075);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.ai-session-row {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.ai-session-row.is-current {
  border-color: rgba(142,197,255,0.16);
  background: rgba(142,197,255,0.055);
}

.ai-session-row strong,
.ai-login-row strong {
  display: block;
  overflow: hidden;
  color: rgba(232,242,255,0.96);
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-session-row span,
.ai-login-row small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: rgba(214,225,238,0.58);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-session-row button {
  min-height: 32px;
  padding: 0 10px;
}

.ai-session-row button:disabled {
  cursor: default;
  opacity: 0.62;
}

.ai-login-row {
  grid-template-columns: 44px minmax(0, 1fr);
}

.ai-login-row > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(142,197,255,0.08);
  color: rgba(214,236,255,0.94);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-login-row.is-failed > span {
  background: rgba(255, 112, 112, 0.12);
  color: rgba(255, 190, 190, 0.96);
}

.ai-security-empty {
  padding: 12px;
  border: 1px dashed rgba(214,236,255,0.1);
  border-radius: 8px;
  color: rgba(214,225,238,0.62);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.ai-activity-feed {
  display: grid;
  gap: 10px;
}

.ai-activity-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(214,236,255,0.075);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}

.ai-activity-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(142,197,255,0.08);
  color: rgba(214,236,255,0.92);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-activity-row strong {
  overflow: hidden;
  color: rgba(232,242,255,0.9);
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-footer-nav {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  width: min(calc(100% - 64px), 720px);
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(214,236,255,0.13);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(214,236,255,0.07), rgba(255,255,255,0.02)),
    rgba(5, 10, 17, 0.5);
  box-shadow:
    0 22px 70px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.055);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.ai-footer-nav a {
  position: relative;
  min-width: 126px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  background: rgba(255,255,255,0.026);
  color: rgba(219,227,238,0.82);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.115em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.ai-footer-nav a::before {
  display: none;
  content: none;
}

.ai-footer-nav a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(142,197,255,0.72), transparent);
  opacity: 0;
  transform: scaleX(.6);
  transition: opacity .18s ease, transform .18s ease;
}

.ai-footer-nav a.active,
.ai-footer-nav a:hover {
  border-color: rgba(142,197,255,0.28);
  background:
    radial-gradient(circle at 50% 0%, rgba(142,197,255,0.14), transparent 56%),
    rgba(142,197,255,0.08);
  color: rgba(214,236,255,0.98);
}

.ai-footer-nav a.active::after,
.ai-footer-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

@keyframes aiCardScan {
  0%, 62% { transform: translateX(-120%); opacity: 0; }
  72% { opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes aiUtilWave {
  0%, 100% { opacity: 0.18; transform: scale(0.98); }
  50% { opacity: 0.52; transform: scale(1.02); }
}

@keyframes aiOrbit {
  from { transform: rotate(0deg) translateX(104px) rotate(0deg); top: 50%; left: 50%; }
  to { transform: rotate(360deg) translateX(104px) rotate(-360deg); top: 50%; left: 50%; }
}

@keyframes aiSetupStripes {
  from { background-position: 0 0; }
  to { background-position: 40px 0; }
}

@media (max-width: 1100px) {
  .ai-investment-card,
  .ai-health-card,
  .ai-yield-card,
  .ai-products-card,
  .ai-utilization-card,
  .ai-network-card,
  .ai-payout-card,
  .ai-security-card,
  .ai-activity-card {
    grid-column: span 6;
  }

  .ai-utilization-card {
    grid-column: span 12;
  }
}

@media (max-width: 760px) {
  html:has(body.ailabs-dashboard-page) {
    background: #05070b url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat !important;
  }

  body.ailabs-dashboard-page {
    background: #05070b url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat !important;
  }

  body.ailabs-dashboard-page::before {
    background: url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat;
    transform: translateZ(0);
    will-change: transform;
  }

  body.ailabs-dashboard-page .ailabs-shell {
    width: min(calc(100% - 22px), 640px);
    padding: 12px 0 92px;
  }

  .ai-dashboard-topbar { display: none; }

  .ai-security-mobile-logout { display: grid; }

  .ai-dashboard-brand__mark {
    width: 40px;
    height: 40px;
  }

  .ai-dashboard-brand__copy span {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .ai-dashboard-brand__copy strong {
    max-width: 162px;
    font-size: 14px;
  }

  .ai-dashboard-actions {
    gap: 6px;
  }

  .ai-dashboard-pill {
    min-height: 32px;
    padding: 0 11px;
    font-size: 10px;
  }

  .ai-dashboard-title strong {
    font-size: clamp(38px, 14vw, 60px);
    letter-spacing: 0.08em;
  }

  .ai-dashboard-title em {
    font-size: clamp(11px, 4vw, 14px);
    letter-spacing: 0.14em;
  }

  .ai-dashboard-hero p {
    font-size: 13px;
  }

  .ai-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .ai-investment-card,
  .ai-health-card,
  .ai-yield-card,
  .ai-products-card,
  .ai-utilization-card,
  .ai-network-card,
  .ai-payout-card,
  .ai-security-card,
  .ai-activity-card {
    grid-column: 1;
    min-height: 0;
  }

  .ai-card {
    padding: 16px;
    border-radius: 8px;
    background:
      linear-gradient(180deg, rgba(13, 20, 31, 0.54), rgba(5, 10, 17, 0.6)),
      rgba(5, 10, 17, 0.22);
  }

  .ai-card-head {
    gap: 10px;
  }

  .ai-card-head span {
    font-size: 11px;
  }

  .ai-card-head small {
    font-size: 10px;
  }

  .ai-investment-value {
    font-size: clamp(36px, 12vw, 48px);
  }

  .ai-investment-meta,
  .ai-yield-grid,
  .ai-security-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .ai-yield-total {
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 15px;
  }

  .ai-yield-total-copy strong {
    font-size: clamp(34px, 11vw, 48px);
  }

  .ai-yield-signal {
    min-height: 52px;
    padding: 0;
    border-left: 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ai-security-actions {
    grid-template-columns: 1fr;
  }

  .ai-session-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-product-row {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .ai-product-meter {
    grid-column: 1 / -1;
    order: 3;
  }

  .ai-product-load span {
    font-size: 7px;
  }

  .ai-product-load strong {
    font-size: 14px;
  }

  .ai-utilization-stage {
    min-height: 200px;
  }

  .ai-utilization-bars {
    grid-template-columns: repeat(28, minmax(3px, 1fr));
  }

  .ai-utilization-bars span:nth-child(n + 29) {
    display: none;
  }

  .ai-utilization-footer {
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: center;
  }

  .ai-utilization-footer strong {
    text-align: left;
  }

  .ai-footer-nav {
    bottom: 12px;
    width: min(calc(100% - 20px), 520px);
    gap: 5px;
    padding: 6px;
  }

  .ai-footer-nav a {
    min-width: 0;
    flex: 1 1 0;
    min-height: 34px;
    padding: 0 6px;
    font-size: 10px;
    letter-spacing: 0.075em;
  }
}

/* GPU marketplace · capital-product cards */
.gpu-market-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.gpu-market-card {
  --gpu-accent: #8dd6ff;
  --gpu-accent-rgb: 141, 214, 255;
  min-height: 494px;
  padding: 18px;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gpu-accent-rgb), 0.16), transparent 35%),
    linear-gradient(158deg, rgba(20, 45, 67, 0.94) 0%, rgba(7, 18, 31, 0.96) 58%, rgba(3, 10, 19, 0.98) 100%);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.gpu-market-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gpu-accent-rgb), 0.92), transparent);
}

.gpu-market-card:hover {
  z-index: 2;
  transform: translateY(-6px);
  border-color: rgba(var(--gpu-accent-rgb), 0.58);
  box-shadow: 0 30px 76px rgba(0, 0, 0, 0.38), 0 0 30px rgba(var(--gpu-accent-rgb), 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.gpu-market-card--gpu-pro-rtx-5090 { --gpu-accent: #76eedf; --gpu-accent-rgb: 118, 238, 223; }
.gpu-market-card--gpu-pro-supercluster-4x-rtx-5090 { --gpu-accent: #b3a1ff; --gpu-accent-rgb: 179, 161, 255; }
.gpu-market-card--gpu-elite-h200 { --gpu-accent: #ffd88b; --gpu-accent-rgb: 255, 216, 139; }

.gpu-market-card__glow {
  inset: -19% -40% auto auto;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(var(--gpu-accent-rgb), 0.2), transparent 67%);
}

.gpu-market-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gpu-market-card__head > span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.32);
  border-radius: 999px;
  background: rgba(var(--gpu-accent-rgb), 0.1);
  color: var(--gpu-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

.gpu-market-card__head > b {
  color: rgba(var(--gpu-accent-rgb), 0.62);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.12em;
}

.gpu-market-card__hardware {
  min-height: 67px;
  padding: 15px 0 13px;
}

.gpu-market-card__hardware > i,
.gpu-market-card__yield i,
.gpu-market-card__stats i {
  display: block;
  color: rgba(208, 229, 246, 0.5);
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gpu-market-card__hardware h3 {
  min-height: 42px;
  margin: 7px 0 0;
  color: #f2f9ff;
  font-size: clamp(17px, 1.22vw, 20px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.12;
}

.gpu-market-card__yield {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 10px;
  padding: 15px;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.23);
  border-radius: 11px;
  background: linear-gradient(115deg, rgba(var(--gpu-accent-rgb), 0.13), rgba(255, 255, 255, 0.025));
}

.gpu-market-card__yield strong {
  display: block;
  margin-top: 4px;
  color: #f8fcff;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(var(--gpu-accent-rgb), 0.25);
}

.gpu-market-card__yield > span {
  align-self: end;
  padding-bottom: 3px;
  color: rgba(219, 238, 250, 0.68);
  font-size: 10px;
  font-weight: 700;
}

.gpu-market-card__yield > span b { color: var(--gpu-accent); }
.gpu-market-card__yield small { grid-column: 1 / -1; color: rgba(218, 235, 248, 0.57); font-size: 9px; line-height: 1.35; }

.gpu-market-card__stats {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.gpu-market-card__stats div {
  min-height: 105px;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 17px 20px;
  border: 1px solid rgba(183, 222, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(202, 231, 252, 0.07), rgba(202, 231, 252, 0.025));
  text-align: center;
}

.gpu-market-card__stats b {
  margin-top: 1px;
  color: #eef8ff;
  font-size: clamp(16px, 1.25vw, 19px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.gpu-market-card__stats i { color: rgba(211, 232, 247, 0.68); font-size: 9px; letter-spacing: 0.1em; line-height: 1.3; }
.gpu-market-card__stats small { margin-top: 2px; color: rgba(215, 234, 247, 0.72); font-size: 10px; font-weight: 650; line-height: 1.45; }
.gpu-market-card__details { margin-top: 10px; padding-top: 0; }
.gpu-market-card__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 7px 2px;
  color: rgba(var(--gpu-accent-rgb), 0.92);
  font-size: 10px;
}

.gpu-market-card__details summary::after { content: 'Details ansehen'; float: none; color: rgba(214, 236, 249, 0.5); font-size: 8px; letter-spacing: 0.08em; }
.gpu-market-card__details[open] summary::after { content: 'Schließen'; font-size: 8px; }
html[lang="en"] .gpu-market-card__details summary::after { content: 'View details'; }
html[lang="en"] .gpu-market-card__details[open] summary::after { content: 'Close'; }
.gpu-market-card__detail-list { margin-top: 3px; }

.gpu-product-story {
  display: grid;
  gap: 14px;
  margin: 5px 0 13px;
  padding: 15px;
  border: 1px solid rgba(var(--gpu-accent-rgb), 0.18);
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(var(--gpu-accent-rgb), 0.08), rgba(255,255,255,0.025));
}

.gpu-product-story__lead {
  margin: 0;
  color: #ecf8ff;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.34;
}

.gpu-product-story section { display: grid; gap: 6px; }
.gpu-product-story section > b { color: var(--gpu-accent); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; }
.gpu-product-story section > p { margin: 0; color: rgba(222, 239, 250, 0.77); font-size: 11px; font-weight: 600; line-height: 1.56; }
.gpu-product-story ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gpu-product-story li { position: relative; padding-left: 14px; color: rgba(225, 240, 250, 0.78); font-size: 11px; font-weight: 600; line-height: 1.48; }
.gpu-product-story li::before { content: ''; position: absolute; top: 0.56em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--gpu-accent); box-shadow: 0 0 9px rgba(var(--gpu-accent-rgb), 0.75); }

.gpu-product-story__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.gpu-product-story__facts span { display: flex; align-items: center; min-height: 45px; padding: 8px 9px; border: 1px solid rgba(186, 225, 250, 0.1); border-radius: 8px; background: rgba(220, 241, 255, 0.035); color: rgba(225, 242, 252, 0.8); font-size: 9px; font-weight: 700; line-height: 1.35; }

.gpu-product-story blockquote { margin: 0; padding: 11px 12px; border-left: 2px solid var(--gpu-accent); border-radius: 0 7px 7px 0; background: rgba(var(--gpu-accent-rgb), 0.08); color: rgba(234, 247, 255, 0.9); font-size: 11px; font-style: italic; font-weight: 650; line-height: 1.5; }

.gpu-market-card footer { padding-top: 14px; }

.gpu-market-card button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 46px;
  padding: 0 15px 0 17px;
  border-color: rgba(var(--gpu-accent-rgb), 0.47);
  border-radius: 9px;
  background: linear-gradient(105deg, rgba(var(--gpu-accent-rgb), 0.27), rgba(var(--gpu-accent-rgb), 0.1));
  color: #f0faff;
  font-size: 9px;
  letter-spacing: 0.145em;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.gpu-market-card button > i { color: var(--gpu-accent); font-size: 18px; font-style: normal; line-height: 1; transition: transform 180ms ease; }
.gpu-market-card button:hover { border-color: var(--gpu-accent); background: rgba(var(--gpu-accent-rgb), 0.29); }
.gpu-market-card button:hover > i { transform: translateX(4px); }

@media (max-width: 1250px) {
  .gpu-market-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .gpu-market-grid { grid-template-columns: 1fr; gap: 12px; }
  .gpu-market-card { min-height: 0; padding: 17px; }
  .gpu-market-card__hardware { min-height: 0; padding: 14px 0; }
  .gpu-market-card__hardware h3 { min-height: 0; font-size: 20px; }
  .gpu-market-card__stats { grid-template-columns: 1fr; gap: 10px; margin-top: 13px; }
  .gpu-market-card__stats div { min-height: 0; padding: 18px 22px; }
  .gpu-market-card__stats b { font-size: 20px; }
  .gpu-market-card__stats i { font-size: 10px; }
  .gpu-market-card__stats small { font-size: 11px; }
  .gpu-market-card__details summary { min-height: 44px; font-size: 11px; }
  .gpu-product-story { gap: 16px; padding: 17px; }
  .gpu-product-story__lead { font-size: 17px; }
  .gpu-product-story section > b { font-size: 10px; }
  .gpu-product-story section > p, .gpu-product-story li, .gpu-product-story blockquote { font-size: 13px; }
  .gpu-product-story__facts { grid-template-columns: 1fr; }
  .gpu-product-story__facts span { min-height: 0; padding: 11px 12px; font-size: 11px; }
}

.ai-portfolio-section--holdings {
  border-color: rgba(139, 211, 255, 0.16);
  background: radial-gradient(circle at 94% 9%, rgba(85, 181, 255, 0.1), transparent 24%), rgba(5, 11, 19, 0.66);
}

.gpu-empty {
  min-height: 208px;
  isolation: isolate;
  border-color: rgba(144, 211, 255, 0.18);
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 0%, rgba(117, 204, 255, 0.13), transparent 42%),
    linear-gradient(145deg, rgba(16, 40, 59, 0.78), rgba(5, 14, 24, 0.86));
}

.gpu-empty::before {
  content: 'GPU';
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  margin: 0 auto 5px;
  border: 1px solid rgba(142, 213, 255, 0.38);
  border-radius: 12px;
  background: rgba(123, 204, 255, 0.09);
  box-shadow: 0 0 0 8px rgba(115, 200, 255, 0.035), 0 0 28px rgba(101, 191, 255, 0.14);
  color: #b8eaff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.gpu-empty strong { color: #f0f9ff; font-size: 17px; letter-spacing: -0.025em; }
.gpu-empty span { max-width: 420px; color: rgba(212, 235, 249, 0.63); font-size: 12px; line-height: 1.55; }

.gpu-holding {
  padding: 20px;
  border-color: rgba(143, 220, 255, 0.2);
  border-radius: 13px;
  background: radial-gradient(circle at 100% 0%, rgba(85, 202, 255, 0.13), transparent 29%), linear-gradient(145deg, rgba(15, 42, 61, 0.88), rgba(5, 14, 24, 0.9));
}

.gpu-holding__grid div { border: 1px solid rgba(150, 214, 250, 0.1); border-radius: 9px; background: rgba(207, 235, 255, 0.04); }

/* AI Labs dashboard: mobile hierarchy and compact yield detail. */
.ailabs-portfolio-page .ailabs-shell { padding-bottom: 112px; }
.ai-portfolio-hero { margin: 18px 0 28px; text-align: center; }
.ai-portfolio-hero > span, .ai-portfolio-section__head > div > span { color: rgba(142,197,255,.84); font-size: 10px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.ai-portfolio-hero h1 { margin: 8px 0 10px; color: #f1f8ff; font-family: Georgia,serif; font-size: clamp(46px,7vw,84px); letter-spacing: .08em; line-height: .9; text-transform: uppercase; }
.ai-portfolio-hero h1 em { color: #9fd2ff; font-style: normal; }
.ai-portfolio-hero p { max-width: 650px; margin: 0 auto; color: rgba(218,233,247,.72); font-size: 14px; line-height: 1.65; }
.ai-portfolio-main { display: grid; gap: 20px; }
.ai-portfolio-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap: 12px; }
.ai-portfolio-summary article, .gpu-market-card, .gpu-holding, .gpu-empty { position:relative; overflow:hidden; border:1px solid rgba(183,222,255,.13); border-radius:12px; background:linear-gradient(145deg,rgba(15,29,45,.82),rgba(5,11,19,.76)); box-shadow:0 20px 58px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.04); }
.ai-portfolio-summary article { min-height:126px; padding:18px; display:grid; align-content:center; gap:8px; }
.ai-portfolio-summary span, .ai-portfolio-summary small, .gpu-holding i, .gpu-market-card i { color:rgba(208,228,244,.62); font-size:10px; font-style:normal; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.ai-portfolio-summary strong { color:#eef8ff; font-size:22px; letter-spacing:-.04em; }
.ai-portfolio-summary small { line-height:1.45; letter-spacing:.02em; text-transform:none; }
.ai-portfolio-section { padding:24px; border:1px solid rgba(183,222,255,.11); border-radius:14px; background:rgba(5,11,19,.58); box-shadow:0 26px 74px rgba(0,0,0,.25); backdrop-filter:blur(14px); }
.ai-portfolio-section__head { display:flex; justify-content:space-between; gap:24px; margin-bottom:20px; padding-bottom:17px; border-bottom:1px solid rgba(183,222,255,.1); }
.ai-portfolio-section__head h2 { margin:6px 0 0; color:#eef8ff; font-size:22px; letter-spacing:-.03em; }
.ai-portfolio-section__head p { max-width:410px; margin:0; color:rgba(218,233,247,.65); font-size:12px; line-height:1.62; text-align:right; }
.gpu-market-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.gpu-market-card { min-height:352px; padding:22px; display:flex; flex-direction:column; isolation:isolate; }
.gpu-market-card__glow { position:absolute; inset:-60% -50% auto auto; z-index:-1; width:230px; height:230px; border-radius:50%; background:radial-gradient(circle,rgba(142,197,255,.22),transparent 67%); }
.gpu-market-card > span { color:#9fd2ff; font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }
.gpu-market-card h3 { margin:9px 0 5px; color:#f0f8ff; font-size:20px; }
.gpu-market-card > p { margin:0 0 20px; color:#d8efff; font-size:20px; font-weight:800; }
.gpu-market-card > p small { color:rgba(214,236,255,.55); font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; }
.gpu-market-card__stats { display:grid; gap:10px; }
.gpu-market-card__stats div { display:grid; gap:3px; padding:10px 0; border-top:1px solid rgba(183,222,255,.09); }
.gpu-market-card__stats b { color:rgba(237,247,255,.9); font-size:12px; }
.gpu-market-card__stats small { color:rgba(195,223,245,.52); font-size:10px; line-height:1.4; }
.gpu-market-card__details { display:grid; gap:6px; padding:10px 0 0; color:rgba(218,237,251,.7); font-size:11px; line-height:1.45; }
.gpu-market-card__details summary { color:rgba(161,211,255,.9); font-size:10px; font-weight:800; letter-spacing:.08em; cursor:pointer; text-transform:uppercase; }
.gpu-market-card__details summary::-webkit-details-marker { display:none; }
.gpu-market-card__details summary::after { content:'+'; float:right; font-size:14px; line-height:.7; }
.gpu-market-card__details[open] summary::after { content:'−'; }
.gpu-market-card footer { margin-top:auto; padding-top:16px; display:grid; gap:12px; }
.gpu-market-card footer small { color:rgba(211,230,245,.6); font-size:11px; line-height:1.5; }
.gpu-market-card button, .gpu-purchase-submit { min-height:42px; border:1px solid rgba(142,197,255,.34); border-radius:8px; background:linear-gradient(135deg,rgba(96,175,245,.24),rgba(142,197,255,.1)); color:#eaf7ff; font:inherit; font-size:11px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; cursor:pointer; }
.gpu-market-card button:hover, .gpu-purchase-submit:hover { background:rgba(142,197,255,.24); }
.gpu-holdings { display:grid; gap:12px; }
.gpu-holding { padding:18px; }
.gpu-holding header, .gpu-holding footer { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.gpu-holding header span { color:#9fd2ff; font-size:10px; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }.gpu-holding h3 { margin:5px 0 0; color:#eff8ff; font-size:18px; }.gpu-holding__status { padding:6px 9px; border:1px solid rgba(132,213,177,.25); border-radius:999px; color:#a9ecc8; background:rgba(84,185,129,.09); font-size:10px; letter-spacing:.1em; text-transform:uppercase; }.gpu-holding__status.is-setup { border-color:rgba(255,215,135,.28); color:#ffe1a2; background:rgba(255,197,97,.09); }
.gpu-holding__grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:18px 0; }.gpu-holding__grid div { display:grid; gap:5px; padding:12px; border-radius:8px; background:rgba(214,236,255,.035); }.gpu-holding__grid b { color:#ecf7ff; font-size:13px; }.gpu-holding footer { padding-top:14px; border-top:1px solid rgba(183,222,255,.1); color:rgba(214,236,255,.64); font-size:11px; }.gpu-holding footer strong { color:#a8dcff; }
.gpu-empty { min-height:156px; display:grid; place-content:center; gap:8px; padding:24px; text-align:center; }.gpu-empty strong { color:#e9f6ff; font-size:16px; }.gpu-empty span { color:rgba(214,236,255,.6); font-size:13px; }
.gpu-pool-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.gpu-pool-card { padding:17px; border:1px solid rgba(156,211,255,.16); border-radius:10px; background:rgba(142,197,255,.045); }.gpu-pool-card header,.gpu-pool-card footer { display:flex; justify-content:space-between; gap:14px; }.gpu-pool-card header span { display:block; color:#9fd2ff; font-size:10px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }.gpu-pool-card header strong { display:block; margin-top:5px; color:#edf8ff; font-size:13px; }.gpu-pool-card header>b { color:#d7efff; font-size:24px; }.gpu-pool-progress { height:9px; margin:16px 0 12px; overflow:hidden; border-radius:999px; background:rgba(214,236,255,.09); }.gpu-pool-progress i { display:block; width:var(--pool-progress); height:100%; border-radius:inherit; background:linear-gradient(90deg,#5eaef5,#d2efff); box-shadow:0 0 18px rgba(142,197,255,.7); }.gpu-pool-card footer { color:rgba(215,234,249,.65); font-size:11px; line-height:1.5; }.gpu-pool-card footer strong { color:#b7e1ff; text-align:right; }.gpu-pool-card.is-ready_for_order { border-color:rgba(255,213,132,.38); background:rgba(255,197,98,.055); }
.gpu-purchase-modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:28px; background:rgba(1,4,8,.72); backdrop-filter:blur(12px); }.gpu-purchase-modal[hidden]{display:none}.gpu-purchase-modal__dialog { position:relative; width:min(100%,560px); max-height:calc(100dvh - 56px); overflow:auto; padding:28px; border:1px solid rgba(157,210,255,.25); border-radius:14px; background:linear-gradient(145deg,#102235,#070e17); box-shadow:0 32px 100px rgba(0,0,0,.56); }.gpu-purchase-modal__dialog > span { color:#9fd2ff; font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }.gpu-purchase-modal h2 { margin:8px 0; color:#f0f8ff; font-size:28px; }.gpu-purchase-modal h2 + p { margin:0 0 20px; color:rgba(218,233,247,.7); }.gpu-purchase-modal__close { position:absolute; top:12px; right:14px; border:0; background:none; color:#d9edff; font-size:26px; cursor:pointer; }.gpu-purchase-modal label { display:grid; gap:8px; color:#dff1ff; font-size:12px; font-weight:800; }.gpu-amount-input { display:flex; align-items:center; border:1px solid rgba(157,210,255,.2); border-radius:8px; background:rgba(214,236,255,.05); }.gpu-amount-input input { width:100%; padding:13px; border:0; outline:0; background:transparent; color:#f2f9ff; font:inherit; font-size:18px; font-weight:800; }.gpu-amount-input b { padding-right:14px; color:#9fd2ff; }.gpu-purchase-modal label small { color:rgba(214,236,255,.54); font-weight:500; }.gpu-purchase-preview { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:18px 0; }.gpu-purchase-preview div { padding:12px; border:1px solid rgba(157,210,255,.1); border-radius:8px; background:rgba(214,236,255,.035); }.gpu-purchase-preview span { display:block; margin-bottom:6px; color:rgba(214,236,255,.57); font-size:9px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }.gpu-purchase-preview strong { color:#eaf7ff; font-size:12px; }.gpu-purchase-disclaimer { margin:0 0 14px; color:rgba(222,237,248,.66); font-size:11px; line-height:1.55; }.gpu-purchase-check { grid-template-columns:auto 1fr; align-items:start; margin-bottom:14px; font-weight:600!important; line-height:1.45; }.gpu-purchase-check input { margin:2px 0 0; accent-color:#8ec5ff; }.gpu-purchase-message { display:block; min-height:18px; margin:0 0 8px; color:#ffcf99; font-size:11px; }.gpu-purchase-submit { width:100%; }
.gpu-purchase-pool { margin:0 0 16px; padding:13px 14px; border:1px solid rgba(142,197,255,.16); border-radius:10px; background:linear-gradient(110deg,rgba(95,174,245,.1),rgba(214,239,255,.025)); }.gpu-purchase-pool header { display:flex; align-items:center; justify-content:space-between; gap:12px; }.gpu-purchase-pool header span { display:block; color:#9fd2ff; font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }.gpu-purchase-pool header strong { display:block; margin-top:4px; color:#ebf7ff; font-size:12px; }.gpu-purchase-pool header>b { color:#d8f0ff; font-size:21px; }.gpu-purchase-pool__progress { height:7px; margin:11px 0 8px; overflow:hidden; border-radius:999px; background:rgba(214,236,255,.1); }.gpu-purchase-pool__progress i { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#5eaef5,#d2efff); box-shadow:0 0 14px rgba(142,197,255,.68); transition:width .3s ease; }.gpu-purchase-pool small { color:rgba(215,234,249,.65); font-size:10px; line-height:1.4; }
.gpu-market-card__details { display:block; padding-top:12px; }.gpu-market-card__detail-list { display:grid; gap:6px; margin-top:10px; }.gpu-market-card__detail-list > div { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:8px 9px; border:1px solid rgba(157,210,255,.09); border-radius:7px; background:rgba(214,236,255,.03); }.gpu-market-card__detail-list i { color:rgba(195,223,245,.58); font-size:9px; font-style:normal; line-height:1.35; }.gpu-market-card__detail-list b { color:#e8f7ff; font-size:10px; text-align:right; white-space:nowrap; }
.gpu-purchase-pool__remaining { margin:9px 0 0; color:#d8efff; font-size:13px; font-weight:800; line-height:1.4; letter-spacing:.01em; }.gpu-purchase-pool__costs { display:grid; gap:5px; margin:13px 0 0; padding-top:12px; border-top:1px solid rgba(157,210,255,.12); color:rgba(215,234,249,.7); font-size:11px; line-height:1.55; }.gpu-purchase-pool__costs strong { color:#e3f4ff; font-size:11px; letter-spacing:.02em; }.gpu-purchase-pool__costs span { display:block; }
.ai-autopilot-card { isolation:isolate; background:radial-gradient(circle at 82% 20%,rgba(113,206,255,.2),transparent 34%),linear-gradient(145deg,rgba(12,39,62,.92),rgba(4,13,25,.84))!important; border-color:rgba(125,211,255,.27)!important; }.ai-autopilot-card::before { content:''; position:absolute; z-index:-1; width:130px; height:130px; right:-42px; bottom:-46px; border:1px solid rgba(132,215,255,.3); border-radius:50%; box-shadow:0 0 0 13px rgba(106,195,255,.04),0 0 0 28px rgba(106,195,255,.025); animation:ai-autopilot-orbit 8s linear infinite; }.ai-autopilot-card.is-enabled { border-color:rgba(145,236,255,.55)!important; box-shadow:0 20px 58px rgba(0,0,0,.28),0 0 28px rgba(78,193,255,.13),inset 0 1px 0 rgba(255,255,255,.08)!important; }.ai-autopilot-card__core { display:flex; align-items:center; gap:9px; }.ai-autopilot-card__core i { width:9px; height:9px; border-radius:50%; background:#668398; box-shadow:0 0 0 5px rgba(125,211,255,.06); }.ai-autopilot-card.is-enabled .ai-autopilot-card__core i { background:#b9f5ff; box-shadow:0 0 0 5px rgba(126,224,255,.12),0 0 17px rgba(126,224,255,.9); animation:ai-autopilot-pulse 1.8s ease-in-out infinite; }.ai-autopilot-card strong { color:#dff6ff; font-size:21px; letter-spacing:.12em; }.ai-autopilot-card button { justify-self:start; margin-top:2px; padding:0; border:0; background:none; color:#a9e4ff; font:inherit; font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; cursor:pointer; }.ai-autopilot-card button:disabled { color:rgba(184,213,230,.38); cursor:not-allowed; }.gpu-autopilot-modal { position:fixed; inset:0; z-index:101; display:grid; place-items:center; padding:28px; background:rgba(1,4,8,.76); backdrop-filter:blur(12px); }.gpu-autopilot-modal[hidden] { display:none; }.gpu-autopilot-modal__dialog { position:relative; width:min(100%,520px); max-height:calc(100dvh - 56px); overflow:auto; padding:28px; border:1px solid rgba(142,211,255,.3); border-radius:14px; background:radial-gradient(circle at 90% 0,rgba(87,190,255,.14),transparent 32%),linear-gradient(145deg,#10283e,#070e17); box-shadow:0 32px 100px rgba(0,0,0,.6); }.gpu-autopilot-modal__dialog > span { color:#9fd2ff; font-size:10px; font-weight:900; letter-spacing:.16em; text-transform:uppercase; }.gpu-autopilot-modal h2 { margin:8px 0; color:#f0f8ff; font-size:27px; }.gpu-autopilot-modal h2 + p { margin:0 0 20px; color:rgba(218,233,247,.72); font-size:12px; line-height:1.6; }.gpu-autopilot-modal label { display:grid; gap:8px; color:#dff1ff; font-size:12px; font-weight:800; }.gpu-autopilot-modal select { width:100%; min-height:46px; padding:10px 12px; border:1px solid rgba(157,210,255,.2); border-radius:8px; background:rgba(214,236,255,.06); color:#f2f9ff; font:inherit; }.gpu-autopilot-modal label small { color:rgba(214,236,255,.54); font-weight:500; }.gpu-autopilot-modal__actions { display:grid; grid-template-columns:1fr; gap:9px; }.gpu-autopilot-disable { min-height:38px; border:1px solid rgba(255,194,141,.22); border-radius:8px; background:rgba(255,171,97,.07); color:#ffd5b1; font:inherit; font-size:11px; font-weight:800; cursor:pointer; }
.gpu-autopilot-rule { display:grid; gap:3px; margin:14px 0; padding:11px 12px; border:1px solid rgba(157,210,255,.12); border-radius:9px; background:rgba(214,236,255,.035); }.gpu-autopilot-rule span { color:#9fd2ff; font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }.gpu-autopilot-rule strong { color:#e8f6ff; font-size:12px; }.gpu-autopilot-rule small { color:rgba(214,236,255,.6); font-size:10px; line-height:1.45; }.gpu-autopilot-confirm { grid-template-columns:auto 1fr!important; gap:10px!important; margin:0 0 16px; padding:12px; border:1px solid rgba(126,218,255,.2); border-radius:9px; background:linear-gradient(110deg,rgba(94,190,255,.1),rgba(214,236,255,.025)); font-weight:600!important; }.gpu-autopilot-confirm input { margin:3px 0 0; accent-color:#91ddff; }.gpu-autopilot-confirm span { display:grid; gap:4px; }.gpu-autopilot-confirm strong { color:#e7f7ff; font-size:12px; }.gpu-autopilot-confirm small { color:rgba(214,236,255,.68); font-size:10px; line-height:1.45; }
@keyframes ai-autopilot-orbit { to { transform:rotate(360deg); } } @keyframes ai-autopilot-pulse { 50% { transform:scale(1.22); opacity:.72; } }
body.has-gpu-modal { overflow:hidden; }
@media(max-width:760px){.ai-portfolio-hero{margin:10px 0 20px}.ai-portfolio-hero h1{font-size:clamp(40px,14vw,58px)}.ai-portfolio-summary{grid-template-columns:1fr 1fr;gap:9px}.ai-portfolio-summary article{min-height:116px;padding:14px}.ai-portfolio-summary strong{font-size:18px}.ai-portfolio-section{padding:16px;border-radius:10px}.ai-portfolio-section__head{display:grid;gap:10px;margin-bottom:15px}.ai-portfolio-section__head p{text-align:left}.gpu-market-grid{grid-template-columns:1fr}.gpu-market-card{min-height:0;padding:18px}.gpu-holding{padding:14px}.gpu-holding__grid{grid-template-columns:1fr 1fr;margin:14px 0}.gpu-holding footer{align-items:flex-start;flex-direction:column}.gpu-purchase-modal{padding:20px}.gpu-purchase-modal__dialog{width:100%;max-height:calc(100dvh - 40px);padding:22px 18px}.gpu-purchase-preview{grid-template-columns:1fr}.gpu-purchase-modal h2{font-size:24px}}
@media(max-width:760px){.gpu-pool-list{grid-template-columns:1fr}.gpu-pool-card footer{align-items:flex-start;flex-direction:column}.gpu-pool-card footer strong{text-align:left}}
.ai-yield-details summary {
  display: none;
}

@media (max-width: 760px) {
  .ai-account-bar { order: -5; }
  .ai-investment-card { order: -4; }
  .ai-utilization-card { order: -3; }
  .ai-products-card { order: -2; align-self: start; }
  .ai-yield-card { order: -1; }

  .ai-products-card .ai-product-list {
    gap: 10px;
  }

  .ai-products-card .ai-product-row {
    min-height: 0;
    padding: 12px;
  }

  .ai-yield-details {
    margin-top: 10px;
    border: 1px solid rgba(142, 197, 255, 0.14);
    border-radius: 8px;
    background: rgba(214, 236, 255, 0.025);
  }

  .ai-yield-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0 13px;
    color: rgba(193, 226, 255, 0.9);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    list-style: none;
    text-transform: uppercase;
  }

  .ai-yield-details summary::-webkit-details-marker { display: none; }

  .ai-yield-details summary svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform 0.2s ease;
  }

  .ai-yield-details[open] summary {
    border-bottom: 1px solid rgba(142, 197, 255, 0.12);
  }

  .ai-yield-details[open] summary svg { transform: rotate(180deg); }

  .ai-yield-details .ai-yield-grid {
    padding: 11px;
  }

  .ai-yield-card--settlement {
    min-height: 0;
  }

  .ai-yield-settlement {
    grid-template-columns: 1fr;
    grid-template-areas: "value";
    gap: 15px;
    min-height: 0;
  }

  .ai-yield-settlement__value {
    min-height: 126px;
    padding: 10px 12px;
  }

  .ai-yield-ledger {
    gap: 5px;
    padding: 4px 10px 6px 16px;
  }

  .ai-yield-ledger strong {
    font-size: clamp(44px, 15vw, 62px);
  }

  .ai-yield-card--settlement .ai-yield-details summary {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* Final override: AI Labs yield statement must stay list-based, not card/grid-based. */
.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px 14px 2px;
  border: 1px solid rgba(205, 234, 255, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(4, 12, 20, 0.24);
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid__head,
.ai-yield-card--settlement details.ai-yield-details .ai-yield-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 18px;
  min-width: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid__head {
  min-height: 30px;
  padding: 0 2px 5px;
  border-top: 0;
  border-bottom: 1px solid rgba(205, 234, 255, 0.1);
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-row {
  min-height: 38px;
  padding: 0 2px;
  border-top: 0;
  border-bottom: 1px solid rgba(205, 234, 255, 0.075);
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-row:last-child {
  border-bottom: 0;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid__head span,
.ai-yield-card--settlement details.ai-yield-details .ai-yield-row span,
.ai-yield-card--settlement details.ai-yield-details .ai-yield-row strong {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid__head span {
  color: rgba(174, 206, 228, 0.54);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid__head span:last-child {
  text-align: right;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-row span {
  color: rgba(217, 233, 244, 0.72);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-row strong {
  color: rgba(244, 251, 255, 0.96);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid div::after,
.ai-yield-card--settlement details.ai-yield-details .ai-yield-grid i {
  display: none;
}

/* Login refinements — maintained directly in this stylesheet. */
body.login-page--ai .auth-card {
  background: radial-gradient(
    circle at top,
    rgba(142, 197, 255, 0.18) 0,
    rgba(2, 6, 12, 0.18) 45%,
    rgba(2, 5, 10, 0.75) 100%
  ) !important;
  box-shadow:
    0 0 0 1px rgba(142, 197, 255, 0.28),
    0 12px 26px rgba(0, 0, 0, 0.85) !important;
}

body.login-page--ai .auth-card::before {
  border-color: rgba(142, 197, 255, 0.18) !important;
}

body.login-page--ai .auth-card::after {
  background: linear-gradient(90deg, transparent, rgba(142, 197, 255, 0.42), transparent) !important;
}

body.login-page--ai .auth-trust-item {
  background:
    linear-gradient(180deg, rgba(142, 197, 255, 0.09), rgba(2, 6, 12, 0.42) 46%),
    rgba(2, 6, 12, 0.42) !important;
  border-color: rgba(142, 197, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(214, 236, 255, 0.05) !important;
}

body.login-page--ai .auth-panel input:not([type="checkbox"]) {
  background: rgba(7, 16, 27, 0.52) !important;
  border-color: rgba(142, 197, 255, 0.18) !important;
  color: #f5f9ff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.login-page--ai .auth-panel input:not([type="checkbox"])::placeholder {
  color: rgba(214, 236, 255, 0.56) !important;
}

body.login-page--ai .auth-panel input:not([type="checkbox"]):focus {
  background: rgba(9, 21, 35, 0.64) !important;
  border-color: rgba(142, 197, 255, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(142, 197, 255, 0.18),
    0 0 22px rgba(142, 197, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

body.login-page:not(.login-page--ai) .auth-panel input:not([type="checkbox"]) {
  background: rgba(20, 17, 6, 0.52) !important;
  border-color: rgba(240, 207, 102, 0.18) !important;
  color: #fff8e6 !important;
  box-shadow: inset 0 1px 0 rgba(255, 248, 220, 0.06) !important;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

body.login-page:not(.login-page--ai) .auth-panel input:not([type="checkbox"])::placeholder {
  color: rgba(244, 232, 198, 0.56) !important;
}

body.login-page:not(.login-page--ai) .auth-panel input:not([type="checkbox"]):focus {
  background: rgba(27, 22, 7, 0.64) !important;
  border-color: rgba(240, 207, 102, 0.42) !important;
  box-shadow:
    0 0 0 1px rgba(240, 207, 102, 0.18),
    0 0 22px rgba(212, 175, 55, 0.1),
    inset 0 1px 0 rgba(255, 248, 220, 0.08) !important;
}

/* Final override: AI Labs mentor contact selector inside registration. */
body.login-page--ai .auth-panel .mentor-contact-card {
  position: relative !important;
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 12px 0 !important;
  padding: 14px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(142, 197, 255, 0.24) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 92% 0, rgba(142, 197, 255, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(13, 32, 52, 0.92), rgba(4, 10, 18, 0.84)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 16px 38px rgba(0, 0, 0, 0.32) !important;
  text-align: left !important;
}

body.login-page--ai .auth-panel .mentor-contact-card__head {
  display: grid !important;
  gap: 6px !important;
}

body.login-page--ai .auth-panel .mentor-contact-card__head span {
  color: #9edcff !important;
  font-size: 9px !important;
  font-weight: 950 !important;
  letter-spacing: 0.14em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

body.login-page--ai .auth-panel .mentor-contact-card__head p {
  margin: 0 !important;
  color: rgba(225, 240, 250, 0.76) !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.5 !important;
}

body.login-page--ai .auth-panel .mentor-contact-select {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid rgba(157, 215, 248, 0.2) !important;
  border-radius: 12px !important;
  background: rgba(214, 236, 255, 0.06) !important;
  color: #f2fbff !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  text-align: left !important;
  animation: none !important;
}

body.login-page--ai .auth-panel .mentor-contact-select > span {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

body.login-page--ai .auth-panel .mentor-contact-select b,
body.login-page--ai .auth-panel .mentor-contact-options b {
  display: block !important;
  color: #f2fbff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
}

body.login-page--ai .auth-panel .mentor-contact-select small,
body.login-page--ai .auth-panel .mentor-contact-options small,
body.login-page--ai .auth-panel .mentor-contact-hint {
  display: block !important;
  margin: 0 !important;
  color: rgba(213, 235, 248, 0.64) !important;
  font-size: 10px !important;
  font-weight: 650 !important;
  line-height: 1.4 !important;
}

body.login-page--ai .auth-panel .mentor-contact-select svg {
  flex: 0 0 auto !important;
  width: 17px !important;
  height: 17px !important;
  color: #9edcff !important;
}

body.login-page--ai .auth-panel .mentor-contact-options {
  display: grid !important;
  gap: 7px !important;
  margin: 0 !important;
}

body.login-page--ai .auth-panel .mentor-contact-options[hidden],
body.login-page--ai .auth-panel .mentor-contact-value[hidden] {
  display: none !important;
}

body.login-page--ai .auth-panel .mentor-contact-options button {
  display: grid !important;
  gap: 3px !important;
  width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(157, 215, 248, 0.14) !important;
  border-radius: 10px !important;
  background: rgba(4, 12, 22, 0.74) !important;
  text-align: left !important;
  box-shadow: none !important;
  animation: none !important;
}

body.login-page--ai .auth-panel .mentor-contact-value {
  margin: 0 !important;
}

@media (max-width: 900px) {
  body.login-page--ai {
    background:
      linear-gradient(180deg, rgba(2, 6, 12, 0.18), rgba(2, 5, 10, 0.38)),
      url('../images/empire-ai-labs-infrastructure-mobile-bg.png') 54% 12px / 360% auto fixed no-repeat,
      #05070b !important;
  }

  body.login-page--ai::before {
    background: url('../images/empire-ai-labs-infrastructure-mobile-bg.png') 54% 12px / 360% auto no-repeat !important;
  }
}

/* AI Labs network command card — maintained directly in this stylesheet. */
.ai-network-card {
  grid-column: span 6;
  min-height: 318px;
  border-color: rgba(142, 197, 255, 0.16);
  background:
    radial-gradient(circle at 13% 22%, rgba(142, 197, 255, 0.16), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(214, 236, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(15, 31, 50, 0.8), rgba(5, 11, 19, 0.86));
}

.ai-network-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background:
    linear-gradient(rgba(214, 236, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214, 236, 255, 0.045) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(120deg, #000, transparent 82%);
}

.ai-network-command {
  display: grid;
  grid-template-columns: 174px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ai-network-orbit {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border: 1px solid rgba(142, 197, 255, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at center, rgba(142, 197, 255, 0.13), transparent 31%),
    linear-gradient(135deg, rgba(214, 236, 255, 0.05), rgba(142, 197, 255, 0.02));
}

.ai-network-orbit::before,
.ai-network-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(142, 197, 255, 0.19);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ai-network-orbit::before {
  width: 118px;
  height: 118px;
  box-shadow: 0 0 30px rgba(142, 197, 255, 0.08), inset 0 0 20px rgba(142, 197, 255, 0.05);
}

.ai-network-orbit::after {
  width: 72px;
  height: 72px;
  border-color: rgba(214, 236, 255, 0.25);
}

.ai-network-orbit__core {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(214, 236, 255, 0.42);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 28%, #e9f6ff, #82bfff 46%, #255b91 100%);
  box-shadow: 0 0 28px rgba(142, 197, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.68);
  color: #06111d;
  transform: translate(-50%, -50%);
}

.ai-network-orbit__core strong {
  font-size: 22px;
  font-weight: 950;
  line-height: 0.9;
}

.ai-network-orbit__core span {
  margin-top: 2px;
  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.ai-network-orbit__node {
  position: absolute;
  z-index: 3;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(232, 246, 255, 0.92);
  border-radius: 50%;
  background: #78b8f8;
  box-shadow: 0 0 16px rgba(142, 197, 255, 0.78);
}

.ai-network-orbit__node--one { top: 20px; left: 37px; }
.ai-network-orbit__node--two { top: 31px; right: 27px; }
.ai-network-orbit__node--three { right: 35px; bottom: 25px; }
.ai-network-orbit__node--four { bottom: 21px; left: 31px; }

.ai-network-card .ai-network-stats {
  position: relative;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(186, 225, 250, 0.13);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(142, 197, 255, 0.075), transparent 32%),
    rgba(3, 10, 18, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.055), 0 16px 34px rgba(0,0,0,0.14);
}

.ai-network-card .ai-network-stats::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, rgba(142,197,255,0.08), rgba(214,236,255,0.42), rgba(142,197,255,0.08));
  box-shadow: 0 0 18px rgba(142,197,255,0.16);
}

.ai-network-card .ai-network-stats div {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  align-content: center;
  gap: 12px;
  padding: 13px 15px 13px 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ai-network-card .ai-network-stats div + div {
  border-top: 1px solid rgba(186, 225, 250, 0.09);
}

.ai-network-card .ai-network-stats div::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 11px;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(233, 248, 255, 0.82);
  border-radius: 50%;
  background: #8dd6ff;
  box-shadow: 0 0 0 4px rgba(142,197,255,0.06), 0 0 15px rgba(142,197,255,0.58);
  transform: translateY(-50%);
}

.ai-network-card .ai-network-stats div:nth-child(2)::before {
  background: #c9e7ff;
  box-shadow: 0 0 0 4px rgba(201,231,255,0.045), 0 0 14px rgba(201,231,255,0.42);
}

.ai-network-card .ai-network-stats div:nth-child(3)::before {
  background: #9fe6d8;
  box-shadow: 0 0 0 4px rgba(159,230,216,0.05), 0 0 14px rgba(159,230,216,0.38);
}

.ai-network-card .ai-network-stats span {
  display: grid;
  gap: 3px;
  color: rgba(206, 228, 243, 0.74);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.095em;
  line-height: 1.25;
  text-transform: uppercase;
}

.ai-network-card .ai-network-stats span b {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.ai-network-card .ai-network-stats span small {
  color: rgba(206, 228, 243, 0.52);
  font-size: 9px;
  font-weight: 560;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
}

.ai-network-card .ai-network-stats strong {
  color: #eff8ff;
  font-size: clamp(27px, 2.8vw, 38px);
  font-weight: 950;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: right;
  text-shadow: 0 0 24px rgba(142, 197, 255, 0.24);
}

.ai-network-card .ai-network-stats div:nth-child(2) strong {
  color: rgba(221, 242, 255, 0.94);
  text-shadow: 0 0 18px rgba(201, 231, 255, 0.16);
}

.ai-network-card .ai-team-yield {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  margin-top: 16px;
  padding: 0;
  border: 1px solid rgba(142, 197, 255, 0.24);
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 207, 255, 0.2), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(199, 232, 255, 0.08), transparent 37%),
    linear-gradient(135deg, rgba(214, 236, 255, 0.07), rgba(255,255,255,0.018)),
    rgba(3, 10, 18, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(214,236,255,0.09),
    0 20px 48px rgba(0,0,0,0.18);
}

.ai-network-card .ai-team-yield::before {
  content: '';
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(142, 197, 255, 0.82), transparent);
  box-shadow: 0 0 22px rgba(142,197,255,0.24);
}

.ai-network-card .ai-team-yield::after {
  content: 'NETWORK YIELD';
  position: absolute;
  right: 15px;
  bottom: 11px;
  color: rgba(214, 236, 255, 0.055);
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.12em;
  pointer-events: none;
}

.ai-network-card .ai-team-yield-main,
.ai-network-card .ai-team-yield-potential {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-content: center;
  gap: 7px 18px;
  min-width: 0;
  padding: 17px 17px 17px 22px;
}

.ai-network-card .ai-team-yield-main > span,
.ai-network-card .ai-team-yield-potential > span {
  color: rgba(185, 221, 255, 0.68);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.ai-network-card .ai-team-yield-main strong {
  justify-self: end;
  color: #e9f6ff;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-align: right;
  text-transform: uppercase;
}

.ai-network-card .ai-team-yield small {
  grid-column: 1 / -1;
  color: rgba(214, 225, 238, 0.66);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.42;
}

.ai-network-card .ai-team-yield-potential {
  border-top: 1px solid rgba(186, 225, 250, 0.09);
  background: linear-gradient(90deg, rgba(142, 197, 255, 0.055), transparent 55%);
}

.ai-network-card .ai-team-yield-potential strong {
  justify-self: end;
  color: #f0f9ff;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.045em;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  text-shadow: 0 0 22px rgba(142, 197, 255, 0.18);
}

.ai-network-card .ai-team-yield.is-locked::before {
  background: linear-gradient(180deg, transparent, rgba(174, 194, 210, 0.55), transparent);
  box-shadow: 0 0 16px rgba(174, 194, 210, 0.12);
}

.ai-network-card .ai-team-yield.is-unlocked::before {
  background: linear-gradient(180deg, transparent, rgba(126, 236, 207, 0.88), transparent);
  box-shadow: 0 0 22px rgba(126, 236, 207, 0.22);
}

.ai-network-card .ai-team-yield.is-unlocked .ai-team-yield-main strong {
  color: #bfffea;
  text-shadow: 0 0 18px rgba(126, 236, 207, 0.18);
}

.ai-network-card .ai-team-yield.is-partial .ai-team-yield-main strong {
  color: #d8f2ff;
}

.ai-network-card .ai-team-yield-potential strong {
  color: #dff2ff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1;
  text-shadow: 0 0 22px rgba(142, 197, 255, 0.28);
}

.ai-network-card .ai-card-link {
  margin-top: 14px;
  border-color: rgba(214, 236, 255, 0.3);
  background: linear-gradient(90deg, rgba(57, 130, 198, 0.34), rgba(142, 197, 255, 0.2), rgba(57, 130, 198, 0.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 12px 28px rgba(0,0,0,0.16);
}

.ai-network-card .ai-card-link:hover {
  border-color: rgba(232, 246, 255, 0.56);
  background: linear-gradient(90deg, rgba(70, 152, 226, 0.52), rgba(190, 225, 255, 0.3), rgba(70, 152, 226, 0.52));
}

@media (max-width: 760px) {
  .ai-network-card {
    grid-column: 1;
    min-height: 0;
  }

  .ai-network-command,
  .ai-network-card .ai-team-yield {
    grid-template-columns: 1fr;
  }

  .ai-network-card .ai-team-yield-main,
  .ai-network-card .ai-team-yield-potential {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .ai-network-card .ai-team-yield-main strong,
  .ai-network-card .ai-team-yield-potential strong {
    justify-self: start;
    text-align: left;
  }

  .ai-network-orbit {
    min-height: 142px;
  }

  .ai-network-card .ai-network-stats {
    grid-template-columns: 1fr;
  }

  .ai-network-card .ai-network-stats div {
    min-height: 56px;
    padding: 12px 13px 12px 30px;
  }

  .ai-network-card .ai-network-stats strong {
    font-size: 30px;
  }
}

/* AI Labs member avatar and direct-partner constellation. */
.ai-network-orbit__nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

@keyframes ai-network-member-orbit {
  0% {
    transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-57px);
  }
  18% {
    transform: translate(-50%, -50%) rotate(calc(var(--node-angle) + 44deg)) translateY(-57px);
  }
  52% {
    transform: translate(-50%, -50%) rotate(calc(var(--node-angle) + 219deg)) translateY(-57px);
  }
  77% {
    transform: translate(-50%, -50%) rotate(calc(var(--node-angle) + 290deg)) translateY(-57px);
  }
  100% {
    transform: translate(-50%, -50%) rotate(calc(var(--node-angle) + 360deg)) translateY(-57px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ai-network-orbit__node {
    animation: none;
  }
}

.ai-network-orbit__node {
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-57px);
  animation: ai-network-member-orbit var(--node-duration, 20s) linear var(--node-delay, 0s) infinite;
}

.ai-network-orbit__core {
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 50%;
}

.ai-avatar__fallback {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

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

.ai-avatar.has-image .ai-avatar__fallback {
  display: none;
}

.ai-profile-editor {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(142, 197, 255, 0.15);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(142, 197, 255, 0.1), transparent 48%),
    rgba(6, 14, 24, 0.52);
}

.ai-profile-editor__avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(214, 236, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #e9f6ff, #8dc5fb 44%, #285d91 100%);
  box-shadow: 0 0 22px rgba(142, 197, 255, 0.28), inset 0 1px 0 rgba(255,255,255,0.6);
  color: #07111e;
}

.ai-profile-panel {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(159, 216, 250, 0.16);
  border-radius: 12px;
  background:
    radial-gradient(circle at 0% 0%, rgba(127, 207, 253, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(142, 197, 255, 0.08), rgba(255, 255, 255, 0.022));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ai-account-bar .ai-profile-panel--account {
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ai-account-bar .ai-profile-panel__avatar {
  width: 64px;
  height: 64px;
}

.ai-account-bar .ai-profile-panel__content {
  gap: 7px;
  padding-top: 0;
}

.ai-account-bar .ai-profile-panel__record {
  gap: 4px;
}

.ai-account-bar .ai-profile-panel__record strong {
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.045em;
}

.ai-account-bar .ai-profile-panel__details {
  width: min(100%, 390px);
  padding-top: 7px;
}

.ai-account-bar .ai-profile-panel__details summary {
  min-height: 28px;
}

.ai-profile-panel__avatar {
  width: 72px;
  height: 72px;
  align-self: start;
}

.ai-profile-panel__content {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding-top: 3px;
}

.ai-profile-panel__record {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ai-profile-panel__record span,
.ai-profile-panel__details summary {
  color: rgba(190, 224, 243, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ai-profile-panel__record strong {
  overflow: hidden;
  color: rgba(239, 248, 255, 0.98);
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-profile-panel__details {
  min-width: 0;
  border-top: 1px solid rgba(214, 236, 255, 0.09);
  padding-top: 9px;
}

.ai-profile-panel__details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  color: rgba(177, 218, 255, 0.88);
  cursor: pointer;
  list-style: none;
}

.ai-profile-panel__details summary::-webkit-details-marker {
  display: none;
}

.ai-profile-panel__details summary svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  transition: transform .18s ease;
}

.ai-profile-panel__details[open] summary svg {
  transform: rotate(180deg);
}

.ai-profile-panel__expanded {
  display: grid;
  gap: 12px;
  padding-top: 10px;
}

.ai-profile-panel__expanded .ai-profile-editor__actions {
  justify-content: start;
}

@media (max-width: 760px) {
  .ai-profile-panel {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
    padding: 13px;
  }

  .ai-profile-panel__avatar {
    width: 60px;
    height: 60px;
  }

  .ai-profile-panel__content {
    padding-top: 1px;
  }

  .ai-profile-panel__record strong {
    font-size: 15px;
  }

  .ai-profile-panel__details summary {
    min-height: 32px;
    font-size: 9px;
    line-height: 1.3;
  }

  .ai-profile-panel__expanded .ai-profile-editor__actions {
    grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: start;
  }

  .ai-profile-panel__expanded #aiAvatarMessage {
    text-align: left;
  }

  .ai-account-bar {
    padding: 13px;
  }

  .ai-account-bar .ai-profile-panel--account {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .ai-account-bar .ai-profile-panel__avatar {
    width: 56px;
    height: 56px;
  }

  .ai-account-bar .ai-profile-panel__record strong {
    font-size: 17px;
  }

  .ai-account-bar .ai-profile-panel__details {
    width: 100%;
  }
}

/* AI Labs account and security workspace. */
.ai-security-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.ai-security-identity > div,
.ai-security-email {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(214, 236, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.ai-security-identity span,
.ai-security-email summary {
  color: rgba(214, 225, 238, 0.64);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-security-identity strong,
.ai-security-email strong {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(232, 242, 255, 0.96);
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-security-email summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
}

.ai-security-email summary::-webkit-details-marker { display: none; }
.ai-security-email summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .18s ease; }
.ai-security-email[open] summary svg { transform: rotate(180deg); }

/* The account identity is one compact record; email remains private until opened. */
.ai-security-identity { grid-template-columns: minmax(0, 1fr); }
.ai-security-identity__record .ai-security-email {
  margin-top: 11px;
  padding: 11px 0 0;
  border: 0;
  border-top: 1px solid rgba(214, 236, 255, 0.09);
  border-radius: 0;
  background: transparent;
}
.ai-security-identity__record .ai-security-email summary { color: rgba(177, 218, 255, 0.88); }
.ai-security-identity__record .ai-security-email strong { padding-bottom: 1px; font-size: 14px; }

.ai-security-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ai-security-status-grid--single { grid-template-columns: minmax(0, 1fr); }

.ai-security-status-grid > * {
  display: grid;
  gap: 5px;
  min-height: 64px;
  align-content: center;
  padding: 11px;
  border: 1px solid rgba(142,197,255,0.14);
  border-radius: 8px;
  background: rgba(142,197,255,0.055);
  text-align: left;
}

.ai-security-status-grid span,
.ai-security-tools__label {
  color: rgba(214,236,255,0.92);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-security-status-grid strong { color: rgba(232,242,255,0.96); font-size: 13px; font-weight: 900; }
.ai-security-status-action { color: inherit; font-family: inherit; cursor: pointer; }
.ai-security-status-action:hover { border-color: rgba(176,215,255,0.35); background: rgba(142,197,255,0.1); }

/* Identity & compliance: a trust signal, not a generic dashboard button. */
.ai-security-status-grid > .ai-security-status-action--kyc {
  position: relative;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 122px;
  gap: 17px;
  overflow: hidden;
  padding: 19px 20px;
  border-color: rgba(159, 216, 250, 0.32);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 100%, rgba(86, 184, 246, 0.2), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(213, 239, 255, 0.13), transparent 32%),
    linear-gradient(115deg, rgba(133, 205, 249, 0.14), rgba(255,255,255,0.03));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 20px 48px rgba(0,0,0,0.18),
    0 0 28px rgba(105, 196, 246, 0.06);
}
.ai-security-status-grid > .ai-security-status-action--kyc::before {
  content: '';
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(142, 197, 255, 0.82), transparent);
  box-shadow: 0 0 22px rgba(142,197,255,0.25);
}
.ai-security-status-grid > .ai-security-status-action--kyc::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(214,236,255,0.035) 48% 49%, transparent 49%),
    linear-gradient(0deg, transparent 0 48%, rgba(214,236,255,0.025) 48% 49%, transparent 49%);
  background-size: 34px 34px;
  opacity: .28;
  pointer-events: none;
}
.ai-kyc-status-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(193, 233, 255, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(circle at 36% 24%, rgba(255,255,255,.25), transparent 35%),
    linear-gradient(145deg, rgba(196, 234, 255, 0.2), rgba(77, 164, 226, 0.12));
  box-shadow: 0 0 0 7px rgba(123, 201, 250, 0.035), 0 0 26px rgba(111, 195, 249, 0.14);
}
.ai-kyc-status-icon svg { width: 24px; height: 24px; fill: none; stroke: #d7f3ff; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.ai-security-status-grid .ai-kyc-status-copy { position: relative; z-index: 1; display: grid; gap: 5px; min-width: 0; text-transform: none; }
.ai-security-status-grid .ai-kyc-status-copy > span { color: rgba(190, 224, 243, 0.65); font-size: 9px; letter-spacing: .14em; }
.ai-security-status-grid .ai-kyc-status-copy strong { color: #ebf8ff; font-size: 20px; letter-spacing: -.035em; }
.ai-security-status-grid .ai-kyc-status-copy small { color: rgba(199, 222, 237, 0.64); font-size: 11px; font-weight: 650; line-height: 1.35; }
.ai-kyc-trust-lines {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.ai-kyc-trust-lines i {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid rgba(184, 230, 255, 0.13);
  border-radius: 999px;
  background: rgba(179, 226, 255, 0.045);
  color: rgba(213, 236, 250, 0.58);
  font-style: normal;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ai-kyc-status-action { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 12px; border: 1px solid rgba(184, 230, 255, 0.25); border-radius: 10px; color: #cceeff !important; background: rgba(179, 226, 255, 0.06); font-size: 9px !important; font-weight: 950; letter-spacing: .1em !important; white-space: nowrap; }
.ai-kyc-status-action b { font-size: 16px; line-height: 1; }
.ai-security-status-action--kyc:hover { border-color: rgba(191, 234, 255, 0.48); background: linear-gradient(115deg, rgba(133, 205, 249, 0.18), rgba(255,255,255,0.055)); }

@media (max-width: 540px) {
  .ai-security-status-grid > .ai-security-status-action--kyc { grid-template-columns: 43px minmax(0, 1fr); gap: 12px; min-height: 0; padding: 14px; }
  .ai-kyc-status-icon { width: 43px; height: 43px; border-radius: 12px; }
  .ai-security-status-grid .ai-kyc-status-copy strong { font-size: 15px; }
  .ai-security-status-grid .ai-kyc-status-copy small { font-size: 10px; }
  .ai-kyc-trust-lines { display: none !important; }
  .ai-kyc-status-action { grid-column: 1 / -1; justify-self: stretch; justify-content: center; margin-top: 2px; }
}

.ai-security-tools { display: grid; gap: 8px; margin-top: 18px; }
.ai-security-tools__label { margin: 8px 2px 0; color: rgba(142,197,255,0.76); }
.ai-security-tools__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.ai-security-group {
  overflow: hidden;
  border: 1px solid rgba(214,236,255,.09);
  border-radius: 9px;
  background: rgba(255,255,255,.018);
}

.ai-security-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 13px;
  cursor: pointer;
  list-style: none;
}

.ai-security-group summary::-webkit-details-marker { display: none; }
.ai-security-group summary span { color: rgba(232,242,255,.94); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ai-security-group summary small { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(142,197,255,.22); border-radius: 50%; color: rgba(177,218,255,.88); font-size: 10px; font-weight: 900; }
.ai-security-group summary::after { content: '+'; order: 3; margin-left: 10px; color: rgba(177,218,255,.84); font-size: 18px; font-weight: 300; }
.ai-security-group[open] summary { border-bottom: 1px solid rgba(214,236,255,.08); background: rgba(142,197,255,.055); }
.ai-security-group[open] summary::after { content: '–'; }
.ai-security-group .ai-security-tools__grid { padding: 8px; }

.ai-security-tool {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 12px 38px 12px 13px;
  border: 1px solid rgba(214,236,255,0.09);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(142,197,255,0.07), rgba(255,255,255,0.025));
  color: inherit;
  font-family: inherit;
  text-align: left;
}

button.ai-security-tool { cursor: pointer; }
button.ai-security-tool::after { content: '›'; position: absolute; right: 14px; top: 50%; color: rgba(177,218,255,0.82); font-size: 23px; font-weight: 300; transform: translateY(-52%); transition: transform .18s ease; }
button.ai-security-tool:hover { border-color: rgba(176,215,255,0.3); background: linear-gradient(135deg, rgba(142,197,255,0.13), rgba(255,255,255,0.045)); }
button.ai-security-tool:hover::after { transform: translate(3px, -52%); }
.ai-security-tool > span { color: rgba(232,242,255,0.96); font-size: 12px; font-weight: 900; }
.ai-security-tool small { color: rgba(214,225,238,0.6); font-size: 10px; font-weight: 700; line-height: 1.35; }
.ai-security-tool.is-coming-soon { opacity: .62; }
.ai-security-tool.is-coming-soon::after { content: 'SOON'; position: absolute; top: 12px; right: 11px; color: rgba(142,197,255,0.7); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.ai-security-tool--logout { width: 100%; margin: 0; border-color: rgba(255,151,151,.18); background: linear-gradient(135deg, rgba(137,32,43,.14), rgba(255,255,255,.025)); }
.ai-security-tool--logout > span { color: #ffc1c1; }
.ai-security-tool--logout small { color: rgba(255,205,205,.58); }
.ai-security-tool--logout::after { color: rgba(255,184,184,.8) !important; }
.ai-security-mobile-logout { display: none; }

@media (max-width: 760px) {
  .ai-security-mobile-logout { display: grid; min-height: 62px; margin-top: 18px; padding: 13px 42px 13px 14px; }
}

.ai-security-modal[hidden] { display: none; }
.ai-security-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(2, 7, 13, .72); backdrop-filter: blur(10px); opacity: 0; transition: opacity .18s ease; }
.ai-security-modal.is-open { opacity: 1; }
.ai-security-modal__dialog { position: relative; display: grid; gap: 13px; width: min(100%, 430px); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 22px; border: 1px solid rgba(176,215,255,.24); border-radius: 15px; background: linear-gradient(145deg, rgba(14,31,50,.98), rgba(5,13,23,.98)); box-shadow: 0 28px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.08); }
.ai-security-modal__dialog > span { color: rgba(142,197,255,.88); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ai-security-modal__dialog h2 { margin: -5px 0 0; color: #ecf7ff; font-size: 22px; letter-spacing: -.03em; }
.ai-security-modal__dialog p { margin: -3px 0 4px; color: rgba(214,225,238,.68); font-size: 12px; line-height: 1.5; }
.ai-security-modal__dialog label { display: grid; gap: 6px; color: rgba(214,236,255,.82); font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.ai-security-modal__dialog input, .ai-security-modal__dialog select { width: 100%; min-height: 43px; border: 1px solid rgba(176,215,255,.17); border-radius: 8px; outline: none; background: rgba(1,9,17,.5); color: #ecf7ff; font: inherit; padding: 0 12px; }
.ai-security-modal__dialog input:focus, .ai-security-modal__dialog select:focus { border-color: rgba(142,197,255,.65); box-shadow: 0 0 0 3px rgba(142,197,255,.1); }
.ai-security-modal__close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(214,236,255,.78); font-size: 23px; cursor: pointer; }
.ai-security-modal__submit { min-height: 43px; border: 1px solid rgba(188,225,255,.42); border-radius: 8px; background: linear-gradient(135deg, #bce5ff, #71b8f4); color: #06111d; font: inherit; font-size: 11px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.ai-security-modal__message { min-height: 16px; color: #9fe4be; font-size: 11px; font-weight: 700; line-height: 1.35; }
.ai-security-modal__message.is-error { color: #ff9d9d; }
.ai-security-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 9px !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 12px !important; }
.ai-security-checkbox input { width: 17px; min-height: 17px; accent-color: #8dc5fb; }
.ai-security-secret { display: block; overflow-wrap: anywhere; padding: 11px; border: 1px dashed rgba(176,215,255,.28); border-radius: 8px; background: rgba(1,9,17,.42); color: #bde6ff; font-size: 14px; letter-spacing: .08em; }

.ai-kyc-modal { width: min(100%, 680px); }
.ai-kyc-grid, .ai-kyc-upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-kyc-upload { min-height: 100px; align-content: start; padding: 12px; border: 1px dashed rgba(176,215,255,.22); border-radius: 9px; background: rgba(142,197,255,.045); cursor: pointer; }
.ai-kyc-upload > span { color: rgba(232,242,255,.95); font-size: 11px; font-weight: 900; }
.ai-kyc-upload small { color: rgba(214,225,238,.6); font-size: 10px; font-weight: 700; line-height: 1.35; text-transform: none; letter-spacing: 0; }
.ai-kyc-upload input { min-height: 0; padding: 0; border: 0; background: transparent; color: rgba(177,218,255,.9); font-size: 10px; }

/* KYC document selection: bespoke compliance controls instead of native file inputs. */
.ai-kyc-modal { gap: 15px; }
.ai-kyc-modal > p { margin-bottom: 3px; }
.ai-kyc-modal input[type="date"], .ai-kyc-modal select { color-scheme: dark; }
.ai-kyc-upload {
  position: relative;
  min-height: 126px;
  align-content: space-between;
  gap: 7px;
  padding: 15px;
  border: 1px solid rgba(177, 221, 248, 0.16);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(159, 214, 246, 0.085), rgba(255,255,255,0.018));
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.ai-kyc-upload::before { content: ""; position: absolute; top: 13px; right: 13px; width: 7px; height: 7px; border: 1px solid rgba(196, 233, 253, 0.5); border-radius: 50%; box-shadow: 0 0 12px rgba(127, 207, 253, 0.28); }
.ai-kyc-upload:hover { transform: translateY(-2px); border-color: rgba(181, 230, 255, 0.43); background: linear-gradient(145deg, rgba(159, 214, 246, 0.14), rgba(255,255,255,0.035)); }
.ai-kyc-upload > span { color: #e9f8ff; font-size: 11px; letter-spacing: .08em; }
.ai-kyc-upload small { max-width: 155px; color: rgba(203, 226, 240, .6); font-size: 10px; }
.ai-kyc-upload b { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(185, 230, 255, .2); border-radius: 7px; color: #cfeeff; background: rgba(177, 222, 250, .07); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ai-kyc-upload b i { color: #9ddcff; font-size: 13px; font-style: normal; }
.ai-kyc-upload input { position: absolute; width: 1px; height: 1px; min-height: 0; opacity: 0; pointer-events: none; }
.ai-kyc-upload:focus-within { border-color: rgba(181, 230, 255, 0.6); box-shadow: 0 0 0 3px rgba(127, 207, 253, 0.1); }

@media (max-width: 540px) {
  .ai-security-identity, .ai-security-status-grid, .ai-security-tools__grid { grid-template-columns: 1fr; }
  .ai-kyc-grid, .ai-kyc-upload-grid { grid-template-columns: 1fr; }
  .ai-security-modal { padding: 12px; }
  .ai-security-modal__dialog { padding: 19px; }
  .ai-kyc-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .ai-kyc-upload { min-height: 119px; padding: 12px; }
  .ai-kyc-upload small { font-size: 9px; }
  .ai-kyc-upload b { min-height: 29px; padding: 0 8px; font-size: 8px; }
}

@media (max-width: 760px) {
  body.ailabs-dashboard-page { overflow-x: clip; }
  .ai-security-modal { overflow-x: clip; }
  .ai-security-modal__dialog { overflow-x: hidden; }
  .ai-kyc-grid > *, .ai-kyc-upload-grid > *, .ai-kyc-upload { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .ai-kyc-upload b { min-width: 0; }
}

/* Mobile security dialogs need a deliberate frame instead of touching the viewport. */
@media (max-width: 760px) {
  .ai-security-modal {
    padding: 20px 16px;
    background: rgba(1, 7, 14, 0.8);
    backdrop-filter: blur(16px);
  }

  .ai-security-modal__dialog {
    width: min(100%, 430px);
    max-height: calc(100dvh - 40px);
    box-sizing: border-box;
    padding: 24px 19px 20px;
    border-color: rgba(185, 226, 250, 0.28);
    border-radius: 16px;
    background:
      radial-gradient(circle at 86% 0%, rgba(99, 190, 248, 0.16), transparent 35%),
      linear-gradient(145deg, rgba(15, 36, 56, 0.98), rgba(4, 12, 22, 0.99));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }

  .ai-security-modal__dialog h2 { padding-right: 28px; font-size: 23px; line-height: 1.12; }
  .ai-security-modal__dialog p { font-size: 12px; line-height: 1.6; }
  .ai-security-modal__close { top: 13px; right: 13px; }
  .ai-security-modal__submit { min-height: 47px; border-radius: 10px; }
}

.ai-profile-editor__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ai-profile-editor__copy > span {
  color: rgba(185, 221, 255, 0.68);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-profile-editor__copy strong {
  color: rgba(239, 248, 255, 0.98);
  font-size: 13px;
  font-weight: 900;
}

.ai-profile-editor__copy small {
  color: rgba(214, 225, 238, 0.64);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.ai-profile-editor__actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: end;
  gap: 7px;
}

.ai-profile-upload,
.ai-profile-remove {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(142, 197, 255, 0.25);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.1);
  color: rgba(222, 242, 255, 0.96);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-profile-upload:hover,
.ai-profile-remove:hover:not(:disabled) {
  border-color: rgba(214, 236, 255, 0.52);
  background: rgba(142, 197, 255, 0.18);
}

.ai-profile-remove {
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(219, 227, 238, 0.75);
}

.ai-profile-remove:disabled {
  cursor: default;
  opacity: 0.42;
}

#aiAvatarMessage {
  grid-column: 1 / -1;
  min-height: 14px;
  color: rgba(185, 221, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

#aiAvatarMessage.is-error {
  color: rgba(255, 181, 181, 0.94);
}

.ai-profile-editor__mobile-details { display: none; }

@media (max-width: 760px) {
  .ai-profile-editor {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .ai-profile-editor__avatar {
    width: 50px;
    height: 50px;
  }

  .ai-profile-editor__actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .ai-profile-editor__desktop-copy,
  .ai-profile-editor__desktop-actions {
    display: none;
  }

  .ai-profile-editor__mobile-details {
    display: grid;
    grid-column: 1 / -1;
    gap: 10px;
    padding-top: 3px;
  }

  .ai-profile-editor__mobile-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    color: rgba(185, 221, 255, 0.82);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .1em;
    list-style: none;
    text-transform: uppercase;
  }

  .ai-profile-editor__mobile-details summary::-webkit-details-marker { display: none; }
  .ai-profile-editor__mobile-details summary svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .18s ease; }
  .ai-profile-editor__mobile-details[open] summary svg { transform: rotate(180deg); }
  .ai-profile-editor__mobile-details > small { color: rgba(214,225,238,.64); font-size: 11px; font-weight: 700; line-height: 1.4; }
  .ai-profile-editor__mobile-details .ai-profile-editor__actions { grid-column: auto; }
  #aiAvatarMobileMessage { min-height: 14px; color: rgba(185,221,255,.72); font-size: 10px; font-weight: 700; }
  #aiAvatarMobileMessage.is-error { color: rgba(255,181,181,.94); }

  #aiAvatarMessage {
    text-align: left;
  }
}

/* Mobile viewport guard: prevents a horizontal overflow strip beside fixed navigation. */
@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }

  body.dashboard-page,
  body.banking-page,
  body.copytrade-page,
  body.society-page,
  body.ailabs-dashboard-page {
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-x: clip;
  }

  .footer-nav,
  .ai-footer-nav {
    box-sizing: border-box;
    max-width: calc(100vw - 20px);
  }
}

/* AI Labs: contained compute command-center visualization. */
.ai-utilization-stage {
  --ai-orbit-radius: 88px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 50%, rgba(174, 224, 255, 0.14), transparent 27%),
    radial-gradient(ellipse at 50% 50%, rgba(83, 164, 230, 0.1), transparent 64%),
    linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
}

.ai-utilization-stage::before,
.ai-utilization-stage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ai-utilization-stage::before {
  z-index: 0;
  inset: 12px;
  border: 1px solid rgba(142, 197, 255, 0.065);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.75%, rgba(186, 224, 255, 0.12) 50%, transparent 50.25%),
    linear-gradient(0deg, transparent 49.75%, rgba(186, 224, 255, 0.09) 50%, transparent 50.25%);
  box-shadow: inset 0 0 30px rgba(87, 164, 230, 0.06);
  opacity: 0.72;
}

.ai-utilization-stage::after {
  z-index: 1;
  inset: 18px;
  border-radius: 50%;
  background: conic-gradient(from 218deg, transparent 0deg 286deg, rgba(96, 181, 244, 0.018) 310deg, rgba(150, 213, 255, 0.1) 334deg, rgba(229, 248, 255, 0.32) 358deg, transparent 360deg);
  -webkit-mask: radial-gradient(ellipse at center, #000 0 67%, transparent 100%);
  mask: radial-gradient(ellipse at center, #000 0 67%, transparent 100%);
  animation: aiComputeScan 12s linear infinite;
}

.ai-utilization-waves { z-index: 1; }
.ai-utilization-orbit { z-index: 2; }

.ai-utilization-orbit::before,
.ai-utilization-orbit::after {
  top: 50%;
  left: 50%;
  will-change: transform;
  animation: aiComputeOrbit 8.6s linear infinite;
}

.ai-utilization-orbit::before {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(244, 252, 255, 0.92);
  background: radial-gradient(circle at 34% 30%, #ffffff, #bde7ff 36%, #5ca6eb 73%);
  box-shadow: 0 0 0 4px rgba(142, 197, 255, 0.06), 0 0 22px rgba(180, 227, 255, 0.94), 0 0 42px rgba(83, 164, 230, 0.32);
}

.ai-utilization-orbit::after {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(219, 243, 255, 0.72);
  background: radial-gradient(circle at 34% 30%, #f5fcff, #8bc8fb 48%, #397ab8 100%);
  box-shadow: 0 0 0 3px rgba(142, 197, 255, 0.05), 0 0 18px rgba(124, 197, 255, 0.84);
  animation-duration: 13.2s;
  animation-delay: -3.8s;
  animation-direction: reverse;
}

.ai-utilization-core {
  z-index: 3;
  border: 1px solid rgba(217, 241, 255, 0.26);
  box-shadow: 0 0 0 7px rgba(142, 197, 255, 0.028), 0 0 52px rgba(142,197,255,0.2), inset 0 0 30px rgba(0,0,0,0.44);
}

@keyframes aiComputeOrbit {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(var(--ai-orbit-radius)) rotate(0deg); }
  31% { transform: translate(-50%, -50%) rotate(137deg) translateX(var(--ai-orbit-radius)) rotate(-137deg); }
  68% { transform: translate(-50%, -50%) rotate(249deg) translateX(var(--ai-orbit-radius)) rotate(-249deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(var(--ai-orbit-radius)) rotate(-360deg); }
}

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

@media (max-width: 760px) {
  .ai-utilization-stage { --ai-orbit-radius: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-utilization-stage::after,
  .ai-utilization-orbit::before,
  .ai-utilization-orbit::after { animation: none; }
}

/* Safari renders real orbit elements more consistently than pseudo-elements. */
.ai-utilization-orbit::before,
.ai-utilization-orbit::after {
  display: none;
}

.ai-utilization-orbit__beacon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  box-sizing: border-box;
  border-radius: 50%;
  will-change: transform;
  animation: aiComputeOrbit 8.6s linear infinite;
}

.ai-utilization-orbit__beacon--primary {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(249, 253, 255, 0.98);
  background: radial-gradient(circle at 34% 30%, #ffffff, #d3efff 33%, #65afea 72%);
  box-shadow: 0 0 0 4px rgba(142, 197, 255, 0.08), 0 0 21px rgba(209, 240, 255, 1), 0 0 42px rgba(83, 164, 230, 0.44);
}

.ai-utilization-orbit__beacon--secondary {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(222, 244, 255, 0.9);
  background: radial-gradient(circle at 34% 30%, #f8fdff, #9cd5ff 45%, #397dbb 100%);
  box-shadow: 0 0 0 3px rgba(142, 197, 255, 0.06), 0 0 18px rgba(125, 200, 255, 0.94);
  animation-duration: 13.2s;
  animation-delay: -3.8s;
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .ai-utilization-orbit__beacon { animation: none; }
}

/* Compute-map context behind the live utilization scan. */
.ai-utilization-map {
  position: absolute;
  z-index: 2;
  inset: 14px;
  overflow: hidden;
  border-radius: 9px;
  color: rgba(186, 226, 255, 0.82);
  pointer-events: none;
}

.ai-utilization-map__link {
  position: absolute;
  z-index: 0;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(142, 197, 255, 0.03), rgba(190, 230, 255, 0.5), rgba(142, 197, 255, 0.03));
  box-shadow: 0 0 12px rgba(142, 197, 255, 0.16);
}

.ai-utilization-map__link--one { top: 31%; left: 16%; width: 41%; transform: rotate(24deg); }
.ai-utilization-map__link--two { top: 31%; right: 15%; width: 39%; transform: rotate(154deg); }
.ai-utilization-map__link--three { bottom: 27%; left: 22%; width: 35%; transform: rotate(-25deg); }

.ai-utilization-map__node {
  position: absolute;
  z-index: 1;
  width: 6px;
  height: 6px;
  border: 1px solid rgba(239, 251, 255, 0.98);
  border-radius: 50%;
  background: #8fcbfa;
  box-shadow: 0 0 13px rgba(142, 205, 255, 1);
  animation: aiComputeNode 3.6s ease-in-out infinite;
}

.ai-utilization-map__node--one { top: 27%; left: 15%; animation-delay: -0.4s; }
.ai-utilization-map__node--two { top: 27%; right: 15%; animation-delay: -1.5s; }
.ai-utilization-map__node--three { bottom: 23%; left: 21%; animation-delay: -2.3s; }
.ai-utilization-map__node--four { right: 24%; bottom: 20%; animation-delay: -3.1s; }

.ai-utilization-map__label {
  position: absolute;
  z-index: 1;
  color: rgba(202, 233, 253, 0.78);
  font-size: 7.5px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-utilization-map__label--gpu { top: 14px; left: 7px; }
.ai-utilization-map__label--workloads { top: 14px; right: 7px; }
.ai-utilization-map__label--capacity { bottom: 11px; left: 9px; }

@keyframes aiComputeNode {
  0%, 100% { opacity: 0.34; transform: scale(0.72); }
  45% { opacity: 1; transform: scale(1); }
}

@media (max-width: 760px) {
  .ai-utilization-map__label { font-size: 7px; letter-spacing: 0.1em; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-utilization-map__node { animation: none; }
}

/* Organic data network: visual context for the live utilization figure. */
.ai-utilization-stage::after { display: none; }

.ai-utilization-neural {
  position: absolute;
  z-index: 1;
  inset: 8px 10px;
  overflow: hidden;
  border-radius: 9px;
  pointer-events: none;
}

.ai-neural-mesh {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ai-neural-mesh__links path {
  fill: none;
  stroke: url(#aiNeuralLine);
  stroke-width: 1.15;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
  animation: aiNeuralStream 12s linear infinite;
}

.ai-neural-mesh__links path:nth-child(2n) {
  stroke-width: 0.9;
  animation-duration: 16s;
  animation-direction: reverse;
}

.ai-neural-mesh__links path:nth-child(3n) {
  stroke: rgba(156, 215, 255, 0.22);
  animation-duration: 20s;
}

.ai-neural-mesh__nodes circle {
  fill: #a8dcff;
  stroke: rgba(240, 251, 255, 0.95);
  stroke-width: 0.75;
  filter: drop-shadow(0 0 3px rgba(128, 204, 255, 0.9));
  animation: aiNeuralNodeGlow 4.8s ease-in-out infinite;
}

.ai-neural-mesh__nodes circle:nth-child(3n) { animation-duration: 6.7s; animation-delay: -2.1s; }
.ai-neural-mesh__nodes circle:nth-child(4n) { animation-duration: 3.9s; animation-delay: -1.3s; }

.ai-neural-mesh__pulses circle {
  filter: drop-shadow(0 0 5px rgba(205, 241, 255, 0.9));
}

@keyframes aiNeuralStream {
  to { stroke-dashoffset: -88; }
}

@keyframes aiNeuralNodeGlow {
  0%, 100% { opacity: 0.26; }
  48% { opacity: 0.98; }
}

@media (max-width: 760px) {
  .ai-utilization-neural { inset: 7px 8px; opacity: 0.94; }
  .ai-neural-mesh__links path { stroke-width: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-neural-mesh__links path,
  .ai-neural-mesh__nodes circle { animation: none; }
  .ai-neural-mesh__pulses { display: none; }
}

/* Global Compute Mesh — canvas-based, high-density infrastructure visualization. */
.ai-global-compute-mesh {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  opacity: 0.98;
  pointer-events: none;
}

.ai-utilization-stage {
  height: 220px;
  min-height: 220px;
}

.ai-utilization-stage::before {
  opacity: 0.36;
}

.ai-utilization-stage .ai-utilization-core {
  z-index: 3;
  width: 126px;
  height: 126px;
  background:
    radial-gradient(circle, rgba(7, 14, 24, 0.76) 0 55%, rgba(7, 14, 24, 0.18) 56%),
    conic-gradient(from 180deg, rgba(214,236,255,0.96) calc(var(--load) * 1%), rgba(255,255,255,0.07) 0);
  box-shadow: 0 0 0 7px rgba(142, 197, 255, 0.035), 0 0 54px rgba(142,197,255,0.24), inset 0 0 30px rgba(0,0,0,0.34);
}

.ai-utilization-stage .ai-utilization-orbit {
  z-index: 4;
}

/* Return the utilization card to the deliberately clean, premium command view. */
.ai-utilization-stage::after,
.ai-global-compute-mesh,
.ai-utilization-neural {
  display: none;
}

.ai-utilization-stage::before {
  opacity: 0.52;
}

.ai-utilization-stage .ai-utilization-core {
  width: 142px;
  height: 142px;
  background:
    radial-gradient(circle, rgba(7,14,24,0.92) 0 55%, rgba(7,14,24,0.4) 56%),
    conic-gradient(from 180deg, rgba(214,236,255,0.96) calc(var(--load) * 1%), rgba(255,255,255,0.07) 0);
  box-shadow: 0 0 0 7px rgba(142,197,255,0.028), 0 0 52px rgba(142,197,255,0.2), inset 0 0 30px rgba(0,0,0,0.44);
}

.ai-utilization-waves {
  z-index: 1;
  display: block;
}

@media (max-width: 760px) {
  .ai-utilization-stage .ai-utilization-core {
    width: 142px;
    height: 142px;
  }
}

/* Lock the utilization core to a true circle after the visualization variants. */
.ai-utilization-stage .ai-utilization-core {
  width: 142px !important;
  min-width: 142px;
  height: 142px !important;
  min-height: 142px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  overflow: hidden;
  padding: 0;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
}

.ai-utilization-stage .ai-utilization-core span {
  display: block;
  max-width: 100%;
  overflow: visible;
  font-size: 38px;
  line-height: 1;
  white-space: nowrap;
}

.ai-utilization-stage .ai-utilization-core small {
  display: block;
  max-width: 112px;
  overflow: hidden;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .ai-utilization-stage {
    height: 200px;
    min-height: 200px;
  }

  .ai-utilization-stage .ai-utilization-core {
    width: 122px;
    height: 122px;
  }
}

/* Vector progress ring: avoids WebKit seams from conic-gradient rendering. */
.ai-utilization-stage .ai-utilization-core {
  background: radial-gradient(circle, rgba(7,14,24,0.92) 0 55%, rgba(7,14,24,0.4) 56%) !important;
  border: 0;
  box-shadow: 0 0 0 7px rgba(142,197,255,0.028), 0 0 52px rgba(142,197,255,0.2), inset 0 0 30px rgba(0,0,0,0.44);
}

.ai-utilization-core__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.ai-utilization-core__track,
.ai-utilization-core__progress {
  fill: none;
}

.ai-utilization-core__track {
  stroke: rgba(214, 236, 255, 0.1);
  stroke-width: 2;
}

.ai-utilization-core__progress {
  stroke: #d6ecff;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 0 296.57;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(170, 220, 255, 0.62));
  transition: stroke-dasharray 650ms cubic-bezier(.2, .8, .2, 1);
}

.ai-utilization-stage .ai-utilization-core span,
.ai-utilization-stage .ai-utilization-core small {
  position: relative;
  z-index: 1;
}

/* Twenty-four-hour capacity history. */
.ai-utilization-history {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  grid-template-rows: 94px 17px;
  column-gap: 8px;
  row-gap: 5px;
  margin-top: 16px;
}

.ai-utilization-history__axis {
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1px 0 0;
  color: rgba(181, 216, 240, 0.5);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.02em;
  line-height: 1;
  text-align: right;
}

.ai-utilization-bars {
  --average: 0;
  position: relative;
  grid-column: 2;
  grid-row: 1;
  height: 94px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  align-items: end;
  gap: 5px;
  overflow: hidden;
  border-bottom: 1px solid rgba(165, 211, 242, 0.22);
  background:
    linear-gradient(to top, rgba(165, 211, 242, 0.12) 1px, transparent 1px) 0 100% / 100% 50%,
    linear-gradient(to top, rgba(165, 211, 242, 0.08) 1px, transparent 1px) 0 50% / 100% 50%;
}

.ai-utilization-history__bar {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 4px;
  border: 1px solid rgba(221, 244, 255, 0.28);
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(227, 246, 255, 0.96), rgba(85, 165, 231, 0.26));
  box-shadow: 0 0 12px rgba(125, 198, 255, 0.11);
  transition: height 800ms cubic-bezier(.2, .8, .2, 1), background 500ms ease, box-shadow 500ms ease;
}

.ai-utilization-history__bar.is-hot {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(125, 201, 255, 0.52));
  box-shadow: 0 0 18px rgba(149, 213, 255, 0.26);
}

.ai-utilization-history__bar.is-current {
  border-color: rgba(236, 250, 255, 0.72);
  background: linear-gradient(180deg, #f2fbff, #76bdf3 62%, rgba(58, 138, 205, 0.5));
  box-shadow: 0 0 22px rgba(173, 225, 255, 0.36);
}

.ai-utilization-history__average {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(var(--average) * 1%);
  left: 0;
  height: 0;
  border-top: 1px dashed rgba(214, 241, 255, 0.64);
  pointer-events: none;
  transition: bottom 800ms cubic-bezier(.2, .8, .2, 1);
}

.ai-utilization-history__average span {
  position: absolute;
  top: -16px;
  right: 0;
  padding: 2px 5px;
  border: 1px solid rgba(185, 224, 250, 0.22);
  border-radius: 999px;
  background: rgba(8, 18, 29, 0.86);
  color: rgba(221, 244, 255, 0.92);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ai-utilization-history__times {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(181, 216, 240, 0.5);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.04em;
  line-height: 1;
}

@media (max-width: 760px) {
  .ai-utilization-history {
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: 88px 17px;
    column-gap: 7px;
    margin-top: 14px;
  }

  .ai-utilization-bars { height: 88px; gap: 2px; }
  .ai-utilization-history__axis { font-size: 7px; }
}

.ai-utilization-info {
  position: relative;
  z-index: 8;
  margin-left: auto;
}

.ai-utilization-info summary {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(167, 216, 248, 0.34);
  border-radius: 50%;
  color: rgba(209, 239, 255, 0.9);
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  list-style: none;
}

.ai-utilization-info summary::-webkit-details-marker { display: none; }

.ai-utilization-info p {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(228px, 70vw);
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(177, 221, 250, 0.2);
  border-radius: 8px;
  background: rgba(6, 16, 27, 0.96);
  box-shadow: 0 14px 28px rgba(0,0,0,0.3);
  color: rgba(213, 234, 248, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

/* AI Labs dashboard: transparent Iceblue/Silver glass, aligned with the crypto dashboard depth. */
body.ailabs-dashboard-page .ai-card {
  border-color: rgba(214, 236, 255, 0.105);
  background:
    radial-gradient(circle at top, rgba(142, 197, 255, 0.07) 0, rgba(3, 8, 14, 0.18) 44%, rgba(2, 6, 11, 0.28) 100%),
    rgba(3, 8, 14, 0.045);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.ailabs-dashboard-page .ai-treasury-card,
body.ailabs-dashboard-page .ai-yield-card--settlement,
body.ailabs-dashboard-page .ai-utilization-card,
body.ailabs-dashboard-page .ai-products-card,
body.ailabs-dashboard-page .ai-network-card,
body.ailabs-dashboard-page .ai-security-card {
  background:
    radial-gradient(circle at top, rgba(142, 197, 255, 0.065) 0, rgba(3, 8, 14, 0.17) 44%, rgba(2, 6, 11, 0.27) 100%),
    rgba(3, 8, 14, 0.04);
}

body.ailabs-dashboard-page .ai-yield-card--settlement {
  box-shadow:
    0 30px 84px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.025),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

body.ailabs-dashboard-page .ai-treasury-card::after,
body.ailabs-dashboard-page .ai-yield-card--settlement::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 20%),
    radial-gradient(circle at 100% 0%, rgba(125, 220, 255, 0.075), transparent 34%);
}

body.ailabs-dashboard-page .ai-treasury-card .ai-balance-secondary,
body.ailabs-dashboard-page .ai-yield-settlement__value,
body.ailabs-dashboard-page .ai-yield-card--settlement details.ai-yield-details .ai-yield-grid,
body.ailabs-dashboard-page .ai-investment-meta div,
body.ailabs-dashboard-page .ai-network-stats div,
body.ailabs-dashboard-page .ai-product-row,
body.ailabs-dashboard-page .ai-utilization-stage,
body.ailabs-dashboard-page .ai-utilization-footer,
body.ailabs-dashboard-page .ai-profile-panel,
body.ailabs-dashboard-page .ai-security-status-grid > *,
body.ailabs-dashboard-page .ai-security-group,
body.ailabs-dashboard-page .ai-security-tool,
body.ailabs-dashboard-page .ai-network-card .ai-team-yield-potential {
  border-color: rgba(214, 236, 255, 0.095);
  background:
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.ailabs-dashboard-page .ai-yield-settlement__value {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006) 42%, rgba(115, 205, 255, 0.012)),
    rgba(3, 9, 16, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02),
    0 18px 42px rgba(0, 0, 0, 0.16);
}

body.ailabs-dashboard-page .ai-utilization-stage .ai-utilization-core {
  background: radial-gradient(circle, rgba(7, 14, 24, 0.78) 0 55%, rgba(7, 14, 24, 0.22) 56%) !important;
}

body.ailabs-dashboard-page .ai-utilization-history__average span {
  background: rgba(7, 17, 28, 0.46);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

body.ailabs-dashboard-page .ai-security-status-action:hover,
body.ailabs-dashboard-page button.ai-security-tool:hover,
body.ailabs-dashboard-page .ai-network-card .ai-card-link:hover {
  background:
    linear-gradient(135deg, rgba(142, 197, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(3, 10, 18, 0.28);
}

body.ailabs-dashboard-page .ai-product-row {
  border-color: rgba(var(--gpu-accent-rgb), 0.22);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gpu-accent-rgb), 0.22), transparent 35%),
    linear-gradient(135deg, rgba(142,197,255,0.08), rgba(255,255,255,0.026)),
    rgba(3, 9, 16, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.07),
    0 18px 44px rgba(0,0,0,0.18),
    0 0 24px rgba(var(--gpu-accent-rgb), 0.055);
}

body.ailabs-dashboard-page .ai-network-card .ai-team-yield {
  border-color: rgba(142, 197, 255, 0.24);
  background:
    radial-gradient(circle at 100% 0%, rgba(122, 207, 255, 0.2), transparent 38%),
    radial-gradient(circle at 0% 100%, rgba(199, 232, 255, 0.08), transparent 37%),
    linear-gradient(135deg, rgba(214, 236, 255, 0.07), rgba(255,255,255,0.018)),
    rgba(3, 10, 18, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(214,236,255,0.09),
    0 20px 48px rgba(0,0,0,0.18);
}

body.ailabs-dashboard-page .ai-network-card .ai-team-yield-potential {
  border-color: rgba(186, 225, 250, 0.09);
  background: linear-gradient(90deg, rgba(142, 197, 255, 0.055), transparent 55%);
}

body.ailabs-dashboard-page .ai-security-status-grid > .ai-security-status-action--kyc {
  border-color: rgba(159, 216, 250, 0.32);
  background:
    radial-gradient(circle at 0% 100%, rgba(86, 184, 246, 0.2), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(213, 239, 255, 0.13), transparent 32%),
    linear-gradient(115deg, rgba(133, 205, 249, 0.14), rgba(255,255,255,0.03)),
    rgba(3, 9, 16, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    0 20px 48px rgba(0,0,0,0.18),
    0 0 28px rgba(105, 196, 246, 0.06);
}

@media (max-width: 760px) {
  body.ailabs-dashboard-page .ai-card {
    background:
      radial-gradient(circle at top, rgba(142, 197, 255, 0.075) 0, rgba(3, 8, 14, 0.2) 44%, rgba(2, 6, 11, 0.31) 100%),
      rgba(3, 8, 14, 0.05);
  }
}

/* AI Labs mobile portrait background: one dedicated vertical asset for all customer-facing AI Labs pages. */
@media (max-width: 900px) {
  html:has(body.ailabs-dashboard-page),
  html:has(body.login-page--ai) {
    background: #05070b url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat !important;
  }

  body.ailabs-dashboard-page,
  body.login-page--ai {
    background: #05070b url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat !important;
  }

  body.ailabs-dashboard-page::before,
  body.login-page--ai::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('../images/empire-ai-labs-infrastructure-mobile-bg.png') center top / cover no-repeat !important;
    transform: translateZ(0);
    will-change: transform;
    pointer-events: none;
  }

  body.ailabs-dashboard-page #appShell {
    position: relative;
    z-index: 1;
  }
}

/* GPU Portfolio · premium capital overview */
.ai-portfolio-summary {
  gap: 14px;
}

.ai-portfolio-summary .ai-summary-card {
  --summary-accent: #9fd2ff;
  --summary-glow: rgba(101, 189, 255, 0.22);
  min-height: 150px;
  padding: 19px;
  isolation: isolate;
  align-content: space-between;
  gap: 12px;
  border-color: rgba(165, 214, 255, 0.19);
  background:
    radial-gradient(circle at 94% 2%, var(--summary-glow), transparent 38%),
    linear-gradient(145deg, rgba(19, 43, 65, 0.92), rgba(5, 13, 23, 0.9));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ai-portfolio-summary .ai-summary-card::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto -28px -48px auto;
  width: 134px;
  height: 134px;
  border: 1px solid color-mix(in srgb, var(--summary-accent) 38%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 13px color-mix(in srgb, var(--summary-accent) 5%, transparent), 0 0 0 30px color-mix(in srgb, var(--summary-accent) 3%, transparent);
}

.ai-portfolio-summary .ai-summary-card::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 19px;
  right: 19px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--summary-accent), transparent);
  opacity: 0.8;
}

.ai-portfolio-summary .ai-summary-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--summary-accent) 42%, transparent);
  box-shadow: 0 28px 68px rgba(0, 0, 0, 0.34), 0 0 28px var(--summary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-summary-card--portfolio {
  --summary-accent: #73eddf !important;
  --summary-glow: rgba(65, 221, 203, 0.17) !important;
  background: radial-gradient(circle at 94% 2%, var(--summary-glow), transparent 39%), linear-gradient(145deg, rgba(12, 48, 58, 0.91), rgba(4, 17, 24, 0.9)) !important;
}

.ai-summary-card--earnings {
  --summary-accent: #b5b3ff !important;
  --summary-glow: rgba(138, 128, 255, 0.18) !important;
  background: radial-gradient(circle at 94% 2%, var(--summary-glow), transparent 39%), linear-gradient(145deg, rgba(31, 35, 74, 0.92), rgba(8, 12, 28, 0.9)) !important;
}

.ai-portfolio-summary .ai-summary-card > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: color-mix(in srgb, var(--summary-accent) 78%, #e8f6ff);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.145em;
}

.ai-portfolio-summary .ai-summary-card > span::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--summary-accent);
  box-shadow: 0 0 12px var(--summary-accent);
}

.ai-portfolio-summary .ai-summary-card > strong {
  color: #f3faff;
  font-size: clamp(24px, 2.05vw, 30px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.055em;
  line-height: 1;
  text-shadow: 0 0 22px color-mix(in srgb, var(--summary-accent) 20%, transparent);
}

.ai-portfolio-summary .ai-summary-card > small {
  max-width: 185px;
  color: rgba(219, 237, 249, 0.7);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.5;
}

.ai-portfolio-summary .ai-autopilot-card {
  min-height: 150px;
  padding: 19px;
  align-content: space-between;
  gap: 11px;
}

.ai-portfolio-summary .ai-autopilot-card > span {
  color: #b8ecff;
  font-size: 9px;
  letter-spacing: 0.145em;
}

.ai-portfolio-summary .ai-autopilot-card button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(143, 217, 255, 0.26);
  border-radius: 999px;
  background: rgba(117, 204, 255, 0.08);
  color: #c9efff;
  line-height: 26px;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.ai-portfolio-summary .ai-autopilot-card button:hover:not(:disabled) {
  border-color: rgba(169, 231, 255, 0.6);
  background: rgba(117, 204, 255, 0.17);
  color: #f0fbff;
}

@media (max-width: 760px) {
  .ai-portfolio-summary {
    gap: 10px;
  }

  .ai-portfolio-summary .ai-summary-card,
  .ai-portfolio-summary .ai-autopilot-card {
    min-height: 136px;
    padding: 15px;
  }

  .ai-portfolio-summary .ai-summary-card > strong {
    font-size: 23px;
  }

  .ai-portfolio-summary .ai-summary-card > small {
    max-width: 142px;
    font-size: 9px;
  }

  .ai-portfolio-summary .ai-autopilot-card button {
    padding: 0 8px;
    font-size: 9px;
  }
}

/* GPU Portfolio · operational transparency */
.ai-portfolio-section--operations,
.ai-portfolio-section--journey {
  border-color: rgba(139, 211, 255, 0.17);
  background: radial-gradient(circle at 94% 5%, rgba(72, 180, 245, 0.1), transparent 27%), rgba(5, 12, 21, 0.68);
}

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

.ai-operation-card,
.ai-operations-empty {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(157, 215, 248, 0.15);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(17, 44, 64, 0.75), rgba(6, 16, 27, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.ai-operation-card {
  display: grid;
  align-content: space-between;
  min-height: 136px;
  padding: 16px;
  gap: 10px;
}

.ai-operation-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 16px;
  left: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(144, 218, 255, 0.8), transparent);
}

.ai-operation-card > span,
.ai-operations-empty > span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-operation-card > strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f1faff;
  font-size: clamp(18px, 1.7vw, 24px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.1;
}

.ai-operation-card--status > strong { color: #cefae9; font-size: 17px; }
.ai-operation-card--status > strong i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #75efc5; box-shadow: 0 0 0 5px rgba(117, 239, 197, 0.08), 0 0 15px rgba(117, 239, 197, 0.75); }
.ai-operation-card > small { color: rgba(213, 235, 248, 0.63); font-size: 10px; font-weight: 650; line-height: 1.45; }

.ai-operation-card--utilization {
  border-color: rgba(131, 217, 255, 0.27);
  background: radial-gradient(circle at 95% 10%, rgba(96, 198, 255, 0.16), transparent 45%), linear-gradient(145deg, rgba(15, 51, 73, 0.88), rgba(5, 17, 28, 0.93));
}

.ai-operation-card--utilization > strong { color: #d7f5ff; text-shadow: 0 0 22px rgba(120, 211, 255, 0.3); }

.ai-operations-empty {
  display: grid;
  place-content: center;
  min-height: 166px;
  padding: 25px;
  text-align: center;
}

.ai-operations-empty::before {
  content: 'AI';
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0 auto 12px;
  border: 1px solid rgba(142, 216, 255, 0.34);
  border-radius: 50%;
  color: #b4e8ff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ai-operations-empty > strong { margin-top: 7px; color: #edf8ff; font-size: 17px; letter-spacing: -0.02em; }
.ai-operations-empty > p { max-width: 510px; margin: 8px 0 0; color: rgba(214, 235, 249, 0.66); font-size: 12px; font-weight: 600; line-height: 1.55; }

.ai-participation-journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-participation-journey::before {
  content: '';
  position: absolute;
  top: 17px;
  right: 9%;
  left: 9%;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 206, 255, 0.4), rgba(159, 218, 248, 0.12));
}

.ai-participation-journey li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.ai-participation-journey li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(162, 212, 242, 0.2);
  border-radius: 50%;
  background: #0a1827;
  color: rgba(197, 224, 241, 0.52);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.ai-participation-journey li > div { display: grid; gap: 5px; max-width: 170px; }
.ai-participation-journey strong { color: rgba(222, 239, 250, 0.7); font-size: 12px; line-height: 1.25; }
.ai-participation-journey small { color: rgba(200, 224, 240, 0.52); font-size: 10px; font-weight: 600; line-height: 1.45; }
.ai-participation-journey li.is-complete > span { border-color: rgba(111, 236, 197, 0.62); background: #18534e; color: #c9ffe8; box-shadow: 0 0 15px rgba(92, 222, 180, 0.2); }
.ai-participation-journey li.is-complete > span::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.ai-participation-journey li.is-complete > span { font-size: 0; }
.ai-participation-journey li.is-complete strong { color: #d8f9ec; }
.ai-participation-journey li.is-current > span { border-color: #9edfff; background: #174a68; color: #e6f8ff; box-shadow: 0 0 0 5px rgba(111, 208, 255, 0.07), 0 0 18px rgba(111, 208, 255, 0.3); }
.ai-participation-journey li.is-current strong { color: #effaff; }
.ai-participation-journey li.is-current small { color: rgba(209, 239, 255, 0.76); }

@media (max-width: 980px) {
  .ai-operations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-participation-journey { grid-template-columns: 1fr; gap: 0; }
  .ai-participation-journey::before { top: 16px; bottom: 16px; left: 17px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(103, 206, 255, 0.4), rgba(159, 218, 248, 0.12)); }
  .ai-participation-journey li { grid-template-columns: 35px 1fr; justify-items: start; gap: 13px; min-height: 76px; text-align: left; }
  .ai-participation-journey li > div { max-width: none; padding: 3px 0 19px; }
}

@media (max-width: 560px) {
  .ai-operations { grid-template-columns: 1fr; gap: 10px; }
  .ai-operation-card { min-height: 122px; padding: 16px 18px; }
  .ai-operation-card > span, .ai-operations-empty > span { font-size: 10px; }
  .ai-operation-card > strong { font-size: 23px; }
  .ai-operation-card--status > strong { font-size: 18px; }
  .ai-operation-card > small { font-size: 11px; }
  .ai-operations-empty { min-height: 190px; padding: 22px 18px; }
  .ai-operations-empty > p { font-size: 12px; }
  .ai-participation-journey strong { font-size: 13px; }
  .ai-participation-journey small { font-size: 11px; }
  .gpu-market-card__details summary { min-height: 34px; padding-top: 3px; padding-bottom: 3px; }
}

.ai-participation-journey::before {
  left: calc(10% + 14px);
  right: calc(10% + 14px);
}

@media (max-width: 980px) {
  .ai-participation-journey::before {
    top: 37px;
    right: auto;
    bottom: 37px;
    left: 17px;
  }
}

.gpu-holding.has-decision {
  border-color: rgba(255, 208, 121, 0.52);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3), 0 0 28px rgba(255, 194, 91, 0.1), inset 0 1px 0 rgba(255, 244, 215, 0.1);
}

.gpu-holding__decision {
  display: grid;
  gap: 5px;
  margin: 16px 0 0;
  padding: 14px 15px;
  border: 1px solid rgba(255, 211, 125, 0.34);
  border-radius: 10px;
  background: linear-gradient(105deg, rgba(255, 185, 76, 0.14), rgba(255, 222, 151, 0.045));
}

.gpu-holding__decision > span { color: #ffd78f; font-size: 9px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.gpu-holding__decision > strong { color: #fff3d6; font-size: 14px; }
.gpu-holding__decision > small { color: rgba(255, 234, 198, 0.76); font-size: 11px; font-weight: 600; line-height: 1.45; }

.gpu-investment-terms {
  margin-top: 8px;
  border: 1px solid rgba(147, 207, 243, 0.15);
  border-radius: 11px;
  background: rgba(167, 219, 250, 0.035);
}

.gpu-investment-terms summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 47px;
  padding: 0 16px;
  color: #ccecff;
  cursor: pointer;
  list-style: none;
}

.gpu-investment-terms summary::-webkit-details-marker { display: none; }
.gpu-investment-terms summary > span { font-size: 10px; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.gpu-investment-terms summary > small { color: rgba(207, 231, 247, 0.53); font-size: 10px; font-weight: 650; }
.gpu-investment-terms summary::after { content: '+'; margin-left: 4px; color: #9edcff; font-size: 17px; line-height: 1; }
.gpu-investment-terms[open] summary { border-bottom: 1px solid rgba(147, 207, 243, 0.12); }
.gpu-investment-terms[open] summary::after { content: '−'; }

.gpu-investment-terms > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 14px 16px 16px;
}

.gpu-investment-terms p {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 11px;
  border: 1px solid rgba(171, 221, 249, 0.09);
  border-radius: 8px;
  background: rgba(219, 239, 253, 0.025);
}

.gpu-investment-terms p b { color: #e5f5ff; font-size: 10px; }
.gpu-investment-terms p span { color: rgba(212, 234, 248, 0.64); font-size: 10px; font-weight: 600; line-height: 1.45; }
.gpu-investment-terms a { justify-self: start; margin-top: 2px; color: #a7e3ff; font-size: 10px; font-weight: 850; letter-spacing: 0.05em; text-decoration: none; }
.gpu-investment-terms a:hover { color: #e0f7ff; text-decoration: underline; }

.gpu-purchase-balance-after {
  margin-top: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(119, 214, 183, 0.19);
  border-radius: 8px;
  background: rgba(90, 201, 163, 0.07);
  color: #bff3dc !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .gpu-investment-terms { margin-top: 2px; }
  .gpu-investment-terms summary { min-height: 48px; padding: 0 14px; }
  .gpu-investment-terms summary > span { font-size: 10px; }
  .gpu-investment-terms summary > small { display: none; }
  .gpu-investment-terms > div { grid-template-columns: 1fr; gap: 7px; padding: 12px 13px 14px; }
  .gpu-investment-terms p b { font-size: 11px; }
  .gpu-investment-terms p span { font-size: 11px; }
}

.gpu-investment-terms {
  position: relative;
  overflow: hidden;
  border-color: rgba(134, 214, 255, 0.26);
  background: radial-gradient(circle at 100% 0%, rgba(88, 190, 255, 0.14), transparent 39%), linear-gradient(145deg, rgba(13, 40, 60, 0.72), rgba(5, 14, 24, 0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 16px 36px rgba(0,0,0,0.14);
}

.gpu-investment-terms summary {
  position: relative;
  min-height: 40px;
  padding: 8px 17px;
  background: linear-gradient(90deg, rgba(107, 201, 255, 0.1), transparent 54%);
}

.gpu-investment-terms summary > span { display: grid; gap: 3px; }
.gpu-investment-terms summary > span > i { color: #8edbff; font-size: 8px; font-style: normal; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.gpu-investment-terms summary > span > strong { color: #f0f9ff; font-size: 14px; letter-spacing: -0.02em; }
.gpu-investment-terms summary > small { margin-left: auto; padding: 5px 8px; border: 1px solid rgba(154, 220, 252, 0.17); border-radius: 999px; background: rgba(182, 228, 252, 0.05); color: rgba(213, 239, 252, 0.67); font-size: 9px; white-space: nowrap; }
.gpu-investment-terms summary::after { margin-left: 8px; color: #c6efff; }

.gpu-investment-terms > div { gap: 10px; padding: 15px 17px 17px; }
.gpu-investment-terms p { position: relative; grid-template-columns: 23px 1fr; gap: 5px 8px; min-height: 92px; padding: 13px; border-color: rgba(172, 222, 249, 0.14); background: linear-gradient(145deg, rgba(216, 240, 254, 0.065), rgba(216, 240, 254, 0.02)); }
.gpu-investment-terms p > i { grid-row: 1 / span 2; display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid rgba(135, 215, 255, 0.29); border-radius: 50%; color: #a9e5ff; font-size: 8px; font-style: normal; font-weight: 900; }
.gpu-investment-terms p b { align-self: end; font-size: 11px; }
.gpu-investment-terms p span { grid-column: 2; font-size: 10px; }
.gpu-investment-terms a { display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 13px; border: 1px solid rgba(137, 215, 255, 0.3); border-radius: 8px; background: rgba(105, 196, 246, 0.1); color: #c9efff; }
.gpu-investment-terms a span { font-size: 17px; line-height: 1; }

.gpu-purchase-balance-after {
  display: flex;
  align-items: center;
  min-height: 41px;
  padding: 10px 12px;
  border-color: rgba(111, 225, 181, 0.28);
  background: linear-gradient(105deg, rgba(72, 196, 151, 0.16), rgba(109, 224, 183, 0.045));
  box-shadow: inset 0 1px 0 rgba(226, 255, 241, 0.06);
  color: #d5ffea !important;
}

@media (max-width: 760px) {
  .gpu-investment-terms summary { min-height: 40px; padding: 8px 14px; }
  .gpu-investment-terms summary > small { display: none; }
  .gpu-investment-terms > div { padding: 13px; }
  .gpu-investment-terms p { min-height: 0; padding: 13px; }
}

@media (max-width: 760px) {
  .ai-portfolio-section {
    background: rgba(5, 11, 19, 0.43);
    backdrop-filter: blur(10px);
  }

  .ai-portfolio-summary .ai-summary-card {
    background: radial-gradient(circle at 94% 2%, var(--summary-glow), transparent 38%), linear-gradient(145deg, rgba(19, 43, 65, 0.64), rgba(5, 13, 23, 0.6)) !important;
  }

  .ai-portfolio-summary .ai-autopilot-card {
    background: radial-gradient(circle at 82% 20%, rgba(113, 206, 255, 0.16), transparent 34%), linear-gradient(145deg, rgba(12, 39, 62, 0.65), rgba(4, 13, 25, 0.6)) !important;
  }

  .gpu-market-card {
    background: radial-gradient(circle at 100% 0%, rgba(var(--gpu-accent-rgb), 0.12), transparent 35%), linear-gradient(158deg, rgba(20, 45, 67, 0.64), rgba(7, 18, 31, 0.66) 58%, rgba(3, 10, 19, 0.62));
    backdrop-filter: blur(8px);
  }

  .gpu-market-card__yield,
  .gpu-market-card__stats div,
  .gpu-product-story,
  .gpu-investment-terms,
  .gpu-holding,
  .gpu-empty {
    background: rgba(8, 21, 33, 0.53);
  }

  .gpu-holding {
    background: radial-gradient(circle at 100% 0%, rgba(85, 202, 255, 0.09), transparent 29%), linear-gradient(145deg, rgba(15, 42, 61, 0.62), rgba(5, 14, 24, 0.6));
  }
}

@media (max-width: 760px) {
  .ai-portfolio-summary .ai-summary-card > span,
  .ai-portfolio-summary .ai-autopilot-card > span {
    min-height: 28px;
    color: color-mix(in srgb, var(--summary-accent, #a9e4ff) 88%, #f3fbff);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.085em;
    line-height: 1.3;
  }

  .ai-portfolio-summary .ai-autopilot-card > span {
    color: #c9efff;
  }
}

.ai-portfolio-summary.is-pre-investment {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#summaryEarningsCard[hidden],
#autopilotCard[hidden],
#holdingsSection[hidden] {
  display: none !important;
}

/* GPU Portfolio: same transparent Iceblue/Silver glass depth as the AI Labs dashboard. */
body.ailabs-portfolio-page .ai-portfolio-section,
body.ailabs-portfolio-page .ai-portfolio-summary article,
body.ailabs-portfolio-page .gpu-market-card,
body.ailabs-portfolio-page .gpu-holding,
body.ailabs-portfolio-page .gpu-empty {
  border-color: rgba(214, 236, 255, 0.105);
  background:
    radial-gradient(circle at top, rgba(142, 197, 255, 0.07) 0, rgba(3, 8, 14, 0.18) 44%, rgba(2, 6, 11, 0.28) 100%),
    rgba(3, 8, 14, 0.045) !important;
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

body.ailabs-portfolio-page .ai-portfolio-section--operations,
body.ailabs-portfolio-page .ai-portfolio-section--journey,
body.ailabs-portfolio-page .ai-portfolio-section--holdings {
  background:
    radial-gradient(circle at top, rgba(142, 197, 255, 0.065) 0, rgba(3, 8, 14, 0.17) 44%, rgba(2, 6, 11, 0.27) 100%),
    rgba(3, 8, 14, 0.04) !important;
}

body.ailabs-portfolio-page .gpu-market-card__yield,
body.ailabs-portfolio-page .gpu-market-card__stats div,
body.ailabs-portfolio-page .gpu-market-card__detail-list > div,
body.ailabs-portfolio-page .gpu-product-story,
body.ailabs-portfolio-page .gpu-investment-terms,
body.ailabs-portfolio-page .gpu-holding__grid div,
body.ailabs-portfolio-page .gpu-holding__decision,
body.ailabs-portfolio-page .ai-operation-card,
body.ailabs-portfolio-page .ai-operations-empty {
  border-color: rgba(214, 236, 255, 0.095);
  background:
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.035) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body.ailabs-portfolio-page .gpu-market-card {
  border-color: rgba(var(--gpu-accent-rgb), 0.16);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--gpu-accent-rgb), 0.12), transparent 35%),
    radial-gradient(circle at top, rgba(142, 197, 255, 0.055) 0, rgba(3, 8, 14, 0.17) 46%, rgba(2, 6, 11, 0.25) 100%),
    rgba(3, 8, 14, 0.045) !important;
}

body.ailabs-portfolio-page .ai-summary-card--portfolio {
  background:
    radial-gradient(circle at 94% 2%, rgba(65, 221, 203, 0.12), transparent 39%),
    radial-gradient(circle at top, rgba(142, 197, 255, 0.055) 0, rgba(3, 8, 14, 0.17) 46%, rgba(2, 6, 11, 0.25) 100%),
    rgba(3, 8, 14, 0.045) !important;
}

body.ailabs-portfolio-page .ai-summary-card--earnings {
  background:
    radial-gradient(circle at 94% 2%, rgba(138, 128, 255, 0.12), transparent 39%),
    radial-gradient(circle at top, rgba(142, 197, 255, 0.055) 0, rgba(3, 8, 14, 0.17) 46%, rgba(2, 6, 11, 0.25) 100%),
    rgba(3, 8, 14, 0.045) !important;
}

/* AI Labs network page — premium partner infrastructure view. */
body.ailabs-network-page .ailabs-shell {
  padding-bottom: 104px;
}

body.ailabs-network-page .ai-network-card--overview {
  grid-column: 1 / -1;
  min-height: 0;
  padding: 22px;
  border-radius: 16px;
}

body.ailabs-network-page .ai-network-card--overview .ai-card-head {
  margin-bottom: 18px;
}

body.ailabs-network-page .ai-network-card--overview .ai-card-head small {
  color: rgba(213, 235, 248, 0.62);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.ailabs-network-page .ai-network-card--overview .ai-network-command {
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
}

body.ailabs-network-page .ai-network-card--overview .ai-network-orbit {
  min-height: 186px;
}

.ai-network-hero {
  margin-bottom: 22px;
}

.ai-network-hero__copy {
  max-width: 760px;
  margin: -6px auto 0;
  color: rgba(218, 238, 250, 0.72);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
  text-align: center;
}

.ai-network-main {
  display: grid;
  gap: 16px;
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.ai-network-kpis,
.ai-network-grid,
.ai-network-yield-summary,
.ai-network-level-metrics {
  display: grid;
  gap: 12px;
}

.ai-network-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ai-network-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.ai-network-invite-care-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 14px;
  align-items: start;
}

.ai-network-workflow-section {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.045);
}

.ai-network-workflow-section--invite {
  background:
    radial-gradient(circle at 96% 0, rgba(142, 197, 255, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.045);
}

.ai-network-workflow-section--care {
  background:
    radial-gradient(circle at 96% 0, rgba(117, 239, 197, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.045);
}

.ai-network-workflow-section > header {
  display: grid;
  gap: 4px;
  margin-bottom: 13px;
}

.ai-network-workflow-section > header span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-network-workflow-section > header strong {
  color: #f2fbff;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.ai-network-workflow-section > header small {
  color: rgba(213, 235, 248, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-network-kpi,
.ai-network-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(214, 236, 255, 0.105);
  background:
    radial-gradient(circle at top, rgba(142, 197, 255, 0.07) 0, rgba(3, 8, 14, 0.18) 44%, rgba(2, 6, 11, 0.28) 100%),
    rgba(3, 8, 14, 0.055);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.ai-network-kpi::before,
.ai-network-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(149, 221, 255, 0.58), transparent);
  opacity: 0.72;
}

.ai-network-kpi {
  min-height: 128px;
  padding: 18px;
  border-radius: 14px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.ai-network-kpi span,
.ai-network-section-head span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-network-kpi strong {
  color: #f1faff;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 950;
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(142, 197, 255, 0.18);
}

.ai-network-kpi small,
.ai-network-section-head p {
  color: rgba(213, 235, 248, 0.64);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.ai-network-kpi--yield {
  border-color: rgba(255, 214, 134, 0.18);
  background:
    radial-gradient(circle at 95% 8%, rgba(255, 205, 116, 0.11), transparent 38%),
    radial-gradient(circle at top, rgba(142, 197, 255, 0.062) 0, rgba(3, 8, 14, 0.18) 45%, rgba(2, 6, 11, 0.28) 100%),
    rgba(3, 8, 14, 0.055);
}

.ai-network-panel {
  padding: 22px;
  border-radius: 16px;
}

.ai-network-section-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.ai-network-section-head h2 {
  margin: 5px 0 0;
  color: #f2f9ff;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ai-network-section-head p {
  max-width: 430px;
  margin: 0;
  text-align: right;
}

.ai-network-yield-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.ai-network-yield-summary--combined {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-network-yield-summary div,
.ai-network-level-metrics div,
.ai-network-code-row,
.ai-network-breakdown-row,
.ai-network-funnel-details,
.ai-network-funnel li,
.ai-network-rules,
.ai-network-rules article {
  border: 1px solid rgba(157, 215, 248, 0.1);
  background:
    linear-gradient(180deg, rgba(214, 236, 255, 0.022), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.ai-network-yield-summary div {
  min-height: 96px;
  padding: 15px;
  border-radius: 12px;
  display: grid;
  align-content: space-between;
}

.ai-network-yield-summary span,
.ai-network-level-metrics span,
.ai-network-breakdown-row span,
.ai-network-funnel strong {
  color: rgba(196, 229, 248, 0.82);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ai-network-yield-summary strong,
.ai-network-level-metrics strong,
.ai-network-breakdown-row strong {
  color: #eef9ff;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.ai-network-breakdown {
  display: grid;
  gap: 8px;
}

.ai-network-yield-details {
  margin-top: 12px;
}

.ai-network-yield-details summary {
  display: none;
}

.ai-network-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px 112px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
  border-radius: 11px;
}

.ai-network-breakdown-row small,
.ai-network-level-metrics small,
.ai-network-funnel small,
.ai-network-qr p,
.ai-network-table small,
.ai-network-rules p {
  color: rgba(213, 235, 248, 0.58);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-network-breakdown-row small,
.ai-network-funnel small,
.ai-network-table small {
  display: block;
  margin-top: 3px;
}

.ai-network-level-metrics small {
  display: block;
  margin-top: 2px;
}

.ai-network-breakdown-row b {
  justify-self: end;
  color: #9edcff;
  font-size: 13px;
}

.ai-network-invite-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-network-invite-actions button,
.ai-network-level-tabs button {
  min-height: 40px;
  border: 1px solid rgba(142, 197, 255, 0.24);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.08);
  color: #c9efff;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ai-network-invite-actions button:hover,
.ai-network-level-tabs button:hover,
.ai-network-level-tabs button.active {
  border-color: rgba(177, 231, 255, 0.58);
  background: rgba(142, 197, 255, 0.16);
  color: #f2fbff;
}

.ai-network-invite-actions button:nth-child(3) {
  grid-column: 1 / -1;
}

.ai-network-qr {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(214, 236, 255, 0.1);
  border-radius: 12px;
  background: rgba(3, 9, 16, 0.08);
  text-align: center;
}

.ai-network-qr canvas {
  width: 124px;
  height: 124px;
  border-radius: 10px;
  padding: 8px;
  background: #f8fcff;
}

.ai-network-qr-fallback {
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border: 1px dashed rgba(142, 197, 255, 0.28);
  border-radius: 10px;
  color: rgba(201, 239, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
}

.ai-network-table-wrap {
  max-height: 392px;
  overflow: auto;
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 13px;
  background: rgba(3, 9, 16, 0.06);
}

.ai-network-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.ai-network-table th,
.ai-network-table td {
  padding: 14px 13px;
  border-bottom: 1px solid rgba(157, 215, 248, 0.075);
  text-align: left;
}

.ai-network-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(4, 12, 22, 0.96);
  color: rgba(174, 215, 240, 0.58);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-network-table td {
  color: rgba(237, 248, 255, 0.88);
  font-size: 12px;
  font-weight: 750;
}

.ai-network-table tr:last-child td {
  border-bottom: 0;
}

.ai-network-table td strong {
  display: block;
  color: #e8f8ff;
  font-size: 13px;
}

.ai-network-care-table {
  max-height: 392px;
  overflow: auto;
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 13px;
  background: rgba(3, 9, 16, 0.06);
}

.ai-network-support-contact {
  margin-bottom: 12px;
}

.ai-network-support-contact__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid rgba(142, 197, 255, 0.16);
  border-radius: 13px;
  background:
    radial-gradient(circle at 96% 0, rgba(142, 197, 255, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(214, 236, 255, 0.028), rgba(255, 255, 255, 0.008)),
    rgba(3, 9, 16, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-network-support-contact__card span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-network-support-contact__card strong {
  display: block;
  margin-top: 4px;
  color: #f2fbff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.ai-network-support-contact__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid rgba(142, 197, 255, 0.16);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.065);
}

.ai-network-support-contact__line b,
.ai-network-support-contact__line code {
  color: rgba(238, 249, 255, 0.94);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.ai-network-support-contact__line code {
  color: #9edcff;
  letter-spacing: 0.02em;
}

.ai-network-support-contact__line i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(158, 220, 255, 0.48);
}

.ai-network-support-contact__card small {
  display: block;
  margin-top: 4px;
  color: rgba(213, 235, 248, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-network-support-contact__card button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.08);
  color: #c9efff;
  font: inherit;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.ai-network-support-contact__card button:hover {
  border-color: rgba(177, 231, 255, 0.58);
  background: rgba(142, 197, 255, 0.16);
  color: #f2fbff;
}

.ai-network-care-list {
  min-width: 840px;
}

.ai-network-contact {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(142, 197, 255, 0.25);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.08);
  color: #d5f3ff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-network-contact--anonymous {
  border-color: rgba(213, 235, 248, 0.13);
  background: rgba(213, 235, 248, 0.045);
  color: rgba(213, 235, 248, 0.72);
}

.ai-network-copy-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.08);
  color: #c9efff;
  font: inherit;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.ai-network-copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(177, 231, 255, 0.58);
  background: rgba(142, 197, 255, 0.16);
  color: #f2fbff;
}

.ai-network-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(117, 239, 197, 0.24);
  border-radius: 999px;
  background: rgba(117, 239, 197, 0.07);
  color: #c9ffe8;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ai-network-status--registered {
  border-color: rgba(255, 214, 134, 0.22);
  background: rgba(255, 214, 134, 0.07);
  color: #ffe1a3;
}

.ai-network-status--no_funds {
  border-color: rgba(255, 171, 97, 0.24);
  background: rgba(255, 171, 97, 0.07);
  color: #ffd5b1;
}

.ai-network-status--prepared {
  border-color: rgba(142, 197, 255, 0.25);
  background: rgba(142, 197, 255, 0.08);
  color: #d5f3ff;
}

.ai-network-status--yielding {
  border-color: rgba(117, 239, 197, 0.24);
  background: rgba(117, 239, 197, 0.07);
  color: #c9ffe8;
}

.ai-network-level-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.ai-network-level-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-network-level-metrics div {
  min-height: 108px;
  padding: 15px;
  border-radius: 12px;
  display: grid;
  align-content: space-between;
}

.ai-network-level-directs {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(214, 236, 255, 0.018), rgba(255, 255, 255, 0.006)),
    rgba(3, 9, 16, 0.045);
}

.ai-network-level-directs header {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.ai-network-level-directs header span,
.ai-network-level-note span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-network-level-directs header strong {
  color: #f2fbff;
  font-size: 17px;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.ai-network-level-directs header small,
.ai-network-level-note p {
  margin: 0;
  color: rgba(213, 235, 248, 0.62);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.45;
}

.ai-network-table-wrap--embedded {
  max-height: 334px;
}

.ai-network-level-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 13px;
  background: rgba(3, 9, 16, 0.06);
}

.ai-network-funnel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.ai-network-funnel-details {
  padding: 0;
  border-radius: 14px;
}

.ai-network-funnel-details summary,
.ai-network-rules summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 35px;
  padding: 0 10px;
  border-radius: 12px;
  color: #f1faff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.09em;
  list-style: none;
  text-transform: uppercase;
}

.ai-network-funnel-details summary::-webkit-details-marker,
.ai-network-rules summary::-webkit-details-marker {
  display: none;
}

.ai-network-funnel-details summary svg,
.ai-network-rules summary svg {
  width: 16px;
  height: 16px;
  color: #9edcff;
  transition: transform 0.18s ease;
}

.ai-network-funnel-details[open] summary svg,
.ai-network-rules[open] summary svg {
  transform: rotate(180deg);
}

.ai-network-funnel li {
  display: grid;
  gap: 10px;
  min-height: 164px;
  padding: 15px;
  border-radius: 13px;
}

.ai-network-funnel li > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(142, 216, 255, 0.28);
  border-radius: 50%;
  color: #a9e4ff;
  font-size: 10px;
  font-weight: 950;
}

.ai-network-funnel b {
  align-self: end;
  color: #f2fbff;
  font-size: 24px;
  letter-spacing: -0.05em;
}

.ai-network-rules {
  padding: 0;
  border-radius: 14px;
}

.ai-network-rules-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.ai-network-rules article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  min-height: 0;
  padding: 14px;
  border-radius: 13px;
}

.ai-network-rules article > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(142, 216, 255, 0.22);
  border-radius: 50%;
  color: #9edcff;
  font-size: 10px;
  font-weight: 950;
}

.ai-network-rules b {
  color: #f1faff;
  font-size: 13px;
  font-weight: 900;
}

.ai-network-rules p {
  margin: 7px 0 0;
}

.ai-network-empty,
.ai-network-empty-cell {
  color: rgba(213, 235, 248, 0.62);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.55;
}

.ai-network-empty-cell {
  padding: 22px !important;
  text-align: center !important;
}

.ai-network-toast {
  position: fixed;
  right: 18px;
  bottom: 92px;
  z-index: 12000;
  transform: translateY(10px);
  opacity: 0;
  padding: 12px 14px;
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 999px;
  background: rgba(5, 14, 24, 0.88);
  color: #eaf8ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.ai-network-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.ai-support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(214, 236, 255, 0.105);
  border-radius: 16px;
  background:
    radial-gradient(circle at 96% 8%, rgba(142, 197, 255, 0.08), transparent 36%),
    rgba(3, 8, 14, 0.055);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.ai-support-card span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ai-support-card h2 {
  margin: 5px 0 0;
  color: #f2f9ff;
  font-size: clamp(18px, 1.55vw, 24px);
  letter-spacing: -0.035em;
}

.ai-support-card p {
  margin: 6px 0 0;
  color: rgba(213, 235, 248, 0.64);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}

.ai-support-card button,
.ai-support-submit {
  min-height: 40px;
  border: 1px solid rgba(142, 197, 255, 0.28);
  border-radius: 999px;
  background: rgba(142, 197, 255, 0.1);
  color: #eaf8ff;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 0 16px;
  text-transform: uppercase;
}

.ai-support-modal {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 0%, rgba(142, 197, 255, 0.13), transparent 38%),
    rgba(0, 5, 10, 0.76);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow-y: auto;
}

.ai-support-modal[hidden] {
  display: none;
}

.ai-support-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(620px, calc(100vw - 36px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 26px;
  border: 1px solid rgba(214, 236, 255, 0.18);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.006)),
    radial-gradient(circle at 12% 0%, rgba(142, 197, 255, 0.14), transparent 42%),
    rgba(4, 12, 21, 0.97);
  box-shadow:
    0 38px 110px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: #eaf7ff;
}

.ai-support-modal__dialog,
.ai-support-modal__dialog * {
  box-sizing: border-box;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ai-support-modal__dialog > span,
.ai-support-modal__dialog label span {
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ai-support-modal__dialog h2 {
  margin: 6px 0 0;
  color: #f2f9ff;
  font-size: clamp(23px, 4.8vw, 31px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.ai-support-modal__dialog p {
  margin: 8px 0 16px;
  color: rgba(213, 235, 248, 0.66);
  font-size: 12px;
  line-height: 1.55;
  max-width: 500px;
}

.ai-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ai-support-modal__dialog label {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.ai-support-modal__dialog input,
.ai-support-modal__dialog select,
.ai-support-modal__dialog textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(142, 197, 255, 0.16);
  border-radius: 11px;
  background: rgba(5, 15, 26, 0.72);
  color: #eaf7ff;
  font: inherit;
  font-size: 13px;
  padding: 10px 12px;
  outline: none;
}

.ai-support-modal__dialog select,
.ai-support-modal__dialog option {
  color: #eaf7ff;
  background: #071522;
}

.ai-support-modal__dialog input::placeholder,
.ai-support-modal__dialog textarea::placeholder {
  color: rgba(213, 235, 248, 0.42);
}

.ai-support-modal__dialog input:focus,
.ai-support-modal__dialog select:focus,
.ai-support-modal__dialog textarea:focus {
  border-color: rgba(158, 220, 255, 0.44);
  box-shadow: 0 0 0 3px rgba(142, 197, 255, 0.08);
}

.ai-support-modal__dialog textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
  word-break: break-word;
}

.ai-support-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(214, 236, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #eaf8ff;
  cursor: pointer;
  font-size: 20px;
}

.ai-support-message {
  display: block;
  min-height: 16px;
  margin: 10px 0;
  color: rgba(213, 235, 248, 0.72);
  font-size: 11px;
  font-weight: 700;
}

.ai-support-submit {
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  border-color: rgba(158, 220, 255, 0.36);
  background:
    linear-gradient(135deg, rgba(142, 197, 255, 0.18), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.ai-support-history {
  margin-top: 14px;
  border: 1px solid rgba(142, 197, 255, 0.14);
  border-radius: 14px;
  background: rgba(3, 9, 16, 0.22);
}

.ai-support-history summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  color: #eaf8ff;
  cursor: pointer;
  list-style: none;
}

.ai-support-history summary::-webkit-details-marker {
  display: none;
}

.ai-support-history summary span {
  color: #9edcff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-support-history summary svg {
  width: 16px;
  height: 16px;
  color: #9edcff;
  transition: transform 0.18s ease;
}

.ai-support-history[open] summary svg {
  transform: rotate(180deg);
}

.ai-support-history-list {
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}

.ai-support-ticket,
.ai-support-history-empty {
  border: 1px solid rgba(157, 215, 248, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  padding: 10px;
}

.ai-support-ticket header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-support-ticket strong {
  color: #f2f9ff;
  font-size: 13px;
  line-height: 1.25;
}

.ai-support-ticket p {
  margin: 7px 0 0;
  color: rgba(229, 244, 255, 0.76);
  font-size: 11px;
  line-height: 1.45;
}

.ai-support-ticket small,
.ai-support-history-empty {
  color: rgba(213, 235, 248, 0.58);
  font-size: 10px;
  line-height: 1.4;
}

.ai-support-ticket__status {
  flex: 0 0 auto;
  border: 1px solid rgba(142, 197, 255, 0.18);
  border-radius: 999px;
  color: #9edcff;
  font-size: 9px;
  font-weight: 950;
  padding: 4px 7px;
  text-transform: uppercase;
}

.ai-support-ticket__status--resolved {
  border-color: rgba(117, 239, 197, 0.24);
  color: #c9ffe8;
}

.ai-support-ticket__status--open {
  border-color: rgba(255, 214, 134, 0.22);
  color: #ffe1a3;
}

@media (max-width: 980px) {
  .ai-network-kpis,
  .ai-network-grid,
  .ai-network-level-metrics,
  .ai-network-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-network-funnel {
    grid-template-columns: 1fr;
  }

  .ai-network-funnel li {
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    min-height: 0;
  }

  .ai-network-support-contact__card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .ai-network-support-contact__card button {
    width: 100%;
  }

  .ai-network-invite-care-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ai-network-main {
    width: calc(100% - 18px);
    gap: 12px;
  }

  .ai-network-kpis,
  .ai-network-grid,
  .ai-network-yield-summary,
  .ai-network-level-metrics,
  .ai-network-rules {
    grid-template-columns: 1fr;
  }

  .ai-network-panel,
  .ai-network-kpi {
    border-radius: 12px;
    padding: 16px;
  }

  body.ailabs-network-page .ai-network-card--overview {
    padding: 16px;
    border-radius: 12px;
  }

  body.ailabs-network-page .ai-network-card--overview .ai-card-head {
    display: grid;
    gap: 5px;
  }

  body.ailabs-network-page .ai-network-card--overview .ai-network-command {
    grid-template-columns: 1fr;
  }

  body.ailabs-network-page .ai-network-card--overview .ai-network-orbit {
    min-height: 148px;
  }

  body.ailabs-network-page .ai-network-kpi--yield,
  body.ailabs-network-page .ai-network-kpi--settlement {
    display: none !important;
  }

  .ai-network-section-head {
    display: grid;
    gap: 9px;
  }

  .ai-network-section-head p {
    max-width: none;
    text-align: left;
  }

  .ai-network-yield-summary {
    gap: 8px;
    margin-bottom: 10px;
  }

  .ai-network-yield-summary div {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    align-content: center;
    gap: 7px;
  }

  .ai-network-yield-summary span {
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.075em;
  }

  .ai-network-yield-summary strong {
    font-size: 20px;
    line-height: 1.08;
  }

  .ai-network-breakdown-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ai-network-yield-details {
    margin-top: 10px;
  }

  .ai-network-yield-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 35px;
    padding: 0 10px;
    border: 1px solid rgba(157, 215, 248, 0.12);
    border-radius: 12px;
    background: rgba(3, 9, 16, 0.16);
    color: rgba(222, 242, 255, 0.9);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.085em;
    list-style: none;
    text-transform: uppercase;
  }

  .ai-network-yield-details summary::-webkit-details-marker {
    display: none;
  }

  .ai-network-yield-details summary svg {
    width: 16px;
    height: 16px;
    color: #9edcff;
    transition: transform 0.18s ease;
  }

  .ai-network-yield-details[open] summary svg {
    transform: rotate(180deg);
  }

  .ai-network-yield-details .ai-network-breakdown {
    margin-top: 8px;
  }

  .ai-network-level-metrics {
    gap: 8px;
  }

  .ai-network-level-metrics div {
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    align-content: center;
    gap: 7px;
  }

  .ai-network-level-metrics div:nth-child(3) {
    min-height: 69px;
  }

  .ai-network-level-metrics span {
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0.075em;
  }

  .ai-network-level-metrics strong {
    font-size: 20px;
    line-height: 1.08;
  }

  .ai-network-level-metrics small {
    font-size: 9px;
    line-height: 1.25;
  }

.ai-network-rules {
  padding: 0;
}

.ai-network-rules--embedded {
  margin-top: 14px;
}

  .ai-network-rules summary {
    min-height: 35px;
    padding: 0 10px;
  }

  .ai-network-rules article {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .ai-network-rules article > span {
    width: 28px;
    height: 28px;
  }

  .ai-network-rules p {
    margin-top: 6px;
  }

  .ai-network-breakdown-row b,
  .ai-network-breakdown-row strong {
    justify-self: start;
  }

  .ai-network-invite-actions {
    grid-template-columns: 1fr;
  }

  .ai-network-qr canvas,
  .ai-network-qr-fallback {
    width: 108px;
    height: 108px;
  }

  .ai-support-card {
    grid-template-columns: 1fr;
    padding: 16px;
    border-radius: 12px;
  }

  .ai-support-card button {
    width: 100%;
  }

  .ai-support-grid {
    grid-template-columns: 1fr;
  }

  .ai-support-modal__dialog {
    width: min(100%, calc(100vw - 30px));
    max-height: calc(100vh - 44px);
    padding: 22px 16px 18px;
    border-radius: 18px;
  }

  .ai-support-modal {
    padding: max(22px, env(safe-area-inset-top)) 15px max(22px, env(safe-area-inset-bottom));
    place-items: start center;
  }

  .ai-support-modal__close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 900px) {
  body.ailabs-network-page .ai-network-kpi--yield,
  body.ailabs-network-page .ai-network-kpi--settlement {
    display: none !important;
  }
}

@media (max-width: 760px) {
  body.ailabs-portfolio-page .ai-portfolio-section,
  body.ailabs-portfolio-page .ai-portfolio-summary article,
  body.ailabs-portfolio-page .gpu-market-card,
  body.ailabs-portfolio-page .gpu-holding,
  body.ailabs-portfolio-page .gpu-empty {
    background:
      radial-gradient(circle at top, rgba(142, 197, 255, 0.075) 0, rgba(3, 8, 14, 0.2) 44%, rgba(2, 6, 11, 0.31) 100%),
      rgba(3, 8, 14, 0.05) !important;
  }
}
