/* =========================================================
   RobotTrade — Modern Design System v2
   Glassmorphism · Animations · Premium Dark Theme
   ========================================================= */

/* --- Tokens --- */
:root {
  --void:    #080c18;
  --surface: #111827;
  --surface-2: #1a2332;
  --surface-3: #1f2937;
  --gold:    #c9a227;
  --gold-light: #d4af37;
  --gold-glow: rgba(201, 162, 39, 0.25);
  --emerald: #059669;
  --emerald-light: #10b981;
  --emerald-glow: rgba(5, 150, 105, 0.25);
  --blue:    #3b82f6;
  --blue-glow: rgba(59, 130, 246, 0.25);
  --purple:  #8b5cf6;
  --purple-glow: rgba(139, 92, 246, 0.25);
  --ice:     #e2e8f0;
  --slate:   #64748b;
  --border:  #1e293b;
  --border-light: rgba(255, 255, 255, 0.06);
  --glass: rgba(17, 24, 39, 0.7);
  --glass-border: rgba(255, 255, 255, 0.08);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Utilities --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* clip avoids a nested scrollport that can break mobile momentum */
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ice);
  font-family: var(--font-body, 'Inter', system-ui, -apple-system, sans-serif);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

:focus {
  scroll-margin-top: 80px;
}

/* Reduced motion — keep decorative infinite loops (ticker) alive */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-ticker-track,
  .hero-ticker-track *,
  .hero-ticker-shine,
  .hero-ticker-item {
    animation-duration: 48s !important;
    animation-iteration-count: infinite !important;
  }
  .hero-ticker-shine {
    animation-duration: 8s !important;
  }
  .hero-ticker-item {
    animation-duration: 3.6s !important;
  }
}

/* --- Keyframe Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px var(--gold-glow); }
  50% { box-shadow: 0 0 40px var(--gold-glow), 0 0 60px rgba(201, 162, 39, 0.1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes border-glow {
  0%, 100% { border-color: rgba(201, 162, 39, 0.2); }
  50% { border-color: rgba(201, 162, 39, 0.5); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes number-count {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Typography --- */
.display-xl {
  font-family: var(--font-heading, 'Sora', 'Vazirmatn', sans-serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ice) 0%, var(--gold-light) 50%, var(--ice) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease-out;
}

.display-lg {
  font-family: var(--font-heading, 'Sora', 'Vazirmatn', sans-serif);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

html[lang="fa"] .display-lg,
html[lang="fa"] .display-xl,
html[lang="ar"] .display-lg,
html[lang="ar"] .display-xl,
html[lang="ur"] .display-lg,
html[lang="ur"] .display-xl {
  font-family: var(--font-heading);
  letter-spacing: 0;
}

.label {
  font-family: var(--font-heading, 'Sora', 'Vazirmatn', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

html[lang="fa"] .label,
html[lang="ar"] .label,
html[lang="ur"] .label {
  font-family: var(--font-heading);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.85rem;
}

.label::before {
  content: none;
  display: none;
}

.label::after {
  content: none;
  display: none;
}

.label-line {
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
  display: inline-block;
}

[dir="rtl"] .label {
  flex-direction: row-reverse;
}

/* Hero Stats */
.hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 1rem;
  margin-top: 2rem;
}

.hero-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.hero-stat .val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ice);
  line-height: 1.2;
}

.hero-stat .lbl {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Security Bar — always 4 columns */
.security-bar-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1.5rem;
  text-align: center;
  align-items: start;
}
.security-bar-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.security-bar-grid > div:hover {
  transform: translateY(-2px);
  border-color: rgba(201,162,39,0.2);
}
@media (max-width: 768px) {
  .security-bar-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 1rem; }
}
@media (max-width: 480px) {
  .security-bar-grid { grid-template-columns: 1fr !important; }
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Navbar --- */
.rt-nav {
  background: rgba(8, 12, 24, 0.92);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  animation: fadeInDown 0.6s ease-out;
}

.rt-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.35), transparent);
  pointer-events: none;
}

.rt-nav .rt-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.rt-nav .brand {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ice);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.rt-nav .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
  border: 1px solid rgba(201, 162, 39, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.95rem;
}

.rt-nav .brand-logo {
  max-height: 40px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.rt-nav .brand:hover {
  color: var(--gold);
}

.rt-nav .brand .dot {
  display: none;
}

.rt-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.rt-nav .nav-links li {
  flex: 0 0 auto;
}

.rt-nav .nav-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  position: relative;
  box-sizing: border-box;
}

.rt-nav .nav-links a:hover {
  color: var(--ice);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.04);
}

.rt-nav .nav-links a::after {
  display: none;
}

.rt-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.rt-nav .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: var(--ice);
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.rt-nav .nav-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

