/* =====================================================
   KURTIS SHOP — Design System
   Dark theme with purple/magenta accents
   ===================================================== */

:root {
  /* Colors */
  --bg-primary: #07070d;
  --bg-secondary: #0e0e18;
  --bg-card: #12121f;
  --bg-card-hover: #1a1a2e;
  --bg-glass: rgba(18, 18, 31, 0.7);
  --bg-input: #1a1a2e;

  --purple-400: #c084fc;
  --purple-500: #a855f7;
  --purple-600: #9333ea;
  --purple-700: #7e22ce;
  --magenta-400: #e879f9;
  --magenta-500: #d946ef;

  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #e879f9 100%);
  --gradient-bg: linear-gradient(180deg, #07070d 0%, #0e0e18 100%);
  --gradient-card: linear-gradient(145deg, rgba(168, 85, 247, 0.08) 0%, rgba(232, 121, 249, 0.04) 100%);
  --gradient-glow: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.15) 0%, transparent 70%);

  --text-primary: #f0f0f5;
  --text-secondary: #9d9db5;
  --text-muted: #5c5c7a;
  --text-accent: #c084fc;

  --border-color: rgba(168, 85, 247, 0.15);
  --border-hover: rgba(168, 85, 247, 0.35);

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 2rem;
  --fs-4xl: 2.5rem;
  --fs-5xl: 3.5rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.2);
  --shadow-glow-strong: 0 0 60px rgba(168, 85, 247, 0.3);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--magenta-400);
}

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

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

/* ===== Image Protection ===== */
.protected-image {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  pointer-events: none;
}

.image-shield {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2;
  pointer-events: all;
}

/* ===== Loader ===== */
.loader-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo img {
  animation: pulse-glow 2s ease-in-out infinite;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@keyframes pulse-glow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.3)); }
  50% { filter: drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)); }
}

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 7, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  text-decoration: none;
}

.header-logo img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
}

.header-logo span {
  font-size: var(--fs-xl);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--purple-400);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-external-icon {
  font-size: var(--fs-xs);
  opacity: 0.6;
}

/* Auth Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: rgba(168, 85, 247, 0.08);
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 36px;
  font-size: var(--fs-base);
}

.btn-sm {
  padding: 6px 16px;
  font-size: var(--fs-xs);
}

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-md);
}

/* Mobile Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-sm);
  background: none;
  border: none;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ===== Hero Section ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: var(--gradient-glow);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  width: 100%;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 16px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  color: var(--purple-400);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease both;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: var(--fs-5xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 480px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image img {
  max-width: 450px;
  width: 100%;
  filter: drop-shadow(0 0 40px rgba(168, 85, 247, 0.25));
  animation: float 6s ease-in-out infinite;
}

.hero-image-glow {
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  z-index: -1;
}

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

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

/* ===== Features Section ===== */
.features {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-title h2 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.section-title p {
  color: var(--text-secondary);
  font-size: var(--fs-lg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(168, 85, 247, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

/* ===== Products Section ===== */
.products-section {
  padding: var(--space-3xl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.product-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.2));
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: var(--space-xl);
}

.product-name {
  font-size: var(--fs-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
}

.product-desc {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.product-stock {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.product-stock.in-stock {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.product-stock.out-of-stock {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Plan selector */
.plans-selector {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.plan-option {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-base);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-family);
}

.plan-option:hover {
  border-color: var(--border-hover);
}

.plan-option.selected {
  border-color: var(--purple-500);
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
}

.plan-name {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.plan-price {
  font-size: var(--fs-2xl);
  font-weight: 800;
}

.plan-price .currency {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-secondary);
}

/* ===== Profile Section ===== */
.profile-section {
  padding: calc(72px + var(--space-2xl)) 0 var(--space-3xl);
  min-height: 100vh;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}

.profile-info h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
}

.profile-info p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.profile-actions {
  margin-left: auto;
}

/* Purchases table */
.purchases-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.purchase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-xl);
  align-items: center;
  transition: border-color var(--transition-base);
}

.purchase-card:hover {
  border-color: var(--border-hover);
}

.purchase-product-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.purchase-product-img img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.purchase-details h3 {
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.purchase-details .purchase-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.purchase-key-area {
  text-align: right;
}

.purchase-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.purchase-status.paid {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success);
}

.purchase-status.pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.purchase-status.failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

.key-reveal {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.key-value {
  padding: 6px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-xs);
  color: var(--text-accent);
  cursor: pointer;
  transition: all var(--transition-fast);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.key-value:hover {
  border-color: var(--purple-500);
}

.key-hidden {
  letter-spacing: 3px;
  color: var(--text-muted);
}

.key-copy-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-xs);
  transition: all var(--transition-fast);
}

.key-copy-btn:hover {
  border-color: var(--purple-500);
  color: var(--purple-400);
}

/* ===== Checkout / Login Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
  padding: var(--space-lg);
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.3s ease;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: var(--fs-xl);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.modal p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
}

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

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

/* Telegram login button */
.btn-telegram {
  background: #2AABEE;
  color: white;
  width: 100%;
  padding: 14px;
  font-size: var(--fs-base);
}

.btn-telegram:hover {
  background: #229ED9;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(42, 171, 238, 0.3);
  color: white;
}

/* Polling status */
.auth-polling {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(168, 85, 247, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.auth-polling .spinner-inline {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: var(--space-sm);
}

/* ===== Checkout Page ===== */
.checkout-section {
  padding: calc(72px + var(--space-2xl)) 0 var(--space-3xl);
  min-height: 100vh;
}

.checkout-card {
  max-width: 500px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.checkout-card h2 {
  font-size: var(--fs-2xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--fs-sm);
}

.checkout-item:last-of-type {
  border-bottom: none;
}

.checkout-item .label {
  color: var(--text-secondary);
}

.checkout-item .value {
  font-weight: 600;
}

.checkout-total {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 2px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xl);
  font-weight: 800;
}

.checkout-total .price {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Success state */
.success-card {
  text-align: center;
  padding: var(--space-2xl);
}

.success-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
  animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-key {
  margin: var(--space-xl) 0;
  padding: var(--space-md);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: 'Courier New', monospace;
  font-size: var(--fs-lg);
  color: var(--text-accent);
  word-break: break-all;
  cursor: pointer;
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
  background: var(--bg-secondary);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-left img {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
}

.footer-left span {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: var(--space-xl);
}

.footer-links a {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: var(--space-md);
  opacity: 0.5;
}

.empty-state h3 {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ===== Toast ===== */
.toast-container {
  position: fixed;
  top: 84px;
  right: var(--space-lg);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.3s ease;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--error); }

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

/* ===== Page Transition ===== */
.page-enter {
  animation: fadeInUp 0.4s ease both;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-xl);
  }

  .hero-title {
    font-size: var(--fs-3xl);
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-image img {
    max-width: 300px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    gap: var(--space-md);
    animation: fadeIn 0.2s ease;
  }

  .mobile-toggle {
    display: flex;
  }

  .purchase-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .purchase-key-area {
    text-align: center;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-actions {
    margin-left: 0;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
}
