/* ========================================================================
   Gain EX GREEN & BLACK THEME - Premium High-End Design
   ======================================================================== */

:root {
  /* Green & Black backgrounds */
  --bg-main: #06070a !important;
  --bg-card: #0f1118 !important;
  --bg-card-hover: #161924 !important;
  --border-color: rgba(255, 255, 255, 0.08) !important;
  --border-glow: rgba(26, 183, 109, 0.25) !important;

  /* Parrot Green brand accents */
  --primary: #1ab76d !important;
  --primary-hover: #1ed780 !important;
  --primary-dark: #12824c !important;
  --primary-light: rgba(26, 183, 109, 0.12) !important;

  /* Text colors */
  --text-primary: #ffffff !important;
  --text-secondary: #9a9da6 !important;
  --text-muted: #5e6475 !important;
  --text-green: #1ab76d !important;

  /* Status Colors */
  --success: #1ab76d !important;
  --success-hover: #1ed780 !important;
  --success-light: rgba(26, 183, 109, 0.12) !important;
  --danger: #ff6251 !important;
  --danger-hover: #ff7a6c !important;
  --danger-light: rgba(255, 98, 81, 0.12) !important;

  /* UI adjustments */
  --radius-sm: 8px !important;
  --radius-md: 12px !important;
  --radius-lg: 20px !important;
  --shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.45) !important;
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Base resets */
html, body {
  background-color: var(--bg-main) !important;
  background-image: none !important;
  color: var(--text-primary) !important;
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Force flat backgrounds and colors */
* {
  background-image: none !important;
}

/* Exemptions for gradient backgrounds in profile/invite */
.invite-hero,
.badge-progress-bar-fill {
  background-image: unset !important;
}

/* Reset gradients on specific layout wrappers */
.app-container {
  background-color: var(--bg-main) !important;
  border-left: 1px solid var(--border-color) !important;
  border-right: 1px solid var(--border-color) !important;
  overflow-x: hidden !important;
}

/* App Header & Nav bar overrides */
.app-header {
  background-color: var(--bg-card) !important;
  border-bottom: 1px solid var(--border-color) !important;
  background-image: none !important;
}

.app-nav {
  background-color: var(--bg-card) !important;
  border-top: 1px solid var(--border-color) !important;
  background-image: none !important;
}

/* Sidebar for desktop */
@media (min-width: 769px) {
  .app-nav {
    border-right: 1px solid var(--border-color) !important;
    border-top: none !important;
  }
}

/* Cards & lists */
.card, .wallet-balance-card, .history-card, .support-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow) !important;
}

/* dashboard-balance-card has its own styling in the premium card section below */
/* Do NOT set background, border, or shadow here — handled further down */

.card:hover {
  background: var(--bg-card-hover) !important;
}
/* dashboard-balance-card should NOT change background on hover — keeps the image */


.dashboard-balance-card::before, .wallet-balance-card::before {
  background: transparent !important;
  background-image: none !important;
}

/* Inputs & Form controls */
.form-control, input[type="text"], input[type="password"], input[type="number"], input[type="email"], select {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  transition: var(--transition) !important;
}

.form-control:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="email"]:focus, select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-light) !important;
  outline: none !important;
}

/* Buttons styling */
.btn {
  border-radius: 20px !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  font-size: 14px !important;
  transition: var(--transition) !important;
  border: none !important;
}

.btn-primary {
  background: var(--primary) !important;
  color: #000000 !important;
  box-shadow: 0 4px 12px var(--primary-light) !important;
}

.btn-primary:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #1e2633 !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* Trade execution buttons */
.trade-btn-up, .tc-btn-up {
  background: var(--success) !important;
  color: #000000 !important;
  font-weight: 700 !important;
}

.trade-btn-up:hover, .tc-btn-up:hover {
  background: var(--success-hover) !important;
}

.trade-btn-down, .tc-btn-down {
  background: var(--danger) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.trade-btn-down:hover, .tc-btn-down:hover {
  background: var(--danger-hover) !important;
}

/* Wallet and Navigation items - Desktop and Mobile Theme Sync */
.nav-item.active {
  color: var(--primary) !important;
}

@media (max-width: 767px) {
  /* Mobile-specific wallet indicator base */
  .nav-wallet-circle {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
  }
}

@media (min-width: 768px) {
  /* Premium green theme styling for desktop sidebar items */
  .nav-item.active {
    background-color: rgba(16, 185, 129, 0.12) !important; /* Green tint background instead of blue */
    color: var(--primary) !important;
  }
  
  .nav-item.active svg {
    filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.4)) !important; /* Green glow instead of blue */
  }

  .nav-item:hover:not(.active) {
    background-color: rgba(16, 185, 129, 0.05) !important; /* Premium subtle green hover */
    color: #ffffff !important;
  }

  /* Improve vertical gap alignment for desktop sidebar buttons */
  .nav-items-group-top,
  .nav-items-group-bottom {
    gap: 12px !important;
  }
}

/* Toast Notifications */
.toast-success::before, .toast-success::after {
  background: var(--success) !important;
}

.toast-error::before, .toast-error::after {
  background: var(--danger) !important;
}

/* Asset picker & list */
.asset-picker-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px !important;
  border-radius: var(--radius-sm) !important;
}

.asset-picker-item:hover {
  background: var(--bg-card-hover) !important;
}

.asset-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.asset-logo[data-coin="BTC"] { background: #f7931a !important; color: #fff !important; }
.asset-logo[data-coin="ETH"] { background: #627eea !important; color: #fff !important; }
.asset-logo[data-coin="SOL"] { background: #9945ff !important; color: #fff !important; }
.asset-logo[data-coin="BNB"] { background: #f3ba2f !important; color: #000 !important; }
.asset-logo[data-coin="DOGE"] { background: #c2a633 !important; color: #fff !important; }
.asset-logo[data-coin="XRP"] { background: #00aae4 !important; color: #fff !important; }

/* Onboarding Carousel container classes */
#screen-onboarding {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.onboarding-screen-wrapper {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  justify-content: space-between;
  padding: 20px 0 30px 0;
  box-sizing: border-box;
}

.onboarding-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  flex: 1;
}

.onboarding-track::-webkit-scrollbar {
  display: none;
}

.onboarding-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  box-sizing: border-box;
}

.onboarding-image-container {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.onboarding-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.onboarding-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.25;
}

.onboarding-title span {
  color: var(--primary) !important;
}

.onboarding-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 20px 0 24px 0;
}

.onboarding-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-muted) !important;
  transition: var(--transition) !important;
  cursor: pointer;
}

.onboarding-dots .dot.active {
  background-color: var(--primary) !important;
  width: 20px;
  border-radius: 4px;
}

.onboarding-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Premium onboarding buttons */
.btn-google-auth {
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px !important;
  border-radius: 24px !important;
  font-size: 15px !important;
}

.btn-google-auth:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}

.btn-onboarding-signup {
  background-color: var(--primary) !important;
  color: #000000 !important;
  padding: 14px !important;
  border-radius: 24px !important;
  font-size: 15px !important;
}

.btn-onboarding-signup:hover {
  background-color: var(--primary-hover) !important;
}

.btn-onboarding-signin {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
  padding: 14px !important;
  border-radius: 24px !important;
  font-size: 15px !important;
}

.btn-onboarding-signin:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
}

/* Auth screens styles */
.auth-screen {
  background-color: var(--bg-main) !important;
  padding: 24px 12px !important;
  position: relative;
  flex-direction: column !important;
  justify-content: flex-start !important;
  align-items: center !important;
  min-height: 100% !important;
}

/* When an auth screen is active, show it as flex and allow natural height */
.screen.active-screen.auth-screen {
  display: flex !important;
  height: auto !important;
}

.auth-header-logo img {
  filter: drop-shadow(0 0 12px var(--border-glow));
}

.auth-back-btn {
  position: absolute;
  top: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 100;
}

.auth-back-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--primary);
  border-color: var(--primary-light);
}

.app-logo-text {
  background: transparent !important;
  background-image: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  color: var(--text-primary) !important;
}

/* Splash Screen Styling */
.splash-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-main) !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.splash-logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  animation: splashFadeIn 1s ease-out;
}

.splash-logo {
  height: 60px;
  width: 60px;
  object-fit: cover;
  object-position: top;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px var(--border-glow));
}

.splash-app-name {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.splash-app-name span {
  color: var(--primary) !important;
}

.splash-tagline {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 6px;
  font-weight: 500;
}

.splash-loader-bar {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.splash-loader-fill {
  height: 100%;
  width: 0%;
  background: var(--primary) !important;
  border-radius: 2px;
}

@keyframes splashFill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes splashFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Auth Pages Styling */
.auth-page-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  margin: auto !important;
  padding: 30px 8px !important;
  box-sizing: border-box;
  min-height: 100%;
  justify-content: flex-start !important;
}

.auth-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  text-align: center;
}

.auth-logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px var(--border-glow));
}

.auth-brand-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.auth-brand-name span {
  color: var(--primary) !important;
}

.auth-brand-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.auth-card {
  background: var(--bg-card) !important;
  border: 2px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 16px !important;
  padding: 28px 24px !important;
  box-shadow: var(--shadow) !important;
  margin-bottom: 20px;
}

.auth-card-title {
  display: block !important;
  width: 100% !important;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center !important;
}

.auth-field {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 2px;
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  transition: var(--transition) !important;
}

.auth-input-wrap:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px var(--primary-light) !important;
}

.auth-input-icon {
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-input-wrap .auth-input,
.auth-input-wrap input,
.auth-input-wrap select {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 14px 12px !important;
  font-size: 14px !important;
  width: 100% !important;
  color: var(--text-primary) !important;
  box-sizing: border-box !important;
}

.auth-input-wrap .auth-input:focus,
.auth-input-wrap input:focus,
.auth-input-wrap select:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.auth-input-wrap .auth-input::placeholder,
.auth-input-wrap input::placeholder {
  color: var(--text-muted) !important;
}

/* ── Browser Autofill Override ──────────────────────────────────────
   Browsers force a white/yellow background on autofilled inputs via
   the internal -webkit-autofill style. The ONLY reliable fix is using
   a large inset box-shadow to paint over the forced background color.
   The transition delay pushes the real background-color change to
   99999s so it never visibly appears.
─────────────────────────────────────────────────────────────────── */
.auth-input-wrap .auth-input:-webkit-autofill,
.auth-input-wrap input:-webkit-autofill,
.auth-input-wrap .auth-input:-webkit-autofill:hover,
.auth-input-wrap input:-webkit-autofill:hover,
.auth-input-wrap .auth-input:-webkit-autofill:focus,
.auth-input-wrap input:-webkit-autofill:focus,
.auth-input-wrap .auth-input:-webkit-autofill:active,
.auth-input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px rgba(22, 28, 40, 0.98) inset !important;
  box-shadow: 0 0 0 1000px rgba(22, 28, 40, 0.98) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  caret-color: var(--text-primary) !important;
  background-color: transparent !important;
  transition: background-color 99999s ease-in-out 0s !important;
}

.auth-eye-btn {
  background: transparent !important;
  border: none !important;
  color: var(--text-muted) !important;
  cursor: pointer;
  padding: 8px 4px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition) !important;
}

.auth-eye-btn:hover {
  color: var(--primary) !important;
}

.auth-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%239a9da6' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  padding-right: 32px !important;
}

.auth-select option {
  background-color: #0f1118 !important;
  color: #ffffff !important;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
  margin-right: .5em;
}

.auth-divider:not(:empty)::after {
  margin-left: .5em;
}

.auth-submit-btn {
  background: var(--primary) !important;
  color: #000000 !important;
  width: 100% !important;
  border-radius: 10px !important;
  padding: 14px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--primary-light) !important;
}

.auth-submit-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.auth-switch-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 20px;
  margin-bottom: 4px;
}

.auth-switch-text a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-switch-text a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.auth-error-box {
  background-color: rgba(255, 98, 81, 0.1) !important;
  border: 1px solid rgba(255, 98, 81, 0.2) !important;
  color: #ff6251 !important;
  padding: 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
}

.auth-success-box {
  background-color: rgba(26, 183, 109, 0.1) !important;
  border: 1px solid rgba(26, 183, 109, 0.2) !important;
  color: #1ab76d !important;
  padding: 12px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
}

/* ========================================================================
   BOTTOM NAVIGATION BAR & DASHBOARD REDESIGN STYLES
   ======================================================================== */

/* Mobile Bottom Navigation Bar Notch & Indicator */
@media (max-width: 767px) {
  .app-nav {
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
    height: 68px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .nav-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
  }

  .nav-bg-svg {
    position: absolute;
    top: -1px;
    left: 0;
    height: 100%;
    width: 1000px;
    fill: var(--bg-card) !important;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(calc(var(--active-x, 50px) - 500px));
  }

  .nav-indicator-circle {
    position: absolute;
    top: -18px;
    left: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary) !important;
    box-shadow: 0 6px 20px var(--border-glow) !important;
    z-index: 15;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform: translateX(calc(var(--active-x, 50px) - 28px));
    /* Perfect flex centering for the icon placed inside by JS */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .nav-items-group-top {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
  }

  .nav-item.desktop-only-nav {
    display: none !important;
  }

  .nav-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    color: var(--text-secondary) !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }

  .nav-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    color: var(--text-secondary) !important;
    transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55), color 0.25s !important;
    position: relative !important;
    z-index: 6 !important;
  }

  .nav-icon-wrapper svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    display: block !important;
  }

  .nav-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
    color: var(--text-secondary) !important;
    transition: opacity 0.25s, transform 0.25s !important;
  }

  /* Active state: hide original icon (it is now rendered inside the green circle by JS) */
  .nav-item.active .nav-icon-wrapper {
    visibility: hidden !important;
    transform: none !important;
  }

  .nav-item.active .nav-label {
    opacity: 0 !important;
    transform: translateY(10px) !important;
  }

  /* Wallet center normalizer for mobile view */
  .nav-wallet-center {
    flex: 1 !important;
    margin-top: 0 !important;
  }
  .nav-wallet-center.active .nav-wallet-circle,
  .nav-wallet-center:hover .nav-wallet-circle,
  .nav-wallet-circle {
    width: 26px !important;
    height: 26px !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    /* No transform: none here — allow the active translateY to work */
  }
  .nav-wallet-circle svg {
    width: 24px !important;
    height: 24px !important;
    fill: currentColor !important;
    display: block !important;
  }
}


/* Header & Brand Layout Override */
.app-header {
  height: 62px !important;
  padding: 0 16px !important;
  display: flex;
  justify-content: space-between !important;
  align-items: center !important;
  background-color: var(--bg-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.logo-container {
  display: flex !important;
  align-items: center !important;
}

.header-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Preserve the logo's own colors – no filter */
}

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.header-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.header-action-btn svg {
  width: 18px;
  height: 18px;
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 10px;
  background-color: var(--danger);
  border: 1px solid var(--bg-card);
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.header-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--primary-light);
  border: 1px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}

.header-user-avatar:hover {
  background-color: var(--primary);
  color: var(--bg-main);
  box-shadow: 0 0 12px var(--border-glow);
}

/* ===== PREMIUM DASHBOARD BALANCE CARD ===== */
/* Wrapper allows coins to pop above card top without causing page scroll */
.balance-card-wrapper {
  position: relative !important;
  padding-top: 28px !important;
  margin-top: -28px !important;
  overflow: visible !important;
  /* Enable container queries so all child elements scale with card width */
  container-type: inline-size !important;
  container-name: balance-card !important;
}

.dashboard-balance-card {
  background-color: #0d0f16 !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 20px !important;
  margin-bottom: 16px !important;
  position: relative !important;
  overflow: visible !important;
  /* Fixed height — card grows WIDE not TALL */
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
  display: flex !important;
  align-items: stretch !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
}

/* Desktop height */
@media (min-width: 768px) {
  .dashboard-balance-card {
    min-height: 200px !important;
  }
}

/* 3D Coins Image - mobile view */
.balance-card-bg-img {
  position: absolute !important;
  top: -2px !important;
  right: -10px !important;
  height: 59% !important;
  width: auto !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

/* 3D Coins Image - desktop view override */
@media (min-width: 768px) {
  .balance-card-bg-img {
    top: -18px !important;
    right: -10px !important;
    height: 87% !important;
  }
}

.balance-card-bg-img-desktop {
  display: none !important;
}

.balance-card-content-desktop {
  display: none !important;
}

/* No mask overlay for this image - high text contrast is maintained naturally by image composition */
.balance-card-overlay {
  display: none !important;
}

/* Content panel sits above gradient overlay */
.balance-card-content {
  position: relative !important;
  z-index: 2 !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 58% !important;
}

@media (min-width: 768px) {
  .balance-card-content {
    width: 55% !important;
    padding: 18px 24px !important;
  }
}

/* ── BASE (no container query needed — these are the smallest fallback) ── */
.balance-card-label {
  font-size: 9px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 4px !important;
}

.balance-card-amount {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -0.5px !important;
  line-height: 1.05 !important;
  margin-bottom: 4px !important;
  text-shadow: 0 0 30px rgba(26,183,109,0.3) !important;
}

/* Green status dot */
.balance-card-status {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
  margin-bottom: 10px !important;
}

.status-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #1ab76d !important;
  box-shadow: 0 0 8px #1ab76d !important;
  animation: pulseDot 2s ease-in-out infinite !important;
  flex-shrink: 0 !important;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #1ab76d; }
  50% { opacity: 0.6; box-shadow: 0 0 14px #1ab76d; }
}

.status-text {
  font-size: 11px !important;
  color: rgba(255,255,255,0.45) !important;
  font-weight: 500 !important;
}

/* Action buttons */
.balance-card-actions {
  display: flex !important;
  gap: 10px !important;
  width: 100% !important;
}

.bal-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  padding: 7px 14px !important;
  border-radius: 50px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  border: none !important;
  white-space: nowrap !important;
}

.bal-btn svg {
  fill: currentColor !important;
  flex-shrink: 0 !important;
}

/* Green solid Deposit — no gradient, no glow */
.bal-btn-deposit {
  background: #1ab76d !important;
  color: #fff !important;
  box-shadow: none !important;
}

.bal-btn-deposit:hover {
  background: #17a562 !important;
  transform: translateY(-1px) !important;
  box-shadow: none !important;
}

/* Dark outlined Withdraw — no glow */
.bal-btn-withdraw {
  background: rgba(30,32,40,0.85) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  color: rgba(255,255,255,0.9) !important;
}

.bal-btn-withdraw:hover {
  background: rgba(50,52,62,0.95) !important;
  border-color: rgba(255,255,255,0.3) !important;
  transform: translateY(-1px) !important;
}

/* ════════════════════════════════════════════════
   CONTAINER QUERIES — scale all elements with card width
   All sizes tuned to fit inside 200px fixed card height:
   label + amount + status + buttons = ~100-120px total
   ════════════════════════════════════════════════ */

/* Card ≥ 280px (tiny phones) */
@container balance-card (min-width: 280px) {
  .balance-card-label    { font-size: 8px !important; letter-spacing: 1px !important; margin-bottom: 3px !important; }
  .balance-card-amount   { font-size: 20px !important; letter-spacing: -0.5px !important; margin-bottom: 3px !important; }
  .balance-card-status   { margin-bottom: 8px !important; }
  .status-dot            { width: 6px !important; height: 6px !important; }
  .status-text           { font-size: 9px !important; }
  .bal-btn               { font-size: 11px !important; padding: 6px 11px !important; gap: 4px !important; }
  .balance-card-bg-img   { height: 55% !important; }
}

/* Card ≥ 340px (standard phones) */
@container balance-card (min-width: 340px) {
  .balance-card-label    { font-size: 9px !important; letter-spacing: 1.2px !important; margin-bottom: 4px !important; }
  .balance-card-amount   { font-size: 24px !important; letter-spacing: -0.5px !important; margin-bottom: 4px !important; }
  .balance-card-status   { margin-bottom: 10px !important; }
  .status-dot            { width: 6px !important; height: 6px !important; }
  .status-text           { font-size: 10px !important; }
  .bal-btn               { font-size: 12px !important; padding: 7px 13px !important; }
  .balance-card-bg-img   { height: 60% !important; }
}

/* Card ≥ 420px (large phones / small tablets) */
@container balance-card (min-width: 420px) {
  .balance-card-label    { font-size: 9px !important; letter-spacing: 1.4px !important; margin-bottom: 4px !important; }
  .balance-card-amount   { font-size: 26px !important; letter-spacing: -0.5px !important; margin-bottom: 4px !important; }
  .balance-card-status   { margin-bottom: 10px !important; }
  .status-dot            { width: 7px !important; height: 7px !important; }
  .status-text           { font-size: 10px !important; }
  .bal-btn               { font-size: 12px !important; padding: 7px 15px !important; }
  .balance-card-bg-img   { height: 65% !important; }
}

/* Card ≥ 520px (tablets / medium) */
@container balance-card (min-width: 520px) {
  .balance-card-label    { font-size: 10px !important; letter-spacing: 1.5px !important; margin-bottom: 4px !important; }
  .balance-card-amount   { font-size: 28px !important; letter-spacing: -1px !important; margin-bottom: 5px !important; }
  .balance-card-status   { margin-bottom: 10px !important; }
  .status-dot            { width: 7px !important; height: 7px !important; }
  .status-text           { font-size: 11px !important; }
  .bal-btn               { font-size: 13px !important; padding: 8px 16px !important; }
  .balance-card-bg-img   { height: 72% !important; }
}

/* Card ≥ 640px (wide tablets / desktop) */
@container balance-card (min-width: 640px) {
  .balance-card-label    { font-size: 10px !important; letter-spacing: 1.8px !important; margin-bottom: 4px !important; }
  .balance-card-amount   { font-size: 30px !important; letter-spacing: -1px !important; margin-bottom: 5px !important; }
  .balance-card-status   { margin-bottom: 10px !important; }
  .status-dot            { width: 7px !important; height: 7px !important; }
  .status-text           { font-size: 11px !important; }
  .bal-btn               { font-size: 13px !important; padding: 8px 18px !important; }
  .balance-card-bg-img   { height: 78% !important; top: -10px !important; }
}

/* Card ≥ 800px (large desktop) */
@container balance-card (min-width: 800px) {
  .balance-card-label    { font-size: 11px !important; letter-spacing: 2px !important; margin-bottom: 5px !important; }
  .balance-card-amount   { font-size: 32px !important; letter-spacing: -1px !important; margin-bottom: 6px !important; }
  .balance-card-status   { margin-bottom: 10px !important; }
  .status-dot            { width: 8px !important; height: 8px !important; }
  .status-text           { font-size: 12px !important; }
  .bal-btn               { font-size: 14px !important; padding: 8px 20px !important; }
  .balance-card-bg-img   { height: 85% !important; top: -14px !important; }
}

/* ===== PREMIUM QUICK LINKS ROW ===== */
.dashboard-quick-links-row {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  align-items: stretch !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  width: 100% !important;
}

@media (min-width: 768px) {
  .dashboard-quick-links-row {
    display: none !important;
  }
}

.quick-link-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  padding: 8px 4px !important;
  transition: all 0.25s ease !important;
}

.quick-link-item:hover {
  background: transparent !important;
  border: none !important;
  transform: translateY(-2px) !important;
}

/* Neon icon circles */
.quick-link-circle {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 8px !important;
  transition: all 0.25s ease !important;
  background: var(--bg-card) !important;
  border: 1.5px solid var(--primary) !important;
  box-shadow: 0 0 12px rgba(26, 183, 109, 0.15) !important;
}

.quick-link-circle img {
  width: 44px !important;
  height: 44px !important;
  object-fit: contain !important;
  transition: transform 0.25s ease !important;
}

.quick-link-item:hover .quick-link-circle {
  background: var(--bg-card-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 0 18px rgba(26, 183, 109, 0.3) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

.quick-link-label {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,0.85) !important;
  margin-bottom: 2px !important;
  display: block !important;
}

.quick-link-sub {
  font-size: 10px !important;
  color: rgba(255,255,255,0.38) !important;
  font-weight: 500 !important;
  display: block !important;
}


  transition: var(--transition) !important;
}

.quick-link-item:hover span {
  color: var(--primary) !important;
}

