/* ============================================================
   CLICK â€” Investment Dashboard
   Style v2.0 â€” Luxury Dark Finance Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&family=DM+Mono:wght@400;500&display=swap');

/* â”€â”€â”€ Design Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
  /* Colors */
  --gold:       #d4af37;
  --accent-gold: #f3c623;
  --green:      #22c55e;
  --accent-green: #10b981;
  --blue:       #3b82f6;
  --red:        #ef4444;

  /* Spacing & Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  24px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --dur-fast:   0.15s;
  --dur-mid:    0.3s;
  --dur-slow:   0.5s;

  /* Premium Gradients */
  --grad-blue:  linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --grad-gold:  linear-gradient(135deg, #f3c623 0%, #b45309 100%);

  /* Dark Theme (Default) */
  --bg-main:       #06091e;
  --bg-sidebar:    #0a0f2b;
  --bg-elevated:   #121a44;
  --glass-bg:      rgba(255, 255, 255, 0.03);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --text-main:     #ffffff;
  --text-secondary: #a0aec0;
  --text-primary:  #ffffff;
  --text-muted:    #64748b;
  --blue-dim:      rgba(59, 130, 246, 0.15);
  --green-dim:     rgba(34, 197, 94, 0.15);
  --gold-dim:      rgba(212, 175, 55, 0.15);
  --red-dim:       rgba(239, 68, 68, 0.15);
  --sidebar-w: 260px;
}

body.light-theme {
  --bg-main:       #f8fafc;
  --bg-sidebar:    #ffffff;
  --bg-elevated:   #ffffff;
  --glass-bg:      #ffffff;
  --glass-border:  rgba(15, 23, 42, 0.08);
  --text-main:     #334155;
  --text-secondary: #475569;
  --text-primary:  #0f172a;
  --text-muted:    #64748b;
  --blue-dim:      rgba(37, 99, 235, 0.08);
  --green-dim:     rgba(22, 163, 74, 0.08);
  --gold-dim:      rgba(217, 119, 6, 0.08);
  --red-dim:       rgba(220, 38, 38, 0.08);

  /* High-contrast accessible colors for premium light mode */
  --gold:          #c2410c;
  --accent-gold:   #b45309;
  --green:         #15803d;
  --accent-green:  #047857;
  --blue:          #1d4ed8;
  --red:           #b91c1c;

  /* Premium Gradients */
  --grad-blue:     linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  --grad-gold:     linear-gradient(135deg, #d97706 0%, #7c2d12 100%);
}

/* â”€â”€â”€ Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; max-width: 100vw; }

/* Custom Premium Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--glass-border);
  border-radius: 9999px;
  border: 2px solid var(--bg-main);
  transition: background var(--dur-fast) var(--ease-out);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Floating background glowing blobs */
body::before, body::after {
  content: "";
  position: fixed;
  width: 45vw;
  height: 45vw;
  min-width: 300px;
  min-height: 300px;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(140px);
  opacity: 0.08;
  will-change: transform;
  animation: floatBlobs 25s infinite alternate ease-in-out;
}
body::before {
  background: radial-gradient(circle, var(--blue) 0%, transparent 80%);
  top: -10%;
  left: -10%;
}
body::after {
  background: radial-gradient(circle, var(--gold) 0%, transparent 80%);
  bottom: -10%;
  right: -10%;
  animation-delay: -12s;
}

body.light-theme::before, body.light-theme::after {
  opacity: 0.04;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, 40px) scale(1.15);
  }
  100% {
    transform: translate(-40px, 80px) scale(0.9);
  }
}

h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color var(--dur-fast);
}
a:hover { color: #7aa8ff; }

code, .monospace {
  font-family: 'DM Mono', monospace;
  font-size: 0.875em;
}

/* â”€â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* â”€â”€â”€ Background Ambiance â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.background-effect {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.background-effect::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(79, 137, 255, 0.06) 0%, transparent 70%);
  animation: drift-a 20s ease-in-out infinite alternate;
}
.background-effect::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(48, 217, 148, 0.04) 0%, transparent 70%);
  animation: drift-b 25s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(4%, 6%) scale(1.08); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-5%, -4%) scale(1.1); }
}

.watermark-pattern {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('../assets/click_favicon_1779295892626.png');
  background-repeat: repeat;
  background-size: 80px 80px;
  background-position: 0 0;
  opacity: 0.04;
  /* Filter to make it a dark blue tone */
  filter: sepia(100%) hue-rotate(190deg) saturate(300%) brightness(0.6) contrast(1.2);
}

body.light-theme .watermark-pattern {
  opacity: 0.05;
  filter: sepia(100%) hue-rotate(190deg) saturate(200%) brightness(0.8);
}

/* â”€â”€â”€ Glass Panels â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  will-change: transform, box-shadow, border-color;
  transition: transform var(--dur-mid) var(--ease-out), 
              box-shadow var(--dur-mid) var(--ease-out), 
              border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

/* â”€â”€â”€ View Containers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.view-container {
  display: none;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
}
.view-container.active { display: flex; }

/* â”€â”€â”€ Auth View â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#auth-view {
  position: relative;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  animation: fadeUp var(--dur-slow) var(--ease-out) both;
}

/* Auth Back Button Premium Styling */
#btn-auth-back {
  background: var(--glass-bg) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--glass-border) !important;
  transition: all var(--dur-mid) var(--ease-out) !important;
}
#btn-auth-back:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-lang-bar {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.auth-panel {
  width: 100%;
  max-width: 420px;
  padding: 2.75rem 2.5rem;
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  justify-content: center;
}
.auth-logo i { font-size: 1.5rem; color: var(--gold); }
.auth-logo h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* â”€â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.input-group {
  margin-bottom: 1.25rem;
}
.input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  appearance: none;
  -webkit-appearance: none;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(79, 137, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(79, 137, 255, 0.12);
}
input::placeholder,
textarea::placeholder { color: var(--text-muted); }

select option { background: var(--bg-elevated); color: var(--text-primary); }
textarea { resize: vertical; line-height: 1.6; }

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
button {
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border: none;
  transition: all var(--dur-mid) var(--ease-out);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--grad-blue);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 1.25rem;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn-primary:hover::after { background: rgba(255,255,255,0.07); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(79, 137, 255, 0.35); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }

