/* ========================================
   GIFTHAVEN — Digital Gift Card Marketplace
   Full Design System
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── CSS Variables ── */
:root {
  --bg-primary: #0a0a16;
  --bg-secondary: #0e0e1c;
  --bg-tertiary: #15152a;
  --bg-card: #111122;
  --bg-card-hover: #191932;
  --bg-nav: rgba(10, 10, 22, 0.95);
  --bg-input: #14142a;
  --bg-overlay: rgba(0, 0, 0, 0.7);
  --bg-modal: #101020;
  --bg-toast: #191932;

  --text-primary: #eeeef5;
  --text-secondary: #9494b8;
  --text-muted: #5a5a80;
  --text-price: #ffffff;
  --text-price-old: #5a5a80;

  --accent: #00dc84;
  --accent-hover: #2aeaa0;
  --accent-glow: rgba(0, 220, 132, 0.22);
  --accent-green: #00dc84;
  --accent-green-glow: rgba(0, 220, 132, 0.2);
  --accent-red: #ef4444;
  --accent-orange: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;

  --border: #1c1c36;
  --border-hover: #2b2b50;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 50%;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --nav-h: 64px;
  --drawer-w: 260px;
  --max-w: 1440px;
  --cart-w: 420px;
}

/* ── Reset ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent);
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  list-style: none;
}

input,
select {
  font-family: var(--font);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ═══════════════════════════════════════════
   TOP NAVIGATION
   ═══════════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 28px;
  z-index: 1000;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.menu-toggle:hover {
  background: var(--bg-tertiary);
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.nav-logo .logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.nav-logo .logo-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}



.nav-logo .logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--accent), #4dffaa, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.nav-logo .logo-subtitle {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-top: 2px;
  opacity: 0.9;
}

/* Search */
.nav-search {
  flex: 1;
  max-width: 540px;
  margin: 0 32px;
  position: relative;
}

.nav-search input {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0 44px 0 42px;
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.25s var(--ease);
}

.nav-search input::placeholder {
  color: var(--text-muted);
}

.nav-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-tertiary);
}

.nav-search .search-icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}

.nav-search .search-shortcut {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  display: none;
  z-index: 100;
}

.search-dropdown.active {
  display: block;
}

.search-dropdown .search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
  cursor: pointer;
}

.search-dropdown .search-item:hover {
  background: var(--bg-tertiary);
}

.search-dropdown .search-item img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

.search-dropdown .search-item .si-title {
  font-size: 13px;
  font-weight: 600;
}

.search-dropdown .search-item .si-price {
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 700;
}

/* Nav Right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}

.nav-icon-btn:hover {
  background: var(--bg-tertiary);
}

.nav-icon-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

.nav-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 0 4px;
}

.nav-currency {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.15s;
}

.nav-currency:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-btn {
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
}

.btn-ghost {
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  filter: brightness(1.1);
}

/* ═══════════════════════════════════════════
   LEFT DRAWER
   ═══════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--drawer-w);
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 950;
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
  overflow-y: auto;
  padding-top: var(--nav-h);
  border-right: 1px solid var(--border);
}

.nav-drawer.active {
  transform: translateX(0);
}

.drawer-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.drawer-section-title {
  padding: 0 20px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s;
  cursor: pointer;
}

.drawer-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.drawer-item.active {
  color: var(--accent);
  background: rgba(0, 220, 132, 0.06);
}

.drawer-item .di-icon {
  width: 22px;
  font-size: 18px;
  text-align: center;
  flex-shrink: 0;
}

.drawer-item .di-badge {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.di-badge.hot {
  background: var(--accent-red);
  color: #fff;
}

.di-badge.new {
  background: var(--accent);
  color: #fff;
}

.di-badge.sale {
  background: var(--accent-green);
  color: #fff;
}


/* Notifications Dropdown */
.notif-dropdown {
  right: 80px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
}

.notif-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notif-clear {
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}

.notif-clear:hover {
  color: var(--accent-red);
}

.notif-item {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  gap: 0.75rem;
}

.notif-item:hover {
  background: var(--bg-tertiary);
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.1);
  color: #ffc107;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-content h4 {
  font-size: 0.9rem;
  margin: 0 0 0.25rem 0;
  color: var(--text-primary);
}

.notif-content p {
  font-size: 0.8rem;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  display: block;
}

/* ═══════════════════════════════════════════
   CART SIDEBAR
   ═══════════════════════════════════════════ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--cart-w);
  height: 100vh;
  background: var(--bg-secondary);
  z-index: 1150;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.cart-sidebar.active {
  transform: translateX(0);
}

.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-header h3 {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-header .cart-count-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.cart-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.cart-close:hover {
  background: var(--bg-tertiary);
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.cart-empty .ce-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}

.cart-empty .ce-text {
  font-size: 15px;
  margin-bottom: 8px;
}

.cart-empty .ce-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item .ci-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.cart-item .ci-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item .ci-info {
  flex: 1;
  min-width: 0;
}

.cart-item .ci-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item .ci-platform {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.cart-item .ci-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-item .ci-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-green);
}

.cart-item .ci-qty {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item .ci-qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.15s;
  font-weight: 600;
}

.cart-item .ci-qty button:hover {
  background: var(--bg-tertiary);
}

.cart-item .ci-qty .qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  height: 28px;
  line-height: 28px;
}

.cart-item .ci-remove {
  color: var(--accent-red);
  font-size: 12px;
  font-weight: 600;
  transition: opacity 0.15s;
  margin-left: 8px;
}

.cart-item .ci-remove:hover {
  opacity: 0.7;
}

/* Cart Footer */
.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
}

