/* ======================================
   AlexHoursBoost — Professional Dark Neon Theme
   ====================================== */

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

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a2e;
  --bg-darker: #06060a;
  --neon: #00d4ff;
  --neon-dim: #0099bb;
  --neon-glow: 0 0 15px rgba(0, 212, 255, 0.25);
  --neon-glow-strong: 0 0 30px rgba(0, 212, 255, 0.4);
  --border-color: #1e1e2e;
  --text-primary: #e8e8f0;
  --text-muted: #8888a0;
  --radius: 12px;
  --radius-lg: 16px;
}

/* ── Base ── */
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 { font-family: 'Inter', sans-serif; }

.fw-800 { font-weight: 800 !important; }

.text-muted { color: var(--text-muted) !important; }

a { color: var(--neon); text-decoration: none; }
a:hover { color: #33e0ff; }

/* ── Neon Utilities ── */
.text-neon { color: var(--neon) !important; }
.bg-neon { background: var(--neon) !important; }
.bg-darker { background: var(--bg-darker); }

.btn-neon {
  background: linear-gradient(135deg, var(--neon), var(--neon-dim));
  color: #000;
  border: none;
  font-weight: 700;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.btn-neon:hover {
  background: linear-gradient(135deg, #33e0ff, var(--neon));
  color: #000;
  box-shadow: var(--neon-glow-strong);
  transform: translateY(-1px);
}

.btn-outline-neon {
  border: 1px solid var(--neon);
  color: var(--neon);
  background: transparent;
  font-weight: 600;
  border-radius: 8px;
}
.btn-outline-neon:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon);
  box-shadow: var(--neon-glow);
}

/* ── Navbar (Glass) ── */
.glass-nav {
  background: rgba(10, 10, 15, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.6rem 0;
}

.glass-nav .navbar-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff !important;
}

.brand-text {
  background: linear-gradient(135deg, var(--neon), #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-nav .nav-link {
  color: #aaa !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem !important;
  border-radius: 6px;
  transition: all 0.2s;
}

.glass-nav .nav-link:hover,
.glass-nav .nav-link.active {
  color: var(--neon) !important;
  background: rgba(0, 212, 255, 0.08);
}

/* Plan badges */
.bg-plan-free { background: #555 !important; color: #fff !important; }
.bg-plan-pro { background: linear-gradient(135deg, var(--neon), #0099ff) !important; color: #000 !important; font-weight: 700; }
.bg-plan-enterprise { background: linear-gradient(135deg, #f39c12, #e74c3c) !important; color: #000 !important; font-weight: 700; }

/* Language dropdown */
.lang-dropdown .dropdown-menu {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  min-width: auto;
}
.lang-dropdown .dropdown-item {
  color: var(--text-primary);
  font-size: 0.85rem;
}
.lang-dropdown .dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon);
}

/* ── Stat Cards ── */
.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(0, 212, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ── Hero Section ── */
.hero-section {
  background: radial-gradient(ellipse at 30% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(0, 100, 255, 0.06) 0%, transparent 50%),
              var(--bg-primary);
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.min-vh-75 { min-height: 55vh; }

.hero-logo {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.stat-counter h2 {
  font-size: 2rem;
}

/* ── Feature Cards ── */
.feature-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}
.feature-card:hover {
  border-color: var(--neon);
  transform: translateY(-4px);
  box-shadow: var(--neon-glow);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ── Auth Pages ── */
.auth-wrapper {
  min-height: calc(100vh - 200px);
  background: radial-gradient(circle at 50% 30%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.auth-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ── Pricing Cards ── */
.pricing-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.pricing-featured {
  border-color: var(--neon);
  box-shadow: var(--neon-glow);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--neon);
  color: #000;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.pricing-amount {
  margin: 1rem 0;
}
.pricing-features li {
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.pricing-features li i {
  width: 20px;
}

/* ── Step Cards (How-to) ── */
.step-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  position: relative;
}
.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--neon), var(--neon-dim));
  color: #000;
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Table ── */
.table-dark {
  --bs-table-bg: var(--bg-secondary);
  --bs-table-border-color: var(--border-color);
}
.table-dark thead th {
  background: var(--bg-tertiary);
  color: var(--neon);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.75rem;
}
.table-dark td {
  padding: 0.75rem;
  vertical-align: middle;
}
.table-dark tbody tr:hover {
  background: rgba(0, 212, 255, 0.03) !important;
}

/* ── Toggle Switch ── */
.form-check-input:checked {
  background-color: var(--neon);
  border-color: var(--neon);
}

/* ── Progress Bar ── */
.progress {
  border-radius: 6px;
}
.progress-bar {
  border-radius: 6px;
  transition: width 0.5s ease;
}
.progress-bar span {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ── Forms ── */
.form-control:focus, .form-select:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 0.2rem rgba(0, 212, 255, 0.15);
}

/* ── Terminal ── */
.terminal-box {
  background: #050508;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  height: 70vh;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}
/* New terminal redesign */
.terminal-box-new {
  background: #040407;
  border: 1px solid rgba(0,212,255,0.1);
  border-radius: 10px;
  padding: .6rem .8rem;
  height: 58vh;
  min-height: 320px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8rem;
  line-height: 1.75;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,212,255,0.15) transparent;
}
.terminal-box-new::-webkit-scrollbar { width: 5px; }
.terminal-box-new::-webkit-scrollbar-track { background: transparent; }
.terminal-box-new::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.15); border-radius: 3px; }

/* Terminal empty state */
.terminal-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 58vh;
  min-height: 320px;
  background: #040407;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  color: #333;
  text-align: center;
  padding: 2rem;
}

/* Log lines */
.tlog-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 6px;
  padding: 3px 4px;
  border-radius: 4px;
  border-bottom: 1px solid rgba(255,255,255,0.025);
  transition: background .1s;
}
.tlog-line:hover { background: rgba(255,255,255,0.03); }
.tlog-time {
  color: #3a3a3a;
  font-size: 0.7rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 108px;
}
.tlog-badge {
  display: inline-block;
  width: 52px;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: .04em;
}
.tlog-badge-info    { background: rgba(30,58,95,0.7);  color: #5dade2; }
.tlog-badge-success { background: rgba(30,95,58,0.7);  color: #58d68d; }
.tlog-badge-warn    { background: rgba(95,78,30,0.7);  color: #f4d03f; }
.tlog-badge-error   { background: rgba(95,30,30,0.7);  color: #ec7063; }
.tlog-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.65rem;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid;
  flex-shrink: 0;
  line-height: 1.6;
}
.tlog-chip-account { background: rgba(0,212,255,0.07);  color: #4a9cc4; border-color: rgba(0,212,255,0.2); }
.tlog-chip-user    { background: rgba(155,89,182,0.08); color: #9b59b6; border-color: rgba(155,89,182,0.25); }
.tlog-chip-system  { background: rgba(255,255,255,0.04); color: #555;   border-color: rgba(255,255,255,0.08); }
.tlog-chip i       { font-size: .55rem; opacity: .8; }
.tlog-msg { color: #9a9a9a; flex: 1; word-break: break-word; }
.tlog-info    .tlog-msg { color: #7a8a9a; }
.tlog-success .tlog-msg { color: #58d68d; }
.tlog-warn    .tlog-msg { color: #cba92a; }
.tlog-error   .tlog-msg { color: #e05a4e; }

/* Stats cards */
.tlog-stat {
  background: var(--stat-color);
  border: 1px solid var(--stat-border);
  border-radius: 8px;
  padding: .5rem .7rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.tlog-stat-label { font-size: .67rem; color: #555; }
.tlog-stat-val   { font-size: 1.05rem; font-weight: 700; color: #bbb; line-height: 1.2; }

/* Alert notices */
.alert-tlog {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem .8rem;
  border-radius: 8px;
  font-size: .81rem;
}
.alert-tlog-info   { background: rgba(0,212,255,0.05);   border: 1px solid rgba(0,212,255,0.18);   color: #6a9ab3; }
.alert-tlog-admin  { background: rgba(155,89,182,0.06);  border: 1px solid rgba(155,89,182,0.22);  color: #a07ac0; }
.alert-tlog-error  { background: rgba(236,112,99,0.06);  border: 1px solid rgba(236,112,99,0.22);  color: #c0726a; }
.alert-tlog-warn   { background: rgba(244,208,63,0.05);  border: 1px solid rgba(244,208,63,0.2);   color: #b0962a; }

/* Filter buttons */
.tlog-filter-btn {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #666;
  font-size: .73rem;
  padding: 2px 9px;
  transition: all .15s;
}
.tlog-filter-btn:hover { background: rgba(255,255,255,0.08); color: #aaa; }
.tlog-filter-btn.active { background: rgba(0,212,255,0.12); border-color: rgba(0,212,255,0.35); color: #00d4ff; }

/* Auto-scroll button */
.tlog-autoscroll-btn {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.3);
  color: #00d4ff;
  font-size: .73rem;
  padding: 2px 10px;
  transition: all .15s;
}
.tlog-autoscroll-btn:not(.active) {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: #555;
}

/* Connection dot animation */
.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50%       { opacity: .35; }
}
.connection-dot { animation: pulse-green 2.2s ease-in-out infinite; }

/* Old log styles (kept for compatibility) */
.log-line { padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,0.03); }
.log-time { color: #444; margin-right: 8px; font-size: 0.72rem; }
.log-badge {
  display: inline-block;
  width: 54px;
  text-align: center;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-right: 8px;
}
.log-info .log-badge { background: #1e3a5f; color: #5dade2; }
.log-success .log-badge { background: #1e5f3a; color: #58d68d; }
.log-warn .log-badge { background: #5f4e1e; color: #f4d03f; }
.log-error .log-badge { background: #5f1e1e; color: #ec7063; }
.log-info { color: #888; }
.log-success { color: #58d68d; }
.log-warn { color: #f4d03f; }
.log-error { color: #ec7063; }

/* ── Footer ── */
.footer-section {
  background: var(--bg-darker);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--neon);
}

/* ── Accordion (FAQ) ── */
.accordion-button {
  font-weight: 600;
}
.accordion-button:not(.collapsed) {
  background: var(--bg-tertiary) !important;
  color: var(--neon) !important;
  box-shadow: none;
}
.accordion-button::after {
  filter: invert(1);
}
.accordion-button:focus {
  box-shadow: none;
  border-color: var(--neon);
}

/* ── Cards ── */
.card.bg-dark {
  background: var(--bg-secondary) !important;
}

/* ── Badges ── */
.badge { font-weight: 600; border-radius: 6px; }

/* ── Modals ── */
.modal-content.bg-dark {
  background: var(--bg-secondary) !important;
  border: 1px solid var(--border-color);
}
.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* ── Game results ── */
.game-result:hover, .acct-detect-game:hover {
  background: var(--bg-tertiary);
}

/* ── Guard modal ── */
#guardCodeInput:focus {
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.4);
}

/* ── SweetAlert override ── */
.swal2-popup {
  background: var(--bg-secondary) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon); }

/* ── Dropdown dark overrides ── */
.dropdown-menu-dark {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}
.dropdown-menu-dark .dropdown-item {
  color: var(--text-primary);
}
.dropdown-menu-dark .dropdown-item:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--neon);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 0 2rem;
    text-align: center;
  }
  .hero-section .col-lg-6:last-child {
    display: none;
  }
  .hero-section .d-flex {
    justify-content: center;
  }
  .hero-trust-mini {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem !important;
  }
  .stat-counter h2 {
    font-size: 1.5rem;
  }
  .auth-card {
    padding: 1.5rem;
    margin: 0 1rem;
  }
  .pricing-card {
    padding: 1.5rem;
  }
}

/* ── Alert tweaks ── */
.alert { border-radius: 8px; }

/* ── How-It-Works Steps ── */
.how-step {
  position: relative;
  padding: 2rem 1.5rem;
}
.how-step-number {
  position: absolute;
  top: 0;
  right: 1.5rem;
  font-size: 4rem;
  font-weight: 800;
  color: rgba(0, 212, 255, 0.08);
  line-height: 1;
}
.how-step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 2px solid var(--border-color);
  transition: all 0.3s;
}
.how-step:hover .how-step-icon {
  border-color: var(--neon);
  box-shadow: var(--neon-glow);
}

/* ── Trust Cards ── */
.trust-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: all 0.3s;
}
.trust-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}
.trust-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 212, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

/* ── Testimonial Cards ── */
.testimonial-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  height: 100%;
  transition: all 0.3s;
}
.testimonial-card:hover {
  border-color: rgba(255, 193, 7, 0.3);
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ── CTA Section ── */
.cta-section {
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 60%),
              var(--bg-primary);
}

/* ── Hero Visual Glow ── */
.hero-visual {
  position: relative;
}
.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* ── Payment Methods ── */
.payment-methods .payment-icon {
  width: 40px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s;
}
.payment-methods .payment-icon:hover {
  color: var(--neon);
  border-color: var(--neon);
}

/* ── Sections spacing ── */
.py-lg-6 { padding-top: 4rem; padding-bottom: 4rem; }

/* ── Status dot pulse ── */
.status-dot { animation: statusPulse 2s ease-in-out infinite; }
@keyframes statusPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Account card hover ── */
.stat-card { transition: all 0.3s ease; }
.stat-card:hover { border-color: rgba(0,212,255,0.15) !important; }

/* ── Scroll Animations ── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: animFadeUp 0.6s ease forwards;
  animation-play-state: paused;
}
.anim-fade-up.anim-visible { animation-play-state: running; }
@keyframes animFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Feature card hover lift ── */
.feature-card { transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 12px 40px rgba(0,212,255,0.12); }
.feature-card .feature-icon i { transition: transform 0.3s ease; }
.feature-card:hover .feature-icon i { transform: scale(1.2); }

/* ── How-step hover ── */
.how-step { transition: all 0.3s ease; }
.how-step:hover { transform: translateY(-5px); }
.how-step:hover .how-step-icon i { filter: drop-shadow(0 0 10px currentColor); }

/* ── Trust card shine ── */
.trust-card { transition: all 0.3s ease; overflow: hidden; position: relative; }
.trust-card::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent 40%, rgba(0,212,255,0.03) 50%, transparent 60%); transition: transform 0.6s; transform: translateX(-100%); }
.trust-card:hover::after { transform: translateX(100%); }

/* ── Testimonial card glow ── */
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover { border-color: rgba(255,193,7,0.2) !important; box-shadow: 0 8px 32px rgba(255,193,7,0.08); }

/* ── CTA pulse ── */
.cta-section .btn-neon { animation: ctaPulse 3s ease-in-out infinite; }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0,212,255,0.3); } 50% { box-shadow: 0 0 20px 5px rgba(0,212,255,0.15); } }

/* ── Stat counter glow ── */
.stat-counter h2 { transition: text-shadow 0.3s; }
.stat-counter:hover h2 { text-shadow: 0 0 20px currentColor; }