@media (max-width: 992px) {
  .rt-nav {
    padding-block: 0.35rem;
  }

  .rt-nav .nav-toggle {
    display: flex;
  }

  .rt-nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(8, 12, 24, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    z-index: 110;
  }

  .rt-nav .nav-links.open {
    display: flex;
  }

  .rt-nav .nav-links a {
    width: 100%;
    padding: 0.75rem 1rem;
    white-space: normal;
    min-height: unset;
    justify-content: flex-start;
  }

  /* Two-row mobile header: brand+menu, then actions aligned to the end (near menu) */
  .rt-nav .rt-nav-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "actions actions";
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 0.55rem;
    min-height: unset;
    padding-block: 0.55rem;
    flex-wrap: nowrap;
  }

  .rt-nav .brand {
    grid-area: brand;
    min-width: 0;
  }

  .rt-nav .nav-toggle {
    grid-area: toggle;
  }

  .rt-nav .nav-actions {
    grid-area: actions;
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
  }

  .rt-nav .nav-actions .btn-gold,
  .rt-nav .nav-actions .btn-ghost {
    padding: 0.45rem 0.9rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .rt-nav .nav-actions .theme-toggle,
  .rt-nav .nav-actions .lang-dropdown-btn {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0 !important;
    padding-inline: 0 !important;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .rt-nav .nav-actions .lang-dropdown-btn .fa-chevron-down {
    display: none !important;
  }

  .rt-nav .nav-actions .lang-dropdown-btn .flag {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    margin: 0;
    line-height: 0;
  }

  .rt-nav .nav-actions .lang-dropdown-btn .lang-flag {
    display: block;
    width: 20px;
    height: 15px;
    margin: 0 auto;
    vertical-align: middle;
  }
}

@media (max-width: 420px) {
  .rt-nav .brand {
    font-size: 1rem;
  }

  .rt-nav .brand-logo {
    max-height: 32px;
    max-width: 120px;
  }

  .rt-nav .nav-actions .btn-gold,
  .rt-nav .nav-actions .btn-ghost {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}

.lang-switcher {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 0.2rem;
}

.lang-switcher a {
  font-size: 0.7rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.lang-switcher a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.lang-switcher a.active {
  color: #ffffff;
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 2px 8px var(--gold-glow);
}

/* --- Buttons --- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-gold i {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--gold-glow);
  color: #ffffff;
}

.btn-gold:hover::before {
  left: 100%;
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ice);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(10px);
}
.btn-ghost i {
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.06);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-emerald:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--emerald-glow);
  color: white;
}

.btn-blue {
  background: linear-gradient(135deg, var(--blue), #2563eb);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--blue-glow);
  color: white;
}

.btn-purple {
  background: linear-gradient(135deg, var(--purple), #7c3aed);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.7rem 1.75rem;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--purple-glow);
  color: white;
}

/* --- Hero --- */
.hero {
  min-height: min(90vh, 780px);
  display: flex;
  align-items: center;
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(201, 162, 39, 0.08), transparent),
    radial-gradient(ellipse 50% 60% at 90% 40%, rgba(5, 150, 105, 0.06), transparent),
    radial-gradient(circle at 50% 100%, rgba(59, 130, 246, 0.04), transparent);
  pointer-events: none;
}

/* Animated grid pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-number {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--gold);
  opacity: 0.12;
  user-select: none;
  position: relative;
  animation: float 6s ease-in-out infinite;
}

.hero-number span {
  display: block;
  font-size: 0.25em;
  color: var(--slate);
  opacity: 1;
  letter-spacing: 0.1em;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  margin-top: 0.5rem;
}

.hero-content {
  max-width: 580px;
  animation: slideInRight 0.8s ease-out;
}

.hero-content h1 {
  margin: 0 0 1.25rem;
}

.hero-content p {
  color: var(--slate);
  font-size: 1.125rem;
  line-height: 1.8;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Stats Bar --- */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  background: linear-gradient(180deg, var(--surface) 0%, var(--void) 100%);
  position: relative;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 1rem 1.5rem;
  position: relative;
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-4px);
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.stat-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--ice), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* --- Features Section --- */
.features {
  padding: 6rem 0;
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 162, 39, 0.04), transparent 70%);
  pointer-events: none;
}

.features-header {
  max-width: 600px;
  margin: 0 auto 4rem;
  text-align: center;
}

.features-header p {
  color: var(--slate);
  font-size: 1.05rem;
  margin: 1rem 0 0;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(201, 162, 39, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 40px rgba(201, 162, 39, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-icon.gold {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 162, 39, 0.1);
}

.feature-card:hover .feature-icon.gold {
  background: rgba(201, 162, 39, 0.2);
  box-shadow: 0 0 30px rgba(201, 162, 39, 0.2);
}

.feature-icon.emerald {
  background: rgba(5, 150, 105, 0.12);
  color: var(--emerald);
  box-shadow: 0 0 20px rgba(5, 150, 105, 0.1);
}

.feature-card:hover .feature-icon.emerald {
  background: rgba(5, 150, 105, 0.2);
  box-shadow: 0 0 30px rgba(5, 150, 105, 0.2);
}

.feature-icon.ice {
  background: rgba(226, 232, 240, 0.08);
  color: var(--ice);
  box-shadow: 0 0 20px rgba(226, 232, 240, 0.05);
}

.feature-card:hover .feature-icon.ice {
  background: rgba(226, 232, 240, 0.12);
  box-shadow: 0 0 30px rgba(226, 232, 240, 0.1);
}

.feature-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.1);
}

.feature-card:hover .feature-icon.blue {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.feature-card h3 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
  color: var(--ice);
}

.feature-card p {
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* --- CTA Section --- */
.cta-section {
  padding: 6rem 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--emerald) 0%, #047857 50%, #065f46 100%);
  border-radius: 20px;
  padding: 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: scale-in 0.6s ease-out;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(255,255,255,0.05), transparent 50%);
  pointer-events: none;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.03), transparent 30%);
  animation: gradient-shift 8s linear infinite;
  pointer-events: none;
}

.cta-box h2 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  opacity: 0.9;
  margin: 0 0 2rem;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn-gold {
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.rt-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: var(--surface);
  position: relative;
}

.rt-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-glow), transparent);
}

.rt-footer p {
  color: var(--slate);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.rt-footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.rt-footer .footer-links a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.rt-footer .footer-links a:hover {
  color: var(--gold);
}

.rt-footer .footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.rt-footer .footer-links a:hover::after {
  width: 100%;
}

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 20% 30%, rgba(201, 162, 39, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(5, 150, 105, 0.05), transparent),
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.03), transparent);
  pointer-events: none;
}

/* Animated particles/grid background for auth */
.auth-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

.auth-wrapper {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out;
}

.auth-brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-brand h1 {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ice);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.auth-brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-glow 2s ease-in-out infinite;
  box-shadow: 0 0 15px var(--gold-glow);
}

.auth-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.75rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-card h2 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

.auth-card .subtitle {
  color: var(--slate);
  font-size: 0.9rem;
  margin: 0 0 2rem;
  line-height: 1.6;
}

/* --- Form Elements --- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ice);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  background: rgba(8, 12, 24, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem 1.1rem;
  color: var(--ice);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow), 0 0 20px rgba(201, 162, 39, 0.1);
}

.form-input::placeholder {
  color: var(--slate);
  opacity: 0.5;
}

.form-input.is-valid {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.form-input.is-invalid {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

.form-group label .req {
  color: #ef4444;
  font-weight: 700;
}

.field-error {
  margin: 0.45rem 0 0;
  color: #ef4444;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.field-hint.field-bad {
  margin: 0.45rem 0 0;
  color: #ef4444;
  font-size: 0.75rem;
}

.field-note {
  display: block;
  color: var(--slate);
  font-size: 0.75rem;
  margin-top: 0.35rem;
}

.password-strength {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.password-strength span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s;
}

.password-strength span.on.s1 { background: #ef4444; }
.password-strength span.on.s2 { background: #f59e0b; }
.password-strength span.on.s3 { background: #3b82f6; }
.password-strength span.on.s4 { background: #10b981; }

.form-check.is-invalid-check {
  outline: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  border-radius: 4px;
  cursor: pointer;
}

.form-check label {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0;
  cursor: pointer;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-footer a {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.form-footer a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.auth-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.auth-link a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.auth-link a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

/* --- Alerts --- */
.alert-custom {
  padding: 1rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  backdrop-filter: blur(10px);
}

