/* ============================================================
   NEO THEME - Dark Neon Design System
   MistCash-inspired modern dark UI
   ============================================================ */

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

/* ==================== CSS VARIABLES ==================== */
:root {
  --neo-bg:            #050d1a;
  --neo-bg-2:          #081222;
  --neo-bg-3:          #0d1b2e;
  --neo-bg-card:       rgba(13, 27, 46, 0.8);
  --neo-border:        rgba(0, 230, 118, 0.12);
  --neo-border-hover:  rgba(0, 230, 118, 0.35);
  --neo-primary:       #00e676;
  --neo-primary-dark:  #00b85c;
  --neo-primary-dim:   rgba(0, 230, 118, 0.15);
  --neo-primary-glow:  0 0 20px rgba(0, 230, 118, 0.4);
  --neo-secondary:     #7c3aed;
  --neo-secondary-dim: rgba(124, 58, 237, 0.15);
  --neo-accent-blue:   #00b4d8;
  --neo-accent-orange: #ff9500;
  --neo-accent-pink:   #f72585;
  --neo-text:          #e8f4ff;
  --neo-text-muted:    rgba(168, 205, 255, 0.55);
  --neo-sidebar-w:     240px;
  --neo-topbar-h:      64px;
  --neo-radius:        12px;
  --neo-radius-lg:     18px;
  --neo-transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== BASE RESET ==================== */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  background-color: var(--neo-bg) !important;
  color: var(--neo-text) !important;
  min-height: 100vh;
}

body {
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0, 230, 118, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
}

a { color: var(--neo-primary); transition: color var(--neo-transition); }
a:hover { color: #fff; text-decoration: none; }

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--neo-bg-2); }
::-webkit-scrollbar-thumb { background: var(--neo-primary-dark); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--neo-primary); }

/* ==================== SIDEBAR ==================== */
.side-nav {
  background: var(--neo-bg-2) !important;
  border-right: 1px solid var(--neo-border) !important;
  width: var(--neo-sidebar-w) !important;
  position: fixed !important;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform var(--neo-transition);
  box-shadow: 4px 0 30px rgba(0,0,0,0.4);
}

.side-nav .logo-text,
.side-nav span.text-white {
  color: var(--neo-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.3px;
}

.side-nav__devider {
  border-color: var(--neo-border) !important;
  opacity: 1 !important;
}

/* Sidebar logo area */
.side-nav > a:first-child {
  padding: 20px 20px 0 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
}

.side-nav > a:first-child img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

/* Side menu items */
.side-menu {
  display: flex !important;
  align-items: center !important;
  padding: 10px 20px !important;
  margin: 2px 10px !important;
  border-radius: var(--neo-radius) !important;
  color: var(--neo-text-muted) !important;
  transition: all var(--neo-transition) !important;
  text-decoration: none !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.side-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--neo-primary-dim), transparent);
  opacity: 0;
  transition: opacity var(--neo-transition);
  border-radius: var(--neo-radius);
}

.side-menu:hover {
  color: var(--neo-text) !important;
  background: rgba(0, 230, 118, 0.08) !important;
  transform: translateX(3px);
}

.side-menu:hover::before { opacity: 1; }

.side-menu--active {
  color: var(--neo-primary) !important;
  background: var(--neo-primary-dim) !important;
  border: 1px solid var(--neo-border-hover) !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.12);
}

.side-menu--active .side-menu__icon { color: var(--neo-primary) !important; }

.side-menu__icon {
  width: 28px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  color: inherit;
}

.side-menu__icon svg,
.side-menu__icon i { width: 18px !important; height: 18px !important; }

.side-menu__title {
  margin-left: 12px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: inherit;
  white-space: nowrap;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background: rgba(8, 18, 34, 0.92) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  padding: 0 24px !important;
  height: var(--neo-topbar-h) !important;
  display: flex !important;
  align-items: center !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  margin-left: 0 !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

/* Breadcrumb */
.breadcrumb { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.breadcrumb-item a { color: var(--neo-text-muted) !important; font-size: 13px; }
.breadcrumb-item a:hover { color: var(--neo-primary) !important; }
.breadcrumb-item.active { color: var(--neo-text) !important; font-size: 13px; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--neo-text-muted) !important; }

/* Notification bell */
.notification { color: var(--neo-text-muted) !important; cursor: pointer; }
.notification:hover svg { color: var(--neo-primary) !important; }
.notification--bullet::after {
  background: var(--neo-primary) !important;
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.6);
}

/* Notification dropdown */
.notification-content__box {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
}

.notification-content__title {
  color: var(--neo-text) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  padding: 16px !important;
  font-weight: 600;
  font-size: 14px;
}

/* ==================== MAIN CONTENT ==================== */
.content {
  margin-left: var(--neo-sidebar-w) !important;
  min-height: 100vh;
  background: transparent !important;
}

/* ==================== CARDS / BOX ==================== */
.box {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  backdrop-filter: blur(10px);
  transition: all var(--neo-transition);
  position: relative;
  overflow: hidden;
}

.box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neo-primary), transparent);
  opacity: 0;
  transition: opacity var(--neo-transition);
}

.box:hover {
  border-color: var(--neo-border-hover) !important;
  box-shadow: 0 8px 32px rgba(0, 230, 118, 0.08), 0 2px 8px rgba(0,0,0,0.3) !important;
  transform: translateY(-2px);
}

.box:hover::before { opacity: 1; }

/* ==================== REPORT BOX (STATS CARDS) ==================== */
.report-box {
  perspective: 800px;
}

.report-box .box {
  background: linear-gradient(135deg, rgba(13,27,46,0.95), rgba(8,18,34,0.95)) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  padding: 20px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

.report-box .box::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 100px; height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--neo-primary-dim), transparent);
  transition: all var(--neo-transition);
}

.report-box:hover .box {
  transform: perspective(800px) rotateX(3deg) scale(1.02) !important;
  border-color: var(--neo-border-hover) !important;
  box-shadow: 0 12px 40px rgba(0, 230, 118, 0.15), 0 4px 16px rgba(0,0,0,0.4) !important;
}

.report-box__icon {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 10px;
  background: var(--neo-primary-dim);
  padding: 8px;
}

.report-box__icon.text-success { background: rgba(0, 230, 118, 0.15) !important; color: var(--neo-primary) !important; }
.report-box__icon.text-warning { background: rgba(255, 149, 0, 0.15) !important; color: var(--neo-accent-orange) !important; }
.report-box__icon.text-pending { background: rgba(0, 180, 216, 0.15) !important; color: var(--neo-accent-blue) !important; }
.report-box__icon.text-primary  { background: rgba(124, 58, 237, 0.15) !important; color: var(--neo-secondary) !important; }
.report-box__icon.text-danger   { background: rgba(247, 37, 133, 0.15) !important; color: var(--neo-accent-pink) !important; }

.report-box__indicator {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px;
}

.report-box__indicator.bg-success { background: rgba(0, 230, 118, 0.2) !important; color: var(--neo-primary) !important; }
.report-box__indicator.bg-danger  { background: rgba(247, 37, 133, 0.2) !important; color: var(--neo-accent-pink) !important; }

/* Stats text */
.text-3xl {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: var(--neo-text) !important;
  letter-spacing: -0.5px;
}

.text-slate-500, .text-muted, [class*="text-slate-"] {
  color: var(--neo-text-muted) !important;
}

/* ==================== BUTTONS ==================== */
.btn {
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all var(--neo-transition) !important;
  border: none !important;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark)) !important;
  color: #050d1a !important;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3) !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00ff8a, var(--neo-primary)) !important;
  box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5) !important;
  transform: translateY(-1px);
  color: #050d1a !important;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--neo-secondary), #5b21b6) !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3) !important;
}

.btn-secondary:hover {
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5) !important;
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #00e676, #00b85c) !important;
  color: #050d1a !important;
  box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3) !important;
}

.btn-success:hover {
  box-shadow: 0 6px 25px rgba(0, 230, 118, 0.5) !important;
  transform: translateY(-1px);
}

.btn-warning {
  background: linear-gradient(135deg, #ff9500, #e67e00) !important;
  color: #050d1a !important;
}

.btn-danger {
  background: linear-gradient(135deg, #f72585, #c81d6d) !important;
  color: #fff !important;
}

.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

.btn-outline-primary:hover {
  background: var(--neo-primary-dim) !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2) !important;
}

.btn-pending {
  background: linear-gradient(135deg, #00b4d8, #0077a8) !important;
  color: #fff !important;
}

/* ==================== NEO NAMED BUTTONS ==================== */
.neo-btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #00e676, #00b85c);
  color: #050d1a !important; font-weight: 700; font-size: 13px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0,230,118,0.3);
  transition: all var(--neo-transition);
}
.neo-btn-success:hover { transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,230,118,0.45); color: #050d1a !important; }

.neo-btn-warning {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #ff9500, #e67e00);
  color: #050d1a !important; font-weight: 700; font-size: 13px;
  text-decoration: none !important;
  transition: all var(--neo-transition);
}
.neo-btn-warning:hover { transform: translateY(-1px); opacity: .9; color: #050d1a !important; }

.neo-btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #f72585, #c81d6d);
  color: #fff !important; font-weight: 700; font-size: 13px;
  text-decoration: none !important;
  transition: all var(--neo-transition);
}
.neo-btn-danger:hover { transform: translateY(-1px); opacity: .9; }

.neo-btn-xs {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(0,230,118,0.15); border: 1px solid rgba(0,230,118,0.3);
  color: var(--neo-primary) !important; font-weight: 600; font-size: 12px;
  text-decoration: none !important; transition: all var(--neo-transition);
}
.neo-btn-xs:hover { background: rgba(0,230,118,0.25); }

/* ==================== FORMS ==================== */
.form-control, .form-select, input.input-bordered, select.input-bordered {
  background: rgba(8, 18, 34, 0.8) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: 8px !important;
  color: var(--neo-text) !important;
  font-family: 'Inter', sans-serif !important;
  transition: all var(--neo-transition) !important;
  padding: 10px 14px !important;
}

.form-control:focus, .form-select:focus, input.input-bordered:focus {
  border-color: var(--neo-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.12) !important;
  background: rgba(13, 27, 46, 0.9) !important;
  outline: none !important;
  color: var(--neo-text) !important;
}

.form-control::placeholder { color: var(--neo-text-muted) !important; }

.input-group { display: flex !important; }
.input-group .form-control { border-radius: 8px 0 0 8px !important; }
.input-group .btn { border-radius: 0 8px 8px 0 !important; }
.input-group-btn .btn { border-radius: 0 8px 8px 0 !important; height: 100%; }

label, .form-label { color: var(--neo-text-muted) !important; font-size: 13px !important; font-weight: 500 !important; }

/* ==================== TABLES ==================== */
.table {
  color: var(--neo-text) !important;
}

.table thead th {
  background: rgba(0, 230, 118, 0.05) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  color: var(--neo-primary) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px !important;
}

.table tbody tr {
  border-bottom: 1px solid var(--neo-border) !important;
  transition: background var(--neo-transition);
}

.table tbody tr:hover {
  background: rgba(0, 230, 118, 0.03) !important;
}

.table td {
  padding: 12px 16px !important;
  vertical-align: middle !important;
  color: var(--neo-text) !important;
  font-size: 13.5px;
}

/* ==================== BADGES ==================== */
.badge {
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 20px !important;
  padding: 4px 10px !important;
  letter-spacing: 0.3px;
}

.bg-success, .badge.bg-success { background: rgba(0, 230, 118, 0.2) !important; color: var(--neo-primary) !important; }
.bg-warning, .badge.bg-warning { background: rgba(255, 149, 0, 0.2) !important; color: var(--neo-accent-orange) !important; }
.bg-danger,  .badge.bg-danger  { background: rgba(247, 37, 133, 0.2) !important; color: var(--neo-accent-pink) !important; }
.bg-primary, .badge.bg-primary { background: rgba(124, 58, 237, 0.2) !important; color: var(--neo-secondary) !important; }
.bg-pending, .badge.bg-pending { background: rgba(0, 180, 216, 0.2) !important; color: var(--neo-accent-blue) !important; }

/* ==================== ALERTS ==================== */
.alert {
  border-radius: var(--neo-radius) !important;
  border: 1px solid var(--neo-border) !important;
  font-size: 13.5px;
}

.alert-pending {
  background: rgba(0, 180, 216, 0.1) !important;
  border-color: rgba(0, 180, 216, 0.3) !important;
  color: #90e0ef !important;
}

.alert-success {
  background: rgba(0, 230, 118, 0.1) !important;
  border-color: rgba(0, 230, 118, 0.3) !important;
  color: var(--neo-primary) !important;
}

.alert-danger {
  background: rgba(247, 37, 133, 0.1) !important;
  border-color: rgba(247, 37, 133, 0.3) !important;
  color: #ff6b9d !important;
}

/* ==================== TABS ==================== */
.nav-link-tabs {
  border-bottom: 1px solid var(--neo-border) !important;
}

.nav-link {
  color: var(--neo-text-muted) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border: none !important;
  background: transparent !important;
  padding: 12px 18px !important;
  transition: all var(--neo-transition) !important;
  border-bottom: 2px solid transparent !important;
}

.nav-link:hover { color: var(--neo-text) !important; }
.nav-link.active {
  color: var(--neo-primary) !important;
  border-bottom-color: var(--neo-primary) !important;
  background: transparent !important;
}

/* ==================== DROPDOWN ==================== */
.dropdown-menu, .dropdown-content {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  overflow: hidden;
}

.dropdown-item {
  color: var(--neo-text-muted) !important;
  font-size: 13.5px !important;
  padding: 10px 16px !important;
  transition: all var(--neo-transition) !important;
}

.dropdown-item:hover {
  background: var(--neo-primary-dim) !important;
  color: var(--neo-primary) !important;
}

.dropdown-divider { border-color: var(--neo-border) !important; }

/* Account dropdown */
.dropdown-content.bg-primary {
  background: var(--neo-bg-3) !important;
}

.dropdown-content.bg-primary li:first-child {
  padding: 16px !important;
  border-bottom: 1px solid var(--neo-border);
}

.dropdown-content.bg-primary li:first-child .font-medium {
  color: var(--neo-text) !important;
  font-weight: 700;
  font-size: 14px;
}

/* ==================== HEADINGS ==================== */
h1, h2, h3, h4, h5, h6 { color: var(--neo-text) !important; font-family: 'Inter', sans-serif !important; }
h2.text-lg { font-size: 18px !important; font-weight: 700 !important; }

/* ==================== PAGINATION ==================== */
.pagination .page-item .page-link {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text-muted) !important;
  border-radius: 8px !important;
  margin: 0 2px;
  transition: all var(--neo-transition);
}

.pagination .page-item.active .page-link {
  background: var(--neo-primary-dim) !important;
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

.pagination .page-item .page-link:hover {
  background: var(--neo-primary-dim) !important;
  color: var(--neo-primary) !important;
}

/* ==================== PROFILE BOX ==================== */
.image-fit {
  border-radius: 50% !important;
  border: 2px solid var(--neo-border-hover) !important;
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.2);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  background: var(--neo-bg-2) !important;
  border-bottom: 1px solid var(--neo-border) !important;
}

