/* ==========================================================================
   TUMAN PANEL - GLOBAL CSS (Dark Theme #0d0f12, Animations, Utilities)
   STRICTLY AS REQUESTED: No Emojis, No Light Mode, Pure Dark Design System.
   ========================================================================== */

/* 1. CSS VARIABLES (Color Palette & Typography) */
:root {
  --bg-page: #0d0f12;           /* Main background - pure dark */
  --bg-card: #13161b;           /* Card backgrounds */
  --bg-input: #1a1d23;          /* Form inputs */
  --primary-purple: #7C3AED;    /* Buttons, highlights, active states, neon glow */
  --accent-gold: #F59E0B;       /* Badges, special offers, avatar, section borders */
  --text-primary: #F3F4F6;      /* Main text, white-ish */
  --text-secondary: #9CA3AF;    /* Subtitles, labels, gray */
  --border: #2D3748;            /* Card borders */
  --success-green: #10B981;
  --error-red: #EF4444;
  --warning-yellow: #F59E0B;
  --notice-bg: #7C3AED;         /* Purple - notice banner background */
  --bottom-nav-bg: #13161b;     /* Bottom navigation background */
}

/* 2. GLOBAL DEFAULTS & SECURITY LOCKS */
body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;

  /* Security / UX constraints from Blueprint */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

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

/* Base utility classes bridging pure CSS with Tailwind usage in HTML */
.bg-page { background-color: var(--bg-page); }
.bg-card { background-color: var(--bg-card); }
.bg-input { background-color: var(--bg-input); }
.text-purple { color: var(--primary-purple); }
.text-gold { color: var(--accent-gold); }
.border-custom { border: 1px solid var(--border); }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-page);
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-purple);
}

/* 3. GLOW & SPECIAL EFFECTS */
.glow-purple {
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}
.glow-text {
  text-shadow: 0 0 10px rgba(124, 58, 237, 0.8);
}
.glow-gold {
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* 4. FORM INPUTS & BUTTONS */
.input-field {
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  width: 100%;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.input-field:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.3);
}

.btn-primary {
  background-color: var(--primary-purple);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover:not(:disabled) {
  background-color: #6D28D9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.5);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ripple Effect Animation for Buttons */
@keyframes ripple-effect {
  from { transform: scale(0); opacity: 0.6; }
  to { transform: scale(4); opacity: 0; }
}

/* 5. PRODUCT CARDS */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-purple);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.25);
}

/* 6. BOTTOM NAVIGATION (Mobile) */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bottom-nav-bg);
  border-top: 1px solid var(--border);
  justify-content: space-around;
  padding: 0.5rem 0;
  z-index: 50;
}
.nav-item {
  color: var(--text-secondary);
  text-align: center;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.nav-item i {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}
/* Active Tab Neon Glow & Line Indicator */
.nav-item.active {
  color: var(--primary-purple);
}
.nav-item.active i {
  text-shadow: 0 0 12px rgba(124, 58, 237, 0.8);
  transform: translateY(-2px);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  top: -8px;
  width: 20px;
  height: 3px;
  background-color: var(--primary-purple);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(124, 58, 237, 0.8);
}

/* 7. TOAST NOTIFICATIONS */
#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.toast {
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
  opacity: 1;
  transition: opacity 0.3s ease-out;
}
.toast i { font-size: 1.25rem; }
.toast.success { background-color: var(--success-green); }
.toast.error   { background-color: var(--error-red); }
.toast.warning { background-color: var(--warning-yellow); color: #000; }
.toast.info    { background-color: var(--primary-purple); }

/* 8. LOADING EFFECTS & OVERLAYS */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 15, 18, 0.85);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  justify-content: center;
  align-items: center;
}
.spinner {
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary-purple);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.2);
}

/* 9. KEYFRAME ANIMATIONS */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes fadeInUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(124, 58, 237, 0.3); }
  50% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.6); }
}

/* 10. NOTICE BANNER */
.notice-banner {
  background-color: var(--notice-bg);
  animation: slideIn 0.5s ease-out;
}

/* 11. SECTION HEADINGS WITH DECORATIVE LINES */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0 1rem;
}
.section-heading::before,
.section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}
.section-heading span {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  white-space: nowrap;
}

/* 12. SMOOTH SCROLL */
html {
  scroll-behavior: smooth;
}

/* 13. PAGE ELEMENT ANIMATIONS */
.fade-in-up {
  animation: fadeInUp 0.5s ease-out both;
}
