/* =============================================================================
   POCKET FOOTBALL TACTICIAN - GLOBAL STYLESHEET
   Version: 2.0.0
   Last Updated: December 2025
   ============================================================================= */

/* =============================================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================================= */
:root {
  /* Primary Colors */
  --deep-green: #30360E;
  --deep-green-light: #3d4512;
  --deep-green-dark: #252a0b;
  --olive: #787F56;
  --olive-light: #8a9166;
  --olive-dark: #666d49;
  
  /* Secondary Colors */
  --clay-beige: #E2D4B9;
  --clay-beige-light: #EDE5D4;
  --clay-beige-dark: #d4c4a5;
  
  /* Neutrals */
  --white: #ffffff;
  --gray-50: #fafaf9;
  --gray-100: #f5f5f4;
  --gray-200: #e7e5e4;
  --gray-300: #d6d3d1;
  --gray-400: #a8a29e;
  --gray-500: #78716c;
  --gray-600: #57534e;
  --gray-700: #44403c;
  --gray-800: #292524;
  --gray-900: #1c1917;
  
  /* Semantic Colors */
  --success: #16a34a;
  --success-light: #22c55e;
  --success-bg: rgba(22, 163, 74, 0.1);
  --warning: #d97706;
  --warning-light: #f59e0b;
  --warning-bg: rgba(217, 119, 6, 0.1);
  --danger: #dc2626;
  --danger-light: #ef4444;
  --danger-bg: rgba(220, 38, 38, 0.1);
  --info: #0284c7;
  --info-light: #0ea5e9;
  --info-bg: rgba(2, 132, 199, 0.1);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(48, 54, 14, 0.05);
  --shadow: 0 4px 6px -1px rgba(48, 54, 14, 0.1), 0 2px 4px -2px rgba(48, 54, 14, 0.1);
  --shadow-md: 0 6px 12px -2px rgba(48, 54, 14, 0.1), 0 3px 6px -3px rgba(48, 54, 14, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(48, 54, 14, 0.1), 0 4px 6px -4px rgba(48, 54, 14, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(48, 54, 14, 0.1), 0 8px 10px -6px rgba(48, 54, 14, 0.1);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  
  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-toast: 800;
  
  /* Container */
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* =============================================================================
   CSS RESET & BASE STYLES
   ============================================================================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--gray-900);
  background-color: var(--gray-50);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--deep-green);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  margin-bottom: var(--space-4);
}

a {
  color: var(--olive);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--olive-dark);
}

a:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */
.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;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep-green);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* Focus visible for keyboard users */
:focus:not(:focus-visible) {
  outline: none;
}

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

/* =============================================================================
   LAYOUT UTILITIES
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

.section-lg {
  padding: var(--space-20) 0;
}

/* Flexbox Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid Utilities */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }
.text-lg { font-size: var(--text-lg); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }

/* Color Utilities */
.text-muted { color: var(--gray-500); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-white { color: var(--white); }
.text-olive { color: var(--olive); }
.text-deep-green { color: var(--deep-green); }

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* =============================================================================
   NAVIGATION
   ============================================================================= */
.nav {
  background: var(--deep-green);
  padding: var(--space-3) var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-lg);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.nav-brand {
  display: flex;
  flex-direction: column;
}

.nav-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--white);
  line-height: 1.2;
}

.nav-subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

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

.nav-link.active {
  background: var(--white);
  color: var(--deep-green);
}

.nav-link--cta {
  background: var(--olive);
  color: var(--white);
}

.nav-link--cta:hover {
  background: var(--olive-light);
  color: var(--white);
}

.nav-back {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-back:hover {
  background: rgba(255, 255, 255, 0.25);
  color: var(--white);
}

/* Mobile Navigation */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--white);
  padding: var(--space-2);
  cursor: pointer;
}

.nav-toggle-icon {
  width: 24px;
  height: 24px;
}

/* =============================================================================
   BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Button Variants */
.btn-primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn-primary:hover:not(:disabled) {
  background: var(--olive-light);
  border-color: var(--olive-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--clay-beige);
  color: var(--deep-green);
  border-color: var(--clay-beige);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--clay-beige-dark);
  border-color: var(--clay-beige-dark);
}