.mobile-menu-bar {
  background: var(--neo-bg-2) !important;
  padding: 0 16px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid var(--neo-border);
  width: 100% !important;
  box-sizing: border-box !important;
}

.mobile-menu .scrollable {
  background: var(--neo-bg-2) !important;
  padding: 8px 0 !important;
}

.menu {
  display: flex !important;
  align-items: center !important;
  padding: 11px 20px !important;
  color: var(--neo-text-muted) !important;
  transition: all var(--neo-transition) !important;
  text-decoration: none !important;
}

.menu:hover {
  color: var(--neo-text) !important;
  background: rgba(0, 230, 118, 0.06) !important;
}

.menu--active {
  color: var(--neo-primary) !important;
  background: var(--neo-primary-dim) !important;
}

.menu__icon {
  width: 26px !important;
  height: 26px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.menu__title {
  margin-left: 12px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* ==================== INTRO-Y ANIMATIONS ==================== */
@keyframes neo-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro-y {
  animation: neo-fade-up 0.4s ease forwards;
}

/* ==================== OFFERWALL CARDS ==================== */
.neo-offer-card {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  padding: 20px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.neo-offer-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(0,230,118,0.05));
  transition: opacity var(--neo-transition);
}

.neo-offer-card:hover {
  border-color: var(--neo-border-hover) !important;
  box-shadow: 0 12px 40px rgba(0,230,118,0.12), 0 4px 16px rgba(0,0,0,0.4) !important;
  transform: translateY(-4px) !important;
}

.neo-offer-card .offer-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255,255,255,0.08);
  padding: 8px;
}

.neo-offer-card .offer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--neo-text);
}

.neo-offer-card .offer-reward {
  font-size: 13px;
  color: var(--neo-primary);
  font-weight: 600;
}

.neo-badge-new {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark)) !important;
  color: #050d1a !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 20px !important;
  letter-spacing: 0.5px;
}

/* ==================== FLOATING ACTION BUTTON ==================== */
#main-div {
  position: fixed !important;
  right: 24px !important;
  bottom: 24px !important;
  z-index: 100 !important;
}

#main-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 50px !important;
  height: 50px !important;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark)) !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 20px rgba(0, 230, 118, 0.4) !important;
  cursor: pointer;
  transition: all var(--neo-transition) !important;
}

#main-button svg circle { fill: #050d1a !important; }

#main-button:hover {
  box-shadow: 0 6px 30px rgba(0, 230, 118, 0.6) !important;
  transform: scale(1.08);
}

#main-button.open ~ button,
#main-button.open ~ a {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text) !important;
}

#main-button ~ .weather-color {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border-hover) !important;
  color: var(--neo-primary) !important;
}

/* ==================== BODY PADDING OVERRIDE ==================== */
body.py-5 { padding: 0 !important; }

/* ==================== TEXT COLORS ==================== */
.text-primary { color: var(--neo-secondary) !important; }
.text-success  { color: var(--neo-primary) !important; }
.text-warning  { color: var(--neo-accent-orange) !important; }
.text-danger   { color: var(--neo-accent-pink) !important; }
.text-pending  { color: var(--neo-accent-blue) !important; }
.text-white    { color: var(--neo-text) !important; }

/* ==================== TASKS CARDS ==================== */
.task-neo-card {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  padding: 20px 24px !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
  overflow: hidden;
}

.task-neo-card:hover {
  border-color: var(--neo-border-hover) !important;
  box-shadow: 0 10px 36px rgba(0,230,118,0.1) !important;
  transform: translateY(-3px) !important;
}

/* ==================== KEYFRAMES ==================== */
@keyframes neo-glow-pulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 230, 118, 0.2); }
  50%       { box-shadow: 0 0 30px rgba(0, 230, 118, 0.5); }
}

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

@keyframes neo-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes neo-spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .side-nav { transform: translateX(-100%); }
  .side-nav.open { transform: translateX(0); }
  .content { margin-left: 0 !important; }
  .top-bar { margin-left: 0 !important; }
}

@media (max-width: 640px) {
  :root { --neo-topbar-h: 56px; }
  .text-3xl { font-size: 1.3rem !important; }
}

/* ==================== AUTH PAGES (login/register/home) ==================== */
.neo-auth-page {
  min-height: 100vh;
  background: var(--neo-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,230,118,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(124,58,237,0.08) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  font-family: 'Inter', sans-serif;
}

.neo-auth-card {
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: 24px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}

.neo-auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neo-primary), transparent);
}

.neo-auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.neo-auth-logo img {
  height: 50px;
  filter: drop-shadow(0 0 12px rgba(0,230,118,0.4));
}

.neo-auth-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--neo-text);
  text-align: center;
  margin-bottom: 6px;
}

.neo-auth-subtitle {
  font-size: 14px;
  color: var(--neo-text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.neo-field {
  margin-bottom: 16px;
}

.neo-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--neo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.neo-field input,
.neo-field select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(8,18,34,0.9);
  border: 1px solid var(--neo-border);
  border-radius: 10px;
  color: var(--neo-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all var(--neo-transition);
  outline: none;
}

.neo-field input:focus,
.neo-field select:focus {
  border-color: var(--neo-primary);
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12);
  background: rgba(13,27,46,0.95);
}

.neo-field input::placeholder { color: var(--neo-text-muted); }

.neo-btn-primary {
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark));
  color: #050d1a;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--neo-transition);
  box-shadow: 0 6px 20px rgba(0,230,118,0.35);
  margin-top: 8px;
  letter-spacing: 0.3px;
}

.neo-btn-primary:hover {
  box-shadow: 0 8px 30px rgba(0,230,118,0.55);
  transform: translateY(-1px);
}

.neo-auth-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--neo-text-muted);
}

.neo-auth-footer a {
  color: var(--neo-primary);
  font-weight: 600;
}

.neo-auth-footer a:hover { color: #fff; }

.neo-forgot-link {
  font-size: 13px;
  color: var(--neo-text-muted);
  display: block;
  text-align: right;
  margin-bottom: 8px;
}

.neo-forgot-link:hover { color: var(--neo-primary); }

/* Auth page updated layout */
.neo-auth-page {
  display: block !important;
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  background: var(--neo-bg);
  min-height: 100vh;
}

.neo-auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 16px;
  position: relative;
  z-index: 1;
}

/* Background animated orbs */
.neo-auth-bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.neo-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: neo-orb-drift 12s ease-in-out infinite alternate;
}

.neo-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,230,118,0.1), transparent 70%);
  top: -150px; left: -150px;
  animation-duration: 14s;
}

.neo-orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.1), transparent 70%);
  bottom: -100px; right: -100px;
  animation-duration: 18s;
  animation-direction: alternate-reverse;
}

.neo-orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,216,0.07), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
}

@keyframes neo-orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Auth logo - updated to support centered column layout */
.neo-auth-logo {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
  gap: 8px;
}

.neo-auth-logo h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--neo-text);
  margin: 0;
  letter-spacing: -0.5px;
}

.neo-auth-logo p {
  font-size: 14px;
  color: var(--neo-text-muted);
  margin: 0;
}

/* Auth form */
.neo-auth-form { display: flex; flex-direction: column; }

/* Secondary button */
.neo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--neo-border);
  color: var(--neo-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--neo-transition);
}

.neo-btn-secondary:hover {
  border-color: var(--neo-primary);
  color: var(--neo-primary);
  background: var(--neo-primary-dim);
}

/* ==================== HOME PAGE ==================== */
.neo-home {
  font-family: 'Inter', sans-serif;
  background: var(--neo-bg);
  color: var(--neo-text);
  min-height: 100vh;
}

/* Home navbar */
.neo-navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(5, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--neo-border);
  height: 68px;
  display: flex;
  align-items: center;
  padding: 0 40px;
}

.neo-navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.neo-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.neo-nav-logo img {
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(0,230,118,0.4));
}

.neo-nav-logo span {
  font-size: 20px;
  font-weight: 800;
  color: var(--neo-text);
  letter-spacing: -0.5px;
}

.neo-nav-logo span em {
  font-style: normal;
  color: var(--neo-primary);
}

.neo-nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.neo-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--neo-text-muted);
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--neo-transition);
}

.neo-nav-links a:hover {
  color: var(--neo-text);
  background: rgba(255,255,255,0.05);
}

.neo-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.neo-btn-login {
  padding: 8px 20px;
  border: 1px solid var(--neo-border-hover);
  border-radius: 8px;
  color: var(--neo-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--neo-transition);
  background: transparent;
}

.neo-btn-login:hover {
  background: rgba(0,230,118,0.08);
  border-color: var(--neo-primary);
  color: var(--neo-primary);
}

.neo-btn-register {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark));
  border-radius: 8px;
  color: #050d1a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--neo-transition);
  box-shadow: 0 4px 15px rgba(0,230,118,0.3);
}

.neo-btn-register:hover {
  box-shadow: 0 6px 25px rgba(0,230,118,0.5);
  transform: translateY(-1px);
  color: #050d1a;
}

/* ========== REDESIGNED HERO ========== */
.neo-hero {
  padding: 110px 40px 0;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #050d1a 0%, #081422 40%, #0a1a10 100%);
}

/* Grid background */
.neo-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,230,118,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,230,118,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Glow orbs */
.neo-hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}
.neo-hero-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,230,118,0.12) 0%, transparent 70%);
  top: -100px; left: -100px;
  animation: neo-glow-drift 8s ease-in-out infinite;
}
.neo-hero-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.10) 0%, transparent 70%);
  top: 20%; right: -80px;
  animation: neo-glow-drift 11s ease-in-out infinite reverse;
}
.neo-hero-glow-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,180,216,0.08) 0%, transparent 70%);
  bottom: 10%; left: 30%;
  animation: neo-glow-drift 9s ease-in-out infinite 2s;
}
@keyframes neo-glow-drift {
  0%, 100% { transform: translate(0,0); }
  33% { transform: translate(30px, -20px); }
  66% { transform: translate(-20px, 30px); }
}

/* Floating particles */
.neo-hero-particles { position: absolute; inset: 0; pointer-events: none; }
.neo-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  font-size: calc(18px * var(--s, 1));
  animation: neo-particle-float var(--d, 3s) ease-in-out infinite;
  opacity: 0.55;
}
@keyframes neo-particle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.55; }
  50% { transform: translateY(-22px) rotate(12deg); opacity: 0.85; }
}

/* Hero inner: 2 columns on desktop */
.neo-hero-inner {
  display: flex !important;
  flex-direction: row !important;
  gap: 48px;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  padding-bottom: 40px;
  box-sizing: border-box;
}
.neo-hero-text {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}
.neo-hero-visual {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.neo-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--neo-primary-dim);
  border: 1px solid var(--neo-border-hover);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--neo-primary);
  margin-bottom: 20px;
}
.neo-hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--neo-primary);
  animation: neo-glow-pulse 1.5s ease-in-out infinite;
}

.neo-hero-tag-line {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--neo-text-muted);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.neo-h1-main {
  display: block;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 900;
  line-height: 1.05;
  color: #ffffff;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.neo-h1-fun {
  font-style: italic;
  background: linear-gradient(135deg, var(--neo-primary), #00b4d8, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neo-hero h1 {
  margin-bottom: 16px;
}

.neo-hero h1 .highlight {
  background: linear-gradient(135deg, var(--neo-primary), #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.neo-hero p {
  font-size: 17px;
  color: var(--neo-text-muted);
  max-width: 480px;
  margin: 0 0 30px;
  line-height: 1.7;
}

.neo-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Pulsing CTA */
.neo-cta-pulse {
  animation: neo-cta-pulse 2.5s ease-in-out infinite;
}
@keyframes neo-cta-pulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(0,230,118,0.4); }
  50% { box-shadow: 0 10px 45px rgba(0,230,118,0.7), 0 0 0 8px rgba(0,230,118,0.08); }
}

/* Social buttons */
.neo-social-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,230,118,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(168,205,255,0.7);
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s;
}
.neo-social-btn:hover {
  background: rgba(0,230,118,0.12);
  border-color: var(--neo-primary);
  color: var(--neo-primary);
}

/* Dashboard mockup */
.neo-hero-visual {
  position: relative;
  z-index: 2;
}
.neo-hero-dashboard-mockup {
  background: rgba(13,27,46,0.9);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,230,118,0.06);
  backdrop-filter: blur(20px);
  animation: neo-float 6s ease-in-out infinite;
}
.neo-mockup-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(0,230,118,0.1);
}
.neo-mockup-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  opacity: 0.8;
}
.neo-mockup-body {
  padding: 14px;
}
.neo-mockup-card {
  background: rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.05);
}
.neo-mockup-earn-card {
  background: rgba(0,230,118,0.05);
  border: 1px solid rgba(0,230,118,0.12);
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}
.neo-mockup-earn-card:hover { background: rgba(0,230,118,0.1); }

/* Floating badge pills on the mockup */
.neo-hero-float-badge {
  position: absolute;
  background: rgba(13,27,46,0.95);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 24px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--neo-text);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: neo-float 4s ease-in-out infinite;
  white-space: nowrap;
}

/* Scrolling features strip */
.neo-hero-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(0,230,118,0.1);
  border-bottom: 1px solid rgba(0,230,118,0.1);
  background: rgba(0,0,0,0.2);
  overflow: hidden;
  padding: 14px 0;
  margin: 0 -40px;
}
.neo-hero-strip-track {
  display: flex;
  gap: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--neo-text-muted);
  white-space: nowrap;
  animation: neo-marquee 30s linear infinite;
  width: max-content;
}
.neo-hero-strip-track span {
  margin: 0 4px;
  color: var(--neo-text-muted);
  transition: color 0.2s;
}
@keyframes neo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.neo-cta-primary {
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark));
  color: #050d1a;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(0,230,118,0.4);
  transition: all var(--neo-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.neo-cta-primary:hover {
  box-shadow: 0 10px 40px rgba(0,230,118,0.6);
  transform: translateY(-2px);
  color: #050d1a;
}

.neo-cta-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--neo-text);
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid var(--neo-border-hover);
  text-decoration: none;
  transition: all var(--neo-transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.neo-cta-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--neo-text);
  border-color: rgba(255,255,255,0.3);
}

