/* Minimal, neutral theme overrides loaded last to soften colors and improve typography */
:root {
  --bg-0: #0b0b0b;
  --bg-1: #111111;
  --bg-2: #171717;
  --text-0: #eaeaea;
  --text-1: #b5b5b5;
  --accent: #7df905;
  --accent-muted: #63c704;
  --border-weak: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
}

html, body {
  background: var(--bg-0) !important;
  color: var(--text-0) !important;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif !important;
  letter-spacing: -0.02em;
}

.header, .mobile-nav {
  background: linear-gradient(180deg, rgba(13,13,13,0.92), rgba(13,13,13,0.98)) !important;
  backdrop-filter: saturate(120%) blur(6px);
  border-bottom: 1px solid var(--border-weak);
}

.nav .nav-link {
  color: var(--text-1) !important;
}
.nav .nav-link.active, .nav .nav-link:hover {
  color: var(--text-0) !important;
}

.btn {
  font-weight: 600;
  border-radius: 10px !important;
  border: 1px solid var(--border-strong) !important;
  background: var(--bg-2) !important;
  color: var(--text-0) !important;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.6);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  border-color: rgba(125, 249, 5, 0.2) !important;
  background: linear-gradient(180deg, rgba(125, 249, 5, 0.15), rgba(125, 249, 5, 0.05)) !important;
  color: var(--text-0) !important;
}
.btn-outline {
  border-color: var(--border-strong) !important;
  background: transparent !important;
}

.section-title h2, .hero-heading {
  color: var(--text-0) !important;
}
.section-title p, .hero-subheading {
  color: var(--text-1) !important;
}

.product-card, .admin-card, .topic-card, .stat-box, .modal-content {
  background: rgba(20, 20, 20, 0.92) !important;
  border: 1px solid var(--border-weak) !important;
  box-shadow: var(--shadow-1);
}
.product-title, .product-price {
  color: var(--text-0) !important;
}
.feature-list li { color: var(--text-1) !important; }
/* Tone down accent saturation site-wide */
.badge, .status-tag.success { background: linear-gradient(45deg, var(--accent-muted), var(--accent)); }
.toast-info { border-left-color: var(--accent-muted) !important; }

/* Admin card tweaks */
.admin-card {
  padding: 18px 20px !important;
  border-radius: 12px !important;
}

/* Status tag to match theme */
.status-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-weak);
  background: var(--bg-1);
  color: var(--text-1);
}
.status-tag.success {
  background: rgba(125, 249, 5, 0.16);
  color: var(--accent);
  border-color: rgba(125, 249, 5, 0.28);
}
.status-tag.warning {
  background: rgba(241, 196, 15, 0.16);
  color: #f1c40f;
  border-color: rgba(241, 196, 15, 0.28);
}
.status-tag.danger {
  background: rgba(255, 107, 96, 0.16);
  color: #ff6b60;
  border-color: rgba(255, 107, 96, 0.28);
}

/* CTA section on home after moving products */
.products-cta { padding: 60px 0; background: var(--bg-1); border-top: 1px solid var(--border-weak); border-bottom: 1px solid var(--border-weak); }
.products-cta .btn { margin-top: 12px; }

/* Improved Toast Notifications (overrides) */
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 420px;
  padding: 12px 14px 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-weak);
  background: rgba(20,20,20,0.95);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
  backdrop-filter: saturate(120%) blur(6px);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 320ms cubic-bezier(.22,1,.36,1), opacity 320ms ease;
  z-index: 2000;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { font-size: 1.05rem; opacity: 0.9; }
.toast .toast-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 6px;
  cursor: pointer;
}
.toast .toast-close:hover { color: #fff; background: rgba(255,255,255,0.08); }
.toast .toast-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
}
.toast .toast-progress span {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-muted));
  animation: toastProgress linear forwards;
  animation-duration: var(--toast-duration, 3000ms);
}
@keyframes toastProgress { from { width: 100%; } to { width: 0%; } }

/* Variants */
.toast-info { border-left: 4px solid var(--accent-muted); }
.toast-success { border-left: 4px solid #2ecc71; }
.toast-warning { border-left: 4px solid #f1c40f; }
.toast-error { border-left: 4px solid #ff6b60; }
.toast-success i { color: #2ecc71; }
.toast-warning i { color: #f1c40f; }
.toast-error i { color: #ff6b60; }

/* Stacking */
.toast + .toast { margin-top: 10px; }
.products-cta .btn { margin-top: 12px; }