.btn-secondary {
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.btn-action {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(79, 137, 255, 0.2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}
.btn-action:hover { background: rgba(79, 137, 255, 0.25); }

/* â”€â”€â”€ Inline OTP Email Verification â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn-send-otp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    height: 44px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background: var(--grad-blue);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: none;
    flex-shrink: 0;
    transition: all var(--dur-mid) var(--ease-out);
}
.btn-send-otp:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(79, 137, 255, 0.4);
}
.btn-send-otp:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.btn-verify-otp {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 1rem;
    height: 44px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    transition: all var(--dur-mid) var(--ease-out);
}
.btn-verify-otp:hover:not(:disabled) {
    background: rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}
.btn-verify-otp:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.otp-inline-input {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 8px;
    font-weight: 700;
    padding: 0.5rem 0.5rem !important;
    height: 44px;
    font-family: 'Space Mono', 'Courier New', monospace !important;
    border-radius: var(--radius-sm);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.otp-inline-input:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

/* Light theme overrides for inline OTP */
body.light-theme .btn-send-otp {
    color: #fff;
}
body.light-theme .btn-verify-otp {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.4);
    color: #059669;
}
body.light-theme .otp-inline-input {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #0f172a !important;
}
body.light-theme .otp-inline-input:focus {
    border-color: #059669 !important;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15) !important;
}

.switch-form {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* â”€â”€â”€ Language Switcher â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.language-switcher-select {
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--dur-fast);
}
.language-switcher-select:hover { border-color: var(--glass-border-hover); }

/* â”€â”€â”€ App Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#app-view { display: none; flex-direction: row; }
#app-view.active { display: flex; }

/* â”€â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  height: 100vh;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  border-radius: 0;
  border-right: 1px solid var(--glass-border);
  border-top: none;
  border-left: none;
  border-bottom: none;
  overflow-y: auto;
  z-index: 10;
}

.sidebar .logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0 0.5rem;
  margin-bottom: 2rem;
}
.sidebar .logo i { color: var(--gold); font-size: 1.1rem; }
.sidebar .logo h1 {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0 1.5rem;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 1.5rem;
  gap: 0.5rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 2px solid var(--glass-border);
  overflow: hidden;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.avatar:hover { border-color: var(--gold); transform: scale(1.04); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

#nav-user-name {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

.badge {
  background: var(--blue-dim);
  color: var(--blue);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid rgba(79, 137, 255, 0.2);
}

/* Nav Links */
nav ul { list-style: none; }
nav li { margin-bottom: 2px; }
nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: background var(--dur-fast), color var(--dur-fast);
}
nav a i { width: 16px; text-align: center; font-size: 0.875rem; flex-shrink: 0; }
nav a:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
nav a.active {
  background: var(--blue-dim);
  color: var(--blue);
  border: 1px solid rgba(79, 137, 255, 0.15);
}
nav a.active i { color: var(--blue); }

/* Mobile Hamburger (hidden on desktop) */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 200;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 15;
  backdrop-filter: blur(4px);
}

.bottom-action { margin-top: auto; padding-top: 1.5rem; }
.bottom-action .btn-secondary {
  width: 100%;
  border: none;
  background: rgba(255, 91, 91, 0.08);
  color: var(--red);
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.7rem;
}
.bottom-action .btn-secondary:hover {
  background: rgba(255, 91, 91, 0.15);
  color: #ff8080;
}

/* â”€â”€â”€ Main Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 2rem 2.5rem;
  overflow-y: auto;
  height: 100vh;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--glass-border);
}
header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* â”€â”€â”€ Content Sections (animated in) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.content-section {
  display: none;
  animation: fadeUp 0.35s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* â”€â”€â”€ Stats Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-out);
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--dur-mid);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }
.stat-card:hover::before { background: var(--grad-blue); }

.stat-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}
.stat-card .value {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-card .value small {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.6;
  margin-left: 0.25rem;
}

/* Full-width stat card */
.stat-card.span-full {
  grid-column: 1 / -1;
  padding: 1.25rem 1.5rem;
}

.performance-card {
  grid-column: span 3;
  padding: 2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .performance-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .performance-card {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .performance-card .limit-details {
    justify-content: center;
  }
}

/* â”€â”€â”€ Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.progress-track {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  margin-top: 0.75rem;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--grad-gold);
  border-radius: 999px;
  transition: width 0.8s var(--ease-out);
  position: relative;
}
.progress-fill::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  transform: translate(50%, -50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* â”€â”€â”€ Dashboard Actions Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dashboard-actions, .admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.action-card {
  padding: 1.5rem;
}
.action-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.action-card > p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* â”€â”€â”€ Wallet Address â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.wallet-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  margin-bottom: 0.75rem;
}
.wallet-address code {
  flex: 1;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wallet-address button {
  flex-shrink: 0;
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
}
.wallet-address button:hover { background: rgba(255,255,255,0.12); }

.note { font-size: 0.75rem; color: var(--blue) !important; font-style: italic; }
.fee-info { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; }
.mt-1 { margin-top: 1rem; }

/* â”€â”€â”€ Accent Colors â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.accent-gold  { color: var(--gold); }
.accent-green { color: var(--green); }
.accent-blue  { color: var(--blue); }

/* â”€â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.history-section { padding: 1.5rem; }
.history-section h3 { font-size: 1rem; margin-bottom: 1.25rem; letter-spacing: -0.01em; }

.table-container, .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}
thead th {
  padding: 0.75rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
tbody td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background var(--dur-fast);
}
tbody tr:hover td { background: rgba(255,255,255,0.015); }

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.status-completed { background: var(--green-dim); color: var(--green); }
.status-pending   { background: var(--gold-dim);  color: var(--gold); }
.status-rejected  { background: var(--red-dim);   color: var(--red); }

/* â”€â”€â”€ Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
  display: none; /* Hidden by default â€” JS adds .active to show */
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1rem;
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#custom-modal-overlay {
  z-index: 20000 !important;
}

.modal, .modal-box {
  width: 100%;
  max-width: 420px;
  padding: 2rem;
  animation: scaleIn 0.25s var(--ease-out) both;
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3, .modal-box h3 { font-size: 1.1rem; margin-bottom: 1.5rem; }
.modal-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.modal-actions button { flex: 1; }

/* Modal icon styles */
.modal-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
  display: block;
}
.modal-icon.success { color: var(--accent-green); }
.modal-icon.error   { color: var(--red); }
.modal-icon.warning { color: var(--accent-gold); }
.modal-icon.rank-up-icon { font-size: 3rem; }