.alert-danger-custom {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.alert-success-custom {
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
}

.alert-warning-custom {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #fcd34d;
}

/* --- Dashboard / User Panel Cards --- */
.rt-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.rt-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.rt-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.rt-card-title {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ice);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rt-card-title i {
  color: var(--gold);
  font-size: 0.9rem;
}

/* Stat Cards - Modern */
.rt-stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.rt-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.rt-stat-card.green::before { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }
.rt-stat-card.gold::before { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.rt-stat-card.blue::before { background: linear-gradient(90deg, var(--blue), #60a5fa); }
.rt-stat-card.purple::before { background: linear-gradient(90deg, var(--purple), #a78bfa); }

.rt-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

/* Wallet balance cards */
.rt-wallet-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1rem;
  align-items: stretch;
}

.rt-wallet-stat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem 1.05rem;
}

.rt-wallet-stat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rt-wallet-stat-icon {
  width: 40px;
  height: 40px;
  font-size: 0.95rem;
  margin-bottom: 0;
  flex-shrink: 0;
}

.rt-wallet-stat--available .rt-wallet-stat-icon {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
}

.rt-wallet-stat-content {
  min-width: 0;
  flex: 1;
}

.rt-wallet-stat .rt-stat-label {
  margin-bottom: 0.45rem;
  line-height: 1.25;
}

.rt-wallet-stat-amount {
  font-size: 1.25rem;
  margin: 0;
  line-height: 1.2;
  word-break: break-word;
}

.rt-wallet-stat--available .rt-wallet-stat-amount {
  font-size: 1.45rem;
}

.rt-wallet-stat-meta {
  color: var(--slate);
  font-size: 0.72rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.rt-wallet-reward-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.rt-wallet-reward-chip {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.12);
  min-width: 0;
}

.rt-wallet-reward-chip-label {
  font-size: 0.65rem;
  color: var(--slate);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-wallet-reward-chip-value {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ice);
  line-height: 1.2;
}

.rt-wallet-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding: 0.85rem 1.15rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
}

.rt-wallet-total-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.rt-wallet-total-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(201, 162, 39, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rt-wallet-total-label {
  font-size: 0.75rem;
  color: var(--slate);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.rt-wallet-total-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ice);
  line-height: 1.25;
}

.rt-wallet-total-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rt-wallet-total-currency {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 700;
}

.rt-wallet-network-badge {
  font-size: 0.68rem !important;
}

@media (max-width: 1100px) {
  .rt-wallet-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .rt-wallet-stats {
    grid-template-columns: 1fr;
  }

  .rt-wallet-reward-breakdown {
    grid-template-columns: 1fr 1fr;
  }

  .rt-wallet-total {
    padding: 0.8rem 1rem;
  }
}

/* Active plan position cards */
.rt-section-heading {
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rt-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
}

.rt-active-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.rt-position-card {
  --pos-accent: var(--gold);
  --pos-accent-2: var(--gold-light);
  --pos-glow: rgba(201, 162, 39, 0.25);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--pos-accent) 8%, transparent), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--surface);
  border: 1px solid color-mix(in srgb, var(--pos-accent) 28%, var(--border));
  border-radius: 18px;
  padding: 1.2rem 1.2rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.rt-position-card-glow {
  position: absolute;
  top: -40%;
  inset-inline-end: -20%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pos-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.rt-position-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), 0 0 0 1px color-mix(in srgb, var(--pos-accent) 18%, transparent);
}

.rt-position-card.is-active {
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--pos-accent) 18%, transparent);
}

.rt-position-card.is-matured {
  border-color: rgba(16, 185, 129, 0.35);
}

.rt-position-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.rt-position-card-title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ice);
  font-weight: 650;
  font-size: 0.95rem;
  min-width: 0;
}

.rt-position-card-name {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.rt-position-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--pos-accent) 22%, transparent), color-mix(in srgb, var(--pos-accent-2) 10%, transparent));
  color: var(--pos-accent);
  border: 1px solid color-mix(in srgb, var(--pos-accent) 28%, transparent);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--pos-accent) 18%, transparent);
}

.rt-position-card.is-matured .rt-position-card-icon {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.22);
  box-shadow: none;
}

.rt-position-status {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.rt-position-status.is-active {
  background: color-mix(in srgb, var(--pos-accent) 14%, transparent);
  color: var(--pos-accent);
  border: 1px solid color-mix(in srgb, var(--pos-accent) 22%, transparent);
}

.rt-position-status.is-matured {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.rt-position-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.rt-position-metric--wide {
  grid-column: 1 / -1;
}

.rt-position-metric {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rt-position-card:hover .rt-position-metric {
  background: rgba(255, 255, 255, 0.04);
  border-color: color-mix(in srgb, var(--pos-accent) 14%, rgba(255, 255, 255, 0.05));
}

.rt-position-metric-label {
  display: block;
  color: var(--slate);
  font-size: 0.7rem;
  margin-bottom: 0.3rem;
}

.rt-position-metric-value {
  display: block;
  color: var(--ice);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 650;
  font-size: 0.9rem;
}

.rt-position-metric-value.is-profit { color: #10b981; }
.rt-position-metric-value.is-gold { color: var(--gold); }
.rt-position-metric-value.is-text {
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.35;
}

.rt-position-metric-unit {
  font-family: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate);
  margin-inline-start: 0.15rem;
}

.rt-position-progress {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.rt-position-progress .rt-progress,
.rt-position-progress-track {
  flex: 1;
  margin: 0;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.rt-position-card.is-active .rt-position-progress-track .rt-progress-bar {
  background: linear-gradient(90deg, var(--pos-accent), var(--pos-accent-2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--pos-accent) 35%, transparent);
}

.rt-position-progress-pct {
  color: var(--pos-accent);
  font-size: 0.74rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: end;
}

.rt-position-card.is-matured .rt-position-progress-pct {
  color: #10b981;
}

.rt-position-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  color: var(--slate);
  font-size: 0.74rem;
  line-height: 1.4;
  margin-top: 0.55rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.rt-position-footer-main {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ice);
  font-weight: 550;
}

.rt-position-footer-main i {
  color: var(--pos-accent);
  font-size: 0.78rem;
}

.rt-position-card.is-matured .rt-position-footer-main i {
  color: #10b981;
}

.rt-position-footer-sep {
  opacity: 0.5;
}

.rt-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.rt-stat-icon.green { background: rgba(5, 150, 105, 0.12); color: var(--emerald-light); }
.rt-stat-icon.gold { background: rgba(201, 162, 39, 0.12); color: var(--gold); }
.rt-stat-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.rt-stat-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.rt-stat-label {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.rt-stat-value {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ice);
  line-height: 1.2;
}

/* --- Modern Table --- */
.rt-table {
  width: 100%;
  border-collapse: collapse;
}

.rt-table thead th {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.rt-table tbody tr {
  transition: var(--transition);
}

.rt-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.rt-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.875rem;
  color: var(--ice);
  text-align: center;
}

/* --- Badge --- */
.rt-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.rt-badge.success { background: rgba(5, 150, 105, 0.12); color: var(--emerald-light); }
.rt-badge.warning { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rt-badge.danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.rt-badge.info { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }
.rt-badge.purple { background: rgba(139, 92, 246, 0.12); color: #c4b5fd; }
.rt-badge.gold { background: rgba(201, 162, 39, 0.12); color: var(--gold); }

/* --- Empty State --- */
.rt-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--slate);
}

.rt-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.4;
}

.rt-empty p {
  font-size: 0.95rem;
  margin: 0;
}

.rt-empty .rt-empty-cta,
.rt-empty a.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: auto;
  max-width: none;
  margin-top: 1rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 10px;
}

.rt-empty .rt-empty-cta i,
.rt-empty a.btn-gold i {
  font-size: 0.85rem;
  margin: 0;
  opacity: 1;
  display: inline;
}

/* --- Quick Action Buttons --- */
.rt-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ice);
}

