@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --background: #f8fafc;
  --foreground: #1f2937;
  --card: #ffffff;
  --muted: #64748b;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--foreground);
  background:
    radial-gradient(circle at 20% 12%, rgba(14, 165, 233, 0.28), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(16, 185, 129, 0.2), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #10243b 52%, #07111f 100%);
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-container {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  padding: 34px;
  box-shadow: var(--shadow);
  text-align: center;
}

.logo-container {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.logo-icon {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 38px;
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  box-shadow: 0 14px 35px rgba(14, 165, 233, 0.34);
}

.login-container h1,
header h1 {
  margin: 0;
  line-height: 1.12;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #1f2937;
}

.welcome-section {
  margin: 22px 0;
}

.welcome-text {
  margin: 0;
  color: #0369a1;
  font-size: 1.45rem;
}

.welcome-subtitle,
.credentials-text,
.disclaimer-text {
  color: var(--muted);
  margin: 8px 0 0;
}

form {
  display: grid;
  gap: 14px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  background: white;
  color: #111827;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.country-select {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  appearance: none;
}

.country-picker {
  position: relative;
}

.country-arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.76rem;
}

.country-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 30;
  display: none;
  max-height: 250px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow);
}

.country-picker.active .country-menu {
  display: grid;
  gap: 4px;
}

.country-option {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: white;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
}

.country-option:hover {
  background: #eff6ff;
}

.flag-img {
  flex: 0 0 auto;
  width: 34px;
  height: 22px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.zip-form-group {
  display: grid;
  gap: 6px;
  text-align: left;
}

.zip-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #374151;
  font-size: 0.92rem;
}

.checkbox-container input {
  width: 18px;
  height: 18px;
}

.terms-link {
  padding: 0;
  border: 0;
  color: var(--primary);
  background: transparent;
  text-decoration: underline;
}

.login-button,
.get-logins-button,
.deriv-link,
.btn {
  border: 0;
  border-radius: 12px;
  padding: 13px 20px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}

.login-button:hover,
.get-logins-button:hover,
.deriv-link:hover,
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.login-button,
.btn-primary {
  color: white;
  background: linear-gradient(135deg, #0284c7, #0f766e);
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.24);
}

.credentials-section {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.get-logins-button {
  margin-top: 10px;
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
}

.disclaimer-section {
  margin-top: 16px;
  padding: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
}

.deriv-link {
  margin-top: 16px;
  width: 100%;
  color: white;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.error-message {
  display: none;
  margin: 0;
  padding: 10px;
  border-radius: 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.9rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.modal-content,
.risk-modal {
  width: min(92vw, 560px);
  max-height: 90vh;
  overflow-y: auto;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.modal-header,
.modal-footer {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
  justify-content: flex-end;
}

.modal-body {
  text-align: left;
  padding: 22px;
  color: #374151;
}

.modal-body h4,
.modal-body h5 {
  color: #111827;
  margin-bottom: 8px;
}

.modal-body p,
.modal-body li {
  line-height: 1.55;
}

.close-button,
.close-button-secondary,
.accept-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
}

.close-button {
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 24px;
  color: #64748b;
  background: #f1f5f9;
}

.accept-button {
  color: white;
  background: var(--success);
}

.close-button-secondary {
  background: #e5e7eb;
  color: #374151;
}

#dashboard {
  min-height: 100vh;
  --background: #07111f;
  --foreground: #f8fafc;
  --card: #101b2d;
  --muted: #94a3b8;
  --muted-foreground: #cbd5e1;
  --border: #20314a;
  background:
    linear-gradient(180deg, rgba(14, 165, 233, 0.12), transparent 240px),
    radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.13), transparent 30%),
    var(--background);
  color: var(--foreground);
  transition: background 0.2s, color 0.2s;
}

#dashboard.dark {
  --background: #f6f8fb;
  --foreground: #172033;
  --card: #ffffff;
  --muted: #64748b;
  --muted-foreground: #64748b;
  --border: #dbe4ef;
  background: linear-gradient(180deg, #eef7ff, #f8fafc 280px);
}

.container {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.theme-toggle {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 58px;
  height: 30px;
  border-radius: 999px;
  background: #0ea5e9;
  padding: 3px;
  cursor: pointer;
}

.theme-toggle-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

#dashboard.dark .theme-toggle {
  background: #cbd5e1;
}

#dashboard.dark .theme-toggle-circle {
  transform: translateX(28px);
}

.logout-btn,
.risk-calculator-btn {
  position: absolute;
  right: 20px;
  z-index: 10;
}

.logout-btn {
  top: 20px;
}

.risk-calculator-btn {
  top: 72px;
  background: linear-gradient(135deg, #f59e0b, #dc2626);
  color: white;
}

header {
  text-align: center;
  padding-top: 46px;
  margin-bottom: 24px;
}

#dashboard.dark header h1,
#dashboard.dark .login-container h1 {
  color: var(--foreground);
}

#dashboard header h1 {
  color: var(--foreground);
}

.header-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.btn-sm {
  padding: 10px 14px;
  min-height: 38px;
  font-size: 0.88rem;
}

.btn-lg {
  min-height: 50px;
  padding: 13px 24px;
}

.btn-outline {
  color: var(--foreground);
  background: var(--card);
  border: 1px solid var(--border);
}

.btn-destructive {
  color: white;
  background: linear-gradient(135deg, #ef4444, #991b1b);
}

.btn-success {
  color: white;
  background: linear-gradient(135deg, #22c55e, #047857);
}

.bg-purple-500 {
  color: white;
  background: linear-gradient(135deg, #2563eb, #0f766e);
}

.bg-orange-500 {
  color: white;
  background: linear-gradient(135deg, #f59e0b, #b45309);
}

.btn-even {
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #0369a1);
}

.btn-odd {
  color: white;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.predict-btn {
  animation: predict-glow 1.7s infinite alternate;
}

@keyframes predict-glow {
  from { box-shadow: 0 0 8px rgba(14, 165, 233, 0.48); }
  to { box-shadow: 0 0 24px rgba(16, 185, 129, 0.74); }
}

.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  min-width: 230px;
  transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 20;
  display: none;
}

.dropdown.active .dropdown-content {
  display: block;
}

.dropdown-item {
  padding: 12px 14px;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.prediction-result-card,
.price-display-container,
.analysis-btn-container,
.grid-container,
.strategy-container,
.progress-container,
.prediction-container,
.chart-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.prediction-result-card {
  width: min(760px, 100%);
  margin: 0 auto 18px;
  padding: 16px 24px;
  text-align: center;
  border: 1px solid rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(14, 165, 233, 0.08));
}

.prediction-result-title {
  color: var(--success);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.prediction-result-value {
  font-size: clamp(1.2rem, 3.5vw, 1.6rem);
  font-weight: 800;
}

.prediction-result-market {
  margin-top: 8px;
  color: var(--muted-foreground);
  font-size: 0.84rem;
}

.price-display-container {
  width: min(520px, 100%);
  margin: 0 auto 18px;
}

.price-card {
  padding: 18px;
  text-align: center;
}

.price-title {
  color: var(--muted-foreground);
  font-weight: 700;
  margin-bottom: 8px;
}

.price-value {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 900;
  color: #22c55e;
  font-variant-numeric: tabular-nums;
}

.analysis-btn-container {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto 24px;
  padding: 18px;
  text-align: center;
}

.loading-spinner {
  display: none;
  width: 32px;
  height: 32px;
  margin: 14px auto 0;
  border: 4px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 22px;
  margin-bottom: 22px;
}

.grid-title {
  text-align: center;
  margin: 0 0 14px;
  color: var(--foreground);
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 10px;
}

.number-btn {
  border-radius: 50%;
  aspect-ratio: 1;
  min-height: 48px;
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.number-btn.active {
  color: white;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  border-color: transparent;
}

.strategy-container {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  margin-bottom: 22px;
}

.progress-container {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 22px;
}

.progress-bar {
  height: 28px;
  border-radius: 999px;
  background: var(--background);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
  transition: width 0.2s;
}

.progress-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.prediction-container {
  padding: 20px;
  margin-bottom: 22px;
  text-align: center;
}

.prediction-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.prediction-number {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, #020617, #0284c7);
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.28);
}

.countdown,
.winning-message {
  margin-top: 14px;
  font-weight: 800;
}

.charts-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.chart-card {
  overflow: hidden;
}

.chart-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.chart-title {
  margin: 0;
  font-size: 1.05rem;
}

.chart-content {
  height: 330px;
  padding: 16px;
  position: relative;
}

canvas {
  width: 100%;
  height: 100%;
}

.digit-display {
  position: absolute;
  right: 16px;
  bottom: 14px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.82);
  color: white;
  font-weight: 800;
}

.trade-notification {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: min(360px, calc(100vw - 40px));
  padding: 16px 18px;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, #111827, #2563eb);
  box-shadow: var(--shadow);
  transform: translateY(130%);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}

.trade-notification.show {
  opacity: 1;
  transform: translateY(0);
}

.trade-notification-title {
  font-weight: 900;
  margin-bottom: 5px;
}

.risk-modal {
  padding: 28px;
  color: white;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.risk-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.risk-modal h2 {
  margin: 0;
  font-size: 1.5rem;
}

.risk-modal label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.risk-modal input {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.risk-modal input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.risk-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.risk-result,
.risk-tips {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.risk-row {
  margin-top: 12px;
}

.risk-label {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.risk-value {
  margin-top: 3px;
  font-size: 1.35rem;
  font-weight: 900;
}

.risk-tips ul {
  margin-bottom: 0;
  padding-left: 20px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .container {
    padding-top: 90px;
  }

  .logout-btn {
    top: 20px;
  }

  .risk-calculator-btn {
    top: 70px;
  }

  header {
    padding-top: 34px;
  }

  .grid-container,
  .charts-container {
    grid-template-columns: 1fr;
  }

  .strategy-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compact circles */
.number-grid {
  grid-template-columns: repeat(5, 54px) !important;
  justify-content: center;
  gap: 12px !important;
}

.number-btn {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  aspect-ratio: 1;
  font-size: 0.92rem !important;
}

.account-profile-avatar {
  width: 38px !important;
  height: 38px !important;
  font-size: 0.95rem !important;
}

.settings-profile-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.9rem !important;
}

.settings-theme-switch {
  width: 48px !important;
  height: 26px !important;
}

.settings-theme-switch span {
  top: 4px !important;
  left: 4px !important;
  width: 18px !important;
  height: 18px !important;
}

.settings-theme-switch.active span {
  transform: translateX(22px) !important;
}

@media (max-width: 620px) {
  .number-grid {
    grid-template-columns: repeat(5, 42px) !important;
    gap: 8px !important;
  }

  .number-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 360px) {
  .number-grid {
    grid-template-columns: repeat(5, 38px) !important;
    gap: 6px !important;
  }

  .number-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* Final premium-only ROT access styling */
.profile-type-options button.premium-locked {
  color: #8a6b00 !important;
  background: #fff7d6 !important;
  border-color: #f2cf55 !important;
  cursor: not-allowed;
  opacity: 0.82;
}

.user-status.premium {
  color: #5b4300;
  background: linear-gradient(90deg, #f9d84a, #f0b90b);
  border-color: #d9a600;
}

.premium-user-button {
  padding: 7px 9px;
  color: #062117;
  background: linear-gradient(90deg, #00e5ff, #00f27f);
  border: 0;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

#dashboard:not(.dark) .profile-type-options button.premium-locked {
  color: #f6cf47 !important;
  background: #28220d !important;
  border-color: #806b19 !important;
}

/* Telegram-inspired floating mobile dock */
@media (max-width: 820px) {
  .mobile-bottom-nav,
  #dashboard.dark .mobile-bottom-nav,
  #dashboard:not(.dark) .mobile-bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: min(94vw, 430px) !important;
    min-height: 72px !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    transform: translateX(-50%) !important;
    background: rgba(255, 255, 255, 0.97) !important;
    border: 1px solid #e4e9ef !important;
    border-radius: 36px !important;
    box-shadow: 0 10px 34px rgba(20, 45, 70, 0.18) !important;
    backdrop-filter: blur(18px) !important;
  }

  .mobile-nav-item,
  #dashboard.dark .mobile-nav-item,
  #dashboard:not(.dark) .mobile-nav-item {
    min-width: 0 !important;
    min-height: 60px !important;
    padding: 7px 8px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #1f2937 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
  }

  .mobile-nav-icon {
    width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
    display: grid !important;
    place-items: center !important;
  }

  .mobile-nav-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-item.active,
  #dashboard.dark .mobile-nav-item.active,
  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #168acd !important;
    background: #e6f5ff !important;
    box-shadow: inset 0 0 0 1px rgba(33, 150, 243, 0.08) !important;
  }

  .mobile-nav-item.active::after {
    display: none !important;
  }

  .mobile-nav-item:active {
    transform: scale(0.97);
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav,
  #dashboard.dark .mobile-bottom-nav,
  #dashboard:not(.dark) .mobile-bottom-nav {
    width: calc(100vw - 16px) !important;
    min-height: 66px !important;
  }

  .mobile-nav-item,
  #dashboard.dark .mobile-nav-item,
  #dashboard:not(.dark) .mobile-nav-item {
    min-height: 54px !important;
    font-size: 0.68rem !important;
  }

  .mobile-nav-icon,
  .mobile-nav-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
  }
}

/* Clear mobile navigation icons in both themes */
@media (max-width: 820px) {
  #dashboard.dark .mobile-bottom-nav {
    background: rgba(255,255,255,.98) !important;
    border-color: #d7e0e8 !important;
  }

  #dashboard.dark .mobile-nav-item {
    color: #263442 !important;
  }

  #dashboard.dark .mobile-nav-item .mobile-nav-icon {
    color: #263442 !important;
  }

  #dashboard.dark .mobile-nav-item.active {
    color: #087fbe !important;
    background: #dff3ff !important;
  }

  #dashboard.dark .mobile-nav-item.active .mobile-nav-icon {
    color: #087fbe !important;
  }

  #dashboard:not(.dark) .mobile-bottom-nav {
    background: rgba(5,14,20,.98) !important;
    border-color: #263b47 !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.42) !important;
  }

  #dashboard:not(.dark) .mobile-nav-item {
    color: #d7e3e9 !important;
  }

  #dashboard:not(.dark) .mobile-nav-item .mobile-nav-icon {
    color: #f3f8fa !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
  }

  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #50c8ff !important;
    background: #102f40 !important;
    box-shadow: inset 0 0 0 1px rgba(80,200,255,.24) !important;
  }

  #dashboard:not(.dark) .mobile-nav-item.active .mobile-nav-icon {
    color: #50c8ff !important;
    filter: drop-shadow(0 0 6px rgba(80,200,255,.3));
  }

  .mobile-nav-icon svg {
    stroke-width: 2.15 !important;
  }
}