.btn-prefix {
  font-size: 16px;
  font-weight: 600;
}

/* Stats Row styles */
.dashboard-stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  width: 100%;
}

.stats-card {
  flex: 1;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stats-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}

.stats-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* Real-time Markets Redesign */
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.view-all-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.view-all-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.markets-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.coin-row-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
}

.coin-row-premium:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--primary-light);
}

.coin-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coin-badge-container {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.coin-badge-container svg {
  width: 20px;
  height: 20px;
}

.coin-info-text {
  display: flex;
  flex-direction: column;
}

.coin-info-symbol {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.coin-info-name {
  font-size: 10px;
  color: var(--text-secondary);
}

.coin-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.coin-info-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.coin-info-change {
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.coin-info-change.up {
  color: var(--primary);
}

.coin-info-change.down {
  color: var(--danger);
}

.start-trading-btn {
  width: 100% !important;
  padding: 14px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: var(--transition) !important;
  cursor: pointer !important;
  margin-top: 4px !important;
}

/* Recent Activity card styles */
.activity-list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.activity-row-premium {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.activity-row-premium:hover {
  background-color: var(--bg-card-hover);
}

.activity-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.activity-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--bg-card-hover);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-icon-badge svg {
  width: 16px;
  height: 16px;
}

.activity-info-text {
  display: flex;
  flex-direction: column;
}

.activity-info-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.activity-info-time {
  font-size: 10px;
  color: var(--text-secondary);
}

.activity-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.activity-info-val {
  font-size: 13px;
  font-weight: 700;
}

.activity-status-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.activity-status-badge.approved,
.activity-status-badge.win {
  background-color: rgba(26, 183, 109, 0.12);
  color: var(--primary);
  border: 1px solid rgba(26, 183, 109, 0.2);
}

.activity-status-badge.pending,
.activity-status-badge.active {
  background-color: rgba(255, 171, 0, 0.12);
  color: #ffab00;
  border: 1px solid rgba(255, 171, 0, 0.2);
}

.activity-status-badge.rejected,
.activity-status-badge.lose {
  background-color: rgba(255, 98, 81, 0.12);
  color: var(--danger);
  border: 1px solid rgba(255, 98, 81, 0.2);
}

/* ===== PREMIUM JUPITER-STYLE ASSET PICKER ===== */

.asset-picker-modal {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(8, 10, 15, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  display: none;
  align-items: center !important; /* Centered modal */
  justify-content: center !important;
  padding: 16px !important;
  z-index: 9999 !important;
}

.asset-picker-panel {
  background: rgba(20, 22, 30, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 440px !important;
  max-height: 85vh !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px !important;
  gap: 16px !important;
  overflow: visible !important;
}

/* Search bar styling */
.asset-picker-search-container {
  display: flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;
  gap: 12px !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
}

.asset-picker-search-container:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.asset-picker-search-container:focus-within {
  background: rgba(0, 0, 0, 0.3) !important;
  border-color: #1ab76d !important;
  box-shadow: 0 0 16px rgba(26, 183, 109, 0.2), inset 0 0 8px rgba(26, 183, 109, 0.05) !important;
}

.search-icon-wrap {
  color: rgba(255, 255, 255, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  transition: color 0.2s ease, transform 0.2s ease !important;
}

.asset-picker-search-container:focus-within .search-icon-wrap {
  color: #1ab76d !important;
  transform: scale(1.05) !important;
}

input.asset-picker-search,
input#asset-picker-search:focus {
  flex: 1 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.3px !important;
  outline: none !important;
  box-shadow: none !important;
}

.asset-picker-search::placeholder {
  color: rgba(255, 255, 255, 0.3) !important;
  transition: color 0.2s ease !important;
}

.asset-picker-search-container:focus-within .asset-picker-search::placeholder {
  color: rgba(255, 255, 255, 0.15) !important;
}

/* Header styling */
.asset-picker-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 4px !important;
}

.asset-picker-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
}

.asset-picker-close-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.45) !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.asset-picker-close-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Categories selector */
.asset-picker-categories {
  display: flex !important;
  background: rgba(0, 0, 0, 0.20) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 4px !important;
}

.category-btn {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 8px 12px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}

.category-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.03) !important;
}

.category-btn.active {
  background: rgba(26, 183, 109, 0.15) !important;
  border: 1px solid rgba(26, 183, 109, 0.25) !important;
  color: #1ab76d !important;
  font-weight: 700 !important;
}

/* Recent Selected Label */
.recent-assets-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.35) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  margin-top: 4px !important;
  margin-bottom: -4px !important;
}

/* Quick Select Pills (Horizontal scrolling recent select list) */
.asset-picker-pills {
  display: flex !important;
  overflow-x: auto !important;
  gap: 8px !important;
  padding: 4px 0 !important;
  scrollbar-width: none !important; /* Hide scrollbar Firefox */
  -webkit-overflow-scrolling: touch !important;
}

.asset-picker-pills::-webkit-scrollbar {
  display: none !important; /* Hide scrollbar Chrome/Safari */
}

.picker-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  cursor: pointer !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: rgba(255, 255, 255, 0.8) !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
}

.picker-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transform: translateY(-1px) !important;
}

.pill-icon-wrap {
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
}

/* Single crypto/flag img inside pill */
.pill-icon-wrap > img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  display: block !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
}

/* Dual icon container inside pill (EUR/USD, BTC/USDT) */
.pill-icon-wrap > div {
  position: relative !important;
  width: 32px !important;   /* 20px + 12px gap */
  height: 20px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Both icons inside pill dual container */
.pill-icon-wrap > div > img {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  position: absolute !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
}

/* Scrollable Token list */
.asset-picker-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
  margin-top: 4px !important;
}

/* Customize list scrollbar */
.asset-picker-list::-webkit-scrollbar {
  width: 6px !important;
}

.asset-picker-list::-webkit-scrollbar-track {
  background: transparent !important;
}

.asset-picker-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
}

.asset-picker-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* Token list item row */
.asset-picker-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
}

.asset-picker-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

.asset-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.asset-row-icon-wrap {
  width: 44px !important;
  height: 34px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-shrink: 0 !important;
  position: relative !important;
}

/* Single crypto coin img — 34px */
.asset-row-icon-wrap > img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  flex-shrink: 0 !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
}

/* Dual-icon container (BTC/USDT or EUR/USD) */
.asset-row-icon-wrap > div {
  position: relative !important;
  width: 40px !important;   /* 26px + 14px gap */
  height: 26px !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

/* Both icons inside dual container — enforce equal 26×26 */
.asset-row-icon-wrap > div > img {
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  position: absolute !important;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
}

/* Active asset wrap icons styling on header */
#tc-mobile-asset-icon-wrap img {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
}



.asset-row-names {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.asset-row-symbol {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.asset-row-fullname {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.45) !important;
  font-weight: 500 !important;
}

.asset-row-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
}

.asset-row-payout {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #1ab76d !important;
}

.asset-row-balance {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 500 !important;
}

.asset-row-badge {
  font-size: 10px !important;
  font-weight: 600 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-radius: 4px !important;
  padding: 1px 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

/* Mobile full-screen cover mode for asset picker */
@media (max-width: 576px) {
  .asset-picker-modal {
    padding: 0 !important;
  }
  .asset-picker-panel {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 16px 16px 24px 16px !important;
    box-shadow: none !important;
  }
  .asset-picker-list {
    max-height: calc(100vh - 220px) !important;
    flex: 1 !important;
  }
}

/* ==================== TRANSACTIONS HISTORY REDESIGN (DARK THEME, NEAT & FLAT) ==================== */

#tab-history {
  background-color: var(--bg-main) !important;
  background: var(--bg-main) !important;
  color: var(--text-primary) !important;
  min-height: 100% !important;
  padding: 16px 20px 24px 20px !important;
  box-sizing: border-box !important;
}

/* Header style matching screenshot */
.history-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-top: 10px !important;
}

.history-back-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.history-back-btn:hover {
  background: var(--bg-card-hover) !important;
}

.history-page-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

/* Scrollable tabs container */
#tab-history .tab-headers {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  height: 48px !important;
  min-height: 48px !important;
  flex-shrink: 0 !important;
  padding: 0 4px !important;
  margin-bottom: 16px !important;
  scrollbar-width: none !important; /* Firefox */
  border-bottom: 1px solid var(--border-color) !important;
}

#tab-history .tab-headers::-webkit-scrollbar {
  display: none !important; /* Safari/Chrome */
}

/* Pill tabs styling */
#tab-history .tab-headers .tab-btn {
  flex-shrink: 0 !important;
  padding: 0 18px !important;
  border-radius: 20px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border: 1px solid var(--border-color) !important;
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !important;
  height: 34px !important;
  line-height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

#tab-history .tab-headers .tab-btn.active {
  background: var(--primary) !important; /* Parrot green brand accent */
  color: #06070a !important; /* Dark background text for high contrast */
  border-color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Outer Card Container wrapper for history list */
#tab-history .card {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
}

#tab-history .list-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-height: calc(100vh - 220px) !important;
  overflow-y: auto !important;
  padding-right: 0 !important;
}

/* Transaction Card - Round, Clean, Dark background, No glow, No gradient */
.history-transaction-card {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
  box-shadow: none !important;
  transition: transform 0.15s ease, background 0.15s ease !important;
}

.history-transaction-card:hover {
  background: var(--bg-card-hover) !important;
}

.tx-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Icon Container */
.tx-card-icon-wrap {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Specific background colors for icon circles in dark mode */
.icon-bg-inflow {
  background-color: rgba(26, 183, 109, 0.1) !important; /* Soft green */
  color: var(--primary) !important; /* Inflow green text */
}

.icon-bg-outflow {
  background-color: rgba(255, 255, 255, 0.05) !important; /* Soft grey/white */
  color: var(--text-secondary) !important; /* Outflow grey text */
}

.icon-bg-rejected {
  background-color: rgba(255, 98, 81, 0.1) !important; /* Soft red */
  color: var(--danger) !important; /* Rejected red text */
}

.icon-bg-reward {
  background-color: rgba(245, 158, 11, 0.1) !important; /* Soft Gold/Amber */
  color: #f59e0b !important;
}

.tx-card-icon {
  width: 14px !important;
  height: 14px !important;
}

/* Typography styles matching screenshot */
.tx-card-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.tx-card-title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.tx-card-details {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

.tx-card-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
}

.tx-card-amount {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.tx-amount-inflow {
  color: var(--primary) !important; /* Green */
}

.tx-amount-outflow {
  color: var(--text-primary) !important; /* White */
}

.tx-amount-neutral {
  color: var(--text-secondary) !important;
}

.tx-amount-reward {
  color: #f59e0b !important;
}

.tx-card-date {
  font-size: 10.5px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

/* ==================== EDIT PROFILE PAGE REDESIGN ==================== */

#tab-profile {
  background-color: var(--bg-main) !important;
  background: var(--bg-main) !important;
  color: var(--text-primary) !important;
  min-height: 100% !important;
  padding: 16px 0 24px 0 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.profile-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-top: 10px !important;
}

.profile-back-btn,
.profile-logout-icon-btn {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: none !important;
}

.profile-back-btn:hover,
.profile-logout-icon-btn:hover {
  background: var(--bg-card-hover) !important;
}

.profile-page-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.profile-edit-container {
  display: flex !important;
  flex-direction: column !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  padding-bottom: 100px !important; /* Clears fixed bottom nav bar */
}

.profile-avatar-wrap {
  position: relative !important;
  width: 112px !important;
  height: 112px !important;
  margin: 0 auto 28px auto !important;
}

.profile-avatar-inner {
  width: 112px !important;
  height: 112px !important;
  border-radius: 50% !important;
  background: var(--bg-card) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.avatar-fallback-wrapper {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.avatar-fallback-svg {
  width: 56px !important;
  height: 56px !important;
  fill: var(--text-secondary) !important;
}

.avatar-upload-label {
  position: absolute !important;
  bottom: 4px !important;
  right: 4px !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: var(--primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: 3px solid var(--bg-main) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
  transition: transform 0.15s ease !important;
}

.avatar-upload-label:hover {
  transform: scale(1.08) !important;
}

.camera-icon-svg {
  width: 16px !important;
  height: 16px !important;
  fill: #ffffff !important;
}

.profile-edit-card {
  background: var(--bg-card) !important;
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  margin-bottom: 24px !important;
  display: flex !important;
  flex-direction: column !important;
}

.profile-input-group {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 20px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.profile-input-group:last-child {
  border-bottom: none !important;
}

.profile-input-label {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  flex-shrink: 0 !important;
}

#profile-edit-form input.profile-input-field {
  width: 60% !important;
  height: auto !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  padding: 0 !important;
  color: var(--text-primary) !important;
  font-size: 14.5px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  text-align: right !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  transition: color 0.2s ease !important;
}

#profile-edit-form input.profile-input-field:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.profile-submit-btn {
  width: 100% !important;
  height: 50px !important;
  border-radius: 25px !important;
  background: var(--primary) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 24px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  transition: opacity 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 14px rgba(26, 183, 109, 0.25) !important;
}

.profile-submit-btn:hover {
  opacity: 0.9 !important;
}

.profile-delete-btn {
  width: 100% !important;
  height: 50px !important;
  border-radius: 25px !important;
  background: #1e2633 !important;
  color: var(--text-primary) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 80px !important;
  margin-bottom: 20px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  transition: background 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.profile-delete-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

body.light-theme .profile-delete-btn {
  background: var(--bg-card-hover) !important;
  color: var(--danger) !important;
}

body.light-theme .profile-delete-btn:hover {
  background: rgba(225, 29, 72, 0.08) !important;
}

/* Redesigned Multi-View Profile Styles */
.profile-sub-screen {
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}
.profile-sub-screen.profile-sub-active {
  display: flex;
}

/* Custom Headers */
.profile-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 24px !important;
  padding-top: 10px !important;
}

.profile-header-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.profile-header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.profile-streak-badge {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.streak-emoji {
  font-size: 14px !important;
}

.streak-count {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.profile-cog-btn,
.profile-add-btn,
.profile-header-back-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
  padding: 0 !important;
  box-shadow: none !important;
  flex-shrink: 0 !important;
}

.profile-cog-btn:hover,
.profile-add-btn:hover,
.profile-header-back-btn:hover {
  background: rgba(26, 183, 109, 0.1) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.profile-header-back-btn {
  width: 40px !important;
  height: 40px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: none !important;
  transition: all 0.2s ease !important;
}

.profile-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border: none !important;
}

.profile-header-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 28px !important;
  padding-top: 10px !important;
}

.profile-header-center-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  text-align: center !important;
  flex-grow: 1 !important;
}

/* Hero Section */
.profile-hero-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  margin-bottom: 28px !important;
}

.profile-hero-avatar-wrap {
  width: 104px !important;
  height: 104px !important;
  border-radius: 50% !important;
  background: var(--bg-card) !important;
  border: 3px solid var(--primary) !important;
  overflow: hidden !important;
  margin-bottom: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(26, 183, 109, 0.25) !important;
}

.profile-hero-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.profile-hero-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}

.profile-hero-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
}

.profile-hero-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.profile-hero-name {
  font-size: 22px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.profile-hero-stats {
  font-size: 13.5px !important;
  color: var(--text-secondary) !important;
  font-weight: 500 !important;
}

/* Tabs Pill Selector */
.profile-main-tabs {
  display: flex !important;
  gap: 8px !important;
  margin-bottom: 24px !important;
  overflow-x: auto !important;
  padding-bottom: 4px !important;
}

.profile-main-tabs::-webkit-scrollbar {
  display: none !important;
}

.profile-tab-pill {
  flex: 1 !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  padding: 10px 16px !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
}

.profile-tab-pill:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  color: var(--text-primary) !important;
}

.profile-tab-pill.active {
  background: var(--primary) !important; /* Platform green */
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.profile-tab-pill.active svg {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* Feed Section */
.profile-main-feed-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.profile-feed-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 18px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.feed-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.feed-card-user-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.feed-card-avatar-wrap {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feed-card-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.feed-card-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feed-card-name-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.feed-card-name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.feed-card-time {
  font-size: 11.5px !important;
  color: var(--text-secondary) !important;
}

.feed-card-menu-btn {
  background: none !important;
  border: none !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.feed-card-text {
  font-size: 14px !important;
  color: var(--text-primary) !important;
  text-align: left !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.feed-card-image-wrap {
  border-radius: 14px !important;
  overflow: hidden !important;
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

.feed-card-img {
  width: 100% !important;
  max-height: 240px !important;
  object-fit: cover !important;
  display: block !important;
}

.feed-card-footer {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.03) !important;
  padding-top: 12px !important;
  margin-top: 4px !important;
}

.feed-action-item {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: var(--text-secondary) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.feed-action-item svg {
  stroke-width: 2.2 !important;
}

/* Settings Container */
.profile-settings-container {
  display: flex !important;
  flex-direction: column !important;
  max-width: none !important;
  width: calc(100% + 24px) !important; /* Wider layout */
  margin-left: -12px !important; /* Balanced side gap (8px from edge) */
  margin-right: -12px !important;
  padding-bottom: 100px !important; /* Clears fixed bottom nav bar */
}

.profile-settings-user-card {
  background: var(--bg-card) !important;
  border: none !important; /* Removed borders */
  border-radius: 20px !important; /* Premium curved border */
  min-height: 96px !important; /* Thick, premium card */
  padding: 16px 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease !important;
  margin-bottom: 16px !important; /* Decreased spacing */
  width: 100% !important;
  box-sizing: border-box !important;
}

.profile-settings-user-card:hover {
  background: var(--bg-card-hover) !important;
}

.profile-settings-user-card:active {
  transform: scale(0.99) !important;
}

.settings-user-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.settings-user-avatar-wrap {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 2px solid var(--border-color) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.settings-user-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.settings-user-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}

.settings-user-info-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
}

.settings-user-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.settings-user-handle {
  font-size: 14.5px !important;
  color: var(--text-secondary) !important;
}

.settings-menu-list {
  background: var(--bg-card) !important;
  border: none !important; /* Removed borders */
  border-radius: 24px !important; /* Premium curved border */
  padding: 6px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 16px !important; /* Decreased spacing */
  width: 100% !important;
  box-sizing: border-box !important;
}

.settings-menu-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 84px !important; /* Thick, premium 90px-type rows */
  padding: 12px 8px !important;
  border-bottom: none !important; /* Removed divider lines */
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.settings-menu-item:last-child {
  border-bottom: none !important;
}

.menu-item-left {
  display: flex !important;
  align-items: center !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
}

/* Scale up settings page icons and arrows */
.menu-item-left svg {
  width: 21px !important;
  height: 21px !important;
  margin-right: 14px !important;
}

.settings-menu-item > svg,
.profile-settings-user-card > svg {
  width: 18px !important;
  height: 18px !important;
}

/* Custom Toggle Switch */
.toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 46px !important;
  height: 26px !important;
}

.toggle-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.toggle-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transition: .25s ease !important;
  border-radius: 34px !important;
}

.toggle-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 20px !important;
  width: 20px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: white !important;
  transition: .25s ease !important;
  border-radius: 50% !important;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary) !important; /* Matches platform green */
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px) !important;
}

/* White Logout Button */
.settings-logout-btn {
  width: calc(100% - 24px) !important;
  margin-left: 12px !important;
  margin-right: 12px !important;
  height: 52px !important;
  border-radius: 26px !important;
  background: #ffffff !important;
  color: #ff3b30 !important; /* Crimson Red text */
  font-size: 16px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  margin-top: 10px !important;
  margin-bottom: 24px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  transition: opacity 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.05) !important;
}

.settings-logout-btn:hover {
  opacity: 0.93 !important;
}

.settings-logout-btn svg {
  color: #ff3b30 !important;
}

/* Edit avatar overlay camera icon updates */
.avatar-upload-label {
  background: var(--primary) !important; /* Emerald green theme */
}

.avatar-upload-label .camera-icon-svg {
  fill: #ffffff !important;
}

/* Modals Backdrop & Card layout */
.modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(6, 7, 10, 0.75) !important;
  backdrop-filter: blur(10px) !important;
  display: flex; /* Allow inline styles like display: none to override this */
  align-items: center !important;
  justify-content: center !important;
  z-index: 2500 !important;
  box-sizing: border-box !important;
  padding: 20px !important;
}

.modal-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 20px !important;
  width: 100% !important;
  max-width: 440px !important;
  box-sizing: border-box !important;
  padding: 24px !important;
  position: relative !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5) !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}

.modal-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.modal-close-btn {
  background: none !important;
  border: none !important;
  color: var(--text-secondary) !important;
  font-size: 18px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
}

/* New Post Button - now merged above with back/cog btn */


/* Comments Modal list items */
.comment-item {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  text-align: left !important;
}

.comment-avatar-wrap {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.comment-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.comment-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.comment-content-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.comment-header-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.comment-author-name {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.comment-time {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
}

.comment-body-text {
  font-size: 13.5px !important;
  color: var(--text-primary) !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

/* Feed Delete Button */
.feed-card-delete-btn {
  background: none !important;
  border: none !important;
  color: var(--danger) !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.7 !important;
  transition: opacity 0.2s ease !important;
}

.feed-card-delete-btn:hover {
  opacity: 1.0 !important;
}

/* Badges styling */
.badges-tab-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.profile-badge-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  position: relative !important;
  text-align: left !important;
  transition: transform 0.2s ease !important;
}

.profile-badge-card.locked {
  opacity: 0.45 !important;
}

.profile-badge-card.unlocked {
  border-color: rgba(26, 183, 109, 0.4) !important;
  box-shadow: 0 4px 14px rgba(26, 183, 109, 0.1) !important;
}

.badge-icon-wrap {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  flex-shrink: 0 !important;
}

.profile-badge-card.unlocked .badge-icon-wrap {
  background: rgba(26, 183, 109, 0.15) !important;
  border-color: var(--primary) !important;
}

.badge-info-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  flex: 1 !important;
}

.badge-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.badge-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.badge-status {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

.badge-status.unlocked-text {
  color: var(--primary) !important;
}

.badge-status.locked-text {
  color: var(--text-secondary) !important;
}

.badge-description {
  font-size: 12.5px !important;
  color: var(--text-secondary) !important;
  line-height: 1.3 !important;
}

.badge-progress-container {
  width: 100% !important;
  margin-top: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.badge-progress-text {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
  font-weight: 600 !important;
}

.badge-progress-bar-bg {
  width: 100% !important;
  height: 5px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.badge-progress-bar-fill {
  height: 100% !important;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover)) !important;
  border-radius: 10px !important;
  transition: width 0.3s ease !important;
}

.badge-bonus-row {
  margin-top: 10px !important;
}

.badge-claim-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 7px 16px !important;
  border-radius: 8px !important;
  border: none !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover)) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.15s !important;
  letter-spacing: 0.3px !important;
}

.badge-claim-btn:hover:not(:disabled) {
  opacity: 0.88 !important;
  transform: translateY(-1px) !important;
}

.badge-claim-btn:disabled {
  cursor: default !important;
  opacity: 0.65 !important;
}

.badge-claim-btn.pending {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #f59e0b !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.badge-claim-approved {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  background: rgba(26, 183, 109, 0.12) !important;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(26, 183, 109, 0.3) !important;
}

.badge-claim-rejected {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  color: var(--danger, #ef4444) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* Friends Tab container */
.friends-tab-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.friends-search-wrap {
  display: flex !important;
  align-items: center !important;
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  height: 44px !important;
}

.friends-search-input {
  flex: 1 !important;
  background: none !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  outline: none !important;
  height: 100% !important;
  padding: 0 8px !important;
}

.friends-list-section {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  text-align: left !important;
}

.friends-section-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: var(--text-secondary) !important;
  margin-bottom: 4px !important;
  padding-left: 4px !important;
}

.friends-empty-msg {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  padding: 12px 4px !important;
}

.friend-row-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.friend-item-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
}