.rt-action-btn i {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.rt-action-btn:hover {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  color: var(--ice);
}

.rt-action-btn.green i { background: rgba(5, 150, 105, 0.12); color: var(--emerald-light); }
.rt-action-btn.gold i { background: rgba(201, 162, 39, 0.12); color: var(--gold); }
.rt-action-btn.blue i { background: rgba(59, 130, 246, 0.12); color: var(--blue); }
.rt-action-btn.purple i { background: rgba(139, 92, 246, 0.12); color: var(--purple); }

.rt-action-btn:hover.green { border-color: rgba(5, 150, 105, 0.3); }
.rt-action-btn:hover.gold { border-color: rgba(201, 162, 39, 0.3); }
.rt-action-btn:hover.blue { border-color: rgba(59, 130, 246, 0.3); }
.rt-action-btn:hover.purple { border-color: rgba(139, 92, 246, 0.3); }

/* --- Crypto Option (Deposit) --- */
.crypto-option {
  transition: var(--transition);
  border-radius: 10px !important;
  font-weight: 500;
  color: var(--ice);
}
.crypto-option .crypto-option-code {
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}
.crypto-option .crypto-option-name {
  font-size: 0.65rem;
  line-height: 1.2;
  color: var(--slate);
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
}

.crypto-option:hover {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.crypto-option:hover .crypto-option-name {
  color: inherit;
}

.btn-check:checked + .crypto-option {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  border-color: var(--gold) !important;
  color: #080c18 !important;
  box-shadow: 0 4px 20px var(--gold-glow);
  transform: translateY(-2px);
}
.btn-check:checked + .crypto-option .crypto-option-code,
.btn-check:checked + .crypto-option .crypto-option-name,
.btn-check:checked + .crypto-option i {
  color: #080c18 !important;
}
[data-theme="light"] .btn-check:checked + .crypto-option {
  color: #1a1408 !important;
}
[data-theme="light"] .btn-check:checked + .crypto-option .crypto-option-code,
[data-theme="light"] .btn-check:checked + .crypto-option .crypto-option-name,
[data-theme="light"] .btn-check:checked + .crypto-option i {
  color: #1a1408 !important;
}

/* --- Step list (deposit) --- */
.rt-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: step-counter;
}

.rt-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: 0.75rem 0 0.75rem 2.5rem;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.5;
}

.rt-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* --- Page Header --- */
.rt-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.rt-page-header h4 {
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.rt-page-header h4 i {
  color: var(--gold);
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate); }