/* Premium-only ROT access */
.profile-type-options button.premium-locked {
  color: #8a6b00 !important;
  background: #fff7d6 !important;
  border-color: #f2cf55 !important;
  cursor: not-allowed;
  opacity: 0.82;
}

.user-status.premium {
  color: #5b4300;
  background: linear-gradient(90deg, #f9d84a, #f0b90b);
  border-color: #d9a600;
}

.premium-user-button {
  padding: 7px 9px;
  color: #062117;
  background: linear-gradient(90deg, #00e5ff, #00f27f);
  border: 0;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 900;
  white-space: nowrap;
}

#dashboard:not(.dark) .profile-type-options button.premium-locked {
  color: #f6cf47 !important;
  background: #28220d !important;
  border-color: #806b19 !important;
}

/* Personal account and compact Settings controls */
.account-profile-card {
  width: 100%;
  margin: 0 0 18px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  background: #ffffff;
  border: 1px solid #d9eee4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(8, 44, 31, 0.07);
}

.account-profile-avatar,
.settings-profile-avatar {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #001c15;
  background: linear-gradient(135deg, #00e5ff, #00f27f);
  border-radius: 50%;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 900;
}

.account-profile-avatar {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.account-profile-label {
  color: #07966c;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.account-profile-card h2 {
  margin: 2px 0 1px;
  color: #101828;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.16rem;
}

.account-profile-card p {
  margin: 0;
  color: #667085;
  font-size: 0.76rem;
}

.settings-list {
  margin: 20px 22px 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}

.settings-profile-row,
.settings-account-type,
.settings-theme-row {
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.settings-profile-row,
.settings-account-type {
  border-bottom: 1px solid #e8edf3;
}

.settings-profile-avatar {
  width: 45px;
  height: 45px;
  font-size: 1.05rem;
}

.settings-profile-row > div,
.settings-theme-row > div,
.settings-account-type > div:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.settings-profile-row strong,
.settings-account-type strong,
.settings-theme-row strong {
  color: #172033;
  font-size: 0.96rem;
}

.settings-profile-row p,
.settings-account-type p,
.settings-theme-row p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
}

.settings-account-type,
.settings-theme-row {
  justify-content: space-between;
}

.profile-type-options {
  flex: 0 0 auto;
  display: flex;
  gap: 5px;
}

.profile-type-options button {
  min-width: 42px;
  padding: 8px 9px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #dce4ee;
  border-radius: 8px;
  font-size: 0.73rem;
  font-weight: 900;
}

.profile-type-options button.selected {
  color: #001c15;
  background: linear-gradient(135deg, #00e5ff, #00f27f);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(0, 229, 255, 0.18);
}

.settings-theme-switch {
  position: relative;
  flex: 0 0 auto;
  width: 54px;
  height: 30px;
  padding: 0;
  background: #aab2bd;
  border: 0;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.settings-theme-switch span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.settings-theme-switch.active {
  background: linear-gradient(90deg, #00bfd4, #00d875);
}

.settings-theme-switch.active span {
  transform: translateX(24px);
}

#dashboard:not(.dark) .account-profile-card,
#dashboard:not(.dark) .settings-list {
  background: #071510;
  border-color: #183c30;
}

#dashboard:not(.dark) .account-profile-card h2,
#dashboard:not(.dark) .settings-profile-row strong,
#dashboard:not(.dark) .settings-account-type strong,
#dashboard:not(.dark) .settings-theme-row strong {
  color: #f8fafc;
}

#dashboard:not(.dark) .account-profile-card p,
#dashboard:not(.dark) .settings-profile-row p,
#dashboard:not(.dark) .settings-account-type p,
#dashboard:not(.dark) .settings-theme-row p {
  color: #8ea59c;
}

#dashboard:not(.dark) .settings-profile-row,
#dashboard:not(.dark) .settings-account-type {
  border-bottom-color: #183c30;
}

#dashboard:not(.dark) .profile-type-options button {
  color: #b8ccc3;
  background: #10271f;
  border-color: #245443;
}

#dashboard:not(.dark) .profile-type-options button.selected {
  color: #001c15;
  background: linear-gradient(135deg, #00e5ff, #00f27f);
  border-color: transparent;
}

@media (max-width: 520px) {
  .account-profile-card {
    margin-bottom: 14px;
    padding: 13px 14px;
  }

  .settings-list {
    margin: 14px;
  }

  .settings-account-type {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-type-options {
    width: 100%;
  }

  .profile-type-options button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .login-container {
    padding: 26px 20px;
  }

  .theme-toggle,
  .logout-btn,
  .risk-calculator-btn {
    position: static;
    margin: 0 8px 10px 0;
  }

  .container {
    padding-top: 18px;
  }

  header {
    padding-top: 8px;
  }

  .header-buttons,
  .prediction-buttons {
    align-items: stretch;
  }

  .header-buttons > *,
  .header-buttons .btn,
  .prediction-buttons .btn {
    width: 100%;
  }

  .strategy-container,
  .risk-actions {
    grid-template-columns: 1fr;
  }

  .number-grid {
    grid-template-columns: repeat(5, minmax(34px, 1fr));
    gap: 8px;
  }
}

/* White and yellow exchange theme */
:root {
  --background: #f5f5f5;
  --foreground: #1e2329;
  --card: #ffffff;
  --muted: #707a8a;
  --muted-foreground: #5e6673;
  --border: #e6e8ea;
  --primary: #f0b90b;
  --primary-dark: #d9a500;
  --shadow: 0 16px 42px rgba(30, 35, 41, 0.09);
}

html {
  background: #f5f5f5;
  color-scheme: light;
}

body {
  color: #1e2329;
  background:
    radial-gradient(circle at 50% -18%, rgba(240,185,11,.14), transparent 34%),
    #f5f5f5;
}

.login-page {
  background:
    linear-gradient(rgba(30,35,41,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30,35,41,.025) 1px, transparent 1px),
    #f5f5f5;
  background-size: 48px 48px;
}

.login-page::before {
  background: rgba(240,185,11,.16);
}

.login-container {
  color: #1e2329;
  background: rgba(255,255,255,.97);
  border-color: #e6e8ea;
  box-shadow: 0 30px 80px rgba(30,35,41,.12);
}

.login-container h1 {
  color: #1e2329;
}

.welcome-subtitle,
.credentials-text,
.disclaimer-text {
  color: #707a8a;
}

input[type="text"],
input[type="password"],
input[type="number"],
.country-select {
  color: #1e2329;
  background: #ffffff;
  border-color: #d8dce1;
}

.country-menu,
.country-option {
  color: #1e2329;
  background: #ffffff;
}

.country-option:hover {
  background: #f5f5f5;
}

.checkbox-container {
  color: #474d57;
}

.disclaimer-section {
  color: #8b6800;
  background: #fffaf0;
  border-color: #f6df9a;
}

#dashboard {
  --background: #f5f5f5;
  --foreground: #1e2329;
  --card: #ffffff;
  --muted: #707a8a;
  --muted-foreground: #5e6673;
  --border: #e6e8ea;
  color-scheme: light;
  background:
    radial-gradient(circle at 50% -12%, rgba(240,185,11,.1), transparent 25%),
    #f5f5f5;
}

#dashboard.dark {
  --background: #0b0e11;
  --foreground: #eaecef;
  --card: #181a20;
  --muted: #848e9c;
  --muted-foreground: #aeb4bc;
  --border: #2b3139;
  color-scheme: dark;
  background:
    radial-gradient(circle at 50% -10%, rgba(240,185,11,.08), transparent 28%),
    #0b0e11;
}

.theme-toggle {
  background: #f0b90b;
  border-color: #d9a500;
}

