@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #6b21a8;
  --primary-light: #9333ea;
  --primary-dark: #581c87;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --bg: #faf5ff;
  --bg-card: #ffffff;
  --text: #1e1b4b;
  --text-muted: #6b7280;
  --border: #e9d5ff;
  --success: #059669;
  --danger: #dc2626;
  --shadow: 0 4px 24px rgba(107, 33, 168, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Header */
.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.site-header.header-scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: background 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: var(--primary-dark) !important;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.cart-link:hover {
  background: var(--accent-light) !important;
}

.cart-badge {
  position: absolute;
  top: -6px;
  left: -6px;
  background: var(--danger);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 4.5rem 0 4rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(251, 191, 36, 0.2), transparent 55%),
    linear-gradient(135deg, #4c1d95 0%, var(--primary) 40%, var(--primary-light) 75%, #a855f7 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.hero-highlight {
  background: linear-gradient(90deg, #fde68a, var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  list-style: none;
  font-size: 0.85rem;
  opacity: 0.95;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-trust-icon {
  font-size: 1rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-secondary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-danger:hover {
  background: #fecaca;
}

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
}

/* Section */
.section {
  padding: 3.5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-muted);
}

/* Product search */
.product-search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.product-search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  pointer-events: none;
  opacity: 0.6;
}

.product-search-input {
  width: 100%;
  padding: 0.9rem 3rem 0.9rem 2.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-search-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.product-search-input::placeholder {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.product-search-clear {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.product-search-clear:hover {
  background: var(--border);
  color: var(--text);
}

.search-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.product-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.product-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--primary);
  background: #f3e8ff;
  color: var(--primary-dark);
}

.product-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.toolbar-select {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 150px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.toolbar-select select {
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.toolbar-select select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.product-results-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(107, 33, 168, 0.2);
  border-color: var(--primary-light);
}

.product-card-entrance {
  opacity: 0;
  animation: cardEntrance 0.45s ease forwards;
}

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

.product-card-clickable {
  cursor: pointer;
}

.product-card-clickable:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 2px;
}

.product-select-btn {
  pointer-events: none;
}

.product-image {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  padding: 1.5rem;
}

.product-image .product-logo {
  max-width: 112px;
  max-height: 88px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.8rem;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.product-logo-sm {
  max-width: 54px;
  max-height: 54px;
  padding: 0.35rem;
  border-radius: 12px;
}

.product-logo-fallback {
  font-size: 3rem;
  line-height: 1;
}

.cart-item-icon.product-image {
  padding: 0.5rem;
}

.cart-item-icon .product-logo-fallback {
  font-size: 1.75rem;
}

.product-modal-visual.product-image {
  height: auto;
  min-height: 72px;
  padding: 0.75rem;
}

.product-image.steam { background: linear-gradient(135deg, #1b2838, #2a475e); }
.product-image.spotify { background: linear-gradient(135deg, #1db954, #191414); }
.product-image.netflix { background: linear-gradient(135deg, #e50914, #831010); }
.product-image.google { background: linear-gradient(135deg, #4285f4, #34a853); }
.product-image.apple { background: linear-gradient(135deg, #555, #000); }
.product-image.amazon { background: linear-gradient(135deg, #ff9900, #232f3e); }
.product-image.playstation { background: linear-gradient(135deg, #003791, #0070cc); }
.product-image.xbox { background: linear-gradient(135deg, #107c10, #0e4d0e); }

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

.product-stock-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

.favorite-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #9ca3af;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.favorite-btn:hover,
.favorite-btn.active {
  background: #fff1f2;
  color: #e11d48;
  transform: scale(1.05);
}

.favorite-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.product-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
}

.product-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-price-unavailable {
  color: #dc2626;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

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

.feature-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #f3e8ff, #ede9fe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Cart page */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}

.cart-items-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
}

.cart-tools-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cart-tools-copy strong {
  font-size: 1rem;
  color: var(--primary-dark);
}

.cart-tools-copy span {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.cart-item-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-info h3 {
  font-size: 1rem;
  font-weight: 600;
}

.cart-item-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: var(--border);
}

.qty-value {
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}

.cart-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.cart-summary h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.redeem-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1.25rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.redeem-option:hover {
  border-color: var(--primary-light);
}

.redeem-option:has(input:checked) {
  border-color: var(--primary);
  background: #f3e8ff;
}

.redeem-option input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.redeem-option-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.redeem-option-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

.redeem-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.promo-box {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.promo-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.promo-input-row {
  display: flex;
  gap: 0.65rem;
}

.promo-input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg-card);
  color: var(--text);
}

.promo-input:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.12);
}

.promo-apply-btn {
  margin-top: 0;
  width: auto;
  white-space: nowrap;
}

.cart-summary .promo-apply-btn {
  margin-top: 0;
  width: auto;
}

.promo-meta {
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.promo-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

.promo-remove-btn {
  border: none;
  background: transparent;
  color: var(--primary);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.promo-remove-btn:hover {
  color: var(--primary-dark);
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.5rem;
  background: #ede9fe;
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.policy-agree-wrap {
  margin: 1rem 0;
  padding: 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.policy-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.55;
}

.policy-agree input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.policy-agree-text {
  color: var(--text-muted);
}

.policy-link {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.policy-link:hover {
  color: var(--primary-dark);
}

#checkout-btn:disabled,
.btn.btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.modal.policies-modal {
  max-width: 560px;
  max-height: 90vh;
  text-align: right;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.policies-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.policies-modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.policies-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.policies-modal-body section {
  margin-bottom: 1.25rem;
}

.policies-modal-body section:last-child {
  margin-bottom: 0;
}

.policies-modal-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.policies-modal-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.policies-modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.policies-modal-footer .btn {
  width: 100%;
  justify-content: center;
}

.checkout-form-modal {
  max-width: 540px;
  text-align: right;
  padding: 0;
  overflow: hidden;
}

.checkout-form {
  padding-top: 0.25rem;
}

.checkout-form-error {
  min-height: 1.2rem;
  margin: 0 0 0.65rem;
  color: #dc2626;
  font-size: 0.9rem;
}

.checkout-order-number {
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 800;
  font-size: 1rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.cart-summary .btn {
  width: 100%;
  justify-content: center;
  margin-top: 1.25rem;
}

.empty-cart {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 2px dashed var(--border);
}

.empty-cart-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.empty-cart h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.empty-cart p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card p,
.contact-card a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form-wrap h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

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

.form-success {
  display: none;
  background: #d1fae5;
  color: var(--success);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* About page */
.about-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-content p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 700;
}

.page-header p {
  opacity: 0.85;
  margin-top: 0.5rem;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-dark);
  color: #fff;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 200;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  white-space: normal;
  width: min(calc(100% - 2rem), 420px);
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.8;
}

.footer-col h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.3s ease;
}

.modal.product-picker-modal {
  max-width: 440px;
  width: 100%;
  max-height: min(90vh, 580px);
  text-align: right;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.product-modal-top h2 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg);
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-muted);
  font-family: inherit;
  line-height: 1;
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--text);
}

#product-modal-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg);
  flex-shrink: 0;
}

.product-modal-visual {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.product-modal-info h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.product-modal-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.product-modal-body {
  padding: 0.65rem 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.product-modal-step-label {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
}

.product-modal-step-label:not(:first-child) {
  margin-top: 0.65rem;
}

.region-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.region-option {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  transition: border-color 0.15s, background 0.15s;
}

.region-option:hover {
  border-color: var(--primary-light);
}

.region-option.selected {
  border-color: var(--primary);
  background: #f3e8ff;
  font-weight: 600;
}

.region-flag {
  font-size: 1.1rem;
  line-height: 1;
}

.region-label {
  color: var(--text);
}

.product-modal-body > p {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.value-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 11rem;
  overflow-y: auto;
}

.value-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  cursor: pointer;
  font-family: inherit;
  text-align: right;
  transition: border-color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.value-option-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.value-option-hint {
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--text-muted);
}

.value-option:hover {
  border-color: var(--primary-light);
  background: var(--bg);
}

.value-option.disabled {
  cursor: not-allowed;
  opacity: 0.72;
  background: #f8fafc;
}

.value-option.disabled:hover {
  border-color: var(--border);
  background: #f8fafc;
}

.value-option.selected {
  border-color: var(--primary);
  background: #f3e8ff;
}

.value-option-label {
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text);
}

.value-option-price {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

.value-option-stock {
  color: var(--text-muted);
}

.product-modal-footer {
  padding: 0.65rem 1rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  flex-shrink: 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.06);
}

.product-modal-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.product-modal-total #product-modal-price {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 700;
}

.currency-note {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  text-align: center;
}

.product-modal-footer .btn {
  width: 100%;
  justify-content: center;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
}

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

/* Auth */
.auth-nav-wrap {
  list-style: none;
}

.auth-nav-guest,
.auth-nav-user {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.auth-user-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 0.25rem;
}

.btn-auth {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-auth-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-auth-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-auth-fill {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-auth-fill:hover {
  background: var(--accent-light);
}

.modal.auth-modal {
  max-width: 440px;
  text-align: right;
  padding: 0;
  overflow: hidden;
}

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

.auth-modal-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-modal-hint {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.875rem;
  line-height: 1.6;
}

.auth-tabs {
  display: flex;
  margin: 1rem 1.25rem 0;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--primary);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.auth-form {
  padding: 1.25rem;
}

.auth-form-error {
  display: none;
  background: #fee2e2;
  color: var(--danger);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .auth-nav-guest,
  .auth-nav-user {
    flex-direction: column;
    width: 100%;
  }

  .btn-auth {
    width: 100%;
    text-align: center;
  }

  .auth-user-label {
    text-align: center;
    width: 100%;
  }
}

.modal-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.modal h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.modal p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .cart-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-toolbar {
    align-items: stretch;
  }

  .product-toolbar-controls {
    width: 100%;
  }

  .toolbar-select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: block;
  }

  .header-inner {
    padding: 0 1rem;
    height: 64px;
  }

  .logo {
    gap: 0.45rem;
    font-size: 1.05rem;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    right: 0.75rem;
    left: 0.75rem;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 0.85rem;
    gap: 0.35rem;
    border-radius: 0 0 18px 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
  }

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

  .cart-tools,
  .promo-input-row,
  .promo-meta,
  .product-toolbar-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .product-filter-chips {
    width: 100%;
  }

  .filter-chip {
    flex: 1 1 calc(50% - 0.6rem);
    text-align: center;
  }

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

  .trust-bar-inner {
    grid-template-columns: 1fr 1fr;
  }

  .cta-banner-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero {
    padding: 3.2rem 0 2.7rem;
  }

  .hero-badge {
    margin-bottom: 1rem;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 8vw, 2.1rem);
    line-height: 1.45;
  }

  .hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .hero-trust {
    justify-content: flex-start;
    gap: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }

  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 2.6rem 0;
  }

  .section-title {
    margin-bottom: 1.6rem;
  }

  .section-title h2,
  .page-header h1 {
    font-size: 1.45rem;
  }

  .section-title p,
  .page-header p {
    font-size: 0.92rem;
  }

  .product-search-wrap {
    margin-bottom: 1.25rem;
  }

  .product-search-input {
    padding: 0.85rem 2.8rem 0.85rem 2.5rem;
    font-size: 0.95rem;
  }

  .product-toolbar {
    gap: 0.85rem;
    margin-bottom: 0.85rem;
  }

  .product-filter-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
  }

  .filter-chip {
    flex: initial;
    width: 100%;
    min-height: 44px;
    padding: 0.72rem 0.85rem;
  }

  .toolbar-select select {
    min-height: 46px;
  }

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

  .product-image {
    height: 148px;
    padding: 1rem;
  }

  .product-image .product-logo {
    max-width: 96px;
    max-height: 76px;
    padding: 0.65rem;
  }

  .product-body {
    padding: 1rem;
  }

  .product-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .product-price {
    font-size: 1.05rem;
  }

  .product-select-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .features,
  .stats-grid,
  .trust-bar-inner,
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .feature-card,
  .step-card,
  .testimonial-card,
  .contact-card,
  .stat-card {
    padding: 1.2rem 1rem;
  }

  .about-content p {
    font-size: 0.96rem;
  }

  .cart-layout {
    gap: 1.25rem;
  }

  .cart-tools {
    padding: 0.9rem 1rem;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 0.85rem;
    align-items: start;
    padding: 1rem;
  }

  .cart-item-icon {
    width: 56px;
    height: 56px;
  }

  .cart-item-info {
    grid-column: 2;
  }

  .qty-control,
  .cart-item-price,
  .cart-item .btn-danger {
    grid-column: 1 / -1;
  }

  .qty-control {
    justify-content: flex-start;
  }

  .cart-item-price {
    font-size: 1rem;
  }

  .cart-item .btn-danger {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .qty-btn {
    width: 38px;
    height: 38px;
  }

  .cart-summary {
    padding: 1.15rem 1rem;
  }

  .promo-input,
  .cart-summary .btn,
  .promo-apply-btn {
    min-height: 46px;
  }

  .policy-agree-wrap {
    padding: 0.8rem;
  }

  .empty-cart {
    padding: 2.6rem 1rem;
  }

  .modal-overlay {
    padding: 0.75rem;
    align-items: flex-end;
  }

  .modal {
    max-width: 100%;
    border-radius: 20px 20px 16px 16px;
  }

  .modal.product-picker-modal,
  .modal.auth-modal,
  .checkout-form-modal,
  .modal.policies-modal {
    max-width: 100%;
    width: 100%;
    max-height: min(88vh, 720px);
  }

  #product-modal-header {
    align-items: flex-start;
  }

  .product-modal-body,
  .policies-modal-body {
    padding: 0.85rem 1rem;
  }

  .value-options {
    max-height: 15rem;
  }

  .value-option {
    padding: 0.65rem;
  }

  .value-option-price {
    font-size: 0.82rem;
  }

  .auth-tabs {
    margin: 0.85rem 1rem 0;
  }

  .auth-form {
    padding: 1rem;
  }

  .contact-form-wrap {
    padding: 1.25rem 1rem;
  }

  .cta-banner-inner {
    padding: 1.5rem 1rem;
  }

  .cta-banner h2 {
    font-size: 1.28rem;
  }

  .toast {
    bottom: 1rem;
  }

  .back-to-top {
    bottom: 1rem;
    left: 1rem;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 420px) {
  .product-filter-chips {
    grid-template-columns: 1fr;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item {
    grid-template-columns: 1fr;
  }

  .cart-item-icon,
  .cart-item-info,
  .qty-control,
  .cart-item-price,
  .cart-item .btn-danger {
    grid-column: auto;
  }

  .cart-item-icon {
    margin-inline: auto;
  }

  .cart-item-info {
    text-align: center;
  }

  .qty-control {
    justify-content: center;
  }

  .cart-item-price {
    text-align: center;
  }

  .product-modal-total {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .summary-row {
    gap: 0.5rem;
    font-size: 0.9rem;
  }
}

/* —— Professional enhancements —— */

.section-alt {
  background: #fff;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: #f3e8ff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.trust-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: -1px;
  box-shadow: 0 4px 20px rgba(107, 33, 168, 0.06);
}

.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.trust-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
}

.trust-stat span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonials {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 0;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.testimonial-card:hover {
  transform: translateY(-3px);
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.testimonial-card footer {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.cta-banner {
  padding: 0 0 3.5rem;
}

.cta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(107, 33, 168, 0.25);
}

.cta-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cta-banner p {
  opacity: 0.9;
  font-size: 0.95rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(107, 33, 168, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s, background 0.2s;
  z-index: 90;
  font-family: inherit;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
}

.page-header {
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .steps-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}