/* â”€â”€â”€ Tree Matrix â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tree-container { width: 100%; overflow-x: auto; padding-bottom: 2rem; }
.tree { display: inline-block; min-width: 100%; text-align: center; }
.tree ul {
  padding-top: 20px;
  position: relative;
  display: flex;
  justify-content: center;
  list-style: none;
}
.tree li {
  float: left;
  text-align: center;
  list-style: none;
  position: relative;
  padding: 20px 5px 0;
}
.tree li::before, .tree li::after {
  content: '';
  position: absolute;
  top: 0; right: 50%;
  border-top: 1px solid var(--glass-border);
  width: 50%; height: 20px;
}
.tree li::after { right: auto; left: 50%; border-left: 1px solid var(--glass-border); }
.tree li:only-child::after, .tree li:only-child::before { display: none; }
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after { border: none; }
.tree li:last-child::before {
  border-right: 1px solid var(--glass-border);
  border-radius: 0 5px 0 0;
}
.tree li:first-child::after { border-radius: 5px 0 0 0; }
.tree ul ul::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  border-left: 1px solid var(--glass-border);
  width: 0; height: 20px;
}
.tree-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  min-width: 130px;
  backdrop-filter: blur(12px);
  transition: all var(--dur-mid) var(--ease-out);
  position: relative;
}
.tree-node:hover { 
  border-color: var(--gold); 
  transform: translateY(-3px); 
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}
.tree-node img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  object-fit: cover;
}
.tree-node .name { 
  font-weight: 600; 
  color: var(--text-main); 
  font-size: 0.8rem; 
  text-align: center;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-node .invested { 
  color: var(--accent-gold); 
  font-size: 0.75rem; 
  font-weight: 500;
}
.tree-node .rank-badge {
  font-size: 0.6rem;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid currentColor;
  text-transform: uppercase;
}
.current-user-node { 
  border-color: var(--green) !important; 
  background: linear-gradient(135deg, rgba(48, 217, 148, 0.1), rgba(0,0,0,0.1)) !important;
}
.empty-node {
  opacity: 0.4;
  border-style: dashed !important;
  background: transparent !important;
}

/* â”€â”€â”€ Rank Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.rank-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(0,0,0,0.15);
  transition: border-color var(--dur-mid), transform var(--dur-mid) var(--ease-out);
}
.rank-card:hover { border-color: var(--glass-border-hover); transform: translateY(-2px); }

/* â”€â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card.span-full { grid-column: 1 / -1; }
  .main-content { padding: 1.75rem 1.5rem; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 260px; }

  .sidebar-toggle { display: block; }

  .sidebar {
    position: fixed;
    left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid);
    z-index: 20;
    height: 100%;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,0.4);
  }

  .sidebar-overlay.visible { display: block; }

  .main-content {
    padding: 1rem;
    padding-top: 4rem; /* space for toggle button */
    height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
  }

  header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  header h2 { font-size: 1.3rem; }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .stat-card .value {
    font-size: 1.25rem;
  }
  .stat-card .value small {
    font-size: 0.65rem;
  }

  .dashboard-actions, .admin-actions { grid-template-columns: 1fr; }
    .dashboard-actions > div, .admin-actions > div { 
    grid-column: 1 / -1 !important; 
    min-width: 0 !important; 
  }

  .modal { padding: 1.5rem; }
  .modal-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  #auth-view { padding: 1rem; }
  .auth-panel { padding: 2rem 1.5rem; }

  .stats-grid { grid-template-columns: 1fr; }

  table { font-size: 0.8rem; }
  thead th, tbody td { padding: 0.65rem 0.75rem; }

  /* Landing page overrides under 480px */
  .hero-content h1 {
    font-size: 1.55rem;
    line-height: 1.3;
    word-break: break-word;
  }
  .trading-widget {
    padding: 1rem;
  }
  .widget-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .widget-header span {
    font-size: 0.75rem !important;
  }
  #ob-price-active, #hero-price-ticker {
    font-size: 0.8rem !important;
  }
  .matrix-visual .tree-container {
    padding: 1rem 0.5rem;
    max-width: 100%;
  }
  .matrix-visual .tree-node {
    width: 46px;
    height: 46px;
  }
  .matrix-visual .tree-node i {
    font-size: 1rem;
  }
  .matrix-visual .tree-node.sub-node {
    width: 34px;
    height: 34px;
  }
  .matrix-visual .tree-node.sub-node i {
    font-size: 0.75rem;
  }
  .matrix-visual .tree-node span {
    font-size: 0.6rem;
    bottom: -16px;
  }
  .matrix-visual .tree-node.sub-node span {
    font-size: 0.5rem;
    bottom: -14px;
  }

  /* Tree Matrix under 480px */
  .tree-container {
    padding: 0.5rem !important;
  }
  .tree-node {
    min-width: 70px;
    padding: 0.35rem;
    gap: 2px;
  }
  .tree-node img {
    width: 22px;
    height: 22px;
    border-width: 1px;
  }
  .tree-node .name {
    font-size: 0.6rem;
    max-width: 60px;
  }
  .tree-node .invested {
    font-size: 0.55rem;
  }
  .tree-node .rank-badge {
    font-size: 0.5rem;
    padding: 1px 2px;
  }
  .tree li {
    padding: 12px 2px 0;
  }
  .tree ul {
    padding-top: 12px;
  }
  .tree li::before, .tree li::after, .tree ul ul::before {
    height: 12px;
  }
}

/* â”€â”€â”€ Toggle Switch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255,255,255,0.12);
  transition: background var(--dur-mid);
  border-radius: 999px;
}
.slider::before {
  content: '';
  position: absolute;
  height: 18px; width: 18px;
  left: 4px; bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: transform var(--dur-mid) var(--ease-out);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(22px); }

/* â”€â”€â”€ Default Avatar Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.default-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.default-avatar-img:hover { transform: scale(1.08); }
.default-avatar-img.selected { border-color: var(--gold); }

/* â”€â”€â”€ Utility â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.font-mono      { font-family: 'DM Mono', monospace; }
.text-sm        { font-size: 0.85rem; }
.text-xs        { font-size: 0.75rem; }
.mt-2           { margin-top: 0.5rem; }
.mt-4           { margin-top: 1rem; }
.mt-6           { margin-top: 1.5rem; }
.mb-4           { margin-bottom: 1rem; }
.gap-row        { display: flex; align-items: center; gap: 0.75rem; }

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-box {
    width: 90%;
    max-width: 420px;
    padding: 2.5rem;
    text-align: center;
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--glass-border);
    background: var(--bg-surface);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.modal-icon.success { color: #10b981; }
.modal-icon.error { color: #ef4444; }
.modal-icon.warning { color: #f59e0b; }

.modal-box h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
}

.modal-box p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.modal-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

.modal-actions button {
    padding: 0.8rem 2rem;
    min-width: 130px;
    font-weight: 600;
    border-radius: 12px;
}

/* OTP Code Input Styling */
#signup-verify-code {
    width: 100%;
    border-radius: 12px;
    border: 2px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Space Mono', 'Courier New', monospace;
}

#signup-verify-code:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.25), 0 0 20px rgba(99, 179, 237, 0.15);
}

body.light-theme #signup-verify-code {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.2);
    color: #0f172a;
}

body.light-theme #signup-verify-code:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}


.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10001;
}

.toast {
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    min-width: 320px;
    backdrop-filter: blur(10px);
}

@keyframes toastIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast.success { border-left: 5px solid #10b981; }
.toast.error { border-left: 5px solid #ef4444; }
.toast.warning { border-left: 5px solid #f59e0b; }
/* â”€â”€â”€ Theme Toggle Switch â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem;
  margin-top: auto;
  border-top: 1px solid var(--glass-border);
}
.theme-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 22px;
}
.theme-switch input { opacity: 0; width: 0; height: 0; }
.theme-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255,255,255,0.1);
  transition: .4s;
  border-radius: 34px;
}
.light-theme .theme-slider { background-color: rgba(0,0,0,0.1); }
.theme-slider:before {
  position: absolute;
  content: "";
  height: 16px; width: 16px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
input:checked + .theme-slider { background-color: var(--gold); }
input:checked + .theme-slider:before { transform: translateX(22px); }

.theme-icon { font-size: 0.9rem; color: var(--text-secondary); }
.light-theme .stat-card { box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.light-theme .sidebar { box-shadow: 4px 0 12px rgba(0,0,0,0.03); }

/* â”€â”€â”€ News Ticker â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ticker-wrap {
    width: 100%;
    background: rgba(232, 184, 75, 0.1);
    border-left: 4px solid var(--accent-gold);
    padding: 0.5rem 0;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.ticker-wrap .ticker-icon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: var(--bg-dark);
    padding: 0 1rem;
    display: flex;
    align-items: center;
    color: var(--accent-gold);
    z-index: 2;
    box-shadow: 10px 0 15px var(--bg-dark);
}
.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker 25s linear infinite;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.5px;
}
.ticker-move:hover {
    animation-play-state: paused;
}
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* --- Premium Custom UI Improvements --- */
.btn-deposit-header {
  background: var(--grad-blue);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--dur-mid) var(--ease-out);
}
.btn-deposit-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 137, 255, 0.3);
}
.btn-deposit-header:active {
  transform: translateY(0);
}