.theme-toggle-circle {
  background: #ffffff;
}

#dashboard.dark .theme-toggle {
  background: #2b3139;
  border-color: #3a414b;
}

#dashboard.dark .theme-toggle-circle {
  background: #f0b90b;
}

.prediction-result-card,
.price-display-container,
.analysis-btn-container,
.grid-container,
.strategy-container,
.progress-container,
.prediction-container,
.chart-card,
.digit-leaders {
  box-shadow: 0 10px 30px rgba(30,35,41,.07);
}

#dashboard.dark .prediction-result-card,
#dashboard.dark .price-display-container,
#dashboard.dark .analysis-btn-container,
#dashboard.dark .grid-container,
#dashboard.dark .strategy-container,
#dashboard.dark .progress-container,
#dashboard.dark .prediction-container,
#dashboard.dark .chart-card,
#dashboard.dark .digit-leaders {
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.chart-header {
  background: #fafafa;
}

#dashboard.dark .chart-header {
  background: rgba(255,255,255,.015);
}

.modal-content,
.risk-modal {
  color: #1e2329;
  background: #ffffff;
  border-color: #e6e8ea;
}

.modal-body {
  color: #5e6673;
}

.modal-body h4,
.modal-body h5 {
  color: #1e2329;
}

.modal-header,
.modal-footer {
  border-color: #e6e8ea;
}

.close-button {
  color: #5e6673;
  background: #f5f5f5;
}

.risk-modal input {
  color: #1e2329;
  background: #f5f5f5;
  border-color: #d8dce1;
}

.risk-modal input::placeholder {
  color: #848e9c;
}

.risk-result,
.risk-tips {
  background: #fafafa;
  border-color: #e6e8ea;
}

#dashboard.dark .modal-content,
#dashboard.dark .risk-modal {
  color: #eaecef;
  background: #181a20;
  border-color: #2b3139;
}

/* Restored original blue, teal and green colour theme */
:root {
  --background: #f8fafc;
  --foreground: #1f2937;
  --card: #ffffff;
  --muted: #64748b;
  --muted-foreground: #6b7280;
  --border: #e5e7eb;
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --shadow: 0 20px 60px rgba(15,23,42,.12);
}

html {
  background: #07111f;
  color-scheme: light;
}

body {
  color: #1f2937;
  background:
    radial-gradient(circle at 20% 12%, rgba(14,165,233,.28), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,.2), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #10243b 52%, #07111f 100%);
}

.login-page {
  background:
    radial-gradient(circle at 20% 12%, rgba(14,165,233,.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,.14), transparent 30%);
}

.login-page::before {
  background: rgba(14,165,233,.11);
}

.login-container {
  color: #1f2937;
  background: rgba(255,255,255,.97);
  border-color: rgba(255,255,255,.52);
  box-shadow: var(--shadow);
}

.login-container h1 {
  color: #1f2937;
}

.logo-icon {
  color: #ffffff;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  box-shadow: 0 14px 35px rgba(14,165,233,.34);
}

.welcome-text,
.terms-link,
.prediction-result-title {
  color: #0369a1;
}

input[type="text"],
input[type="password"],
input[type="number"],
.country-select,
.country-menu,
.country-option {
  color: #111827;
  background: #ffffff;
  border-color: #e5e7eb;
}

input:focus,
.country-select:focus-visible {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.checkbox-container {
  color: #374151;
}

.checkbox-container input {
  accent-color: #3b82f6;
}

.login-button,
.btn-primary,
.predict-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7, #0f766e) !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(14,116,144,.24);
}

.login-button:hover,
.btn-primary:hover,
.predict-btn:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0369a1, #0d9488) !important;
  border-color: transparent !important;
}

.get-logins-button,
.btn-success,
.bg-purple-500,
.btn-even {
  color: #ffffff !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: transparent !important;
}

.btn-odd {
  color: #ffffff !important;
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border-color: transparent !important;
}

.bg-orange-500,
.risk-calculator-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  border-color: transparent !important;
}

.disclaimer-section {
  color: #9a3412;
  background: #fff7ed;
  border-color: #fed7aa;
}

#dashboard {
  --background: #07111f;
  --foreground: #f8fafc;
  --card: #101b2d;
  --muted: #94a3b8;
  --muted-foreground: #cbd5e1;
  --border: #20314a;
  color-scheme: dark;
  background:
    linear-gradient(180deg, rgba(14,165,233,.12), transparent 240px),
    radial-gradient(circle at 85% 10%, rgba(16,185,129,.13), transparent 30%),
    #07111f;
}

#dashboard.dark {
  --background: #f6f8fb;
  --foreground: #172033;
  --card: #ffffff;
  --muted: #64748b;
  --muted-foreground: #64748b;
  --border: #dbe4ef;
  color-scheme: light;
  background: linear-gradient(180deg, #eef7ff, #f8fafc 280px);
}

.theme-toggle {
  background: #0ea5e9;
  border-color: transparent;
}

.theme-toggle-circle {
  background: #ffffff;
}

#dashboard.dark .theme-toggle {
  background: #cbd5e1;
}

#dashboard.dark .theme-toggle-circle {
  background: #ffffff;
}

.prediction-result-card {
  border-color: rgba(16,185,129,.5);
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(14,165,233,.08));
}

.prediction-result-title {
  color: #10b981;
}

.price-display-container {
  border-top-color: #10b981;
}

.price-value {
  color: #22c55e;
}

.number-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
  border-color: transparent !important;
  box-shadow: 0 7px 18px rgba(14,165,233,.22);
}

.number-btn.scan-cursor {
  color: #06233a;
  background: #e0f2fe;
  border-color: #0ea5e9;
  box-shadow:
    0 0 0 5px rgba(14,165,233,.16),
    0 10px 24px rgba(14,165,233,.24);
}

.number-btn.scan-cursor::after {
  background: #10b981;
}

.prediction-number {
  color: #ffffff !important;
  background: linear-gradient(135deg, #020617, #0284c7) !important;
  border-color: transparent !important;
  box-shadow: 0 16px 30px rgba(14,165,233,.28);
}

.progress-fill {
  background: linear-gradient(90deg, #22c55e, #0ea5e9);
}

.trade-notification {
  color: #ffffff !important;
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  border-color: transparent !important;
}

.premium-access-banner {
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(115deg, #0284c7, #0f766e);
  border-color: rgba(255,255,255,.18);
  box-shadow: 0 12px 30px rgba(14,116,144,.24);
}

.premium-kicker {
  color: #06233a;
  background: #dff8ec;
}

.premium-subtitle {
  color: #dbeafe;
}

.premium-access-button {
  color: #06233a;
  background: #ffffff;
  border-color: #ffffff;
}

.premium-access-button:hover {
  color: #ffffff;
  background: #0b5f57;
}

.simulation-badge,
.account-connected-status {
  color: #064e3b;
  background: #dff8ec;
  border-color: #66d7a7;
}

.simulation-badge > span,
.account-connected-icon {
  color: #ffffff;
  background: #10b981;
}

header::after {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #7dd3fc;
}

/* High-contrast yellow controls */
.login-button,
.btn-primary,
.bg-orange-500,
.btn-odd,
.predict-btn,
.accept-button,
.number-btn.active,
.prediction-number,
.trade-notification,
.risk-calculator-btn {
  color: #0b0e11 !important;
  background: #f0b90b !important;
  border: 1px solid #c99400 !important;
  font-weight: 800;
  text-shadow: none;
  box-shadow: 0 8px 22px rgba(240,185,11,.24);
}

.login-button:hover,
.btn-primary:hover,
.bg-orange-500:hover,
.btn-odd:hover,
.predict-btn:hover,
.accept-button:hover,
.number-btn.active:hover,
.risk-calculator-btn:hover {
  color: #000000 !important;
  background: #f8d33a !important;
  border-color: #b78600 !important;
}

.login-button:focus-visible,
.btn-primary:focus-visible,
.bg-orange-500:focus-visible,
.btn-odd:focus-visible,
.predict-btn:focus-visible,
.accept-button:focus-visible,
.number-btn.active:focus-visible,
.risk-calculator-btn:focus-visible {
  outline: 3px solid #1e2329;
  outline-offset: 3px;
}

.welcome-text,
.terms-link,
.prediction-result-title {
  color: #8a6800;
  font-weight: 800;
}

#dashboard.dark .welcome-text,
#dashboard.dark .terms-link,
#dashboard.dark .prediction-result-title {
  color: #f8d33a;
}

header::after {
  color: #664d00;
  background: #fff6d6;
  border-color: #d4a500;
  font-weight: 900;
}

#dashboard.dark header::after {
  color: #f8d33a;
  background: rgba(240,185,11,.1);
  border-color: rgba(240,185,11,.45);
}

.leader-label,
.grid-title,
.chart-title,
.price-title {
  color: #313740;
}

#dashboard.dark .leader-label,
#dashboard.dark .grid-title,
#dashboard.dark .chart-title,
#dashboard.dark .price-title {
  color: #eaecef;
}

.bot-online-status {
  width: fit-content;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #064e3b;
  background: #dff8ec;
  border: 1px solid #66d7a7;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 7px 20px rgba(14,203,129,.14);
}

.connection-statuses {
  margin: 0 auto 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.account-connected-status {
  width: fit-content;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #513d00;
  background: #fff4c2;
  border: 1px solid #ddb422;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .07em;
  box-shadow: 0 7px 20px rgba(240,185,11,.16);
}

.account-connected-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #0b0e11;
  background: #f0b90b;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}

.bot-online-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0ecb81;
  box-shadow: 0 0 0 4px rgba(14,203,129,.16);
}

.bot-online-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(14,203,129,.45);
  border-radius: 50%;
  animation: bot-online-pulse 1.8s ease-out infinite;
}

@keyframes bot-online-pulse {
  0% {
    opacity: .8;
    transform: scale(.55);
  }
  80%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

#dashboard.dark .bot-online-status {
  color: #65e6b3;
  background: rgba(14,203,129,.11);
  border-color: rgba(14,203,129,.38);
}

#dashboard.dark .account-connected-status {
  color: #f8d33a;
  background: rgba(240,185,11,.1);
  border-color: rgba(240,185,11,.42);
}

@media (prefers-reduced-motion: reduce) {
  .bot-online-dot::after {
    animation: none;
  }
}

.chart-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.simulation-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  color: #5c4600;
  background: #fff4c2;
  border: 1px solid #e2bf42;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.simulation-badge > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f0b90b;
  box-shadow: 0 0 0 3px rgba(240,185,11,.18);
}

#dashboard.dark .simulation-badge {
  color: #f8d33a;
  background: rgba(240,185,11,.1);
  border-color: rgba(240,185,11,.38);
}

@media (max-width: 520px) {
  .chart-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.number-btn {
  position: relative;
  overflow: visible;
}

.number-btn.scan-cursor {
  color: #0b0e11;
  background: #fff9df;
  border: 3px solid #f0b90b;
  box-shadow:
    0 0 0 5px rgba(240,185,11,.16),
    0 10px 24px rgba(240,185,11,.24);
  transform: scale(1.04);
  z-index: 2;
}

.number-btn.scan-cursor::after {
  content: "";
  position: absolute;
  top: -7px;
  right: -4px;
  width: 13px;
  height: 13px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: #f0b90b;
  box-shadow: 0 2px 8px rgba(30,35,41,.3);
}

#dashboard.dark .number-btn.scan-cursor {
  color: #f8d33a;
  background: rgba(240,185,11,.12);
}