/* ===== HERO MINI STATS ===== */
.neo-hero-mini-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.hero-mini-stat { text-align: center; }
.mini-stat-num {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--neo-primary);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.mini-stat-lbl {
  font-size: 11px;
  color: var(--neo-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(0,230,118,0.2);
  flex-shrink: 0;
}

/* ===== HERO EARN SHOWCASE (right column) ===== */
.neo-earn-showcase {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: neo-float 6s ease-in-out infinite;
}
.nhs-live-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,230,118,0.07);
  border: 1px solid rgba(0,230,118,0.22);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--neo-text);
  backdrop-filter: blur(10px);
}
.nhs-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00e676;
  box-shadow: 0 0 8px #00e676;
  flex-shrink: 0;
  animation: neo-glow-pulse 1.2s ease-in-out infinite;
}
.nhs-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.nhs-earn-card {
  background: rgba(10,20,40,0.85);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 16px 10px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  cursor: pointer;
}
.nhs-earn-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent, #00e676);
  border-radius: 14px 14px 0 0;
}
.nhs-earn-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.nhs-earn-card:hover {
  border-color: var(--accent, #00e676);
  box-shadow: 0 0 0 1px var(--accent, #00e676), 0 12px 40px rgba(0,0,0,0.5);
  transform: translateY(-5px) scale(1.03);
  background: rgba(15,28,55,0.95);
}
.nhs-earn-icon {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
  line-height: 1;
}
.nhs-earn-name {
  font-size: 11px;
  font-weight: 800;
  color: var(--neo-text);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.nhs-earn-val {
  font-size: 11px;
  color: var(--accent, #00e676);
  font-weight: 700;
  margin-bottom: 8px;
}
.nhs-earn-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 20px;
  background: var(--bc, rgba(0,230,118,0.12));
  color: var(--bct, #00e676);
  letter-spacing: 0.5px;
}
.nhs-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(251,191,36,0.06);
  border: 1px solid rgba(251,191,36,0.18);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  overflow: hidden;
}
.nhs-ticker-inner {
  white-space: nowrap;
  animation: neo-marquee 20s linear infinite;
  display: inline-block;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}

/* Stats banner */
.neo-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px 40px;
  flex-wrap: wrap;
}

.neo-stat-item {
  text-align: center;
}

.neo-stat-item .value {
  font-size: 28px;
  font-weight: 800;
  color: var(--neo-primary);
  letter-spacing: -1px;
  display: block;
}

.neo-stat-item .label {
  font-size: 13px;
  color: var(--neo-text-muted);
  font-weight: 500;
}

/* Features section */
.neo-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.neo-section-title {
  text-align: center;
  margin-bottom: 56px;
}

.neo-section-title .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--neo-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.neo-section-title h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
}

.neo-section-title p {
  font-size: 16px;
  color: var(--neo-text-muted);
  max-width: 500px;
  margin: 12px auto 0;
}

.neo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.neo-feature-card {
  background: rgba(13,27,46,0.7);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  cursor: default;
}

.neo-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neo-primary), transparent);
  opacity: 0;
  transition: opacity var(--neo-transition);
}
.neo-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,230,118,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.neo-feature-card:hover {
  border-color: var(--neo-border-hover);
  box-shadow: 0 16px 50px rgba(0,230,118,0.12);
  transform: translateY(-5px);
}

.neo-feature-card:hover::before { opacity: 1; }
.neo-feature-card:hover::after { opacity: 1; }

.neo-feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 26px;
  position: relative;
}

.neo-feature-icon.green   { background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.2); }
.neo-feature-icon.purple  { background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2); }
.neo-feature-icon.blue    { background: rgba(0,180,216,0.12); border: 1px solid rgba(0,180,216,0.2); }
.neo-feature-icon.orange  { background: rgba(255,149,0,0.12); border: 1px solid rgba(255,149,0,0.2); }
.neo-feature-icon.pink    { background: rgba(247,37,133,0.12); border: 1px solid rgba(247,37,133,0.2); }

.neo-feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--neo-text);
  margin-bottom: 8px;
}

.neo-feature-card p {
  font-size: 14px;
  color: var(--neo-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Light mode feature cards */
html.light .neo-feature-card {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(0,120,60,0.12) !important;
}
html.light .neo-feature-card:hover {
  box-shadow: 0 12px 40px rgba(0,168,100,0.12) !important;
}
html.light .neo-feature-card h3 { color: #0d1b2e !important; }
html.light .neo-feature-card p { color: rgba(30,60,100,0.65) !important; }

/* Payment proof / Leaderboard section */
.neo-users-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.neo-user-card {
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--neo-transition);
}

.neo-user-card:hover {
  border-color: var(--neo-border-hover);
  transform: translateY(-2px);
}

.neo-user-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neo-border-hover);
}

.neo-user-card .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--neo-text);
}

.neo-user-card .amount {
  font-size: 13px;
  color: var(--neo-primary);
  font-weight: 500;
}

/* FAQ section */
.neo-faq-item {
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--neo-transition);
}

.neo-faq-item:hover { border-color: var(--neo-border-hover); }

.neo-faq-question {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--neo-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.neo-faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--neo-text-muted);
  line-height: 1.7;
  display: none;
}

.neo-faq-answer.open { display: block; }

/* Contact form */
.neo-contact-form {
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.neo-footer {
  background: var(--neo-bg-2);
  border-top: 1px solid var(--neo-border);
  padding: 48px 40px 32px;
}

.neo-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.neo-footer-brand .tagline {
  font-size: 14px;
  color: var(--neo-text-muted);
  margin-top: 12px;
  line-height: 1.6;
  max-width: 260px;
}

.neo-footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--neo-text-muted);
  margin-bottom: 16px;
}

.neo-footer-col ul { list-style: none; padding: 0; margin: 0; }
.neo-footer-col ul li { margin-bottom: 10px; }
.neo-footer-col ul li a {
  font-size: 14px;
  color: var(--neo-text-muted);
  text-decoration: none;
  transition: color var(--neo-transition);
}

.neo-footer-col ul li a:hover { color: var(--neo-primary); }

.neo-footer-bottom {
  border-top: 1px solid var(--neo-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--neo-text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

.neo-social-links {
  display: flex;
  gap: 10px;
}

.neo-social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neo-text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: all var(--neo-transition);
}

.neo-social-links a:hover {
  border-color: var(--neo-primary);
  color: var(--neo-primary);
  background: var(--neo-primary-dim);
}

/* Mobile navbar */
.neo-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--neo-border);
  color: var(--neo-text);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
}

@media (max-width: 900px) {
  .neo-navbar { padding: 0 20px; }
  .neo-nav-links { display: none; }
  .neo-mobile-toggle { display: block; }
  .neo-hero { padding: 90px 20px 0; min-height: auto; }
  .neo-hero-inner { flex-direction: column !important; gap: 32px !important; padding-bottom: 20px !important; }
  .neo-hero-visual { display: none !important; }
  .neo-hero-text { text-align: center !important; flex: none !important; width: 100% !important; }
  .neo-hero-actions { justify-content: center; }
  .neo-hero-strip { margin: 0 -20px; }
  .neo-stats-bar { gap: 24px; }
  .neo-section { padding: 60px 20px; }
  .neo-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .neo-footer { padding: 40px 20px 24px; }
  .neo-h1-main { font-size: clamp(28px, 8vw, 44px); }
}

@media (max-width: 600px) {
  .neo-features-grid { grid-template-columns: 1fr; }
  .neo-footer-grid { grid-template-columns: 1fr; }
  .neo-hero-actions { flex-direction: column; align-items: stretch; }
  .neo-cta-primary, .neo-cta-secondary { justify-content: center; }
  .neo-particle { display: none; }
}

/* ==================== DASHBOARD SPECIFIC ==================== */

/* Dashboard wrapper */
.neo-dashboard {
  padding: 0;
}

/* Profile header banner */
.neo-profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  flex-wrap: wrap;
}

.neo-profile-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.neo-profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--neo-primary);
  box-shadow: 0 0 16px rgba(0,230,118,0.3);
  object-fit: cover;
}

.neo-avatar-edit-btn {
  position: absolute;
  bottom: 0; right: 0;
  width: 26px; height: 26px;
  background: var(--neo-primary);
  color: #050d1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,230,118,0.4);
}

.neo-profile-info h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--neo-text);
  margin: 0 0 6px;
}

.neo-badge-member {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--neo-primary-dim);
  color: var(--neo-primary);
  border: 1px solid rgba(0,230,118,0.2);
}

.neo-profile-quick-stats {
  display: flex;
  gap: 24px;
  margin-left: 12px;
}

.neo-quick-stat { text-align: center; }
.neo-quick-stat .label { display: block; font-size: 11px; color: var(--neo-text-muted); margin-bottom: 2px; }
.neo-quick-stat .value { display: block; font-size: 15px; font-weight: 700; color: var(--neo-text); }

/* Stats grid cards */
.neo-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.neo-stat-card {
  position: relative;
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--neo-transition);
  overflow: hidden;
  cursor: default;
}

.neo-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}

