/* ===========================
   ЛЯ VPN — СТИЛИ
   Две темы, анимации, адаптив
   =========================== */

/* ==== CSS VARIABLES — Terra Design System ==== */
/* North Star: "Rooted Warmth" — earthy greens, warm neutrals, soft shapes. */
:root {
  /* Тёмная тема — тёплая, не стерильная: глубокий зелёно-коричневый, а не чистый чёрный */
  --bg: #14130F;
  --surface: #1E1C17;
  --card: #26241D;
  --text: #F3EFE6;
  --text-secondary: #B3AC9C;
  --border: #38342A;
  --accent: #6FA37D;
  --accent-hover: #84B690;
  --accent-soft: rgba(111, 163, 125, 0.14);
  --amber: #c9a86a;
  --success: #6FA37D;
  --warning: #c9a86a;
  --error: #c97d6a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 14px 48px rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --font-heading: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="light"] {
  /* Светлая тема — тёплый кремовый Terra */
  --bg: #faf6f0;
  --surface: #f4eee3;
  --card: #fffdf8;
  --text: #2e3230;
  --text-secondary: #6b6457;
  --border: #e6ddcf;
  --accent: #4a7c59;
  --accent-hover: #3c674a;
  --accent-soft: rgba(74, 124, 89, 0.10);
  --amber: #705c30;
  --success: #4a7c59;
  --warning: #705c30;
  --error: #b4543f;
  --shadow: 0 4px 20px rgba(46, 50, 48, 0.06);
  --shadow-lg: 0 12px 40px rgba(46, 50, 48, 0.10);
}

/* ==== RESET ==== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
}

h1, h2, h3, h4, .logo span {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--transition);
}
a:hover { opacity: 0.8; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  font-size: inherit;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ==== LAYOUT ==== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==== HEADER ==== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

[data-theme="light"] .header {
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
  opacity: 1;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text-secondary);
  font-size: 18px;
}
.theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Auth Button */
.btn-auth {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  transition: all var(--transition);
}
.btn-auth:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* Burger */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
}

.burger-icon {
  width: 18px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.burger-icon span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  padding: 24px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition);
}
.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu .nav-links {
  flex-direction: column;
  gap: 0;
}
.mobile-menu .nav-links a {
  font-size: 18px;
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

/* ==== HERO ==== */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.5;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==== BUTTONS ==== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--card);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 16px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }

.btn-danger { background: var(--error); color: white; }
.btn-danger:hover { opacity: 0.9; }

/* Ripple */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ==== SECTIONS ==== */
.section { padding: 80px 0; }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
}

/* ==== FEATURES ==== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ==== PRODUCTS ==== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.product-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}

.product-image {
  width: 100%;
  height: 200px;
  background: var(--surface);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  transition: all var(--transition);
}
.product-card:hover .product-image {
  background: var(--accent-soft);
}
.product-image svg {
  width: 120px;
  height: 120px;
  opacity: 0.8;
  transition: transform 0.7s ease;
}
.product-card:hover .product-image svg {
  transform: scale(1.05);
}

.product-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.product-card .description {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
  flex: 1;
}

.product-features {
  list-style: none;
  margin-bottom: 24px;
}
.product-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.product-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.product-price .amount {
  font-size: 32px;
  font-weight: 800;
}
.product-price .period {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==== SUBSCRIPTIONS ==== */
.subscriptions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}