@media (prefers-reduced-motion: no-preference) {
  .number-btn.scan-cursor {
    animation: digit-cursor-pulse .9s ease-in-out;
  }
}

@keyframes digit-cursor-pulse {
  0% { transform: scale(.94); }
  45% { transform: scale(1.07); }
  100% { transform: scale(1.04); }
}

.premium-access-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #0b0e11;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.72), transparent 32%),
    linear-gradient(115deg, #f8d33a, #f0b90b);
  border: 1px solid #c99400;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(240,185,11,.22);
}

.premium-access-banner::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  top: -72px;
  right: 18%;
  border: 22px solid rgba(255,255,255,.17);
  border-radius: 50%;
  pointer-events: none;
}

.premium-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
  text-align: left;
}

.premium-kicker {
  width: fit-content;
  padding: 3px 7px;
  color: #f8d33a;
  background: #0b0e11;
  border-radius: 5px;
  font-size: .6rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.premium-copy strong {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.15rem;
  letter-spacing: -.025em;
}

.premium-subtitle {
  color: #4d3a00;
  font-size: .78rem;
  font-weight: 600;
}

.premium-access-button {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 16px;
  color: #ffffff;
  background: #0b0e11;
  border: 1px solid #0b0e11;
  border-radius: 8px;
  font-size: .8rem;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(11,14,17,.2);
}

.premium-access-button:hover {
  color: #f8d33a;
  transform: translateY(-1px);
}

.premium-access-button:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.premium-login {
  margin: -18px -18px 24px;
  padding: 16px;
}

.premium-login .premium-subtitle {
  display: none;
}

.premium-login .premium-copy strong {
  font-size: .98rem;
}

.premium-login .premium-access-button {
  padding-inline: 12px;
  font-size: .72rem;
}

.premium-dashboard {
  width: min(790px, calc(100% - 180px));
  margin: 0 auto 4px;
  padding: 14px 18px;
}

#dashboard.dark .premium-access-banner {
  border-color: #f0b90b;
  box-shadow: 0 12px 34px rgba(240,185,11,.18);
}

@media (max-width: 820px) {
  .premium-dashboard {
    width: 100%;
    margin-top: 78px;
  }
}

@media (max-width: 520px) {
  .premium-access-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .premium-login {
    margin: -10px -8px 22px;
  }

  .premium-dashboard {
    margin-top: 4px;
  }

  .premium-access-button {
    width: 100%;
  }
}

#dashboard.dark .modal-body {
  color: #aeb4bc;
}

#dashboard.dark .modal-body h4,
#dashboard.dark .modal-body h5 {
  color: #eaecef;
}

#dashboard.dark .modal-header,
#dashboard.dark .modal-footer {
  border-color: #2b3139;
}

#dashboard.dark .close-button {
  color: #aeb4bc;
  background: #2b3139;
}

#dashboard.dark .risk-modal input,
#dashboard.dark .risk-result,
#dashboard.dark .risk-tips {
  color: #eaecef;
  background: #0b0e11;
  border-color: #2b3139;
}

/* Premium exchange-inspired theme */
:root {
  --background: #0b0e11;
  --foreground: #eaecef;
  --card: #181a20;
  --muted: #848e9c;
  --muted-foreground: #aeb4bc;
  --border: #2b3139;
  --primary: #f0b90b;
  --primary-dark: #dca50a;
  --success: #0ecb81;
  --danger: #f6465d;
  --warning: #f0b90b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

html {
  background: #0b0e11;
  color-scheme: dark;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -0.01em;
  background:
    radial-gradient(circle at 50% -20%, rgba(240, 185, 11, 0.12), transparent 36%),
    #0b0e11;
}

button,
input,
select {
  font-family: inherit;
}

.login-page {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.login-page::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(240,185,11,.08);
  filter: blur(90px);
  top: -260px;
  right: -180px;
}

.login-container {
  position: relative;
  max-width: 440px;
  padding: 40px;
  color: var(--foreground);
  background: rgba(24, 26, 32, 0.94);
  border: 1px solid #2b3139;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(18px);
}

.logo-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  color: #181a20;
  background: linear-gradient(145deg, #f8d33a, #f0b90b);
  box-shadow: 0 14px 36px rgba(240,185,11,.22);
}

.login-container h1,
header h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  color: var(--foreground);
  letter-spacing: -0.045em;
}

.welcome-text {
  color: #f0b90b;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
}

.welcome-subtitle,
.credentials-text,
.disclaimer-text {
  color: #848e9c;
}

input[type="text"],
input[type="password"],
input[type="number"],
.country-select {
  color: #eaecef;
  background: #0b0e11;
  border: 1px solid #363c45;
  border-radius: 8px;
  padding: 14px 15px;
}

input:focus,
.country-select:focus-visible {
  border-color: #f0b90b;
  box-shadow: 0 0 0 3px rgba(240,185,11,.12);
}

.country-menu,
.country-option {
  color: #eaecef;
  background: #181a20;
}

.country-menu {
  border-color: #2b3139;
  border-radius: 10px;
}

.country-option:hover {
  background: #2b3139;
}

.checkbox-container {
  color: #aeb4bc;
}

.checkbox-container input {
  accent-color: #f0b90b;
}

.terms-link {
  color: #f0b90b;
}

.login-button,
.btn-primary {
  color: #181a20;
  background: #f0b90b;
  box-shadow: 0 10px 26px rgba(240,185,11,.16);
}

.get-logins-button,
.btn-success {
  color: #071a13;
  background: #0ecb81;
}

.deriv-link,
.btn-destructive {
  background: #f6465d;
}

.disclaimer-section {
  color: #c5a94a;
  background: rgba(240,185,11,.07);
  border-color: rgba(240,185,11,.2);
}

.credentials-section {
  border-color: #2b3139;
}

#dashboard,
#dashboard.dark {
  --background: #0b0e11;
  --foreground: #eaecef;
  --card: #181a20;
  --muted: #848e9c;
  --muted-foreground: #aeb4bc;
  --border: #2b3139;
  color-scheme: dark;
  background:
    radial-gradient(circle at 50% -10%, rgba(240,185,11,.08), transparent 28%),
    #0b0e11;
}

#dashboard.dark {
  --background: #f5f5f5;
  --foreground: #1e2329;
  --card: #ffffff;
  --muted: #707a8a;
  --muted-foreground: #5e6673;
  --border: #e6e8ea;
  color-scheme: light;
  background: #f5f5f5;
}

.container {
  width: min(1240px, 100%);
  padding: 30px 24px 56px;
}

.theme-toggle {
  background: #2b3139;
  border: 1px solid #3a414b;
}

.theme-toggle-circle {
  background: #f0b90b;
}

#dashboard.dark .theme-toggle {
  background: #e6e8ea;
}

.logout-btn,
.risk-calculator-btn {
  border-radius: 8px;
}

.risk-calculator-btn,
.bg-orange-500 {
  color: #181a20;
  background: #f0b90b;
}

header {
  padding-top: 58px;
  margin-bottom: 30px;
}

header::after {
  content: "LIVE MARKET INTELLIGENCE";
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  color: #f0b90b;
  border: 1px solid rgba(240,185,11,.3);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.btn {
  border-radius: 8px;
  font-weight: 600;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
}

.btn-even,
.bg-purple-500 {
  color: #071a13;
  background: #0ecb81;
}

.btn-odd {
  color: #28180a;
  background: #f0b90b;
}

.predict-btn {
  animation: gold-glow 1.8s infinite alternate;
}

@keyframes gold-glow {
  from { box-shadow: 0 0 0 rgba(240,185,11,0); }
  to { box-shadow: 0 0 24px rgba(240,185,11,.24); }
}

.dropdown-content {
  background: var(--card);
  border-color: var(--border);
  border-radius: 10px;
}

.dropdown-item:hover {
  background: rgba(240,185,11,.1);
  color: #f0b90b;
}

.prediction-result-card,
.price-display-container,
.analysis-btn-container,
.grid-container,
.strategy-container,
.progress-container,
.prediction-container,
.chart-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.prediction-result-card {
  border-color: rgba(240,185,11,.35);
  background: linear-gradient(135deg, rgba(240,185,11,.12), rgba(240,185,11,.025));
}

.prediction-result-title {
  color: #f0b90b;
}

.price-display-container {
  overflow: hidden;
  border-top: 2px solid #f0b90b;
}

.price-card {
  padding: 24px;
}

.price-title,
.grid-title,
.chart-title {
  font-weight: 600;
}

.price-value {
  color: #0ecb81;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: -0.04em;
}

.number-btn {
  border-radius: 50%;
}

.number-btn.active {
  color: #181a20;
  background: #f0b90b;
  box-shadow: 0 7px 18px rgba(240,185,11,.18);
}

.digit-leaders {
  width: min(600px, 100%);
  margin: 0 auto 22px;
  padding: 15px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.digit-leader {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 14px;
}

.leader-label {
  color: var(--muted-foreground);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.leader-count {
  color: var(--muted);
  font-size: .78rem;
}

.leader-circle {
  grid-row: 1 / 3;
  grid-column: 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.most .leader-circle {
  color: #071a13;
  background: #0ecb81;
  box-shadow: 0 7px 20px rgba(14,203,129,.2);
}

.least .leader-circle {
  color: #2b110f;
  background: #f6465d;
  box-shadow: 0 7px 20px rgba(246,70,93,.2);
}

.leader-divider {
  width: 1px;
  height: 38px;
  background: var(--border);
}

.progress-bar {
  height: 24px;
  border-radius: 6px;
}

.progress-fill {
  background: linear-gradient(90deg, #b88a00, #f0b90b);
}

.prediction-number {
  color: #181a20;
  background: #f0b90b;
  box-shadow: 0 15px 35px rgba(240,185,11,.2);
}

.chart-header {
  border-color: var(--border);
  background: rgba(255,255,255,.015);
}

.trade-notification {
  color: #181a20;
  background: #f0b90b;
  border: 1px solid #f8d33a;
}

.risk-modal {
  color: #eaecef;
  background: #181a20;
  border: 1px solid #2b3139;
}

.risk-modal input {
  background: #0b0e11;
  border-color: #363c45;
}

.risk-result,
.risk-tips {
  background: #0b0e11;
  border: 1px solid #2b3139;
}

.modal-content {
  color: #eaecef;
  background: #181a20;
  border: 1px solid #2b3139;
}

.modal-body {
  color: #aeb4bc;
}

.modal-body h4,
.modal-body h5 {
  color: #eaecef;
}

.modal-header,
.modal-footer {
  border-color: #2b3139;
}

.close-button {
  color: #aeb4bc;
  background: #2b3139;
}

.accept-button {
  color: #181a20;
  background: #f0b90b;
}

@media (max-width: 520px) {
  .login-container {
    padding: 30px 22px;
  }

  header::after {
    margin-bottom: 6px;
  }

  .container {
    padding-inline: 14px;
  }

  .digit-leaders {
    gap: 10px;
    padding: 13px;
  }

  .digit-leader {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 5px;
  }

  .leader-circle {
    grid-row: auto;
    grid-column: auto;
    width: 42px;
    height: 42px;
  }
}

/* Final light-theme priority overrides */
html,
body {
  color-scheme: light;
  color: #1e2329;
  background-color: #f5f5f5;
}

body {
  background:
    radial-gradient(circle at 50% -18%, rgba(240,185,11,.14), transparent 34%),
    #f5f5f5;
}

.login-page {
  background-color: #f5f5f5;
}

.login-container {
  color: #1e2329;
  background: rgba(255,255,255,.97);
  border-color: #e6e8ea;
  box-shadow: 0 30px 80px rgba(30,35,41,.12);
}

.login-container h1 {
  color: #1e2329;
}

input[type="text"],
input[type="password"],
input[type="number"],
.country-select,
.country-menu,
.country-option {
  color: #1e2329;
  background: #ffffff;
  border-color: #d8dce1;
}

.country-option:hover {
  background: #f5f5f5;
}

.checkbox-container {
  color: #474d57;
}

#dashboard {
  --background: #f5f5f5;
  --foreground: #1e2329;
  --card: #ffffff;
  --muted: #707a8a;
  --muted-foreground: #5e6673;
  --border: #e6e8ea;
  color-scheme: light;
  background:
    radial-gradient(circle at 50% -12%, rgba(240,185,11,.1), transparent 25%),
    #f5f5f5;
}

#dashboard.dark {
  --background: #0b0e11;
  --foreground: #eaecef;
  --card: #181a20;
  --muted: #848e9c;
  --muted-foreground: #aeb4bc;
  --border: #2b3139;
  color-scheme: dark;
  background:
    radial-gradient(circle at 50% -10%, rgba(240,185,11,.08), transparent 28%),
    #0b0e11;
}

.theme-toggle {
  background: #f0b90b;
  border-color: #d9a500;
}

.theme-toggle-circle {
  background: #ffffff;
}

#dashboard.dark .theme-toggle {
  background: #2b3139;
  border-color: #3a414b;
}

#dashboard.dark .theme-toggle-circle {
  background: #f0b90b;
}

.chart-header {
  background: #fafafa;
}

#dashboard.dark .chart-header {
  background: rgba(255,255,255,.015);
}