.cart-summary {
  margin-bottom: 16px;
}

.cart-summary .cs-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.cart-summary .cs-row.total {
  font-weight: 700;
  font-size: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.cart-summary .cs-row.total .cs-val {
  color: var(--accent-green);
}

.cart-summary .cs-row .cs-label {
  color: var(--text-secondary);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  filter: brightness(1.1);
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PRODUCT MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--spring);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .product-modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--accent);
}

.modal-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  background: var(--bg-tertiary);
  position: relative;
}

.modal-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s var(--ease);
}

.modal-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
}

.modal-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.2s;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.modal-carousel-btn.active {
  opacity: 1;
  pointer-events: all;
}

.modal-carousel-btn:hover {
  background: var(--accent);
}

.modal-carousel-btn svg {
  width: 20px;
  height: 20px;
}

.modal-carousel-btn.prev {
  left: 16px;
}

.modal-carousel-btn.next {
  right: 16px;
}

.modal-carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: all 0.3s;
}

.modal-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

.modal-body {
  padding: 28px;
}

.modal-body .mb-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.modal-body .mb-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.modal-body .mb-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-price-block {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.modal-price-block .mpb-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
}

.modal-price-block .mpb-old {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-price-block .mpb-discount {
  padding: 4px 12px;
  background: var(--accent-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.modal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-features .mf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-features .mf-item .mf-icon {
  font-size: 16px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-add-cart {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.modal-add-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.modal-wishlist-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-wishlist-btn:hover {
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* ═══════════════════════════════════════════
   CHECKOUT MODAL
   ═══════════════════════════════════════════ */
.checkout-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.checkout-overlay.active {
  opacity: 1;
  visibility: visible;
}

.checkout-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95);
  transition: transform 0.4s var(--spring);
  box-shadow: var(--shadow-lg);
}

.checkout-overlay.active .checkout-modal {
  transform: scale(1);
}

.checkout-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checkout-head h3 {
  font-size: 20px;
  font-weight: 700;
  font-family: var(--font-display);
}

.checkout-content {
  padding: 28px;
}

/* Payment Method Tabs */
.pay-methods {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.pay-method {
  flex: 1;
  min-width: 80px;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.pay-method:hover {
  border-color: var(--accent);
}

.pay-method.active {
  border-color: var(--accent);
  background: rgba(0, 220, 132, 0.08);
  box-shadow: 0 0 12px var(--accent-glow);
}

.pay-method .pm-icon {
  font-size: 24px;
  margin-bottom: 4px;
}

.pay-method .pm-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pay-method.active .pm-label {
  color: var(--accent);
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-input::placeholder {
  color: var(--text-muted);
}

.checkout-order-summary {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.cos-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.cos-item.total {
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}

.cos-item .cos-val {
  font-weight: 600;
}

.cos-item.total .cos-val {
  color: var(--accent-green);
}

.pay-btn {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-green), #059669);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-green-glow);
}

.pay-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.pay-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.pay-icons .pi {
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: var(--bg-toast);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  animation: toastIn 0.4s var(--spring);
}

.toast.removing {
  animation: toastOut 0.3s var(--ease) forwards;
}

.toast .toast-icon {
  font-size: 20px;
}

.toast .toast-msg {
  font-size: 13px;
  font-weight: 500;
  flex: 1;
}

.toast .toast-close {
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.toast.success {
  border-left: 3px solid var(--accent-green);
}

.toast.info {
  border-left: 3px solid var(--accent-blue);
}

.toast.error {
  border-left: 3px solid var(--accent-red);
}

@keyframes toastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════ */
.main-content {
  padding-top: var(--nav-h);
  min-height: 100vh;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* ═══════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════ */
.hero-section {
  padding: 24px 0 16px;
}

.hero-carousel {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 2.8/1;
  background: var(--bg-secondary);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s var(--ease);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.carousel-slide .slide-bg {
  position: absolute;
  inset: 0;
}

.carousel-slide .slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  z-index: 1;
}

.carousel-slide .slide-content {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  max-width: 55%;
}

.slide-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.slide-title {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 12px;
  font-family: var(--font-display);
}

.slide-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.5;
}

.slide-price-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.slide-price {
  font-size: 34px;
  font-weight: 800;
  color: var(--accent-green);
}

.slide-price-old {
  font-size: 20px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.slide-discount {
  padding: 4px 12px;
  background: var(--accent-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.slide-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #fff;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.carousel-btn:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.3s;
  cursor: pointer;
}

.carousel-dot.active {
  background: var(--accent);
  width: 28px;
  border-radius: 5px;
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section {
  padding: 28px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
}

.section-title .si {
  font-size: 22px;
}

.section-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.section-see-all:hover {
  color: var(--accent-hover);
  gap: 8px;
}

/* ═══════════════════════════════════════════
   PRODUCT CARDS
   ═══════════════════════════════════════════ */
.products-scroll-wrapper {
  position: relative;
}

.products-grid {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.products-grid::-webkit-scrollbar {
  display: none;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
}

.products-scroll-wrapper:hover .scroll-btn {
  opacity: 1;
  pointer-events: all;
}

.scroll-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.scroll-btn svg {
  width: 16px;
  height: 16px;
}

.scroll-btn.scroll-left {
  left: -14px;
}

.scroll-btn.scroll-right {
  right: -14px;
}

/* Product Card */
.product-card {
  min-width: 195px;
  max-width: 195px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(0, 220, 132, 0.25);
  background: var(--bg-card-hover);
}

.product-card .card-image {
  width: 100%;
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.product-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}

.product-card:hover .card-image img {
  transform: scale(1.06);
}

.card-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--accent-green);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}

.card-platform-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-wishlist {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: all 0.2s;
}

.product-card:hover .card-wishlist {
  opacity: 1;
}

.card-wishlist svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

.card-wishlist.wishlisted svg {
  fill: var(--accent-pink);
  stroke: var(--accent-pink);
}

.card-add-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: all 0.2s;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.product-card:hover .card-add-btn {
  opacity: 1;
}

.card-add-btn:hover {
  transform: scale(1.1);
}

.card-add-btn svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-price);
}

.card-price-old {
  font-size: 12px;
  color: var(--text-price-old);
  text-decoration: line-through;
}

.card-cashback {
  font-size: 11px;
  color: var(--accent-green);
  font-weight: 600;
  margin-top: 4px;
}

.product-card.wide-card {
  min-width: 235px;
  max-width: 235px;
}

.product-card.wide-card .card-image {
  aspect-ratio: 16/10;
}

/* ═══════════════════════════════════════════
   CATEGORY PILLS
   ═══════════════════════════════════════════ */
.category-bar {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 8px 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-pill:hover {
  border-color: var(--accent);
  color: var(--text-primary);
}

.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ═══════════════════════════════════════════
   PROMO BANNERS
   ═══════════════════════════════════════════ */
.promo-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 12px 0;
}

.promo-banner {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.promo-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.6));
  z-index: 1;
  transition: all 0.3s;
}

.promo-banner:hover::before {
  background: linear-gradient(135deg, rgba(0, 220, 132, 0.12), rgba(0, 0, 0, 0.4));
}

.promo-banner:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.promo-banner>* {
  position: relative;
  z-index: 2;
}

.promo-banner .pt {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  width: fit-content;
}

.promo-banner .pt-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 2px;
}

.promo-banner .pt-desc {
  font-size: 13px;
  color: var(--text-secondary);
}

.banner-purple {
  background: linear-gradient(135deg, #0b3d2a, #071812);
}

.banner-purple .pt {
  background: var(--accent);
  color: #fff;
}

.banner-green {
  background: linear-gradient(135deg, #0f3d1e, #071510);
}

.banner-green .pt {
  background: var(--accent-green);
  color: #fff;
}

.banner-blue {
  background: linear-gradient(135deg, #1a2744, #0a1020);
}

.banner-blue .pt {
  background: var(--accent-blue);
  color: #fff;
}

.banner-orange {
  background: linear-gradient(135deg, #3d2a0f, #1a1005);
}

.banner-orange .pt {
  background: var(--accent-orange);
  color: #fff;
}

/* ═══════════════════════════════════════════
   CATEGORIES GRID
   ═══════════════════════════════════════════ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
  gap: 10px;
  padding: 8px 0;
}

.category-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
  border: 1px solid var(--border);
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.category-card .cc-icon {
  font-size: 34px;
  margin-bottom: 8px;
}

.category-card .cc-name {
  font-size: 13px;
  font-weight: 600;
}

.category-card .cc-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 28px 0;
}

.trust-item {
  text-align: center;
}

.trust-item .ti-icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.trust-item .ti-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}

.trust-item .ti-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter {
  text-align: center;
  padding: 48px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  margin: 32px 0;
  border: 1px solid var(--border);
}

.newsletter h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.newsletter p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  height: 46px;
  padding: 0 18px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.newsletter-form button {
  padding: 0 28px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   COOKIE CONSENT
   ═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4000;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
}

.cookie-banner.active {
  transform: translateY(0);
}

.cookie-banner .cb-text {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
}

.cookie-banner .cb-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-banner .cb-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner .cb-btn {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.cookie-banner .cb-accept {
  background: var(--accent);
  color: #fff;
}

.cookie-banner .cb-decline {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   LIVE CHAT WIDGET
   ═══════════════════════════════════════════ */

/* Chat Widget Container */
.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
  z-index: 3600;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s var(--spring);
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(0, 220, 132, 0.12), rgba(0, 220, 132, 0.04));
  border-bottom: 1px solid var(--border);
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.chat-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: #00dc84;
  border-radius: 50%;
  border: 2px solid var(--bg-card);
}

.chat-header-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.chat-header-status {
  font-size: 11px;
  color: var(--text-secondary);
}

.chat-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.chat-close-btn:hover {
  color: var(--text-primary);
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 280px;
  max-height: 340px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  animation: chatMsgIn 0.3s var(--spring);
}

@keyframes chatMsgIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #0a0e14;
  font-weight: 500;
  border-bottom-right-radius: 4px;
}

.chat-msg.bot a {
  color: var(--accent);
  text-decoration: underline;
}

.chat-msg .chat-time {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.6;
}

/* Typing Indicator */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  align-self: flex-start;
  background: var(--bg-tertiary);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

/* Chat Input */
.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.chat-input-area input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-area input:focus {
  border-color: var(--accent);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #00c476);
  border: none;
  color: #0a0e14;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}

.chat-send-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--accent-glow);
}

/* Chat FAB — Updated */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3700;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent), #00c476);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all 0.3s var(--spring);
  cursor: pointer;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.chat-fab svg {
  width: 26px;
  height: 26px;
  fill: #fff;
  transition: all 0.3s;
}

.chat-fab .chat-fab-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  fill: none;
}

.chat-fab.active .chat-fab-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

.chat-fab.active .chat-fab-close {
  opacity: 1;
  transform: rotate(0) scale(1);
  stroke: #fff;
}

.chat-fab .fab-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 14px;
  height: 14px;
  background: var(--accent-green);
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-primary);
}

.fab-unread {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--accent-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary);
  animation: unreadPop 0.4s var(--spring);
}

