/* ============================================================
   KENT CORDEX – LEGENDARY EDITION v3
   Premium Dashboard & Login Styles
   ============================================================ */
:root {
  --blue: #173CF5;
  --blue-dark: #0f2b9e;
  --blue-light: #E8EDFF;
  --blue-glow: rgba(23, 60, 245, 0.25);
  --blue-gradient: linear-gradient(135deg, #173CF5 0%, #4F7CFF 100%);
  --blue-gradient-hover: linear-gradient(135deg, #0f2b9e 0%, #3b66e0 100%);
  --navy: #0B1120;
  --surface: #121828;
  --card-bg: #1A2332;
  --muted: #8896B0;
  --light-muted: #5A6A82;
  --border: rgba(255, 255, 255, 0.06);
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 60px rgba(23, 60, 245, 0.1);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 72px;
  --sidebar-width: 240px;
  --max-content-width: 1200px;
}

/* ===== GLOBAL RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0 1.8rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  background: transparent;
  color: var(--white);
}
.btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(23, 60, 245, 0.3);
}
.btn-primary:hover {
  background: var(--blue-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(23, 60, 245, 0.4);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: var(--white);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(23, 60, 245, 0.05);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1.5rem;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(23, 60, 245, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(23, 60, 245, 0.1) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.login-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.25;
}
.login-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--navy);
  opacity: 0.6;
}
.login-shape {
  position: absolute;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}
.login-shape-1 { width: 400px; height: 400px; top: -150px; right: -100px; }
.login-shape-2 { width: 300px; height: 300px; bottom: -100px; left: -100px; }
.login-shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.02; }

.login-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 2.8rem 2.5rem;
  background: rgba(18, 24, 40, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.login-header {
  text-align: center;
  margin-bottom: 2.2rem;
}
.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.login-brand svg { filter: drop-shadow(0 0 20px rgba(23, 60, 245, 0.3)); }
.login-brand-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
}
.login-brand-text span { color: var(--blue); }
.login-tagline {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
}

.login-form .form-group { margin-bottom: 1.2rem; }
.login-form label {
  display: block;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.login-form label i { color: var(--blue); width: 1.2rem; }
.login-form .form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  transition: all var(--transition);
  outline: none;
}
.login-form .form-control:focus {
  border-color: var(--blue);
  background: rgba(23, 60, 245, 0.05);
  box-shadow: 0 0 0 4px rgba(23, 60, 245, 0.08);
}
.login-form .form-control::placeholder { color: var(--light-muted); }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 2.8rem; }
.toggle-password {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--light-muted);
  transition: color var(--transition);
}
.toggle-password:hover { color: var(--white); }

.terms-group { margin-top: 0.2rem; }
.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.82rem;
  color: var(--muted);
}
.checkbox-container input { position: absolute; opacity: 0; width: 0; height: 0; }
.checkmark {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  transition: all var(--transition);
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checkbox-container input:checked + .checkmark {
  background: var(--blue);
  border-color: var(--blue);
}
.checkbox-container input:checked + .checkmark::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #fff;
  font-size: 0.7rem;
}
.terms-text a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: border-color var(--transition);
}
.terms-text a:hover { border-color: var(--blue); }

.login-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--blue-gradient);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 24px rgba(23, 60, 245, 0.3);
}
.login-btn:hover {
  background: var(--blue-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(23, 60, 245, 0.4);
}

.error-message {
  display: none;
  background: rgba(220, 38, 38, 0.12);
  color: #F87171;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  margin: 1rem 0;
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.login-footer {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.login-wa-btn,
.login-deriv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all var(--transition);
}
.login-wa-btn {
  background: #25D366;
  color: #fff;
}
.login-wa-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
}
.login-deriv-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border: 1px solid var(--border);
}
.login-deriv-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.login-note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--light-muted);
  margin-top: 0.4rem;
}
.login-note i { color: var(--blue); }

/* ============================================================
   MODAL OVERLAY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  visibility: visible;
  opacity: 1;
}
.modal-container {
  background: var(--card-bg);
  max-width: 480px;
  width: 90%;
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.modal-container h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.modal-body {
  margin-bottom: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.modal-body p { margin-bottom: 0.6rem; }
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

/* ============================================================
   APP CONTAINER
   ============================================================ */
.app-container {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.app-header {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.hamburger {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--muted);
  padding: 0.2rem;
  transition: color var(--transition);
  display: none;
}
.hamburger:hover { color: var(--white); }
.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-brand-text {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: -0.02em;
}
.header-brand-text span { color: var(--blue); }
.header-slogan {
  color: var(--light-muted);
  font-size: 0.85rem;
  border-left: 1px solid var(--border);
  padding-left: 1rem;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.header-time {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius);
}
.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1.2rem;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: var(--blue);
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform var(--transition);
}
.sidebar-nav {
  flex: 1;
  padding: 1.2rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.nav-item i {
  width: 1.4rem;
  text-align: center;
  font-size: 1rem;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
}
.nav-item.active {
  background: rgba(23, 60, 245, 0.12);
  color: var(--blue);
}
.nav-item.active i { color: var(--blue); }

.sidebar-user {
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.user-avatar i {
  font-size: 2.2rem;
  color: var(--blue);
}
.user-info { flex: 1; min-width: 0; }
.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}
.user-role {
  font-size: 0.7rem;
  color: var(--light-muted);
}
.user-login-time {
  font-size: 0.6rem;
  color: var(--light-muted);
}

/* ===== MAIN CONTENT ===== */
.main-content {
  margin-left: var(--sidebar-width);
  padding: 2rem;
  margin-top: 0;
  min-height: calc(100vh - var(--header-height));
  background: var(--navy);
  max-width: var(--max-content-width);
}

/* ===== PAGES ===== */
.page {
  display: none;
  animation: fadeIn 0.4s ease;
}
.page.active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-header h1 i { color: var(--blue); }
.live-badge {
  background: #10B981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.8rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.dashboard-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
}
.dashboard-subtitle {
  color: var(--muted);
  font-size: 0.95rem;
}
.dashboard-badge {
  background: var(--blue-gradient);
  color: #fff;
  padding: 0.2rem 1.4rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(23, 60, 245, 0.25);
}

/* Summary Cards */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-align: center;
}
.summary-card .number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
}
.summary-card .label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Price Panel */
.price-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.price-item { display: flex; flex-direction: column; }
.price-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light-muted);
}
.price-value {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--white);
}
.price-value .last-digit-blink { color: var(--blue); }
.price-digit {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.price-divider {
  width: 1px;
  height: 2.8rem;
  background: var(--border);
}
.price-status {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10B981;
  display: inline-block;
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}
.price-status span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Even/Odd Panel */
.eo-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.eo-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.eo-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
}
.eo-subtitle {
  font-size: 0.7rem;
  color: var(--light-muted);
}
.eo-sequence {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.eo-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--muted);
}
.eo-letter:nth-child(odd) {
  background: rgba(23, 60, 245, 0.12);
  border-color: var(--blue);
  color: var(--blue);
}
.eo-prediction {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

/* Market Overview */
.market-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}
.market-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.market-item .symbol { font-weight: 700; color: var(--white); }
.market-item .price { font-weight: 600; color: var(--blue); }
.market-item .change { font-size: 0.8rem; }
.market-item .change.positive { color: #10B981; }
.market-item .change.negative { color: #EF4444; }

/* Recent Trades */
.recent-trades-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.recent-trades-table th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  color: var(--light-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.recent-trades-table td {
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.recent-trades-table .win { color: #10B981; }
.recent-trades-table .loss { color: #EF4444; }

/* Controls Grid */
.controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.param-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition);
}
.param-card:hover { border-color: rgba(255, 255, 255, 0.15); }
.param-card label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--light-muted);
  font-weight: 600;
}
.param-card select,
.param-card input {
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  cursor: pointer;
}
.param-card select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238896B0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.param-card input { width: 100%; }
.param-card input[type="number"] { width: 70px; }

/* Trade Type Bar */
.trade-type-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.trade-btn {
  padding: 0.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.trade-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.trade-btn.active {
  background: var(--blue-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(23, 60, 245, 0.25);
}

/* Analyze Row */
.analyze-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.analyze-btn {
  padding: 0.8rem 2.8rem;
  background: var(--blue-gradient);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 4px 24px rgba(23, 60, 245, 0.25);
}
.analyze-btn:hover {
  background: var(--blue-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(23, 60, 245, 0.35);
}
.auto-refresh-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.auto-refresh-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.auto-refresh-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.refresh-interval {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--white);
  outline: none;
}

/* Prediction Panel */
.prediction-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.digit-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent);
  border: 2px solid rgba(23, 60, 245, 0.3);
  box-shadow: var(--shadow-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  transition: all var(--transition);
}
.digit-circle:hover {
  border-color: var(--blue);
  box-shadow: 0 0 60px rgba(23, 60, 245, 0.2);
  transform: scale(1.02);
}
.big-digit {
  font-size: 4.5rem;
  font-weight: 900;
  color: var(--blue);
  line-height: 1;
}
.digit-label {
  font-size: 0.65rem;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.trade-condition {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: 0.1rem;
}

.pie-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
}
.pie-container canvas { max-width: 160px; max-height: 160px; }
.pie-legend {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.3rem;
}

/* Analysis Info */
.analysis-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.analysis-info strong { color: var(--white); }
.analysis-info #lastAnalysisResult {
  color: var(--blue);
  font-weight: 600;
}

/* Charts Row */
.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
.frequency-card,
.algo-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.frequency-card h3,
.algo-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
}
.frequency-card h3 i,
.algo-card h3 i { color: var(--blue); }
.algo-bars {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.algo-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
}
.algo-item span:first-child {
  width: 120px;
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}
.progress {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--blue-gradient);
  border-radius: 100px;
}
.algo-value {
  width: 40px;
  text-align: right;
  font-weight: 700;
  color: var(--white);
}