.neo-stat-card.green::before  { background: linear-gradient(90deg, #00e676, transparent); }
.neo-stat-card.orange::before { background: linear-gradient(90deg, #ff9500, transparent); }
.neo-stat-card.purple::before { background: linear-gradient(90deg, #7c3aed, transparent); }
.neo-stat-card.blue::before   { background: linear-gradient(90deg, #00b4d8, transparent); }

.neo-stat-card:hover { transform: translateY(-3px); border-color: var(--neo-border-hover); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.neo-stat-card-icon {
  font-size: 30px;
  line-height: 1;
  flex-shrink: 0;
}

.neo-stat-card-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--neo-text);
  letter-spacing: -0.5px;
}

.neo-stat-card-label {
  font-size: 12px;
  color: var(--neo-text-muted);
  margin-top: 2px;
}

.neo-stat-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
}

.neo-stat-badge.up   { background: rgba(0,230,118,0.15); color: #00e676; }
.neo-stat-badge.down { background: rgba(247,37,133,0.15); color: #f72585; }

/* Earn grid */
.neo-earn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.neo-earn-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  padding: 18px 18px 18px 20px;
  text-decoration: none;
  color: var(--neo-text);
  overflow: hidden;
  transition: all var(--neo-transition);
}

.neo-earn-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
  transition: width var(--neo-transition);
}

.neo-earn-card.green::before  { background: #00e676; }
.neo-earn-card.blue::before   { background: #00b4d8; }
.neo-earn-card.purple::before { background: #7c3aed; }
.neo-earn-card.orange::before { background: #ff9500; }
.neo-earn-card.pink::before   { background: #f72585; }

.neo-earn-card:hover { 
  transform: translateY(-3px) translateX(2px);
  border-color: var(--neo-border-hover);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
  color: var(--neo-text);
  text-decoration: none;
}

.neo-earn-card:hover::before { width: 6px; }

.neo-earn-card-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--neo-transition);
  pointer-events: none;
}

.neo-earn-card.green .neo-earn-card-glow  { background: radial-gradient(ellipse at left, rgba(0,230,118,0.06), transparent 70%); }
.neo-earn-card.blue .neo-earn-card-glow   { background: radial-gradient(ellipse at left, rgba(0,180,216,0.06), transparent 70%); }
.neo-earn-card.purple .neo-earn-card-glow { background: radial-gradient(ellipse at left, rgba(124,58,237,0.06), transparent 70%); }
.neo-earn-card.orange .neo-earn-card-glow { background: radial-gradient(ellipse at left, rgba(255,149,0,0.06), transparent 70%); }
.neo-earn-card.pink .neo-earn-card-glow   { background: radial-gradient(ellipse at left, rgba(247,37,133,0.06), transparent 70%); }
.neo-earn-card:hover .neo-earn-card-glow  { opacity: 1; }

.neo-earn-card-icon { font-size: 28px; line-height: 1; flex-shrink: 0; position: relative; z-index: 1; }

.neo-earn-card-body { flex: 1; position: relative; z-index: 1; }
.neo-earn-card-body h4 { font-size: 14px; font-weight: 700; color: var(--neo-text); margin: 0 0 3px; }
.neo-earn-card-body p  { font-size: 12px; color: var(--neo-text-muted); margin: 0; line-height: 1.4; }

.neo-earn-arrow {
  font-size: 18px;
  color: var(--neo-text-muted);
  transition: all var(--neo-transition);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.neo-earn-card:hover .neo-earn-arrow { color: var(--neo-primary); transform: translateX(4px); }

/* Section header */
.neo-section-header { margin-bottom: 16px; }
.neo-section-header h3 { font-size: 17px; font-weight: 700; color: var(--neo-text); margin: 0 0 4px; }
.neo-section-header p  { font-size: 13px; color: var(--neo-text-muted); margin: 0; }

/* Input */
.neo-input {
  flex: 1;
  padding: 11px 14px;
  background: rgba(8,18,34,0.9);
  border: 1px solid var(--neo-border);
  border-radius: 10px;
  color: var(--neo-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all var(--neo-transition);
  outline: none;
}

.neo-input:focus {
  border-color: var(--neo-primary);
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12);
}

/* Tabs */
.neo-tabs-wrap {
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  overflow: hidden;
}

.neo-tabs {
  display: flex;
  background: rgba(0,0,0,0.2);
  border-bottom: 1px solid var(--neo-border);
  padding: 4px;
  gap: 4px;
}

.neo-tab {
  padding: 8px 18px;
  background: transparent;
  border: none;
  color: var(--neo-text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all var(--neo-transition);
}

.neo-tab:hover { color: var(--neo-text); background: rgba(255,255,255,0.04); }
.neo-tab.active { background: var(--neo-primary-dim); color: var(--neo-primary); border-color: rgba(0,230,118,0.2); }

.neo-tab-panel { display: none; padding: 20px; }
.neo-tab-panel.active { display: block; }

/* Small btn */
.neo-btn-xs {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark));
  color: #050d1a;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

/* Alert */
.neo-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--neo-radius);
  font-size: 14px;
  flex-wrap: wrap;
}

.neo-alert-warning {
  background: rgba(255,149,0,0.1);
  border: 1px solid rgba(255,149,0,0.25);
  color: #ffb74d;
}

.neo-alert-info {
  background: rgba(0,180,216,0.08);
  border: 1px solid rgba(0,180,216,0.25);
  color: #00b4d8;
}

.neo-alert-success {
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.25);
  color: var(--neo-primary);
}

.neo-alert-danger {
  background: rgba(247,37,133,0.08);
  border: 1px solid rgba(247,37,133,0.25);
  color: #f72585;
}

/* Badge variants */
.neo-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.neo-badge.green  { background: rgba(0,230,118,0.15); color: #00e676; }
.neo-badge.orange { background: rgba(255,149,0,0.15); color: #ff9500; }
.neo-badge.red    { background: rgba(247,37,133,0.15); color: #f72585; }

/* Responsive dashboard */
@media (max-width: 1024px) {
  .neo-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .neo-profile-header { gap: 16px; }
  .neo-profile-quick-stats { gap: 16px; }
}

@media (max-width: 640px) {
  .neo-stats-grid { grid-template-columns: 1fr 1fr; }
  .neo-earn-grid { grid-template-columns: 1fr; }
  .neo-profile-header { flex-direction: column; align-items: flex-start; }
  .neo-profile-quick-stats { flex-wrap: wrap; gap: 12px; }
  .neo-profile-header > div:last-child { margin-left: 0; }
}

/* ==================== MISSING ALERT TYPES ==================== */
.alert-warning {
  background: rgba(255,149,0,0.1) !important;
  border-color: rgba(255,149,0,0.3) !important;
  color: #ffb74d !important;
}
.alert-info {
  background: rgba(0,180,216,0.1) !important;
  border-color: rgba(0,180,216,0.3) !important;
  color: #90e0ef !important;
}
.alert-secondary {
  background: rgba(124,58,237,0.1) !important;
  border-color: rgba(124,58,237,0.3) !important;
  color: #c4b5fd !important;
}
.alert .btn-close, .alert .btn-close:hover { color: var(--neo-text) !important; opacity: 0.7; }

/* ==================== TEXTAREA ==================== */
textarea.form-control, textarea {
  background: rgba(8,18,34,0.8) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: 8px !important;
  color: var(--neo-text) !important;
  font-family: 'Inter', sans-serif !important;
  resize: vertical;
  padding: 10px 14px !important;
}
textarea.form-control:focus, textarea:focus {
  border-color: var(--neo-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12) !important;
  outline: none !important;
  color: var(--neo-text) !important;
}
textarea::placeholder { color: var(--neo-text-muted) !important; }

/* ==================== SELECT ==================== */
select, select.form-select, select.form-control {
  background-color: rgba(8,18,34,0.9) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
}
select option {
  background-color: #0d1b2e;
  color: var(--neo-text);
}

/* ==================== NAV TABS (pill style) ==================== */
.nav-tabs {
  border-bottom: 1px solid var(--neo-border) !important;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-tabs .nav-link {
  border: 1px solid transparent !important;
  border-radius: 8px 8px 0 0 !important;
  padding: 9px 18px !important;
  color: var(--neo-text-muted) !important;
  background: transparent !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
}
.nav-tabs .nav-link:hover {
  color: var(--neo-text) !important;
  border-color: var(--neo-border) !important;
  background: rgba(255,255,255,0.04) !important;
}
.nav-tabs .nav-link.active {
  background: var(--neo-primary-dim) !important;
  border-color: var(--neo-border-hover) !important;
  color: var(--neo-primary) !important;
}

/* ==================== MODALS ==================== */
.modal-content {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7) !important;
  color: var(--neo-text) !important;
}
.modal-header {
  border-bottom: 1px solid var(--neo-border) !important;
  background: transparent !important;
  padding: 20px 24px !important;
}
.modal-title { color: var(--neo-text) !important; font-weight: 700 !important; }
.modal-body { padding: 24px !important; }
.modal-footer {
  border-top: 1px solid var(--neo-border) !important;
  padding: 16px 24px !important;
}
.modal-backdrop { background: rgba(5,13,26,0.7) !important; }
.btn-close { filter: invert(1) !important; opacity: 0.6; }
.btn-close:hover { opacity: 1; }

/* ==================== ACCORDION ==================== */
.accordion-item {
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius) !important;
  margin-bottom: 8px !important;
  overflow: hidden;
}
.accordion-button {
  background: rgba(13,27,46,0.8) !important;
  color: var(--neo-text) !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border: none !important;
  box-shadow: none !important;
  padding: 14px 20px !important;
}
.accordion-button:not(.collapsed) {
  background: var(--neo-primary-dim) !important;
  color: var(--neo-primary) !important;
  box-shadow: none !important;
}
.accordion-button::after { filter: invert(1) brightness(0.7); }
.accordion-button:not(.collapsed)::after { filter: invert(0) brightness(1) sepia(1) hue-rotate(90deg) saturate(3); }
.accordion-body {
  background: rgba(8,18,34,0.6) !important;
  color: var(--neo-text-muted) !important;
  padding: 16px 20px !important;
  border-top: 1px solid var(--neo-border) !important;
}

/* ==================== FORM LAYOUT (bootstrap grid forms) ==================== */
.col-form-label { color: var(--neo-text-muted) !important; font-size: 13px !important; font-weight: 500 !important; padding-top: 10px !important; }
.form-group { margin-bottom: 18px; }
.form-check-input {
  background-color: rgba(8,18,34,0.8) !important;
  border: 1px solid var(--neo-border) !important;
  width: 16px; height: 16px;
}
.form-check-input:checked {
  background-color: var(--neo-primary) !important;
  border-color: var(--neo-primary) !important;
}
.form-check-label { color: var(--neo-text-muted) !important; font-size: 13px !important; }

/* ==================== INPUT GROUP ADDON ==================== */
.input-group-text {
  background: rgba(13,27,46,0.9) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text-muted) !important;
}

/* ==================== PROGRESS BAR ==================== */
.progress {
  background: rgba(8,18,34,0.8) !important;
  border-radius: 20px !important;
  height: 8px !important;
}
.progress-bar {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark)) !important;
  border-radius: 20px !important;
}

/* ==================== CARD COMPONENT (Bootstrap) ==================== */
.card {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  color: var(--neo-text) !important;
}
.card-header {
  background: rgba(0,230,118,0.04) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  color: var(--neo-text) !important;
  font-weight: 600;
}
.card-body { color: var(--neo-text) !important; }
.card-footer { border-top: 1px solid var(--neo-border) !important; background: transparent !important; }

/* ==================== COPY INPUT (referral) ==================== */
input[readonly] {
  background: rgba(8,18,34,0.6) !important;
  color: var(--neo-primary) !important;
  cursor: copy;
}

/* ==================== MINING/CLAIM TIMER ELEMENTS ==================== */
.neo-timer { font-size: 28px; font-weight: 800; color: var(--neo-primary); font-variant-numeric: tabular-nums; }
.neo-timer-label { font-size: 12px; color: var(--neo-text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ==================== MINING LEVEL BADGE ==================== */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(0,230,118,0.2), rgba(0,180,216,0.1));
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--neo-primary);
}

/* ==================== PAGE TITLES (col-span content pages) ==================== */
.col-span-12 > .intro-y h2,
.col-span-12 h2.text-lg {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--neo-text) !important;
  padding: 8px 0 !important;
}

/* ==================== GENERIC CONTENT WRAPPER ==================== */
.col-span-12.mt-8 { margin-top: 12px !important; }

/* Paragraph text in boxes */
p { color: var(--neo-text-muted); line-height: 1.65; }
.box p, .box li { color: var(--neo-text-muted) !important; }
.box strong, .box b { color: var(--neo-text) !important; }
.box a:not(.btn) { color: var(--neo-primary) !important; }

/* ==================== OVERRIDE DARK/LIGHT THEME CLASSES ==================== */
html.dark body, html.light body {
  background-color: var(--neo-bg) !important;
  color: var(--neo-text) !important;
}

/* Existing framework overrides */
.bg-slate-100, .bg-slate-50,
.dark\:bg-darkmode-700, .dark\:bg-darkmode-800, .dark\:bg-darkmode-600 {
  background: transparent !important;
}

.dark\:border-darkmode-400, .border-slate-200\/60 {
  border-color: var(--neo-border) !important;
}

/* Grid wrapper - fixed invalid selector */
.grid.grid-cols-12 > .col-span-12 { grid-column: span 12 !important; }

/* ==================== TAB PANE (Bootstrap tabs) ==================== */
.tab-content { padding: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.tab-pane.show { display: block; }

/* ==================== BODY PADDING FIX ==================== */
body.py-5 { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ==================== FIREWALL PAGE ==================== */
.neo-firewall-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--neo-bg);
  padding: 40px 16px;
}

/* ==================== TOP BAR PADDING ==================== */
.top-bar {
  padding: 0 24px !important;
  height: var(--neo-topbar-h) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  background: rgba(8,18,34,0.85) !important;
  backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  position: sticky !important;
  top: 0;
  z-index: 50;
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb { background: transparent !important; padding: 0 !important; margin: 0 !important; }
.breadcrumb-item { font-size: 13px !important; color: var(--neo-text-muted) !important; }
.breadcrumb-item.active { color: var(--neo-text) !important; }
.breadcrumb-item a { color: var(--neo-primary) !important; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--neo-text-muted) !important; }

/* ==================== NOTIFICATION BELL ==================== */
.notification { position: relative; color: var(--neo-text-muted) !important; }
.notification--bullet::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--neo-primary);
  box-shadow: 0 0 8px rgba(0,230,118,0.5);
}
.notification-content__box {
  min-width: 300px;
  max-height: 380px;
  overflow-y: auto;
}
.notification-content__title {
  font-size: 13px;
  font-weight: 700;
  padding: 12px 16px;
  border-bottom: 1px solid var(--neo-border);
  color: var(--neo-text);
  display: flex;
  justify-content: space-between;
}

/* ==================== FORM CONTROL BASE ==================== */
.form-control {
  background: rgba(8,18,34,0.8) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: 8px !important;
  color: var(--neo-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13.5px !important;
  padding: 10px 14px !important;
  transition: border-color var(--neo-transition), box-shadow var(--neo-transition) !important;
}
.form-control:focus {
  border-color: var(--neo-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12) !important;
  outline: none !important;
  background: rgba(8,18,34,0.95) !important;
  color: var(--neo-text) !important;
}
.form-control::placeholder { color: var(--neo-text-muted) !important; }

/* ==================== TABLES GENERAL ==================== */
.table { color: var(--neo-text) !important; }
.table thead th {
  background: rgba(0,230,118,0.05) !important;
  color: var(--neo-primary) !important;
  border-color: var(--neo-border) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
}
.table tbody tr {
  border-color: var(--neo-border) !important;
  transition: background var(--neo-transition);
}
.table tbody tr:hover { background: rgba(0,230,118,0.04) !important; }
.table tbody td {
  color: var(--neo-text-muted) !important;
  border-color: var(--neo-border) !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
}

/* ==================== BUTTONS GENERAL ==================== */
.btn-primary {
  background: linear-gradient(135deg, var(--neo-primary), var(--neo-primary-dark)) !important;
  border: none !important;
  color: #050d1a !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  transition: all var(--neo-transition) !important;
  box-shadow: 0 4px 14px rgba(0,230,118,0.25) !important;
}
.btn-primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 8px 20px rgba(0,230,118,0.35) !important;
}
.btn-secondary {
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  transition: all var(--neo-transition) !important;
}
.btn-secondary:hover {
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
  background: var(--neo-primary-dim) !important;
}
.btn-danger {
  background: rgba(247,37,133,0.15) !important;
  border: 1px solid rgba(247,37,133,0.3) !important;
  color: #ff6b9d !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}
.btn-danger:hover { background: rgba(247,37,133,0.25) !important; }
.btn-warning {
  background: rgba(255,149,0,0.15) !important;
  border: 1px solid rgba(255,149,0,0.3) !important;
  color: #ffb74d !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}
.btn-success {
  background: rgba(0,230,118,0.15) !important;
  border: 1px solid rgba(0,230,118,0.3) !important;
  color: var(--neo-primary) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
}
.btn-sm { padding: 6px 14px !important; font-size: 12px !important; }
.btn-lg { padding: 13px 28px !important; font-size: 15px !important; }
.btn-block { width: 100% !important; }

/* ==================== LIST GROUPS ==================== */
.list-group-item {
  background: var(--neo-bg-card) !important;
  border-color: var(--neo-border) !important;
  color: var(--neo-text-muted) !important;
}
.list-group-item.active {
  background: var(--neo-primary-dim) !important;
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

/* ==================== EMBED IFRAMES (offerwalls etc) ==================== */
iframe {
  border-radius: var(--neo-radius) !important;
  border: 1px solid var(--neo-border) !important;
}

/* ==================== HORIZONTAL RULE ==================== */
hr { border-color: var(--neo-border) !important; opacity: 1 !important; margin: 20px 0; }

/* ==================== SMALL TEXT / MUTED ==================== */
small, .text-muted, .text-slate-500 { color: var(--neo-text-muted) !important; }
.text-success { color: var(--neo-primary) !important; }
.text-warning { color: var(--neo-accent-orange) !important; }
.text-danger  { color: var(--neo-accent-pink) !important; }
.text-primary { color: var(--neo-secondary) !important; }
.text-pending { color: var(--neo-accent-blue) !important; }
.text-white   { color: var(--neo-text) !important; }
.text-3xl, .leading-8 { color: var(--neo-text) !important; }

/* ==================== FLOAT BUTTON BAR (main-div) ==================== */
#main-div {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 999;
  align-items: center;
}
#main-button {
  width: 44px; height: 44px;
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
#main-div button, #main-div a {
  background: rgba(8,18,34,0.9) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text-muted) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all var(--neo-transition) !important;
  white-space: nowrap;
}
#main-div button:hover, #main-div a:hover {
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}
.weather-color { color: var(--neo-text-muted) !important; }

/* ==================== CHAT POPUP ==================== */
.chat-popup {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 9999;
  background: var(--neo-bg-3);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  width: 320px;
  max-height: 500px;
}
.chat-popup .btn-primary { width: 100% !important; border-radius: 0 !important; font-size: 13px !important; padding: 8px !important; }

/* ==================== ADDITIONAL MOBILE FIXES ==================== */
@media (max-width: 768px) {
  .top-bar { padding: 0 14px !important; }
  .grid.grid-cols-12 { grid-template-columns: 1fr; }
  .col-span-12, .sm\:col-span-6, .xl\:col-span-3 { grid-column: span 1 !important; }
  .neo-stats-grid { grid-template-columns: 1fr 1fr; }
  .neo-earn-grid { grid-template-columns: 1fr 1fr; }
  .form-group.row { flex-direction: column; }
  .form-group.row .col-sm-3 { width: 100%; margin-bottom: 6px; }
  .form-group.row .col-sm-9 { width: 100%; }
}
@media (max-width: 480px) {
  .neo-stats-grid { grid-template-columns: 1fr; }
  .neo-earn-grid { grid-template-columns: 1fr; }
  .neo-profile-quick-stats { display: none; }
}

/* ==================== OUTLINE + PENDING BUTTON VARIANTS ==================== */
.btn-outline-primary {
  background: transparent !important;
  border: 1px solid var(--neo-secondary) !important;
  color: var(--neo-secondary) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  transition: all var(--neo-transition) !important;
}
.btn-outline-primary:hover {
  background: rgba(124,58,237,0.15) !important;
  color: #c4b5fd !important;
}
.btn-outline-danger {
  background: transparent !important;
  border: 1px solid rgba(247,37,133,0.4) !important;
  color: #ff6b9d !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  transition: all var(--neo-transition) !important;
}
.btn-outline-danger:hover {
  background: rgba(247,37,133,0.12) !important;
}
.btn-outline-success {
  background: transparent !important;
  border: 1px solid rgba(0,230,118,0.4) !important;
  color: var(--neo-primary) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  transition: all var(--neo-transition) !important;
}
.btn-outline-success:hover {
  background: rgba(0,230,118,0.12) !important;
}
.btn-outline-warning {
  background: transparent !important;
  border: 1px solid rgba(255,149,0,0.4) !important;
  color: #ffb74d !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
  transition: all var(--neo-transition) !important;
}
.btn-outline-secondary {
  background: transparent !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text-muted) !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 8px 18px !important;
}
.btn-outline-secondary:hover {
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

/* btn-pending = blue/cyan */
.btn-pending {
  background: rgba(0,180,216,0.15) !important;
  border: 1px solid rgba(0,180,216,0.3) !important;
  color: #90e0ef !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  padding: 10px 22px !important;
  transition: all var(--neo-transition) !important;
}
.btn-pending:hover { background: rgba(0,180,216,0.25) !important; }

/* ==================== ROUNDED BUTTON UTILITY ==================== */
.btn.rounded { border-radius: 20px !important; }

/* ==================== DISABLED BUTTON ==================== */
.btn:disabled, .btn[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ==================== username rank badge (leaderboard) ==================== */
.username-rank span {
  font-weight: 600;
  color: var(--neo-text) !important;
}

/* ==================== DICE ROLL NUMBER ==================== */
#rollNumber {
  font-size: 48px;
  font-weight: 900;
  color: var(--neo-primary);
  letter-spacing: 6px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 20px rgba(0,230,118,0.4);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== DICE ROLL BUTTONS ==================== */
.bet-btn {
  min-width: 110px;
  font-weight: 700 !important;
  font-size: 14px !important;
  padding: 12px 20px !important;
}

/* ==================== OFFERWALL IFRAME ==================== */
.offerwall-frame iframe, iframe.offerwall {
  width: 100%;
  min-height: 600px;
  border: 1px solid var(--neo-border) !important;
  border-radius: 12px !important;
}

/* ==================== BASIC ALERT helper ==================== */
.alert.alert-primary {
  background: rgba(124,58,237,0.1) !important;
  border-color: rgba(124,58,237,0.3) !important;
  color: #c4b5fd !important;
}

/* ==================== INPUT + LABEL FIX ==================== */
label {
  color: var(--neo-text-muted) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  margin-bottom: 5px !important;
  display: block;
}

/* ==================== INTRO-Y ANIMATION (simplified) ==================== */
.intro-y { animation: neo-fade-up 0.4s ease both; }
@keyframes neo-fade-up {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ==================== ZOOM-IN HOVER ==================== */
.zoom-in { transition: transform var(--neo-transition) !important; }
.zoom-in:hover { transform: scale(1.02) !important; }

/* ==================== IMAGE FIT ==================== */
.image-fit { overflow: hidden; }
.image-fit img { width: 100%; height: 100%; object-fit: cover; }
.rounded-full { border-radius: 50% !important; }
.rounded { border-radius: var(--neo-radius) !important; }

/* ==================== FLEX UTILITIES ==================== */
.flex { display: flex !important; }
.flex-1 { flex: 1; }
.items-center { align-items: center !important; }
.justify-center { justify-content: center !important; }
.ml-auto { margin-left: auto !important; }
.mr-auto { margin-right: auto !important; }
.font-medium { font-weight: 500 !important; }
.font-bold { font-weight: 700 !important; }
.truncate { overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.text-center { text-align: center !important; }
.w-full { width: 100% !important; }

/* ==================== OVERFLOW TABLE WRAPPER ==================== */
.overflow-auto { overflow: auto; }
.lg\:overflow-visible { overflow: visible; }

/* ==================== TABLE VARIANTS ==================== */
.table-report, .table-centered, .table-bordered {
  color: var(--neo-text) !important;
  width: 100%;
  border-collapse: collapse;
}
.table-report thead th,
.table-centered thead th { text-align: center !important; }
.table-centered td, .table-centered th { text-align: center !important; vertical-align: middle !important; }
.table-report td, .table-report th { vertical-align: middle !important; }

/* ==================== BOOTSTRAP FONT WEIGHT ==================== */
.fw-bold, .font-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }
.fw-medium  { font-weight: 500 !important; }
.fw-normal  { font-weight: 400 !important; }

/* ==================== MISSING TEXT COLOR UTILITIES ==================== */
.text-secondary { color: #a78bfa !important; }
.text-info       { color: var(--neo-accent-blue) !important; }
.text-dark       { color: var(--neo-text) !important; }
.text-light      { color: var(--neo-text-muted) !important; }

/* ==================== FONT SIZE UTILITIES ==================== */
.text-sm  { font-size: 13px !important; }
.text-base{ font-size: 14px !important; }
.text-lg  { font-size: 16px !important; font-weight: 600 !important; color: var(--neo-text) !important; }
.text-xl  { font-size: 18px !important; font-weight: 700 !important; color: var(--neo-text) !important; }
.text-2xl { font-size: 22px !important; font-weight: 700 !important; color: var(--neo-text) !important; }
.text-4xl { font-size: 28px !important; font-weight: 800 !important; color: var(--neo-text) !important; }
.leading-relaxed { line-height: 1.75 !important; }
.leading-8 { line-height: 2rem !important; }

/* ==================== NAV LINK TABS (profile page) ==================== */
.nav-link-tabs { border-bottom: 1px solid var(--neo-border) !important; padding: 0 !important; }
.nav-link-tabs .nav-link {
  color: var(--neo-text-muted) !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 12px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  background: transparent !important;
  transition: all var(--neo-transition) !important;
}
.nav-link-tabs .nav-link:hover { color: var(--neo-text) !important; }
.nav-link-tabs .nav-link.active {
  color: var(--neo-primary) !important;
  border-bottom-color: var(--neo-primary) !important;
  background: transparent !important;
}

/* ==================== TOOLTIP POPUP ==================== */
.tippy-box {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  color: var(--neo-text) !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}
.tippy-arrow { color: var(--neo-bg-3) !important; }

/* ==================== DROPDOWN MENU ==================== */
.dropdown-menu {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
  padding: 6px !important;
}
.dropdown-item {
  color: var(--neo-text-muted) !important;
  font-size: 13px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all var(--neo-transition) !important;
}
.dropdown-item:hover {
  background: var(--neo-primary-dim) !important;
  color: var(--neo-primary) !important;
}
.dropdown-divider { border-color: var(--neo-border) !important; }

/* ==================== PROFILE AVATAR AREA ==================== */
.w-20 { width: 80px !important; }
.h-20 { height: 80px !important; }
.sm\:w-24 { width: 96px !important; }
.sm\:h-24 { height: 96px !important; }
.lg\:w-32 { width: 128px !important; }
.lg\:h-32 { height: 128px !important; }

/* ==================== PADDING/MARGIN UTILITIES ==================== */
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 16px !important; }
.mt-5 { margin-top: 20px !important; }
.mt-6 { margin-top: 24px !important; }
.mt-8 { margin-top: 32px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 16px !important; }
.mb-5 { margin-bottom: 20px !important; }
.mr-2 { margin-right: 8px !important; }
.mr-5 { margin-right: 20px !important; }
.ml-3 { margin-left: 12px !important; }
.ml-5 { margin-left: 20px !important; }
.p-5  { padding: 20px !important; }
.px-5 { padding-left: 20px !important; padding-right: 20px !important; }
.pt-5 { padding-top: 20px !important; }
.pb-5 { padding-bottom: 20px !important; }
.gap-6{ gap: 24px !important; }

/* ==================== FLEX LAYOUT UTILITIES ==================== */
.flex-col { flex-direction: column !important; }
.flex-none { flex: none !important; }
.flex-shrink-0 { flex-shrink: 0 !important; }
.justify-between { justify-content: space-between !important; }
.justify-start  { justify-content: flex-start !important; }
.justify-end    { justify-content: flex-end !important; }
.items-start    { align-items: flex-start !important; }

/* ==================== GAME PAGE IFRAME ==================== */
#game-frame, .game-frame iframe {
  width: 100%;
  min-height: 500px;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius) !important;
}

/* ==================== MISC UTILITY OVERRIDES ==================== */
.cursor-pointer { cursor: pointer !important; }
.inline          { display: inline !important; }
.inline-block    { display: inline-block !important; }
.block           { display: block !important; }
.relative        { position: relative !important; }
.absolute        { position: absolute !important; }
.hidden          { display: none !important; }
.sr-only         { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rounded-md      { border-radius: 8px !important; }
.rounded-lg      { border-radius: 12px !important; }
.rounded-xl      { border-radius: 16px !important; }
.shadow          { box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important; }
.font-semibold   { font-weight: 600 !important; }
.uppercase       { text-transform: uppercase !important; }
.tracking-wide   { letter-spacing: 0.05em !important; }

/* ==================== FINAL MOBILE RESPONSIVE EXTRAS ==================== */
@media (max-width: 640px) {
  .sm\:col-span-6 { grid-column: span 6 !important; }
  .sm\:col-span-12{ grid-column: span 12 !important; }
  .sm\:flex-row   { flex-direction: row !important; }
  .sm\:whitespace-normal { white-space: normal !important; }
  .neo-navbar { padding: 0 16px !important; }
}
@media (min-width: 1024px) {
  .lg\:mt-0       { margin-top: 0 !important; }
  .lg\:mt-3       { margin-top: 12px !important; }
  .lg\:pt-0       { padding-top: 0 !important; }
  .lg\:text-left  { text-align: left !important; }
  .lg\:justify-start { justify-content: flex-start !important; }
  .lg\:flex-row   { flex-direction: row !important; }
  .lg\:border-t-0 { border-top: none !important; }
  .content        { margin-left: var(--neo-sidebar-w) !important; }
}

/* ==================== TABLE STRIPED (dark override) ==================== */
.table-striped tbody tr:nth-of-type(odd) {
  background: rgba(0,230,118,0.03) !important;
}
.table-striped tbody tr:nth-of-type(even) {
  background: transparent !important;
}
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==================== CARD TITLE ==================== */
.card-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--neo-text) !important;
  margin-bottom: 12px !important;
}