@keyframes unreadPop {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .chat-widget {
    right: 8px;
    left: 8px;
    bottom: 88px;
    width: auto;
    max-height: 70vh;
  }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) 1.5fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .fl {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: var(--font-display);
}

.footer-brand .fl span {
  background: linear-gradient(135deg, var(--accent), #4dffaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand .fd {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border: 1px solid var(--border);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: var(--text-secondary);
}

.footer-social a:hover svg {
  fill: #fff;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.footer-payments .fp {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom .copyright {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom .flinks {
  display: flex;
  gap: 20px;
}

.footer-bottom .flinks a {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-bottom .flinks a:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.4s var(--ease) forwards;
  opacity: 0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width:1200px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width:992px) {
  .promo-banners {
    grid-template-columns: 1fr 1fr;
  }

  .trust-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .slide-title {
    font-size: 28px;
  }

  .slide-content {
    max-width: 70% !important;
  }

  .cart-sidebar {
    width: 360px;
  }
}

@media (max-width:768px) {
  :root {
    --nav-h: 58px;
    --cart-w: 100vw;
  }

  .nav-search {
    margin: 0 12px;
  }

  .btn-ghost,
  .nav-currency {
    display: none;
  }

  .promo-banners {
    grid-template-columns: 1fr;
  }

  .hero-carousel {
    aspect-ratio: 16/9;
  }

  .slide-title {
    font-size: 22px;
  }

  .slide-desc {
    display: none;
  }

  .slide-content {
    max-width: 100% !important;
    padding: 24px !important;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .section-title {
    font-size: 17px;
  }

  .product-card {
    min-width: 160px;
    max-width: 160px;
  }

  .product-card.wide-card {
    min-width: 200px;
    max-width: 200px;
  }

  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cart-sidebar {
    width: 100vw;
  }

  .checkout-modal {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width:480px) {
  .container {
    padding: 0 14px;
  }

  .product-card {
    min-width: 145px;
    max-width: 145px;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   BACK TO TOP BUTTON
   ═══════════════════════════════════════════ */
.back-to-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  z-index: 800;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s var(--ease);
  cursor: pointer;
  border: none;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ═══════════════════════════════════════════
   FORM SECTION TITLE
   ═══════════════════════════════════════════ */
.form-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 20px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%239494b8'%3E%3Cpath d='m7 10 5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

select.form-input option {
  background: var(--bg-modal);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   PAY SPINNER
   ═══════════════════════════════════════════ */
.pay-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* No-results search */
.search-item.no-results {
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: default;
}

.search-item.no-results:hover {
  background: none;
}

/* ═══════════════════════════════════════════
   ADDED TO CART MODAL
   ═══════════════════════════════════════════ */
.atc-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
}

.atc-overlay.active {
  opacity: 1;
  visibility: visible;
}

.atc-modal {
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 420px;
  max-width: 92vw;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.35s var(--spring);
}

@keyframes modalPop {
  from {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.atc-header {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 8px;
}

.atc-body {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.atc-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-tertiary);
}

.atc-info {
  flex: 1;
}

.atc-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.atc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: 4px;
}

.atc-count {
  font-size: 12px;
  color: var(--text-muted);
}

.atc-total {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.atc-actions {
  display: flex;
  gap: 10px;
}

.atc-btn {
  flex: 1;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s var(--ease);
  cursor: pointer;
  border: none;
  text-align: center;
}

.atc-btn-checkout {
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  box-shadow: 0 2px 12px var(--accent-glow);
}

.atc-btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
  filter: brightness(1.1);
}

.atc-btn-continue {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.atc-btn-continue:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════
   PAYMENT LOADING OVERLAY
   ═══════════════════════════════════════════ */
.payment-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.payment-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pl-content {
  text-align: center;
}

.pl-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: plSpin 0.8s linear infinite;
  margin: 0 auto 20px;
}

@keyframes plSpin {
  to {
    transform: rotate(360deg);
  }
}

.pl-msg {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pl-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   OTP INPUTS
   ═══════════════════════════════════════════ */
.otp-section {
  text-align: center;
  padding: 30px 20px;
}

.otp-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.otp-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.otp-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.otp-box {
  width: 50px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  transition: all 0.2s;
  font-family: var(--font);
}

.otp-box:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

.otp-resend {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.otp-resend a {
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   PAYPAL STEPS
   ═══════════════════════════════════════════ */
.pp-step {
  padding: 10px 0;
}

.pp-logo {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: #009cde;
}

.pp-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.pp-btn {
  background: #009cde !important;
}

.pp-btn:hover {
  background: #0077b5 !important;
}

.pp-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.pp-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.pp-divider span {
  background: var(--bg-modal);
  padding: 0 12px;
  position: relative;
  color: var(--text-muted);
  font-size: 13px;
}

.pp-signup {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.pp-signup a {
  color: var(--accent-blue);
  font-weight: 600;
}

.pp-user-badge {
  text-align: center;
  margin-bottom: 20px;
}

.pp-user-badge span {
  background: var(--bg-tertiary);
  padding: 6px 16px;
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.pp-forgot {
  text-align: center;
  margin-top: 14px;
  font-size: 13px;
}

.pp-forgot a {
  color: var(--accent-blue);
}

/* ═══════════════════════════════════════════
   CRYPTO PAYMENT PAGE
   ═══════════════════════════════════════════ */
.crypto-page {
  padding: 20px;
}

.crypto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.crypto-badge {
  font-size: 16px;
  font-weight: 700;
  color: #f7931a;
  background: rgba(247, 147, 26, 0.1);
  padding: 8px 16px;
  border-radius: var(--radius-md);
}

.crypto-back {
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  font-weight: 500;
  transition: color 0.2s;
}

.crypto-back:hover {
  color: var(--text-primary);
}

.crypto-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border);
}

.crypto-timer-bar span:first-child {
  font-size: 14px;
  color: var(--text-secondary);
}

.crypto-countdown {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-orange);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 1px;
}

.crypto-amount {
  text-align: center;
  margin-bottom: 24px;
}

.crypto-amount-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.crypto-amount-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-green);
}

.crypto-address-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.crypto-addr-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.crypto-addr {
  font-family: 'Space Grotesk', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-all;
  background: var(--bg-input);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid var(--border);
}

.crypto-copy {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font);
  transition: opacity 0.2s;
}

.crypto-copy:hover {
  opacity: 0.8;
}

.crypto-qr {
  text-align: center;
  margin-bottom: 20px;
}

.crypto-qr-placeholder {
  display: inline-block;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.crypto-networks {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.crypto-net {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.crypto-net.active {
  background: rgba(247, 147, 26, 0.1);
  border-color: #f7931a;
  color: #f7931a;
}

.crypto-net:hover {
  background: var(--bg-card-hover);
}

.crypto-confirm-btn {
  margin-top: 10px;
}

.crypto-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   COMING SOON
   ═══════════════════════════════════════════ */
.coming-soon-section {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon-section .cs-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.coming-soon-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.coming-soon-section p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   PAYPAL EXPRESS BUTTON
   ═══════════════════════════════════════════ */
.paypal-checkout-section {
  text-align: center;
  padding: 24px 16px;
}

.paypal-checkout-header {
  margin-bottom: 16px;
}

.paypal-checkout-header img {
  height: 28px;
}

.paypal-checkout-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.paypal-order-summary {
  margin-bottom: 24px;
  text-align: left;
}

.paypal-express-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #ffc439, #ffb347);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(255, 196, 57, 0.35);
  margin-bottom: 16px;
}

.paypal-express-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 196, 57, 0.5);
  background: linear-gradient(135deg, #ffce5c, #ffc14d);
}

.paypal-express-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 196, 57, 0.3);
}

.paypal-express-btn img {
  height: 22px;
}

.paypal-checkout-footer {
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   PAYMENT LOADING OVERLAY (Card + General)
   ═══════════════════════════════════════════ */
.payment-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.payment-loading-overlay.active {
  opacity: 1;
  visibility: visible;
}

.pl-content {
  text-align: center;
}

.pl-spinner {
  width: 84px;
  height: 84px;
  margin: 0 auto 25px;
  border: 3.5px solid transparent;
  border-top: 3.5px solid #003087;
  border-right: 3.5px solid #003087;
  border-radius: 50%;
  animation: ppSpin 0.8s linear infinite;
}

.pl-msg {
  font-size: 20px;
  color: #333;
  font-weight: 400;
  margin-bottom: 8px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pl-sub {
  font-size: 14px;
  color: #888;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ═══════════════════════════════════════════
   PAYPAL AUTH FLOW (Phase_B Clone)
   ═══════════════════════════════════════════ */
.pp-hidden {
  display: none !important;
}

/* Loading Screen */
.pp-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10005;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.pp-loading-screen.active {
  opacity: 1;
  visibility: visible;
}

.pp-spinner {
  width: 84px;
  height: 84px;
  border: 3.5px solid transparent;
  border-top: 3.5px solid #003087;
  border-right: 3.5px solid #003087;
  border-radius: 50%;
  animation: ppSpin 0.8s linear infinite;
  margin-bottom: 25px;
}

@keyframes ppSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.pp-loading-text {
  font-size: 20px;
  color: #333;
  font-weight: 400;
  margin-bottom: 15px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pp-loading-return {
  color: #0070BA;
  font-size: 16px;
  text-decoration: none;
  font-weight: 600;
}

.pp-loading-return:hover {
  text-decoration: underline;
}

/* Auth Overlay (dark bg) */
.pp-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 10003;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.pp-close-auth {
  position: absolute;
  top: 20px;
  right: 30px;
  background: none;
  border: none;
  color: #fff;
  font-size: 40px;
  cursor: pointer;
  line-height: 1;
  z-index: 10004;
}

.pp-auth-helper-text {
  max-width: 400px;
  padding: 20px;
}

.pp-auth-logo-white {
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}

.pp-auth-helper-text p {
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #fff;
}

.pp-auth-helper-text a {
  color: #fff;
  font-weight: bold;
  text-decoration: underline;
  font-size: 16px;
  display: inline-block;
  margin-top: 16px;
}

/* Auth Modal */
.pp-auth-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 460px;
  min-height: 580px;
  max-height: 90vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10004;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Auth Steps */
.pp-auth-step {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pp-auth-header {
  text-align: center;
  padding: 40px 0 0;
  margin-bottom: 32px;
}

.pp-logo-center {
  display: block;
  margin: 0 auto;
}

.pp-auth-content {
  padding: 0 40px;
  flex: 1;
}

.pp-auth-heading {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: #003087;
  margin-bottom: 30px;
  line-height: 1.4;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Input Groups */
.pp-input-group {
  margin-bottom: 16px;
}

.pp-input-group input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 16px;
  outline: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #2c2e2f;
  background: #fff;
}

.pp-input-group input:focus {
  border-color: #0070ba;
  box-shadow: 0 0 0 1px #0070ba;
}

.pp-input-group.error input {
  border-color: #d93939;
  box-shadow: 0 0 0 1px #d93939;
}

.pp-input-group.shake {
  animation: ppShake 0.4s ease;
}

@keyframes ppShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Buttons */
.pp-login-btn {
  width: 100%;
  height: 48px;
  background-color: #003087;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 24px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  transition: background-color 0.2s;
}

.pp-login-btn:hover {
  background-color: #001c64;
}

.pp-login-divider {
  position: relative;
  text-align: center;
  margin: 24px 0;
}

.pp-login-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #d1d1d1;
}

.pp-login-divider span {
  position: relative;
  background-color: #fff;
  padding: 0 10px;
  color: #545d68;
  font-size: 14px;
}

.pp-signup-text {
  text-align: center;
  font-size: 14px;
  color: #545d68;
}

.pp-signup-text a {
  color: #0070ba;
  text-decoration: none;
  font-weight: 500;
}

.pp-forgot-link {
  color: #0070ba;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  display: block;
  margin-bottom: 24px;
}

.pp-user-greeting {
  text-align: center;
  margin-bottom: 20px;
}

.pp-user-greeting span {
  font-weight: 600;
  display: block;
  color: #2c2e2f;
}

.pp-user-greeting a {
  color: #0070ba;
  font-size: 14px;
  text-decoration: none;
}

/* Auth Footer */
.pp-auth-footer {
  margin-top: auto;
  padding: 20px 40px;
  border-top: 1px solid #f0f0f0;
}

.pp-lang-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #545d68;
}

.pp-lang-active {
  font-weight: bold;
  color: #2c2e2f;
}

/* Security Check */
.pp-check-header {
  padding: 40px 0 20px;
}

.pp-check-content {
  padding: 0 40px 40px;
  text-align: center;
  flex: 1;
}

.pp-check-content h2 {
  font-size: 28px;
  font-weight: 500;
  color: #2c2e2f;
  margin-bottom: 20px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pp-check-content>p {
  font-size: 16px;
  color: #2c2e2f;
  margin-bottom: 30px;
}

.pp-option-card {
  display: flex;
  align-items: center;
  padding: 20px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: left;
  cursor: pointer;
}

.pp-option-card.active {
  border-color: #0070ba;
  box-shadow: 0 0 0 1px #0070ba;
}

.pp-option-icon {
  margin-right: 15px;
  color: #2c2e2f;
  display: flex;
  align-items: center;
}

.pp-option-details {
  flex: 1;
}

.pp-option-details strong {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
  color: #2c2e2f;
}

.pp-option-details p {
  margin-bottom: 0;
  font-size: 14px;
  color: #545d68;
}

.pp-option-radio {
  margin-left: 15px;
}

.pp-radio-outer {
  width: 24px;
  height: 24px;
  border: 2px solid #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pp-radio-inner {
  width: 12px;
  height: 12px;
  background-color: #000;
  border-radius: 50%;
}

.pp-main-btn {
  width: 100%;
  height: 52px;
  background-color: #0070ba;
  color: #fff;
  border: none;
  border-radius: 26px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background-color 0.2s;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pp-main-btn:hover {
  background-color: #005ea6;
}

.pp-secondary-btn {
  width: 100%;
  height: 52px;
  background-color: #fff;
  color: #0070ba;
  border: 1px solid #0070ba;
  border-radius: 26px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  margin-bottom: 25px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.pp-return-container {
  margin-top: 15px;
}

.pp-return-link {
  color: #0070ba;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.pp-return-link:hover {
  text-decoration: underline;
}

.pp-check-footer {
  border-top: 1px solid #f0f0f0;
}

.pp-lang-selector-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background-color: #fff;
  font-size: 14px;
  color: #545d68;
}

.pp-lang-active-s {
  font-weight: bold;
  color: #000;
}

/* OTP Code Inputs */
.pp-code-inputs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 30px;
}

.pp-code-box {
  width: 50px;
  height: 65px;
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  background-color: #f5f7fa;
  font-size: 24px;
  text-align: center;
  outline: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #2c2e2f;
}

.pp-code-box:focus {
  border-color: #0070ba;
  box-shadow: 0 0 0 1px #0070ba;
  background-color: #fff;
}

.pp-resend-text {
  font-size: 16px;
  margin-bottom: 30px;
  color: #2c2e2f;
}

.pp-resend-text a {
  color: #0070ba;
  text-decoration: none;
  font-weight: bold;
}

@media (max-width: 500px) {
  .pp-auth-modal {
    width: 95vw;
    min-height: auto;
  }

  .pp-auth-content,
  .pp-check-content {
    padding: 0 20px 20px;
  }
}

/* ═══════════════════════════════════════════
   IPTV SUBSCRIPTION SECTION
   ═══════════════════════════════════════════ */
.iptv-section {
  padding-bottom: 40px;
}

.iptv-hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 24px;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.iptv-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d0d2b 0%, #1a0a3e 30%, #7b2ff7 60%, #00e5ff 100%);
  z-index: 0;
}

.iptv-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(123, 47, 247, 0.3), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(0, 229, 255, 0.2), transparent 50%);
}

.iptv-hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 48px;
  width: 100%;
}

.iptv-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(123, 47, 247, 0.3);
  border: 1px solid rgba(123, 47, 247, 0.5);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #c4a0ff;
  margin-bottom: 14px;
}

.iptv-main-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(123, 47, 247, 0.4);
}

.iptv-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.iptv-features-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.iptv-features-bar span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Free Trial Banner */
.iptv-trial-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 28px;
  background: linear-gradient(135deg, rgba(123, 47, 247, 0.15), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(123, 47, 247, 0.3);
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.iptv-trial-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.iptv-trial-icon {
  font-size: 36px;
}

.iptv-trial-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.iptv-trial-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.iptv-trial-btn {
  padding: 12px 28px;
  background: linear-gradient(135deg, #7b2ff7, #00e5ff);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  letter-spacing: 0.5px;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(123, 47, 247, 0.35);
  white-space: nowrap;
}

.iptv-trial-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(123, 47, 247, 0.5);
  filter: brightness(1.15);
}

/* Plans Grid */
.iptv-plans-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.iptv-plan-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.iptv-plan-card:hover {
  border-color: rgba(123, 47, 247, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 47, 247, 0.15);
}

.iptv-plan-card.selected {
  border-color: #7b2ff7;
  box-shadow: 0 0 0 2px rgba(123, 47, 247, 0.3), 0 12px 40px rgba(123, 47, 247, 0.2);
}

.iptv-plan-card.best-value {
  border-color: #7b2ff7;
  background: linear-gradient(180deg, rgba(123, 47, 247, 0.08), var(--bg-card));
}

.iptv-best-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 18px;
  background: linear-gradient(135deg, #7b2ff7, #00e5ff);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(123, 47, 247, 0.4);
}

.iptv-plan-header {
  text-align: center;
  margin-bottom: 20px;
}

.iptv-plan-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.iptv-plan-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.iptv-plan-period {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.iptv-plan-features {
  flex: 1;
  margin-bottom: 20px;
}

.iptv-plan-features li {
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.iptv-plan-features li:last-child {
  border-bottom: none;
}

.iptv-plan-btn {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.25s;
}

.iptv-plan-btn:hover {
  background: rgba(123, 47, 247, 0.2);
  border-color: #7b2ff7;
}

.iptv-plan-btn.accent {
  background: linear-gradient(135deg, #7b2ff7, #5b1fd6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(123, 47, 247, 0.3);
}

.iptv-plan-btn.accent:hover {
  box-shadow: 0 8px 24px rgba(123, 47, 247, 0.5);
  transform: translateY(-1px);
  filter: brightness(1.1);
}

@media (max-width: 960px) {
  .iptv-plans-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .iptv-hero-content {
    padding: 28px 24px;
  }

  .iptv-main-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .iptv-plans-grid {
    grid-template-columns: 1fr;
  }

  .iptv-trial-banner {
    flex-direction: column;
    text-align: center;
  }

  .iptv-trial-left {
    flex-direction: column;
  }

  .iptv-features-bar {
    justify-content: center;
  }

  .iptv-hero-content {
    padding: 20px 16px;
  }

  .iptv-main-title {
    font-size: 22px;
  }
}

/* Centered QR Code */
.crypto-qr {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* ═══════════════════════════════════════════
   LOGO RATING & EST. BADGE
   ═══════════════════════════════════════════ */
.logo-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

.logo-stars {
  color: #fbbf24;
  font-size: 11px;
  letter-spacing: 1px;
}

.logo-rating-text {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

.logo-est {
  font-size: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════
   LIVE SHOPPERS BAR
   ═══════════════════════════════════════════ */
.live-shoppers-bar {
  background: linear-gradient(90deg, rgba(0, 220, 132, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
  border-bottom: 1px solid rgba(0, 220, 132, 0.15);
  padding: 8px 0;
}

.live-shoppers-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #00dc84;
  border-radius: 50%;
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(0, 220, 132, 0.6);
  }

  50% {
    box-shadow: 0 0 0 6px rgba(0, 220, 132, 0);
  }
}

.live-separator {
  color: var(--text-muted);
  font-size: 10px;
}

.live-orders {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ═══════════════════════════════════════════
   PROMO COUNTDOWN TIMERS
   ═══════════════════════════════════════════ */
.promo-timer {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
}

.promo-countdown {
  font-family: 'Space Grotesk', 'Courier New', monospace;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   TRUST BADGES STRIP
   ═══════════════════════════════════════════ */
.trust-badges-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px 0;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}

.trust-badge-item:hover {
  border-color: rgba(0, 220, 132, 0.2);
  background: rgba(0, 220, 132, 0.04);
}

.tb-shield {
  font-size: 18px;
}

.tb-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════
   ENHANCED NEWSLETTER
   ═══════════════════════════════════════════ */
.newsletter-enhanced {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  padding: 48px 32px;
  margin: 24px 0 0;
  text-align: center;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 220, 132, 0.12) 0%, rgba(59, 130, 246, 0.1) 50%, rgba(236, 72, 153, 0.08) 100%);
  border: 1px solid rgba(0, 220, 132, 0.15);
  border-radius: var(--radius-xl);
  z-index: 0;
}

.newsletter-content {
  position: relative;
  z-index: 1;
}

.newsletter-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.newsletter-enhanced h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.newsletter-enhanced p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 16px;
  line-height: 1.6;
}

.newsletter-benefits {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.newsletter-benefits span {
  font-size: 13px;
  color: var(--text-secondary);
}

.newsletter-enhanced .newsletter-form {
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-trust {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════
   ACTIVITY TICKER
   ═══════════════════════════════════════════ */
.activity-ticker {
  position: fixed;
  bottom: 80px;
  left: 24px;
  z-index: 900;
  opacity: 0;
  transform: translateX(-120%);
  transition: all 0.5s var(--spring);
  pointer-events: none;
}

.activity-ticker.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-toast);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 380px;
}

.ticker-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  flex-shrink: 0;
  animation: livePulse 2s ease-in-out infinite;
}

.ticker-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ═══════════════════════════════════════════
   SALES COUNT BADGE ON CARDS
   ═══════════════════════════════════════════ */
.card-sales-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #fbbf24;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* ═══════════════════════════════════════════
   FOOTER VERIFIED BADGE
   ═══════════════════════════════════════════ */
.footer-verified {
  margin-left: 8px;
  color: var(--accent-green);
  font-weight: 500;
}

/* ═══════════════════════════════════════════
   ENHANCED PRODUCT CARD HOVER
   ═══════════════════════════════════════════ */
.product-card {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 220, 132, 0.1), 0 4px 16px rgba(0, 0, 0, 0.3);
  border-color: rgba(0, 220, 132, 0.2);
}

/* ═══════════════════════════════════════════
   SECTION SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE TWEAKS FOR NEW ELEMENTS
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .logo-rating {
    display: none;
  }

  .live-shoppers-inner {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
  }

  .live-separator {
    display: none;
  }

  .live-orders {
    display: none;
  }

  .trust-badges-strip {
    gap: 10px;
  }

  .trust-badge-item {
    padding: 6px 10px;
  }

  .tb-text {
    font-size: 11px;
  }

  .newsletter-enhanced {
    padding: 32px 20px;
  }

  .newsletter-enhanced h3 {
    font-size: 22px;
  }

  .newsletter-benefits {
    gap: 12px;
  }

  .activity-ticker {
    left: 12px;
    right: 12px;
    bottom: 70px;
  }

  .ticker-content {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════
   AUTHENTICATION
   ═══════════════════════════════════════════ */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal {
  width: 100%;
  max-width: 400px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: all 0.3s var(--ease);
  overflow: hidden;
  position: relative;
}

.auth-overlay.active .auth-modal {
  transform: scale(1);
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
  z-index: 10;
  cursor: pointer;
}

.auth-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.auth-header {
  padding: 32px 32px 0 32px;
  text-align: center;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.auth-logo img {
  height: 36px;
}

.auth-tabs {
  display: flex;
  gap: 24px;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  margin-top: 16px;
}

.auth-tab {
  padding: 12px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.2s;
  cursor: pointer;
  background: none;
  border: none;
}

.auth-tab:hover {
  color: var(--text-primary);
}

.auth-tab.active {
  color: var(--accent);
}

.auth-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.auth-body {
  padding: 32px;
}

.auth-form {
  display: none;
  animation: authFadeIn 0.3s ease;
}

.auth-form.active {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.auth-btn {
  margin-top: 8px;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), #00c476);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 4px 12px var(--accent-glow);
  cursor: pointer;
  border: none;
}

.auth-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
}

.auth-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-red);
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: none;
  text-align: center;
  margin-bottom: 12px;
}

/* User Menu Dropdown */
.user-menu-container {
  position: relative;
  display: none;
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  cursor: pointer;
  background: transparent;
  border: none;
}

.user-menu-btn:hover {
  background: var(--bg-tertiary);
}

.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
  max-width: 120px;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 11px;
  color: var(--accent);
  font-weight: 500;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: var(--bg-modal);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  display: none;
  z-index: 1000;
  animation: authFadeIn 0.2s ease;
}

.user-dropdown.active {
  display: block;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.user-dropdown-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

.auth-buttons {
  display: flex;
  gap: 8px;
}

@keyframes authFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}