/* --- Selection --- */
::selection { background: var(--gold); color: var(--void); }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-number {
    order: -1;
    font-size: clamp(3rem, 10vw, 6rem);
  }
  .hero-content {
    max-width: 100%;
    animation: fadeInUp 0.8s ease-out;
  }
  .hero-actions {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .cta-box {
    padding: 3rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .rt-nav .nav-links {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: 3.5rem 0;
  }
  .hero-number {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
  .features {
    padding: 4rem 0;
  }
  .cta-section {
    padding: 4rem 0;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .stat-item::after {
    display: none;
  }
  .stat-value {
    font-size: 1.35rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn-gold,
  .hero-actions .btn-ghost {
    justify-content: center;
  }
  .auth-card {
    padding: 2rem 1.5rem;
  }
  .rt-nav .nav-actions {
    gap: 0.5rem;
  }
}

/* Dashboard / panel stat cards responsive */
.rt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.admin-main .rt-table-wrap table,
.user-main .rt-table-wrap table,
.rt-table-wrap > table,
.rt-table-wrap > .rt-table {
  width: max(100%, 640px);
  min-width: 640px;
  border-collapse: collapse;
}
.rt-table-wrap th,
.rt-table-wrap td {
  white-space: nowrap;
  vertical-align: middle;
  text-align: center;
}

/* Admin + user panel data tables: center headers and cells */
.admin-main table th,
.admin-main table td,
.user-main table th,
.user-main table td {
  text-align: center !important;
}
.admin-main table td > div[style*="display: flex"],
.admin-main table td > div[style*="display:flex"],
.user-main table td > div[style*="display: flex"],
.user-main table td > div[style*="display:flex"] {
  justify-content: center;
}

.rt-pagination {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.rt-pagination__link {
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--slate);
  border: 1px solid var(--border);
  line-height: 1.2;
}
.rt-pagination__link:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.rt-pagination__link.is-active {
  background: var(--gold);
  color: var(--void);
  font-weight: 600;
  border-color: var(--gold);
}

/* Avatar initials — must use body font (Sora lacks Persian/Arabic glyphs) */
.rt-avatar-initial,
.user-topbar .avatar,
.admin-sidebar .user-pill .avatar,
.profile-avatar {
  font-family: var(--font-body, 'Inter', 'Vazirmatn', 'Noto Sans Arabic', system-ui, sans-serif) !important;
  line-height: 1;
  text-transform: none;
}

@media (max-width: 992px) {
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .admin-main,
  .user-main {
    overflow-x: hidden;
  }
  .admin-main .rt-card,
  .user-main .rt-card,
  .admin-main .rt-stat-card,
  .user-main .rt-stat-card {
    max-width: 100%;
  }
  .admin-main .rt-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .user-main .rt-card {
    overflow-x: visible;
  }
  /* Scroll wide tables only inside wrappers — not whole cards (clips forms on mobile) */
  .admin-main .rt-table-wrap,
  .user-main .rt-table-wrap,
  .admin-main .table-responsive,
  .user-main .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .admin-main table,
  .user-main table,
  .rt-table {
    display: table !important;
    width: max(100%, 640px);
    min-width: 640px;
    border-collapse: collapse;
  }
  .admin-main th,
  .admin-main td,
  .user-main th,
  .user-main td,
  .rt-table th,
  .rt-table td {
    white-space: nowrap;
    vertical-align: middle;
  }
}

@media (max-width: 768px) {
  [style*="grid-template-columns: 1fr 2fr"],
  [style*="grid-template-columns: 2fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .social-row,
  [style*="grid-template-columns:1.2fr 1.8fr 1fr auto"],
  [style*="grid-template-columns: 1.2fr 1.8fr 1fr auto"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 576px) {
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .admin-main,
  .user-main {
    word-wrap: break-word;
    overflow-wrap: anywhere;
  }
  .user-main .crypto-option-code,
  .user-main .crypto-option-name,
  .user-main .plan-coin-opt span {
    overflow-wrap: normal;
    word-break: keep-all;
    white-space: nowrap;
  }
  .admin-main pre,
  .user-main pre {
    max-width: 100%;
    overflow-x: auto;
  }
}

/* =========================================================
   LIGHT MODE
   ========================================================= */
[data-theme="light"] {
  --void: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --surface-3: #e9ecef;
  --ice: #1a1d23;
  /* Darker muted text for readable contrast on light surfaces */
  --slate: #475569;
  --border: #e5e7eb;
  --border-light: rgba(0, 0, 0, 0.06);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] body {
  background: var(--void);
  color: var(--ice);
}

[data-theme="light"] .rt-nav {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: var(--border);
}

[data-theme="light"] .rt-nav .nav-links a:hover {
  background: rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 60% 50% at 10% 50%, rgba(201, 162, 39, 0.05), transparent),
    radial-gradient(ellipse 50% 60% at 90% 40%, rgba(5, 150, 105, 0.04), transparent);
}

[data-theme="light"] .hero::after {
  background-image:
    linear-gradient(rgba(201, 162, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 39, 0.04) 1px, transparent 1px);
}

[data-theme="light"] .stats-bar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--void) 100%);
}

[data-theme="light"] .feature-card,
[data-theme="light"] .rt-card,
[data-theme="light"] .rt-stat-card,
[data-theme="light"] .faq-item {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .auth-page::before {
  background:
    radial-gradient(ellipse 50% 50% at 20% 30%, rgba(201, 162, 39, 0.04), transparent),
    radial-gradient(ellipse 50% 50% at 80% 70%, rgba(5, 150, 105, 0.03), transparent);
}

[data-theme="light"] .auth-card {
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-input {
  background: var(--void);
  border-color: var(--border);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(201, 162, 39, 0.06);
}

[data-theme="light"] .rt-footer {
  background: var(--surface);
}

[data-theme="light"] .rt-footer .footer-links a {
  color: var(--slate);
}

[data-theme="light"] ::-webkit-scrollbar-track { background: var(--surface); }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: var(--border); }
[data-theme="light"] ::selection { background: var(--gold); color: #fff; }

/* --- Light mode: Admin/User Panel --- */
[data-theme="light"] .admin-sidebar,
[data-theme="light"] .user-sidebar {
  background: #ffffff;
  border-right-color: #e5e7eb;
}
[data-theme="light"] .admin-sidebar .nav-item a,
[data-theme="light"] .user-sidebar .nav-item a {
  color: #6b7280;
}
[data-theme="light"] .admin-sidebar .nav-item a:hover,
[data-theme="light"] .user-sidebar .nav-item a:hover,
[data-theme="light"] .admin-sidebar .nav-item a.active,
[data-theme="light"] .user-sidebar .nav-item a.active {
  color: #1a1d23;
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="light"] .admin-sidebar .nav-item a.active,
[data-theme="light"] .user-sidebar .nav-item a.active {
  color: #c9a227;
}
[data-theme="light"] .admin-sidebar .sidebar-brand,
[data-theme="light"] .user-sidebar .sidebar-brand {
  border-bottom-color: #e5e7eb;
}
[data-theme="light"] .admin-sidebar .sidebar-brand a,
[data-theme="light"] .user-sidebar .sidebar-brand a {
  color: #1a1d23;
}
[data-theme="light"] .admin-sidebar .sidebar-footer,
[data-theme="light"] .user-sidebar .sidebar-footer {
  border-top-color: #e5e7eb;
}
[data-theme="light"] .admin-topbar,
[data-theme="light"] .user-topbar {
  border-bottom-color: #e5e7eb;
}
[data-theme="light"] .admin-topbar h1,
[data-theme="light"] .user-topbar h1 {
  color: #1a1d23;
}
[data-theme="light"] .rt-card {
  background: #ffffff;
  border-color: #e5e7eb;
}
[data-theme="light"] .hamburger-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: #e5e7eb;
  color: #1a1d23;
}
[data-theme="light"] .mobile-brand {
  color: #1a1d23;
}
[data-theme="light"] .sidebar-overlay {
  background: rgba(0, 0, 0, 0.3);
}
/* =========================================================
   MOBILE BOTTOM NAVIGATION
   ========================================================= */
.rt-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 0.5rem 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.rt-bottom-nav .bottom-nav-list {
  display: flex;
  justify-content: space-around;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rt-bottom-nav .bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.4rem 0.75rem;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
}

.rt-bottom-nav .bottom-nav-item a i {
  font-size: 1.1rem;
  transition: var(--transition);
}

.rt-bottom-nav .bottom-nav-item a:hover,
.rt-bottom-nav .bottom-nav-item a.active {
  color: var(--gold);
}

.rt-bottom-nav .bottom-nav-item a.active {
  background: rgba(201, 162, 39, 0.08);
}

@media (max-width: 768px) {
  .rt-bottom-nav { display: block; }
  body { padding-bottom: 70px; }
  .rt-footer { padding-bottom: 5rem; }
}

/* =========================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================= */
.rt-toast-container {
  position: fixed;
  top: 1rem;
  inset-inline-end: 1rem;
  inset-inline-start: auto;
  right: auto;
  left: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.rt-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px);
  min-width: 280px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn 0.32s ease-out;
  font-size: 0.875rem;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-8px) translateX(12px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}
html[dir="rtl"] .rt-toast {
  animation-name: toastInRtl;
}
@keyframes toastInRtl {
  from { opacity: 0; transform: translateY(-8px) translateX(-12px); }
  to { opacity: 1; transform: translateY(0) translateX(0); }
}

.rt-toast.success { border-left: 3px solid var(--emerald); }
.rt-toast.error { border-left: 3px solid #ef4444; }
.rt-toast.warning { border-left: 3px solid #f59e0b; }
.rt-toast.info { border-left: 3px solid var(--blue); }

.rt-toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.rt-toast.success .toast-icon { background: rgba(5, 150, 105, 0.12); color: var(--emerald-light); }
.rt-toast.error .toast-icon { background: rgba(239, 68, 68, 0.12); color: #fca5a5; }
.rt-toast.warning .toast-icon { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.rt-toast.info .toast-icon { background: rgba(59, 130, 246, 0.12); color: #93c5fd; }

.rt-toast .toast-message { flex: 1; color: var(--ice); }
.rt-toast .toast-close {
  background: none; border: none; color: var(--slate); cursor: pointer;
  padding: 0.25rem; font-size: 0.75rem; transition: var(--transition);
}
.rt-toast .toast-close:hover { color: var(--ice); }

/* =========================================================
   SKELETON LOADING
   ========================================================= */
.rt-skeleton {
  background: linear-gradient(90deg, var(--border) 25%, rgba(255,255,255,0.06) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}

.rt-skeleton-text { height: 14px; margin-bottom: 0.5rem; }
.rt-skeleton-text.short { width: 60%; }
.rt-skeleton-text.medium { width: 80%; }
.rt-skeleton-title { height: 24px; width: 50%; margin-bottom: 1rem; }
.rt-skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; }
.rt-skeleton-card { height: 120px; border-radius: 16px; }
.rt-skeleton-stat { height: 100px; border-radius: 16px; }

/* =========================================================
   MODAL / DIALOG
   ========================================================= */
.rt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.rt-modal-overlay.open { display: flex; }

.rt-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  animation: scale-in 0.2s ease-out;
}

.rt-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 1.75rem 0;
}

.rt-modal-header h3 {
  font-family: 'Sora', 'Vazirmatn', sans-serif;
  font-weight: 600; font-size: 1.1rem; margin: 0;
}

.rt-modal-close {
  width: 32px; height: 32px; border-radius: 8px; border: none;
  background: rgba(255,255,255,0.06); color: var(--slate); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.rt-modal-close:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }

.rt-modal-body { padding: 1.5rem 1.75rem; }
.rt-modal-footer {
  display: flex; gap: 0.75rem; justify-content: flex-end;
  padding: 0 1.75rem 1.5rem;
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */
.rt-progress {
  height: 6px; background: var(--border); border-radius: 3px; overflow: hidden;
}
.rt-progress-bar {
  height: 100%; border-radius: 3px; transition: width 0.5s ease;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.rt-progress-bar.green { background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); }
.rt-progress-bar.blue { background: linear-gradient(90deg, var(--blue), #60a5fa); }

/* =========================================================
   TABS
   ========================================================= */
.rt-tabs {
  display: flex; gap: 0.25rem; border-bottom: 1px solid var(--border);
  padding-bottom: 0; margin-bottom: 1.5rem;
  overflow-x: auto;
}
.rt-tab {
  padding: 0.75rem 1.25rem; font-size: 0.85rem; font-weight: 500;
  color: var(--slate); text-decoration: none; border: none; background: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: var(--transition); white-space: nowrap; font-family: inherit;
}
.rt-tab:hover { color: var(--ice); }
.rt-tab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* =========================================================
   TOOLTIP
   ========================================================= */
.rt-tooltip { position: relative; }
.rt-tooltip::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  padding: 0.4rem 0.75rem; border-radius: 6px; background: var(--surface-3);
  color: var(--ice); font-size: 0.75rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.rt-tooltip:hover::after { opacity: 1; }

/* =========================================================
   PREMIUM PLAN CARDS
   ========================================================= */
.rt-plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.rt-plan-card {
  position: relative;
  background: linear-gradient(165deg, rgba(15, 20, 32, 0.95) 0%, rgba(8, 12, 24, 0.98) 100%);
  border: 1px solid color-mix(in srgb, var(--plan-accent) 35%, transparent);
  border-radius: 16px;
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.rt-plan-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -20%, var(--plan-glow), transparent 55%);
  pointer-events: none;
}

.rt-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px color-mix(in srgb, var(--plan-accent) 20%, transparent);
}

.rt-plan-card.is-popular {
  border-color: color-mix(in srgb, var(--plan-accent) 70%, #c9a227);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--plan-accent) 40%, transparent),
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 48px var(--plan-glow);
  transform: translateY(-2px) scale(1.02);
  z-index: 1;
}

.rt-plan-card.is-popular::after {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--plan-accent), var(--plan-accent-2), transparent);
  z-index: 2;
}

.rt-plan-card.is-popular:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--plan-accent) 50%, transparent),
    0 22px 48px rgba(0, 0, 0, 0.4),
    0 0 56px var(--plan-glow);
}

.rt-plan-card.is-popular .rt-plan-icon-wrap {
  background: linear-gradient(145deg, color-mix(in srgb, var(--plan-accent) 28%, transparent), color-mix(in srgb, var(--plan-accent-2) 12%, transparent));
  border-color: color-mix(in srgb, var(--plan-accent) 45%, transparent);
  box-shadow: 0 8px 24px var(--plan-glow);
}

.rt-plan-card.is-popular .rt-plan-roi-value {
  background: linear-gradient(135deg, var(--ice), var(--plan-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rt-plan-card.is-popular .rt-plan-cta {
  background: linear-gradient(135deg, var(--plan-accent), var(--plan-accent-2));
  border-color: transparent;
  color: #080c18;
  font-weight: 700;
  box-shadow: 0 8px 22px var(--plan-glow);
}

.rt-plan-featured-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-start: 0.85rem;
  inset-inline-end: auto;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: calc(100% - 5.5rem);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--plan-accent) 92%, #fff), var(--plan-accent-2));
  color: #080c18;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  box-shadow: 0 6px 18px var(--plan-glow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rt-plan-featured-badge i {
  font-size: 0.62rem;
  color: #080c18;
  flex-shrink: 0;
}

/* legacy class kept for safety */
.rt-plan-ribbon {
  display: none;
}

.rt-plan-duration-badge {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 0.85rem;
  inset-inline-start: auto;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--plan-accent) 28%, transparent),
    color-mix(in srgb, var(--plan-accent-2) 14%, transparent)
  );
  color: var(--plan-accent);
  border: 1px solid color-mix(in srgb, var(--plan-accent) 52%, transparent);
  box-shadow:
    0 4px 14px color-mix(in srgb, var(--plan-accent) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  z-index: 3;
  line-height: 1.15;
  white-space: nowrap;
}

.rt-plan-card.is-popular .rt-plan-duration-badge {
  background: linear-gradient(135deg, color-mix(in srgb, var(--plan-accent) 38%, transparent), color-mix(in srgb, var(--plan-accent-2) 20%, transparent));
  box-shadow:
    0 6px 18px var(--plan-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.rt-plan-card.is-popular .rt-plan-duration-badge,
.rt-plan-card:has(.rt-plan-featured-badge) .rt-plan-duration-badge {
  top: 0.85rem;
  /* Keep duration on the end side — never move into the VIP slot */
  inset-inline-end: 0.85rem;
  inset-inline-start: auto;
}

.rt-plan-card:has(.rt-plan-featured-badge) {
  padding-top: 2.4rem;
}

.rt-plan-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: color-mix(in srgb, var(--plan-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--plan-accent) 25%, transparent);
  color: var(--plan-accent);
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}

.rt-plan-name {
  text-align: center;
  margin: 0 0 0.5rem;
  font-family: var(--font-heading, 'Sora', sans-serif);
  font-size: 1.05rem;
  color: var(--ice);
  position: relative;
  z-index: 1;
}

.rt-plan-roi {
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.rt-plan-roi-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ice);
  line-height: 1.1;
}

.rt-plan-roi-label {
  display: block;
  font-size: 0.72rem;
  color: var(--slate);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rt-plan-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

.rt-plan-meta li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--slate);
}