/* ==================== TAILWIND BORDER UTILITIES (dark override) ==================== */
.border-l { border-left: 1px solid var(--neo-border) !important; }
.border-r { border-right: 1px solid var(--neo-border) !important; }
.border-b { border-bottom: 1px solid var(--neo-border) !important; }
.border-t { border-top: 1px solid var(--neo-border) !important; }

/* ==================== TAILWIND TEXT SIZE EXTRAS ==================== */
.text-xs  { font-size: 11px !important; color: var(--neo-text-muted) !important; }
.text-4xl { font-size: 28px !important; font-weight: 800 !important; color: var(--neo-text) !important; }

/* ==================== TAILWIND SIZING (icon sizes, used by lucide) ==================== */
.w-3  { width: 12px !important; }
.h-3  { height: 12px !important; }
.w-4  { width: 16px !important; }
.h-4  { height: 16px !important; }
.w-6  { width: 24px !important; }
.h-6  { height: 24px !important; }
.w-8  { width: 32px !important; }
.h-8  { height: 32px !important; }
.w-24 { width: 96px !important; }
.h-10 { height: 40px !important; }

/* ==================== TAILWIND PADDING EXTRAS ==================== */
.px-1 { padding-left: 4px !important; padding-right: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-4 { padding-top: 16px !important; padding-bottom: 16px !important; }
.px-2 { padding-left: 8px !important; padding-right: 8px !important; }
.p-2  { padding: 8px !important; }

/* ==================== MISC TAILWIND UTILITIES ==================== */
.overflow-hidden { overflow: hidden !important; }
.whitespace-nowrap { white-space: nowrap !important; }
.whitespace-normal { white-space: normal !important; }
.hover\:bg-white\/5:hover { background: rgba(255,255,255,0.05) !important; }
.dark\:text-slate-500 { color: var(--neo-text-muted) !important; }
.text-white\/70 { color: rgba(232,244,255,0.7) !important; }
.border-white\/\[0\.08\] { border-color: var(--neo-border) !important; }
.mt-0\.5 { margin-top: 2px !important; }
.ml-0\.5 { margin-left: 2px !important; }
.ml-2  { margin-left: 8px !important; }
.ml-auto { margin-left: auto !important; }
.mr-1  { margin-right: 4px !important; }
.mr-2  { margin-right: 8px !important; }
.mr-3  { margin-right: 12px !important; }
.pdb-l,.pb-l { padding-bottom: 40px !important; }
.shadow-lg { box-shadow: 0 8px 30px rgba(0,0,0,0.45) !important; }
.wave { animation: neo-glow-pulse 2.5s ease-in-out infinite; }

/* ==================== NEW LAYOUT FOUNDATION ==================== */
.neo-body {
  padding: 0 !important;
  margin: 0 !important;
  background-color: var(--neo-bg) !important;
  overflow-x: hidden;
}

.neo-layout-wrap {
  min-height: 100vh;
  position: relative;
}

/* Sidebar is position:fixed — content just needs left margin */
.neo-main-content {
  margin-left: var(--neo-sidebar-w) !important;
  min-height: 100vh;
  transition: margin-left var(--neo-transition);
}

.neo-content-area {
  padding: 24px 28px 32px;
  width: 100%;
  box-sizing: border-box;
}

.neo-flash-msg {
  padding: 12px 16px;
  margin: 16px;
  border-radius: var(--neo-radius);
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.25);
  color: var(--neo-text);
}

/* ==================== LIGHT MODE ==================== */
html.light {
  --neo-bg:            #f0f4f8;
  --neo-bg-2:          #e4eaf2;
  --neo-bg-3:          #dae3ef;
  --neo-bg-card:       rgba(255,255,255,0.90);
  --neo-border:        rgba(0,168,100,0.18);
  --neo-border-hover:  rgba(0,168,100,0.40);
  --neo-primary:       #00a864;
  --neo-primary-dark:  #007a48;
  --neo-primary-dim:   rgba(0,168,100,0.12);
  --neo-primary-glow:  0 0 20px rgba(0,168,100,0.25);
  --neo-secondary:     #6d28d9;
  --neo-secondary-dim: rgba(109,40,217,0.10);
  --neo-accent-blue:   #0077b6;
  --neo-accent-orange: #e07500;
  --neo-accent-pink:   #c91a6a;
  --neo-text:          #0d1b2e;
  --neo-text-muted:    rgba(30,60,100,0.55);
}

html.light body {
  background-color: var(--neo-bg) !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(0,168,100,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(109,40,217,0.04) 0%, transparent 60%);
}

html.light .side-nav,
html.light .mobile-menu-bar,
html.light .top-bar {
  background: rgba(228,234,242,0.97) !important;
  border-color: var(--neo-border) !important;
}

html.light .neo-card,
html.light .neo-box,
html.light .neo-stat-card {
  background: rgba(255,255,255,0.92) !important;
  border-color: var(--neo-border) !important;
}

html.light .neo-table th {
  background: rgba(0,168,100,0.06) !important;
  color: var(--neo-text) !important;
}

html.light .neo-table td { color: var(--neo-text) !important; }

html.light .neo-input,
html.light .form-control,
html.light select.form-control {
  background: rgba(255,255,255,0.95) !important;
  border-color: var(--neo-border) !important;
  color: var(--neo-text) !important;
}

html.light .neo-stat-card-label { color: rgba(30,60,100,0.55) !important; }

html.light .side-menu { color: rgba(30,60,100,0.65) !important; }
html.light .side-menu--active { color: var(--neo-primary) !important; }

html.light .neo-navbar,
html.light nav.neo-navbar { background: rgba(228,234,242,0.97) !important; }

html.light .neo-hero { background: linear-gradient(135deg,#e8f5ee 0%,#dae3ef 100%) !important; }

html.light .neo-earn-card { background: rgba(255,255,255,0.90) !important; }

html.light .neo-content-area a:not([class]),
html.light .rqu a { color: var(--neo-primary) !important; }

html.light .neo-badge-member { background: rgba(0,168,100,0.12); color: var(--neo-primary); }

html.light .dropdown-content,
html.light .notification-content__box {
  background: #fff !important;
  border-color: var(--neo-border) !important;
}

/* ==================== COMPREHENSIVE MOBILE RESPONSIVE ==================== */

/* --- Mobile sidebar overlay --- */
@media (max-width: 1023px) {
  .side-nav {
    transform: translateX(-100%) !important;
    z-index: 200 !important;
    transition: transform 0.3s ease !important;
    box-shadow: none !important;
  }

  .side-nav.neo-sidebar-open {
    transform: translateX(0) !important;
    box-shadow: 4px 0 40px rgba(0,0,0,0.6) !important;
  }

  .neo-sidebar-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.55);
    z-index: 199;
  }

  .neo-sidebar-overlay.active { display: block; }

  .neo-main-content {
    margin-left: 0 !important;
    padding-top: 60px;
  }

  .mobile-menu { display: block !important; }

  .top-bar { display: none !important; }
}