.friend-item-avatar-wrap {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid var(--border-color) !important;
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.friend-item-avatar-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.friend-item-avatar-fallback {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.friend-item-name-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
}

.friend-item-name {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.friend-item-username {
  font-size: 11px !important;
  color: var(--text-secondary) !important;
}

.friend-actions-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.friend-btn-primary {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 16px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
}

.friend-btn-secondary {
  background: rgba(255, 255, 255, 0.06) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.friend-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

.friend-btn-primary:hover {
  opacity: 0.9 !important;
}

.friend-btn-danger {
  background: rgba(255, 59, 48, 0.1) !important;
  color: #ff3b30 !important;
  border: 1px solid rgba(255, 59, 48, 0.2) !important;
  border-radius: 16px !important;
  padding: 6px 12px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.friend-btn-danger:hover {
  background: rgba(255, 59, 48, 0.15) !important;
}



/* =============================================
   INVITE / REFERRAL TAB STYLES
   ============================================= */
.invite-tab-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
}

.invite-hero {
  text-align: center !important;
  padding: 20px 16px !important;
  background: linear-gradient(135deg, rgba(26, 183, 109, 0.08), rgba(26, 183, 109, 0.03)) !important;
  border: 1px solid rgba(26, 183, 109, 0.2) !important;
  border-radius: 18px !important;
}

.invite-hero-icon {
  font-size: 36px !important;
  margin-bottom: 10px !important;
  line-height: 1 !important;
}

.invite-hero-title {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin: 0 0 8px 0 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.invite-hero-desc {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
  margin: 0 auto !important;
  max-width: 300px !important;
}

.invite-block {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.invite-block-label {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-secondary) !important;
}

.invite-code-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: rgba(26, 183, 109, 0.06) !important;
  border: 1px solid rgba(26, 183, 109, 0.2) !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
}

.invite-code-text {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: var(--primary) !important;
  letter-spacing: 3px !important;
  font-family: 'Courier New', monospace !important;
}

.invite-link-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  background: var(--bg-card-hover) !important;
  border-radius: 12px !important;
  padding: 10px 14px !important;
}

.invite-link-text {
  font-size: 11.5px !important;
  color: var(--text-secondary) !important;
  word-break: break-all !important;
  flex: 1 !important;
  font-family: 'Courier New', monospace !important;
}

.invite-copy-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.invite-copy-btn:hover {
  opacity: 0.88 !important;
}

.invite-how-section {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 16px !important;
  padding: 16px !important;
}

.invite-how-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--text-secondary) !important;
  margin-bottom: 14px !important;
}

.invite-steps {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.invite-step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
}

.invite-step-num {
  width: 30px !important;
  height: 30px !important;
  border-radius: 50% !important;
  background: rgba(26, 183, 109, 0.15) !important;
  border: 1.5px solid var(--primary) !important;
  color: var(--primary) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.invite-step-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  padding-top: 4px !important;
}

.invite-step-text strong {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
}

.invite-step-text span {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  line-height: 1.4 !important;
}

/* =============================================
   CREATE POST MODAL — PREMIUM DESIGN
   ============================================= */

.create-post-modal-card {
  background: rgba(15, 17, 24, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 440px !important;
  padding: 24px !important;
  box-sizing: border-box !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(26, 183, 109, 0.05) !important;
  position: relative !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.create-post-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 20px !important;
}

.create-post-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.create-post-header-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(26, 183, 109, 0.1) !important;
  border: 1px solid rgba(26, 183, 109, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
}

.create-post-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

.create-post-close-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.create-post-close-btn:hover {
  background: rgba(255, 59, 48, 0.1) !important;
  border-color: rgba(255, 59, 48, 0.3) !important;
  color: #ff3b30 !important;
}

/* Upload Drop Zone */
.create-post-upload-zone {
  display: flex !important;
  width: 100% !important;
  min-height: 160px !important;
  border: 2px dashed rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  box-sizing: border-box !important;
  margin-bottom: 4px !important;
}

.create-post-upload-zone:hover {
  border-color: var(--primary) !important;
  background: rgba(26, 183, 109, 0.04) !important;
}

.upload-zone-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 12px auto !important;
  color: var(--text-secondary) !important;
  transition: all 0.2s ease !important;
}

.create-post-upload-zone:hover .upload-zone-icon {
  color: var(--primary) !important;
  background: rgba(26, 183, 109, 0.1) !important;
  border-color: rgba(26, 183, 109, 0.3) !important;
}

.upload-zone-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin: 0 0 4px 0 !important;
}

.upload-zone-sub {
  font-size: 12px !important;
  color: var(--text-secondary) !important;
  margin: 0 !important;
}

.create-post-error {
  display: block !important;
  font-size: 12px !important;
  color: var(--danger) !important;
  margin-top: 6px !important;
  margin-bottom: 4px !important;
  min-height: 0 !important;
}

/* Caption Textarea */
.create-post-caption-wrap {
  margin-top: 14px !important;
}

.create-post-caption {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 14px !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  padding: 14px 16px !important;
  resize: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease !important;
  line-height: 1.5 !important;
}

.create-post-caption:focus {
  border-color: var(--primary) !important;
  background: rgba(26, 183, 109, 0.04) !important;
}

.create-post-caption::placeholder {
  color: var(--text-muted) !important;
}

/* Action buttons row */
.create-post-actions {
  display: flex !important;
  gap: 10px !important;
  margin-top: 18px !important;
}

.create-post-cancel-btn {
  flex: 1 !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

.create-post-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
}

.create-post-submit-btn {
  flex: 2 !important;
  height: 48px !important;
  border-radius: 14px !important;
  background: var(--primary) !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  box-shadow: 0 4px 14px rgba(26, 183, 109, 0.3) !important;
}

.create-post-submit-btn:hover {
  opacity: 0.9 !important;
}

.create-post-submit-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* Dynamic Bottom Nav Clearance for all scrollable screens on Mobile */
@media (max-width: 767px) {
  .app-container.has-bottom-nav .app-content {
    margin-bottom: 68px !important;
  }
}

/* Override webkit browser autofill background & text cover styles */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

#profile-edit-form input.profile-input-field:-webkit-autofill,
#profile-edit-form input.profile-input-field:-webkit-autofill:hover, 
#profile-edit-form input.profile-input-field:-webkit-autofill:focus, 
#profile-edit-form input.profile-input-field:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px var(--bg-card) inset !important;
  -webkit-text-fill-color: var(--text-primary) !important;
  transition: background-color 5000s ease-in-out 0s !important;
}

/* ================================================================
   TRADE PAGE — GREEN THEME OVERRIDES (matches reference design)
   Only changes trade screen elements. No other pages affected.
   ================================================================ */

.desktop-only {
  display: none !important;
}

@media (max-width: 1023px) {
  .tc-time-step-btn,
  .tc-time-switch-container,
  .trade-promo-banner,
  .trade-asset-tabs-row,
  .tc-pending-trade-row {
    display: none !important;
  }
}

/* --- Trade screen full background --- */
#tab-trade {
  background: #06070a !important;
}

/* --- Trade Header Bar --- */
.trade-header-bar {
  background: #0b0e14 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  height: 50px !important;
}

/* Account badge - DEMO orange, REAL green */
.account-badge {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0px !important;
  text-transform: uppercase !important;
}
.account-badge.badge-demo {
  color: #ff9800 !important; /* Quotex Orange */
}
.account-badge.badge-real,
.account-badge.badge-live {
  color: #16c784 !important; /* Quotex Green */
}
.account-balance {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-left: 4px !important;
}
.account-arrow {
  color: rgba(255,255,255,0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.account-status-icon {
  color: #ffffff !important;
  transform: none !important; /* Reset 35deg rotation */
}
/* Light Theme Adaptations */
body.light-theme .account-status-icon {
  color: var(--text-primary) !important;
}
body.light-theme .account-balance {
  color: var(--text-primary) !important;
}
body.light-theme .account-arrow {
  color: var(--text-secondary) !important;
}

/* Bell button */
.trade-bell-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.trade-bell-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.bell-badge {
  background: #ff4757 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Deposit button — solid green pill */
.trade-header-btn.btn-deposit {
  background: #1ab76d !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 22px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
}
.trade-header-btn.btn-deposit:hover {
  background: #1ed780 !important;
}

/* Withdrawal button — outlined */
.trade-header-btn.btn-withdraw {
  background: transparent !important;
  color: rgba(255,255,255,0.6) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 22px !important;
  padding: 7px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* --- Chart area background --- */
.trade-chart-area,
.chart-canvas-wrap,
#gainex-chart {
  background: #0b0e14 !important;
}

/* Chart price header */
.chart-price-header {
  background: rgba(11, 14, 20, 0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.chart-asset-name {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Timeframe dropdown button */
.tf-dropdown-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e8eaf6 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.tf-dropdown-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #1ab76d !important;
}

/* Floating left sidebar buttons */
.chart-float-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.75) !important;
  border-radius: 8px !important;
}
.chart-float-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* ================================================================
   TRADE PAGE — GREEN THEME OVERRIDES (matches reference design)
   Only changes trade screen elements. No other pages affected.
   ================================================================ */

/* --- Trade screen full background --- */
#tab-trade {
  background: #06070a !important;
}

/* --- Trade Header Bar --- */
.trade-header-bar {
  background: #0b0e14 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  height: 50px !important;
}

/* Account badge - DEMO orange, REAL green */
.account-badge {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0px !important;
  text-transform: uppercase !important;
}
.account-badge.badge-demo {
  color: #ff9800 !important; /* Quotex Orange */
}
.account-badge.badge-real,
.account-badge.badge-live {
  color: #16c784 !important; /* Quotex Green */
}
.account-balance {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  margin-left: 4px !important;
}
.account-arrow {
  color: rgba(255,255,255,0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.account-status-icon {
  color: #ffffff !important;
  transform: none !important; /* Reset 35deg rotation */
}
/* Light Theme Adaptations */
body.light-theme .account-status-icon {
  color: var(--text-primary) !important;
}
body.light-theme .account-balance {
  color: var(--text-primary) !important;
}
body.light-theme .account-arrow {
  color: var(--text-secondary) !important;
}
.account-arrow {
  color: rgba(255,255,255,0.45) !important;
  font-size: 10px !important;
}

/* Bell button */
.trade-bell-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
.trade-bell-btn svg {
  width: 20px !important;
  height: 20px !important;
}
.bell-badge {
  background: #ff4757 !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
}

/* Deposit button — solid green pill */
.trade-header-btn.btn-deposit {
  background: #1ab76d !important;
  color: #000000 !important;
  border: none !important;
  border-radius: 22px !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.3px !important;
  cursor: pointer !important;
}
.trade-header-btn.btn-deposit:hover {
  background: #1ed780 !important;
}

/* Withdrawal button — outlined */
.trade-header-btn.btn-withdraw {
  background: transparent !important;
  color: rgba(255,255,255,0.6) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 22px !important;
  padding: 7px 16px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

/* --- Chart area background --- */
.trade-chart-area,
.chart-canvas-wrap,
#gainex-chart {
  background: #0b0e14 !important;
}

/* Chart price header */
.chart-price-header {
  background: rgba(11, 14, 20, 0.95) !important;
  border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}
.chart-asset-name {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Timeframe dropdown button */
.tf-dropdown-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #e8eaf6 !important;
  border-radius: 7px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.tf-dropdown-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  border-color: #1ab76d !important;
}

/* Floating left sidebar buttons */
.chart-float-btn {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.75) !important;
  border-radius: 8px !important;
}
.chart-float-btn:hover {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.2) !important;
}

/* --- Trade Controls Panel (mobile bottom panel) --- */
.trade-controls-panel {
  background: #0b0e14 !important;
  border-top: 1px solid #1c2438 !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
}

/* Asset selector row */
.tc-mobile-asset-row {
  border-bottom: 1px solid #1c2438 !important;
}
.tc-asset-name-val {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.tc-asset-payout-val {
  color: #ff9800 !important;
  font-size: 14px !important;
  font-weight: 800 !important;
}

/* Timer & Investment cards (Clean, dark backgrounds, thin borders) */
.tc-mobile-row {
  display: flex !important;
  gap: 10px !important;
  margin-top: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tc-mobile-col {
  flex: 1 !important;
  background: #111622 !important;
  border: 1px solid #1c2438 !important;
  border-radius: 8px !important;
  height: 40px !important;
  min-height: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-sizing: border-box !important;
  padding: 2px 4px !important;
}

/* Card labels in title case, floating on border */
.tc-mobile-col .tc-card-label,
.tc-card-label {
  position: absolute !important;
  top: -6px !important;
  left: 10px !important;
  background: #0b0e14 !important;
  padding: 0 4px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  text-transform: none !important;
  font-size: 8.5px !important;
  font-weight: 600 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

/* Timer card display formatting and vertical centering */
.tc-time-group {
  cursor: pointer !important;
}
.tc-time-display-val {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

/* Investment Card input - completely minimal, no borders or background */
.tc-amount-group {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}
.tc-input-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 0 2px !important;
  box-sizing: border-box !important;
  height: 20px !important;
}
.tc-mobile-col .tc-amount-input,
#trade-amount {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  padding: 0 !important;
  width: 40px !important;
  height: 18px !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}
.tc-mobile-col .tc-amount-input:focus,
#trade-amount:focus {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Investment step +/- buttons (dark circular buttons) */
.tc-mobile-col .tc-step-btn {
  background: #1c2438 !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 18px !important;
  height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  padding: 0 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}
.tc-mobile-col .tc-step-btn:hover {
  background: #2a354d !important;
}

/* SWITCH link */
.tc-switch-container {
  position: absolute !important;
  bottom: -6px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #0b0e14 !important;
  padding: 0 5px !important;
  margin-top: 0px !important;
  display: flex !important;
  justify-content: center !important;
  line-height: 1 !important;
  z-index: 10 !important;
}
.tc-switch-link {
  color: #3b82f6 !important;
  font-weight: 700 !important;
  font-size: 7.5px !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  text-transform: uppercase !important;
  transition: color 0.15s ease !important;
}
.tc-switch-link:hover {
  color: #60a5fa !important;
}

/* Payout preview rows */
.tc-profit-preview {
  margin-top: 8px !important;
}
.tc-preview-label {
  color: rgba(255, 255, 255, 0.45) !important;
}
.tc-preview-val.text-green {
  color: #16c784 !important;
}

/* Expiry Time Popover Panel */
.tc-time-popover {
  position: absolute !important;
  bottom: calc(100% + 6px) !important;
  left: 0 !important;
  transform: none !important;
  width: 175px !important;
  max-width: 175px !important;
  background: #131924 !important;
  border: 1px solid #1c2438 !important;
  border-radius: 8px !important;
  padding: 6px !important;
  z-index: 9999 !important;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
  box-sizing: border-box !important;
}

.tc-time-popover.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.tc-time-popover-tabs {
  display: flex !important;
  background: #0b0e14 !important;
  border-radius: 4px !important;
  padding: 2px !important;
  gap: 2px !important;
}

.tc-popover-tab-btn {
  flex: 1 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 4px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  padding: 4px 0 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
}

.tc-popover-tab-btn.active {
  background: #16c784 !important;
  color: #ffffff !important;
}

.tc-popover-content {
  display: none !important;
}

.tc-popover-content.active {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.tc-popover-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px !important;
}

.tc-grid-btn {
  background: #1c2438 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  padding: 5px 0 !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.tc-grid-btn:hover {
  background: #25304a !important;
}

.tc-grid-btn.active {
  background: #16c784 !important;
  border-color: #16c784 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(22, 199, 132, 0.6) !important;
}

.tc-popover-manual-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  color: rgba(255, 255, 255, 0.7) !important;
  padding: 5px 0 !important;
  font-size: 9.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  width: 100% !important;
  text-align: center !important;
  transition: all 0.2s ease !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin-top: 1px !important;
}

.tc-popover-manual-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
}

/* Manual inputs */
.tc-popover-manual-input-wrap {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  background: rgba(0, 0, 0, 0.2) !important;
  padding: 6px !important;
  border-radius: 6px !important;
}

.tc-manual-inputs {
  display: flex !important;
  justify-content: space-around !important;
  gap: 6px !important;
}

.tc-manual-input-col {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  flex: 1 !important;
}

.tc-manual-input-col span {
  font-size: 8.5px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 700 !important;
}

.tc-manual-input-col input {
  width: 100% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  text-align: center !important;
  padding: 3px 0 !important;
  font-size: 10.5px !important;
  outline: none !important;
}

.tc-popover-manual-apply-btn {
  background: #16c784 !important;
  border: none !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  padding: 5px 0 !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.tc-popover-manual-apply-btn:hover {
  background: #19e694 !important;
}

/* UP / DOWN trade buttons slim overrides */
.tc-action-buttons {
  display: flex !important;
  gap: 10px !important;
  margin-top: 6px !important;
}

.tc-action-buttons .tc-trade-btn {
  flex: 1 !important;
  height: 56px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.tc-action-buttons .tc-trade-btn.tc-btn-up {
  background: #16c784 !important;
}
.tc-action-buttons .tc-trade-btn.tc-btn-up:hover {
  background: #19e694 !important;
}

.tc-action-buttons .tc-trade-btn.tc-btn-down {
  background: #ff3b30 !important;
}
.tc-action-buttons .tc-trade-btn.tc-btn-down:hover {
  background: #ff5b52 !important;
}

.tc-btn-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  padding: 0 12px 0 16px !important;
  box-sizing: border-box !important;
}

.tc-btn-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  text-transform: none !important;
  font-family: 'Inter', Roboto, sans-serif !important;
}

/* Translucent circle around arrow */
.tc-btn-arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: bold !important;
}

/* ========================================================================
   TRADE PAGE NOTIFICATION OVERLAY & HISTORY STYLES
   ======================================================================== */
.chart-notification-container {
  position: absolute !important;
  top: 10px !important;
  right: 0 !important;
  left: auto !important;
  transform: none !important;
  z-index: 9999 !important;
  width: 90% !important;
  max-width: 300px !important;
  pointer-events: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  overflow: hidden !important;
}

.chart-notification {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
  border-radius: 8px 0 0 8px !important;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.45) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  pointer-events: auto !important;
  margin-bottom: 6px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  
  /* Initial hidden state (offscreen right) */
  opacity: 0 !important;
  transform: translateX(100%) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  overflow: hidden !important;
  
  /* Transition properties */
  transition: opacity 0.35s ease,
              transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15),
              max-height 0.3s ease,
              padding 0.3s ease,
              margin 0.3s ease,
              border 0.3s ease !important;
}

.chart-notification.show {
  opacity: 1 !important;
  transform: translateX(0) !important;
  max-height: 80px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin-bottom: 6px !important;
  border-top-width: 1px !important;
  border-bottom-width: 1px !important;
}

.chart-notification.fade-out {
  opacity: 0 !important;
  transform: translateX(100%) !important;
  max-height: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  pointer-events: none !important;
}

.chart-notification.notif-green {
  background: rgba(22, 199, 132, 0.95) !important;
  border: 1px solid rgba(22, 199, 132, 0.2) !important;
}

.chart-notification.notif-red {
  background: rgba(255, 98, 81, 0.95) !important;
  border: 1px solid rgba(255, 98, 81, 0.2) !important;
}

.notif-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border-radius: 50% !important;
  font-size: 11px !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.notif-message {
  flex-grow: 1 !important;
  text-overflow: ellipsis !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}

.notif-close-btn {
  background: rgba(0, 0, 0, 0.45) !important;
  border: none !important;
  color: #ffffff !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
  transition: background 0.2s, transform 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.notif-close-btn:hover {
  background: rgba(0, 0, 0, 0.75) !important;
}

#notifications-list-container {
  max-height: none !important;
  overflow-y: visible !important;
  padding: 0 !important;
  gap: 6px !important;
}

.notification-history-item {
  padding: 8px 12px !important;
  margin-bottom: 4px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 6px !important;
  min-height: auto !important;
  gap: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.notification-history-item .tx-card-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.notification-history-item .tx-card-icon-wrap {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.notification-history-item .tx-card-icon {
  width: 12px !important;
  height: 12px !important;
  color: #ffffff !important;
  stroke-width: 2.5px !important;
}

.notification-history-item .tx-card-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.notification-history-item .tx-card-title {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #ffffff !important;
  white-space: normal !important;
  line-height: 1.3 !important;
  display: block !important;
}

.notification-history-item .tx-card-details,
.notification-history-item .tx-card-date {
  font-size: 9px !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}

.notification-history-item .tx-card-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* Circular Cropbox for Profile Crop Modal */
#profile-crop-modal .cropper-view-box,
#profile-crop-modal .cropper-face {
  border-radius: 50% !important;
}

.cropper-control-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cropper-control-btn:hover {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 15px rgba(26, 183, 109, 0.4) !important;
  transform: scale(1.08);
}

.cropper-control-btn:active {
  transform: scale(0.95);
}

.cropper-control-btn svg {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.25s ease !important;
}

.cropper-control-btn:hover svg {
  transform: rotate(15deg);
}

/* Redesigned Premium Swap UI Styles - Dark & Green Theme */
.kima-swap-layout {
  background: radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
              radial-gradient(circle at 90% 85%, rgba(52, 211, 153, 0.05) 0%, transparent 50%),
              #080e1a !important; /* Premium deep dark background */
  color: #ffffff !important;
  font-family: 'Inter', Roboto, sans-serif !important;
  border-radius: 28px !important; /* Curved on all borders */
  border: 2px solid rgba(255, 255, 255, 0.12) !important; /* Premium thick border */
  margin: 12px 0 !important; /* Keep zero horizontal margin, terminates naturally vertically */
  overflow: visible !important; /* Keep overflow visible to prevent clipping */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45) !important;
  flex-shrink: 0 !important;
  flex-direction: column !important;
  height: auto !important; /* Dynamic height */
}
.profile-sub-screen.kima-swap-layout {
  display: none;
}
.profile-sub-screen.kima-swap-layout.profile-sub-active {
  display: flex !important;
}

.kima-swap-layout .profile-header-sub {
  margin-bottom: 12px !important;
  padding: 10px 16px 0 16px !important;
}

.kima-swap-layout .profile-header-center-title {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 18px !important;
}

.kima-swap-layout .profile-header-back-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.kima-swap-layout .profile-header-back-btn:hover {
  background: rgba(255, 255, 255, 0.12) !important;
  color: var(--primary) !important;
}

.kima-swap-layout .profile-settings-container {
  background: transparent !important;
  padding: 12px 14px 30px 14px !important; /* Good inner padding */
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Card Styling */
.kima-swap-layout .swap-card {
  background: rgba(21, 28, 44, 0.55) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 28px !important;
  padding: 16px 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease !important;
}

.kima-swap-layout .swap-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

.kima-swap-layout .swap-card:focus-within {
  border-color: rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 4px 28px rgba(16, 185, 129, 0.12) !important;
}

.kima-swap-layout .swap-card-top-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.kima-swap-layout .swap-card-label {
  font-size: 13px !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.kima-swap-layout .swap-card-balance-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.kima-swap-layout .swap-wallet-icon {
  width: 14px !important;
  height: 14px !important;
  color: #94a3b8 !important;
}

.kima-swap-layout .swap-balance-text {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

.kima-swap-layout .swap-max-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 3px 12px !important;
  border-radius: 20px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: opacity 0.2s ease !important;
  outline: none !important;
}

.kima-swap-layout .swap-max-btn:hover {
  opacity: 0.85 !important;
}

/* Card Input Row styling */
.kima-swap-layout .swap-card-input-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  position: relative !important;
}

.kima-swap-layout .swap-dropdown-wrapper {
  position: relative !important;
}

.kima-swap-layout .swap-dropdown-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 6px 14px !important;
  border-radius: 24px !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s ease !important;
}

.kima-swap-layout .swap-dropdown-trigger:hover {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}