.modal-content,
.risk-modal {
  color: #1e2329;
  background: #ffffff;
  border-color: #e6e8ea;
}

.modal-body {
  color: #5e6673;
}

.modal-body h4,
.modal-body h5 {
  color: #1e2329;
}

.risk-modal input,
.risk-result,
.risk-tips {
  color: #1e2329;
  background: #fafafa;
  border-color: #e6e8ea;
}

#dashboard.dark .modal-content,
#dashboard.dark .risk-modal {
  color: #eaecef;
  background: #181a20;
  border-color: #2b3139;
}

/* Definitive original-theme overrides — keep at end of file */
html {
  background: #07111f !important;
}

body {
  color: #1f2937 !important;
  background:
    radial-gradient(circle at 20% 12%, rgba(14,165,233,.28), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,.20), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #10243b 52%, #07111f 100%) !important;
}

.login-page {
  background:
    radial-gradient(circle at 20% 12%, rgba(14,165,233,.18), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(16,185,129,.14), transparent 30%) !important;
}

.login-page::before {
  background: rgba(14,165,233,.11) !important;
}

.login-container {
  color: #1f2937 !important;
  background: rgba(255,255,255,.97) !important;
  border-color: rgba(255,255,255,.52) !important;
  box-shadow: 0 20px 60px rgba(15,23,42,.12) !important;
}

.login-container h1 {
  color: #1f2937 !important;
}

.logo-icon {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
  box-shadow: 0 14px 35px rgba(14,165,233,.34) !important;
}

.welcome-text,
.terms-link {
  color: #0369a1 !important;
}

.login-button,
.btn-primary,
.predict-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0284c7, #0f766e) !important;
  border-color: transparent !important;
}

.get-logins-button,
.btn-success,
.bg-purple-500,
.btn-even {
  color: #ffffff !important;
  background: linear-gradient(135deg, #10b981, #059669) !important;
  border-color: transparent !important;
}

.btn-odd {
  color: #ffffff !important;
  background: linear-gradient(135deg, #14b8a6, #0f766e) !important;
  border-color: transparent !important;
}

.bg-orange-500,
.risk-calculator-btn {
  color: #ffffff !important;
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  border-color: transparent !important;
}

#dashboard {
  --background: #07111f !important;
  --foreground: #f8fafc !important;
  --card: #101b2d !important;
  --muted: #94a3b8 !important;
  --muted-foreground: #cbd5e1 !important;
  --border: #20314a !important;
  color-scheme: dark !important;
  background:
    linear-gradient(180deg, rgba(14,165,233,.12), transparent 240px),
    radial-gradient(circle at 85% 10%, rgba(16,185,129,.13), transparent 30%),
    #07111f !important;
}

#dashboard.dark {
  --background: #f6f8fb !important;
  --foreground: #172033 !important;
  --card: #ffffff !important;
  --muted: #64748b !important;
  --muted-foreground: #64748b !important;
  --border: #dbe4ef !important;
  color-scheme: light !important;
  background: linear-gradient(180deg, #eef7ff, #f8fafc 280px) !important;
}

.premium-access-banner {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.18), transparent 32%),
    linear-gradient(115deg, #0284c7, #0f766e) !important;
  border-color: rgba(255,255,255,.18) !important;
  box-shadow: 0 12px 30px rgba(14,116,144,.24) !important;
}

.premium-kicker {
  color: #06233a !important;
  background: #dff8ec !important;
}

.premium-subtitle {
  color: #dbeafe !important;
}

.premium-access-button {
  color: #06233a !important;
  background: #ffffff !important;
  border-color: #ffffff !important;
}

.number-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0ea5e9, #10b981) !important;
  border-color: transparent !important;
}

.number-btn.scan-cursor {
  color: #06233a !important;
  background: #e0f2fe !important;
  border-color: #0ea5e9 !important;
  box-shadow:
    0 0 0 5px rgba(14,165,233,.16),
    0 10px 24px rgba(14,165,233,.24) !important;
}

.number-btn.scan-cursor::after {
  background: #10b981 !important;
}

.prediction-number {
  color: #ffffff !important;
  background: linear-gradient(135deg, #020617, #0284c7) !important;
  border-color: transparent !important;
}

.progress-fill {
  background: linear-gradient(90deg, #22c55e, #0ea5e9) !important;
}

.prediction-result-card {
  border-color: rgba(16,185,129,.5) !important;
  background: linear-gradient(135deg, rgba(16,185,129,.18), rgba(14,165,233,.08)) !important;
}

.prediction-result-title {
  color: #10b981 !important;
}

.price-display-container {
  border-top-color: #10b981 !important;
}

.price-value {
  color: #22c55e !important;
}

.trade-notification {
  color: #ffffff !important;
  background: linear-gradient(135deg, #111827, #2563eb) !important;
  border-color: transparent !important;
}

.simulation-badge,
.account-connected-status {
  color: #064e3b !important;
  background: #dff8ec !important;
  border-color: #66d7a7 !important;
}

header::after {
  color: #0369a1 !important;
  background: #e0f2fe !important;
  border-color: #7dd3fc !important;
}

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 820px) {
  #dashboard {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 900;
    min-height: 70px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    background: rgba(255,255,255,.96);
    border: 1px solid #dbe4ef;
    border-radius: 20px;
    box-shadow: 0 16px 42px rgba(15,23,42,.22);
    backdrop-filter: blur(16px);
  }

  .mobile-nav-item {
    position: relative;
    min-width: 0;
    min-height: 54px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #64748b;
    background: transparent;
    border: 0;
    border-radius: 13px;
    font-size: .65rem;
    font-weight: 700;
  }

  .mobile-nav-icon {
    display: grid;
    place-items: center;
    min-height: 24px;
    font-size: 1.4rem;
    line-height: 1;
  }

  .mobile-nav-item.active {
    color: #0369a1;
    background: #e0f2fe;
  }

  .mobile-nav-item.active::after {
    content: "";
    position: absolute;
    left: 24%;
    right: 24%;
    bottom: 1px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #0ea5e9, #10b981);
  }

  .mobile-nav-item:focus-visible {
    outline: 3px solid rgba(14,165,233,.35);
    outline-offset: -2px;
  }

  #dashboard:not(.dark) .mobile-bottom-nav {
    background: rgba(16,27,45,.96);
    border-color: #20314a;
  }

  #dashboard:not(.dark) .mobile-nav-item {
    color: #94a3b8;
  }

  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #7dd3fc;
    background: rgba(14,165,233,.13);
  }
}

/* High-visibility Over and Under typography */
.grid-container > div {
  padding: 8px;
  border-radius: 12px;
}

.grid-title {
  width: fit-content;
  margin: 0 auto 18px;
  padding: 7px 18px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #0369a1, #0f766e);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  text-shadow: 0 1px 2px rgba(0,0,0,.24);
  box-shadow: 0 8px 20px rgba(3,105,161,.2);
}

.number-btn {
  color: #f8fafc !important;
  border: 2px solid #334155 !important;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 1px rgba(0,0,0,.2);
}

#dashboard.dark .grid-container > div {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

#dashboard.dark .grid-title {
  color: #ffffff !important;
}

#dashboard.dark .number-btn {
  color: #0f172a !important;
  background: #ffffff;
  border-color: #cbd5e1 !important;
  text-shadow: none;
}

#dashboard.dark .number-btn:hover {
  color: #075985 !important;
  border-color: #38bdf8 !important;
  background: #f0f9ff;
}

#dashboard.dark .number-btn.active {
  color: #ffffff !important;
}

#dashboard.dark .number-btn.scan-cursor {
  color: #06233a !important;
}

/* Blue mobile bottom navigation */
@media (max-width: 820px) {
  .mobile-bottom-nav,
  #dashboard:not(.dark) .mobile-bottom-nav {
    background: linear-gradient(135deg, #075985, #0369a1 52%, #0284c7) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 16px 42px rgba(3,105,161,.34) !important;
  }

  .mobile-nav-item,
  #dashboard:not(.dark) .mobile-nav-item {
    color: #e0f2fe !important;
  }

  .mobile-nav-item .mobile-nav-icon {
    color: #ffffff !important;
  }

  .mobile-nav-item.active,
  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #ffffff !important;
    background: rgba(255,255,255,.18) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  }

  .mobile-nav-item.active::after {
    background: #ffffff !important;
  }
}

.theme-settings-modal {
  width: min(92vw, 620px);
  overflow: hidden;
}

.theme-settings-modal .modal-header {
  align-items: flex-start;
}

.theme-settings-modal h2 {
  margin: 5px 0 0;
  color: #172033;
  font-family: "Space Grotesk", Inter, sans-serif;
}

.settings-kicker {
  color: #0369a1;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.theme-choice-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.theme-choice {
  padding: 15px;
  display: grid;
  gap: 7px;
  color: #475569;
  text-align: left;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
}