@media (min-width: 1024px) {
  .mobile-menu { display: none !important; }
}

/* --- Mobile topbar / hamburger built into mobilenav --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9400 !important;
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.mobile-menu-bar {
  height: 60px;
  background: var(--neo-bg-2) !important;
  border-bottom: 1px solid var(--neo-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px !important;
  backdrop-filter: blur(16px);
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px;
}

.scrollable {
  position: fixed;
  inset: 0;
  z-index: 201;
  background: var(--neo-bg-2);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding-top: 10px;
}

.scrollable.open { transform: translateX(0); }

.scrollable__content { padding: 8px 0; list-style: none; margin: 0; }

.menu {
  display: flex !important;
  align-items: center !important;
  padding: 12px 20px !important;
  color: var(--neo-text-muted) !important;
  text-decoration: none !important;
  transition: all var(--neo-transition) !important;
  border-radius: var(--neo-radius) !important;
  margin: 2px 10px !important;
}

.menu:hover,
.menu--active {
  color: var(--neo-primary) !important;
  background: var(--neo-primary-dim) !important;
}

.menu__icon {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.menu__icon svg, .menu__icon i { width: 18px !important; height: 18px !important; }

.menu__title { margin-left: 12px; font-size: 13.5px; font-weight: 500; }

.menu__devider { border-top: 1px solid var(--neo-border); margin: 8px 10px; list-style: none; }

/* Mobile: neo-content-area no extra padding */
@media (max-width: 1023px) {
  .neo-content-area { padding: 0; }
}

/* --- neo-dashboard responsive padding --- */
.neo-dashboard {
  padding: 20px 16px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .neo-dashboard { padding: 28px 24px; }
}

@media (min-width: 1280px) {
  .neo-dashboard { padding: 32px 36px; }
}

/* --- stats grid responsive --- */
.neo-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .neo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .neo-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --- earn grid responsive --- */
.neo-earn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .neo-earn-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .neo-earn-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
  .neo-earn-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 400px) {
  .neo-earn-grid { grid-template-columns: 1fr; }
}

/* --- earn card compact on small --- */
@media (max-width: 639px) {
  .neo-earn-card { padding: 14px 12px !important; }
  .neo-earn-card-icon { font-size: 26px !important; }
  .neo-earn-card h4 { font-size: 13px !important; }
  .neo-earn-card p { font-size: 11px !important; }
  .neo-earn-arrow { font-size: 16px !important; }
}

/* --- profile header responsive --- */
.neo-profile-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
  background: var(--neo-bg-card);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  backdrop-filter: blur(12px);
}

.neo-profile-quick-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 639px) {
  .neo-profile-header { flex-direction: column; align-items: flex-start; }
  .neo-profile-header > div:last-child { width: 100%; }
  .neo-profile-header > div:last-child .neo-btn-primary { width: 100%; justify-content: center; }
  .neo-profile-quick-stats { width: 100%; justify-content: space-around; }
}

/* --- stat cards responsive --- */
.neo-stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  border-radius: var(--neo-radius-lg);
  position: relative;
  overflow: hidden;
  min-width: 0;
}

@media (max-width: 479px) {
  .neo-stat-card { padding: 14px 12px; gap: 10px; }
  .neo-stat-card-icon { font-size: 22px !important; }
  .neo-stat-card-value { font-size: 16px !important; }
  .neo-stat-card-label { font-size: 10px !important; }
}

/* --- tables always scrollable --- */
.neo-table-wrap, [style*="overflow-x:auto"],
.table-responsive { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }

/* --- dice game responsive --- */
.neo-dice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 767px) {
  .neo-dice-grid { grid-template-columns: 1fr !important; }
}

/* --- leaderboard grid responsive --- */
.neo-lb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .neo-lb-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .neo-lb-grid { grid-template-columns: 1fr; }
}

/* --- deposit/withdraw tab buttons responsive --- */
.neo-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: rgba(8,18,34,0.6);
  border: 1px solid var(--neo-border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 24px;
}

.neo-tab-bar button { flex: 1; min-width: 100px; }

/* --- mining plans grid responsive --- */
.neo-plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 639px) {
  .neo-plans-grid { grid-template-columns: 1fr; }
}

/* --- sections header responsive --- */
.neo-section-header h3 {
  font-size: 18px !important;
}

@media (max-width: 479px) {
  .neo-section-header h3 { font-size: 15px !important; }
  .neo-section-header p { font-size: 12px !important; }
}

/* --- form stacking on mobile --- */
@media (max-width: 479px) {
  .neo-box form[style*="display:flex"],
  .neo-box form { flex-wrap: wrap !important; }
  .neo-box form button { width: 100% !important; margin-top: 6px; }
}

/* ==================== CHAT POPUP FIXED STYLES ==================== */
.chat-popup {
  position: fixed;
  bottom: 80px;
  right: 16px;
  width: 340px;
  max-width: calc(100vw - 32px);
  z-index: 9000;
  background: var(--neo-bg-3);
  border: 1px solid var(--neo-border);
  border-radius: var(--neo-radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  overflow: hidden;
  display: none;
}

.chat-popup > .btn.btn-primary {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--neo-accent-pink) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 28px; height: 28px;
  padding: 0 !important;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#chatbro { width: 100%; min-height: 400px; }

/* main-div floating buttons */
#main-div {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

#main-div #main-button {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--neo-primary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,230,118,0.4);
}

#main-div button,
#main-div a.weather-color {
  background: rgba(8,18,34,0.9);
  border: 1px solid var(--neo-border);
  color: var(--neo-text);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  text-decoration: none;
  transition: all var(--neo-transition);
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

#main-div button:hover,
#main-div a.weather-color:hover {
  background: var(--neo-primary-dim);
  border-color: var(--neo-border-hover);
  color: var(--neo-primary);
}

#main-div button svg,
#main-div a.weather-color svg { width: 16px !important; height: 16px !important; }

/* ==================== DROPDOWN MENUS DARK FIX ==================== */
.dropdown-content {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.55) !important;
  overflow: hidden;
}

.dropdown-item {
  color: var(--neo-text-muted) !important;
  padding: 10px 16px !important;
  font-size: 13px !important;
  display: flex !important;
  align-items: center !important;
  transition: all var(--neo-transition) !important;
}

.dropdown-item:hover {
  background: var(--neo-primary-dim) !important;
  color: var(--neo-primary) !important;
}

.dropdown-divider { border-color: var(--neo-border) !important; }

/* ==================== BREADCRUMB HIDDEN ON MOBILE ==================== */
@media (max-width: 639px) {
  nav[aria-label="breadcrumb"] { display: none !important; }
  .top-bar .hidden.sm\:flex { display: none !important; }
}

/* ==================== MODAL RESPONSIVE ==================== */
.modal-dialog {
  max-width: 90vw !important;
  margin: 20px auto !important;
}

@media (min-width: 576px) {
  .modal-dialog { max-width: 540px !important; }
}

/* ==================== neo-card full width on mobile ==================== */
@media (max-width: 639px) {
  .neo-card[style*="max-width"] {
    max-width: 100% !important;
  }
  .neo-tabs-wrap { overflow-x: auto; }
  .neo-tabs { min-width: max-content; }
}

/* ==================== TOPBAR BALANCE ON MOBILE ==================== */
@media (max-width: 1023px) {
  .top-bar { display: none !important; }
}

/* ==================== SIDEBAR MOBILE TOGGLE (JS hook) ==================== */
.neo-mobile-sidebar-btn {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 8px;
  padding: 6px 10px;
  color: var(--neo-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* ==================== SECTIONS FULL WIDTH ON MOBILE ==================== */
@media (max-width: 767px) {
  .neo-stat-card { flex-direction: row; }
  .neo-profile-header { padding: 16px; }
  .neo-tab-panel { padding: 0 !important; }
}

/* Fix .content old class that may still be referenced */
.content {
  margin-left: var(--neo-sidebar-w) !important;
  min-height: 100vh;
  background: transparent !important;
}

@media (max-width: 1023px) {
  .content { margin-left: 0 !important; }
}

/* Sidebar close X shown only via JS when open */

/* Sidebar must be relative so absolute close button works */
.side-nav { position: fixed !important; }

/* Ensure sidebar links close the drawer on click (mobile only) */
@media (max-width: 1023px) {
  .side-nav .side-menu { cursor: pointer; }
}

/* ==================== FORM CONTROL FULL RESPONSIVE ==================== */
input.form-control,
select.form-control,
textarea.form-control {
  width: 100% !important;
  min-width: 0 !important;
}

/* ==================== NEO CARD INNER CONTENT RESPONSIVE ==================== */
.neo-card > form,
.neo-box > form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==================== HOME PAGE NAVBAR MOBILE ==================== */
@media (max-width: 768px) {
  .neo-nav-links {
    display: none;
    flex-direction: column !important;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--neo-bg-2);
    border-bottom: 1px solid var(--neo-border);
    padding: 12px 0;
    z-index: 500;
  }

  .neo-nav-links.open { display: flex !important; }

  .neo-nav-links li a {
    padding: 12px 24px !important;
    display: block;
  }

  .neo-hero h1 { font-size: 32px !important; }
  .neo-hero p { font-size: 15px !important; }
  .neo-hero-actions { flex-direction: column !important; gap: 10px !important; }
  .neo-cta-primary, .neo-cta-secondary { width: 100% !important; text-align: center !important; }
}

/* ==================== OFFERWALLS PAGE ==================== */
.neo-offerwall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

@media (max-width: 479px) {
  .neo-offerwall-grid { grid-template-columns: 1fr; }
}

/* ==================== TASKS PAGE ==================== */
.neo-tasks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

@media (max-width: 479px) {
  .neo-tasks-grid { grid-template-columns: 1fr; }
}

/* ==================== ADS / SURF ADS TABLE RESPONSIVE ==================== */
@media (max-width: 639px) {
  .neo-table th:nth-child(3),
  .neo-table td:nth-child(3) { display: none; }
}

/* ==================== REFERRALS PAGE ==================== */
.neo-ref-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

@media (max-width: 639px) {
  .neo-ref-stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .neo-ref-stats-grid { grid-template-columns: 1fr; }
}

/* ==================== ACHIEVEMENTS RESPONSIVE ==================== */
.neo-achieve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ==================== LEADERBOARD CARDS RESPONSIVE ==================== */
@media (max-width: 639px) {
  .neo-lb-card-header { padding: 14px 16px !important; }
  .neo-lb-card-body { padding: 0 8px !important; }
  .neo-lb-rank { font-size: 22px !important; }
}

/* ==================== NEO-CARD BASE DEFINITION ==================== */
/* Used across all member pages - was missing, causing unstyled cards */

.neo-card {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: border-color var(--neo-transition), box-shadow var(--neo-transition);
}

.neo-card:hover {
  border-color: var(--neo-border-hover) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25) !important;
}

.neo-box {
  background: var(--neo-bg-card) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  backdrop-filter: blur(10px);
  position: relative;
}

html.light .neo-card,
html.light .neo-box {
  background: rgba(255,255,255,0.92) !important;
  border-color: var(--neo-border) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

html.light .neo-card:hover,
html.light .neo-box:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.10) !important;
}

/* Neo table */
.neo-table {
  width: 100%;
  border-collapse: collapse;
}
.neo-table th {
  background: rgba(0,230,118,0.06) !important;
  color: var(--neo-text-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid var(--neo-border) !important;
  text-align: left !important;
  white-space: nowrap;
}
.neo-table td {
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(0,230,118,0.06) !important;
  font-size: 13px !important;
  color: var(--neo-text) !important;
  vertical-align: middle !important;
}
.neo-table tr:last-child td { border-bottom: none !important; }
.neo-table tr:hover td { background: rgba(0,230,118,0.03) !important; }

/* Neo input */
.neo-input,
.form-control {
  background: rgba(5,13,26,0.7) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius) !important;
  color: var(--neo-text) !important;
  padding: 10px 14px !important;
  font-size: 14px !important;
  transition: border-color var(--neo-transition) !important;
  outline: none !important;
  width: 100%;
}

.neo-input:focus,
.form-control:focus {
  border-color: var(--neo-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.12) !important;
}

html.light .neo-input,
html.light .form-control {
  background: rgba(255,255,255,0.95) !important;
}

/* Neo badge */
.neo-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.neo-badge-success { background: rgba(0,230,118,0.15); color: var(--neo-primary); }
.neo-badge-warning { background: rgba(255,149,0,0.15); color: var(--neo-accent-orange); }
.neo-badge-danger  { background: rgba(247,37,133,0.15); color: var(--neo-accent-pink); }
.neo-badge-info    { background: rgba(0,180,216,0.15); color: var(--neo-accent-blue); }

/* ==================== FLOATING BUTTON BAR - DEFINITIVE OVERRIDES ==================== */
/* These rules override ALL conflicting CSS from customd.css / customm.css */

#main-div {
  position: fixed !important;
  right: 20px !important;
  left: auto !important;
  bottom: 20px !important;
  z-index: 9500 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 8px !important;
}

#main-div #main-button {
  position: relative !important;
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  background: var(--neo-primary) !important;
  border: none !important;
  padding: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  top: auto !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 20px rgba(0,230,118,0.4) !important;
  order: 99;
}

#main-div button,
#main-div a,
#main-div a.weather-color {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  top: auto !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  background: rgba(8, 18, 34, 0.92) !important;
  border: 1px solid rgba(0, 230, 118, 0.2) !important;
  color: var(--neo-text) !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4) !important;
  transition: all 0.2s ease !important;
  width: auto !important;
  height: auto !important;
  min-width: unset !important;
  min-height: unset !important;
  backdrop-filter: blur(10px) !important;
}

#main-div button:hover,
#main-div a:hover,
#main-div a.weather-color:hover {
  background: rgba(0, 230, 118, 0.12) !important;
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

#main-div button svg,
#main-div a svg,
#main-div a.weather-color svg,
#main-div button i,
#main-div a i,
#main-div a.weather-color i {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
}

/* Chat popup */
.chat-popup {
  position: fixed !important;
  bottom: 80px !important;
  right: 20px !important;
  left: auto !important;
  z-index: 9999 !important;
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
  border-radius: var(--neo-radius-lg) !important;
  overflow: hidden !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5) !important;
  width: 340px !important;
  max-height: 520px !important;
}

.chat-popup > .btn.btn-primary {
  width: 100% !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  padding: 10px !important;
  background: var(--neo-primary) !important;
  color: #050d1a !important;
  border: none !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

#chatbro {
  width: 100% !important;
  min-height: 420px !important;
}

@media (max-width: 479px) {
  .chat-popup {
    width: calc(100vw - 24px) !important;
    right: 12px !important;
  }
}

/* Light mode button bar override */
html.light #main-div button,
html.light #main-div a,
html.light #main-div a.weather-color {
  background: rgba(228, 234, 242, 0.95) !important;
  border-color: var(--neo-border) !important;
  color: var(--neo-text) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