.preset-amounts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.preset-btn {
  flex: 1;
  min-width: 70px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all var(--dur-fast) var(--ease-out);
}
.preset-btn:hover {
  background: rgba(79, 137, 255, 0.1);
  border-color: rgba(79, 137, 255, 0.4);
  color: var(--blue);
}
.preset-btn.active {
  background: rgba(79, 137, 255, 0.2);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 0 10px rgba(79, 137, 255, 0.2);
}

.btn-confirm-dep {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all var(--dur-mid) var(--ease-out);
  text-align: center;
  animation: pulse-green 2s infinite;
}
.btn-confirm-dep:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6), 0 0 25px rgba(16, 185, 129, 0.4);
  filter: brightness(1.15);
}
.btn-confirm-dep:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 0px rgba(16, 185, 129, 0);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6), 0 0 15px rgba(16, 185, 129, 0.3);
  }
  100% {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 0px rgba(16, 185, 129, 0);
  }
}

/* â”€â”€â”€ Bot Management Premium Styles â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bot-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.bot-status-indicator.active {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
}
.bot-status-indicator.paused {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.05);
}
.bot-status-indicator .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
}
.bot-status-indicator.active .pulse-dot {
  animation: neonPulseGreen 1.5s infinite alternate;
}

@keyframes neonPulseGreen {
  from { box-shadow: 0 0 2px var(--accent-green), 0 0 6px var(--accent-green); }
  to { box-shadow: 0 0 4px var(--accent-green), 0 0 12px var(--accent-green); }
}

.btn-bot-toggle {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--glass-border);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--dur-fast) var(--ease-out);
}
.btn-bot-toggle.active {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
}
.btn-bot-toggle:not(.active) {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-green);
}
.btn-bot-toggle:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.bot-grid-visualizer-container {
  flex: 1;
  position: relative;
  width: 100%;
  height: 190px;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.6) 0%, rgba(5, 7, 12, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

.bot-grid-visualizer-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}

.price-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #00f2fe, transparent);
  box-shadow: 0 0 10px #00f2fe, 0 0 20px #00f2fe;
  z-index: 5;
  pointer-events: none;
  transition: top 0.15s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.price-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #00f2fe, 0 0 15px #00f2fe;
}

.price-tag {
  position: absolute;
  right: 15px;
  top: -11px;
  background: #00f2fe;
  color: #030712;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}

.grid-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.15);
  z-index: 2;
  transition: top 0.15s ease-out, opacity 0.3s;
}

.grid-line.buy-order {
  border-top-color: rgba(16, 185, 129, 0.35);
}

.grid-line.sell-order {
  border-top-color: rgba(239, 68, 68, 0.35);
}

.grid-line-label {
  position: absolute;
  left: 15px;
  top: -7px;
  font-size: 0.65rem;
  font-weight: 600;
  font-family: 'DM Mono', monospace;
  padding: 0px 4px;
  border-radius: 3px;
  line-height: 1.2;
}

.grid-line.buy-order .grid-line-label {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.grid-line.sell-order .grid-line-label {
  color: #f87171;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.grid-line.executed-flash {
  animation: gridFlash 0.8s ease-out;
}

@keyframes gridFlash {
  0% {
    background: rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    box-shadow: 0 0 15px #fff;
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

.bot-console-log {
  width: 100%;
  height: 160px;
  background: #04060a;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  overflow-y: auto;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #cbd5e1;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
}

.bot-console-log::-webkit-scrollbar {
  width: 6px;
}
.bot-console-log::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}
.bot-console-log::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}

.console-line {
  margin-bottom: 4px;
  animation: consoleLineIn 0.3s ease-out forwards;
  opacity: 0;
  transform: translateY(5px);
}

@keyframes consoleLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.console-line.buy {
  color: #60a5fa;
}

.console-line.sell {
  color: #34d399;
}

.console-line.system-msg {
  color: #94a3b8;
  opacity: 0.7;
}

.terminal-badge {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--blue);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
}

/* --- Speed buttons premium active styling --- */
.speed-btn:hover {
  background: rgba(79, 137, 255, 0.12) !important;
  border-color: rgba(79, 137, 255, 0.45) !important;
  color: #fff !important;
}

.speed-btn.active {
  background: rgba(79, 137, 255, 0.25) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(79, 137, 255, 0.35);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* --- L2 Order Book line item enhancements --- */
@keyframes ask-flash {
  0% { background-color: rgba(239, 68, 68, 0.35); box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  100% { background-color: transparent; box-shadow: none; }
}

@keyframes bid-flash {
  0% { background-color: rgba(16, 185, 129, 0.35); box-shadow: 0 0 4px rgba(16, 185, 129, 0.4); }
  100% { background-color: transparent; box-shadow: none; }
}

.orderbook-row-ask {
  animation: ask-flash 0.35s ease-out;
}

.orderbook-row-bid {
  animation: bid-flash 0.35s ease-out;
}

#orderbook-asks > div, #orderbook-bids > div {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  padding: 3px 6px;
  border-radius: 4px;
  margin-bottom: 2px;
  transition: background 0.15s ease, transform 0.15s ease;
  position: relative;
  overflow: hidden;
}

#orderbook-asks > div:hover, #orderbook-bids > div:hover {
  transform: translateX(2px);
  filter: brightness(1.25);
  cursor: pointer;
}

/* Animaciones de parpadeo neÃ³n para celdas del Order Book L2 */
@keyframes flash-green-glow {
  0% { background-color: rgba(16, 185, 129, 0.45); box-shadow: inset 0 0 6px rgba(16, 185, 129, 0.6); }
  100% { background-color: transparent; box-shadow: none; }
}

@keyframes flash-red-glow {
  0% { background-color: rgba(239, 68, 68, 0.45); box-shadow: inset 0 0 6px rgba(239, 68, 68, 0.6); }
  100% { background-color: transparent; box-shadow: none; }
}

.tick-flash-green {
  animation: flash-green-glow 0.35s ease-out;
}

.tick-flash-red {
  animation: flash-red-glow 0.35s ease-out;
}