.subscription-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  transition: all var(--transition);
}
.subscription-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.subscription-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.subscription-card .description { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }
.subscription-card .price { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.subscription-card .period { font-size: 13px; color: var(--text-secondary); margin-bottom: 16px; }

/* ==== STATS ==== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 32px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.stat-value { font-size: 36px; font-weight: 800; color: var(--accent); margin-bottom: 4px; }
.stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }

/* ==== HOW IT WORKS ==== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
}

.step-card { text-align: center; position: relative; }

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.step-card:hover .step-number {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}
.step-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.step-card p { font-size: 13px; color: var(--text-secondary); }

/* ==== FAQ ==== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--accent); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--accent-soft); }

.faq-chevron {
  transition: transform var(--transition);
  color: var(--text-secondary);
  font-size: 20px;
  flex-shrink: 0;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* ==== FOOTER ==== */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy { font-size: 13px; color: var(--text-secondary); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* ==== CART FAB ==== */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  z-index: 900;
  transition: all var(--transition);
}
.cart-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--error);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all var(--transition);
}
.cart-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Cart Panel */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform var(--transition);
  display: flex;
  flex-direction: column;
}
.cart-panel.open { transform: translateX(0); }

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-header h2 { font-size: 18px; font-weight: 700; }

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 20px;
  transition: all var(--transition);
}
.cart-close:hover { background: var(--surface); color: var(--text); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--text-secondary);
}
.cart-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.5; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price { font-size: 13px; color: var(--text-secondary); }

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-item-controls button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}
.cart-item-controls button:hover { border-color: var(--accent); color: var(--accent); }
.cart-item-qty { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label { font-size: 14px; color: var(--text-secondary); }
.cart-total-amount { font-size: 20px; font-weight: 800; }

/* ==== MODALS ==== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-body { padding: 24px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.delivery-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  display: none;
}
.delivery-info.show { display: block; }
.delivery-info .price { color: var(--text); font-weight: 700; }

/* Auth */
.auth-step { display: none; }
.auth-step.active { display: block; }

.code-input {
  letter-spacing: 12px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
}

/* ==== PAGES (SPA) ==== */
.page {
  display: none;
  padding-top: 64px;
  min-height: 100vh;
}
.page.active { display: block; }

/* ==== ACCOUNT PAGE ==== */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 32px 0;
  min-height: calc(100vh - 64px);
}

.account-sidebar {
  position: sticky;
  top: 96px;
  height: fit-content;
}

.account-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.account-nav li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.account-nav li a:hover { background: var(--surface); color: var(--text); opacity: 1; }
.account-nav li a.active { background: var(--accent-soft); color: var(--accent); opacity: 1; }

.account-content { min-width: 0; }
.account-section { display: none; }
.account-section.active { display: block; }

.account-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.account-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }

/* Orders */
.order-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}
.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.order-id { font-size: 14px; font-weight: 700; }

.order-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.order-status.waiting_payment { background: rgba(245, 158, 11, 0.1); color: var(--warning); }
.order-status.paid { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.order-status.shipping { background: rgba(59, 130, 246, 0.1); color: var(--accent); }
.order-status.completed { background: rgba(34, 197, 94, 0.1); color: var(--success); }
.order-status.cancelled { background: rgba(239, 68, 68, 0.1); color: var(--error); }

.order-details { font-size: 13px; color: var(--text-secondary); }
.order-details span { display: block; margin-bottom: 2px; }

/* ==== ADMIN ==== */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.admin-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.admin-stat .value { font-size: 28px; font-weight: 800; color: var(--accent); }
.admin-stat .label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.admin-table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-table tr:hover td { background: var(--surface); }

/* ==== ANIMATIONS ==== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.page-enter { animation: slideUp 0.4s ease-out; }

/* ==== TOAST ==== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--error); }
.toast.info { border-left: 3px solid var(--accent); }

/* ==== LOADING ==== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 1199px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .admin-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 200px 1fr; gap: 24px; }
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .mobile-menu { display: block; }

  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 16px; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .features-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .subscriptions-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }

  .account-layout { grid-template-columns: 1fr; gap: 16px; }
  .account-sidebar { position: static; }
  .account-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 8px;
  }
  .account-nav li a { white-space: nowrap; padding: 8px 12px; font-size: 13px; }

  /* Cart — bottom sheet */
  .cart-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    max-height: 85vh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }
  .cart-panel.open { transform: translateY(0); }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }

  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
  }

  .table-wrapper { overflow-x: auto; }
}

/* ==== SCROLLBAR ==== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ==== UTILITIES ==== */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