.rt-plan-meta li strong {
  color: var(--ice);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
}
.rt-plan-meta li strong.is-text {
  font-family: inherit;
  font-weight: 650;
  font-size: 0.8rem;
}
html[dir="rtl"] .rt-plan-meta li strong.is-text,
html[lang="fa"] .rt-plan-meta li strong.is-text {
  font-family: 'Vazirmatn', 'Tahoma', sans-serif;
}

.rt-plan-meta .text-emerald { color: #10b981 !important; }

.rt-plan-meta li.rt-plan-meta-profit {
  margin: 0.15rem 0 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.22);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.05));
  border-bottom: none;
}

.rt-plan-meta li.rt-plan-meta-profit span {
  color: var(--ice);
  font-weight: 700;
  font-size: 0.82rem;
}

.rt-plan-meta li.rt-plan-meta-profit .rt-plan-profit-value {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.rt-plan-payout-note {
    margin: 0 0 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    font-size: 0.72rem;
    line-height: 1.5;
    color: var(--slate);
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.18);
}

.rt-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  color: var(--slate);
  position: relative;
  z-index: 1;
}

.rt-plan-features li {
  padding: 0.2rem 0;
}

.rt-plan-features i {
  color: var(--plan-accent);
  margin-inline-end: 0.35rem;
  font-size: 0.7rem;
}

