/* 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.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;
}

/* 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 .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;
  justify-content: center;
  margin: 0 0 2px;
}

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

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

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


/* --- 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: 600px) {
  .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;
}

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


/* --- 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;
}

/* 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-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: 6px;
  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);
  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: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  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: 74px;
}

.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%; }
#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;
}

/* 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";
}