.theme-choice:hover,
.theme-choice.selected {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.theme-choice.selected::after {
  content: "Selected";
  width: fit-content;
  padding: 3px 7px;
  color: #ffffff;
  background: #0284c7;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}

.theme-choice strong {
  color: #172033;
  font-size: 1rem;
}

.theme-choice > span:last-of-type {
  font-size: .76rem;
}

.theme-preview {
  height: 82px;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 7px;
  border-radius: 10px;
}

.theme-preview i {
  display: block;
  border-radius: 5px;
}

.theme-preview i:first-child {
  grid-row: 1 / 3;
}

.light-preview {
  background: #f1f5f9;
  border: 1px solid #dbe4ef;
}

.light-preview i {
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.light-preview i:first-child {
  background: #0284c7;
  border-color: #0284c7;
}

.dark-preview {
  background: #07111f;
  border: 1px solid #20314a;
}

.dark-preview i {
  background: #17263b;
  border: 1px solid #29405f;
}

.dark-preview i:first-child {
  background: #0f766e;
  border-color: #0f766e;
}

@media (max-width: 520px) {
  .theme-choice-grid {
    grid-template-columns: 1fr;
  }
}

.admin-panel-btn {
  position: absolute;
  top: 124px;
  right: 20px;
  z-index: 10;
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #0f766e);
}

.admin-panel-modal {
  width: min(94vw, 900px);
  max-height: 90vh;
  overflow: hidden;
}

.admin-panel-header {
  align-items: flex-start;
}

.admin-panel-header h2 {
  margin: 5px 0 3px;
  color: #172033;
}

.admin-panel-header p {
  margin: 0;
  color: #64748b;
  font-size: .82rem;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-table-wrap {
  max-height: 68vh;
  overflow: auto;
}

.admin-login-table {
  width: 100%;
  border-collapse: collapse;
  color: #334155;
  background: #ffffff;
  font-size: .84rem;
}

.admin-login-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px 14px;
  color: #ffffff;
  background: #075985;
  text-align: left;
}

.admin-login-table td {
  padding: 11px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-login-table tbody tr:nth-child(even) {
  background: #f8fafc;
}

.admin-login-table code {
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .82rem;
  font-weight: 700;
}

.copy-login-button {
  padding: 6px 10px;
  color: #ffffff;
  background: #0284c7;
  border: 0;
  border-radius: 7px;
  font-size: .74rem;
  font-weight: 800;
}

#dashboard:not(.dark) .admin-panel-modal {
  background: #101b2d;
}

#dashboard:not(.dark) .admin-panel-header h2 {
  color: #f8fafc;
}

@media (max-width: 820px) {
  .admin-panel-btn {
    position: static;
    margin: 0 8px 10px 0;
  }
}

@media (max-width: 520px) {
  .admin-panel-header {
    gap: 10px;
  }

  .admin-header-actions {
    align-items: flex-end;
    flex-direction: column-reverse;
  }

  .admin-login-table {
    min-width: 630px;
  }
}

.admin-home-access {
  margin: -10px -8px 22px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, #172033, #075985);
  border: 1px solid #0ea5e9;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(3,105,161,.18);
}

.admin-home-access div {
  display: grid;
  gap: 2px;
  text-align: left;
}

.admin-home-access span {
  color: #7dd3fc;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .1em;
}

.admin-home-access strong {
  font-size: .9rem;
}

.admin-home-access button {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: #075985;
  background: #ffffff;
  border: 0;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 900;
}

.admin-auth-modal {
  width: min(92vw, 440px);
}

.admin-auth-modal h2 {
  margin: 5px 0 0;
  color: #172033;
}

.admin-auth-form {
  padding: 22px;
}

.admin-auth-form label {
  color: #334155;
  font-size: .82rem;
  font-weight: 800;
  text-align: left;
}

.admin-auth-form .error-message {
  text-align: left;
}

@media (max-width: 420px) {
  .admin-home-access {
    align-items: stretch;
    flex-direction: column;
  }
}

.admin-home-bottom {
  margin: 16px 0 0;
}

.admin-between-login {
  margin: 16px 0 0;
}

.settings-account-section {
  margin: 0 22px 22px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
}

.settings-account-section > div {
  display: grid;
  gap: 3px;
}

.settings-account-section strong {
  color: #172033;
}

.settings-account-section p {
  margin: 0;
  color: #64748b;
  font-size: .77rem;
}

.settings-logout-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 17px;
  color: #ffffff;
  background: #ef4444;
  border: 1px solid #dc2626;
  border-radius: 8px;
  font-weight: 900;
}

#dashboard:not(.dark) .settings-account-section {
  background: #0b1423;
  border-color: #20314a;
}

#dashboard:not(.dark) .settings-account-section strong {
  color: #f8fafc;
}

@media (max-width: 520px) {
  .settings-account-section {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-logout-button {
    width: 100%;
  }
}

.admin-page {
  min-height: 100vh;
  padding: 28px 18px;
  color: #172033;
  background:
    radial-gradient(circle at 50% -15%, rgba(14,165,233,.18), transparent 34%),
    #eef4f8;
}

.admin-page-shell {
  width: min(1060px, 100%);
  margin: 0 auto;
}

.admin-page-header {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(15,23,42,.09);
}

.admin-page-header h1 {
  margin: 5px 0;
  color: #172033;
}

.admin-page-header p {
  margin: 0;
  color: #64748b;
}

.admin-page-card {
  margin-top: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(15,23,42,.09);
}

@media (max-width: 620px) {
  .admin-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-header .admin-header-actions {
    justify-content: space-between;
  }
}

.user-deactivated {
  opacity: .64;
}

.user-status {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
}

.user-status.active {
  color: #065f46;
  background: #d1fae5;
}

.user-status.inactive {
  color: #991b1b;
  background: #fee2e2;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-user-button,
.delete-user-button {
  padding: 6px 9px;
  border-radius: 7px;
  font-size: .7rem;
  font-weight: 800;
}

.toggle-user-button {
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
}

.delete-user-button {
  color: #ffffff;
  background: #ef4444;
  border: 1px solid #dc2626;
}

/* Phone layout and performance optimisation */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
canvas {
  max-width: 100%;
}

@media (max-width: 820px) {
  .container {
    width: 100%;
    padding: 16px 12px calc(104px + env(safe-area-inset-bottom));
  }

  .premium-dashboard {
    width: 100%;
    margin: 0 0 14px;
  }

  header {
    padding-top: 8px;
    margin-bottom: 18px;
  }

  .header-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .header-buttons > *,
  .header-buttons .btn,
  .dropdown,
  .dropdown > button {
    width: 100%;
    min-width: 0;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 7px;
    transform: none;
  }

  .analysis-btn-container,
  .price-display-container,
  .prediction-result-card,
  .digit-leaders,
  .grid-container,
  .strategy-container,
  .progress-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .grid-container {
    gap: 16px;
    padding: 14px 10px;
  }

  .number-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
  }

  .number-btn {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    touch-action: manipulation;
  }

  .strategy-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 13px;
  }

  .strategy-container #startTrade {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .strategy-container .btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
  }

  .progress-container {
    padding: 13px;
  }

  .mobile-bottom-nav {
    backdrop-filter: none;
  }

  .prediction-result-card,
  .price-display-container,
  .analysis-btn-container,
  .grid-container,
  .strategy-container,
  .progress-container,
  .digit-leaders {
    box-shadow: 0 7px 20px rgba(15,23,42,.1);
  }

  .admin-page {
    padding: 12px 8px;
  }

  .admin-page-header {
    padding: 16px;
  }

  .admin-page-card {
    margin-top: 10px;
  }

  .admin-table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px) {
  .login-page {
    align-items: flex-start;
    padding: 10px;
  }

  .login-container {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    border-radius: 14px;
    backdrop-filter: none;
  }

  .premium-login {
    margin: -8px -4px 20px;
  }

  .premium-copy strong {
    font-size: .95rem;
  }

  input[type="text"],
  input[type="password"],
  input[type="number"],
  .country-select {
    min-height: 48px;
    font-size: 16px;
  }

  .checkbox-container {
    align-items: flex-start;
    text-align: left;
  }

  .digit-leaders {
    grid-template-columns: 1fr auto 1fr;
  }

  .leader-label {
    font-size: .62rem;
  }

  .grid-container {
    grid-template-columns: 1fr;
  }

  .grid-title {
    margin-bottom: 13px;
    font-size: 1.2rem;
  }

  .number-btn {
    font-size: 1rem;
  }

  .modal-overlay {
    padding: 8px;
  }

  .modal-content,
  .risk-modal,
  .admin-panel-modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 14px;
  }

  .theme-choice-grid {
    padding: 14px;
  }

  .settings-account-section {
    margin: 0 14px 14px;
  }

  .trade-notification {
    right: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: calc(100vw - 20px);
  }
}

@media (max-width: 360px) {
  .number-grid {
    gap: 6px;
  }

  .number-btn {
    min-height: 40px;
  }

  .mobile-nav-item {
    font-size: .6rem;
  }
}

/* Neon black home and login theme */
.login-page {
  min-height: 100vh;
  padding: 0 !important;
  display: block !important;
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 75% 18%, rgba(0,255,132,.08), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(0,229,255,.08), transparent 26%),
    #020807 !important;
}

.login-page::before {
  display: none;
}

.home-page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.home-topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(0,229,255,.14);
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #eaffff;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
}

.home-brand > span:last-child > span {
  color: #00f27f;
}

.home-brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #03100c;
  background: linear-gradient(135deg, #00e5ff, #00f27f);
  border-radius: 13px;
  font-size: 1.5rem;
  box-shadow: 0 0 26px rgba(0,242,127,.18);
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 13px;
}

.home-create-button,
.home-login-link {
  min-height: 46px;
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}

.home-create-button {
  color: #02100b;
  background: linear-gradient(90deg, #00e5ff, #00f27f);
  border: 0;
}

.home-login-link {
  color: #00e5ff;
  background: transparent;
  border: 2px solid #00d9e8;
}

.home-hero {
  padding: 70px 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, .72fr);
  align-items: center;
  gap: 62px;
}

.home-hero-copy {
  display: grid;
  gap: 28px;
  text-align: left;
}

.home-eyebrow {
  width: fit-content;
  max-width: 100%;
  padding: 9px 22px;
  color: #00f27f;
  background: rgba(0,242,127,.045);
  border: 1px solid rgba(0,242,127,.42);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-align: center;
}

.home-hero-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.45rem, 5.5vw, 4.4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.home-hero-copy h2 span {
  color: #00e5ff;
}

.home-hero-copy h2 span:last-child {
  color: #00f27f;
}

.home-hero-copy > p {
  margin: 0;
  color: #a7b0b4;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75;
}

.home-feature-list {
  display: grid;
  gap: 12px;
}

.home-feature-list div {
  padding: 16px 18px;
  color: #aeb7bb;
  background: rgba(255,255,255,.035);
  border-left: 4px solid #00bcd4;
  border-radius: 0 10px 10px 0;
  line-height: 1.55;
}