.btn-outline {
  background: transparent;
  color: var(--deep-green);
  border-color: var(--deep-green);
}

.btn-outline:hover:not(:disabled) {
  background: var(--deep-green);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border-color: transparent;
}

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

.btn-premium {
  background: var(--deep-green);
  color: var(--clay-beige);
  border-color: var(--deep-green);
}

.btn-premium:hover:not(:disabled) {
  background: var(--deep-green-light);
  border-color: var(--deep-green-light);
}

.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}

/* Button Sizes */
.btn-sm {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
}

.btn-lg {
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-base);
}

.btn-xl {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
}

/* Button with icon only */
.btn-icon {
  padding: var(--space-2);
  aspect-ratio: 1;
}

/* =============================================================================
   CARDS
   ============================================================================= */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
}

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

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  gap: var(--space-4);
  flex-wrap: wrap;
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--deep-green);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.card-body {
  color: var(--gray-700);
}

.card-footer {
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--gray-200);
}

/* Card Variants */
.card-premium {
  background: var(--deep-green);
  color: var(--white);
}

.card-premium .card-title {
  color: var(--white);
}

.card-beige {
  background: var(--clay-beige-light);
}

.card-outline {
  background: transparent;
  border: 2px solid var(--gray-200);
}

.card-highlight {
  border-left: 4px solid var(--olive);
}

/* =============================================================================
   FORMS
   ============================================================================= */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: var(--text-base);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(120, 127, 86, 0.15);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2378716c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
  cursor: pointer;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-top: var(--space-1);
}

.form-error {
  font-size: var(--text-sm);
  color: var(--danger);
  margin-top: var(--space-1);
}

/* =============================================================================
   BADGES
   ============================================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.badge-free {
  background: var(--clay-beige);
  color: var(--deep-green);
}

.badge-ai {
  background: var(--olive);
  color: var(--white);
}

.badge-premium {
  background: var(--deep-green);
  color: var(--clay-beige);
}

.badge-club {
  background: var(--clay-beige);
  color: var(--deep-green);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge-info {
  background: var(--info-bg);
  color: var(--info);
}

.badge-new {
  background: var(--olive);
  color: var(--white);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* =============================================================================
   TABLES
   ============================================================================= */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.table th {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--clay-beige-light);
}

.table tbody tr:hover td {
  background: var(--clay-beige-light);
}

.table-striped tbody tr:nth-child(even) td {
  background: var(--gray-50);
}

/* =============================================================================
   ICONS
   ============================================================================= */
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 32px; height: 32px; }

.icon-box {
  width: 48px;
  height: 48px;
  background: var(--clay-beige);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green);
  flex-shrink: 0;
}

.icon-box-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
}

.icon-box-olive {
  background: var(--olive);
  color: var(--white);
}

.icon-box-premium {
  background: var(--deep-green);
  color: var(--clay-beige);
}

/* =============================================================================
   STATS
   ============================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: var(--space-4);
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  background: var(--clay-beige-light);
  border-radius: var(--radius-md);
}

.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--deep-green);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-2);
}

/* =============================================================================
   PROGRESS BAR
   ============================================================================= */
.progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--olive), var(--olive-light));
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-bar-success { background: var(--success); }
.progress-bar-warning { background: var(--warning); }
.progress-bar-danger { background: var(--danger); }

/* =============================================================================
   ALERTS & MESSAGES
   ============================================================================= */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-warning {
  background: var(--warning-bg);
  color: var(--warning);
  border-left: 4px solid var(--warning);
}

.alert-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-info {
  background: var(--info-bg);
  color: var(--info);
  border-left: 4px solid var(--info);
}

/* =============================================================================
   TOAST NOTIFICATIONS
   ============================================================================= */
.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  background: var(--deep-green);
  color: var(--white);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: var(--z-toast);
  animation: slideInRight 0.3s ease;
}

.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-warning { background: var(--warning); }

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

/* =============================================================================
   MODAL
   ============================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-modal-backdrop);
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: scaleIn 0.2s ease;
}

.modal-header {
  padding: var(--space-6);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
}

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

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

/* =============================================================================
   LOADING STATES
   ============================================================================= */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gray-300);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm { width: 16px; height: 16px; }
