/* ========================================================================
   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 */
.nav-wallet-circle, .nav-wallet-center {
  background: var(--primary) !important;
  background-image: none !important;
  color: #000000 !important;
}

.nav-wallet-center.active .nav-wallet-circle {
  background: var(--primary-hover) !important;
}

.nav-item.active {
  color: var(--primary) !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 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  text-align: center;
}

.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;
}

.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: 10px;
  right: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--danger);
  border: 1px solid var(--bg-card);
}

.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;
}

.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;
  min-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: 220px !important;
  }
}

/* 3D Coins Image - overflows above card, sits behind buttons/text (z-index 1) */
.balance-card-bg-img {
  position: absolute !important;
  top: 8px !important;
  right: -10px !important;
  height: 64% !important;
  width: auto !important;
  z-index: 1 !important;
  pointer-events: 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: 22px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  width: 65% !important;
}

@media (min-width: 768px) {
  .balance-card-content {
    width: 55% !important;
    padding: 28px 32px !important;
  }
}

.balance-card-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  color: rgba(255,255,255,0.5) !important;
  margin-bottom: 6px !important;
}

.balance-card-amount {
  font-size: 34px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  letter-spacing: -1px !important;
  line-height: 1.1 !important;
  margin-bottom: 8px !important;
  text-shadow: 0 0 30px rgba(26,183,109,0.3) !important;
}

@media (min-width: 768px) {
  .balance-card-amount {
    font-size: 42px !important;
  }
}

/* Green status dot */
.balance-card-status {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 18px !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: 6px !important;
  padding: 10px 18px !important;
  border-radius: 50px !important;
  font-size: 13px !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;
}

/* ===== PREMIUM QUICK LINKS ROW ===== */
.dashboard-quick-links-row {
  display: flex !important;
  justify-content: space-between !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: rgba(255,255,255,0.03) !important;
  border: 1px solid rgba(255,255,255,0.07) !important;
  border-radius: 16px !important;
  padding: 14px 8px !important;
  transition: all 0.25s ease !important;
}

.quick-link-item:hover {
  background: rgba(255,255,255,0.07) !important;
  border-color: rgba(255,255,255,0.15) !important;
  transform: translateY(-2px) !important;
}

/* Neon icon circles */
.quick-link-circle {
  width: 46px !important;
  height: 46px !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;
}

.quick-link-circle svg {
  width: 22px !important;
  height: 22px !important;
}

/* Blue — Support: dark navy solid */
.quick-link-blue {
  background: #1a2744 !important;
  color: #5b8dee !important;
  box-shadow: none !important;
  border: none !important;
}

.quick-link-item:hover .quick-link-blue {
  background: #203260 !important;
  box-shadow: none !important;
}

/* Purple — Events: dark purple solid */
.quick-link-purple {
  background: #2d1a4a !important;
  color: #9b6fe0 !important;
  box-shadow: none !important;
  border: none !important;
}

.quick-link-item:hover .quick-link-purple {
  background: #3a2060 !important;
  box-shadow: none !important;
}

/* Green — Market: dark green solid */
.quick-link-green {
  background: #0e3326 !important;
  color: #1ab76d !important;
  box-shadow: none !important;
  border: none !important;
}

.quick-link-item:hover .quick-link-green {
  background: #154535 !important;
  box-shadow: none !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;
}

/* Redesigned Multi-View Profile Styles */
.profile-sub-screen {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  flex-shrink: 0 !important;
}

/* 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;
}

/* 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 #0e1118 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.
   ================================================================ */

/* --- 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;
  transform: translateY(-8px) !important;
}

.tc-action-buttons .tc-trade-btn {
  flex: 1 !important;
  height: 44px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-shadow: none !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;
  display: flex !important;
  flex-direction: column !important;
  height: auto !important; /* Dynamic height */
}

.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;
}

/* 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;
}

/* 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;
}

/* 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;
}

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 .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: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .quick-link-item:hover {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04) !important;
}

body.light-theme .quick-link-label {
  color: var(--text-primary) !important;
}

body.light-theme .quick-link-sub {
  color: var(--text-muted) !important;
}

/* Light Mode Soft circular icons for quick links */
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;
}

/* 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: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 .header-logo-img,
body.light-theme .splash-logo,
body.light-theme .trade-logo-area 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-secondary) !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 24px 64px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) !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 20px 60px rgba(0, 0, 0, 0.12), 0 0 30px rgba(18, 130, 76, 0.04) !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;
}