/* Tablas y pestaÃ±as del visualizador de rango Grid */
.grid-tabs-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.grid-tab-btn {
  padding: 0.4rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.grid-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.grid-tab-btn.active {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

/* --- Switch Toggle for Binance Oracle --- */
.switch-oracle {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  vertical-align: middle;
}

.switch-oracle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-oracle {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 22px;
  border: 1px solid var(--glass-border);
}

.slider-oracle:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switch-oracle input:checked + .slider-oracle {
  background-color: rgba(79, 137, 255, 0.35);
  border-color: rgba(79, 137, 255, 0.7);
}

.switch-oracle input:checked + .slider-oracle:before {
  transform: translateX(20px);
  background-color: #4f89ff;
  box-shadow: 0 0 8px rgba(79, 137, 255, 0.8);
}

/* --- Chart Filter Buttons --- */
.chart-filter-btn {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chart-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.chart-filter-btn.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.2);
}

/* --- Futures Position Simulator --- */
.futures-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}
.futures-badge.active {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  animation: pulse-blue 2s infinite;
}
.futures-badge.closed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@keyframes pulse-blue {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.futures-pnl-positive {
  color: var(--accent-green) !important;
  font-weight: 600;
}
.futures-pnl-negative {
  color: var(--danger-color) !important;
  font-weight: 600;
}

/* ============================================================
   PREMIUM ENHANCEMENTS â€” Aesthetics & Step-by-Step UI
   ============================================================ */

/* Glassmorphism card upgrades */
.glass-panel {
  background: rgba(10, 15, 43, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.45), inset 0 1px 1px 0 rgba(255, 255, 255, 0.05) !important;
  transition: border-color 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
}

.glass-panel:hover {
  border-color: rgba(212, 175, 55, 0.25) !important;
  box-shadow: 0 24px 48px 0 rgba(0, 0, 0, 0.65), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-3px);
}

/* Breathing Neon Pulse Dot */
.neon-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: neon-breathing 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes neon-breathing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Password Strength Meter */
.password-strength-container {
  margin-top: 0.5rem;
  margin-bottom: 1.25rem;
  text-align: left;
}

.password-strength-bar-wrapper {
  height: 5px;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.02);
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  background-color: #ef4444;
  border-radius: 3px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.password-strength-text span.strength-label {
  font-weight: 700;
  transition: color 0.3s ease;
}

/* 2FA Step-by-Step UI */
.tfa-setup-step {
  display: none;
  animation: tfaFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  text-align: left;
  margin-bottom: 1.25rem;
}

.tfa-setup-step.active {
  display: block;
}

@keyframes tfaFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tfa-step-badge {
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 4px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: inline-block;
  letter-spacing: 0.05em;
}

.tfa-setup-step-title {
  font-size: 0.95rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.tfa-setup-step-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.tfa-step-indicator-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.tfa-step-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tfa-step-dot.active {
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ============================================================
   LANDING PAGE â€” Portal de Bienvenida
   ============================================================ */
#landing-view.active {
  display: block;
  overflow-y: auto;
  min-height: 100vh;
}

.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

/* Header & Nav */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: background var(--dur-mid);
}

.landing-header-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.landing-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.landing-logo i {
  font-size: 1.3rem;
}

.landing-nav {
  display: flex;
  gap: 2rem;
}

.landing-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--dur-fast);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.landing-nav a:hover {
  color: #fff;
}

.landing-header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: 0.85rem;
}

.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--text-secondary);
}

.btn-primary-gold {
  background: linear-gradient(135deg, var(--gold), var(--accent-gold));
  border: none;
  color: #000;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-fast);
  font-size: 0.85rem;
}

.btn-primary-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(243, 198, 35, 0.3);
}

.landing-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile Nav Styles */
.landing-mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 1.5rem;
  gap: 1rem;
}

.landing-mobile-nav.active {
  display: flex;
}

.landing-mobile-nav a {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.02);
}

.landing-mobile-nav .mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Hero Section */
.landing-hero {
  padding: 140px 0 80px 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--accent-gold);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1.2rem;
}

.btn-secondary-glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--dur-fast);
}

.btn-secondary-glass:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--text-secondary);
}

.hero-content .btn-landing-register {
  padding: 0.75rem 1.8rem;
  font-size: 0.95rem;
}

/* Trading simulation widget in Hero */
.trading-widget {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.trading-widget::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.sparkline-container {
  height: 80px;
  width: 100%;
  margin-bottom: 1rem;
  position: relative;
}

.widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.widget-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.pulsing {
  box-shadow: 0 0 8px var(--green);
  animation: pulse-glow 1.5s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--green); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.orderbook-preview {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.orderbook-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: 4px;
}

.orderbook-row.ask {
  color: var(--red);
  background: rgba(239, 68, 68, 0.03);
}

.orderbook-row.bid {
  color: var(--green);
  background: rgba(34, 197, 94, 0.03);
}

.orderbook-row.active-trade {
  background: rgba(34, 197, 94, 0.15);
  font-weight: bold;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Stats Section */
.landing-stats {
  padding: 40px 0;
  position: relative;
  z-index: 10;
}

.landing-stats .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.landing-stats .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 0; /* Prevents grid blowout */
}

.stat-icon {
  font-size: 1.75rem;
  color: var(--accent-gold);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.stat-card:hover {
  transform: translateY(-4px);
}

.hover-glow-gold:hover {
  box-shadow: 0 8px 24px rgba(243, 198, 35, 0.15);
  border-color: rgba(243, 198, 35, 0.3);
}

.hover-glow-blue:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--blue);
}