.kima-swap-layout .swap-currency-badge {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.kima-swap-layout .swap-currency-code {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.kima-swap-layout .swap-arrow-icon {
  width: 14px !important;
  height: 14px !important;
  color: #ffffff !important;
  transition: transform 0.2s ease !important;
}

.kima-swap-layout .swap-input-container {
  flex-grow: 1 !important;
  text-align: right !important;
}

.kima-swap-layout .swap-input-container input {
  background: transparent !important;
  border: none !important;
  font-size: 30px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  text-align: right !important;
  outline: none !important;
  width: 100% !important;
  padding: 0 6px 0 0 !important; /* Added 6px right padding to prevent digit cutoff */
  -webkit-appearance: none !important;
  margin: 0 !important;
}

@media (max-width: 480px) {
  .kima-swap-layout .swap-input-container input {
    font-size: 21px !important; /* Responsive scaling for mobile viewport text width */
  }
}

.kima-swap-layout .swap-input-container input::placeholder {
  color: #4b5563 !important;
}

.kima-swap-layout .swap-card-bottom-row {
  display: flex !important;
  justify-content: flex-end !important;
}

.kima-swap-layout .swap-fiat-approx {
  color: #94a3b8 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* Floating Direction Swap Button */
.kima-swap-layout .swap-direction-container {
  display: flex !important;
  justify-content: center !important;
  margin: -24px 0 !important;
  z-index: 10 !important;
  position: relative !important;
}

.kima-swap-layout .swap-direction-btn-wrap {
  width: 58px !important;
  height: 58px !important;
  border-radius: 50% !important;
  background: var(--bg-main) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.kima-swap-layout .swap-direction-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  cursor: pointer !important;
  transition: transform 0.2s ease, background-color 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

.kima-swap-layout .swap-direction-btn:hover {
  transform: scale(1.08) !important;
  background: var(--primary-dark) !important;
}

.kima-swap-layout .swap-direction-svg {
  width: 16px !important;
  height: 16px !important;
  transform: none !important;
  color: #ffffff !important;
}

/* Custom Dropdown Override for Dark Mode */
.kima-swap-layout .swap-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  left: 0 !important;
  background: #151c2c !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  min-width: 140px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  z-index: 100 !important;
  max-height: 200px !important;
  overflow-y: auto !important;
  box-sizing: border-box !important;
  padding: 6px !important;
}

.kima-swap-layout .swap-dropdown-menu::-webkit-scrollbar {
  width: 6px;
}
.kima-swap-layout .swap-dropdown-menu::-webkit-scrollbar-track {
  background: transparent;
}
.kima-swap-layout .swap-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
.kima-swap-layout .swap-dropdown-menu::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.kima-swap-layout .swap-dropdown-item {
  color: #ffffff !important;
  font-weight: 500 !important;
  transition: background 0.15s ease !important;
}

.kima-swap-layout .swap-dropdown-item span,
.kima-swap-layout .swap-dropdown-item .swap-dropdown-item-code {
  color: #ffffff !important;
}

.kima-swap-layout .swap-dropdown-item-badge {
  width: 24px !important;
  height: 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

/* Details styling */
.kima-swap-layout .swap-details-container {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 12px 16px !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-radius: 20px !important;
}

.kima-swap-layout .swap-detail-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 13px !important;
}

.kima-swap-layout .swap-detail-label {
  color: #94a3b8 !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.kima-swap-layout .swap-droplet-icon {
  font-size: 14px !important;
  color: #f97316 !important;
}

.kima-swap-layout .swap-spinner {
  display: inline-block !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid rgba(16, 185, 129, 0.15) !important;
  border-top-color: var(--primary) !important;
  border-radius: 50% !important;
  animation: spin 1s linear infinite !important;
}

.kima-swap-layout .swap-detail-value {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Slide to Swap Styles */
.kima-swap-layout .swap-slide-progress {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 0;
  background: linear-gradient(90deg, rgba(16,185,129,0.15) 0%, rgba(16,185,129,0.7) 100%) !important;
  border-radius: 40px !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.kima-swap-layout .swap-slide-container {
  background: #000000 !important;
  border-radius: 40px !important;
  height: 64px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  overflow: hidden !important;
  width: 100% !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 12px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.kima-swap-layout .swap-slide-text {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  user-select: none !important;
  pointer-events: none !important;
}

.kima-swap-layout .swap-slide-chevrons {
  position: absolute !important;
  right: 24px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  user-select: none !important;
  pointer-events: none !important;
  animation: pulseChevrons 1.5s infinite !important;
}

.kima-swap-layout .swap-slide-handle {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 30% 30%, #a7f3d0 0%, #34d399 50%, #059669 100%) !important;
  position: absolute !important;
  left: 5px;
  top: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4) !important;
  cursor: grab !important;
  z-index: 5 !important;
}

.kima-swap-layout .swap-check-svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #ffffff !important;
  pointer-events: none !important;
}

.kima-swap-layout .swap-footer {
  text-align: center !important;
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 8px !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.5px !important;
}

.kima-swap-layout .swap-kima-logo {
  font-weight: 600 !important;
  color: #94a3b8 !important;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulseChevrons {
  0% {
    opacity: 0.3;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
  100% {
    opacity: 0.3;
    transform: translateX(0);
  }
}

/* Prevent active/hover/tap events on wallet balance card to preserve color gradient */
.wallet-balance-card {
  pointer-events: none !important;
  cursor: default !important;
  -webkit-tap-highlight-color: transparent !important;
}

#wallet-balance-usd {
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

/* Premium Glassmorphic Toast Notifications - Platform Matched Colors */
.toast {
  background: rgba(13, 20, 35, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  padding: 12px 14px !important;
  backdrop-filter: blur(24px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
}

.toast-title {
  font-weight: 600 !important;
  font-size: 13px !important;
  color: #ffffff !important;
  line-height: 1.45 !important;
}

.toast-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.toast-close {
  color: #94a3b8 !important;
  opacity: 0.6 !important;
  transition: opacity 0.2s, background 0.2s !important;
  border-radius: 50% !important;
  width: 22px !important;
  height: 22px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.toast-close:hover {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* Success Toast */
.toast-success {
  border-color: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.toast-success::before {
  background: linear-gradient(180deg, #10b981, #059669) !important;
}
.toast-success::after {
  background: linear-gradient(90deg, #10b981, #059669) !important;
}
.toast-success .toast-icon {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Info Toast - Styled in primary green of the app to match the theme! */
.toast-info {
  border-color: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.toast-info::before {
  background: linear-gradient(180deg, #10b981, #059669) !important;
}
.toast-info::after {
  background: linear-gradient(90deg, #10b981, #059669) !important;
}
.toast-info .toast-icon {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

/* Warning Toast */
.toast-warning {
  border-color: rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.toast-warning::before {
  background: linear-gradient(180deg, #f59e0b, #d97706) !important;
}
.toast-warning::after {
  background: linear-gradient(90deg, #f59e0b, #d97706) !important;
}
.toast-warning .toast-icon {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

/* Error Toast */
.toast-error {
  border-color: rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.toast-error::before {
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
}
.toast-error::after {
  background: linear-gradient(90deg, #ef4444, #b91c1c) !important;
}
.toast-error .toast-icon {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Trade Up Toast */
.toast-trade-up {
  border-color: rgba(16, 185, 129, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Trade Down Toast */
.toast-trade-down {
  border-color: rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(239, 68, 68, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Trade Win Toast */
.toast-trade-win {
  border-color: rgba(245, 158, 11, 0.25) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Trade Lose Toast */
.toast-trade-lose {
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* ========================================================================
   LIGHT THEME INTEGRATION
   ======================================================================== */
body.light-theme {
  /* Light mode backgrounds */
  --bg-main: #f4f6f8 !important;
  --bg-card: #ffffff !important;
  --bg-card-hover: #edf2f6 !important;
  --border-color: rgba(0, 0, 0, 0.08) !important;
  --border-glow: rgba(22, 158, 93, 0.15) !important;

  /* Accent brand color - slightly darkened green for light mode contrast */
  --primary: #12824c !important;
  --primary-hover: #1ab76d !important;
  --primary-dark: #0c5733 !important;
  --primary-light: rgba(18, 130, 76, 0.12) !important;

  /* Text colors */
  --text-primary: #0f172a !important; /* Slate 900 */
  --text-secondary: #475569 !important; /* Slate 600 */
  --text-muted: #94a3b8 !important; /* Slate 400 */
  --text-green: #12824c !important;

  /* Status Colors */
  --success: #12824c !important;
  --success-hover: #1ab76d !important;
  --success-light: rgba(18, 130, 76, 0.12) !important;
  --danger: #e11d48 !important; /* Rose 600 */
  --danger-hover: #f43f5e !important;
  --danger-light: rgba(225, 29, 72, 0.12) !important;

  /* Softer shadow override for light mode */
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

/* Base Light Theme Elements Overrides */
body.light-theme {
  background-color: var(--bg-main) !important;
  color: var(--text-primary) !important;
}

body.light-theme * {
  border-color: var(--border-color);
}

/* Modals Backdrop & Card layout */
body.light-theme .modal-backdrop {
  background-color: rgba(15, 23, 42, 0.35) !important;
}

/* Form controls & inputs */
body.light-theme .form-control,
body.light-theme input[type="text"],
body.light-theme input[type="password"],
body.light-theme input[type="number"],
body.light-theme input[type="email"],
body.light-theme select {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text-primary) !important;
}
body.light-theme .auth-input-wrap {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .auth-input-wrap .auth-input,
body.light-theme .auth-input-wrap input,
body.light-theme .auth-input-wrap select {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

body.light-theme .auth-input-wrap .auth-input:focus,
body.light-theme .auth-input-wrap input:focus,
body.light-theme .auth-input-wrap select:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.light-theme ::placeholder,
body.light-theme .auth-input-wrap input::placeholder {
  color: #94a3b8 !important;
}

/* Light-theme autofill override — use white to match card background */
body.light-theme .auth-input-wrap .auth-input:-webkit-autofill,
body.light-theme .auth-input-wrap input:-webkit-autofill,
body.light-theme .auth-input-wrap .auth-input:-webkit-autofill:hover,
body.light-theme .auth-input-wrap input:-webkit-autofill:hover,
body.light-theme .auth-input-wrap .auth-input:-webkit-autofill:focus,
body.light-theme .auth-input-wrap input:-webkit-autofill:focus,
body.light-theme .auth-input-wrap .auth-input:-webkit-autofill:active,
body.light-theme .auth-input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #0f172a !important;
  caret-color: #0f172a !important;
  background-color: transparent !important;
  transition: background-color 99999s ease-in-out 0s !important;
}

body.light-theme select.form-control option,
body.light-theme select.coin-selector-dropdown option,
body.light-theme .auth-select option {
  background-color: #ffffff !important;
  color: var(--text-primary) !important;
}

/* Scrollbar styling */
body.light-theme ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15) !important;
}

/* Header & Sidebar for desktop */
body.light-theme .app-header {
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .app-nav {
  background-color: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 768px) {
  body.light-theme .app-nav {
    background: #ffffff !important;
    border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-top: none !important;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.03) !important;
  }
  
  body.light-theme .nav-logo-area {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  
  body.light-theme .nav-item:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.03) !important;
    color: var(--text-primary) !important;
  }

  /* Remove dark box & glow from active nav item in light theme */
  body.light-theme .nav-item.active {
    background-color: transparent !important;
    color: #12824c !important;
    box-shadow: none !important;
  }

  body.light-theme .nav-item.active svg {
    filter: none !important;
  }
}


/* Wallet indicators — no box/shadow on mobile light theme */
body.light-theme .nav-wallet-circle {
  background: transparent !important;
  box-shadow: none !important;
}

body.light-theme .user-status-indicator {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-theme .user-status-indicator:hover {
  background-color: var(--primary-light) !important;
  border-color: var(--primary) !important;
}

/* Premium Dashboard Balance Card & Wallet Cards */
body.light-theme .dashboard-balance-card {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .visa-card-physical {
  border: none !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .dashboard-balance-card .balance-card-amount {
  color: var(--text-primary) !important;
}

body.light-theme .balance-card-label {
  color: var(--text-secondary) !important;
}

/* Lists and Items */
body.light-theme .list-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .list-item:hover {
  background: rgba(0, 0, 0, 0.015) !important;
}

/* Badges */
body.light-theme .badge-active {
  background: rgba(18, 130, 76, 0.12) !important;
  color: #12824c !important;
}

/* Buttons inside tables */
body.light-theme .btn-secondary {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-theme .btn-secondary:hover {
  background: #e2e8f0 !important;
}

/* FAQ Items */
body.light-theme .faq-item {
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: #ffffff !important;
}

body.light-theme .faq-item:hover {
  border-color: rgba(22, 158, 93, 0.25) !important;
}

body.light-theme .faq-item.open {
  border-color: var(--primary) !important;
}

/* Profile specific pages styling */
body.light-theme .profile-stat-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .profile-stat-val {
  color: var(--text-primary) !important;
}

body.light-theme .invite-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .invite-code-display {
  background: #f1f5f9 !important;
  border: 1px dashed rgba(0, 0, 0, 0.15) !important;
  color: var(--text-primary) !important;
}

/* KYC and Upload states */
body.light-theme .file-upload-wrapper {
  border-color: rgba(0, 0, 0, 0.12) !important;
  background: #fafafa !important;
}

body.light-theme .file-upload-wrapper:hover {
  border-color: var(--primary) !important;
  background: var(--primary-light) !important;
}

/* Onboarding adjustments */
body.light-theme .onboarding-title {
  color: var(--text-primary) !important;
}

/* Auth Cards */
body.light-theme .auth-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Toasts */
body.light-theme .toast {
  background: #ffffff !important;
  color: var(--text-primary) !important;
}
body.light-theme .toast-title {
  color: var(--text-primary) !important;
}
body.light-theme .toast-success,
body.light-theme .toast-info,
body.light-theme .toast-warning,
body.light-theme .toast-error,
body.light-theme .toast-trade-up,
body.light-theme .toast-trade-down,
body.light-theme .toast-trade-win,
body.light-theme .toast-trade-lose {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

/* Premium Light Theme dashboard elements */
body.light-theme .status-text {
  color: var(--text-secondary) !important;
}

body.light-theme .bal-btn-withdraw {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text-primary) !important;
}

body.light-theme .bal-btn-withdraw:hover {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .quick-link-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.light-theme .quick-link-item:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.light-theme .quick-link-label {
  color: var(--text-primary) !important;
}

body.light-theme .quick-link-sub {
  color: var(--text-muted) !important;
}

body.light-theme .quick-link-circle {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .quick-link-item:hover .quick-link-circle {
  background: #ffffff !important;
  border-color: rgba(26, 183, 109, 0.3) !important;
  box-shadow: 0 6px 16px rgba(26, 183, 109, 0.15) !important;
}

/* Light Mode Soft circular icons for quick links with uniform green icon color */
body.light-theme .quick-link-circle svg {
  color: #169e5d !important;
  fill: #169e5d !important;
}

body.light-theme .quick-link-blue {
  background: rgba(91, 141, 238, 0.12) !important;
  color: #2563eb !important;
}

body.light-theme .quick-link-item:hover .quick-link-blue {
  background: rgba(91, 141, 238, 0.22) !important;
}

body.light-theme .quick-link-purple {
  background: rgba(155, 111, 224, 0.12) !important;
  color: #7c3aed !important;
}

body.light-theme .quick-link-item:hover .quick-link-purple {
  background: rgba(155, 111, 224, 0.22) !important;
}

body.light-theme .quick-link-green {
  background: rgba(26, 183, 109, 0.12) !important;
  color: #169e5d !important;
}

body.light-theme .quick-link-item:hover .quick-link-green {
  background: rgba(26, 183, 109, 0.22) !important;
}

body.light-theme .quick-link-orange {
  background: rgba(247, 160, 52, 0.12) !important;
  color: #ea580c !important;
}

body.light-theme .quick-link-item:hover .quick-link-orange {
  background: rgba(247, 160, 52, 0.22) !important;
}

/* Override all quick link backgrounds to uniform light-green in light mode */
body.light-theme .quick-link-blue,
body.light-theme .quick-link-purple,
body.light-theme .quick-link-green,
body.light-theme .quick-link-orange {
  background: rgba(26, 183, 109, 0.12) !important;
}

body.light-theme .quick-link-item:hover .quick-link-blue,
body.light-theme .quick-link-item:hover .quick-link-purple,
body.light-theme .quick-link-item:hover .quick-link-green,
body.light-theme .quick-link-item:hover .quick-link-orange {
  background: rgba(26, 183, 109, 0.22) !important;
}

/* Light Theme Swap Page Overrides */
body.light-theme .kima-swap-layout {
  background: radial-gradient(circle at 10% 15%, rgba(18, 130, 76, 0.04) 0%, transparent 40%),
              radial-gradient(circle at 90% 85%, rgba(26, 183, 109, 0.03) 0%, transparent 50%),
              #ffffff !important; /* Pure white background */
  border: 2px solid rgba(0, 0, 0, 0.08) !important; /* Soft border */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .kima-swap-layout .profile-header-center-title {
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .profile-header-back-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  color: var(--text-primary) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .kima-swap-layout .profile-header-back-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
  color: var(--primary) !important;
}

body.light-theme .kima-swap-layout .swap-card {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04) !important;
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-card:hover {
  border-color: rgba(18, 130, 76, 0.25) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .kima-swap-layout .swap-card:focus-within {
  border-color: var(--primary) !important;
  box-shadow: 0 4px 28px rgba(18, 130, 76, 0.1) !important;
}

body.light-theme .kima-swap-layout .swap-card-label,
body.light-theme .kima-swap-layout .swap-balance-text,
body.light-theme .kima-swap-layout .swap-wallet-icon {
  color: var(--text-secondary) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-trigger {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-trigger:hover {
  background: rgba(18, 130, 76, 0.08) !important;
  border-color: rgba(18, 130, 76, 0.3) !important;
}

body.light-theme .kima-swap-layout .swap-currency-code,
body.light-theme .kima-swap-layout .swap-arrow-icon {
  color: var(--text-primary) !important;
}

body.light-theme .swap-currency-badge {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .kima-swap-layout .swap-input-container input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-fiat-approx {
  color: var(--text-muted) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-menu {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-item {
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-item span,
body.light-theme .kima-swap-layout .swap-dropdown-item .swap-dropdown-item-code {
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-item-badge {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #000000 !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .kima-swap-layout .swap-dropdown-item:hover {
  background: rgba(18, 130, 76, 0.08) !important;
}

body.light-theme .kima-swap-layout .swap-details-container {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .kima-swap-layout .swap-detail-label {
  color: var(--text-secondary) !important;
}

body.light-theme .kima-swap-layout .swap-detail-value {
  color: var(--text-primary) !important;
}

body.light-theme .kima-swap-layout .swap-spinner {
  border-color: rgba(18, 130, 76, 0.15) !important;
  border-top-color: var(--primary) !important;
}

body.light-theme .kima-swap-layout .swap-slide-container {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .kima-swap-layout .swap-slide-text {
  color: var(--text-secondary) !important;
}

body.light-theme .kima-swap-layout .swap-slide-chevrons {
  color: var(--text-muted) !important;
}

body.light-theme .kima-swap-layout .swap-footer,
body.light-theme .kima-swap-layout .swap-kima-logo {
  color: var(--text-muted) !important;
}

/* Light Theme Logo Override */
body.light-theme .logo-mobile,
body.light-theme .logo-desktop,
body.light-theme .header-logo-img,
body.light-theme .splash-logo,
body.light-theme .trade-logo-area img,
body.light-theme .trade-logo-img,
body.light-theme .auth-logo-img {
  content: url('/logo-light.png') !important;
}

/* ========================================================================
   LIGHT THEME TRADE SCREEN OVERRIDES
   ======================================================================== */

/* Trade screen full background */
body.light-theme #tab-trade {
  background: #f8fafc !important;
}

/* Trade Header Bar */
body.light-theme .trade-header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .account-balance {
  color: var(--text-primary) !important;
}

body.light-theme .account-arrow {
  color: var(--text-secondary) !important;
}

/* Bell button */
body.light-theme .trade-bell-btn {
  color: var(--text-primary) !important;
  background: transparent !important;
}
body.light-theme .trade-bell-btn svg {
  color: var(--text-primary) !important;
  fill: currentColor !important;
}

/* Trade Win/Loss Notifications in Light Theme */
body.light-theme .chart-notification {
  color: #ffffff !important;
  box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .chart-notification .notif-message {
  color: #ffffff !important;
}
body.light-theme .chart-notification .notif-icon {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25) !important;
}
body.light-theme .chart-notification .notif-close-btn {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.2) !important;
}
body.light-theme .chart-notification .notif-close-btn:hover {
  background: rgba(0, 0, 0, 0.4) !important;
}

/* Withdrawal button */
body.light-theme .trade-header-btn.btn-withdraw {
  background: #ffffff !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .trade-header-btn.btn-withdraw:hover {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.25) !important;
}

/* Chart and canvas background */
body.light-theme .trade-chart-area,
body.light-theme .chart-canvas-wrap,
body.light-theme #gainex-chart {
  background: #ffffff !important;
}

/* Chart price header */
body.light-theme .chart-price-header {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .chart-asset-name {
  color: var(--text-primary) !important;
}

/* Timeframe dropdown button */
body.light-theme .tf-dropdown-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}
body.light-theme .tf-dropdown-btn:hover {
  background: #e2e8f0 !important;
  border-color: #1ab76d !important;
}

/* Floating left sidebar buttons */
body.light-theme .chart-float-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}
body.light-theme .chart-float-btn:hover {
  background: #f1f5f9 !important;
  color: var(--text-primary) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

/* Trade Controls Panel */
body.light-theme .trade-controls-panel {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Asset selector row */
body.light-theme .tc-mobile-asset-row {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .tc-asset-name-val {
  color: var(--text-primary) !important;
}

/* Timer & Investment cards */
body.light-theme .tc-mobile-col {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Card labels floating on border */
body.light-theme .tc-mobile-col .tc-card-label,
body.light-theme .tc-card-label {
  background: #ffffff !important;
  color: var(--text-secondary) !important;
}

body.light-theme .tc-time-display-val {
  color: var(--text-primary) !important;
}

body.light-theme .tc-mobile-col .tc-amount-input,
body.light-theme #trade-amount {
  color: var(--text-primary) !important;
}

/* Investment step +/- buttons */
body.light-theme .tc-mobile-col .tc-step-btn {
  background: #e2e8f0 !important;
  color: var(--text-primary) !important;
}
body.light-theme .tc-mobile-col .tc-step-btn:hover {
  background: #cbd5e1 !important;
}

/* SWITCH link */
body.light-theme .tc-switch-container {
  background: #ffffff !important;
}

/* Payout preview rows */
body.light-theme .tc-preview-label {
  color: var(--text-secondary) !important;
}
body.light-theme .tc-preview-val.text-white {
  color: var(--text-primary) !important;
}
body.light-theme #tc-investment-preview {
  color: var(--text-primary) !important;
}

/* Expiry Time Popover Panel */
body.light-theme .tc-time-popover {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tc-time-popover-tabs {
  background: #f1f5f9 !important;
}

body.light-theme .tc-popover-tab-btn {
  color: var(--text-secondary) !important;
}

body.light-theme .tc-popover-tab-btn.active {
  background: #16c784 !important;
  color: #ffffff !important;
}

body.light-theme .tc-grid-btn {
  background: #f1f5f9 !important;
  color: var(--text-primary) !important;
}
body.light-theme .tc-grid-btn:hover {
  background: #e2e8f0 !important;
}
body.light-theme .tc-grid-btn.active {
  background: #16c784 !important;
  color: #ffffff !important;
  box-shadow: 0 0 10px rgba(22, 199, 132, 0.4) !important;
}

body.light-theme .tc-popover-manual-btn {
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--text-primary) !important;
}
body.light-theme .tc-popover-manual-btn:hover {
  background: #f8fafc !important;
  color: var(--text-primary) !important;
}

body.light-theme .tc-popover-manual-input-wrap {
  background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .tc-manual-input-col span {
  color: var(--text-secondary) !important;
}

body.light-theme .tc-manual-input-col input {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  color: var(--text-primary) !important;
}

/* Active/Closed Trades Panel */
body.light-theme .tc-trades-tabs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .tc-tab-btn {
  color: var(--text-secondary) !important;
}
body.light-theme .tc-tab-btn.active {
  color: var(--primary) !important;
}
body.light-theme .tc-tab-btn:hover {
  color: var(--text-primary) !important;
}

/* Active trade cards inside the panel */
body.light-theme .active-mini-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
}
body.light-theme .history-mini-item {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: var(--text-primary) !important;
}
body.light-theme .no-trades-mini {
  color: var(--text-muted) !important;
}

/* Balance Dropdown */
body.light-theme .balance-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

body.light-theme .balance-dropdown-item:hover {
  background: #f1f5f9 !important;
}

body.light-theme .balance-dropdown-item.active {
  background: rgba(26, 183, 109, 0.08) !important;
  border: 1px solid rgba(26, 183, 109, 0.2) !important;
}

body.light-theme .balance-dropdown-item.active .menu-account-balance {
  color: #1ab76d !important;
}

body.light-theme .menu-account-balance {
  color: var(--text-primary) !important;
}

/* Asset Tabs Bar */
body.light-theme .asset-tabs-bar {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .asset-tab {
  color: var(--text-secondary) !important;
}

body.light-theme .asset-tab:hover {
  background: #f1f5f9 !important;
  color: var(--text-primary) !important;
}

body.light-theme .asset-tab.active {
  background: rgba(26, 183, 109, 0.06) !important;
  border-color: rgba(26, 183, 109, 0.2) !important;
  color: var(--primary) !important;
}

body.light-theme .asset-tab-icon {
  background: rgba(0, 0, 0, 0.06) !important;
  color: var(--text-primary) !important;
}

body.light-theme .asset-tab-close {
  color: rgba(0, 0, 0, 0.3) !important;
}
body.light-theme .asset-tab-close:hover {
  background: rgba(255, 71, 87, 0.15) !important;
  color: var(--danger) !important;
}

/* Asset Picker Modal */
body.light-theme .asset-picker-panel {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08) !important;
}

body.light-theme .asset-picker-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-theme .asset-picker-search-container {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .asset-picker-search-container:hover {
  background: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-theme .asset-picker-search-container:focus-within {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px rgba(26, 183, 109, 0.1) !important;
}
body.light-theme .search-icon-wrap {
  color: var(--text-secondary) !important;
}
body.light-theme .asset-picker-search-container:focus-within .search-icon-wrap {
  color: var(--primary) !important;
}
body.light-theme input.asset-picker-search,
body.light-theme input#asset-picker-search:focus {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  box-shadow: none !important;
}
body.light-theme .asset-picker-search::placeholder {
  color: var(--text-muted) !important;
}
body.light-theme .asset-picker-search-container:focus-within .asset-picker-search::placeholder {
  color: rgba(0, 0, 0, 0.2) !important;
}

body.light-theme .asset-picker-tab {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-secondary) !important;
}
body.light-theme .asset-picker-tab.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

body.light-theme .asset-picker-item:hover {
  background: #f1f5f9 !important;
  border-color: rgba(26, 183, 109, 0.1) !important;
}

body.light-theme .api-name {
  color: var(--text-primary) !important;
}
body.light-theme .api-sub {
  color: var(--text-secondary) !important;
}
body.light-theme .api-price {
  color: var(--text-secondary) !important;
}

/* Recent selected asset picker pills */
body.light-theme .recent-assets-label {
  color: var(--text-muted) !important;
}

body.light-theme .picker-pill {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: var(--text-primary) !important;
}

body.light-theme .picker-pill:hover {
  background: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Asset Picker row elements light theme overrides */
body.light-theme .asset-picker-row {
  background: transparent !important;
}
body.light-theme .asset-picker-row:hover {
  background: #f1f5f9 !important;
}
body.light-theme .asset-row-symbol {
  color: var(--text-primary) !important;
}
body.light-theme .asset-row-fullname {
  color: var(--text-secondary) !important;
}
body.light-theme .asset-row-badge {
  color: var(--text-secondary) !important;
  background: rgba(0, 0, 0, 0.06) !important;
}
body.light-theme .asset-row-icon-wrap > img,
body.light-theme .asset-row-icon-wrap > div > img {
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.08) !important;
}

/* Category selector light theme overrides */
body.light-theme .asset-picker-categories {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .category-btn {
  color: var(--text-secondary) !important;
}

body.light-theme .category-btn:hover {
  color: var(--text-primary) !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .category-btn.active {
  background: rgba(26, 183, 109, 0.15) !important;
  border: 1px solid rgba(26, 183, 109, 0.25) !important;
  color: #1ab76d !important;
}

/* ========================================================================
   LIGHT THEME ADAPTATION OVERRIDES FOR TRADE SCREEN COMPONENTS
   ======================================================================== */

/* 1. Select Asset Modal & Panel */
body.light-theme .asset-picker-modal {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(16px) !important;
}

body.light-theme .asset-picker-panel {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.06) !important;
}

/* Force perfect layout centering on mobile and prevent left offset */
@media (max-width: 576px) {
  body.light-theme .asset-picker-modal {
    padding: 0 !important;
  }
  body.light-theme .asset-picker-panel {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    margin: 0 !important;
    left: 0 !important;
    top: 0 !important;
    position: fixed !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }
  body.light-theme .asset-picker-list {
    max-height: calc(100vh - 220px) !important;
    flex: 1 !important;
  }
}

body.light-theme .asset-picker-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  margin-bottom: 8px !important;
}

body.light-theme .asset-picker-title {
  color: #0f172a !important; /* Slate 900 */
  font-size: 18px !important;
  font-weight: 800 !important;
}

body.light-theme .asset-picker-close-btn {
  background: rgba(0, 0, 0, 0.05) !important;
  border: none !important;
  color: #475569 !important; /* Slate 600 */
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
}

body.light-theme .asset-picker-close-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

body.light-theme .asset-picker-close-btn svg {
  stroke: currentColor !important;
}

/* Search bar styling */
body.light-theme .asset-picker-search-container {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}
body.light-theme .asset-picker-search-container:hover {
  background: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-theme .asset-picker-search-container:focus-within {
  background: #ffffff !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 16px rgba(18, 130, 76, 0.12) !important;
}
body.light-theme .search-icon-wrap {
  color: #64748b !important; /* Slate 500 */
}
body.light-theme .asset-picker-search {
  color: #0f172a !important;
}
body.light-theme .asset-picker-search::placeholder {
  color: #94a3b8 !important;
}

/* Category buttons */
body.light-theme .asset-picker-categories {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}
body.light-theme .category-btn {
  color: #475569 !important;
}
body.light-theme .category-btn:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .category-btn.active {
  background: rgba(18, 130, 76, 0.12) !important;
  border: 1px solid rgba(18, 130, 76, 0.25) !important;
  color: #12824c !important;
}

/* Recent Selected pills */
body.light-theme .recent-assets-label {
  color: #64748b !important;
}
body.light-theme .picker-pill {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #0f172a !important;
}
body.light-theme .picker-pill:hover {
  background: #e2e8f0 !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Asset Rows */
body.light-theme .asset-picker-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04) !important;
}
body.light-theme .asset-picker-row:hover {
  background: #f8fafc !important;
}
body.light-theme .asset-row-symbol {
  color: #0f172a !important;
}
body.light-theme .asset-row-fullname {
  color: #64748b !important;
}
body.light-theme .asset-row-badge {
  color: #475569 !important;
  background: #e2e8f0 !important;
}


/* 2. Timeframe Dropdown (Dates Dropdown) */
body.light-theme #tf-dropdown-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tf-option {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}
body.light-theme .tf-option:last-child {
  border-bottom: none !important;
}
body.light-theme .tf-option:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body.light-theme .tf-option.active {
  color: #12824c !important;
  background: rgba(18, 130, 76, 0.08) !important;
}


/* 3. Chart Style Dropdown (Candle Dropdown) */
body.light-theme #chart-style-menu {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .chart-style-option {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #475569 !important;
}
body.light-theme .chart-style-option:last-child {
  border-bottom: none !important;
}
body.light-theme .chart-style-option:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
body.light-theme .chart-style-option.active {
  color: #12824c !important;
  background: rgba(18, 130, 76, 0.08) !important;
}


/* 4. Mobile Slide-Up Trades Panel (Trade Bag Tab) */
body.light-theme .tc-trades-panel-mobile-container {
  background: #ffffff !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .tc-trades-panel-mobile-container::before {
  background: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .tc-trades-panel-mobile-container .tc-trades-tabs {
  background: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tc-trades-panel-mobile-container .tc-tab-btn {
  color: #475569 !important;
}

body.light-theme .tc-trades-panel-mobile-container .tc-tab-btn.active {
  color: #0f172a !important;
  border-bottom: 2px solid #12824c !important;
}

body.light-theme .tc-trades-panel-mobile-container .tc-trades-content {
  background: #ffffff !important;
}

body.light-theme .no-trades-mini {
  color: #64748b !important;
}

body.light-theme .history-mini-item {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  color: #0f172a !important;
}

/* ================================================================
   DYNAMIC ISLAND TOAST — GLOBAL OVERRIDES & LIGHT THEME ADAPTATION
   ================================================================ */

/* Slim centered container */
.toast-container {
  position: fixed !important;
  top: 60px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 10000 !important;
  width: 310px !important;
  max-width: calc(100vw - 32px) !important;
  align-items: center !important;
}

/* Slim pill */
.toast {
  border-radius: 50px !important;
  background: rgba(0, 0, 0, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.7),
    0 3px 8px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.09) !important;
  padding: 7px 12px 7px 10px !important;
  gap: 9px !important;
}

/* Remove left accent bar */
.toast::before {
  display: none !important;
}

/* Thin bottom progress line */
.toast::after {
  border-radius: 0 0 50px 50px !important;
  height: 1.5px !important;
  opacity: 0.35 !important;
}

/* Compact icon */
.toast-icon {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  font-size: 10px !important;
  flex-shrink: 0 !important;
}

/* Slim text */
.toast-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.toast-subtitle {
  font-size: 10.5px !important;
  color: #94a3b8 !important;
  line-height: 1.35 !important;
}

/* Compact body gap */
.toast-body {
  gap: 1px !important;
}

/* Small close button */
.toast-close {
  width: 18px !important;
  height: 18px !important;
  font-size: 8px !important;
  flex-shrink: 0 !important;
}

/* Info icon — vivid blue */
.toast-info .toast-icon {
  background: rgba(41, 98, 255, 0.16) !important;
  color: #4d7cfe !important;
  border: 1px solid rgba(41, 98, 255, 0.32) !important;
}

/* ─── Light Theme Adaptation ─── */
body.light-theme .toast {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 3px 8px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .toast-title {
  color: #0f172a !important;
}

body.light-theme .toast-subtitle {
  color: #475569 !important;
}

body.light-theme .toast-close {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .toast-close:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

/* ================================================================
   WALLET PAGE — LIGHT THEME COMPREHENSIVE OVERRIDES
   ================================================================ */

/* ─── Deposit / Withdraw Tab Buttons ─── */
body.light-theme .tab-headers {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tab-btn {
  color: #64748b !important;
}

body.light-theme .tab-btn.active {
  color: #12824c !important;
  border-bottom-color: #12824c !important;
}

/* ─── Global Buttons & Inputs in Light Theme ─── */
body.light-theme .btn-primary {
  color: #ffffff !important;
}

body.light-theme .form-control:focus,
body.light-theme textarea.form-control:focus {
  background-color: #ffffff !important;
}

body.light-theme textarea.form-control {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: var(--text-primary) !important;
}

body.light-theme .file-upload-wrapper {
  background: #f8fafc !important;
  border: 2px dashed rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .file-upload-wrapper:hover {
  background: rgba(18, 130, 76, 0.04) !important;
  border-color: var(--primary) !important;
}

body.light-theme #file-upload-label {
  color: #64748b !important;
}

/* ─── Deposit Mode Buttons (Auto Instant / Manual Proof) ─── */
body.light-theme #deposit-mode-auto-btn,
body.light-theme #deposit-mode-manual-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #374151 !important;
}

body.light-theme #deposit-mode-auto-btn:hover,
body.light-theme #deposit-mode-manual-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme #deposit-mode-auto-btn.active,
body.light-theme #deposit-mode-manual-btn.active {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
}

/* ─── Custom Select Dropdown ─── */
body.light-theme .custom-select-trigger {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .custom-select-trigger:hover {
  border-color: var(--primary) !important;
  background: #fafafa !important;
}

body.light-theme .custom-select-container.open .custom-select-trigger {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(18, 130, 76, 0.15) !important;
}

body.light-theme .custom-select-trigger .caret-icon {
  color: #64748b !important;
}

body.light-theme #custom-select-trigger-text {
  color: #0f172a !important;
}

body.light-theme .custom-select-options {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: none !important;
}

body.light-theme .custom-select-option {
  color: #374151 !important;
}

body.light-theme .custom-select-option:hover {
  background: rgba(0, 0, 0, 0.03) !important;
  color: #0f172a !important;
}

body.light-theme .custom-select-option.selected {
  background: rgba(18, 130, 76, 0.08) !important;
  color: #12824c !important;
}

body.light-theme .custom-select-option .option-bullet {
  background: #94a3b8 !important;
}

body.light-theme .custom-select-option:hover .option-bullet {
  background: #0f172a !important;
}

body.light-theme .custom-select-option.selected .option-bullet {
  background: var(--primary) !important;
}

/* ─── Deposit Instructions Card ─── */
body.light-theme #deposit-instructions {
  background: #f0fdf4 !important;
  border-color: rgba(18, 130, 76, 0.2) !important;
}

/* ─── Deposit Form Label ─── */
body.light-theme .form-label {
  color: #374151 !important;
}

/* ─── Deposit Invoice Card (hardcoded dark inline styles) ─── */
body.light-theme #deposit-invoice-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme #deposit-invoice-card h3 {
  color: #0f172a !important;
}

body.light-theme #deposit-invoice-card p[style*="color: var(--text-secondary)"] {
  color: #64748b !important;
}

/* The "Send exact amount" crypto block inside invoice - using robust :has() selector */
body.light-theme #deposit-invoice-card > div:has(#invoice-crypto-amount),
body.light-theme #deposit-invoice-card div[style*="background: rgba(255"] {
  background: #f8fafc !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

/* "SEND EXACT AMOUNT" label */
body.light-theme #deposit-invoice-card div[style*="font-size: 12px"] {
  color: #64748b !important;
}

/* Waiting for payment text */
body.light-theme #deposit-invoice-card span[style*="color: var(--text-secondary)"] {
  color: #64748b !important;
}

/* Cancel & Go Back button (inline: white bg + white text) */
body.light-theme #deposit-invoice-card button[onclick*="cancelInvoice"] {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  color: #374151 !important;
}

body.light-theme #deposit-invoice-card button[onclick*="cancelInvoice"]:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Spinner border in invoice */
body.light-theme #deposit-invoice-card .spinner {
  border-color: rgba(0, 0, 0, 0.08) !important;
  border-top-color: var(--primary) !important;
}

/* ─── Withdraw Form Card ─── */
body.light-theme #wallet-withdraw-section .card {
  background: #ffffff !important;
}

/* ─── Wallet Balance Card at top ─── */
body.light-theme .wallet-balance-card,
body.light-theme .wallet-balance-card:hover {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%) !important;
  border: 1px solid rgba(18, 130, 76, 0.15) !important;
  box-shadow: 0 4px 16px rgba(18, 130, 76, 0.04) !important;
}

body.light-theme .balance-label {
  color: #64748b !important;
}

body.light-theme #wallet-balance-usd {
  color: #0f172a !important;
}

/* ─── Transaction History Cards (Light Theme Overrides) ─── */
body.light-theme .icon-bg-outflow {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

/* ================================================================
   KYC VERIFICATION WIZARD — LIGHT THEME COMPREHENSIVE OVERRIDES
   ================================================================ */

body.light-theme .kyc-modal-wrap {
  background: rgba(244, 246, 248, 0.85) !important;
}

body.light-theme .kyc-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
}

body.light-theme .kyc-modal-header {
  background: rgba(18, 130, 76, 0.04) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .kyc-modal-header h3 {
  color: #0f172a !important;
}

body.light-theme .kyc-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .kyc-close-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .kyc-step-dot {
  background: #f1f5f9 !important;
  border: 2px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .kyc-step-dot.active {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(18, 130, 76, 0.25) !important;
}

body.light-theme .kyc-step-label {
  color: #64748b !important;
}

body.light-theme .kyc-step-label.active {
  color: var(--primary) !important;
}

body.light-theme .kyc-progress-line {
  background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .kyc-progress-line.active {
  background: var(--primary) !important;
}

body.light-theme .kyc-label {
  color: #475569 !important;
}

body.light-theme .kyc-text-input {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .kyc-text-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(18, 130, 76, 0.12) !important;
}

body.light-theme .kyc-tips-box {
  background: #f0fdf4 !important;
  border-color: rgba(18, 130, 76, 0.15) !important;
}

body.light-theme #kyc-step-3 .kyc-tips-box {
  background: #fffbeb !important;
  border-color: rgba(245, 158, 11, 0.25) !important;
}

body.light-theme .kyc-tips-text {
  color: #374151 !important;
}

body.light-theme .kyc-tips-text strong {
  color: #0f172a !important;
}

body.light-theme .kyc-upload-zone {
  background: #f8fafc !important;
  border-color: rgba(18, 130, 76, 0.2) !important;
}

body.light-theme .kyc-upload-zone:hover {
  background: rgba(18, 130, 76, 0.04) !important;
  border-color: var(--primary) !important;
}

body.light-theme .kyc-upload-title {
  color: #374151 !important;
}

body.light-theme .kyc-upload-subtitle {
  color: #64748b !important;
}

body.light-theme .kyc-btn-secondary {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #374151 !important;
}

body.light-theme .kyc-btn-secondary:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .kyc-camera-box {
  background: #0f172a !important; /* Keep dark background for camera feed visibility */
  border-color: rgba(18, 130, 76, 0.25) !important;
}

/* Override inline white background and white borders for selfie fallback zone */
body.light-theme .kyc-step div[style*="border:2px dashed"],
body.light-theme .kyc-step div[style*="border: 2px dashed"] {
  background: #f8fafc !important;
  border: 2px dashed rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .kyc-step div[style*="border:2px dashed"]:hover,
body.light-theme .kyc-step div[style*="border: 2px dashed"]:hover {
  border-color: var(--primary) !important;
  background: rgba(18, 130, 76, 0.04) !important;
}

body.light-theme #kyc-label-selfie {
  color: #64748b !important;
}

/* Force white text on inline style titles */
body.light-theme .kyc-step div[style*="color:#fff"],
body.light-theme .kyc-step div[style*="color: #fff"],
body.light-theme .kyc-step div[style*="color:rgb(255, 255, 255)"] {
  color: #0f172a !important;
}

body.light-theme .kyc-footer-badges {
  border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
  background: #f8fafc !important;
}

body.light-theme .kyc-footer-badges div[style*="color:var(--text-muted)"],
body.light-theme .kyc-footer-badges div[style*="color: var(--text-muted)"] {
  color: #64748b !important;
}

body.light-theme .kyc-footer-badges div[style*="background:rgba(255,255,255"] {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* ================================================================
   FEED CREATE POST MODAL — LIGHT THEME OVERRIDES
   ================================================================ */

body.light-theme .create-post-modal-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06), 0 0 15px rgba(18, 130, 76, 0.02) !important;
}

body.light-theme .create-post-header-icon {
  background: rgba(18, 130, 76, 0.1) !important;
  border: 1px solid rgba(18, 130, 76, 0.25) !important;
}

body.light-theme .create-post-title {
  color: #0f172a !important;
}

body.light-theme .create-post-close-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .create-post-close-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

body.light-theme .create-post-upload-zone {
  background: #f8fafc !important;
  border: 2px dashed rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .create-post-upload-zone:hover {
  border-color: var(--primary) !important;
  background: rgba(18, 130, 76, 0.04) !important;
}

body.light-theme .upload-zone-icon {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .create-post-upload-zone:hover .upload-zone-icon {
  color: var(--primary) !important;
  background: rgba(18, 130, 76, 0.1) !important;
  border-color: rgba(18, 130, 76, 0.3) !important;
}

body.light-theme .upload-zone-title {
  color: #374151 !important;
}

body.light-theme .upload-zone-sub {
  color: #64748b !important;
}

body.light-theme .create-post-caption {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .create-post-caption:focus {
  border-color: var(--primary) !important;
  background: rgba(18, 130, 76, 0.02) !important;
}

body.light-theme .create-post-caption::placeholder {
  color: #94a3b8 !important;
}

body.light-theme .create-post-cancel-btn {
  background: #f1f5f9 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #374151 !important;
}

body.light-theme .create-post-cancel-btn:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

/* ─── Toggle Switch Light Theme Overrides ─── */
body.light-theme .toggle-slider {
  background-color: #cbd5e1 !important;
}

body.light-theme .toggle-slider:before {
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary) !important;
}

/* ─── Active Pill Tabs & Deposit Button Text Contrast ─── */
body.light-theme #tab-history .tab-headers .tab-btn.active {
  color: #ffffff !important;
}

body.light-theme .trade-header-btn.btn-deposit {
  background: var(--primary) !important;
  color: #ffffff !important;
}

body.light-theme .trade-header-btn.btn-deposit:hover {
  background: var(--primary-hover) !important;
}

/* ─── Notification History Page Overrides ─── */
body.light-theme .notification-history-item {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .notification-history-item .tx-card-title {
  color: #0f172a !important;
}

body.light-theme .notification-history-item .tx-card-details,
body.light-theme .notification-history-item .tx-card-date {
  color: #64748b !important;
}

body.light-theme .notification-history-item .tx-card-icon {
  color: inherit !important;
}

/* ─── Onboarding & Login/Signup Page Overrides ─── */
body.light-theme .btn-google-auth {
  background-color: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .btn-google-auth:hover {
  background-color: #f8fafc !important;
}

body.light-theme .btn-onboarding-signup {
  color: #ffffff !important;
}

body.light-theme .btn-onboarding-signin {
  background-color: #f1f5f9 !important;
  color: #374151 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .btn-onboarding-signin:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

body.light-theme .auth-submit-btn {
  color: #ffffff !important;
}

body.light-theme .auth-back-btn {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .auth-back-btn:hover {
  background: #f1f5f9 !important;
  color: var(--primary) !important;
  border-color: var(--primary-light) !important;
}

/* ========================================================================
   DESKTOP VIEW THEME LAYOUT OVERRIDES (min-width: 1024px)
   ======================================================================== */
@media (min-width: 768px) {
  /* 1. Desktop Sidebar overrides */
  .app-nav {
    width: 240px !important;
    min-width: 240px !important;
    max-width: 240px !important;
    height: 100vh !important;
    background: #080c10 !important;
    padding: 24px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    border-right: 1px solid var(--border-color) !important;
    border-top: none !important;
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    box-shadow: 2px 0 16px rgba(0,0,0,0.4) !important;
  }

  .nav-bg-container,
  .nav-indicator-circle {
    display: none !important;
  }

  .nav-logo-area {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 0 0 20px 0 !important;
    margin-bottom: 16px !important;
    border-bottom: 1px solid var(--border-color) !important;
    width: 100% !important;
  }

  .logo-desktop-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .logo-icon-box {
    width: 36px !important;
    height: 36px !important;
    background: rgba(26, 183, 109, 0.1) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--primary-light) !important;
  }

  .logo-desktop {
    display: block !important;
    width: auto !important;
    max-width: 140px !important;
    height: 36px !important;
    object-fit: contain !important;
  }

  .logo-text-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .logo-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    letter-spacing: 0.5px !important;
  }

  .logo-subtitle {
    font-size: 9px !important;
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    margin-top: 2px !important;
  }

  .nav-items-group-top {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
  }

  .nav-item {
    width: 100% !important;
    height: 48px !important;
    padding: 12px 16px !important;
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 14px !important;
    border-radius: 10px !important;
    transition: var(--transition) !important;
    flex: none !important;
  }

  .nav-item svg {
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
    filter: none !important;
    transform: none !important;
  }

  .nav-item span.nav-label {
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    display: inline-block !important;
  }

  .nav-item.active {
    background-color: rgba(26, 183, 109, 0.08) !important;
    color: var(--primary) !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 0 10px 10px 0 !important;
    padding-left: 13px !important;
  }

  .nav-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.03) !important;
    color: white !important;
  }

  /* Trade Now button container in sidebar */
  .sidebar-trade-btn-container {
    padding: 16px 0 !important;
    width: 100% !important;
    border-top: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
    margin-top: auto !important;
    margin-bottom: 16px !important;
  }

  .sidebar-trade-btn {
    width: 100% !important;
    height: 44px !important;
    border-radius: 22px !important;
    background: var(--primary) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
  }

  .sidebar-trade-btn:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 14px rgba(26, 183, 109, 0.3) !important;
  }

  .nav-items-group-bottom {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 2. Top Header overrides */
  .app-header {
    height: 70px !important;
    padding: 0 32px !important;
    background: #080c10 !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
  }

  .app-header .logo-container {
    display: none !important;
  }

  .live-markets-pill {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(26, 183, 109, 0.08) !important;
    border: 1px solid rgba(26, 183, 109, 0.15) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    margin-right: 16px !important;
  }

  .live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #1ab76d !important;
    box-shadow: 0 0 8px #1ab76d !important;
    animation: pulseDot 2s infinite !important;
  }

  .live-text {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #1ab76d !important;
    letter-spacing: 0.5px !important;
  }

  .header-user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 30px !important;
    transition: var(--transition) !important;
  }

  .header-user-profile:hover {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .user-profile-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .profile-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .profile-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-top: 2px !important;
  }

  #header-user-avatar {
    display: none !important;
  }

  /* 3. Dashboard Layout — single column at 768-1023px, two cols at 1024px+ */
  #tab-dashboard.active-screen {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 24px 28px !important;
    gap: 20px !important;
  }

  #tab-dashboard.active-screen::after {
    display: none !important;
  }

  .dashboard-left-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 20px !important;
  }

  .dashboard-right-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    gap: 20px !important;
  }

  /* Right col cards stretch equally side-by-side on medium screens */
  .dashboard-right-col > * {
    flex: 1 1 calc(50% - 10px) !important;
    min-width: 280px !important;
  }

  .dashboard-quick-links-row,
  .markets-card,
  .dashboard-stats-row,
  .recent-activity-card {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .balance-card-wrapper {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin-top: -28px !important;
    margin-bottom: 0 !important;
  }

  #dashboard-visa-card-panel {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }

  .dashboard-stats-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }

  .recent-activity-card {
    margin-bottom: 0 !important;
  }

  /* 4. Stats cards stacking and Net P&L */
  .stats-card {
    flex: none !important;
    padding: 16px !important;
    border-radius: 16px !important;
    background: var(--bg-card) !important;
  }

  .stats-card:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .stats-card:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .stats-card:nth-child(3) {
    grid-column: 1 / span 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
  }

  .stats-val {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
  }

  .stats-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: var(--text-secondary) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 4px !important;
  }

  .stats-card:nth-child(3) .stats-val {
    color: var(--primary) !important;
  }

  .stats-card:nth-child(3) .stats-label {
    margin-top: 2px !important;
  }

  /* 5. Vibrant Green Balance Card */
  .dashboard-balance-card {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #1ab76d 0%, #10854d 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(26,183,109,0.3), inset 0 0 20px rgba(255,255,255,0.08) !important;
  }

  .dashboard-balance-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -150% !important;
    width: 60% !important;
    height: 100% !important;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 35%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0.25) 65%,
      rgba(255, 255, 255, 0) 100%
    ) !important;
    transform: skewX(-25deg) !important;
    animation: balanceCardShine 6s infinite ease-in-out !important;
    pointer-events: none !important;
  }

  .dashboard-balance-card .balance-card-label {
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 700 !important;
  }

  .dashboard-balance-card .balance-card-amount {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.12) !important;
  }

  .dashboard-balance-card .status-text {
    color: rgba(255, 255, 255, 0.75) !important;
  }

  .dashboard-balance-card .status-dot {
    background: #ffffff !important;
    box-shadow: 0 0 8px #ffffff !important;
    animation: pulseWhite 2s infinite !important;
  }

  .verified-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(255, 255, 255, 0.18) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px !important;
    padding: 4px 10px !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.2px !important;
  }

  .verified-icon {
    fill: currentColor !important;
  }

  .bal-btn-deposit {
    background: #0d0f16 !important;
    color: #ffffff !important;
    box-shadow: none !important;
  }

  .bal-btn-deposit:hover {
    background: #161924 !important;
    transform: translateY(-1px) !important;
  }

  .bal-btn-withdraw {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
  }

  .bal-btn-withdraw:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
  }

  /* 6. Quick Links overrides */
  .quick-link-item {
    padding: 16px 12px !important;
    border-radius: 14px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
  }

  .quick-link-item:hover {
    background: var(--bg-card-hover) !important;
    border-color: rgba(26, 183, 109, 0.25) !important;
  }

  .quick-link-label {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 700 !important;
    color: rgba(255,255,255,0.7) !important;
  }

  .quick-link-sub {
    display: none !important;
  }

  /* --- HIDE SIDEBAR NAV & HEADER WHEN ON TRADE TAB --- */
  .app-container.trade-screen-active #app-nav {
    display: flex !important;
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 24px 8px !important;
    align-items: center !important;
  }
  .app-container.trade-screen-active .app-main-column {
    margin-left: 0 !important;
    width: calc(100vw - 72px) !important;
    max-width: calc(100vw - 72px) !important;
  }
  
  /* Hide nav labels, logo text and Trade Now button in trade sidebar */
  .app-container.trade-screen-active #app-nav .nav-label,
  .app-container.trade-screen-active #app-nav .logo-text-wrap,
  .app-container.trade-screen-active #app-nav .sidebar-trade-btn-container {
    display: none !important;
  }
  .app-container.trade-screen-active #app-nav .nav-logo-area {
    justify-content: center !important;
    padding: 0 0 16px 0 !important;
    margin-bottom: 8px !important;
  }
  .app-container.trade-screen-active #app-nav .nav-item {
    justify-content: center !important;
    padding: 12px 0 !important;
    width: 100% !important;
  }
  .app-container.trade-screen-active #app-nav .nav-item.active {
    border-left: none !important;
    border-right: 3px solid var(--primary) !important;
    border-radius: 10px 0 0 10px !important;
    padding-left: 12px !important;
  }
  
  /* Hide top header bar when trade page is active */
  .app-container.trade-screen-active #app-header {
    display: none !important;
  }

  /* --- ADJUST APP CONTENT IN TRADE MODE ON DESKTOP --- */
  .app-content.trade-mode {
    padding: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
  }

  /* --- DESKTOP TRADE HEADER BAR ADJUSTMENTS --- */
  .trade-header-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 20px !important;
    height: 50px !important;
    background: #0b0e14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  }

  /* Show Logo & Promo Banner on Desktop */
  .trade-header-left .trade-logo-area {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
  }

  .trade-logo-desktop-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .trade-logo-text-primary {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: 0.5px !important;
  }

  .trade-logo-text-secondary {
    font-size: 9px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.45) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-left: 8px !important;
    padding-left: 8px !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    line-height: 14px !important;
    height: 14px !important;
  }

  .trade-promo-banner {
    display: none !important;
  }

  .promo-content {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .promo-rocket {
    font-size: 12px !important;
    transform: rotate(45deg) !important;
  }

  .promo-text {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  .promo-badge {
    background: #1ab76d !important;
    color: #000000 !important;
    padding: 1px 6px !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 800 !important;
  }

  /* Right-side items inside trade header */
  .trade-header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .trade-header-btn.btn-deposit {
    background: #1ab76d !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .trade-header-btn.btn-withdraw {
    display: flex !important;
    background: #1c2438 !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    height: 34px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .trade-profile-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    background: #1c2438 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    cursor: pointer !important;
  }
  
  /* --- ASSET TABS ROW BELOW HEADER --- */
  .trade-asset-tabs-row {
    display: flex !important;
    background: #0b0e14 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    height: 38px !important;
    align-items: center !important;
    padding: 0 10px !important;
  }

  /* Ensure floating sidebar tools are always visible on desktop */
  .chart-floating-left-bar {
    display: flex !important;
    position: absolute !important;
    left: 10px !important;
    top: 48px !important;
    z-index: 200 !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .asset-add-btn-desktop {
    background: #3861fb !important;
    border: none !important;
    color: #ffffff !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    margin-left: 10px !important;
    flex-shrink: 0 !important;
  }

  .asset-add-btn-desktop:hover {
    background: #5b7cff !important;
  }

  .asset-add-btn-desktop .plus-icon {
    font-size: 16px !important;
    font-weight: 700 !important;
  }

  .asset-tabs-list {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    height: 100% !important;
    align-items: center !important;
    flex: 0 1 auto !important;
  }

  /* Style dynamic asset tab item */
  .asset-session-tab {
    display: flex !important;
    align-items: center !important;
    background: #161c28 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 0 12px !important;
    height: 32px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    gap: 8px !important;
    border-bottom: none !important;
    transition: all 0.2s !important;
    margin-top: 6px !important;
  }

  .asset-session-tab.active {
    background: #06070a !important; /* matches main trade body background */
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    height: 34px !important;
    margin-top: 4px !important;
  }

  .asset-tab-close {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.4) !important;
    cursor: pointer !important;
  }

  .asset-tab-close:hover {
    color: #ff4d4d !important;
  }

  /* --- MAIN TRADING PANEL LAYOUT --- */
  .trade-body {
    flex-direction: row !important;
    height: calc(100vh - 88px) !important; /* height minus header and tab row */
  }

  .trade-chart-area {
    flex: 1 !important;
    position: relative !important;
  }

  /* --- RIGHT CONTROLS PANEL --- */
  .trade-controls-panel {
    width: 290px !important; /* exact premium sidebar width */
    min-width: 290px !important;
    max-width: 290px !important;
    height: 100% !important;
    border-left: 1px solid #1c2438 !important;
    border-top: none !important;
    background: #0b0e14 !important;
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
  }

  /* Asset info display at the top of right sidebar */
  .tc-mobile-asset-row {
    display: flex !important;
    margin-bottom: 0px !important;
    border-bottom: none !important;
  }

  .tc-asset-selector-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: auto !important;
    height: auto !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  .tc-asset-name-val {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .tc-asset-payout-val {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #1ab76d !important;
  }

  .tc-asset-arrow-down {
    display: none !important;
  }

  /* Pending trade toggle layout */
  .tc-pending-trade-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }

  .tc-pending-label {
    font-size: 10px !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.5px !important;
  }

  /* Time/Investment Stack layout */
  .tc-mobile-row {
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 0 !important;
  }

  .tc-mobile-col {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    background: #111622 !important;
    border: 1px solid #1c2438 !important;
    border-radius: 8px !important;
    padding: 4px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* Desktop popover dropdown position and size fix */
  .tc-time-popover {
    top: 58px !important;
    bottom: auto !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 10000 !important;
  }

  .tc-card-label {
    top: -6px !important;
    left: 12px !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    background: #0b0e14 !important;
  }

  /* Inner inputs centering & styling */
  .tc-time-row-desktop {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .tc-input-row {
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
  }

  .tc-time-display-val {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .tc-amount-input {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    width: 100px !important;
    height: 32px !important;
  }

  .tc-step-btn,
  .tc-time-step-btn {
    background: #1c2438 !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;
    width: 22px !important;
    height: 22px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
  }

  .tc-step-btn:hover,
  .tc-time-step-btn:hover {
    background: #2a354d !important;
    color: #ffffff !important;
  }

  /* SWITCH Link styling */
  .tc-switch-container {
    bottom: -6px !important;
    background: #0b0e14 !important;
  }

  .tc-switch-link {
    font-size: 8px !important;
  }

  .tc-time-switch-container {
    position: absolute !important;
    bottom: -6px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #0b0e14 !important;
    padding: 0 5px !important;
    display: flex !important;
    justify-content: center !important;
    line-height: 1 !important;
    z-index: 10 !important;
  }

  /* Payout Display */
  .tc-profit-preview {
    margin-top: 0px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
  }

  .tc-profit-row {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  .tc-dotted-connector {
    margin: 0 6px !important;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.15) !important;
  }

  .tc-preview-val.text-green {
    font-size: 14px !important;
    font-weight: 700 !important;
  }

  /* Up/Down buttons */
  .tc-action-buttons {
    gap: 10px !important;
    flex-shrink: 0 !important;
  }

  .tc-action-buttons .tc-trade-btn {
    height: 70px !important;
    min-height: 70px !important;
    flex-shrink: 0 !important;
    border-radius: 8px !important;
    border: none !important;
    transition: all 0.2s ease !important;
  }

  .tc-action-buttons .tc-trade-btn.tc-btn-up {
    background: #0faf59 !important;
    box-shadow: 0 4px 12px rgba(15, 175, 89, 0.2) !important;
  }
  .tc-action-buttons .tc-trade-btn.tc-btn-up:hover {
    background: #12c465 !important;
    transform: translateY(-1px) !important;
  }

  .tc-action-buttons .tc-trade-btn.tc-btn-down {
    background: #e03e3e !important;
    box-shadow: 0 4px 12px rgba(224, 62, 62, 0.2) !important;
  }
  .tc-action-buttons .tc-trade-btn.tc-btn-down:hover {
    background: #f24c5a !important;
    transform: translateY(-1px) !important;
  }

  .tc-btn-content {
    width: 100% !important;
    padding: 0 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .tc-btn-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .tc-action-buttons .tc-trade-btn .tc-btn-arrow {
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    color: #ffffff !important;
  }

  /* Trades history card bottom container */
  .tc-trades-panel-mobile-container {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    margin-top: 8px !important;
  }

  .tc-trades-tabs {
    display: flex !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 10px !important;
  }

  .tc-tab-btn {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.4) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 8px 0 !important;
    cursor: pointer !important;
    text-align: center !important;
    border-bottom: 2px solid transparent !important;
    transition: all 0.2s !important;
  }

  .tc-tab-btn.active {
    color: #ffffff !important;
    border-bottom: 2px solid #3861fb !important;
  }

  .tc-trades-content {
    overflow-y: auto !important;
    flex: 1 !important;
  }

  /* Display desktop-only classes on desktop */
  .desktop-only {
    display: flex !important;
  }
  span.desktop-only {
    display: inline-block !important;
  }
  button.desktop-only {
    display: inline-flex !important;
  }
}

@keyframes pulseWhite {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px #ffffff; }
  50% { opacity: 0.6; box-shadow: 0 0 14px #ffffff; }
}

.verification-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 20px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.verification-badge.status-verified {
  background: rgba(26, 183, 109, 0.12) !important;
  border: 1px solid rgba(26, 183, 109, 0.25) !important;
  color: #1ab76d !important;
}

.verification-badge.status-pending {
  background: rgba(240, 168, 0, 0.12) !important;
  border: 1px solid rgba(240, 168, 0, 0.25) !important;
  color: #f0a800 !important;
}

.verification-badge.status-unverified {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  color: #ef4444 !important;
}

@keyframes balanceCardShine {
  0% { left: -150%; }
  15% { left: 150%; }
  100% { left: 150%; }
}

/* ========================================================================
   VISA DEBIT CARD PREMIUM STYLING
   ======================================================================== */

.visa-card-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0;
  box-sizing: border-box;
}

.visa-card-physical {
  position: relative;
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1.58 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: url('/images/debit_card_bg.png') no-repeat center center / cover !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.05);
  padding: 20px;
  color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: 'Outfit', -apple-system, sans-serif;
  user-select: none;
  container-type: inline-size;
}

/* ATM Visa card active/non-active status label */
.visa-card-status-label {
  position: absolute !important;
  right: 5cqw !important;
  top: 5cqw !important;
  font-size: 3cqw !important;
  font-weight: 700 !important;
  letter-spacing: 0.15cqw !important;
  text-transform: uppercase !important;
  padding: 1cqw 2.2cqw !important;
  border-radius: 4cqw !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 1.2cqw !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
  z-index: 5 !important;
  font-family: 'Outfit', sans-serif !important;
  line-height: 1 !important;
}

.visa-card-status-label.active {
  background: rgba(26, 183, 109, 0.25) !important;
  border-color: rgba(26, 183, 109, 0.4) !important;
  color: #1ab76d !important;
}

.visa-card-status-label.inactive {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
}

.visa-card-status-label .status-dot {
  width: 1.6cqw !important;
  height: 1.6cqw !important;
  border-radius: 50% !important;
  display: inline-block !important;
}

.visa-card-status-label.active .status-dot {
  background: #1ab76d !important;
  box-shadow: 0 0 8px #1ab76d !important;
  animation: visa-pulse 2s infinite !important;
}

.visa-card-status-label.inactive .status-dot {
  background: #ef4444 !important;
  box-shadow: 0 0 8px #ef4444 !important;
}

@keyframes visa-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 183, 109, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 5px rgba(26, 183, 109, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(26, 183, 109, 0);
  }
}

/* Card glossy shine sweep */
.visa-card-physical::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.18) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  animation: visaCardShine 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes visaCardShine {
  0% { left: -150%; }
  20% { left: 150%; }
  100% { left: 150%; }
}

.visa-card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(26, 183, 109, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.visa-card-chip, .visa-logo-img, .visa-card-brand {
  display: none !important;
}

.visa-card-number {
  position: absolute !important;
  left: 8cqw !important;
  top: 44cqw !important;
  font-size: 6.2cqw !important;
  letter-spacing: 0.6cqw !important;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
  z-index: 2;
  text-align: left;
}

.visa-card-expiry {
  position: absolute !important;
  left: 18cqw !important;
  bottom: 9cqw !important;
  font-size: 3.8cqw !important;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  z-index: 2;
  letter-spacing: 0.3125cqw !important;
}

.visa-card-holder {
  position: absolute !important;
  left: 8cqw !important;
  bottom: 3cqw !important;
  font-size: 3.8cqw !important;
  font-weight: 600;
  letter-spacing: 0.46875cqw !important;
  color: #ffffff;
  text-transform: uppercase;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
  z-index: 2;
}

.visa-card-glass-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 16, 0.72) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-radius: 5cqw !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6.25cqw !important;
  box-sizing: border-box;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.visa-card-blur-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2cqw !important;
}

.visa-lock-icon-container {
  width: 13cqw !important;
  height: 13cqw !important;
  border-radius: 50% !important;
  background: rgba(26, 183, 109, 0.12) !important;
  border: 1px solid rgba(26, 183, 109, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #1ab76d !important;
  margin-bottom: 1.5cqw !important;
  box-shadow: 0 0 15px rgba(26, 183, 109, 0.1) !important;
}

.visa-solid-lock {
  width: 5.5cqw !important;
  height: 5.5cqw !important;
  display: block !important;
}

.visa-card-blur-title {
  font-family: 'Outfit', 'Inter', system-ui, sans-serif !important;
  font-size: 4.6875cqw !important;
  font-weight: 700 !important;
  letter-spacing: 0.05cqw !important;
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
}

.visa-card-blur-text {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 3.125cqw !important;
  color: rgba(255, 255, 255, 0.65) !important;
  line-height: 1.4 !important;
  max-width: 72cqw !important;
}

.visa-card-blur-content button {
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 3.4375cqw !important;
  font-weight: 700 !important;
  padding: 1.875cqw 5.5cqw !important;
  margin-top: 2.5cqw !important;
  border-radius: 5cqw !important;
  background: linear-gradient(135deg, #1ab76d 0%, #10854d 100%) !important;
  border: none !important;
  color: #ffffff !important;
  box-shadow: 0 0.9375cqw 3.125cqw rgba(26, 183, 109, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.visa-card-blur-content button:hover {
  background: linear-gradient(135deg, #1ebf73 0%, #0e9657 100%) !important;
  box-shadow: 0 1.25cqw 4.375cqw rgba(26, 183, 109, 0.5) !important;
}

/* Mobile responsive fixes */
@media (max-width: 767px) {
  #tab-dashboard.active-screen {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    gap: 16px !important;
  }

  .dashboard-left-col,
  .dashboard-right-col {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 16px !important;
  }

  #dashboard-visa-card-panel {
    width: 100% !important;
    float: none !important;
    clear: both !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  
  .visa-card-physical {
    max-width: 340px;
  }
}

/* Custom Trade Overlays on Chart Container */
#gainex-chart {
  position: relative !important;
}

#chart-overlays {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
  will-change: transform;
  transform: translateZ(0);
}

/* Active Trade Pill */
.active-trade-pill {
  position: absolute;
  transform: translate(-50%, -50%) translateZ(0);
  will-change: left, top, transform;
  background-color: #1ab76d !important; /* Quotex theme green */
  color: #ffffff !important;
  padding: 4px 8px 4px 6px !important;
  border-radius: 14px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  z-index: 10;
  height: 22px !important;
  box-sizing: border-box !important;
}
.active-trade-pill.down {
  background-color: #ff3d00 !important; /* Quotex theme red */
}
.active-trade-pill .arrow-circle {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 8px !important;
  font-weight: 800 !important;
}

/* Entry Dot Marker */
.trade-entry-dots {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex !important;
  gap: 2px !important;
  pointer-events: none !important;
  z-index: 9;
}
.trade-entry-dot {
  width: 6px !important;
  height: 6px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 4px rgba(0,0,0,0.6) !important;
}

/* Closed Trade Result Pill */
.closed-trade-result-pill {
  position: absolute;
  transform: translate(-50%, -50%);
  background-color: #1ab76d !important; /* Quotex theme green */
  color: #ffffff !important;
  padding: 6px 12px 6px 10px !important;
  border-radius: 8px !important;
  font-family: 'Outfit', sans-serif !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
  pointer-events: auto !important;
  white-space: nowrap !important;
  z-index: 12;
  min-width: 95px !important;
  box-sizing: border-box !important;
}
.closed-trade-result-pill.lose {
  background-color: #ff3d00 !important; /* Quotex theme red */
}
.closed-trade-result-pill::after {
  content: '' !important;
  position: absolute !important;
  right: -5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  border-width: 5px 0 5px 5px !important;
  border-style: solid !important;
  border-color: transparent transparent transparent #1ab76d !important;
  display: block !important;
  width: 0 !important;
  height: 0 !important;
}
.closed-trade-result-pill.lose::after {
  border-color: transparent transparent transparent #ff3d00 !important;
}

.closed-trade-result-pill .result-title {
  font-size: 8px !important;
  font-weight: 700 !important;
  opacity: 0.75 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
}

.closed-trade-result-pill .result-val {
  font-size: 13px !important;
  font-weight: 800 !important;
}

.closed-trade-result-pill .result-close {
  position: absolute !important;
  top: 4px !important;
  right: 6px !important;
  font-size: 10px !important;
  opacity: 0.65 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none !important;
  transition: opacity 0.2s !important;
}
.closed-trade-result-pill .result-close:hover {
  opacity: 1.0 !important;
}

/* Trade Connector Line */
.trade-connector-line {
  position: absolute;
  height: 2px !important;
  transform: translateY(-50%);
  pointer-events: none !important;
  z-index: 8;
}
.trade-connector-line.up {
  background-color: #1ab76d !important; /* Quotex green */
}
.trade-connector-line.down {
  background-color: #ff3d00 !important; /* Quotex red */
}

/* Custom File Upload Styling */
.custom-file-upload-container {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background-color: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: var(--radius-sm) !important;
  padding: 8px 12px !important;
  margin-top: 4px !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
}

.custom-file-upload-btn {
  padding: 8px 16px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  height: auto !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.custom-file-upload-name {
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  flex-grow: 1 !important;
}

/* Swap Desktop Popup Layout */
@keyframes swapModalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 768px) {
  #profile-sub-convert-currency.profile-sub-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 99999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
  }

  .swap-popup-inner-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 16px !important;
    width: 460px !important;
    max-width: 90% !important;
    padding: 24px !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    box-sizing: border-box !important;
    animation: swapModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  /* Adjust internal headers inside desktop popup card */
  .swap-popup-inner-card .profile-header-sub {
    margin-bottom: 8px !important;
    padding: 0 !important;
  }

  .swap-popup-inner-card .profile-settings-container {
    padding: 0 !important;
    overflow-y: visible !important;
    max-height: none !important;
  }
}

@media (max-width: 767px) {
  .swap-popup-inner-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* Active/Closed Trade Row Layout for both Desktop and Mobile */
.tc-trade-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
  gap: 10px !important;
  transition: background 0.15s !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tc-trade-row:active {
  background: rgba(255, 255, 255, 0.03) !important;
}

.tc-trade-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
  flex-direction: row !important;
}

.tc-trade-icon-wrap {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  font-size: 15px !important;
}

.tc-trade-icon-wrap.dir-up {
  background: rgba(0, 230, 118, 0.12) !important;
  border: 1.5px solid rgba(0, 230, 118, 0.25) !important;
  color: #16c784 !important;
}

.tc-trade-icon-wrap.dir-down {
  background: rgba(255, 61, 0, 0.12) !important;
  border: 1.5px solid rgba(255, 61, 0, 0.25) !important;
  color: #ff6e40 !important;
}

.tc-trade-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 !important;
}

.tc-trade-symbol {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  letter-spacing: 0.2px !important;
}

.tc-trade-sub {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.tc-trade-dir-badge {
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 1px 5px !important;
  border-radius: 3px !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.tc-trade-dir-badge.dir-up {
  background: rgba(0, 230, 118, 0.15) !important;
  color: #16c784 !important;
}

.tc-trade-dir-badge.dir-down {
  background: rgba(255, 61, 0, 0.15) !important;
  color: #ff6e40 !important;
}

.tc-trade-row-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  flex-shrink: 0 !important;
}

.tc-trade-time {
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.65) !important;
  font-family: 'Courier New', monospace !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

.tc-trade-profit {
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2px !important;
}

.tc-trade-amount-right {
  font-size: 11px !important;
  color: rgba(255, 255, 255, 0.35) !important;
}



/* Light Theme Dashboard Stats Override */
body.light-theme .stats-val {
  color: #0d1117 !important;
}

/* ========================================================================
   LIGHT THEME ADDITIONAL DESKTOP OVERRIDES
   ======================================================================== */
@media (min-width: 768px) {
  /* 1. Active Pair Top Bar Overrides */
  body.light-theme .trade-asset-tabs-row {
    background-color: #f1f5f9 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.light-theme .asset-session-tab {
    background: #e2e8f0 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: var(--text-secondary) !important;
    border-bottom: none !important;
  }
  body.light-theme .asset-session-tab.active {
    background: #ffffff !important;
    color: var(--primary) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    border-bottom: none !important;
  }
  body.light-theme .asset-session-tab:hover:not(.active) {
    background: #cbd5e1 !important;
    color: var(--text-primary) !important;
  }
  body.light-theme .asset-session-tab .asset-tab-close {
    color: var(--text-secondary) !important;
  }
  body.light-theme .asset-session-tab .asset-tab-close:hover {
    color: var(--danger) !important;
  }
  body.light-theme .asset-add-btn-desktop {
    background: var(--primary-light) !important;
    color: var(--primary) !important;
  }
  body.light-theme .asset-add-btn-desktop:hover {
    background: var(--primary) !important;
    color: #ffffff !important;
  }

  /* 2. Switch Containers Solid Background Overrides */
  body.light-theme .tc-switch-container,
  body.light-theme .tc-time-switch-container {
    background: #ffffff !important;
  }

  /* 3. Plus/Minus Step Buttons Overrides */
  body.light-theme .tc-step-btn,
  body.light-theme .tc-time-step-btn {
    background: #e2e8f0 !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.light-theme .tc-step-btn:hover,
  body.light-theme .tc-time-step-btn:hover {
    background: #cbd5e1 !important;
    color: var(--text-primary) !important;
  }

  /* 4. Active/Closed Trade Placed Row Text Overrides */
  body.light-theme .tc-trade-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.light-theme .tc-trade-row:active {
    background: rgba(0, 0, 0, 0.03) !important;
  }
  body.light-theme .tc-trade-symbol {
    color: #0f172a !important; /* Slate 900 */
  }
  body.light-theme .tc-trade-sub {
    color: #475569 !important; /* Slate 600 */
  }
  body.light-theme .tc-trade-time {
    color: #475569 !important; /* Slate 600 */
  }
  body.light-theme .tc-trade-amount-right {
    color: #64748b !important; /* Slate 500 */
  }

  /* 5. Prevent static card panels from changing background color on hover in Light Theme */
  body.light-theme .card:hover {
    background: var(--bg-card) !important;
  }
  body.light-theme #deposit-instructions:hover {
    background: #f0fdf4 !important;
  }
  body.light-theme .card[style*="background: rgba(255,71,87,0.06)"]:hover,
  body.light-theme .card[style*="background: rgba(255, 71, 87, 0.06)"]:hover {
    background: rgba(255, 71, 87, 0.06) !important;
  }
  body.light-theme .card[style*="background: rgba(26,183,109,0.05)"]:hover,
  body.light-theme .card[style*="background: rgba(26, 183, 109, 0.05)"]:hover {
    background: rgba(26, 183, 109, 0.05) !important;
  }

  /* 6. Header Profile Bar Overrides */
  body.light-theme .profile-name {
    color: #0f172a !important; /* Slate 900 */
  }

  /* 7. Dashboard Balance Card Overrides */
  body.light-theme .dashboard-balance-card .balance-card-label {
    color: var(--text-secondary) !important;
  }
  body.light-theme .dashboard-balance-card .balance-card-amount {
    color: var(--text-primary) !important;
    text-shadow: none !important;
  }
  body.light-theme .dashboard-balance-card .status-text {
    color: var(--text-secondary) !important;
  }
  body.light-theme .dashboard-balance-card .status-dot {
    background: var(--primary) !important;
    box-shadow: 0 0 8px var(--primary) !important;
  }
  body.light-theme .bal-btn-deposit {
    background: var(--primary) !important;
    color: #ffffff !important;
  }
  body.light-theme .bal-btn-deposit:hover {
    background: var(--primary-hover) !important;
  }

  /* 8. Trade Page Header Balance Card / Selector Overrides */
  body.light-theme .trade-header-bar {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.light-theme .trade-logo-text-primary {
    color: #0f172a !important;
  }
  body.light-theme .trade-logo-text-secondary {
    color: #475569 !important;
    border-left: 1px solid rgba(0, 0, 0, 0.15) !important;
  }
  body.light-theme .trade-account-selector {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  body.light-theme .trade-account-selector:hover {
    background: #e2e8f0 !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
  }
  body.light-theme .account-balance {
    color: #0f172a !important; /* Slate 900 */
  }
  body.light-theme .account-arrow {
    color: #475569 !important; /* Slate 600 */
  }
  body.light-theme .menu-account-title {
    color: #475569 !important; /* Slate 600 */
  }
  body.light-theme .menu-account-balance {
    color: #0f172a !important; /* Slate 900 */
  }
  body.light-theme .trade-header-btn.btn-withdraw {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
  }
  body.light-theme .trade-header-btn.btn-withdraw:hover {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
  }
  body.light-theme .trade-profile-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
  }
  body.light-theme .trade-profile-btn:hover {
    background: #f1f5f9 !important;
    border-color: rgba(0, 0, 0, 0.25) !important;
  }
}

/* Fix header layout, dual profile display, and live markets pill on tablet/desktop viewports (768px and wider) */
@media (min-width: 768px) {
  .app-header {
    height: 70px !important;
    padding: 0 32px !important;
    background: #080c10 !important;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
  }

  .app-header .logo-container {
    display: none !important;
  }

  .live-markets-pill {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(26, 183, 109, 0.08) !important;
    border: 1px solid rgba(26, 183, 109, 0.15) !important;
    border-radius: 20px !important;
    padding: 6px 12px !important;
    margin-right: 16px !important;
  }

  .live-pulse-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #1ab76d !important;
    box-shadow: 0 0 8px #1ab76d !important;
    animation: pulseDot 2s infinite !important;
  }

  .live-text {
    font-size: 10px !important;
    font-weight: 800 !important;
    color: #1ab76d !important;
    letter-spacing: 0.5px !important;
  }

  .header-user-profile {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    border-radius: 30px !important;
    transition: var(--transition) !important;
  }

  .header-user-profile:hover {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  .user-profile-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
  }

  .profile-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
  }

  .profile-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: var(--primary) !important;
    margin-top: 2px !important;
  }

  #header-user-avatar {
    display: none !important;
  }
}

/* Visa Claim Card Grid Responsive Layout */
.visa-claim-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  align-items: stretch !important;
}

@media (min-width: 768px) {
  .visa-claim-grid {
    display: grid !important;
    grid-template-columns: 1fr 1.5fr !important;
    gap: 24px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
  }
}

/* ========================================================================
   ACTIVE PREMIUM VISA CARD PAGE STYLING
   ======================================================================== */

.active-card-grid {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.active-card-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  width: 100%;
}

@media (min-width: 992px) {
  .active-card-grid {
    max-width: 1000px !important;
    flex-direction: row !important;
    gap: 24px !important;
    align-items: flex-start !important;
  }

  /* Hide back button on desktop — sidebar nav handles navigation */
  .active-card-back-btn {
    display: none !important;
  }

  /* Center and polish the page header on desktop */
  .active-card-page-header {
    max-width: 1000px;
    margin: 0 auto 20px auto !important;
    justify-content: center;
    text-align: center;
  }

  .active-card-page-header .page-title {
    font-size: 26px !important;
    font-weight: 800 !important;
    font-family: 'Outfit', sans-serif !important;
    letter-spacing: -0.3px;
    color: #ffffff;
  }

  .active-card-page-header .page-subtitle {
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--text-secondary);
    margin-top: 4px;
  }
}

/* Balance Card Section */
.active-card-balance-section {
  position: relative;
  overflow: hidden;
}

.active-card-balance-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(26, 183, 109, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.active-card-action-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.active-card-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.active-card-action-btn:active {
  transform: translateY(0);
}

/* Delivery Status Stepper Tracker */
.visa-tracker-container {
  position: relative;
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  box-sizing: border-box;
}

.visa-tracker-line-bg {
  position: absolute;
  top: 26px; /* Centered with the 32px dot */
  left: 35px;
  right: 35px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  z-index: 1;
}

.visa-tracker-line-progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #1ab76d 0%, #10854d 100%);
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.visa-tracker-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  z-index: 2;
  width: 100%;
}

.visa-tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 70px;
  text-align: center;
}

.visa-tracker-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #121a22;
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.visa-tracker-dot svg {
  width: 14px;
  height: 14px;
  transition: all 0.4s ease;
}

.visa-tracker-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 8px;
  transition: all 0.4s ease;
  white-space: nowrap;
}

/* Tracker Active & Completed States */
.visa-tracker-step.completed .visa-tracker-dot {
  background: #1ab76d;
  border-color: #1ab76d;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(26, 183, 109, 0.3);
}

.visa-tracker-step.completed .visa-tracker-label {
  color: #ffffff;
  font-weight: 700;
}

.visa-tracker-step.active .visa-tracker-dot {
  background: #121a22;
  border-color: #1ab76d;
  color: #1ab76d;
  box-shadow: 0 0 12px rgba(26, 183, 109, 0.2);
}

.visa-tracker-step.active .visa-tracker-label {
  color: #1ab76d;
  font-weight: 700;
}

/* Pulsating Animation on Current Active Step */
@keyframes trackerPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(26, 183, 109, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(26, 183, 109, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(26, 183, 109, 0);
  }
}

.visa-tracker-step.pulsate .visa-tracker-dot {
  animation: trackerPulse 2s infinite ease-in-out;
}

/* Custom Switch Toggle Styles for Settings */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: #a0aec0;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.switch-toggle input:checked + .switch-slider {
  background-color: rgba(26, 183, 109, 0.2);
  border-color: rgba(26, 183, 109, 0.3);
}

.switch-toggle input:checked + .switch-slider:before {
  transform: translateX(20px);
  background-color: #1ab76d;
}

.switch-toggle input:disabled + .switch-slider {
  cursor: not-allowed;
  opacity: 0.6;
}

/* Custom range inputs */
input[type="range"]::-webkit-slider-thumb {
  box-shadow: 0 0 10px rgba(26, 183, 109, 0.5);
  transition: transform 0.1s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Active Card Page Title & Subtitle Mobile Customizations */
@media (max-width: 767px) {
  #tab-claim-card .page-header {
    margin-top: 24px !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  #tab-claim-card .page-title {
    font-family: 'Outfit', 'Inter', -apple-system, sans-serif !important;
    font-size: 21px !important;
    font-weight: 700 !important;
    letter-spacing: -0.4px !important;
    line-height: 1.25 !important;
    color: #ffffff !important;
    margin-bottom: 6px !important;
  }

  #tab-claim-card .page-subtitle {
    font-family: 'Inter', -apple-system, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.45 !important;
    color: var(--text-secondary) !important;
    letter-spacing: 0.1px !important;
  }
}

/* ================= CARD PAGE — LIGHT THEME OVERRIDES ================= */

/* Page header back button */
body.light-theme #tab-claim-card .active-card-back-btn,
body.light-theme #tab-claim-card button[onclick*="navigateTo('dashboard')"][style*="border-radius: 50%"] {
  background: rgba(0, 0, 0, 0.05) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}
body.light-theme #tab-claim-card .active-card-back-btn:hover {
  background: rgba(0, 0, 0, 0.1) !important;
}

/* Page title & subtitle */
body.light-theme #tab-claim-card .page-title {
  color: var(--text-primary) !important;
}
body.light-theme #tab-claim-card .page-subtitle {
  color: var(--text-secondary) !important;
}

/* Balance card section */
body.light-theme #tab-claim-card .active-card-balance-section {
  background: linear-gradient(135deg, rgba(26,183,109,0.08) 0%, rgba(240,243,248,0.9) 100%) !important;
  border-color: rgba(26,183,109,0.2) !important;
}
body.light-theme #tab-claim-card #active-card-user-balance {
  color: var(--text-primary) !important;
}

/* Withdraw button */
body.light-theme #tab-claim-card .btn-secondary.active-card-action-btn,
body.light-theme #tab-claim-card button[onclick*="withdraw"][style*="rgba(255,255,255,0.05)"] {
  color: var(--text-primary) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: var(--border-color) !important;
}
body.light-theme #tab-claim-card .btn-secondary.active-card-action-btn:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Card settings section text */
body.light-theme #tab-claim-card .active-card-settings-list div[style*="color: #ffffff"],
body.light-theme #tab-claim-card .active-card-options-card div[style*="color: #ffffff"] {
  color: var(--text-primary) !important;
}