/* ============================================================
   ANALYSIS PAGE
   ============================================================ */
.scatter-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-top: 0.5rem;
}
.scatter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.scatter-refresh {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.scatter-refresh:hover {
  border-color: var(--blue);
  color: var(--white);
}
.analysis-note {
  color: var(--light-muted);
  font-size: 0.8rem;
  margin: 0.4rem 0;
}

/* ============================================================
   SETTINGS PAGE
   ============================================================ */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.setting-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.setting-item label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: var(--white);
}
.setting-item label i {
  color: var(--blue);
  width: 1.4rem;
}
.setting-item select,
.setting-item input[type="checkbox"] {
  margin-bottom: 0.3rem;
}
.setting-item select {
  width: 100%;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
}
.setting-item select option {
  background: var(--card-bg);
  color: var(--white);
}
.setting-item input[type="checkbox"] {
  accent-color: var(--blue);
  margin-right: 0.3rem;
}
.param-slider { margin-bottom: 0.8rem; }
.param-slider label {
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
}
.param-slider input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}
.param-slider span {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--blue);
}
.setting-note {
  font-size: 0.7rem;
  color: var(--light-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   HELP / RESOURCES / RESEARCH
   ============================================================ */
.help-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.help-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
  transition: all var(--transition);
}
.help-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}
.help-card i {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 0.4rem;
}
.help-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
}
.help-card p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.help-card a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
}
.help-card a:hover { text-decoration: underline; }