.hover-glow-blue:hover .stat-icon {
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.hover-glow-green:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.hover-glow-green:hover .stat-icon {
  color: var(--accent-green);
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Section Header */
.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-header.text-center {
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.5;
}

/* Features Section */
.landing-features {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  transition: all var(--dur-mid) var(--ease-out);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.feature-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon.glow-blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.feature-icon.glow-green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.feature-icon.glow-gold {
  background: rgba(243, 198, 35, 0.1);
  color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(243, 198, 35, 0.2);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Simulator Section */
.landing-simulator {
  padding: 80px 0;
}

.simulator-card {
  padding: 3rem;
  border-radius: var(--radius-xl);
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.input-slider-group {
  margin-top: 2rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-weight: 600;
}

.slider-val {
  font-size: 1.25rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.landing-slider {
  width: 100%;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05);
  height: 8px;
  border-radius: 4px;
  outline: none;
  border: 1px solid var(--glass-border);
}

.landing-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px rgba(243, 198, 35, 0.5);
  cursor: pointer;
  transition: transform var(--dur-fast);
}

.landing-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.simulator-results {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.015);
}

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  font-size: 0.95rem;
}

.result-row .val {
  font-size: 1.15rem;
  font-weight: 700;
}

.result-row.total-limit {
  padding-top: 1rem;
}

.result-row.total-limit .val {
  font-size: 1.4rem;
}

/* Matrix Explanation Section */
.landing-matrix {
  padding: 80px 0;
}

.matrix-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 5rem;
  align-items: center;
}

.matrix-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.matrix-visual .tree-container {
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.matrix-visual .tree-node {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
  transition: all var(--dur-mid);
}

.matrix-visual .tree-node i {
  font-size: 1.2rem;
}

.matrix-visual .tree-node span {
  position: absolute;
  bottom: -22px;
  white-space: nowrap;
  font-weight: 600;
}

.matrix-visual .tree-node.sub-node span {
  bottom: -18px;
}

.matrix-visual .tree-node.glow-gold {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(243, 198, 35, 0.25);
  color: var(--accent-gold);
}

.matrix-visual .tree-node.glow-green {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
  color: var(--green);
}

.matrix-visual .tree-node.glow-blue {
  border-color: var(--blue);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
  color: var(--blue);
}

.matrix-visual .tree-node.dotted {
  border-style: dashed;
}

.tree-connectors {
  width: 100%;
  height: 40px;
  position: relative;
}

.connector-line {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border-top: 1px solid var(--glass-border);
}

.connector-line.left {
  left: 25%;
  border-left: 1px solid var(--glass-border);
  border-top-left-radius: 8px;
}

.connector-line.right {
  right: 25%;
  border-right: 1px solid var(--glass-border);
  border-top-right-radius: 8px;
}

.tree-connectors-sub {
  width: 100%;
  height: 35px;
  position: relative;
}

.connector-line-sub {
  position: absolute;
  top: 0;
  height: 100%;
  border-top: 1px dashed var(--glass-border);
}

.connector-line-sub.left-left {
  left: 12.5%;
  width: 25%;
  border-left: 1px dashed var(--glass-border);
}

.connector-line-sub.left-right {
  left: 37.5%;
  width: 12.5%;
  border-right: 1px dashed var(--glass-border);
}

.connector-line-sub.right-left {
  right: 37.5%;
  width: 12.5%;
  border-left: 1px dashed var(--glass-border);
}

.connector-line-sub.right-right {
  right: 12.5%;
  width: 25%;
  border-right: 1px dashed var(--glass-border);
}

.tree-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 20%;
}

.tree-row.sub-row {
  padding: 0 5%;
}

.matrix-visual .tree-node.sub-node {
  width: 45px;
  height: 45px;
}

.matrix-visual .tree-node.sub-node i {
  font-size: 0.95rem;
}

/* Final CTA Section */
.landing-cta {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(243, 198, 35, 0.04) 0%, transparent 70%);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.landing-cta h2 {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.landing-cta .btn-landing-register {
  padding: 0.85rem 2.5rem;
  font-size: 1rem;
  margin-top: 2rem;
}

/* Landing Footer */
.landing-footer {
  padding: 3rem 0;
  background: var(--bg-main);
}

/* Text adjustments */
.text-2xs { font-size: 0.65rem; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .badge-premium {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-content h1 {
    font-size: 3rem;
  }
  .landing-stats .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .matrix-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .matrix-list li {
    justify-content: center;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .landing-nav {
    display: none;
  }
  .landing-header-actions {
    display: none;
  }
  .landing-menu-toggle {
    display: block;
  }
  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.25;
  }
  .hero-visual {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .matrix-visual .tree-container {
    padding: 1.5rem 1rem;
    max-width: 100%;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .landing-stats .stats-grid {
    grid-template-columns: 1fr;
  }
  .simulator-card {
    padding: 1.5rem;
  }
  .landing-cta h2 {
    font-size: 2.2rem;
  }

  /* Tree Matrix under 768px */
  .tree-container {
    padding: 1rem !important;
  }
  .tree-node {
    min-width: 90px;
    padding: 0.5rem;
    gap: 4px;
  }
  .tree-node img {
    width: 30px;
    height: 30px;
  }
  .tree-node .name {
    font-size: 0.7rem;
    max-width: 80px;
  }
  .tree-node .invested {
    font-size: 0.65rem;
  }
  .tree-node .rank-badge {
    font-size: 0.55rem;
    padding: 1px 4px;
  }
  .tree li {
    padding: 15px 3px 0;
  }
  .tree ul {
    padding-top: 15px;
  }
  .tree li::before, .tree li::after, .tree ul ul::before {
    height: 15px;
  }
}

/* ============================================================
   LANDING PAGE COLOR OVERRIDES (Yellow/Gold -> Dark Blue & Premium Royal Blue)
   ============================================================ */
#landing-view {
  --gold: #1e3a8a !important; /* Dark blue */
  --accent-gold: #3b82f6 !important; /* Royal blue */
}

#landing-view .accent-gold,
#landing-view .text-gold,
#landing-view .slider-val,
#landing-view .stat-icon {
  color: #3b82f6 !important;
}

#landing-view .btn-primary-gold {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
  color: #ffffff !important;
}

#landing-view .btn-primary-gold:hover {
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4) !important;
}

#landing-view .badge-premium {
  background: rgba(59, 130, 246, 0.1) !important;
  border: 1px solid rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

#landing-view .feature-icon.glow-gold {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #60a5fa !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2) !important;
}

#landing-view .hover-glow-gold:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

#landing-view .tree-node.glow-gold {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25) !important;
  color: #60a5fa !important;
}

#landing-view .landing-slider::-webkit-slider-thumb {
  background: #3b82f6 !important;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5) !important;
}

#landing-view .landing-logo i {
  color: #3b82f6 !important;
}

/* ============================================================
   INTERACTIVE MATRIX REDESIGN STYLES
   ============================================================ */
.matrix-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.matrix-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all var(--dur-mid) var(--ease-out);
  align-items: flex-start;
}

.matrix-card:hover {
  transform: translateX(4px);
  background: rgba(59, 130, 246, 0.04);
  border-color: rgba(59, 130, 246, 0.2);
}

.matrix-card .card-icon {
  font-size: 1.5rem;
  color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.matrix-card h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
}

.matrix-card p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Tree Upline Sponsor Connectors */
.tree-connector-upline {
  width: 2px;
  height: 25px;
  background: var(--glass-border);
  margin: 0 auto;
  position: relative;
  transition: background var(--dur-mid);
}

/* Active Simulation Paths (Royal Blue glow animations) */
.matrix-visual .tree-node.active-path {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6) !important;
  transform: scale(1.1);
  color: #fff !important;
  background: rgba(59, 130, 246, 0.2) !important;
}

.tree-connector-upline.active-path {
  background: #3b82f6 !important;
  box-shadow: 0 0 8px #3b82f6;
}

.connector-line.active-path {
  border-top-color: #3b82f6 !important;
  border-left-color: #3b82f6 !important;
  border-right-color: #3b82f6 !important;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

.connector-line-sub.active-path {
  border-top-color: #3b82f6 !important;
  border-left-color: #3b82f6 !important;
  border-right-color: #3b82f6 !important;
  box-shadow: 0 0 4px rgba(59, 130, 246, 0.5);
}

/* Dotted node highlight when spillover completes */
.matrix-visual .tree-node.spillover-placed {
  border-style: solid !important;
  border-color: var(--green) !important;
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.8) !important;
  background: rgba(34, 197, 94, 0.25) !important;
  color: #fff !important;
  animation: pulse-placed 2s infinite;
}

@keyframes pulse-placed {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 35px rgba(34, 197, 94, 1); }
  100% { transform: scale(1); }
}