/* Card settings — Freeze/Block, Unblock, Daily Limit labels */
body.light-theme #tab-claim-card .active-card-settings-list > div > div > div:first-child {
  color: var(--text-primary) !important;
}

/* Card titles in settings section */
body.light-theme #tab-claim-card .card-title {
  color: var(--text-primary) !important;
}

/* Card options disabled overlay */
body.light-theme #tab-claim-card .active-card-options-overlay,
body.light-theme #tab-claim-card #active-card-options-overlay {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
}
body.light-theme #tab-claim-card #active-card-options-overlay div[style*="color: #ffffff"] {
  color: var(--text-primary) !important;
}
body.light-theme #tab-claim-card #active-card-options-overlay .modal-lock-icon-container {
  background: rgba(26,183,109,0.08) !important;
  border-color: rgba(26,183,109,0.2) !important;
}

/* Activation modal */
body.light-theme #tab-claim-card #visa-activation-modal .kyc-modal-card {
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: var(--border-color) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06) !important;
}
body.light-theme #tab-claim-card #visa-activation-modal h3 {
  color: var(--text-primary) !important;
}
body.light-theme #tab-claim-card #visa-activation-modal #visa-activation-code-input {
  background: rgba(0, 0, 0, 0.03) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-color) !important;
}

/* Claim form view — Order Information card */
body.light-theme #tab-claim-card #visa-card-claim-form-view .card-title {
  color: var(--text-primary) !important;
}

