/* SoftKeyShop - Premium Digital Products Store - Light Modern Theme */
:root {
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-primary: #0891b2;
  --color-primary-hover: #06b6d4;
  --color-accent: #f59e0b;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), #0e7490);
  color: #fff;
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.45);
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}
.btn-outline:hover { background: rgba(8, 145, 178, 0.08); }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-add-cart {
  background: var(--color-surface-hover);
  color: var(--color-primary);
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  margin-top: 0.5rem;
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition);
}
.btn-add-cart:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.02);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}
.logo { text-decoration: none; color: inherit; display: flex; align-items: center; }
.logo-img { height: 40px; width: auto; display: block; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.main-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a:hover { color: var(--color-primary); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.4rem 0.8rem; background: var(--color-surface); border-radius: var(--radius-sm); }
.cart-icon { flex-shrink: 0; }
.cart-count { background: var(--color-primary); color: #fff; font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 999px; min-width: 1.2em; text-align: center; }
.nav-toggle { display: none; background: none; border: none; color: inherit; cursor: pointer; font-size: 1.5rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 30%, #a5f3fc 60%, #e0f2fe 100%);
  border-bottom: 1px solid rgba(8, 145, 178, 0.2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(8, 145, 178, 0.15), transparent),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(245, 158, 11, 0.08), transparent);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 3rem 1.5rem;
  max-width: 680px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.hero-search {
  display: flex;
  max-width: 480px;
  margin: 0 auto 1.5rem;
  background: var(--color-surface);
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.hero-search:focus-within {
  box-shadow: 0 8px 32px rgba(8, 145, 178, 0.15), 0 0 0 2px var(--color-primary);
}
.hero-search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--color-text);
}
.hero-search-input::placeholder { color: var(--color-text-muted); }
.hero-search-input:focus { outline: none; }
.hero-search-btn {
  padding: 1rem 1.25rem;
  background: var(--color-primary);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.hero-search-btn:hover { background: var(--color-primary-hover); }
.hero-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 50px;
  font-size: 0.9rem;
  color: #16a34a;
  font-weight: 500;
}
.hero-stars {
  color: #f59e0b;
  font-size: 1rem;
  letter-spacing: 0.1em;
}
.hero-satisfaction { color: #15803d; }
.animate-fade-in { animation: fadeIn 0.6s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
@keyframes fadeIn { to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { transform: translateY(16px); }

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(8, 145, 178, 0.4);
}
.product-link { text-decoration: none; color: inherit; flex: 1; display: flex; flex-direction: column; }
.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  width: 100%;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
  transition: transform var(--transition);
}
.product-card:hover .product-image img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
}
.badge-sale { background: var(--color-accent); color: #fff; }
.badge-options { background: var(--color-primary); color: #fff; }
.btn-select-options { display: block; text-align: center; text-decoration: none; }
.product-info { padding: 1rem; flex: 1; color: var(--color-text); }
.product-category { font-size: 0.75rem; color: var(--color-primary); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.product-name { font-size: 1.1rem; font-weight: 600; margin: 0.25rem 0 0.5rem; line-height: 1.3; min-height: 2.6em; color: #0f172a; }
.product-link .product-name:hover { color: var(--color-primary); }
.product-price { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.price-old { text-decoration: line-through; color: #94a3b8; font-size: 0.9rem; }
.price-current { font-size: 1.25rem; font-weight: 700; color: #0e7490; }
.product-actions { padding: 0 1rem 1rem; }

/* Section */
.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}
.featured-products { padding: 4rem 0; }
.features { padding: 4rem 0; background: var(--color-surface); border-top: 1px solid var(--color-border); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.feature-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.feature-item:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.feature-item h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.feature-item p { font-size: 0.9rem; color: var(--color-text-muted); }

/* Page Header */
.page-header {
  padding: 2rem 0;
  text-align: center;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.page-header h1 { font-size: 2rem; margin-bottom: 0.25rem; }
.page-header p { color: var(--color-text-muted); }

/* Legal/Page Content */
.page-content { padding: 2rem 0 4rem; }
.container-narrow { max-width: 720px; margin: 0 auto; }
.legal-content h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; color: var(--color-text); }
.legal-content p { margin-bottom: 1rem; line-height: 1.7; color: var(--color-text-muted); }
.legal-content p:first-child { margin-top: 0; }
.description-content p { margin-bottom: 1rem; line-height: 1.7; }
.description-content p:last-child { margin-bottom: 0; }

/* Products Page */
.products-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; padding: 2rem 0; }
.products-sidebar {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.search-form { margin-bottom: 1.5rem; }
.search-form .form-input { margin-bottom: 0.5rem; width: 100%; }
.filter-section h3 { font-size: 0.9rem; margin-bottom: 0.75rem; color: var(--color-text-muted); }
.category-list { list-style: none; }
.category-list a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.category-list a:hover, .category-list a.active { color: var(--color-primary); }
.no-results { text-align: center; padding: 3rem; color: var(--color-text-muted); }
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}
.page-link {
  padding: 0.5rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}
.page-link:hover, .page-link.active { background: var(--color-primary); color: var(--color-bg); }

/* Product Detail */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem 0;
}
.product-image-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  aspect-ratio: 1/1;
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 500px;
}
.product-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  aspect-ratio: 1/1;
}
.product-summary .product-category { font-size: 0.8rem; color: var(--color-primary); text-transform: uppercase; font-weight: 600; }
.product-title { font-size: 2rem; margin: 0.5rem 0 1rem; color: #0f172a; font-weight: 700; }
.product-price-block { margin-bottom: 1rem; }
.product-excerpt { color: #475569; margin-bottom: 1rem; line-height: 1.6; }
.stock-info, .stock-out { font-size: 0.9rem; margin-bottom: 1rem; }
.stock-out { color: var(--color-accent); }
.add-to-cart-form .variant-row { margin-bottom: 1rem; }
.add-to-cart-form .variant-row select { max-width: 100%; }
.product-description { padding: 2rem 0; border-top: 1px solid var(--color-border); }
.product-description h2 { margin-bottom: 1rem; font-size: 1.25rem; }
.description-content { color: #475569; line-height: 1.7; }

/* Cart */
.cart-page { padding: 2rem 0; }
.alert { padding: 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }
.alert-success { background: rgba(34, 197, 94, 0.2); border: 1px solid rgba(34, 197, 94, 0.5); }
.alert-error { background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(239, 68, 68, 0.5); }
.cf-turnstile { margin: 1rem 0; }
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.cart-product { display: flex; align-items: center; gap: 1rem; color: inherit; text-decoration: none; }
.cart-product img {
  border-radius: var(--radius-sm);
  width: 60px;
  height: 60px;
  object-fit: cover;
  aspect-ratio: 1/1;
  flex-shrink: 0;
}
.cart-qty-form .qty-input { width: 60px; }
.btn-remove { background: none; border: none; color: var(--color-text-muted); font-size: 1.5rem; cursor: pointer; }
.btn-remove:hover { color: #ef4444; }
.cart-totals {
  max-width: 300px;
  margin-left: auto;
  padding: 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
}
.cart-total-row { display: flex; justify-content: space-between; margin-bottom: 1rem; font-size: 1.1rem; }
.cart-discount { color: var(--color-primary); }
.cart-coupon-form { margin-bottom: 1rem; }
.coupon-form { display: flex; gap: 0.5rem; }
.coupon-form .form-input { flex: 1; margin-bottom: 0; }
.cart-coupon-remove { margin-bottom: 0.5rem; }
.cart-actions { display: flex; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.cart-actions .btn { flex: 1; min-width: 140px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 350px; gap: 2rem; padding: 2rem 0; }
.checkout-form-wrap { max-width: 450px; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; }
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.checkout-summary {
  background: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  height: fit-content;
  position: sticky;
  top: 100px;
}
.checkout-summary h3 { margin-bottom: 1rem; }
.order-items { list-style: none; margin-bottom: 1rem; }
.order-items li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.order-summary-row { display: flex; justify-content: space-between; padding: 0.35rem 0; font-size: 0.9rem; }
.order-discount { color: var(--color-primary); }
.order-total { display: flex; justify-content: space-between; font-size: 1.25rem; padding-top: 1rem; }
.checkout-success {
  text-align: center;
  padding: 4rem 2rem;
}
.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--color-primary);
  color: #fff;
  font-size: 2.5rem;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.5s ease;
}
@keyframes scaleIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.checkout-success h2 { margin-bottom: 0.5rem; }
.checkout-success p { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.checkout-success .btn { margin-top: 1.5rem; }

/* Thank You */
.thank-you-page { padding: 2rem 0 4rem; }
.thank-you-success { text-align: center; padding: 2rem 0 3rem; }
.thank-you-success .success-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: var(--color-primary); color: #fff; font-size: 2.5rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; animation: scaleIn 0.5s ease; }
.thank-you-success h2 { margin-bottom: 0.5rem; }
.thank-you-success p { color: var(--color-text-muted); margin-bottom: 0; }
.thank-you-products { max-width: 600px; margin: 0 auto 2rem; }
.thank-you-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.thank-you-product-name { font-size: 1.1rem; margin-bottom: 1rem; color: var(--color-text); }
.thank-you-label { font-size: 0.85rem; color: var(--color-text-muted); display: block; margin-bottom: 0.5rem; }
.thank-you-license-card { background: #f8fafc; border: 2px solid var(--color-primary); border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 1rem; box-shadow: 0 2px 8px rgba(8,145,178,0.12); }
.thank-you-license-key { font-family: var(--font-mono); font-size: 1.1rem; font-weight: bold; letter-spacing: 2px; color: #0f172a; padding: 0.5rem 0; }
.thank-you-license-key:not(:last-child) { border-bottom: 1px dashed var(--color-border); }
.thank-you-download-block { margin-top: 0.5rem; }
.thank-you-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Payment Failed */
.payment-failed-page { padding: 3rem 0; }
.payment-failed-card { max-width: 480px; margin: 0 auto; text-align: center; background: var(--color-surface); padding: 2.5rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow); }
.payment-failed-icon { width: 70px; height: 70px; margin: 0 auto 1.5rem; background: rgba(239, 68, 68, 0.15); color: #ef4444; font-size: 2rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.payment-failed-card h2 { margin-bottom: 1rem; }
.payment-failed-card ul { text-align: left; margin: 1rem 0; padding-left: 1.5rem; }
.payment-failed-card p { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.payment-failed-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* Contact */
.contact-page { padding: 2rem 0 4rem; }
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; max-width: 900px; margin: 0 auto; }
.contact-form-wrap { min-width: 0; }
.contact-form .form-group { margin-bottom: 1rem; }
.contact-channels { background: var(--color-surface); padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--color-border); height: fit-content; }
.contact-channels h3 { margin-bottom: 0.5rem; }
.contact-channels p { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.contact-channel-btn { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 500; margin-bottom: 0.75rem; transition: transform 0.2s, box-shadow 0.2s; }
.contact-channel-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.contact-whatsapp { background: #25D366; color: #fff; }
.contact-telegram { background: #0088cc; color: #fff; }

/* Auth */
.auth-page { padding: 4rem 0; min-height: 60vh; display: flex; align-items: center; }
.auth-box {
  max-width: 400px;
  margin: 0 auto;
  background: var(--color-surface);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}
.auth-box h1 { margin-bottom: 1.5rem; text-align: center; }
.auth-link { text-align: center; margin-top: 1rem; }
.auth-link a { color: var(--color-primary); }

/* Account */
.account-grid { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; padding: 2rem 0; }
.account-sidebar { background: var(--color-surface); padding: 1.5rem; border-radius: var(--radius); height: fit-content; border: 1px solid var(--color-border); }
.account-sidebar .account-info p { margin-bottom: 0.35rem; font-size: 0.95rem; }
.account-address { white-space: pre-line; font-size: 0.9rem; color: var(--color-text-muted); }
.account-sidebar-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.account-main h2 { margin-bottom: 1rem; }
.account-orders { display: flex; flex-direction: column; gap: 1rem; }
.account-order-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; }
.account-order-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 1rem 1.25rem; gap: 1rem; }
.account-order-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.account-order-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.account-order-meta a { color: var(--color-primary); text-decoration: none; }
.account-order-meta a:hover { text-decoration: underline; }
.account-order-toggle { background: none; border: 1px solid var(--color-primary); color: var(--color-primary); padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.85rem; cursor: pointer; font-family: inherit; }
.account-order-toggle:hover { background: rgba(8, 145, 178, 0.08); }
.account-order-details { padding: 1rem 1.25rem; border-top: 1px solid var(--color-border); background: var(--color-bg); }
.account-order-item { padding: 1rem; background: var(--color-surface); border-radius: var(--radius-sm); margin-bottom: 0.75rem; border: 1px solid var(--color-border); }
.account-order-item:last-child { margin-bottom: 0; }
.account-order-item-name { font-weight: 500; margin-bottom: 0.5rem; }
.account-order-label { font-size: 0.8rem; color: var(--color-text-muted); }
.account-order-license-card { background: #f8fafc; border: 2px solid var(--color-primary); border-radius: var(--radius-sm); padding: 0.75rem 1rem; margin: 0.5rem 0; }
.account-order-license-key { font-family: var(--font-mono); font-size: 0.95rem; font-weight: bold; letter-spacing: 1px; padding: 0.35rem 0; }
.account-order-license-key:not(:last-child) { border-bottom: 1px dashed var(--color-border); }
.account-order-download-block { margin-top: 0.5rem; }
.account-edit-card, .change-password-page .account-edit-card { max-width: 480px; background: var(--color-surface); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.account-edit-page .form-hint, .change-password-page .form-hint { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.25rem; }
.link-back { color: var(--color-primary); text-decoration: none; font-size: 0.9rem; }
.link-back:hover { text-decoration: underline; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.status { padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; }
.status-completed, .status-paid, .status-approved { background: rgba(34, 197, 94, 0.2); }
.status-pending { background: rgba(245, 158, 11, 0.2); }
.status-rejected { background: rgba(239, 68, 68, 0.2); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
}
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.footer-brand { max-width: 400px; }
.footer-brand p { margin: 0.5rem 0 0; font-size: 0.95rem; line-height: 1.5; }
.footer-links { display: flex; gap: 1.5rem; flex-shrink: 0; }
.footer-links a { color: var(--color-text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--color-primary); }
.footer-copy { color: var(--color-text-muted); font-size: 0.9rem; }
.floating-chat { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: 0.75rem; }
.chat-btn { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; box-shadow: 0 4px 20px rgba(0,0,0,0.2); transition: transform 0.2s, box-shadow 0.2s; }
.chat-btn:hover { transform: scale(1.08); box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.chat-whatsapp { background: #25D366; }
.chat-telegram { background: #0088cc; }

/* Affiliate */
.affiliate-page { padding: 2rem 0 4rem; }
.affiliate-dashboard { max-width: 900px; }
.affiliate-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.affiliate-stat-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; text-align: center; }
.affiliate-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--color-primary); }
.affiliate-stat-label { font-size: 0.85rem; color: var(--color-text-muted); }
.affiliate-stat-earnings .affiliate-stat-value { color: #059669; }
.affiliate-link-section, .affiliate-traffic-section, .affiliate-commissions-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.affiliate-link-section h2, .affiliate-traffic-section h2, .affiliate-commissions-section h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.affiliate-commission-note { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.affiliate-link-box { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.affiliate-link-box input { flex: 1; }
.affiliate-table { width: 100%; border-collapse: collapse; }
.affiliate-table th, .affiliate-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.affiliate-table th { font-weight: 600; color: var(--color-text-muted); font-size: 0.85rem; }
.affiliate-scope-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.affiliate-scope-section h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.scope-option { display: block; margin-bottom: 0.75rem; cursor: pointer; }
.scope-option input { margin-right: 0.5rem; }
.affiliate-link-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; font-size: 0.9rem; }
.affiliate-product-link { margin-bottom: 1rem; }
.affiliate-product-name { display: block; font-size: 0.9rem; color: var(--color-text-muted); margin-bottom: 0.25rem; }
.affiliate-payout-section { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.affiliate-payout-section h2 { margin: 0 0 1rem; font-size: 1.1rem; }
.affiliate-payout-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.affiliate-apply { max-width: 500px; }
.affiliate-apply-info { margin-bottom: 1.5rem; }
.affiliate-apply-info ul { margin: 1rem 0; padding-left: 1.5rem; }
.affiliate-apply-info li { margin-bottom: 0.5rem; }
.affiliate-pending, .affiliate-rejected { max-width: 500px; }

/* Form */
.form-actions { margin-top: 1.5rem; }
.mt-4 { margin-top: 1.5rem; }
.text-center { text-align: center; }
.inline-form { display: inline; }

/* Responsive */
@media (max-width: 900px) {
  .products-layout { grid-template-columns: 1fr; }
  .products-sidebar { position: static; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  .account-grid { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-brand { max-width: none; }
  .contact-layout { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-surface); padding: 1rem; }
}
[data-aos] { opacity: 0; transform: translateY(20px); }
[data-aos].aos-animate { opacity: 1; transform: translateY(0); }