.resource-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.resource-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}
.resource-item i {
  color: var(--blue);
  margin-right: 0.8rem;
}
.resource-item button {
  padding: 0.2rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.resource-item button:hover {
  border-color: var(--blue);
  color: var(--white);
}

/* ============================================================
   AI PAGE – Full Polish
   ============================================================ */
.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 0.5rem 0 1.2rem;
}
.ai-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.ai-tab {
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.ai-tab:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
}
.ai-tab.active {
  background: var(--blue-gradient);
  color: #fff;
  border-color: transparent;
}
.ai-header-right {
  font-weight: 700;
  color: var(--blue);
}

.ai-body {
  display: block;
}
.ai-tab-content {
  display: none;
}
.ai-tab-content.active { display: block; }

.chat-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  max-height: 420px;
  overflow-y: auto;
  margin-bottom: 1rem;
}
.chat-message {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  align-items: flex-start;
}
.chat-message.bot { flex-direction: row; }
.chat-message.user { flex-direction: row-reverse; }
.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-message.user .chat-avatar {
  background: rgba(255, 255, 255, 0.1);
}
.chat-text {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  max-width: 80%;
  font-size: 0.9rem;
  color: var(--white);
  word-wrap: break-word;
}
.chat-message.bot .chat-text {
  background: rgba(23, 60, 245, 0.08);
}
.chat-input-area {
  display: flex;
  gap: 0.5rem;
}
#chatInput {
  flex: 1;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  outline: none;
  transition: border var(--transition);
}
#chatInput:focus {
  border-color: var(--blue);
}
#chatInput::placeholder { color: var(--light-muted); }
#chatSendBtn {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: var(--radius);
  background: var(--blue-gradient);
  color: #fff;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
#chatSendBtn:hover {
  background: var(--blue-gradient-hover);
  transform: scale(1.05);
}