/* Active Card Page — general .card backgrounds */
body.light-theme #tab-claim-card .card {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: var(--border-color) !important;
}

/* Delivery tracker status labels */
body.light-theme #tab-claim-card .visa-tracker-label {
  color: var(--text-secondary) !important;
}

/* Mobile title fix for light theme */
@media (max-width: 767px) {
  body.light-theme #tab-claim-card .page-title {
    color: var(--text-primary) !important;
  }
}

/* Desktop page header title override */
@media (min-width: 992px) {
  body.light-theme .active-card-page-header .page-title {
    color: var(--text-primary) !important;
  }
}

/* Delivery tracker — line background */
body.light-theme .visa-tracker-line-bg {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Delivery tracker — inactive dot */
body.light-theme .visa-tracker-dot {
  background: #f1f5f9 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: rgba(0, 0, 0, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

/* Delivery tracker — active dot */
body.light-theme .visa-tracker-step.active .visa-tracker-dot {
  background: #ffffff !important;
  border-color: #1ab76d !important;
  color: #1ab76d !important;
  box-shadow: 0 0 12px rgba(26, 183, 109, 0.2) !important;
}

/* Delivery tracker — completed dot (keep green) */
body.light-theme .visa-tracker-step.completed .visa-tracker-dot {
  background: #1ab76d !important;
  border-color: #1ab76d !important;
  color: #ffffff !important;
}

/* Delivery tracker — completed step label */
body.light-theme .visa-tracker-step.completed .visa-tracker-label {
  color: var(--text-primary) !important;
}

/* Switch toggle — unchecked background */
body.light-theme .switch-slider {
  background-color: rgba(0, 0, 0, 0.1) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Switch toggle — checked background */
body.light-theme .switch-toggle input:checked + .switch-slider {
  background-color: rgba(26, 183, 109, 0.15) !important;
  border-color: rgba(26, 183, 109, 0.25) !important;
}

/* Switch toggle — knob */
body.light-theme .switch-slider:before {
  background-color: #94a3b8 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
}
body.light-theme .switch-toggle input:checked + .switch-slider:before {
  background-color: #1ab76d !important;
}

/* Range slider track */
body.light-theme #tab-claim-card input[type="range"] {
  accent-color: var(--primary) !important;
}

/* Global Page Loader Overlay */
.global-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 26, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
  pointer-events: none;
}

.global-loader-overlay.visible {
  display: flex;
}

.global-loader-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.global-loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.global-loader-logo-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
}

