/* Professional Design System for PTRFF Quiz App */
/* Premium Edition - Enhanced for luxury feel */

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
  /* Premium Primary Colors - Deeper, richer indigo */
  --color-primary-50: #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;

  /* Premium Accent - Gold/Amber for luxury */
  --color-gold-50: #fffbeb;
  --color-gold-100: #fef3c7;
  --color-gold-200: #fde68a;
  --color-gold-300: #fcd34d;
  --color-gold-400: #fbbf24;
  --color-gold-500: #f59e0b;
  --color-gold-600: #d97706;

  /* Accent Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-info: #06b6d4;
  --color-info-light: #cffafe;

  /* Neutral Colors - Refined slate palette */
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Typography */
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Premium Shadows - Layered depth */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
  --shadow-primary: 0 10px 40px -10px rgba(79, 70, 229, 0.4);
  --shadow-primary-lg: 0 20px 50px -10px rgba(79, 70, 229, 0.5);
  --shadow-gold: 0 10px 40px -10px rgba(245, 158, 11, 0.35);
  --shadow-success: 0 10px 40px -10px rgba(16, 185, 129, 0.35);

  /* Glow effects */
  --glow-primary: 0 0 20px rgba(79, 70, 229, 0.3);
  --glow-gold: 0 0 20px rgba(251, 191, 36, 0.4);
  --glow-success: 0 0 20px rgba(16, 185, 129, 0.3);

  /* Transitions - Premium easing */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Spacing (8px base) */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

.text-display {
  font-size: 3.75rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1;
}

.text-h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.text-h2 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.text-h3 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.25;
}

.text-h4 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.text-large {
  font-size: 1.125rem;
  line-height: 1.75;
}

.text-body {
  font-size: 1rem;
  line-height: 1.5;
}