html.light #main-div button:hover,
html.light #main-div a:hover,
html.light #main-div a.weather-color:hover {
  background: var(--neo-primary-dim) !important;
  border-color: var(--neo-primary) !important;
  color: var(--neo-primary) !important;
}

html.light #main-div #main-button {
  box-shadow: 0 4px 20px rgba(0,168,100,0.35) !important;
}

/* ==================== LAYOUT FINAL OVERRIDES ==================== */

html, body { overflow-x: hidden !important; }

/* ---- DESKTOP (≥1024px): fixed sidebar + margin-left on content ---- */
@media (min-width: 1024px) {
  .side-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: var(--neo-sidebar-w) !important;
    transform: none !important;
    z-index: 200 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .neo-main-content {
    margin-left: var(--neo-sidebar-w) !important;
    width: calc(100% - var(--neo-sidebar-w)) !important;
    max-width: calc(100% - var(--neo-sidebar-w)) !important;
    min-height: 100vh !important;
    padding-top: 0 !important;
    box-sizing: border-box !important;
  }

  .mobile-menu { display: none !important; }
  .neo-sidebar-overlay { display: none !important; }
  .top-bar { display: flex !important; }
}

/* ---- MOBILE (<1024px): off-canvas sidebar, full-width content ---- */
@media (max-width: 1023px) {
  .side-nav {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    height: calc(100vh - 60px) !important;
    width: var(--neo-sidebar-w) !important;
    transform: translateX(-110%) !important;
    z-index: 9300 !important;
    transition: transform 0.3s ease !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }

  .side-nav.neo-sidebar-open {
    transform: translateX(0) !important;
    box-shadow: 6px 0 40px rgba(0,0,0,0.7) !important;
  }

  .neo-sidebar-overlay {
    position: fixed !important;
    top: 60px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0,0,0,0.6) !important;
    z-index: 9200 !important;
    display: none !important;
  }
  .neo-sidebar-overlay.active { display: block !important; }

  .neo-main-content {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    padding-top: 60px !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .neo-content-area {
    padding: 16px 16px 24px !important;
  }

  .mobile-menu { display: block !important; }
  .top-bar { display: none !important; }
  #main-div { z-index: 9000 !important; }
}

/* Overflow control for content wrappers */
.neo-content-area,
.neo-dashboard {
  overflow-x: hidden !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Grid fixes */
.grid.grid-cols-12 { display: grid !important; }

/* ==================== MEMBER FOOTER ==================== */
.neo-member-footer {
  margin-top: 40px;
  padding: 0;
  border-top: 1px solid var(--neo-border);
  background: rgba(8,18,34,0.5);
  backdrop-filter: blur(10px);
}

.neo-member-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 14px;
  font-size: 12.5px;
  color: var(--neo-text-muted);
}

.neo-member-footer-inner a {
  color: var(--neo-text-muted) !important;
  text-decoration: none;
  transition: color var(--neo-transition);
  font-weight: 500;
}

.neo-member-footer-inner a:hover { color: var(--neo-primary) !important; }

.neo-member-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.neo-member-footer-links a {
  position: relative;
}

.neo-member-footer-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--neo-primary);
  transform: scaleX(0);
  transition: transform var(--neo-transition);
  transform-origin: left;
}

.neo-member-footer-links a:hover::after { transform: scaleX(1); }

html.light .neo-member-footer {
  background: rgba(228,234,242,0.7) !important;
  border-top-color: var(--neo-border) !important;
}

@media (max-width: 639px) {
  .neo-member-footer-inner { flex-direction: column; align-items: flex-start; padding: 12px 16px 16px; }
}

/* ==================== LEADERBOARD PODIUM ==================== */
.lb-section {
  margin-bottom: 40px;
}

.lb-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--neo-border);
}

.lb-section-header .lb-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.lb-section-header h4 {
  font-size: 16px; font-weight: 800;
  color: var(--neo-text); margin: 0 0 3px;
}

.lb-section-header p {
  font-size: 12px; color: var(--neo-text-muted); margin: 0;
}

.lb-section-header .lb-reset-badge {
  margin-left: auto;
  background: var(--neo-primary-dim);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--neo-primary);
  white-space: nowrap;
}

/* Podium container */
.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px 24px;
  background: linear-gradient(180deg, rgba(0,230,118,0.03) 0%, transparent 100%);
}

.lb-podium-slot {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-podium-card {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--neo-border);
  background: var(--neo-bg-card);
  backdrop-filter: blur(12px);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
  overflow: hidden;
}

.lb-podium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 18px 18px 0 0;
}