@media (min-width: 768px) {
  .matrix-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   LANDING TEAM & ROADMAP STYLES
   ============================================================ */

/* Team Section */
.landing-team {
  padding: 100px 0 80px 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-card {
  padding: 2.5rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.team-avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-avatar {
  transform: scale(1.1) rotate(2deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.35);
}

/* Gradients for avatars */
.avatar-c-level {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  border-color: rgba(243, 198, 35, 0.4) !important;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.avatar-c-level::after {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 198, 35, 0.25);
  pointer-events: none;
}
.team-card:hover .avatar-c-level {
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-design {
  background: linear-gradient(135deg, #4f46e5, #db2777);
  border-color: rgba(219, 39, 119, 0.4) !important;
  box-shadow: 0 0 15px rgba(219, 39, 119, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.team-card:hover .avatar-design {
  box-shadow: 0 0 25px rgba(219, 39, 119, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-marketing {
  background: linear-gradient(135deg, #ea580c, #e11d48);
  border-color: rgba(234, 88, 12, 0.4) !important;
  box-shadow: 0 0 15px rgba(234, 88, 12, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.team-card:hover .avatar-marketing {
  box-shadow: 0 0 25px rgba(234, 88, 12, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-edition {
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.team-card:hover .avatar-edition {
  box-shadow: 0 0 25px rgba(124, 58, 237, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-developer {
  background: linear-gradient(135deg, #0891b2, #10b981);
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.team-card:hover .avatar-developer {
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-freelance {
  background: linear-gradient(135deg, #475569, #64748b);
  border-color: rgba(100, 116, 139, 0.4) !important;
  box-shadow: 0 0 15px rgba(100, 116, 139, 0.25), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.team-card:hover .avatar-freelance {
  box-shadow: 0 0 25px rgba(100, 116, 139, 0.5), 0 15px 30px rgba(0, 0, 0, 0.5);
}

.avatar-initials {
  z-index: 2;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
  user-select: none;
}

.team-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Roadmap Timeline Section */
.landing-roadmap {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
  background: radial-gradient(circle at center bottom, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
}

.roadmap-timeline {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 0 auto;
  padding: 2rem 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 0%, rgba(59, 130, 246, 0.4) 20%, rgba(59, 130, 246, 0.4) 80%, rgba(59, 130, 246, 0.05) 100%);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 2rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #0a0f2b;
  border: 3px solid rgba(59, 130, 246, 0.6);
  z-index: 10;
  transition: all 0.3s ease;
}

.timeline-item.left .timeline-dot {
  right: -7px;
}

.timeline-item.right .timeline-dot {
  left: -7px;
}

.timeline-dot.pulsing {
  border-color: #3b82f6;
  background: #3b82f6;
  box-shadow: 0 0 10px #3b82f6;
  animation: roadmap-dot-pulse 2s infinite;
}

@keyframes roadmap-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.timeline-date {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #3b82f6;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.timeline-content {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(10, 15, 43, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  text-align: left;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-item:hover .timeline-dot {
  background: #3b82f6;
  border-color: #fff;
  transform: scale(1.25);
  box-shadow: 0 0 15px #3b82f6;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(59, 130, 246, 0.4) !important;
  box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15) !important;
  transform: translateY(-2px);
}

/* Timeline Responsive Adjustments */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }
  
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 13px;
    right: auto;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   LANDING SECURITY & CUSTODY SECTION STYLES
   ============================================================ */
.landing-security {
  padding: 100px 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.security-card {
  padding: 3rem 2.25rem;
  border-radius: var(--radius-lg);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.security-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  transition: all 0.4s var(--ease-out);
}

.security-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.security-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Security Cards Hover States & Glows */
.security-card:hover {
  transform: translateY(-8px);
}

/* Card 1: Agent Key (Royal Blue theme under the overrides, but let's make it look beautiful) */
.security-card.glow-gold:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.12) !important;
}
.security-card.glow-gold:hover .security-icon {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

/* Card 2: Non-Custodial (Green) */
.security-card.glow-green:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
  box-shadow: 0 15px 35px rgba(34, 197, 94, 0.12) !important;
}
.security-card.glow-green .security-icon {
  color: var(--green);
}
.security-card.glow-green:hover .security-icon {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.25);
}

/* Card 3: Audited Smart Contracts (Blue) */
.security-card.glow-blue:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 15px 35px rgba(59, 130, 246, 0.12) !important;
}
.security-card.glow-blue .security-icon {
  color: var(--blue);
}
.security-card.glow-blue:hover .security-icon {
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.25);
}

@media (max-width: 1024px) {
  .security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .security-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================================
   LANDING FAQ SECTION STYLES (Premium Two-Column Layout)
   ============================================================ */
.landing-faq {
  padding: 120px 0;
  position: relative;
  border-top: 1px solid var(--glass-border);
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: flex-start;
}

.faq-left {
  position: sticky;
  top: 120px;
}

.faq-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq-subtitle-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.faq-support-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(59, 130, 246, 0.02) !important;
  border: 1px solid rgba(59, 130, 246, 0.1) !important;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-support-card:hover {
  border-color: rgba(59, 130, 246, 0.25) !important;
  background: rgba(59, 130, 246, 0.04) !important;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.05);
}

.faq-support-card .support-icon {
  font-size: 1.5rem;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.08);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.faq-support-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  font-family: 'Syne', sans-serif;
}

.faq-support-card p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem 2rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.01) !important;
  border: 1px solid var(--glass-border) !important;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}

.faq-card:hover {
  transform: translateX(6px);
  background: rgba(59, 130, 246, 0.03) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.05);
}

.faq-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.faq-card-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  transition: color 0.3s ease;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.4;
}

.faq-card:hover .faq-card-content h3 {
  color: #60a5fa;
}

.faq-card-hint {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0;
}

.faq-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease-out);
  color: var(--text-secondary);
  flex-shrink: 0;
  margin-left: 1.5rem;
}

.faq-card:hover .faq-card-arrow {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  transform: translateX(4px);
}

/* Responsive adjustments for FAQ Grid */
@media (max-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .faq-left {
    position: relative;
    top: 0;
  }
  .faq-title {
    font-size: 2.5rem;
  }
}

/* ============================================================
   LIGHT THEME ADJUSTMENTS & PREMIUM CONTRAST UPGRADES
   ============================================================ */

body.light-theme input,
body.light-theme select,
body.light-theme textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #94a3b8 !important;
}

body.light-theme input:focus,
body.light-theme select:focus,
body.light-theme textarea:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.light-theme .language-switcher-select {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  color: #0f172a !important;
}

body.light-theme thead th {
  color: #475569 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme tbody td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  color: #1e293b !important;
}

body.light-theme tbody tr:hover td {
  background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02) !important;
}

body.light-theme nav a:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.light-theme nav a.active {
  background: var(--blue-dim) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
}

body.light-theme nav a.active i {
  color: var(--blue) !important;
}

body.light-theme td span.badge, 
body.light-theme .badge {
  background: var(--blue-dim) !important;
  color: var(--blue) !important;
  border: 1px solid rgba(59, 130, 246, 0.15) !important;
}

body.light-theme .stat-card,
body.light-theme .glass-panel {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.025) !important;
}

body.light-theme .stat-card:hover,
body.light-theme .glass-panel:hover {
  border-color: rgba(59, 130, 246, 0.2) !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025) !important;
}

body.light-theme .modal, 
body.light-theme .modal-box {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

body.light-theme .modal h3,
body.light-theme .modal-box h3 {
  color: #0f172a !important;
}

body.light-theme .tree-node {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .tree-node:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.18) !important;
}

body.light-theme .tree-node .name {
  color: #0f172a !important;
}

body.light-theme .tree-node .rank-badge {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #475569 !important;
}

body.light-theme .tree li::before, 
body.light-theme .tree li::after,
body.light-theme .tree ul ul::before {
  border-top-color: rgba(0, 0, 0, 0.15) !important;
  border-left-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme #performance-earned,
body.light-theme #performance-limit,
body.light-theme #performance-percent,
body.light-theme #rank-progress-percent {
  color: #0f172a !important;
}

body.light-theme .progress-track {
  background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .performance-ring-circle-bg {
  stroke: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .preset-btn {
  background: rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  color: #0f172a !important;
}

body.light-theme .preset-btn:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  color: var(--blue) !important;
}

body.light-theme .preset-btn.active {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: var(--blue) !important;
  color: var(--blue) !important;
}

body.light-theme .ticker-move {
  color: #0f172a !important;
}

body.light-theme .ticker-wrap .ticker-icon {
  background: #f8fafc !important;
  box-shadow: 10px 0 15px #f8fafc !important;
}

body.light-theme .speed-btn.active {
  background: var(--blue) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  text-shadow: none !important;
}

body.light-theme .speed-btn:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: var(--blue) !important;
}

body.light-theme .bot-grid-visualizer-container {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .bot-grid-visualizer-container::before {
  background: linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
              linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px) !important;
}

body.light-theme .grid-line {
  border-top-color: rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .bot-console-log {
  background: #0f172a !important;
  border-color: rgba(0,0,0,0.1) !important;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.2) !important;
  color: #e2e8f0 !important;
}

body.light-theme .btn-bot-toggle.active {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  color: #dc2626 !important;
}

body.light-theme .btn-bot-toggle:not(.active) {
  background: rgba(34, 197, 94, 0.08) !important;
  border-color: rgba(34, 197, 94, 0.3) !important;
  color: #15803d !important;
}

body.light-theme .toast {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

body.light-theme .matrix-card {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .matrix-card h4 {
  color: #0f172a !important;
}

body.light-theme .simulator-section {
  background: rgba(232, 184, 75, 0.05) !important;
  border-color: rgba(232, 184, 75, 0.2) !important;
}

body.light-theme .simulator-section select {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

body.light-theme .simulator-section > div[style*="background: rgba(0,0,0,0.3)"] {
  background: rgba(0, 0, 0, 0.02) !important;
}

body.light-theme .simulator-section div[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
  border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .simulator-section div[style*="background: rgba(255,255,255,0.03)"] {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .simulator-section div[style*="background: rgba(255,255,255,0.1)"] {
  background: rgba(0, 0, 0, 0.06) !important;
}

body.light-theme .wallet-address {
  background: #ffffff !important;
  border-color: rgba(0,0,0,0.1) !important;
}

body.light-theme .wallet-address button {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #0f172a !important;
}

body.light-theme .wallet-address button:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

/* Additional high-contrast fixes for premium light theme */
body.light-theme .main-content header h2 {
  color: #0f172a !important;
}

body.light-theme .avatar i {
  color: #ffffff !important;
}

body.light-theme .performance-value {
  color: #0f172a !important;
}

body.light-theme #performance-percent-inner {
  color: #0f172a !important;
}

body.light-theme .wallet-address {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .wallet-address span {
  color: #0f172a !important;
}

body.light-theme .wallet-address button i {
  color: #0f172a !important;
}

body.light-theme button[onclick*="showView('my-payments-view')"] {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme button[onclick*="showView('my-payments-view')"]:hover {
  background: rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .bottom-action .btn-secondary {
  background: rgba(239, 68, 68, 0.06) !important;
  border-color: rgba(239, 68, 68, 0.15) !important;
  color: #dc2626 !important;
}

body.light-theme .bottom-action .btn-secondary:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #b91c1c !important;
}

/* Fix active navigation icon color in sidebar */
body.light-theme nav a.active i {
  color: var(--blue) !important;
}

/* Language switcher active/focus style in light theme */
body.light-theme .language-switcher-select {
  border-color: rgba(0, 0, 0, 0.15) !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* ============================================================
   RESPONSIVE OVERRIDES FOR MOBILE DEVICES (MAX-WIDTH: 768px)
   ============================================================ */
@media (max-width: 768px) {
  /* 1. Matrix Levels Table (text smaller, reduced padding to avoid scroll) */
  #matrix-table {
    font-size: 0.65rem !important;
    width: 100% !important;
  }
  #matrix-table th {
    font-size: 0.6rem !important;
    white-space: normal !important;
    line-height: 1.1 !important;
    vertical-align: middle !important;
    padding: 0.4rem 0.1rem !important;
  }
  #matrix-table td {
    padding: 0.35rem 0.15rem !important;
    word-break: break-word !important;
  }

  /* 2. Rank Requirements Table (text smaller, reduced padding to avoid scroll) */
  #ranks-view table {
    font-size: 0.7rem !important;
    width: 100% !important;
  }
  #ranks-view th, 
  #ranks-view td {
    padding: 0.4rem 0.2rem !important;
    word-break: break-word !important;
  }

  /* 3. Simulator metrics grid (stack values vertically) */
  .sim-results-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  /* 4. Landing Page: Matrix Info & Cards (Stack visually on mobile) */
  .matrix-visual .tree-container {
    overflow-x: auto !important;
    width: 100% !important;
  }
  .matrix-card {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    padding: 1.5rem 1rem !important;
    gap: 0.75rem !important;
  }
  .matrix-card .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .matrix-card .card-icon {
    margin-bottom: 0.5rem !important;
  }
}

/* â”€â”€â”€ Glow & Neon Utility Classes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.glow-text {
  text-shadow: 0 0 10px currentColor;
}
.glow-text-gold {
  color: var(--accent-gold);
  text-shadow: 0 0 12px rgba(243, 198, 35, 0.35);
}
.glow-text-green {
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}
.glow-text-blue {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.35);
}
.glow-card {
  box-shadow: 0 0 20px -5px currentColor;
}

/* --- Global Mobile Cut-Off Fixes --- */
@media (max-width: 768px) {
  .action-card, .stat-card, .performance-card, .rank-card {
    max-width: 100%;
    min-width: 0 !important;
    padding: 1rem !important;
    box-sizing: border-box;
  }
  .wallet-address {
    max-width: 100%;
    min-width: 0;
  }
    .wallet-address code {
    min-width: 0;
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .table-container {
    max-width: 100%;
    width: 100%;
  }
  .tree-container, .matrix-visual {
    max-width: 100%;
  }
  div[style*='min-width: 2'], div[style*='min-width: 3'] {
    min-width: 0 !important;
  }
  .action-card > div[style*='display: flex'] {
    flex-wrap: wrap;
  }
}