.chat-history-list {
  max-height: 400px;
  overflow-y: auto;
  margin-top: 0.8rem;
}
.history-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  margin-bottom: 0.4rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--muted);
}
.history-item:hover {
  border-color: var(--blue);
  color: var(--white);
}
.history-item .timestamp {
  font-size: 0.65rem;
  color: var(--light-muted);
}
.history-item .preview {
  font-size: 0.85rem;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.pricing-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  text-align: center;
}
.pricing-card.pro {
  border-color: var(--blue);
  background: rgba(23, 60, 245, 0.04);
}
.pricing-card h3 {
  font-weight: 700;
  color: var(--white);
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  margin: 0.4rem 0;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.pricing-card li { padding: 0.2rem 0; }

.review-btn {
  padding: 0.4rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  background: var(--blue-gradient);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
}
.review-btn:hover {
  background: var(--blue-gradient-hover);
  transform: scale(1.05);
}

.pro-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}
.pro-content ul {
  text-align: left;
  margin: 1rem 0;
  padding-left: 1.5rem;
  color: var(--muted);
}

/* ============================================================
   ABOUT / CONTACT / TERMS
   ============================================================ */
#about p {
  margin-bottom: 0.8rem;
  color: var(--muted);
}
#about em {
  color: var(--blue);
  font-style: normal;
}

.contact_page {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}
.contact-info {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.contact-info i {
  width: 1.2rem;
  color: var(--blue);
}
.contact-info input,
.contact-info textarea {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 0.6rem;
  outline: none;
}
.contact-info input:focus,
.contact-info textarea:focus {
  border-color: var(--blue);
}
.social-links-contact {
  margin-top: 1.5rem;
  text-align: center;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.social-link {
  color: var(--light-muted);
  font-size: 1.4rem;
  transition: all var(--transition);
}
.social-link:hover {
  color: var(--blue);
  transform: translateY(-3px);
}

#terms h3 {
  color: var(--blue);
  margin: 1.2rem 0 0.4rem;
}
#terms p {
  color: var(--muted);
  margin-bottom: 0.6rem;
}

/* ============================================================
   ACCOUNT PAGE
   ============================================================ */
.account-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}
.account-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
}
.account-card p {
  margin-bottom: 0.4rem;
  color: var(--muted);
}
.account-card strong { color: var(--white); }
.account-card input {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
  margin-bottom: 0.5rem;
  font-family: var(--font);
  outline: none;
}
.account-card input:focus { border-color: var(--blue); }
.change-credentials {
  margin: 0.8rem 0;
  border-top: 1px solid var(--border);
  padding-top: 0.8rem;
}
.testimonials { margin-top: 1rem; }
.testimonial {
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--blue);
  padding: 0.6rem 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   TECH PARTNER PANEL
   ============================================================ */
.tech-partner-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin: 1rem 0;
}
.tech-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tech-partner-lead {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.4rem 0 0.8rem;
}
.tech-partner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.tech-partner-btn {
  padding: 0.4rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--transition);
}
.tech-partner-btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  border-color: transparent;
}
.tech-partner-btn-primary:hover {
  background: var(--blue-gradient-hover);
}
.tech-partner-btn-secondary:hover {
  border-color: var(--blue);
  color: var(--white);
}

/* ============================================================
   ADMIN DASHBOARD
   ============================================================ */
#adminDashboardContainer .stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
#adminDashboardContainer .stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}
#adminDashboardContainer .stat-card h3 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--light-muted);
  font-weight: 600;
}
#adminDashboardContainer .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}
#adminDashboardContainer .progress-container {
  background: rgba(255, 255, 255, 0.06);
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  margin: 0.3rem 0;
}
#adminDashboardContainer .progress-fill {
  height: 100%;
  background: var(--blue-gradient);
}
#adminDashboardContainer .table-wrapper {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
#adminDashboardContainer .credentials-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--muted);
}
#adminDashboardContainer .credentials-table th,
#adminDashboardContainer .credentials-table td {
  padding: 0.6rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
#adminDashboardContainer .credentials-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--light-muted);
}
#adminDashboardContainer .remove-btn {
  background: none;
  border: none;
  color: #F87171;
  cursor: pointer;
}
#adminDashboardContainer .remove-btn:hover { color: #EF4444; }
#adminDashboardContainer .btn-primary {
  background: var(--blue-gradient);
  color: #fff;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
#adminDashboardContainer .btn-primary:hover {
  background: var(--blue-gradient-hover);
}

/* ============================================================
   LOADING OVERLAY
   ============================================================ */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
.loading-overlay.hidden { display: none; }
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay p {
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}