.rt-plan-cta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--plan-accent);
  background: transparent;
  color: var(--plan-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  z-index: 1;
  font-family: inherit;
}

.rt-plan-cta:hover {
  background: linear-gradient(135deg, var(--plan-accent), var(--plan-accent-2));
  color: #080c18;
  box-shadow: 0 8px 24px var(--plan-glow);
}

/* Hide number input spinners (Chrome / Edge / Safari / Firefox) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
}
input[type="number"] {
  -moz-appearance: textfield !important;
  appearance: textfield !important;
}

/* Select: hide native arrow, custom chevron with safe spacing */
select,
select.form-select,
select.settings-select,
select.rt-filter-select,
select.lottery-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-color: var(--void) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 1rem center !important;
  background-size: 0.7rem !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  padding-left: 0.85rem !important;
  padding-right: 2.75rem !important;
}
select::-ms-expand {
  display: none !important;
}
html[dir="rtl"] select,
html[dir="rtl"] select.form-select,
html[dir="rtl"] select.settings-select,
html[dir="rtl"] select.rt-filter-select,
html[dir="rtl"] select.lottery-input {
  background-position: left 1rem center !important;
  padding-left: 2.75rem !important;
  padding-right: 0.85rem !important;
}
[data-theme="light"] select,
[data-theme="light"] select.form-select,
[data-theme="light"] select.settings-select,
[data-theme="light"] select.rt-filter-select,
[data-theme="light"] select.lottery-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") !important;
}

/* Never put chevrons on text / number / file inputs */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
textarea {
  background-image: none !important;
}

.support-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    min-width: 4.5rem;
    text-align: center;
    box-sizing: border-box;
}

.support-ticket-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rt-field-error {
    display: block;
    margin-top: 0.35rem;
    color: #ef4444;
    font-size: 0.78rem;
    line-height: 1.4;
}

input.is-invalid,
textarea.is-invalid,
select.is-invalid,
.form-control.is-invalid,
.form-input.is-invalid,
.settings-input.is-invalid,
.settings-select.is-invalid {
    border-color: rgba(239, 68, 68, 0.65) !important;
    box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.15);
}

textarea:not(.no-resize):not([data-no-resize]) {
  resize: vertical;
  min-height: 5rem;
  max-height: min(40vh, 28rem);
  overflow: auto;
  contain: layout style;
}

/* Global enable toggles (admin forms) */
.settings-switch {
  appearance: none;
  -webkit-appearance: none;
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  position: relative;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  vertical-align: middle;
}
.settings-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--slate);
  transition: 0.2s;
}
.settings-switch:checked {
  background: rgba(201, 162, 39, 0.35);
  border-color: var(--gold);
}
.settings-switch:checked::after {
  inset-inline-start: 20px;
  background: var(--gold);
}

/* Tom Select caret — always inset inside the control (never on the border) */
.ts-wrapper.single .ts-control {
  position: relative !important;
  padding-inline-end: 2.75rem !important;
  padding-inline-start: 0.85rem !important;
}
.ts-wrapper.single .ts-control::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  top: 50% !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  border-style: solid !important;
  border-width: 5px 5px 0 5px !important;
  border-color: #64748b transparent transparent transparent !important;
  pointer-events: none !important;
  transform: translateY(-40%) !important;
  right: 1.05rem !important;
  left: auto !important;
  inset-inline-end: 1.05rem !important;
  inset-inline-start: auto !important;
  z-index: 2;
}
html[dir="rtl"] .ts-wrapper.single .ts-control {
  padding-inline-end: 0.85rem !important;
  padding-inline-start: 2.75rem !important;
}
html[dir="rtl"] .ts-wrapper.single .ts-control::after {
  /* physical left in RTL (arrow on the left side) */
  right: auto !important;
  left: 1.05rem !important;
  inset-inline-start: auto !important;
  inset-inline-end: 1.05rem !important;
}
[data-theme="light"] .ts-wrapper.single .ts-control::after {
  border-color: #6b7280 transparent transparent transparent !important;
}

/* Lang dropdown / topbar action spacing */
.lang-dropdown-wrap { position: relative; }