.spinner-lg { width: 32px; height: 32px; }

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

.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

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

/* =============================================================================
   HERO SECTION
   ============================================================================= */
.hero {
  background: linear-gradient(135deg, var(--deep-green), var(--deep-green-light));
  color: var(--white);
  padding: var(--space-16) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(120, 127, 86, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--space-4);
}

.hero-subtitle {
  font-size: var(--text-xl);
  opacity: 0.9;
  margin-bottom: var(--space-8);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* =============================================================================
   FEATURE SECTIONS
   ============================================================================= */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow);
  transition: all var(--transition-slow);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--clay-beige);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--deep-green);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.feature-description {
  color: var(--gray-500);
  font-size: var(--text-sm);
}

/* =============================================================================
   PRICING SECTION
   ============================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  position: relative;
}

.pricing-card-featured {
  background: var(--deep-green);
  color: var(--white);
  transform: scale(1.05);
}

.pricing-card-featured .pricing-tier {
  color: var(--clay-beige);
}

.pricing-card-featured .pricing-price {
  color: var(--white);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  right: var(--space-6);
}

.pricing-tier {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.pricing-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--deep-green);
  margin-bottom: var(--space-4);
}

.pricing-price span {
  font-size: var(--text-base);
  font-weight: 500;
  opacity: 0.7;
}

.pricing-features {
  margin-bottom: var(--space-6);
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-size: var(--text-sm);
}

.pricing-feature-icon {
  color: var(--success);
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.footer {
  background: var(--deep-green);
  color: var(--white);
  padding: var(--space-12) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-brand {
  max-width: 300px;
}

.footer-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--white);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.footer-heading {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
  color: var(--clay-beige);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   COMING SOON PLACEHOLDER
   ============================================================================= */
.coming-soon {
  text-align: center;
  padding: var(--space-16) var(--space-4);
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  background: var(--clay-beige);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--deep-green);
}

.coming-soon-title {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.coming-soon-description {
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto var(--space-6);
}

/* =============================================================================
   RESPONSIVE BREAKPOINTS
   ============================================================================= */
/* Tablet */
@media (max-width: 1024px) {
  :root {
    --text-5xl: 2.5rem;
    --text-4xl: 2rem;
  }
  
  .section { padding: var(--space-12) 0; }
  .hero { padding: var(--space-12) 0; }
  
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  
  .pricing-card-featured { transform: none; }
}

/* Mobile Large */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2rem;
    --text-4xl: 1.75rem;
    --text-3xl: 1.5rem;
  }
  
  .nav-inner {
    flex-wrap: wrap;
    gap: var(--space-3);
  }
  
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: var(--space-3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-link span:not(.icon) {
    display: none;
  }
  
  .hero-title { font-size: var(--text-3xl); }
  .hero-subtitle { font-size: var(--text-base); }
  .hero-actions { flex-direction: column; }
  
  .grid-cols-4,
  .grid-cols-3,
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .modal { max-width: 100%; margin: var(--space-4); }
  
  .toast {
    left: var(--space-4);
    right: var(--space-4);
    bottom: var(--space-4);
  }
}

/* Mobile Small */
@media (max-width: 480px) {
  .container { padding: 0 var(--space-3); }
  
  .nav { padding: var(--space-2) var(--space-4); }
  .nav-title { font-size: var(--text-base); }
  .nav-back { 
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
  }
  .nav-link { padding: var(--space-2); }
  
  .card { padding: var(--space-4); border-radius: var(--radius-md); }
  
  .btn { padding: var(--space-2) var(--space-4); }
  .btn-lg { padding: var(--space-3) var(--space-5); }
  
  .section { padding: var(--space-8) 0; }
  
  .hero { padding: var(--space-8) 0; }
  .hero-title { font-size: var(--text-2xl); }
  
  .feature-grid { gap: var(--space-4); }
  .pricing-card { padding: var(--space-5); }
}

/* =============================================================================
   PRINT STYLES
   ============================================================================= */
@media print {
  .nav,
  .footer,
  .btn,
  .toast {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .card {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