/* ============================================================
   THEME TOGGLE – Light & Dark (FIXED)
   ============================================================ */
body.light-theme {
  --navy: #F3F4F6;
  --surface: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: rgba(0, 0, 0, 0.08);
  --muted: #4B5563;
  --light-muted: #6B7280;
  --white: #1F2937;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 60px rgba(23, 60, 245, 0.04);
}
body.light-theme .app-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
body.light-theme .app-header .header-brand-text,
body.light-theme .app-header .header-brand-text span,
body.light-theme .app-header .header-time {
  color: var(--navy);
}
body.light-theme .app-header .logout-btn {
  color: var(--muted);
  border-color: var(--border);
}
body.light-theme .app-header .logout-btn:hover {
  background: var(--border);
  color: var(--navy);
}
body.light-theme .sidebar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}
body.light-theme .sidebar .nav-item { color: var(--muted); }
body.light-theme .sidebar .nav-item:hover {
  background: var(--navy);
  color: var(--navy);
}
body.light-theme .sidebar .nav-item.active {
  background: var(--blue-light);
  color: var(--blue);
}
body.light-theme .sidebar .user-name { color: var(--navy); }
body.light-theme .main-content { background: var(--navy); }
body.light-theme .price-panel,
body.light-theme .eo-panel,
body.light-theme .param-card,
body.light-theme .frequency-card,
body.light-theme .algo-card,
body.light-theme .scatter-container,
body.light-theme .setting-item,
body.light-theme .help-card,
body.light-theme .resource-item,
body.light-theme .contact-info,
body.light-theme .account-card,
body.light-theme .chat-container,
body.light-theme .pricing-card,
body.light-theme .tech-partner-panel,
body.light-theme .modal-container,
body.light-theme .summary-card,
body.light-theme .market-item {
  background: var(--surface);
  border-color: var(--border);
}
body.light-theme .price-panel .price-label,
body.light-theme .eo-panel .eo-subtitle,
body.light-theme .analysis-info,
body.light-theme .analysis-note,
body.light-theme .setting-note,
body.light-theme .contact-info p,
body.light-theme .account-card p,
body.light-theme .testimonial,
body.light-theme .resource-item,
body.light-theme .help-card p,
body.light-theme .pricing-card ul,
body.light-theme .recent-trades-table td,
body.light-theme .pro-content ul {
  color: var(--muted);
}
body.light-theme .price-panel .price-value,
body.light-theme .eo-panel .eo-title,
body.light-theme .page-header h1,
body.light-theme .dashboard-header h1,
body.light-theme .frequency-card h3,
body.light-theme .algo-card h3,
body.light-theme .setting-item label,
body.light-theme .help-card h3,
body.light-theme .account-card strong,
body.light-theme .pricing-card h3,
body.light-theme .summary-card .number,
body.light-theme .market-item .symbol,
body.light-theme .algo-value {
  color: var(--navy);
}
body.light-theme .eo-letter {
  background: var(--surface);
  border-color: var(--border);
  color: var(--muted);
}
body.light-theme .eo-letter:nth-child(odd) {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
}
body.light-theme .digit-circle {
  background: radial-gradient(circle at 30% 30%, var(--surface), var(--navy));
}
body.light-theme .chat-text {
  color: var(--navy);
  background: var(--navy);
}
body.light-theme .chat-message.bot .chat-text {
  background: var(--blue-light);
}
body.light-theme .history-item {
  border-color: var(--border);
  color: var(--muted);
}
body.light-theme .history-item:hover {
  border-color: var(--blue);
  color: var(--navy);
}
body.light-theme .trade-btn {
  border-color: var(--border);
  color: var(--muted);
}
body.light-theme .trade-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
body.light-theme .trade-btn.active {
  background: var(--blue-gradient);
  color: #fff;
}
body.light-theme .analyze-btn {
  background: var(--blue-gradient);
  color: #fff;
}
body.light-theme .analyze-btn:hover {
  background: var(--blue-gradient-hover);
}
body.light-theme .refresh-interval,
body.light-theme .setting-item select {
  background: var(--surface);
  border-color: var(--border);
  color: var(--navy);
}
body.light-theme .setting-item select option {
  background: var(--surface);
  color: var(--navy);
}
body.light-theme .param-card select,
body.light-theme .param-card input {
  color: var(--navy);
}
body.light-theme .param-card select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}
body.light-theme .contact-info input,
body.light-theme .contact-info textarea,
body.light-theme .account-card input {
  background: var(--navy);
  border-color: var(--border);
  color: var(--navy);
}
body.light-theme .live-badge { background: #10B981; color: #fff; }
body.light-theme .dashboard-badge {
  background: var(--blue-gradient);
  color: #fff;
}
body.light-theme .status-dot { background: #10B981; }
body.light-theme .progress { background: var(--navy); }
body.light-theme .progress-fill { background: var(--blue-gradient); }
body.light-theme .loading-overlay {
  background: rgba(255, 255, 255, 0.85);
}
body.light-theme .spinner {
  border-color: var(--border);
  border-top-color: var(--blue);
}
body.light-theme .login-container {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
}
body.light-theme .login-brand-text { color: var(--navy); }
body.light-theme .login-tagline { color: var(--muted); }
body.light-theme .login-form .form-control {
  background: var(--navy);
  border-color: var(--border);
  color: var(--navy);
}
body.light-theme .login-form .form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 60, 245, 0.08);
}
body.light-theme .login-form label { color: var(--muted); }
body.light-theme .checkbox-container { color: var(--muted); }
body.light-theme .checkmark {
  background: var(--navy);
  border-color: var(--border);
}
body.light-theme .login-note { color: var(--muted); }
body.light-theme .login-wa-btn { background: #25D366; color: #fff; }
body.light-theme .login-deriv-btn {
  background: var(--navy);
  color: var(--navy);
  border-color: var(--border);
}
body.light-theme .login-deriv-btn:hover { background: var(--border); }
body.light-theme .btn-secondary {
  background: var(--navy);
  border-color: var(--border);
  color: var(--navy);
}
body.light-theme .btn-secondary:hover { background: var(--border); }
body.light-theme .btn-outline {
  border-color: var(--border);
  color: var(--navy);
}
body.light-theme .btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}
body.light-theme .modal-body { color: var(--muted); }
body.light-theme .summary-card .label { color: var(--muted); }
body.light-theme .market-item .price { color: var(--blue); }
body.light-theme .market-item .change.positive { color: #10B981; }
body.light-theme .market-item .change.negative { color: #EF4444; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .charts-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hamburger { display: block; }
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); }
  .main-content {
    margin-left: 0;
    padding: 1rem;
  }
  .app-header {
    padding: 0 1rem;
    height: 60px;
  }
  .header-slogan { display: none; }
  .logout-text { display: none; }
  .logout-btn { padding: 0.3rem 0.8rem; }
  .price-panel {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1rem;
  }
  .price-divider { display: none; }
  .price-item { flex: 1 1 40%; }
  .price-status { flex: 1 1 100%; justify-content: center; }
  .controls-grid { grid-template-columns: 1fr 1fr; }
  .prediction-panel { gap: 1.5rem; }
  .digit-circle { width: 140px; height: 140px; }
  .big-digit { font-size: 3.2rem; }
  .login-container { padding: 2rem 1.5rem; }
  .login-shape-1,
  .login-shape-2,
  .login-shape-3 { display: none; }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .dashboard-badge { align-self: flex-start; }
  .algo-item { flex-wrap: wrap; }
  .algo-item span:first-child { width: 80px; font-size: 0.7rem; }
  .algo-value { width: 30px; font-size: 0.7rem; }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .market-overview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .controls-grid { grid-template-columns: 1fr; }
  .trade-type-bar { gap: 0.3rem; }
  .trade-btn { font-size: 0.7rem; padding: 0.3rem 0.8rem; }
  .analyze-row {
    flex-direction: column;
    align-items: stretch;
  }
  .analyze-btn { justify-content: center; }
  .pricing-cards { grid-template-columns: 1fr; }
  .login-container { padding: 1.5rem 1rem; }
  .price-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .price-item { flex: 1 1 auto; text-align: center; }
  .price-status { justify-content: center; }
  .prediction-panel { flex-direction: column; align-items: center; }
  .pie-container canvas { max-width: 120px; max-height: 120px; }
  .main-content { padding: 0.8rem; }
  .dashboard-header h1 { font-size: 1.4rem; }
  .page-header h1 { font-size: 1.4rem; }
  .help-cards { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .account-card-grid { grid-template-columns: 1fr; }
  .contact_page { grid-template-columns: 1fr; }
  .ai-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ai-tab { white-space: nowrap; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .market-overview { grid-template-columns: 1fr 1fr; }
  .recent-trades-table { font-size: 0.75rem; }
  .recent-trades-table th,
  .recent-trades-table td { padding: 0.3rem 0.4rem; }
}