.lang-dropdown-btn,
.admin-topbar-actions button:not(.theme-toggle) {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.lang-dropdown-btn:hover,
.admin-topbar-actions button:not(.theme-toggle):hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lang-dropdown-btn,
.admin-topbar-actions button:not(.theme-toggle) {
  padding-inline-end: 1.1rem !important;
  padding-inline-start: 0.85rem !important;
}

.lang-dropdown-btn .fa-chevron-down,
.admin-topbar-actions .fa-chevron-down {
  margin-inline-start: 0.5rem;
  margin-inline-end: 0;
  font-size: 0.55rem;
  opacity: 0.55;
  flex-shrink: 0;
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  inset-inline-start: auto;
  min-width: 180px;
  max-width: min(260px, calc(100vw - 1.25rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.lang-dropdown-wrap.open .lang-dropdown-menu { display: block; }

.lang-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
  color: var(--slate);
  text-decoration: none;
  font-size: 0.8rem;
  transition: var(--transition);
}

.lang-dropdown-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--ice); }
.lang-dropdown-item.active { color: var(--gold); background: rgba(201, 162, 39, 0.08); font-weight: 600; }
.lang-dropdown-item .flag { font-size: 1rem; width: 22px; text-align: center; }
.lang-flag {
  display: inline-block;
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.lang-dropdown-item .name { flex: 1; }
.lang-dropdown-item .check { font-size: 0.6rem; opacity: 0; }
.lang-dropdown-item.active .check { opacity: 1; color: var(--gold); }

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--slate);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* Light mode: Admin/User panels — expanded coverage */
[data-theme="light"] .admin-main,
[data-theme="light"] .user-main {
  background: var(--void);
  color: var(--ice);
}

[data-theme="light"] .admin-sidebar,
[data-theme="light"] .user-sidebar {
  border-inline-end-color: var(--border);
}

[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .form-select,
[data-theme="light"] .form-control {
  background-color: var(--void);
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .table,
[data-theme="light"] .rt-table,
[data-theme="light"] .rt-table thead th,
[data-theme="light"] .rt-table tbody td {
  color: var(--ice);
  border-color: var(--border);
}

[data-theme="light"] .card,
[data-theme="light"] .card-body,
[data-theme="light"] .card-header,
[data-theme="light"] .card-footer {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .lang-dropdown-btn,
[data-theme="light"] .theme-toggle,
[data-theme="light"] .admin-topbar-actions button:not(.theme-toggle) {
  background: rgba(0, 0, 0, 0.03);
  border-color: var(--border);
  color: var(--slate);
}

[data-theme="light"] .lang-dropdown-menu {
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .lang-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--ice);
}

[data-theme="light"] .user-topbar .avatar,
[data-theme="light"] .admin-sidebar .user-pill .avatar {
  background: rgba(201, 162, 39, 0.12);
}

[data-theme="light"] .settings-tabs a { color: var(--slate); }
[data-theme="light"] .settings-tabs a:hover { color: var(--ice); background: rgba(0,0,0,0.04); }
[data-theme="light"] .settings-tabs a.active { color: #ffffff; background: var(--gold); }
[data-theme="light"] .chip-picker label { background: var(--surface); color: var(--slate); }
[data-theme="light"] .chip-picker label.is-on { background: rgba(201,162,39,0.12); color: #92680a; }
[data-theme="light"] .settings-note { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); color: #2563eb; }
[data-theme="light"] .wallet-addr-card,
[data-theme="light"] .ref-level-card { background: var(--surface); }
[data-theme="light"] .admin-topbar h1,
[data-theme="light"] .user-topbar h1 { color: var(--ice); }
[data-theme="light"] .rt-card h3,
[data-theme="light"] .rt-card-title { color: var(--ice); }
[data-theme="light"] .table td,
[data-theme="light"] .table th { color: var(--ice); }

/* Bootstrap overrides for theme toggle */
[data-theme="light"] body,
[data-theme="dark"] body,
html[data-theme="light"] body,
html[data-theme="dark"] body {
  background-color: var(--void) !important;
  color: var(--ice) !important;
}

[data-theme="light"] .text-muted,
[data-theme="light"] .form-text {
  color: var(--slate) !important;
}

[data-theme="light"] .lottery-input,
[data-theme="light"] .settings-input,
[data-theme="light"] .settings-select {
  background: var(--void);
  border-color: var(--border);
  color: var(--ice);
}

[data-theme="light"] .lottery-section-title,
[data-theme="light"] .lottery-stat-value,
[data-theme="light"] .banner-add-header strong {
  color: var(--ice);
}

[data-theme="light"] .lottery-stat {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .admin-sidebar .nav-item a,
[data-theme="light"] .user-sidebar .nav-item a {
  color: var(--slate);
}

[data-theme="light"] .admin-sidebar .nav-item a.active,
[data-theme="light"] .user-sidebar .nav-item a.active {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.1);
}

[data-theme="light"] .ts-wrapper .ts-control,
[data-theme="light"] .ts-dropdown {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--ice) !important;
}

[data-theme="light"] .ts-dropdown .option {
  color: var(--ice) !important;
}

[data-theme="light"] .rt-plan-card {
  background: var(--surface) !important;
  color: var(--ice);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .rt-plan-meta li {
  border-bottom-color: rgba(15, 23, 42, 0.08);
  color: #334155;
}

[data-theme="light"] .rt-plan-meta li strong,
[data-theme="light"] .rt-plan-name,
[data-theme="light"] .rt-plan-roi-value {
  color: var(--ice);
}

[data-theme="light"] .rt-plan-roi-label,
[data-theme="light"] .rt-plan-features {
  color: #334155;
}

[data-theme="light"] .rt-plan-meta li span,
[data-theme="light"] .settings-hint,
[data-theme="light"] .rt-empty,
[data-theme="light"] .rt-empty p {
  color: #334155 !important;
  opacity: 1;
}

[data-theme="light"] .rt-plan-meta li.rt-plan-meta-profit {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(16, 185, 129, 0.06));
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .rt-plan-meta li.rt-plan-meta-profit span {
  color: #065f46 !important;
}

[data-theme="light"] .rt-plan-meta li.rt-plan-meta-profit .rt-plan-profit-value {
  color: #059669 !important;
  text-shadow: none;
}

/* Solid gold / emerald / blue buttons: always white label (incl. Bootstrap .btn) */
.btn-gold,
.btn.btn-gold,
a.btn-gold,
button.btn-gold,
.btn-emerald,
.btn.btn-emerald,
a.btn-emerald,
button.btn-emerald,
.btn-blue,
.btn.btn-blue,
a.btn-blue,
button.btn-blue {
  color: #ffffff !important;
}

.btn-gold:hover,
.btn.btn-gold:hover,
a.btn-gold:hover,
button.btn-gold:hover,
.btn-gold:focus,
.btn.btn-gold:focus,
.btn-emerald:hover,
.btn.btn-emerald:hover,
.btn-blue:hover,
.btn.btn-blue:hover {
  color: #ffffff !important;
}

/* Gold-filled tabs / active language switcher */
.settings-tabs a.active,
.lang-switcher a.active {
  color: #ffffff !important;
}