.home-primary-cta,
.home-secondary-cta,
.home-telegram-cta {
  width: min(390px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.home-primary-cta {
  gap: 12px;
  color: #020b08;
  background: linear-gradient(90deg, #00e5ff, #00f27f);
}

.home-secondary-cta {
  color: #00e5ff;
  background: transparent;
  border: 2px solid rgba(0,229,255,.58);
}

.home-telegram-cta {
  gap: 10px;
  color: #00f27f;
  background: rgba(0,242,127,.045);
  border: 2px solid rgba(0,242,127,.52);
}

.home-telegram-cta:hover {
  color: #02100b;
  background: linear-gradient(90deg, #00e5ff, #00f27f);
}

.login-page .login-container {
  width: 100% !important;
  max-width: 440px !important;
  padding: 30px !important;
  color: #e8f7f7 !important;
  background: linear-gradient(155deg, rgba(9,24,22,.98), rgba(3,12,11,.98)) !important;
  border: 1px solid rgba(0,229,255,.28) !important;
  border-radius: 18px !important;
  box-shadow:
    0 28px 70px rgba(0,0,0,.55),
    0 0 45px rgba(0,229,255,.07) !important;
}

.login-page .logo-icon {
  color: #02100b !important;
  background: linear-gradient(135deg, #00e5ff, #00f27f) !important;
  box-shadow: 0 0 28px rgba(0,242,127,.16) !important;
}

.login-page .login-container h1 {
  color: #f5ffff !important;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.login-page .welcome-text {
  color: #00f27f !important;
}

.login-page .welcome-subtitle,
.login-page .credentials-text,
.login-page .disclaimer-text,
.login-page .zip-help {
  color: #8fa0a3 !important;
}

.login-page input[type="text"],
.login-page input[type="password"],
.login-page .country-select {
  color: #f3ffff !important;
  background: #071411 !important;
  border: 1px solid #183c36 !important;
}

.login-page input::placeholder {
  color: #667875;
}

.login-page input:focus,
.login-page .country-select:focus-visible {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 3px rgba(0,229,255,.12) !important;
}

.login-page .country-menu,
.login-page .country-option {
  color: #eaffff !important;
  background: #071411 !important;
  border-color: #183c36 !important;
}

.login-page .country-option:hover {
  background: #0b2620 !important;
}

.login-page .checkbox-container {
  color: #a9b7b6 !important;
}

.login-page .checkbox-container input {
  accent-color: #00f27f;
}

.login-page .terms-link {
  color: #00e5ff !important;
}

.login-page .login-button,
.login-page .get-logins-button {
  color: #02100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(0,242,127,.14) !important;
}

.login-page .credentials-section {
  border-color: rgba(0,229,255,.16);
}

.login-page .disclaimer-section {
  color: #a7b0b4;
  background: rgba(0,229,255,.04);
  border-color: rgba(0,229,255,.15);
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }

  .home-eyebrow,
  .home-primary-cta,
  .home-secondary-cta {
    margin-left: auto;
    margin-right: auto;
  }

  .login-page .login-container {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .home-page-shell {
    padding: 0 14px 38px;
  }

  .home-topbar {
    min-height: 74px;
  }

  .home-brand {
    gap: 8px;
    font-size: .98rem;
  }

  .home-brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .home-create-button {
    display: none;
  }

  .home-login-link {
    min-height: 40px;
    padding: 8px 16px;
    font-size: .8rem;
  }

  .home-hero {
    padding-top: 44px;
    gap: 42px;
  }

  .home-hero-copy {
    gap: 22px;
  }

  .home-eyebrow {
    padding: 8px 14px;
    font-size: .64rem;
    line-height: 1.45;
  }

  .home-hero-copy h2 {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
  }

  .home-feature-list div {
    padding: 14px;
    text-align: left;
  }

  .login-page .login-container {
    padding: 24px 16px !important;
  }
}

/* Reference-inspired post-login dashboard theme */
#dashboard.dark {
  --background: #effcf5 !important;
  --foreground: #111827 !important;
  --card: #ffffff !important;
  --muted: #64748b !important;
  --muted-foreground: #667085 !important;
  --border: #d4eee1 !important;
  color: #111827 !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background:
    radial-gradient(circle at 88% 4%, rgba(34,197,94,.08), transparent 26%),
    linear-gradient(180deg, #f5fffa 0%, #eafaf2 100%) !important;
}

#dashboard.dark .container {
  width: min(1120px, 100%);
}

#dashboard.dark .premium-dashboard {
  color: #ffffff !important;
  background:
    radial-gradient(circle at 80% 0%, rgba(0,242,127,.14), transparent 28%),
    linear-gradient(120deg, #04110d, #081b15) !important;
  border: 1px solid #123b2b !important;
  box-shadow: 0 12px 30px rgba(6,78,59,.14) !important;
}

#dashboard.dark .premium-kicker {
  color: #03100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
}

#dashboard.dark .premium-subtitle {
  color: #a7bbb2 !important;
}

#dashboard.dark .premium-access-button {
  color: #03100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
  border: 0 !important;
}

#dashboard.dark header {
  margin: 18px 0 24px;
  padding: 28px 24px 20px;
  background: rgba(255,255,255,.82);
  border: 1px solid #d8eee3;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15,82,56,.07);
}

#dashboard.dark header h1 {
  color: #101828 !important;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -.045em;
}

#dashboard.dark header::after {
  content: "THE TREND IS YOUR FRIEND — UNTIL IT ENDS.";
  margin-top: 10px;
  color: #5f6f67 !important;
  background: transparent !important;
  border: 0 !important;
  font-style: italic;
  letter-spacing: .02em;
}

#dashboard.dark .header-buttons {
  margin: 22px -24px -20px;
  padding: 13px;
  background: #050706;
  border-radius: 0 0 15px 15px;
}

#dashboard.dark .header-buttons .btn {
  min-height: 44px;
  color: #b9c0bd;
  background: transparent;
  border: 1px solid #202722;
}

#dashboard.dark .header-buttons .predict-btn {
  color: #ffffff !important;
  background: #166534 !important;
  border-color: #22c55e !important;
}

#dashboard.dark .dropdown-content {
  background: #090d0b;
  border-color: #26332c;
}

#dashboard.dark .dropdown-item {
  color: #d7e0dc;
}

#dashboard.dark .dropdown-item:hover {
  color: #ffffff;
  background: #166534;
}

#dashboard.dark .prediction-result-card,
#dashboard.dark .price-display-container,
#dashboard.dark .analysis-btn-container,
#dashboard.dark .grid-container,
#dashboard.dark .strategy-container,
#dashboard.dark .progress-container,
#dashboard.dark .digit-leaders {
  background: #ffffff !important;
  border: 1px solid #d5ecdf !important;
  box-shadow: 0 13px 30px rgba(13,90,57,.09) !important;
}

#dashboard.dark .price-display-container {
  border-top: 5px solid #22c55e !important;
}

#dashboard.dark .price-title {
  color: #667085 !important;
}

#dashboard.dark .price-value {
  color: #0f9f5b !important;
  font-family: "Space Grotesk", Inter, sans-serif;
}

#dashboard.dark .analysis-btn-container {
  border-top: 5px solid #0ea5e9 !important;
}

#dashboard.dark .bot-online-status {
  color: #06603f;
  background: #e8fff4;
  border-color: #86efac;
}

#dashboard.dark .account-connected-status {
  color: #075985;
  background: #e8f8ff;
  border-color: #7dd3fc;
}

#dashboard.dark .digit-leaders {
  border-top: 5px solid #16a34a !important;
}

#dashboard.dark .leader-label {
  color: #344054 !important;
}

#dashboard.dark .leader-count {
  color: #22a865;
  font-weight: 800;
}

#dashboard.dark .grid-container {
  border-top: 5px solid #16a34a !important;
}

#dashboard.dark .grid-container > div {
  background: #f8fffb;
  border-color: #d8eee3;
}

#dashboard.dark .grid-title {
  color: #ffffff !important;
  background: #166534 !important;
  border-color: #22c55e !important;
  box-shadow: 0 8px 20px rgba(22,101,52,.16);
}

#dashboard.dark .number-btn {
  color: #111827 !important;
  background: #ffffff !important;
  border-color: #d5e7dd !important;
}

#dashboard.dark .number-btn:hover {
  color: #166534 !important;
  background: #edfff5 !important;
  border-color: #4ade80 !important;
}

#dashboard.dark .number-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #16a34a, #059669) !important;
  border-color: #16a34a !important;
}

#dashboard.dark .number-btn.scan-cursor {
  color: #064e3b !important;
  background: #dcfce7 !important;
  border-color: #22c55e !important;
  box-shadow:
    0 0 0 5px rgba(34,197,94,.15),
    0 10px 24px rgba(22,163,74,.2) !important;
}

#dashboard.dark .strategy-container {
  border-top: 5px solid #0ea5e9 !important;
}

#dashboard.dark .strategy-container .btn {
  font-weight: 900;
}

#dashboard.dark .progress-container {
  border-top: 5px solid #16a34a !important;
}

#dashboard.dark .progress-bar {
  background: #edf5f1;
  border-color: #d5e7dd;
}

#dashboard.dark .progress-fill {
  background: linear-gradient(90deg, #16a34a, #0ea5e9) !important;
}

#dashboard.dark .risk-calculator-btn {
  color: #111827 !important;
  background: #facc15 !important;
  border-color: #eab308 !important;
}

@media (max-width: 820px) {
  #dashboard.dark .mobile-bottom-nav {
    background: #050706 !important;
    border-color: #172019 !important;
    box-shadow: 0 12px 34px rgba(0,0,0,.26) !important;
  }

  #dashboard.dark .mobile-nav-item {
    color: #a1aaa5 !important;
  }

  #dashboard.dark .mobile-nav-item .mobile-nav-icon {
    color: #cdd5d1 !important;
  }

  #dashboard.dark .mobile-nav-item.active {
    color: #ffffff !important;
    background: #166534 !important;
  }

  #dashboard.dark .mobile-nav-item.active::after {
    background: #22c55e !important;
  }
}

@media (max-width: 520px) {
  #dashboard.dark header {
    padding: 22px 16px 16px;
  }

  #dashboard.dark .header-buttons {
    margin: 18px -16px -16px;
  }
}

/* Top-navigation login modal */
.home-hero {
  grid-template-columns: 1fr;
}

.home-hero-copy {
  width: min(820px, 100%);
  margin: 0 auto;
  text-align: center;
}

.home-eyebrow,
.home-primary-cta,
.home-secondary-cta,
.home-telegram-cta {
  margin-left: auto;
  margin-right: auto;
}

.home-feature-list {
  width: min(720px, 100%);
  margin: 0 auto;
}

.home-feature-list div {
  text-align: left;
}

.home-primary-cta {
  border: 0;
}

.home-login-link {
  font-family: inherit;
  cursor: pointer;
}

.login-page .login-container {
  display: none;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(0,8,6,.8);
  backdrop-filter: blur(7px);
}

.login-page .login-container.home-login-modal-open {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 1200;
  display: block;
  max-height: 92vh;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  animation: home-login-arrive .2s ease-out;
}

.home-login-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 3;
  width: 34px;
  height: 34px;
  margin: -16px -16px 2px 8px;
  display: grid;
  place-items: center;
  color: #b8cac6;
  background: #10251f;
  border: 1px solid #225044;
  border-radius: 50%;
  font-size: 1.35rem;
}

@keyframes home-login-arrive {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 18px)) scale(.98);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 520px) {
  .login-modal-backdrop {
    backdrop-filter: none;
  }

  .login-page .login-container.home-login-modal-open {
    width: calc(100% - 20px) !important;
    max-height: calc(100vh - 20px);
  }
}