.global-loader-logo-container::before {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 183, 109, 0.25) 0%, rgba(239, 68, 68, 0.15) 50%, transparent 100%);
  filter: blur(8px);
  animation: loaderGlow 2s infinite ease-in-out alternate;
}

.global-loader-logo {
  width: 72px;
  height: auto;
  z-index: 1;
  animation: loaderPulse 2s infinite ease-in-out;
  object-fit: contain;
}

.global-loader-text {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
  opacity: 0.85;
  animation: loaderTextPulse 1.5s infinite ease-in-out alternate;
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(0.92);
  }
}

@keyframes loaderGlow {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

@keyframes loaderTextPulse {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

/* Hide sidebar & header in auth screen for desktop/all screens */
.app-container.auth-screen-active #app-nav,
.app-container.auth-screen-active #app-header {
  display: none !important;
}

/* Hide desktop sidebar on mobile */
.auth-desktop-sidebar {
  display: none !important;
}

/* ========================================================================
   DESKTOP AUTH SPLIT-SCREEN LAYOUT (min-width: 1024px)
   ======================================================================== */
@media (min-width: 1024px) {
  /* Prevent scrolling on desktop auth */
  body.auth-screen-active {
    overflow: hidden !important;
  }

  .screen.auth-screen,
  .screen.auth-screen.active-screen,
  .screen.active-screen.auth-screen {
    display: flex !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: row !important;
    overflow: hidden !important;
    background-color: var(--bg-main) !important;
  }

  .screen.auth-screen {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-in-out;
    z-index: 100;
  }

  .screen.auth-screen.active-screen,
  .screen.active-screen.auth-screen {
    opacity: 1;
    pointer-events: auto;
    z-index: 200;
  }

  /* Left/Right illustration column */
  .auth-desktop-sidebar {
    flex: 1 !important;
    width: 50% !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: stretch !important;
    border-right: 1px solid rgba(255,255,255,0.06) !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 10;
    overflow: hidden !important;
    padding: 0 !important;
    background-image: url('/images/auth_trading_bg.png') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  /* Dark gradient overlay via pseudo-element */
  .auth-desktop-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      160deg,
      rgba(4, 8, 14, 0.84) 0%,
      rgba(6, 14, 24, 0.78) 50%,
      rgba(4, 8, 14, 0.90) 100%
    );
    z-index: 0;
    pointer-events: none;
  }

  #screen-signup .auth-desktop-sidebar {
    border-right: none !important;
    border-left: 1px solid rgba(255,255,255,0.06) !important;
  }

  /* ── Keep the .auth-sidebar-bg/.auth-sidebar-overlay divs hidden (no longer needed) ── */
  .auth-sidebar-bg,
  .auth-sidebar-overlay {
    display: none;
  }

  /* ── Logo bar top-left ── */
  .auth-sidebar-logo-bar {
    position: relative;
    z-index: 5;
    padding: 28px 28px 0 28px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }

  .auth-sidebar-logo-img {
    height: 52px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 12px rgba(16,185,129,0.35));
  }

  /* ── Center content (text only, no GIF) ── */
  .auth-sidebar-center {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 40px 20px 85px 20px;
    text-align: center;
  }

  /* Form column */
  .auth-page-inner {
    flex: 1 !important;
    width: 50% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 60px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Top-aligned to avoid layout clipping during overflow */
    align-items: center !important;
    background: var(--bg-main) !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 20;
    overflow-y: auto !important;
  }

  /* Centering trick that supports scrolling overflow */
  .auth-page-inner > * {
    margin-top: auto;
    margin-bottom: auto;
  }

  .auth-page-inner .auth-card,
  .auth-page-inner .auth-logo-block {
    width: 100% !important;
    max-width: 420px !important;
  }

  /* Hide back button on desktop auth screens - REMOVED to show back button */

  /* Column swap transitions */
  .auth-desktop-sidebar,
  .auth-page-inner {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease !important;
  }

  /* Login Screen: Illustration left (order 1), Form right (order 2) */
  #screen-login .auth-desktop-sidebar {
    order: 1 !important;
  }
  #screen-login .auth-page-inner {
    order: 2 !important;
  }

  #screen-login:not(.active-screen) .auth-desktop-sidebar {
    transform: translateX(100%) !important;
    opacity: 0 !important;
  }
  #screen-login:not(.active-screen) .auth-page-inner {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
  }
  #screen-login.active-screen .auth-desktop-sidebar,
  #screen-login.active-screen .auth-page-inner {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }

  /* Signup Screen: Form left (order 1), Illustration right (order 2) */
  #screen-signup .auth-page-inner {
    order: 1 !important;
  }
  #screen-signup .auth-desktop-sidebar {
    order: 2 !important;
  }

  #screen-signup:not(.active-screen) .auth-desktop-sidebar {
    transform: translateX(-100%) !important;
    opacity: 0 !important;
  }
  #screen-signup:not(.active-screen) .auth-page-inner {
    transform: translateX(100%) !important;
    opacity: 0 !important;
  }
  #screen-signup.active-screen .auth-desktop-sidebar,
  #screen-signup.active-screen .auth-page-inner {
    transform: translateX(0) !important;
    opacity: 1 !important;
  }

  /* Illustration Styles */
  .auth-sidebar-illustration-container {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    perspective: 1000px;
  }

  /* Glassmorphic premium card */
  .auth-sidebar-premium-card {
    width: 300px;
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.15) !important;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(-4deg);
    transform-style: preserve-3d;
    animation: cardFloating 6s ease-in-out infinite alternate;
    z-index: 5;
  }

  .auth-card-reflection {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, 0.08) 50%, transparent 55%);
    transform: rotate(-45deg);
    pointer-events: none;
  }

  .auth-card-glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--primary);
    filter: blur(40px);
    opacity: 0.25;
    pointer-events: none;
  }

  .auth-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }

  .auth-card-chip {
    width: 36px;
    height: 26px;
    background: linear-gradient(135deg, #f59e0b 0%, #d77706 100%);
    border-radius: 4px;
    position: relative;
  }
  .auth-card-chip::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 20px;
    height: 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 2px;
  }

  .auth-card-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    text-align: left;
    width: 100%;
    margin-top: 10px;
  }

  .auth-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
  }

  .auth-card-holder {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.45);
    text-align: left;
  }

  .auth-card-brand {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    font-style: italic;
  }

  /* Floating Coins */
  .auth-sidebar-coin {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    box-shadow: 0 8px 16px rgba(0,0,0,0.35), inset 0 2px 4px rgba(255,255,255,0.35);
    z-index: 10;
  }

  .coin-sol {
    background: linear-gradient(135deg, #14f195 0%, #9945ff 100%);
    top: 40px;
    left: 60px;
    animation: coinFloatSol 5s ease-in-out infinite alternate;
  }

  .coin-btc {
    background: linear-gradient(135deg, #f7931a 0%, #f7b31a 100%);
    top: 50px;
    right: 60px;
    animation: coinFloatBtc 4s ease-in-out infinite alternate;
  }

  .coin-usdt {
    background: linear-gradient(135deg, #26a17b 0%, #1ab76d 100%);
    bottom: 30px;
    right: 90px;
    animation: coinFloatUsdt 4.5s ease-in-out infinite alternate;
  }

  /* Text Info */
  .auth-sidebar-text {
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 5;
    padding: 0 10px;
  }

  .auth-sidebar-title {
    display: block !important;
    width: 100% !important;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 6px;
    font-family: 'Outfit', 'Inter', sans-serif !important;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 0 4px 24px rgba(16,185,129,0.25);
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .auth-sidebar-title::after {
    content: '';
    display: block !important;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    margin: 14px auto 20px !important;
  }

  .auth-sidebar-desc {
    font-size: 14.5px;
    color: rgba(200, 220, 230, 0.85) !important;
    line-height: 1.85;
    font-weight: 400;
    letter-spacing: 0.015em;
    margin-top: 20px;
    text-align: center !important;
  }

  /* Combined Illustrations Area (legacy, hidden with new layout) */
  .auth-sidebar-illustration-container.combined-illustrations {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    margin-bottom: 20px;
  }

  /* Auth sidebar GIF */
  .auth-sidebar-gif {
    width: 100%;
    max-width: 340px;
    height: auto;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 16px 36px rgba(0,0,0,0.55)) drop-shadow(0 0 20px rgba(16,185,129,0.12));
    animation: authGifFloat 6s ease-in-out infinite alternate;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
  }

  .auth-sidebar-gif:hover {
    transform: translateY(-6px) scale(1.02);
    filter: drop-shadow(0 22px 42px rgba(0,0,0,0.65)) drop-shadow(0 0 30px rgba(16,185,129,0.22));
  }

  .combined-illustrations .illus-element {
    position: absolute;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .combined-illustrations .illus-element img {
    width: 100%;
    height: auto;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
  }

  .combined-illustrations .illus-shield {
    width: 250px;
    z-index: 1;
    transform: translateZ(-20px);
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
    animation: floatShield 6s ease-in-out infinite alternate;
  }

  .combined-illustrations .illus-characters {
    width: 230px;
    z-index: 4;
    transform: translateZ(30px);
    margin-top: 50px;
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3));
    animation: floatTraders 5s ease-in-out infinite alternate;
  }

  .combined-illustrations .illus-handshake {
    width: 130px;
    left: 10px;
    top: 130px;
    z-index: 2;
    transform: rotate(-5deg) translateZ(10px);
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.35));
    animation: floatHandshake 7s ease-in-out infinite alternate;
  }

  .combined-illustrations .illus-bills {
    width: 145px;
    right: -5px;
    top: 120px;
    z-index: 2;
    transform: rotate(15deg) translateZ(15px);
    filter: drop-shadow(0 12px 20px rgba(0,0,0,0.35));
    animation: floatBills 6.5s ease-in-out infinite alternate;
  }

  .combined-illustrations .illus-coin {
    width: 60px;
    left: 70px;
    top: 65px;
    z-index: 3;
    transform: translateZ(40px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.4));
    animation: floatCoin 4.5s ease-in-out infinite alternate;
  }

  /* Supported Platforms section */
  .auth-sidebar-platforms {
    margin-top: 30px;
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    z-index: 5;
  }

  .auth-platforms-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
  }

  .auth-platforms-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }

  .platform-logo {
    height: 18px;
    width: auto;
    opacity: 0.55;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: grayscale(1) brightness(1.6);
  }

  .platform-logo:hover {
    opacity: 1;
    filter: none;
  }

  .logo-nowpayments {
    height: 20px;
    filter: grayscale(1) brightness(2.2);
  }
  .logo-nowpayments:hover {
    filter: brightness(0) invert(1);
  }

  /* ─── Scrolling ticker bar ─── */
  .auth-sidebar-ticker-wrap {
    position: relative;
    z-index: 5;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 0 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(4, 10, 18, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .auth-ticker-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(180,200,210,0.5);
    padding-left: 28px;
  }

  /* Overflow mask container */
  .auth-ticker-track-outer {
    width: 100%;
    overflow: hidden;
    /* Fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  }

  /* Scrolling inner track — uses infinite scroll animation */
  .auth-ticker-track {
    display: flex;
    align-items: center;
    gap: 40px;
    width: max-content;
    animation: tickerScroll 18s linear infinite;
    will-change: transform;
    padding: 4px 20px;
  }

  .ticker-logo {
    height: 48px !important;
    width: auto !important;
    max-width: 100px !important;
    object-fit: contain;
    opacity: 0.85;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .ticker-logo:hover {
    opacity: 1;
    transform: scale(1.08);
  }

} /* end @media (min-width: 992px) */

/* ── Ticker scroll animation (right → left) ── */
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Animations */
@keyframes cardFloating {
  0% {
    transform: rotateY(-12deg) rotateX(8deg) rotateZ(-4deg) translateY(0);
  }
  100% {
    transform: rotateY(-6deg) rotateX(4deg) rotateZ(-2deg) translateY(-8px);
  }
}

@keyframes coinFloatSol {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(12deg); }
}

@keyframes coinFloatBtc {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-8px) rotate(-12deg); }
}

