/* ===== MODERN DARK THEME VARIABLES ===== */
:root {
  /* Primary Colors */
  --primary: #f36f21;
  --primary-light: #ff9955;
  --primary-dark: #d45a1a;
  --primary-glow: rgba(243, 111, 33, 0.3);
  
  /* Background Colors */
  --dark-bg: #0f0f0f;
  --section-bg: #111111;
  --card-bg: #1a1a1a;
  --card-hover: #1e1e1e;
  --input-bg: #2d2d2d;
  --input-focus: #3a3a3a;
  
  /* Text Colors */
  --text-light: #ffffff;
  --text-gray: #b0b0b0;
  --text-muted: #888888;
  
  /* Border Colors */
  --border-color: #333333;
  --border-light: #404040;
  
  /* Status Colors */
  --success: #00d26a;
  --error: #ff4757;
  --warning: #ffb300;
  --info: #448aff;
  
  /* Shadows & Effects */
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Gradients */
  --gradient: linear-gradient(135deg, #f36f21 0%, #ff6b35 100%);
  
  /* Typography */
  --font-primary: 'Poppins', sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Spacing */
  --space-xs: 5px;
  --space-sm: 10px;
  --space-md: 15px;
  --space-lg: 20px;
  --space-xl: 30px;
  --space-xxl: 40px;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-xxl: 20px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== BASE RESET & TYPOGRAPHY ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-primary);
  background: var(--dark-bg);
  color: var(--text-light);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding: 0 20px;
}

/* ===== GLOBAL STYLES FOR CONSISTENT LOOK ===== */

/* Common Button Styles - Har jagah same */
.btn-primary, .boxBtn, .login-btn, .btn-refer, input[type="submit"], input[type="button"] {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(243, 111, 33, 0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 48px;
}

.btn-primary:hover, .boxBtn:hover, .login-btn:hover, .btn-refer:hover, 
input[type="submit"]:hover, input[type="button"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(243, 111, 33, 0.6);
}

.btn-primary:active, .boxBtn:active, .login-btn:active, .btn-refer:active,
input[type="submit"]:active, input[type="button"]:active {
  transform: translateY(-1px);
}

/* Common Input Styles - Har jagah same */
.form-input, .boxTxt, .boxSel, input[type="text"], input[type="email"], 
input[type="number"], input[type="password"], textarea, select {
  width: 100%;
  padding: 14px 18px;
  background: var(--input-bg);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-light);
  font-family: var(--font-primary);
  font-size: 15px;
  transition: all var(--transition-bounce);
  min-height: 48px;
}

.form-input:focus, .boxTxt:focus, .boxSel:focus, input[type="text"]:focus,
input[type="email"]:focus, input[type="number"]:focus, input[type="password"]:focus,
textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--input-focus);
  box-shadow: 0 0 0 4px var(--primary-glow);
  transform: translateY(-2px);
}

/* Common Card Styles - Har jagah same */
.card, .tablediv, .login-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-bounce);
}

.card::before, .tablediv::before, .login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Common Typography - Har jagah same */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
  font-weight: var(--font-weight-bold);
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: 1.75rem;
  font-weight: var(--font-weight-semibold);
}

h4 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: 1rem;
  font-weight: var(--font-weight-medium);
}

/* ===== ACCESSIBILITY & REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== SELECTION STYLES ===== */
::selection {
  background: rgba(243, 111, 33, 0.3);
  color: white;
}

::-moz-selection {
  background: rgba(243, 111, 33, 0.3);
  color: white;
}