.lb-podium-card.gold::before   { background: linear-gradient(90deg, #ffd700, #ffb700, #ffd700); }
.lb-podium-card.silver::before { background: linear-gradient(90deg, #c0c0c0, #a8a8a8, #c0c0c0); }
.lb-podium-card.bronze::before { background: linear-gradient(90deg, #cd7f32, #b87333, #cd7f32); }

.lb-podium-card.gold {
  border-color: rgba(255,215,0,0.3);
  box-shadow: 0 8px 32px rgba(255,215,0,0.12);
}
.lb-podium-card.silver {
  border-color: rgba(192,192,192,0.25);
  box-shadow: 0 6px 24px rgba(192,192,192,0.08);
}
.lb-podium-card.bronze {
  border-color: rgba(205,127,50,0.25);
  box-shadow: 0 6px 24px rgba(205,127,50,0.08);
}

.lb-podium-card:hover { transform: translateY(-6px) scale(1.02); }
.lb-podium-card.gold:hover   { box-shadow: 0 16px 48px rgba(255,215,0,0.22) !important; }
.lb-podium-card.silver:hover { box-shadow: 0 12px 36px rgba(192,192,192,0.15) !important; }
.lb-podium-card.bronze:hover { box-shadow: 0 12px 36px rgba(205,127,50,0.15) !important; }

/* 1st place center elevated */
.lb-podium-slot.first {
  order: 2;
  z-index: 2;
  position: relative;
  bottom: 20px;
}
.lb-podium-slot.second { order: 1; }
.lb-podium-slot.third  { order: 3; }

.lb-podium-crown {
  font-size: 28px;
  margin-bottom: 8px;
  animation: neo-float 3s ease-in-out infinite;
}

.lb-podium-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  margin: 0 auto 10px;
  border: 3px solid;
  position: relative;
}

.lb-podium-slot.first  .lb-podium-avatar { width: 76px; height: 76px; font-size: 28px; }
.lb-podium-slot.second .lb-podium-avatar { border-color: #c0c0c0; background: rgba(192,192,192,0.12); color: #c0c0c0; }
.lb-podium-slot.first  .lb-podium-avatar { border-color: #ffd700; background: rgba(255,215,0,0.12); color: #ffd700; }
.lb-podium-slot.third  .lb-podium-avatar { border-color: #cd7f32; background: rgba(205,127,50,0.12); color: #cd7f32; }

.lb-podium-username {
  font-size: 13px; font-weight: 700;
  color: var(--neo-text);
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 140px;
}

.lb-podium-slot.first .lb-podium-username { font-size: 14px; }

.lb-podium-value {
  font-size: 12px; font-weight: 600;
}

.lb-podium-slot.second .lb-podium-value { color: #c0c0c0; }
.lb-podium-slot.first  .lb-podium-value { color: #ffd700; font-size: 13px; }
.lb-podium-slot.third  .lb-podium-value { color: #cd7f32; }

.lb-podium-rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  margin-top: 8px;
}

.lb-podium-slot.first  .lb-podium-rank-badge { background: rgba(255,215,0,0.2); color: #ffd700; width: 30px; height: 30px; font-size: 13px; }
.lb-podium-slot.second .lb-podium-rank-badge { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.lb-podium-slot.third  .lb-podium-rank-badge { background: rgba(205,127,50,0.15); color: #cd7f32; }

/* Podium base */
.lb-podium-base {
  width: 100%;
  border-radius: 0 0 10px 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 0;
  margin-top: -2px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.lb-podium-slot.first  .lb-podium-base { background: rgba(255,215,0,0.12); color: #ffd700; height: 60px; }
.lb-podium-slot.second .lb-podium-base { background: rgba(192,192,192,0.1); color: #c0c0c0; height: 44px; }
.lb-podium-slot.third  .lb-podium-base { background: rgba(205,127,50,0.1); color: #cd7f32; height: 36px; }

/* Rest of leaderboard table */
.lb-rest-table-wrap {
  padding: 0 16px 20px;
}

/* Leaderboard Modal */
.lb-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lb-modal-overlay.active { display: flex; }

.lb-modal {
  background: var(--neo-bg-3);
  border: 1px solid var(--neo-border);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: lb-modal-in 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes lb-modal-in {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.lb-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--neo-border);
  background: transparent;
  color: var(--neo-text-muted);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--neo-transition);
}

.lb-modal-close:hover {
  background: rgba(247,37,133,0.1);
  border-color: #f72585;
  color: #f72585;
}

.lb-modal-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 800;
  margin: 0 auto 12px;
  border: 3px solid var(--neo-primary);
  background: var(--neo-primary-dim);
  color: var(--neo-primary);
}

.lb-modal-rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 16px;
}

.lb-modal-username {
  font-size: 22px; font-weight: 800;
  color: var(--neo-text);
  margin-bottom: 4px;
  text-align: center;
}

.lb-modal-type {
  font-size: 12px; font-weight: 600;
  color: var(--neo-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  text-align: center;
}

.lb-modal-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.lb-modal-stat {
  background: rgba(0,230,118,0.05);
  border: 1px solid var(--neo-border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.lb-modal-stat .stat-val {
  font-size: 20px; font-weight: 800;
  color: var(--neo-primary);
  display: block; margin-bottom: 3px;
}

.lb-modal-stat .stat-key {
  font-size: 11px;
  color: var(--neo-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

html.light .lb-modal {
  background: rgba(255,255,255,0.97) !important;
  border-color: var(--neo-border) !important;
}

html.light .lb-modal-stat {
  background: rgba(0,168,100,0.05) !important;
}

/* Leaderboard responsive */
@media (max-width: 640px) {
  .lb-podium { padding: 20px 12px 16px; gap: 8px; }
  .lb-podium-card { padding: 14px 10px; }
  .lb-podium-avatar { width: 50px; height: 50px; font-size: 18px; }
  .lb-podium-slot.first .lb-podium-avatar { width: 60px; height: 60px; font-size: 22px; }
  .lb-podium-username { font-size: 11px; max-width: 100px; }
  .lb-podium-slot.first { bottom: 14px; }
  .lb-podium-crown { font-size: 20px; }
  .lb-rest-table-wrap { padding: 0 8px 16px; }
}

/* ==================== IMPROVED STATS GRID RESPONSIVE ==================== */
@media (max-width: 900px) {
  .neo-stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .neo-stats-grid { grid-template-columns: 1fr 1fr; }
  .neo-stat-card-value { font-size: 16px !important; }
  .neo-stat-card { padding: 16px 14px !important; }
}

/* ==================== IMPROVED EARN GRID ==================== */
.neo-earn-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 500px) {
  .neo-earn-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ==================== IMPROVED TOP BAR RESPONSIVE ==================== */
@media (max-width: 1023px) {
  .top-bar .breadcrumb { display: none !important; }
}

/* ==================== IMPROVED PROFILE HEADER RESPONSIVE ==================== */
@media (max-width: 768px) {
  .neo-profile-header { padding: 16px 18px !important; gap: 12px !important; }
  .neo-profile-avatar { width: 56px !important; height: 56px !important; }
  .neo-profile-quick-stats { gap: 12px !important; }
  .neo-quick-stat .value { font-size: 13px !important; }
}

@media (max-width: 480px) {
  .neo-profile-header { flex-wrap: wrap !important; }
  .neo-profile-quick-stats { flex-wrap: wrap !important; gap: 8px !important; }
  .neo-profile-header > div:last-child { width: 100% !important; margin-left: 0 !important; }
  .neo-profile-header > div:last-child a { width: 100% !important; text-align: center !important; justify-content: center !important; }
}

/* ==================== LIGHT MODE IMPROVEMENTS ==================== */
html.light .neo-profile-header {
  background: rgba(255,255,255,0.92) !important;
  border-color: var(--neo-border) !important;
}

html.light .neo-stat-card {
  background: rgba(255,255,255,0.92) !important;
  border-color: var(--neo-border) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

html.light .neo-stat-card-value { color: #0d1b2e !important; }

html.light .neo-earn-card {
  background: rgba(255,255,255,0.92) !important;
  border-color: var(--neo-border) !important;
}

html.light .neo-earn-card-body h4 { color: #0d1b2e !important; }

html.light body {
  background-color: #f0f4f8 !important;
}

html.light .neo-section-header h3 { color: #0d1b2e !important; }
html.light .neo-section-header p   { color: rgba(30,60,100,0.55) !important; }

html.light .top-bar {
  background: rgba(228,234,242,0.97) !important;
  border-color: var(--neo-border) !important;
}

html.light .mobile-menu,
html.light .mobile-menu-bar {
  background: rgba(228,234,242,0.97) !important;
  border-color: var(--neo-border) !important;
}

html.light .neo-badge-member {
  background: rgba(0,168,100,0.12) !important;
  color: var(--neo-primary) !important;
  border-color: rgba(0,168,100,0.2) !important;
}

html.light .lb-podium-card {
  background: rgba(255,255,255,0.9) !important;
  border-color: var(--neo-border) !important;
}

html.light .lb-modal-stat {
  background: rgba(0,168,100,0.05) !important;
  border-color: var(--neo-border) !important;
}

html.light select option { background: #fff; color: #0d1b2e; }

html.light textarea.form-control,
html.light textarea {
  background: rgba(255,255,255,0.95) !important;
  border-color: var(--neo-border) !important;
  color: var(--neo-text) !important;
}

/* ==================== MOBILE MENU IMPROVEMENT ==================== */
.neo-mobile-sidebar-btn {
  background: rgba(0,230,118,0.1);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--neo-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--neo-transition);
}

.neo-mobile-sidebar-btn:hover {
  background: rgba(0,230,118,0.2);
}

html.light .neo-mobile-sidebar-btn {
  background: rgba(0,168,100,0.1) !important;
  border-color: rgba(0,168,100,0.25) !important;
  color: var(--neo-primary) !important;
}

/* ==================== #MAIN-DIV FAB IMPROVEMENT ==================== */
#main-div {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 8px;
}

#main-div button,
#main-div a.weather-color,
#main-div a[onclick] {
  display: none !important;
  align-items: center;
  gap: 6px;
  padding: 9px 14px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3) !important;
}

#main-div.is-open button,
#main-div.is-open a.weather-color,
#main-div.is-open a[onclick] {
  display: flex !important;
}

/* ==================== LIGHT MODE: SIDEBAR ==================== */
html.light .side-nav {
  background: var(--neo-bg-2) !important;
  border-right-color: var(--neo-border) !important;
}

html.light .side-menu {
  color: rgba(30,60,100,0.7) !important;
}

html.light .side-menu:hover {
  background: rgba(0,168,100,0.08) !important;
  color: #0d1b2e !important;
}

html.light .side-menu--active {
  background: rgba(0,168,100,0.12) !important;
  color: var(--neo-primary) !important;
  border-color: rgba(0,168,100,0.3) !important;
}

html.light .side-menu__title { color: inherit !important; }

/* ==================== RESPONSIVE: ALL PAGES ==================== */

/* Ensure grid doesn't overflow on small screens */
@media (max-width: 767px) {
  .neo-earn-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .neo-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .neo-profile-header {
    flex-wrap: wrap !important;
    padding: 14px 16px !important;
    gap: 10px !important;
  }
  .neo-profile-quick-stats {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
  .neo-profile-header > div:last-child {
    width: 100% !important;
    margin-left: 0 !important;
  }
  .neo-profile-header > div:last-child a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 479px) {
  .neo-earn-grid {
    grid-template-columns: 1fr !important;
  }
  .neo-stats-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .neo-earn-card {
    min-width: 0 !important;
    width: 100% !important;
  }
  .neo-content-area {
    padding: 12px 12px 20px !important;
  }
  .neo-section-header h3 { font-size: 16px !important; }
  .neo-section-header p { font-size: 12px !important; }
}

/* Tables: scroll on mobile */
@media (max-width: 767px) {
  .neo-table-wrap,
  .lb-rest-table-wrap,
  .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .neo-table {
    min-width: 480px;
  }
}

/* Leaderboard podium mobile */
@media (max-width: 600px) {
  .lb-podium {
    gap: 8px !important;
  }
  .lb-podium-card {
    padding: 14px 10px !important;
  }
  .lb-podium-avatar {
    width: 44px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
  .lb-podium-username {
    font-size: 12px !important;
  }
  .lb-podium-value {
    font-size: 11px !important;
  }
}

@media (max-width: 400px) {
  .lb-podium {
    flex-direction: column !important;
    align-items: center !important;
  }
  .lb-podium-slot { width: 85% !important; }
  .lb-podium-slot.first { order: -1 !important; bottom: 0 !important; }
  .lb-podium-slot.second { order: 0 !important; }
  .lb-podium-slot.third { order: 1 !important; }
}

/* Top-bar hide breadcrumb on very small screens */
@media (max-width: 480px) {
  .top-bar .hidden { display: none !important; }
}

/* Modal responsive */
@media (max-width: 500px) {
  .lb-modal {
    padding: 24px 16px !important;
    margin: 12px !important;
    border-radius: 16px !important;
  }
  .lb-modal-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* Withdraw / form pages: full width inputs */
@media (max-width: 767px) {
  .neo-card,
  .neo-box {
    padding: 16px !important;
  }
}

/* Fix any leftover margin-left on .content at mobile */
@media (max-width: 1023px) {
  .content,
  .neo-main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* ==================== LEADERBOARD 2-COLUMN GRID ==================== */
.lb-sections-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

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

/* ==================== OFFERWALL MODAL DARK MODE ==================== */
.modal-container {
  background: var(--neo-bg-3) !important;
  border: 1px solid var(--neo-border) !important;
}

.modal-body {
  background: var(--neo-bg-2) !important;
  color: var(--neo-text) !important;
}

.modal-loading p {
  color: var(--neo-text-muted) !important;
}

.loading-spinner {
  border-color: var(--neo-border) !important;
  border-top-color: var(--neo-primary) !important;
}

html.light .modal-container {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .modal-body {
  background: #f8fafc !important;
  color: #1a202c !important;
}

html.light .modal-loading p {
  color: #4a5568 !important;
}

/* ==================== LIGHT MODE TEXT FIXES ==================== */
html.light {
  --neo-bg:            #f0f4f8;
  --neo-bg-2:          #e8edf4;
  --neo-bg-3:          #ffffff;
  --neo-bg-card:       rgba(255,255,255,0.9);
  --neo-border:        rgba(0,100,50,0.15);
  --neo-border-hover:  rgba(0,150,70,0.35);
  --neo-text:          #0d1b2e;
  --neo-text-muted:    rgba(30,60,100,0.55);
  --neo-primary-dim:   rgba(0,168,100,0.12);
}

html.light body {
  background-color: var(--neo-bg) !important;
  background-image: none !important;
}

html.light .neo-card,
html.light .neo-box,
html.light .neo-earn-card {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(0,120,60,0.12) !important;
  color: var(--neo-text) !important;
}

html.light .neo-topbar {
  background: rgba(240,244,248,0.95) !important;
  border-bottom-color: rgba(0,120,60,0.1) !important;
}

html.light .neo-stats-grid .neo-stat-card {
  background: rgba(255,255,255,0.9) !important;
  color: var(--neo-text) !important;
}

html.light .neo-table thead tr {
  background: rgba(0,168,100,0.06) !important;
}

html.light .neo-table th {
  color: #00875a !important;
}

html.light .neo-table td {
  color: var(--neo-text) !important;
  border-bottom-color: rgba(0,100,50,0.08) !important;
}

html.light .lb-section {
  background: rgba(255,255,255,0.95) !important;
  border-color: rgba(0,120,60,0.12) !important;
}

html.light .lb-podium-card.gold {
  background: linear-gradient(135deg, #fffbeb, #fef3c7) !important;
  border-color: rgba(245,158,11,0.4) !important;
}

html.light .lb-podium-card.silver {
  background: linear-gradient(135deg, #f8fafc, #e8edf4) !important;
  border-color: rgba(100,116,139,0.3) !important;
}

html.light .lb-podium-card.bronze {
  background: linear-gradient(135deg, #fff7ed, #fde8d0) !important;
  border-color: rgba(194,120,60,0.3) !important;
}

html.light .lb-podium-username {
  color: #0d1b2e !important;
}

html.light .lb-podium-value {
  color: rgba(30,60,100,0.7) !important;
}

html.light .neo-section-header h3,
html.light .neo-section-header p,
html.light h1, html.light h2, html.light h3, html.light h4, html.light h5 {
  color: var(--neo-text) !important;
}

html.light p, html.light span, html.light label, html.light td, html.light th {
  color: var(--neo-text) !important;
}

html.light .neo-text-muted,
html.light [style*="color:var(--neo-text-muted)"] {
  color: var(--neo-text-muted) !important;
}

html.light #main-div button,
html.light #main-div a.weather-color,
html.light #main-div a[onclick] {
  background: rgba(240,244,248,0.95) !important;
  border-color: rgba(0,168,100,0.25) !important;
  color: #0d1b2e !important;
}

html.light #main-div #main-button {
  background: var(--neo-primary) !important;
}

html.light .neo-member-footer {
  background: rgba(240,244,248,0.95) !important;
  border-top-color: rgba(0,120,60,0.1) !important;
  color: var(--neo-text-muted) !important;
}

html.light .offerwall-card {
  background: rgba(255,255,255,0.9) !important;
  border-color: rgba(0,120,60,0.12) !important;
  color: var(--neo-text) !important;
}

/* ===== OFFERWALL MODAL HEADER BUTTONS - ALWAYS WHITE ON PURPLE ===== */
.modal-refresh,
.modal-close {
  color: #ffffff !important;
  background: rgba(255,255,255,0.2) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
}
.modal-refresh:hover { background: rgba(59,130,246,0.8) !important; }
.modal-close:hover  { background: rgba(239,68,68,0.8) !important; }

/* Ensure modal buttons are visible in both modes */
html.light .modal-refresh,
html.light .modal-close {
  color: #ffffff !important;
  background: rgba(255,255,255,0.25) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ===== COMPREHENSIVE LIGHT MODE FIXES ===== */
/* Prevent light mode overriding button colors where not wanted */
html.light .modal-header button,
html.light .modal-controls button {
  color: #ffffff !important;
}

/* Fix neo-modal in ads page in light mode */
html.light .neo-modal-box {
  background: #ffffff !important;
  border-color: rgba(0,120,60,0.15) !important;
  color: #0d1b2e !important;
}
html.light .neo-modal-header {
  border-bottom-color: rgba(0,100,50,0.12) !important;
}
html.light .neo-modal-header h4 {
  color: #0d1b2e !important;
}
html.light .neo-modal-close {
  background: rgba(0,0,0,0.06) !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: #0d1b2e !important;
}

/* Fix ads page tab/steps in light mode */
html.light .ads-page-tab {
  color: rgba(30,60,100,0.55) !important;
}
html.light .ads-page-tab.active {
  color: var(--neo-primary) !important;
}
html.light .ads-page-tabs {
  border-bottom-color: rgba(0,100,50,0.15) !important;
}

/* Fix neo-wizard-step in light mode */
html.light .neo-wizard-step-label {
  color: rgba(30,60,100,0.55) !important;
}
html.light .neo-wizard-step.active .neo-wizard-step-label {
  color: var(--neo-primary) !important;
}
html.light .neo-wizard-step-dot {
  background: rgba(0,0,0,0.1) !important;
  border-color: rgba(0,0,0,0.15) !important;
  color: rgba(30,60,100,0.55) !important;
}
html.light .neo-wizard-step.active .neo-wizard-step-dot {
  background: var(--neo-primary) !important;
  color: #050d1a !important;
}

/* Fix notice/info boxes in light mode */
html.light .neo-info-box,
html.light [style*="rgba(0,230,118,0.08)"],
html.light [style*="rgba(0,230,118,0.1)"] {
  background: rgba(0,168,100,0.07) !important;
}

/* Fix table rows hover in light mode */
html.light .neo-table tbody tr:hover {
  background: rgba(0,168,100,0.05) !important;
}

/* Fix side-nav in light mode */
html.light .side-nav {
  background: #ffffff !important;
  border-right-color: rgba(0,120,60,0.12) !important;
}
html.light .side-menu {
  color: rgba(30,60,100,0.65) !important;
}
html.light .side-menu:hover,
html.light .side-menu--active {
  color: var(--neo-primary) !important;
}
html.light .side-nav__devider {
  border-color: rgba(0,100,50,0.1) !important;
}

/* Fix top-bar/topbar in light mode */
html.light .top-bar {
  background: rgba(240,244,248,0.98) !important;
  border-bottom: 1px solid rgba(0,120,60,0.1) !important;
}

/* Fix breadcrumb in light mode */
html.light .breadcrumb-item a,
html.light .breadcrumb-item {
  color: rgba(30,60,100,0.65) !important;
}

/* Fix dropdown/notification in light mode */
html.light .notification-content__box,
html.light .dropdown-content {
  background: #ffffff !important;
  border-color: rgba(0,120,60,0.12) !important;
  color: #0d1b2e !important;
}
html.light .notification-content__title {
  color: #0d1b2e !important;
}

/* Fix input/textarea/select in light mode */
html.light input,
html.light textarea,
html.light select {
  background: #f8fafc !important;
  border-color: rgba(0,100,50,0.2) !important;
  color: #0d1b2e !important;
}
html.light input::placeholder,
html.light textarea::placeholder {
  color: rgba(30,60,100,0.4) !important;
}

/* Ensure primary action buttons stay green in light mode */
html.light .neo-cta-primary,
html.light [style*="background:linear-gradient(135deg,#00e676"],
html.light [style*="background: linear-gradient(135deg, #00e676"] {
  color: #050d1a !important;
}

/* Fix mobile menu bar in light mode */
html.light .mobile-menu {
  background: rgba(240,244,248,0.98) !important;
  border-bottom: 1px solid rgba(0,120,60,0.1) !important;
}

/* Fix FAB in light mode */
html.light .neo-fab-menu-item {
  background: #ffffff !important;
  border-color: rgba(0,120,60,0.15) !important;
  color: #0d1b2e !important;
}
html.light .neo-fab-menu-item:hover {
  background: rgba(0,168,100,0.08) !important;
}

/* Fix lb-row in leaderboard light mode */
html.light .lb-row {
  color: #0d1b2e !important;
}
html.light .lb-row:hover {
  background: rgba(0,168,100,0.05) !important;
}
html.light .lb-row-username {
  color: #0d1b2e !important;
}

/* Fix earn-cards section in dashboard light mode */
html.light .neo-earn-grid .neo-earn-card:hover {
  border-color: rgba(0,168,100,0.35) !important;
}

/* Fix user stats header in light mode */
html.light .neo-user-header {
  background: rgba(255,255,255,0.85) !important;
  border-color: rgba(0,120,60,0.12) !important;
}

/* ===== LIGHT MODE: Hero showcase ===== */
html.light .nhs-live-banner {
  background: rgba(0,168,100,0.08) !important;
  border-color: rgba(0,168,100,0.2) !important;
  color: #0d1b2e !important;
}
html.light .nhs-earn-card {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(0,100,50,0.12) !important;
  color: #0d1b2e !important;
}
html.light .nhs-earn-card:hover {
  background: rgba(255,255,255,0.98) !important;
}
html.light .nhs-earn-name { color: #0d1b2e !important; }
html.light .nhs-ticker {
  background: rgba(200,160,20,0.07) !important;
  border-color: rgba(180,140,0,0.18) !important;
}
html.light .nhs-ticker-inner { color: rgba(30,60,100,0.7) !important; }
html.light .mini-stat-lbl { color: rgba(30,60,100,0.55) !important; }
html.light .hero-stat-sep { background: rgba(0,120,60,0.2) !important; }

/* ===== LIGHT MODE: offerwall card content section ===== */
html.light .content-section {
  background: #ffffff !important;
}
html.light .boost-text { color: #0d1b2e !important; }
html.light .card-category {
  background: rgba(0,120,60,0.1) !important;
  color: #00875a !important;
}
html.light .popularity-bar-bg {
  background: rgba(0,0,0,0.1) !important;
}
html.light .popularity-pct { color: rgba(30,60,100,0.65) !important; }

/* Ensure nhs-earn-card accent line is always visible */
.nhs-earn-card::before { opacity: 1 !important; }

/* Force dark mode only */
html.light {
  color-scheme: dark !important;
}
html.light body {
  background: #050d1a !important;
}

/* Landing networks strip */
.neo-network-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.neo-network-marquee {
  overflow: hidden;
  width: 100%;
}
.neo-network-track {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  animation: neoNetworkMarquee 30s linear infinite;
}
.neo-network-track.rev {
  animation-direction: reverse;
  animation-duration: 34s;
}
@keyframes neoNetworkMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-45%); }
}
.neo-network-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0, 230, 118, 0.24);
  background: rgba(9, 23, 41, 0.88);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.neo-network-chip img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}
.neo-network-chip small {
  font-size: 11px;
  color: rgba(232, 244, 255, 0.8);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .neo-network-chip {
    padding: 6px 10px;
    gap: 6px;
  }
  .neo-network-chip img {
    width: 14px;
    height: 14px;
  }
  .neo-network-chip small {
    font-size: 10px;
  }
}
@media (max-width: 480px) {
  .neo-network-chip {
    padding: 5px 8px;
    gap: 5px;
  }
  .neo-network-chip img {
    width: 12px;
    height: 12px;
  }
  .neo-network-chip small {
    font-size: 9px;
  }
}

/* Global icon cleanup - only hide icons in specific contexts, not sidebar */
i[data-lucide].hidden,
.fa.hidden, .fas.hidden, .far.hidden, .fab.hidden, .fal.hidden, .fad.hidden {
  display: none !important;
}