@keyframes coinFloatUsdt {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-9px) rotate(8deg); }
}

@keyframes floatShield {
  0% { transform: translateY(0) rotate(0deg) translateZ(-20px); }
  100% { transform: translateY(-8px) rotate(1.5deg) translateZ(-20px); }
}
@keyframes floatTraders {
  0% { transform: translateY(0) translateZ(30px); }
  100% { transform: translateY(-12px) translateZ(30px); }
}
@keyframes floatHandshake {
  0% { transform: translateY(0) rotate(-5deg) translateZ(10px); }
  100% { transform: translateY(-6px) rotate(-3deg) translateZ(10px); }
}
@keyframes floatBills {
  0% { transform: translateY(0) rotate(15deg) translateZ(15px); }
  100% { transform: translateY(-10px) rotate(13deg) translateZ(15px); }
}
@keyframes floatCoin {
  0% { transform: translateY(0) rotate(0deg) translateZ(40px); }
  100% { transform: translateY(-14px) rotate(8deg) translateZ(40px); }
}

@keyframes authGifFloat {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-10px) rotate(1deg); }
}

/* Leaderboard Styling Extensions */

/* --- Container: prevent horizontal overflow on any screen size --- */
.leaderboard-container {
  width: 100%;
  overflow-x: hidden;
}

/* --- Table: fixed layout so columns respect their widths --- */
.leaderboard-table {
  color: var(--text-primary);
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

/* --- Column widths for mobile --- */
.leaderboard-table thead th:nth-child(1),
.leaderboard-table tbody td:nth-child(1) {
  width: 40px;
  min-width: 40px;
  max-width: 40px;
}
.leaderboard-table thead th:nth-child(2),
.leaderboard-table tbody td:nth-child(2) {
  /* Trader name column: takes remaining space, text wraps */
  overflow: hidden;
}
.leaderboard-table thead th:nth-child(3),
.leaderboard-table tbody td:nth-child(3) {
  width: 62px;
  min-width: 62px;
  max-width: 62px;
}
.leaderboard-table thead th:nth-child(4),
.leaderboard-table tbody td:nth-child(4) {
  width: 90px;
  min-width: 90px;
  max-width: 90px;
  word-break: break-all;
}

/* --- Trader name: allow wrapping so it doesn't push layout --- */
.leaderboard-trader-name {
  font-weight: 600;
  cursor: pointer;
  color: var(--text-primary);
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  display: block;
}

/* --- Avatar: always a perfect circle, never compressed by flexbox --- */
.leaderboard-avatar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.leaderboard-avatar-img,
.leaderboard-avatar-initials {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 1.5px solid var(--primary);
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Row hover --- */
.leaderboard-row:hover {
  background-color: var(--bg-card-hover) !important;
}

/* --- Rank badges --- */
.rank-badge {
  font-size: 18px;
  display: inline-block;
}
.rank-1 { text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); }
.rank-2 { text-shadow: 0 0 8px rgba(192, 192, 192, 0.4); }
.rank-3 { text-shadow: 0 0 8px rgba(205, 127, 50, 0.4); }

/* --- Extra squeeze for very small screens (< 360px) --- */
@media (max-width: 360px) {
  .leaderboard-table thead th:nth-child(3),
  .leaderboard-table tbody td:nth-child(3) {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
  }
  .leaderboard-table thead th:nth-child(4),
  .leaderboard-table tbody td:nth-child(4) {
    width: 78px;
    min-width: 78px;
    max-width: 78px;
    font-size: 11px;
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ========================================================================
   MOBILE CARD SWIPER LAYOUT (max-width: 767px)
   Pixel-perfect alignment matching reference images.
   IMPORTANT: All rules scoped inside @media (max-width: 767px).
   Desktop layout is completely untouched.
   ======================================================================== */
@media (max-width: 767px) {

  /* --- Outer slider container ---
     16px top margin below header.
     No bottom margin — dots handle spacing to next section. */
  .mobile-cards-slider {
    display: block !important;
    position: relative !important;
    width: calc(100% + 32px) !important;
    overflow: hidden !important;
    padding: 0 !important;
    padding-top: 24px !important;
    margin: -8px -16px 0 -16px !important;
    box-sizing: border-box !important;
  }

  /* --- Track: flex row, both slides stretch to same height --- */
  .mobile-cards-slider .slider-track {
    display: flex !important;
    width: 200% !important;
    align-items: stretch !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
  }

  /* --- Each slide = 50% of track = full viewport width ---
     No horizontal padding so card aligns edge-to-edge with other dashboard components. */
  .mobile-cards-slider .slider-slide {
    width: 50% !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
  }

  /* Direct child fills full slide */
  .mobile-cards-slider .slider-slide > div {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* ================================================================
     SLIDE 1 — BALANCE CARD
     Reference layout:
       - Card fills full width (minus 16px margins)
       - Rounded corners (20px)
       - Coins float upper-right, not covering balance text
       - Content: label → amount → status → [spacer] → buttons at bottom
       - Buttons: equal width, side by side, at card bottom
       - Internal padding: 20-24px
     ================================================================ */

  /* Wrapper: remove desktop top offset, let height adapt to aspect-ratio */
  .mobile-cards-slider .balance-card-wrapper {
    padding-top: 24px !important;
    margin-top: -24px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Balance card: fills wrapper, enforces same aspect ratio as Visa card */
  .mobile-cards-slider .dashboard-balance-card {
    margin-bottom: 0 !important;
    height: auto !important;
    aspect-ratio: 1.83 / 1 !important;
    width: 100% !important;
    overflow: visible !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: stretch !important;
  }

  /* Balance card content: flex column, push buttons to bottom */
  .mobile-cards-slider .balance-card-content {
    width: 100% !important;
    padding: 16px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }

  /* Label at top */
  .mobile-cards-slider .balance-card-label {
    font-size: 11px !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 4px !important;
  }

  /* Amount below label */
  .mobile-cards-slider .balance-card-amount {
    font-size: clamp(24px, 7vw, 36px) !important;
    margin-bottom: 4px !important;
    font-weight: 700 !important;
  }

  /* Status row */
  .mobile-cards-slider .balance-card-status {
    margin-bottom: auto !important; /* Push remaining space down → buttons go to bottom */
  }

  /* Action buttons: pinned at bottom, full width, equal sizes */
  .mobile-cards-slider .balance-card-actions {
    display: flex !important;
    gap: 10px !important;
    width: 100% !important;
    margin-top: 12px !important;
  }

  .mobile-cards-slider .bal-btn {
    flex: 1 !important;
    justify-content: center !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    border-radius: 12px !important;
  }

  /* Coins image: float upper-right, no overlap on balance text */
  .mobile-cards-slider .balance-card-bg-img {
    position: absolute !important;
    top: -20px !important;
    right: -6px !important;
    height: 65% !important;
    width: auto !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* ================================================================
     SLIDE 2 — VISA CARD
     Reference layout:
       - Only the physical debit card mockup is visible
       - Title row, info text, action button are HIDDEN
       - Card uses real credit-card aspect ratio (1.586 : 1)
       - Card is ~90% of available width, centered
       - Equal margins around card
       - Card vertically centered in the slide
     ================================================================ */

  /* Panel wrapper: strip all padding/margin, center the card vertically */
  .mobile-cards-slider #dashboard-visa-card-panel {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* HIDE: title row ("Gain EX Visa Card" + ACTIVE badge) */
  .mobile-cards-slider #dashboard-visa-card-panel .card-title-row {
    display: none !important;
  }

  /* HIDE: info text below card */
  .mobile-cards-slider #dashboard-visa-card-panel #visa-card-info-text {
    display: none !important;
  }

  /* HIDE: action button container */
  .mobile-cards-slider #dashboard-visa-card-panel #visa-card-action-container {
    display: none !important;
  }

  /* Card container: full width matching balance card */
  .mobile-cards-slider #dashboard-visa-card-panel .visa-card-container {
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
  }

  /* Physical card: full container width, aspect-ratio drives height */
  .mobile-cards-slider #dashboard-visa-card-panel .visa-card-physical {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 16px !important;
    /* aspect-ratio: 1.58/1 is already set globally */
  }

  /* ================================================================
     DOTS INDICATOR
     14px below hero cards. Centered horizontally.
     ================================================================ */
  .mobile-cards-slider .slider-dots {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 14px !important;
    padding-bottom: 6px !important;
  }

  .mobile-cards-slider .slider-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    border: none !important;
  }

  body.light-theme .mobile-cards-slider .slider-dot:not(.active) {
    background: rgba(0, 0, 0, 0.22) !important;
  }

  .mobile-cards-slider .slider-dot.active {
    background: var(--primary, #1ab76d) !important;
    width: 20px !important;
    border-radius: 4px !important;
  }

  body.light-theme .mobile-cards-slider .slider-dot.active {
    background: var(--primary, #1ab76d) !important;
  }
}

/* Desktop: mobile slider is always hidden — NO desktop changes */
@media (min-width: 768px) {
  .mobile-cards-slider {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   LARGE DESKTOP (1024px+): full two-column layout
   ════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  #tab-dashboard.active-screen {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    padding: 24px 32px !important;
    gap: 24px !important;
  }

  .dashboard-left-col {
    width: calc(61.5% - 12px) !important;
    gap: 24px !important;
  }

  .dashboard-right-col {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    width: calc(38.5% - 12px) !important;
    gap: 24px !important;
  }

  /* Reset right col child sizing from medium screen override */
  .dashboard-right-col > * {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  /* Coins image: full desktop size */
  .balance-card-bg-img {
    top: -18px !important;
    right: -10px !important;
    height: 90% !important;
  }

  /* Cap balance card max-width removed — card now fills full column width */
  .balance-card-wrapper {
    max-width: none !important;
    width: 100% !important;
  }
}

/* ════════════════════════════════════════════════════════
   MEDIUM DESKTOP (768-1023px): fix coins, full-width card
   ════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  /* Coins properly sized for full-width card at medium screens */
  .balance-card-bg-img {
    top: -10px !important;
    right: -8px !important;
    height: 80% !important;
  }

  /* Card content takes more width so text isn't covered */
  .balance-card-content {
    width: 58% !important;
    padding: 26px 28px !important;
  }
}

/* ========================================================================
   DESKTOP LEADERBOARD DRAWER
   ======================================================================== */
.desktop-leaderboard-drawer {
  position: absolute !important;
  top: 62px !important; /* start below the general app header */
  left: 0 !important;
  width: 340px !important;
  height: calc(100% - 62px) !important;
  background: #0b0e14 !important;
  border-right: 1px solid #1c2438 !important;
  z-index: 999 !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(-100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5) !important;
  box-sizing: border-box !important;
}

.desktop-leaderboard-drawer.active {
  transform: translateX(0) !important;
}

/* Adjust top position when on the trade screen (trade header bar height is 50px) */
.app-container.trade-screen-active .desktop-leaderboard-drawer {
  top: 50px !important;
  height: calc(100% - 50px) !important;
}

.desktop-leaderboard-drawer .drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #1c2438 !important;
  height: 56px !important;
  box-sizing: border-box !important;
}

.desktop-leaderboard-drawer .drawer-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.desktop-leaderboard-drawer .drawer-close-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: pointer !important;
  padding: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.2s, background-color 0.2s !important;
  border-radius: 4px !important;
}

.desktop-leaderboard-drawer .drawer-close-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.desktop-leaderboard-drawer .drawer-content {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px 16px !important;
}

/* Custom scrollbar for drawer-content */
.desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar {
  width: 4px !important;
}
.desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar-track {
  background: transparent !important;
}
.desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 2px !important;
}
.desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2) !important;
}

/* Hide on mobile devices */
@media (max-width: 767px) {
  .desktop-leaderboard-drawer {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES FOR DESKTOP LEADERBOARD DRAWER
   ════════════════════════════════════════════════════════ */
body.light-theme .desktop-leaderboard-drawer {
  background: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-title {
  color: #0b0e14 !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-close-btn {
  color: rgba(0, 0, 0, 0.4) !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-close-btn:hover {
  color: #000000 !important;
  background: rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-table tr {
  border-bottom-color: rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .desktop-leaderboard-drawer .leaderboard-trader-name {
  color: #0b0e14 !important;
}

body.light-theme .desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1) !important;
}
body.light-theme .desktop-leaderboard-drawer .drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2) !important;
}

/* ── Leaderboard Hover Card & Highlights ── */
.leaderboard-row:hover {
  background: rgba(26, 183, 109, 0.08) !important;
  box-shadow: inset 3px 0 0 var(--primary);
  cursor: pointer;
}

.leaderboard-hover-card {
  position: absolute;
  width: 290px;
  background: #1c2030;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  z-index: 99999;
  display: none;
  font-family: 'Inter', sans-serif;
  pointer-events: none;
  box-sizing: border-box;
}

.lh-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.lh-card-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(26, 183, 109, 0.3);
}

.lh-card-avatar-initials {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
}

.lh-card-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lh-card-country {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lh-card-username-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lh-card-username {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.lh-card-vip {
  color: var(--primary);
  font-size: 11px;
}

.lh-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.lh-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 12px;
  column-gap: 12px;
}

.lh-card-stat-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 1px;
}

.lh-card-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.lh-card-stat-val.profit {
  color: #1ab76d;
}

.lh-card-stat-val.loss {
  color: #ef4444;
}

/* Light Theme Support for Hover Card */
body.light-theme .leaderboard-hover-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .lh-card-username {
  color: #0b0e14 !important;
}

body.light-theme .lh-card-stat-val {
  color: #0b0e14 !important;
}

body.light-theme .lh-card-stat-val.profit {
  color: #1ab76d !important;
}

body.light-theme .lh-card-stat-val.loss {
  color: #ef4444 !important;
}

body.light-theme .lh-card-divider {
  background: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .lh-card-avatar-initials {
  background: rgba(0, 0, 0, 0.03) !important;
  color: rgba(0, 0, 0, 0.5) !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
}

/* =========================================================
   iOS KEYBOARD AUTO-ZOOM PREVENTION (GREEN THEME OVERRIDE)
   Force 16px on all inputs, selects, textareas, and specific
   trade panel amount/duration inputs to prevent iOS Safari 
   from zooming when the keyboard is focused.
   ========================================================= */
@media screen and (max-width: 767px) {
  input,
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="password"],
  input[type="search"],
  input[type="tel"],
  input[type="url"],
  input[type="date"],
  input[type="time"],
  select,
  textarea,
  .tc-amount-input,
  #trade-amount,
  .tc-manual-input-col input,
  .tc-mobile-col .tc-amount-input,
  .tc-mobile-col .tc-select {
    font-size: 16px !important;
  }
}

/* =========================================================
   MOBILE LAYOUT ADJUSTMENT FOR ASSET SELECTION
   Prevent the last asset items from being covered by the 
   fixed bottom navigation bar on mobile screen viewports.
   ========================================================= */
@media screen and (max-width: 767px) {
  .asset-picker-list {
    padding-bottom: 90px !important;
  }
}

/* =========================================================
   TRADE DRAWER / MOBILE TRADES PANEL THEMING
   Full contrast optimization for both Dark and Light themes.
   ========================================================= */

.tc-trades-panel-mobile-container {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 10px 14px;
}

.tc-trades-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 10px;
}

.tc-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 16px;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: all 0.2s ease;
}

.tc-tab-btn.active {
  color: #0d9488;
  border-bottom-color: #0d9488;
}

.tc-trade-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 6px;
  transition: background 0.2s;
}

.tc-trade-row-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tc-trade-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.tc-trade-icon-wrap.dir-up {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.tc-trade-icon-wrap.dir-down {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.tc-trade-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-trade-symbol {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}

.tc-trade-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.tc-trade-dir-badge {
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tc-trade-dir-badge.dir-up {
  background: rgba(13, 148, 136, 0.15);
  color: #0d9488;
}

.tc-trade-dir-badge.dir-down {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.tc-trade-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tc-trade-profit {
  font-size: 14px;
  font-weight: 800;
}

.tc-trade-profit.text-green {
  color: #0d9488 !important;
}

.tc-trade-profit.text-danger {
  color: #ef4444 !important;
}

.tc-trade-amount-right {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.no-trades-mini {
  padding: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Light Theme Explicit High-Contrast Overrides */
body.light-theme .tc-trades-panel-mobile-container {
  background: #ffffff !important;
  border-top-color: #e2e8f0 !important;
}

body.light-theme .tc-trades-tabs {
  border-bottom-color: #e2e8f0 !important;
}

body.light-theme .tc-tab-btn {
  color: #475569 !important;
}

body.light-theme .tc-tab-btn.active {
  color: #0d9488 !important;
  border-bottom-color: #0d9488 !important;
}

body.light-theme .tc-trade-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

body.light-theme .tc-trade-symbol {
  color: #0f172a !important;
}

body.light-theme .tc-trade-sub {
  color: #475569 !important;
}

body.light-theme .tc-trade-sub span {
  color: #475569 !important;
}

body.light-theme .tc-trade-amount-right {
  color: #64748b !important;
}

body.light-theme .no-trades-mini {
  color: #64748b !important;
}

/* Chart Zoom Controls Styling */
#chart-zoom-controls {
  position: absolute !important;
  bottom: 28px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 50 !important;
  display: flex !important;
  gap: 6px !important;
  pointer-events: all !important;
}

#chart-zoom-controls button {
  width: 28px !important;
  height: 28px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(15, 20, 34, 0.82) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  padding: 0 !important;
  user-select: none !important;
  transition: background 0.2s, border-color 0.2s, transform 0.1s !important;
}

#chart-zoom-controls button:hover {
  background: rgba(26, 183, 109, 0.85) !important;
  border-color: rgba(26, 183, 109, 0.95) !important;
  color: #ffffff !important;
}

#chart-zoom-controls button:active {
  transform: scale(0.95) !important;
}

/* Mobile responsive styling for zoom buttons */
@media (max-width: 767px) {
  #chart-zoom-controls {
    bottom: 20px !important;
    gap: 4px !important;
  }
  #chart-zoom-controls button {
    width: 24px !important;
    height: 24px !important;
    font-size: 14px !important;
    border-radius: 4px !important;
  }
}

/* Ensure left floating tools container is completely transparent with no border/outline */
.chart-floating-left-bar {
  background: transparent !important;
  border: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

/* Explicitly strip out any vertical left borders on chart containers */
.trade-chart-area,
.chart-canvas-wrap,
#gainex-chart {
  border-left: none !important;
  border-right: none !important;
  border: none !important;
  box-shadow: none !important;
}