/* Unified cyan, green, black and mint dashboard palette */
#dashboard.dark .risk-calculator-btn {
  color: #02100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
  border: 1px solid #00d9a0 !important;
  box-shadow: 0 8px 24px rgba(0,242,127,.16) !important;
}

#dashboard.dark .bg-purple-500,
#dashboard.dark .bg-orange-500 {
  color: #ffffff !important;
  background: #166534 !important;
  border: 1px solid #22c55e !important;
}

#dashboard.dark .btn-even,
#dashboard.dark .btn-odd {
  color: #02100b !important;
  background: #22d3ee !important;
  border: 1px solid #06b6d4 !important;
}

#dashboard.dark #startTrade {
  color: #02100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
  border: 1px solid #00d9a0 !important;
}

#dashboard.dark #startTrade.btn-destructive {
  color: #ffffff !important;
  background: #b91c1c !important;
  border-color: #ef4444 !important;
}

#dashboard.dark .prediction-result-card {
  color: #f3fffa !important;
  background:
    radial-gradient(circle at 85% 0%, rgba(0,242,127,.12), transparent 28%),
    #06140f !important;
  border-color: #175b42 !important;
}

#dashboard.dark .prediction-result-title {
  color: #00f27f !important;
}

#dashboard.dark .prediction-result-market {
  color: #9eb5ab !important;
}

#dashboard.dark .modal-overlay {
  background: rgba(0,8,6,.82);
}

#dashboard.dark .risk-modal {
  color: #effff8 !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(0,242,127,.12), transparent 30%),
    linear-gradient(150deg, #071812, #020807) !important;
  border: 1px solid #175b42 !important;
  box-shadow:
    0 28px 75px rgba(0,0,0,.5),
    0 0 42px rgba(0,229,255,.06) !important;
}

#dashboard.dark .risk-modal h2,
#dashboard.dark .risk-modal h3,
#dashboard.dark .risk-modal label,
#dashboard.dark .risk-modal strong {
  color: #f3fffa !important;
}

#dashboard.dark .risk-modal input {
  color: #f3fffa !important;
  background: #06120e !important;
  border: 1px solid #204b3d !important;
}

#dashboard.dark .risk-modal input:focus {
  border-color: #00e5ff !important;
  box-shadow: 0 0 0 3px rgba(0,229,255,.11) !important;
}

#dashboard.dark .risk-modal input::placeholder {
  color: #70867d !important;
}

#dashboard.dark .risk-modal .btn-success {
  color: #02100b !important;
  background: linear-gradient(90deg, #00e5ff, #00f27f) !important;
  border: 0 !important;
}

#dashboard.dark .risk-modal .btn-outline {
  color: #00e5ff !important;
  background: transparent !important;
  border: 1px solid #00b8c9 !important;
}

#dashboard.dark .risk-result,
#dashboard.dark .risk-tips {
  color: #b8ccc3 !important;
  background: rgba(255,255,255,.035) !important;
  border: 1px solid #173d31 !important;
}

#dashboard.dark .risk-label {
  color: #85a097 !important;
}

#dashboard.dark .risk-value {
  color: #00f27f;
}

#dashboard.dark .close-button {
  color: #b8ccc3 !important;
  background: #10271f !important;
  border: 1px solid #245443;
}

#dashboard.dark .progress-text {
  color: #ffffff;
}

/* Professional dashboard header alignment */
.dashboard-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: stretch;
  width: 100%;
  margin-bottom: 18px;
}

.dashboard-top-row .premium-access-banner {
  width: 100%;
  height: 100%;
  margin: 0;
}

#dashboard.dark .dashboard-top-row .premium-dashboard {
  width: 100%;
  min-height: 92px;
  margin: 0;
}

#dashboard.dark .dashboard-top-row .risk-calculator-btn {
  position: static !important;
  inset: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 178px;
  min-height: 92px;
  padding: 16px 22px;
  margin: 0;
  border-radius: 14px;
  white-space: nowrap;
}

#dashboard.dark header {
  margin-top: 0;
  overflow: hidden;
}

#dashboard.dark header::after {
  display: none !important;
}

#dashboard.dark header h1::after {
  content: "THE TREND IS YOUR FRIEND — UNTIL IT ENDS.";
  display: block;
  margin: 10px auto 0;
  color: #5f6f67;
  font-family: Inter, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.4;
  letter-spacing: 0.03em;
}

#dashboard.dark .header-buttons {
  margin-top: 20px;
}

@media (max-width: 820px) {
  .dashboard-top-row {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
  }

  #dashboard.dark .dashboard-top-row .premium-dashboard {
    min-height: auto;
  }

  #dashboard.dark .dashboard-top-row .risk-calculator-btn {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 18px;
  }

  #dashboard.dark header h1::after {
    margin-top: 8px;
    font-size: 0.64rem;
  }
}

/* Final compact-circle sizing */
.number-grid {
  grid-template-columns: repeat(5, 54px) !important;
  justify-content: center !important;
  gap: 12px !important;
}

.number-btn {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  aspect-ratio: 1 !important;
  font-size: 0.92rem !important;
}

.account-profile-avatar {
  width: 38px !important;
  height: 38px !important;
  font-size: 0.95rem !important;
}

.settings-profile-avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.9rem !important;
}

.settings-theme-switch {
  width: 48px !important;
  height: 26px !important;
}

.settings-theme-switch span {
  top: 4px !important;
  left: 4px !important;
  width: 18px !important;
  height: 18px !important;
}

.settings-theme-switch.active span {
  transform: translateX(22px) !important;
}

@media (max-width: 620px) {
  .number-grid {
    grid-template-columns: repeat(5, 42px) !important;
    gap: 8px !important;
  }

  .number-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    font-size: 0.82rem !important;
  }
}

@media (max-width: 360px) {
  .number-grid {
    grid-template-columns: repeat(5, 38px) !important;
    gap: 6px !important;
  }

  .number-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }
}

/* Final Telegram-style mobile navigation priority */
@media (max-width: 820px) {
  .mobile-bottom-nav,
  #dashboard.dark .mobile-bottom-nav,
  #dashboard:not(.dark) .mobile-bottom-nav {
    left: 50% !important;
    right: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: min(94vw, 430px) !important;
    min-height: 72px !important;
    padding: 6px !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    transform: translateX(-50%) !important;
    background: rgba(255,255,255,.97) !important;
    border: 1px solid #e4e9ef !important;
    border-radius: 36px !important;
    box-shadow: 0 10px 34px rgba(20,45,70,.18) !important;
    backdrop-filter: blur(18px) !important;
  }

  .mobile-nav-item,
  #dashboard.dark .mobile-nav-item,
  #dashboard:not(.dark) .mobile-nav-item {
    min-height: 60px !important;
    padding: 7px 8px 6px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #1f2937 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 30px !important;
    box-shadow: none !important;
    font-size: .76rem !important;
    font-weight: 700 !important;
  }

  .mobile-nav-icon {
    width: 27px !important;
    height: 27px !important;
    min-height: 27px !important;
  }

  .mobile-nav-icon svg {
    width: 27px !important;
    height: 27px !important;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-nav-item.active,
  #dashboard.dark .mobile-nav-item.active,
  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #168acd !important;
    background: #e6f5ff !important;
    box-shadow: inset 0 0 0 1px rgba(33,150,243,.08) !important;
  }

  .mobile-nav-item.active::after {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav,
  #dashboard.dark .mobile-bottom-nav,
  #dashboard:not(.dark) .mobile-bottom-nav {
    width: calc(100vw - 16px) !important;
    min-height: 66px !important;
  }

  .mobile-nav-item,
  #dashboard.dark .mobile-nav-item,
  #dashboard:not(.dark) .mobile-nav-item {
    min-height: 54px !important;
    font-size: .68rem !important;
  }

  .mobile-nav-icon,
  .mobile-nav-icon svg {
    width: 24px !important;
    height: 24px !important;
    min-height: 24px !important;
  }
}

/* Final light/dark navigation visibility */
@media (max-width: 820px) {
  #dashboard.dark .mobile-bottom-nav {
    background: rgba(255,255,255,.98) !important;
    border-color: #d7e0e8 !important;
  }

  #dashboard.dark .mobile-nav-item,
  #dashboard.dark .mobile-nav-item .mobile-nav-icon {
    color: #263442 !important;
  }

  #dashboard.dark .mobile-nav-item.active,
  #dashboard.dark .mobile-nav-item.active .mobile-nav-icon {
    color: #087fbe !important;
  }

  #dashboard.dark .mobile-nav-item.active {
    background: #dff3ff !important;
  }

  #dashboard:not(.dark) .mobile-bottom-nav {
    background: rgba(5,14,20,.98) !important;
    border-color: #263b47 !important;
    box-shadow: 0 10px 34px rgba(0,0,0,.42) !important;
  }

  #dashboard:not(.dark) .mobile-nav-item {
    color: #d7e3e9 !important;
  }

  #dashboard:not(.dark) .mobile-nav-item .mobile-nav-icon {
    color: #f3f8fa !important;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
  }

  #dashboard:not(.dark) .mobile-nav-item.active {
    color: #50c8ff !important;
    background: #102f40 !important;
    box-shadow: inset 0 0 0 1px rgba(80,200,255,.24) !important;
  }

  #dashboard:not(.dark) .mobile-nav-item.active .mobile-nav-icon {
    color: #50c8ff !important;
    filter: drop-shadow(0 0 6px rgba(80,200,255,.3));
  }

  .mobile-nav-icon svg {
    stroke-width: 2.15 !important;
  }
}

/* Connection status inside personal profile */
.account-profile-copy {
  min-width: 0;
}

.profile-connection-statuses {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.profile-status {
  min-height: 30px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.profile-status i {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.55rem;
  font-style: normal;
}

.profile-status.bot {
  color: #067044;
  background: #e8fff4;
  border: 1px solid #86efac;
}

.profile-status.bot i {
  background: #10b981;
  box-shadow: 0 0 0 4px rgba(16,185,129,.14);
  animation: bot-online-pulse 1.8s ease-out infinite;
}

.profile-status.account {
  color: #075985;
  background: #e8f8ff;
  border: 1px solid #7dd3fc;
}

.profile-status.account i {
  width: 16px;
  height: 16px;
  color: #ffffff;
  background: #0ea5e9;
}

#dashboard:not(.dark) .profile-status.bot {
  color: #68f0b4;
  background: #0d2a20;
  border-color: #216c50;
}

#dashboard:not(.dark) .profile-status.account {
  color: #7dd3fc;
  background: #0c2634;
  border-color: #1c607c;
}

@media (max-width: 700px) {
  .account-profile-card {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .profile-connection-statuses {
    width: 100%;
    margin-left: 51px;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .profile-connection-statuses {
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-status {
    justify-content: center;
    padding-inline: 7px;
    font-size: 0.57rem;
  }
}

/* Connection badges now live in Settings > Profile */
.settings-profile-row {
  flex-wrap: wrap;
}

.settings-profile-statuses {
  margin-left: auto;
}

@media (max-width: 620px) {
  .settings-profile-statuses {
    width: 100%;
    margin-left: 49px;
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .settings-profile-statuses {
    margin-left: 0;
  }
}