.text-small {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ============================================
   BUTTONS - Premium Edition
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Primary Button - Premium gradient */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  color: white;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 24px -4px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 16px 40px -4px rgba(79, 70, 229, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 6px 16px -4px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Secondary Button */
.btn-secondary {
  background: white;
  color: var(--color-primary-600);
  border: 2px solid var(--color-primary-200);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary::before {
  background: none;
}

.btn-secondary:hover:not(:disabled) {
  background: var(--color-primary-50);
  border-color: var(--color-primary-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.12);
}

/* Success Button */
.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 24px -4px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 16px 40px -4px rgba(16, 185, 129, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Gold/Premium Button */
.btn-gold {
  background: linear-gradient(135deg, var(--color-gold-400) 0%, var(--color-gold-600) 100%);
  color: #451a03;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.1),
    0 8px 24px -4px rgba(245, 158, 11, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-gold:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 16px 40px -4px rgba(245, 158, 11, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-gray-700);
}

.btn-ghost::before {
  background: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--color-gray-100);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  gap: 0.5rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
  gap: 0.75rem;
}

/* ============================================
   CARDS - Premium Edition
   ============================================ */

.card {
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: all var(--transition-base);
  position: relative;
}

.card-elevated {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 2px 4px rgba(0, 0, 0, 0.02),
    0 12px 24px rgba(0, 0, 0, 0.06),
    0 24px 48px rgba(0, 0, 0, 0.04);
}

.card-elevated:hover {
  transform: translateY(-6px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 4px 8px rgba(0, 0, 0, 0.03),
    0 16px 32px rgba(0, 0, 0, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.06);
}

.card-standard {
  box-shadow: var(--shadow-lg);
}

.card-standard:hover {
  box-shadow: var(--shadow-xl);
}

.card-subtle {
  box-shadow: var(--shadow-md);
}

/* Premium Glass Card */
.card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.card-glass:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Premium Dark Glass */
.card-dark-glass {
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Premium Gradient Border Card */
.card-premium {
  background: white;
  border-radius: var(--radius-2xl);
  position: relative;
  isolation: isolate;
}

.card-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-gold-400), var(--color-primary-400));
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-premium:hover::before {
  opacity: 1;
}

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

/* ============================================
   HEADER STYLES
   ============================================ */

.header-main {
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
}

.header-sticky {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: linear-gradient(135deg, rgba(62, 87, 218, 0.95) 0%, rgba(45, 70, 181, 0.95) 100%);
}

.nav-link {
  position: relative;
  padding: 0.75rem 1rem;
  color: white;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background: white;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link-active {
  background: rgba(255, 255, 255, 0.15);
}

.nav-link-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ============================================
   QUIZ INTERFACE - Premium Edition
   ============================================ */

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: linear-gradient(180deg, var(--color-gray-100) 0%, var(--color-gray-200) 100%);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary-400) 0%, var(--color-primary-600) 50%, var(--color-primary-500) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  position: relative;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.35) 0%, transparent 60%);
  border-radius: inherit;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.quiz-option {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: white;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-base);
  font-size: 1rem;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.quiz-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-primary-400), var(--color-primary-600));
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.quiz-option::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.04), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.quiz-option:hover {
  border-color: var(--color-primary-300);
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.03) 0%, white 100%);
  transform: translateX(6px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

.quiz-option:hover::before {
  transform: scaleY(1);
}

.quiz-option:hover::after {
  opacity: 1;
}

.quiz-option-selected {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  border-color: transparent;
  color: white;
  transform: translateX(6px);
  box-shadow:
    0 8px 24px -4px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.quiz-option-selected::before {
  transform: scaleY(1);
  background: rgba(255, 255, 255, 0.2);
}

.quiz-option-selected:hover {
  transform: translateX(8px);
  box-shadow:
    0 12px 32px -4px rgba(79, 70, 229, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ============================================
   BADGE SYSTEM - Premium Edition
   ============================================ */

.badge-container {
  position: relative;
  display: inline-block;
}

.badge-glow {
  animation: glow 2.5s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(79, 70, 229, 0.5)) drop-shadow(0 0 4px rgba(79, 70, 229, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(79, 70, 229, 0.7)) drop-shadow(0 0 8px rgba(79, 70, 229, 0.5));
  }
}

.badge-glow-gold {
  animation: glow-gold 2.5s ease-in-out infinite;
}

@keyframes glow-gold {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(251, 191, 36, 0.5)) drop-shadow(0 0 4px rgba(251, 191, 36, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(251, 191, 36, 0.7)) drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
  }
}

.badge-reveal {
  animation: badge-reveal 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badge-reveal {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
    filter: blur(8px);
  }
  50% {
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

/* Premium floating animation for badges */
.badge-float {
  animation: badge-float 3s ease-in-out infinite;
}

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

/* Sparkle effect for premium achievements */
.badge-sparkle::after {
  content: '';
  position: absolute;
  inset: -10%;
  background: conic-gradient(from 0deg, transparent, rgba(255,255,255,0.8), transparent 30%);
  animation: sparkle-rotate 3s linear infinite;
  opacity: 0.6;
  pointer-events: none;
}

@keyframes sparkle-rotate {
  to { transform: rotate(360deg); }
}

/* ============================================
   LEADERBOARD - Premium Edition
   ============================================ */

.leaderboard-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.leaderboard-row {
  transition: all var(--transition-base);
  background: white;
  border-radius: var(--radius-lg);
}

.leaderboard-row td {
  padding: 1rem;
  background: white;
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.leaderboard-row td:first-child {
  border-left: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.leaderboard-row td:last-child {
  border-right: 1px solid var(--color-gray-100);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.leaderboard-row:hover td {
  background: var(--color-gray-50);
  border-color: var(--color-gray-200);
}

.leaderboard-row:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.leaderboard-row-user td {
  background: linear-gradient(90deg, var(--color-primary-50) 0%, rgba(238, 242, 255, 0.5) 100%);
  border-color: var(--color-primary-200);
}

.leaderboard-row-user td:first-child {
  border-left: 3px solid var(--color-primary-500);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  position: relative;
}

.rank-1 {
  background: linear-gradient(145deg, #ffd700 0%, #ffed4e 50%, #ffc800 100%);
  color: #7a5200;
  box-shadow:
    0 4px 16px rgba(255, 215, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: rank-pulse 2s ease-in-out infinite;
}

.rank-2 {
  background: linear-gradient(145deg, #e8e8e8 0%, #ffffff 50%, #d4d4d4 100%);
  color: #555;
  box-shadow:
    0 4px 16px rgba(192, 192, 192, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.rank-3 {
  background: linear-gradient(145deg, #cd7f32 0%, #e8a87c 50%, #b87333 100%);
  color: #4a2c0f;
  box-shadow:
    0 4px 16px rgba(205, 127, 50, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

@keyframes rank-pulse {
  0%, 100% {
    box-shadow:
      0 4px 16px rgba(255, 215, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
  50% {
    box-shadow:
      0 4px 24px rgba(255, 215, 0, 0.6),
      inset 0 1px 0 rgba(255, 255, 255, 0.5);
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

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

.scale-in {
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Success Confetti Effect */
.confetti {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--color-primary-500);
  position: absolute;
  animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   UTILITIES - Premium Edition
   ============================================ */

.backdrop-blur {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.backdrop-blur-lg {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

/* Premium Text Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-700) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--color-gold-400) 0%, var(--color-gold-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-premium {
  background: linear-gradient(135deg, var(--color-primary-400), var(--color-gold-400), var(--color-primary-400));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 4s ease infinite;
}

/* Glass Effects */
.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
}

/* Premium Background Patterns */
.bg-gradient-premium {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
}

.bg-gradient-radial {
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at bottom, rgba(251, 191, 36, 0.1) 0%, transparent 50%),
              linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.bg-mesh {
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 40% 20%, rgba(99, 102, 241, 0.12) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(251, 191, 36, 0.1) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%);
}

/* Premium Timer Display */
.timer-display {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}

.timer-urgent {
  animation: timer-pulse 0.5s ease-in-out infinite;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Premium Input Styles */
.input-premium {
  background: white;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all var(--transition-base);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.input-premium:hover {
  border-color: var(--color-gray-300);
}

.input-premium:focus {
  outline: none;
  border-color: var(--color-primary-400);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Premium Dividers */
.divider-gradient {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gray-300), transparent);
}

.divider-glow {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary-400), transparent);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* Loading States */
.skeleton {
  background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Focus States */
.focus-ring:focus-visible {
  outline: 2px solid var(--color-primary-400);
  outline-offset: 3px;
  border-radius: var(--radius-md);
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Premium Icon Container */
.icon-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.icon-container-primary {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  color: white;
  box-shadow: var(--shadow-primary);
}

.icon-container-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  box-shadow: var(--shadow-success);
}

.icon-container-gold {
  background: linear-gradient(135deg, var(--color-gold-400), var(--color-gold-600));
  color: #451a03;
  box-shadow: var(--shadow-gold);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
  .text-h1 {
    font-size: 2.25rem;
  }

  .text-h2 {
    font-size: 1.875rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
  }

  .btn-lg {
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
