/* ============================================
   PixabAnimation — Premium Animation & Design Marketplace
   (c) 2024 SPurno Animation Studio. All rights reserved.
   MIT License. See LICENSE.md for details.
   ============================================ */

/* === CSS Variables & Themes === */
:root {
  /* Apple Design System — Exact Colors */
  --ds-primary: #0071e3;
  --ds-primary-focus: #0077ed;
  --ds-primary-on-dark: #2997ff;
  --ds-ink: #1d1d1f;
  --ds-body: #1d1d1f;
  --ds-body-on-dark: #f5f5f7;
  --ds-body-muted: #86868b;
  --ds-ink-muted-80: #424245;
  --ds-ink-muted-48: #6e6e73;
  --ds-canvas: #ffffff;
  --ds-canvas-parchment: #f5f5f7;
  --ds-surface-pearl: #fafafc;
  --ds-surface-tile-1: #1d1d1f;
  --ds-surface-tile-2: #2d2d2f;
  --ds-surface-tile-3: #1d1d1f;
  --ds-surface-black: #000000;
  --ds-divider-soft: #f0f0f2;
  --ds-hairline: #d2d2d7;

  /* Colors - Apple Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);
  --bg-glass-hover: rgba(255, 255, 255, 0.9);
  --bg-input: #f5f5f7;
  
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #86868b;
  --text-inverse: #f5f5f7;
  
  --accent-1: #0071e3;
  --accent-2: #0077ed;
  --accent-3: #0071e3;
  --accent-gradient: linear-gradient(135deg, #0071e3, #0077ed);
  --accent-gradient-2: linear-gradient(135deg, #0071e3, #42a5f5);
  --navy-gradient: linear-gradient(135deg, #1d1d1f, #424245, #0071e3);
  
  --success: #248a3d;
  --warning: #b25000;
  --error: #d70015;
  --info: #0071e3;
  
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: #d2d2d7;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(0, 113, 227, 0.15);
  --shadow-glow-2: 0 0 40px rgba(0, 113, 227, 0.1);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 50%;
  
  --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Helvetica Neue', 'Arial', sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Arial', sans-serif;
  --font-mono: 'SF Mono', SFMono-Regular, ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --nav-height: 48px;
  --max-width: 980px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47;
  font-size: 17px;
  letter-spacing: -0.022em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

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

ul, ol {
  list-style: none;
}

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

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

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: var(--bg-input);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  outline: none;
  transition: var(--transition-normal);
  width: 100%;
}

input:focus, textarea:focus, select:focus {
  border-color: #0071e3;
  outline: none;
}

/* Select dropdown option colors for light theme */
select option {
  background: #ffffff;
  color: #1d1d1f;
  padding: 8px 12px;
}

select option:hover,
select option:focus {
  background: #f5f5f7;
}

select:focus option:checked {
  background: #0071e3;
  color: white;
}

::selection {
  background: #0071e3;
  color: white;
}

/* === Custom Scrollbar — Thin Blue === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: 3px;
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #86868b;
}

::-webkit-scrollbar-thumb:active {
  background: #6e6e73;
}

/* Thin scrollbar for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #d2d2d7 transparent;
}

/* Scrollbar corner for nested scrollable areas */
::-webkit-scrollbar-corner {
  background: transparent;
}

/* === Text Utilities === */
.text-gradient {
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-2 {
  background: linear-gradient(135deg, #0071e3, #42a5f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-right { text-align: right; }

/* === Typography System (Apple-Inspired from DESIGN.md) === */
.ds-hero-display {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
}

.ds-display-lg {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
}

.ds-display-md {
  font-family: var(--font-primary);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

.ds-lead {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.012em;
}

.ds-lead-airy {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.ds-tagline {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.014em;
}

.ds-body {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
}

.ds-body-strong {
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.022em;
}

.ds-caption {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.013em;
}

.ds-caption-strong {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.013em;
}

.ds-fine-print {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.007em;
}

.ds-nav-link {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.007em;
}

.ds-pill-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: #0071e3;
  color: #fff;
  border-radius: 980px;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: background 0.3s ease;
}

.ds-pill-cta:hover {
  background: #0077ed;
}

.ds-pill-cta:active {
  background: #006edb;
}

.ds-pill-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: transparent;
  color: #0071e3;
  border: none;
  border-radius: 980px;
  font-family: var(--font-primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.022em;
  text-decoration: none;
  transition: color 0.3s ease;
}

.ds-pill-cta-secondary:hover {
  color: #0077ed;
  text-decoration: underline;
}

.ds-pill-cta-secondary:active {
  color: #006edb;
}

/* === Glass Card === */
.glass {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.glass:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Apple-style glass for panels */
.glass-panel {
  background: rgba(29, 29, 31, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.glass-panel:hover {
  background: rgba(29, 29, 31, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 980px;
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.022em;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
  opacity: 0;
  transition: var(--transition-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: #0071e3;
  color: #fff;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-primary:active {
  background: #006edb;
}

.btn-secondary {
  background: #e8e8ed;
  color: #1d1d1f;
}

.btn-secondary:hover {
  background: #d2d2d7;
}

.btn-outline {
  background: transparent;
  color: #0071e3;
  border: 1px solid #0071e3;
}

.btn-outline:hover {
  background: #0071e3;
  color: #fff;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* === Navigation Progress Bar === */
.nav-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #0071e3;
  z-index: 1001;
  transition: width 0.3s ease,
              opacity 0.3s ease;
  opacity: 0;
  will-change: width, opacity;
  pointer-events: none;
}

.nav-progress-bar.active {
  opacity: 1;
}

.nav-progress-bar.complete {
  transition: width 0.15s ease, opacity 0.4s ease 0.2s;
}

@media (prefers-reduced-motion: reduce) {
  .nav-progress-bar {
    display: none;
  }
}

/* === Navigation — Apple Global Nav === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  transition: background 0.36s ease, border-color 0.36s ease;
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.12);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  flex-shrink: 0;
  color: #1d1d1f;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo {
  width: 22px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.footer-logo {
  width: 36px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
  vertical-align: middle;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
}

/* Desktop Nav Links — Apple-style */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  justify-content: flex-start;
  flex: 1;
}

.nav-brand-item {
  display: flex;
  align-items: center;
  margin-right: 54px;
  padding-right: 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-brand-item .nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #1d1d1f;
}

.nav-brand-item .brand-logo {
  width: 22px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  vertical-align: middle;
}

.nav-link {
  padding: 0 12px;
  height: 48px;
  display: flex;
  align-items: center;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: rgba(0, 0, 0, 0.8);
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
}

.nav-link:hover {
  color: #000;
}

.nav-link.active {
  color: #000;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--ds-primary);
  border-radius: 1px;
}

.nav-link i {
  display: none;
}

/* Mobile action items — hidden on desktop */
.nav-action-mobile,
.nav-divider-mobile {
  display: none;
}

/* === Nav Clock (Desktop — inside nav-actions) === */
.nav-clock--desktop {
  font-family: 'Inter', 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(0, 0, 0, 0.55);
  padding: 0 8px;
  white-space: nowrap;
  user-select: none;
  line-height: 1;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  margin-right: 4px;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .nav-clock--desktop {
    display: none;
  }
}

/* === Nav Clock (Mobile — centered in nav bar) === */
.nav-clock--mobile {
  display: none;
  font-family: 'Inter', 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  user-select: none;
  line-height: 1;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .nav-clock--mobile {
    display: block;
  }
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s ease;
  color: #1d1d1f;
  position: relative;
  font-size: 0.95rem;
  text-decoration: none;
}

.nav-icon-btn:hover {
  color: #000;
  background: rgba(0, 0, 0, 0.06);
}

.badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #0071e3;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.badge.visible {
  transform: scale(1);
}

/* Sign In Button in Nav */
.nav-actions .btn-sm.btn-primary {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 400;
  border-radius: 980px;
  background: #0071e3;
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-actions .btn-sm.btn-primary:hover {
  background: #0077ed;
  transform: none;
  box-shadow: none;
}

/* Nav subtle bottom border accent */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: transparent;
}

/* Brand */
.nav-brand {
  position: relative;
}

/* Hamburger Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #1d1d1f;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Search Bar */
.search-bar {
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #d2d2d7;
  padding: 12px 22px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  pointer-events: none;
  z-index: 999;
}

.search-bar.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.search-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 4px 16px;
  border: 1px solid #d2d2d7;
}

.search-container:focus-within {
  border-color: #0071e3;
}

.search-container i {
  color: var(--text-muted);
}

.search-container input {
  background: transparent;
  border: none;
  padding: 12px 0;
  font-size: 17px;
  color: #1d1d1f;
}

.search-container input::placeholder {
  color: #86868b;
}

.search-container input:focus {
  box-shadow: none;
  border: none;
  outline: none;
}

.search-close {
  padding: 8px;
  color: var(--text-muted);
  transition: var(--transition-fast);
}

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

/* Search Suggestions Autocomplete */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% - 8px);
  left: 24px;
  right: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  z-index: 1001;
  max-height: 480px;
  overflow-y: auto;
  animation: fadeIn 0.15s ease-out;
}

.search-suggestions.active {
  display: block;
}

.search-suggestions::-webkit-scrollbar {
  width: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: #d2d2d7;
  border-radius: 2px;
}

.search-suggestions-group {
  padding: 8px 0;
}

.search-suggestions-group:not(:last-child) {
  border-bottom: 1px solid #d2d2d7;
}

.search-suggestions-group-title {
  padding: 6px 16px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #86868b;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
  scroll-margin: 4px;
}

.search-suggestion-item:hover,
.search-suggestion-item.highlighted {
  background: #f5f5f7;
}

.search-suggestion-item.highlighted {
  background: #f5f5f7;
}

.search-suggestion-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #f5f5f7;
}

.search-suggestion-info {
  flex: 1;
  min-width: 0;
}

.search-suggestion-name {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1d1d1f;
}

.search-suggestion-category {
  font-size: 12px;
  color: #86868b;
}

.search-suggestion-price {
  font-size: 14px;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
}

.search-suggestion-compare {
  font-size: 12px;
  color: #86868b;
  text-decoration: line-through;
  margin-left: 4px;
}

.search-suggestion-stock {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 980px;
  font-weight: 500;
}

.search-suggestion-stock.in-stock {
  color: #248a3d;
  background: rgba(36, 138, 61, 0.08);
}

.search-suggestion-stock.out-of-stock {
  color: #d70015;
  background: rgba(215, 0, 21, 0.08);
}

.search-suggestion-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: #0071e3;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-top: 1px solid #d2d2d7;
}

.search-suggestion-view-all:hover {
  background: #f5f5f7;
}

.search-suggestion-empty,
.search-suggestion-loading {
  padding: 32px 16px;
  text-align: center;
  color: #86868b;
  font-size: 14px;
}

.search-suggestion-loading .loader-spinner {
  width: 24px;
  height: 24px;
  margin: 0 auto 8px;
  border-width: 2px;
}

/* Category suggestion chip */
.search-suggestion-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin: 2px 16px;
  border-radius: 980px;
  background: #f5f5f7;
  font-size: 14px;
  font-weight: 400;
  color: #424245;
  cursor: pointer;
  transition: background 0.2s ease;
}

.search-suggestion-category-chip:hover {
  background: #e8e8ed;
  color: #0071e3;
}

.search-suggestion-category-chip i {
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .search-suggestions {
    left: 16px;
    right: 16px;
    max-height: 360px;
  }
  .search-suggestion-item {
    padding: 8px 12px;
  }
  .search-suggestion-img {
    width: 36px;
    height: 36px;
  }
}

/* === Main Content === */
.main-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
  position: relative;
}

.page-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #d2d2d7;
  border-top-color: #0071e3;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  padding: 6px 16px;
  background: transparent;
  color: #0071e3;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.013em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 12px;
  font-family: var(--font-display);
  letter-spacing: -0.003em;
  color: #1d1d1f;
}

.section-subtitle {
  color: #86868b;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* === Hero Section === */
.hero {
  padding: 120px 24px 60px;
  position: relative;
  overflow: hidden;
  min-height: auto;
  display: flex;
  align-items: center;
  background: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.04), transparent 70%);
  top: -200px;
  right: -100px;
  animation: float 10s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.04), transparent 70%);
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: #f5f5f7;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 400;
  color: #0071e3;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.003em;
  margin-bottom: 16px;
  font-family: var(--font-display);
  color: #1d1d1f;
}

.hero-description {
  color: #424245;
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  line-height: 1.5;
  letter-spacing: -0.022em;
  margin-bottom: 28px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #d2d2d7;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 14px;
  color: #86868b;
  margin-top: 4px;
}

.hero-image {
  position: relative;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-image .spurno-player {
  border-radius: 18px !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  aspect-ratio: 16 / 10;
  background: #f5f5f7;
}

.hero-video .spurno-video {
  object-fit: cover !important;
}

.hero-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.hero-image-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid #d2d2d7;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 6s ease-in-out infinite;
}

.hero-image-float-1 {
  top: -20px;
  right: -20px;
}

.hero-image-float-2 {
  bottom: -20px;
  left: -20px;
  animation-delay: -3s;
}

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  animation: fadeInUp 0.5s ease-out both;
}

.product-card:hover {
  border-color: #0071e3;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f7;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1;
}

.product-card-badge {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.badge-sale {
  background: #d70015;
  color: white;
}

.badge-new {
  background: #248a3d;
  color: white;
}

.badge-featured {
  background: #0071e3;
  color: white;
}

.product-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid #d2d2d7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  transition: all 0.3s ease;
  font-size: 0.85rem;
  opacity: 0;
  transform: scale(0.85);
  z-index: 2;
}

.product-card:hover .product-card-wishlist {
  opacity: 1;
  transform: scale(1);
}

.product-card-wishlist:hover {
  background: #d70015;
  color: white;
  border-color: transparent;
}

.product-card-wishlist.active {
  opacity: 1;
  transform: scale(1);
  color: #d70015;
  background: rgba(215, 0, 21, 0.08);
  border-color: #d70015;
}

.product-card-body {
  padding: 16px 18px;
  color: #1d1d1f;
}

.product-card-category {
  font-size: 12px;
  color: #86868b;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin-bottom: 4px;
}

.product-card-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  line-height: 1.47;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -0.013em;
  color: #1d1d1f;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.stars {
  color: #ff9500;
  letter-spacing: 1px;
}

.rating-count {
  color: #86868b;
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 10px;
}

.current-price {
  font-size: 17px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.022em;
}

.compare-price {
  font-size: 14px;
  color: #86868b;
  text-decoration: line-through;
}

.product-card-footer {
  padding: 0 18px 18px;
}

.product-card .add-to-cart-btn {
  width: 100%;
  padding: 12px;
  border-radius: 980px;
  background: #0071e3;
  color: white;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: -0.013em;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  font-family: var(--font-primary);
}

.product-card .add-to-cart-btn:hover {
  background: #0077ed;
}

.product-card .add-to-cart-btn:active {
  background: #006edb;
}

/* === Apple Cover Flow Category Slider (iTunes Album Art Style) === */
.category-slider-wrapper {
  position: relative;
  padding: 30px 0 60px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.category-slider-stage {
  position: relative;
  width: 100%;
  height: 320px;
  perspective: 1000px;
  perspective-origin: 50% 45%;
}

.category-slider-track {
  display: flex;
  align-items: center;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc(50% - 100px);
  gap: 0;
  scrollbar-width: none;
}

.category-slider-track::-webkit-scrollbar {
  display: none;
}

/* Each card wrapper for 3D transforms */
.category-slider-card-wrap {
  flex: 0 0 200px;
  height: 200px;
  scroll-snap-align: center;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
  margin: 0 -20px;
  z-index: 1;
  position: relative;
}

.category-slider-card-wrap .category-card {
  width: 100%;
  height: 100%;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.category-slider-card-wrap .category-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  transform: scale(1.02);
}

.category-slider-card-wrap .category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.category-slider-card-wrap .category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 45%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  pointer-events: none;
}

/* iTunes Glass Reflection — cross-browser */
/* Chrome/Safari/Edge: native reflection */
.category-slider-card-wrap {
  -webkit-box-reflect: below 8px linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0.08) 100%);
}

/* Firefox fallback: pseudo-element gradient reflection */
@-moz-document url-prefix() {
  .category-slider-card-wrap::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    height: 28px;
    background: linear-gradient(to bottom,
      rgba(0,0,0,0.08) 0%,
      rgba(0,0,0,0.04) 40%,
      transparent 100%);
    border-radius: 0 0 14px 14px;
    pointer-events: none;
    opacity: 0.6;
    z-index: -1;
  }
}

.category-card-name {
  font-size: 17px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  letter-spacing: -0.022em;
}

.category-card-count {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* Slider Navigation Arrows */
.category-slider-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #d2d2d7;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #86868b;
  font-size: 1rem;
}

.category-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  color: #0071e3;
}

.category-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.category-slider-arrow--prev {
  left: 16px;
}

.category-slider-arrow--next {
  right: 16px;
}

/* Slider Dots */
.category-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.category-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d2d7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.category-slider-dot.active {
  background: #0071e3;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .category-slider-wrapper {
    padding: 20px 0 40px;
  }
  .category-slider-stage {
    height: 240px;
  }
  .category-slider-card-wrap {
    flex: 0 0 150px;
    height: 150px;
    margin: 0 -15px;
  }
  .category-slider-track {
    padding: 0 calc(50% - 75px);
  }
  .category-slider-arrow {
    display: none;
  }
  .category-slider-dots {
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .category-slider-card-wrap {
    flex: 0 0 120px;
    height: 120px;
    margin: 0 -12px;
  }
  .category-slider-stage {
    height: 200px;
  }
  .category-slider-track {
    padding: 0 calc(50% - 60px);
  }
}
.category-slider-wrapper {
  position: relative;
  padding: 30px 0 60px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* === Featured Products Section === */
.featured-section {
  background: #f5f5f7;
}

/* === Newsletter === */
.newsletter-section {
  background: #f5f5f7;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(0, 113, 227, 0.03);
  border-radius: 50%;
  top: -100px;
  right: -50px;
}

.newsletter-section::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(0, 113, 227, 0.03);
  border-radius: 50%;
  bottom: -50px;
  left: -50px;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.newsletter-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 12px;
  font-family: var(--font-display);
  letter-spacing: -0.003em;
}

.newsletter-content p {
  color: #86868b;
  margin-bottom: 28px;
  font-size: 17px;
  line-height: 1.47;
}

.newsletter-form-wrapper {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form-wrapper input {
  background: #fff;
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  flex: 1;
  padding: 14px 20px;
  border-radius: 980px;
  font-size: 17px;
}

.newsletter-form-wrapper input::placeholder {
  color: #86868b;
}

.newsletter-form-wrapper input:focus {
  border-color: #0071e3;
  outline: none;
}

.newsletter-form-wrapper button {
  padding: 14px 28px;
  background: #0071e3;
  color: white;
  border-radius: 980px;
  font-weight: 400;
  font-size: 17px;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.newsletter-form-wrapper button:hover {
  background: #0077ed;
}

/* === Features Bar === */
.features-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: #f5f5f7;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #0071e3;
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  background: #0071e3;
  color: white;
}

.feature-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 17px;
  color: #1d1d1f;
}

.feature-desc {
  font-size: 14px;
  color: #86868b;
  line-height: 1.47;
}

/* === Footer — Apple Footer === */
.footer {
  background: #f5f5f7;
  border-top: 1px solid #d2d2d7;
  padding: 0;
  font-family: var(--font-primary);
}

.footer-content {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr 1.4fr;
  gap: 32px;
  padding-bottom: 48px;
}

/* --- Brand Column --- */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.footer-logo {
  width: 28px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #1d1d1f;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 14px;
  line-height: 1.47;
  color: #6e6e73;
  max-width: 260px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  background: #e8e8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6e6e73;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: #0071e3;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Column --- */
.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.footer-link {
  font-size: 14px;
  color: #424245;
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.47;
  padding: 2px 0;
}

.footer-link:hover {
  color: #0071e3;
  text-decoration: underline;
}

.footer-link-all {
  font-weight: 500;
  color: #0071e3;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

.footer-link-all i {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.footer-link-all:hover i {
  transform: translateX(3px);
}

/* --- Newsletter Column --- */
.footer-col-newsletter {
  gap: 10px;
}

.footer-newsletter-text {
  font-size: 14px;
  line-height: 1.47;
  color: #6e6e73;
  margin: 0;
}

.footer-newsletter-form {
  display: flex;
  width: 100%;
  max-width: 280px;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.3s ease;
}

.footer-newsletter-form:focus-within {
  border-color: #0071e3;
}

.footer-newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #1d1d1f;
  outline: none;
  font-family: var(--font-primary);
}

.footer-newsletter-form input::placeholder {
  color: #86868b;
}

.footer-newsletter-form input:focus {
  box-shadow: none;
}

.footer-newsletter-form button {
  padding: 10px 18px;
  background: transparent;
  color: #0071e3;
  border: none;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-newsletter-form button:hover {
  color: #0077ed;
  transform: translateX(2px);
}

.footer-newsletter-note {
  font-size: 12px;
  color: #86868b;
  margin: 0;
}

/* --- Footer Bottom --- */
.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: #424245;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: #0071e3;
  text-decoration: underline;
}

.footer-bottom-sep {
  font-size: 12px;
  color: #86868b;
}

.footer-bottom-copy {
  font-size: 12px;
  color: #86868b;
  margin: 0;
}

.footer-payment-icons {
  display: flex;
  gap: 12px;
  font-size: 1.3rem;
  color: rgba(0, 0, 0, 0.2);
}

/* ============================================
   Popup Ad System — 900x300 Professional Banner
   ============================================ */

.popup-ad-overlay {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  padding: 0;
}

.popup-ad-overlay.popup-ad-active {
  pointer-events: all;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.08) 50%, transparent 100%);
  animation: popupOverlayIn 0.4s ease-out;
}

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

.popup-ad-overlay.popup-ad-exit {
  animation: popupOverlayOut 0.35s ease-in forwards;
}

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

.popup-ad-inner {
  position: relative;
  width: 900px;
  max-width: min(94vw, 900px);
  height: 300px;
  max-height: 25vh;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
  animation: popupSlideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupSlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.popup-ad-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 15% 40%, white 1px, transparent 1px),
    radial-gradient(circle at 85% 60%, white 1px, transparent 1px);
  background-size: 50px 50px, 35px 35px;
  pointer-events: none;
}

.popup-ad-glow {
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
  animation: popupGlowDrift 6s ease-in-out infinite alternate;
}

@keyframes popupGlowDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-15%, 10%) scale(1.1); }
}

/* Animated word effect on popup title */
.popup-ad-title .popup-ad-word {
  display: inline-block;
  animation: popupWordFloat 2.5s ease-in-out infinite;
  animation-fill-mode: both;
}

@keyframes popupWordFloat {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-3px); opacity: 0.85; }
}

/* Shimmer sweep across popup */
.popup-ad-inner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  pointer-events: none;
  z-index: 2;
  animation: popupShimmerSweep 5s ease-in-out infinite;
}

@keyframes popupShimmerSweep {
  0% { left: -100%; }
  50% { left: 150%; }
  100% { left: 150%; }
}

.popup-ad-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.popup-ad-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.popup-ad-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
  padding: 24px 48px 24px 32px;
  text-align: left;
}

.popup-ad-image {
  width: 160px;
  min-width: 120px;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.popup-ad-icon-circle {
  width: 100px;
  height: 100px;
  min-width: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: white;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.06);
}

.popup-ad-content {
  flex: 1;
  min-width: 0;
}

.popup-ad-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: white;
  margin-bottom: 8px;
}

.popup-ad-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1.25;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-ad-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.popup-ad-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1f;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  white-space: nowrap;
  flex-shrink: 0;
}

.popup-ad-cta:hover {
  background: #ffffff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.popup-ad-cta:active {
  transform: translateY(0) scale(0.98);
}

.popup-ad-cta i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.popup-ad-cta:hover i {
  transform: translateX(3px);
}

.popup-ad-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.1));
  width: 100%;
  z-index: 2;
}

/* Responsive: tablets */
/* Responsive: tablet landscape */
@media (max-width: 1024px) {
  .popup-ad-body {
    padding: 22px 44px 22px 28px;
    gap: 20px;
  }
  .popup-ad-image {
    width: 140px;
    min-width: 110px;
    height: 180px;
  }
  .popup-ad-icon-circle {
    width: 90px;
    height: 90px;
    min-width: 90px;
    font-size: 2.2rem;
  }
}

/* Responsive: tablet portrait */
@media (max-width: 768px) {
  .popup-ad-inner {
    width: 100%;
    max-width: 100vw;
    height: 240px;
    border-radius: 14px 14px 0 0;
  }
  .popup-ad-body {
    padding: 18px 44px 18px 22px;
    gap: 16px;
  }
  .popup-ad-image {
    width: 120px;
    min-width: 100px;
    height: 160px;
  }
  .popup-ad-icon-circle {
    width: 76px;
    height: 76px;
    min-width: 76px;
    font-size: 1.8rem;
  }
  .popup-ad-title {
    font-size: 1.15rem;
  }
  .popup-ad-desc {
    font-size: 0.82rem;
    -webkit-line-clamp: 2;
  }
  .popup-ad-cta {
    padding: 9px 20px;
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .popup-ad-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
  .popup-ad-badge {
    font-size: 0.6rem;
    padding: 3px 12px;
  }
}

/* Responsive: mobile large */
@media (max-width: 480px) {
  .popup-ad-inner {
    height: auto;
    min-height: 150px;
    max-height: 45vh;
    border-radius: 12px 12px 0 0;
  }
  .popup-ad-body {
    padding: 14px 38px 14px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .popup-ad-image {
    width: 70px;
    height: 80px;
    min-width: 70px;
  }
  .popup-ad-icon-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    font-size: 1.3rem;
  }
  .popup-ad-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 2;
    margin-bottom: 2px;
  }
  .popup-ad-desc {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-height: 1.4;
  }
  .popup-ad-cta {
    padding: 7px 14px;
    font-size: 0.72rem;
    width: 100%;
    justify-content: center;
    margin-top: 2px;
  }
  .popup-ad-content {
    flex: 1 1 100%;
    order: -1;
  }
  .popup-ad-badge {
    font-size: 0.58rem;
    padding: 2px 10px;
    margin-bottom: 4px;
  }
  .popup-ad-close {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    font-size: 0.65rem;
  }
}

/* Responsive: small mobile */
@media (max-width: 360px) {
  .popup-ad-inner {
    max-height: 50vh;
    min-height: 130px;
    border-radius: 10px 10px 0 0;
  }
  .popup-ad-body {
    padding: 12px 34px 12px 12px;
    gap: 8px;
  }
  .popup-ad-image {
    display: none;
  }
  .popup-ad-icon-circle {
    width: 42px;
    height: 42px;
    min-width: 42px;
    font-size: 1.1rem;
  }
  .popup-ad-title {
    font-size: 0.85rem;
  }
  .popup-ad-desc {
    font-size: 0.7rem;
    -webkit-line-clamp: 1;
  }
  .popup-ad-cta {
    padding: 6px 12px;
    font-size: 0.68rem;
  }
  .popup-ad-close {
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    font-size: 0.6rem;
  }
}

/* Responsive: landscape orientation on mobile */
@media (max-width: 800px) and (orientation: landscape) {
  .popup-ad-inner {
    height: 180px;
    max-height: 35vh;
  }
  .popup-ad-body {
    padding: 12px 40px 12px 18px;
    gap: 14px;
  }
  .popup-ad-image {
    width: 100px;
    height: 120px;
    min-width: 80px;
  }
  .popup-ad-icon-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    font-size: 1.4rem;
  }
  .popup-ad-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 1;
  }
  .popup-ad-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 1;
  }
  .popup-ad-cta {
    padding: 6px 14px;
    font-size: 0.72rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .popup-ad-inner {
    animation: none;
  }
  .popup-ad-overlay.popup-ad-active {
    animation: none;
  }
  .popup-ad-overlay.popup-ad-exit {
    animation: none;
  }
  .popup-ad-close:hover {
    transform: none;
  }
  .popup-ad-cta:hover {
    transform: none;
  }
}

/* === Toast === */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 24px;
  border-radius: 14px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  animation: slideInRight 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.toast.success { background: #248a3d; color: white; }
.toast.error { background: #d70015; }
.toast.info { background: #0071e3; color: white; }
.toast.warning { background: #b25000; color: white; }

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

.toast.removing {
  animation: slideOutRight 0.3s ease-in forwards;
}

@keyframes slideOutRight {
  to { transform: translateX(100%); opacity: 0; }
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: #0071e3;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 999;
}

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

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.35);
}

/* === Shop Page — Premium Redesign === */

/* --- Shop Hero --- */
.shop-hero {
  position: relative;
  padding: 80px 24px 56px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, var(--bg-secondary) 100%);
}

.shop-hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  top: -200px;
  right: -150px;
  animation: float 12s ease-in-out infinite;
  pointer-events: none;
}

.shop-hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  bottom: -120px;
  left: -120px;
  animation: float 8s ease-in-out infinite reverse;
  pointer-events: none;
}

.shop-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.shop-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ds-primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.shop-hero-badge i {
  font-size: 0.65rem;
}

.shop-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  color: #1d1d1f;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.shop-hero-desc {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* --- Category Quick Filter Chips --- */
.shop-category-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.shop-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.shop-category-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
  transform: translateY(-1px);
}

.shop-category-chip.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ds-primary);
  font-weight: 600;
}

.shop-category-chip i {
  font-size: 0.7rem;
  opacity: 0.7;
}

.shop-category-chip.active i {
  opacity: 1;
}

/* --- Sticky Filter Toolbar --- */
.shop-toolbar {
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  transition: box-shadow 0.3s ease;
}

.shop-toolbar.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.shop-toolbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.shop-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Search input inside toolbar */
.shop-toolbar-search {
  position: relative;
  flex: 1;
  max-width: 260px;
}

.shop-toolbar-search i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: rgba(0,0,0,0.3);
  pointer-events: none;
}

.shop-toolbar-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  background: rgba(0,0,0,0.03);
  font-size: 0.8rem;
  color: #1d1d1f;
  outline: none;
  transition: all 0.2s ease;
}

.shop-toolbar-search input:focus {
  border-color: var(--ds-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.shop-toolbar-search input::placeholder {
  color: rgba(0,0,0,0.25);
}

/* Styled filter selects */
.shop-filter-select {
  padding: 8px 32px 8px 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: #1d1d1f;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%237a7a7a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: all 0.2s ease;
  min-width: 100px;
}

.shop-filter-select:hover {
  border-color: rgba(0,0,0,0.15);
}

.shop-filter-select:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

/* --- Active Filter Tags --- */
.shop-filter-tags {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.shop-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ds-primary);
  animation: filterTagIn 0.25s ease-out;
}

@keyframes filterTagIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

.shop-filter-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
  font-size: 0.55rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  padding: 0;
}

.shop-filter-tag-remove:hover {
  background: var(--ds-primary);
  color: #fff;
}

/* --- Results & Grid Section --- */
.shop-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 24px 60px;
}

.shop-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.shop-results {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.4);
  font-weight: 500;
}

.shop-results strong {
  color: #1d1d1f;
  font-weight: 600;
}

/* Load more */
.shop-load-more {
  text-align: center;
  margin-top: 40px;
}

.shop-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
}

.shop-load-more-btn:hover {
  background: var(--ds-primary-focus);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

.shop-load-more-btn:active {
  transform: scale(0.97);
}

.shop-load-more-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.shop-load-more-spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.shop-load-more-btn.loading .shop-load-more-spinner {
  display: inline-block;
}

/* Clear filters button */
.shop-clear-filters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 9999px;
  font-size: 0.78rem;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-primary);
}

.shop-clear-filters:hover {
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* === Shop Page - Premium Outlook Override === */
.shop-page-premium {
  --shop-ink: #11110f;
  --shop-charcoal: #1c1b18;
  --shop-paper: #f7f3eb;
  --shop-card: #fffdf8;
  --shop-gold: #c6a15b;
  --shop-cobalt: #3157d5;
  --shop-ruby: #9e2f43;
  background: var(--shop-paper);
  color: var(--shop-ink);
  min-height: 100vh;
}

.shop-page-premium .shop-hero {
  padding: 76px 24px 34px;
  text-align: left;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,0.055) 1px, transparent 1px),
    linear-gradient(135deg, #11110f 0%, #1c1b18 54%, #2b261d 100%);
  background-size: 72px 72px, 72px 72px, auto;
  color: #fffaf0;
  border-bottom: 1px solid rgba(198,161,91,0.28);
}

.shop-page-premium .shop-hero::before,
.shop-page-premium .shop-hero::after {
  display: none;
}

.shop-page-premium .shop-hero-inner {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 44px;
  align-items: center;
}

.shop-page-premium .shop-hero-copy {
  max-width: 720px;
}

.shop-page-premium .shop-hero-badge {
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(198,161,91,0.14);
  border-color: rgba(198,161,91,0.36);
  color: #f2d38f;
  margin-bottom: 18px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.shop-page-premium .shop-hero-title {
  max-width: 760px;
  margin-bottom: 16px;
  color: #fffaf0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 5.2rem;
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 700;
}

.shop-page-premium .shop-hero-desc {
  max-width: 610px;
  margin: 0 0 26px;
  color: rgba(255,250,240,0.76);
  font-size: 1.02rem;
  line-height: 1.75;
}

.shop-page-premium .shop-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 610px;
  border: 1px solid rgba(255,250,240,0.14);
  background: rgba(255,255,255,0.045);
}

.shop-page-premium .shop-hero-stats span {
  padding: 16px 18px;
  border-right: 1px solid rgba(255,250,240,0.14);
}

.shop-page-premium .shop-hero-stats span:last-child {
  border-right: 0;
}

.shop-page-premium .shop-hero-stats strong,
.shop-page-premium .shop-hero-stats small {
  display: block;
}

.shop-page-premium .shop-hero-stats strong {
  color: #fffaf0;
  font-size: 1.05rem;
  font-weight: 800;
}

.shop-page-premium .shop-hero-stats small {
  margin-top: 4px;
  color: rgba(255,250,240,0.56);
  font-size: 0.73rem;
}

.shop-page-premium .shop-hero-gallery {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: repeat(3, 126px);
  gap: 12px;
  min-width: 0;
}

.shop-page-premium .shop-visual-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255,250,240,0.18);
  background: #222;
  box-shadow: 0 18px 45px rgba(0,0,0,0.28);
}

.shop-page-premium .shop-visual-card-main {
  grid-row: span 3;
}

.shop-page-premium .shop-visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.04);
}

.shop-page-premium .shop-visual-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 20px);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(17,17,15,0.76);
  color: #fffaf0;
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-page-premium .shop-category-chips {
  grid-column: 1 / -1;
  justify-content: flex-start;
  align-items: center;
  margin-top: 12px;
  gap: 8px;
}

.shop-page-premium .shop-category-label {
  padding: 8px 10px;
  color: rgba(255,250,240,0.52);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-page-premium .shop-category-chip {
  border-radius: 8px;
  padding: 9px 12px;
  background: rgba(255,250,240,0.08);
  border-color: rgba(255,250,240,0.14);
  color: rgba(255,250,240,0.78);
}

.shop-page-premium .shop-category-chip:hover,
.shop-page-premium .shop-category-chip.active {
  background: #fffaf0;
  border-color: #fffaf0;
  color: var(--shop-ink);
  transform: translateY(-1px);
}

.shop-page-premium .shop-toolbar {
  top: var(--nav-height);
  padding: 14px 0;
  background: rgba(247,243,235,0.9);
  border-bottom: 1px solid rgba(17,17,15,0.1);
  box-shadow: 0 12px 36px rgba(17,17,15,0.06);
}

.shop-page-premium .shop-toolbar.scrolled {
  box-shadow: 0 16px 38px rgba(17,17,15,0.12);
}

.shop-page-premium .shop-toolbar-inner {
  max-width: 1240px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 10px;
}

.shop-page-premium .shop-toolbar-left,
.shop-page-premium .shop-toolbar-right {
  gap: 10px;
}

.shop-page-premium .shop-toolbar-search {
  position: relative;
  max-width: none;
  flex: unset;
}

.shop-page-premium .shop-toolbar-search input,
.shop-page-premium .shop-filter-select,
.shop-page-premium .shop-clear-filters {
  min-height: 46px;
  border-radius: 8px;
  background-color: var(--shop-card);
  border-color: rgba(17,17,15,0.14);
  color: var(--shop-ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.shop-page-premium .shop-toolbar-search input {
  padding-left: 42px;
  font-size: 0.9rem;
}

.shop-page-premium .shop-toolbar-search i {
  left: 15px;
  color: var(--shop-cobalt);
}

.shop-page-premium .shop-toolbar-search input:focus,
.shop-page-premium .shop-filter-select:focus {
  border-color: var(--shop-cobalt);
  box-shadow: 0 0 0 3px rgba(49,87,213,0.12);
}

.shop-page-premium .shop-search-suggestions[hidden] {
  display: none;
}

.shop-page-premium .shop-search-suggestions {
  position: absolute;
  z-index: 80;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  max-height: 430px;
  overflow-y: auto;
  border: 1px solid rgba(17,17,15,0.16);
  border-radius: 8px;
  background: var(--shop-card);
  color: var(--shop-ink);
  box-shadow: 0 24px 60px rgba(17,17,15,0.22);
}

.shop-page-premium .shop-search-suggestions::-webkit-scrollbar {
  width: 4px;
}

.shop-page-premium .shop-search-suggestions::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background: var(--shop-gold);
}

.shop-page-premium .shop-search-suggestions-group:not(:last-child) {
  border-bottom: 1px solid rgba(17,17,15,0.08);
}

.shop-page-premium .shop-search-suggestion,
.shop-page-premium .shop-search-view-all {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid rgba(17,17,15,0.08);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.shop-page-premium .shop-search-suggestion:last-child {
  border-bottom: 0;
}

.shop-page-premium .shop-search-suggestion:hover,
.shop-page-premium .shop-search-suggestion.active,
.shop-page-premium .shop-search-view-all:hover,
.shop-page-premium .shop-search-view-all.active {
  background: var(--shop-ink);
  color: #fffaf0;
}

.shop-page-premium .shop-search-suggestion img,
.shop-page-premium .shop-search-category-icon {
  width: 44px;
  height: 44px;
  border-radius: 7px;
  object-fit: cover;
  background: #e4dac9;
}

.shop-page-premium .shop-search-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--shop-cobalt);
}

.shop-page-premium .shop-search-suggestion-title,
.shop-page-premium .shop-search-suggestion-meta {
  display: block;
  min-width: 0;
}

.shop-page-premium .shop-search-suggestion-title {
  overflow: hidden;
  color: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-page-premium .shop-search-suggestion-meta {
  margin-top: 3px;
  color: rgba(17,17,15,0.5);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-page-premium .shop-search-suggestion:hover .shop-search-suggestion-meta,
.shop-page-premium .shop-search-suggestion.active .shop-search-suggestion-meta {
  color: rgba(255,250,240,0.64);
}

.shop-page-premium .shop-search-suggestion i,
.shop-page-premium .shop-search-view-all i {
  color: var(--shop-ruby);
}

.shop-page-premium .shop-search-suggestion:hover i,
.shop-page-premium .shop-search-suggestion.active i,
.shop-page-premium .shop-search-view-all:hover i,
.shop-page-premium .shop-search-view-all.active i {
  color: var(--shop-gold);
}

.shop-page-premium .shop-search-view-all {
  display: flex;
  justify-content: center;
  border-bottom: 0;
  color: var(--shop-cobalt);
  font-size: 0.84rem;
  font-weight: 850;
}

.shop-page-premium .shop-search-suggestion-empty,
.shop-page-premium .shop-search-suggestion-loading {
  padding: 26px 16px;
  color: rgba(17,17,15,0.56);
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}

.shop-page-premium .shop-search-suggestion-loading .loader-spinner {
  width: 22px;
  height: 22px;
  margin: 0 auto 8px;
  border-width: 2px;
}

.shop-page-premium .shop-clear-filters:hover {
  border-color: var(--shop-ruby);
  color: var(--shop-ruby);
  background: #fff;
}

.shop-page-premium .shop-filter-tags {
  max-width: 1240px;
  padding-top: 10px;
}

.shop-page-premium .shop-filter-tag {
  border-radius: 8px;
  background: rgba(49,87,213,0.08);
  border-color: rgba(49,87,213,0.18);
  color: var(--shop-cobalt);
}

.shop-page-premium .shop-filter-tag-remove {
  background: rgba(49,87,213,0.14);
  color: var(--shop-cobalt);
}

.shop-page-premium .shop-section {
  max-width: 1240px;
  padding-top: 34px;
}

.shop-page-premium .shop-toolbar-top {
  margin-bottom: 18px;
}

.shop-page-premium .shop-results {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(17,17,15,0.6);
}

.shop-page-premium .shop-results-kicker {
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(198,161,91,0.14);
  color: #7a5d23;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-page-premium .shop-results strong {
  color: var(--shop-ink);
  font-weight: 800;
}

.shop-page-premium .product-grid {
  gap: 22px;
}

.shop-page-premium .product-card {
  border-radius: 8px;
  background: var(--shop-card);
  border: 1px solid rgba(17,17,15,0.1);
  box-shadow: 0 14px 38px rgba(17,17,15,0.08);
}

.shop-page-premium .product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 54px rgba(17,17,15,0.14);
}

.shop-page-premium .product-card-image {
  aspect-ratio: 4 / 3;
  background: #161616;
}

.shop-page-premium .product-card-category {
  color: var(--shop-cobalt);
  letter-spacing: 0;
}

.shop-page-premium .product-card-title {
  color: var(--shop-ink);
  letter-spacing: 0;
}

.shop-page-premium .product-card .add-to-cart-btn {
  border-radius: 8px;
  background: var(--shop-ink);
  color: #fffaf0;
}

.shop-page-premium .product-card .add-to-cart-btn:hover {
  background: var(--shop-cobalt);
  box-shadow: 0 10px 24px rgba(49,87,213,0.24);
}

.shop-page-premium .shop-load-more-btn {
  border-radius: 8px;
  background: var(--shop-ink);
  color: #fffaf0;
}

.shop-page-premium .shop-load-more-btn:hover {
  background: var(--shop-cobalt);
  box-shadow: 0 12px 28px rgba(49,87,213,0.24);
}

@media (max-width: 980px) {
  .shop-page-premium .shop-hero {
    padding: 56px 18px 28px;
  }

  .shop-page-premium .shop-hero-inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .shop-page-premium .shop-hero-title {
    font-size: 3.2rem;
  }

  .shop-page-premium .shop-hero-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 150px 150px;
  }

  .shop-page-premium .shop-visual-card-main {
    grid-row: span 2;
  }

  .shop-page-premium .shop-toolbar-inner {
    grid-template-columns: 1fr;
  }

  .shop-page-premium .shop-toolbar-left,
  .shop-page-premium .shop-toolbar-right {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .shop-page-premium .shop-hero {
    padding: 42px 16px 24px;
  }

  .shop-page-premium .shop-hero-title {
    font-size: 2.45rem;
    line-height: 1.04;
  }

  .shop-page-premium .shop-hero-desc {
    font-size: 0.94rem;
  }

  .shop-page-premium .shop-hero-stats {
    grid-template-columns: 1fr;
  }

  .shop-page-premium .shop-hero-stats span {
    border-right: 0;
    border-bottom: 1px solid rgba(255,250,240,0.14);
  }

  .shop-page-premium .shop-hero-stats span:last-child {
    border-bottom: 0;
  }

  .shop-page-premium .shop-hero-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 190px 112px 112px 112px;
  }

  .shop-page-premium .shop-visual-card-main {
    grid-row: span 1;
  }

  .shop-page-premium .shop-category-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .shop-page-premium .shop-category-label,
  .shop-page-premium .shop-category-chip {
    flex: 0 0 auto;
  }

  .shop-page-premium .shop-toolbar {
    position: relative;
    top: auto;
  }

  .shop-page-premium .shop-toolbar-left {
    display: grid;
    grid-template-columns: 1fr;
  }

  .shop-page-premium .shop-filter-select,
  .shop-page-premium .shop-clear-filters {
    width: 100%;
  }

  .shop-page-premium .shop-section {
    padding: 24px 16px 46px;
  }
}

/* === Product Detail — Redesigned === */
.product-page-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumb */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.product-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.product-breadcrumb a:hover {
  color: var(--accent-1);
}

.product-breadcrumb .bc-sep {
  font-size: 0.65rem;
  opacity: 0.5;
}

.product-breadcrumb .bc-current {
  color: var(--text-primary);
  font-weight: 500;
}

/* Main two-column layout */
.product-detail {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 24px 0 48px;
  align-items: start;
}

/* ── Gallery ── */
.product-gallery {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.product-main-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  cursor: zoom-in;
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-normal);
}

.product-main-image:hover {
  box-shadow: var(--shadow-lg);
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1), opacity 0.25s ease;
}

.product-main-image:hover img {
  transform: scale(1.04);
}

.product-main-image .zoom-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.7rem;
  padding: 5px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.product-main-image:hover .zoom-hint {
  opacity: 1;
}

.product-thumbnails {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.product-thumbnails::-webkit-scrollbar {
  display: none;
}

.product-thumbnail {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  opacity: 0.5;
}

.product-thumbnail.active,
.product-thumbnail:hover {
  border-color: var(--accent-1);
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Product Info Panel ── */
.product-info {
  padding-top: 8px;
}

.product-info .product-card-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--accent-1);
  background: rgba(0, 113, 227, 0.08);
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

.product-meta .stars {
  color: #ffc107;
  font-size: 1rem;
  letter-spacing: 1px;
}

.product-meta .meta-divider {
  width: 1px;
  height: 14px;
  background: var(--border-light);
}

.product-meta .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 20px;
}

.product-meta .stock-badge.in-stock {
  background: rgba(36, 138, 61, 0.08);
  color: var(--success);
}

.product-meta .stock-badge.out-of-stock {
  background: rgba(215, 0, 21, 0.08);
  color: var(--error);
}

/* Price block */
.product-price-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.product-price-block .current-price {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.product-price-block .compare-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-price-block .discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--error);
  padding: 4px 10px;
  border-radius: 20px;
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Description */
.product-description {
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.product-description p {
  margin-bottom: 12px;
}

.product-description p:last-child {
  margin-bottom: 0;
}

.product-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--accent-1);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 4px;
  transition: gap var(--transition-fast);
}

.product-read-more:hover {
  gap: 8px;
}

.product-read-more i {
  font-size: 0.7rem;
}

.product-description-expanded {
  max-height: none !important;
}

.product-description-wrap {
  margin-bottom: 24px;
}

/* Features list in description */
.product-desc-features-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 20px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-desc-features-title i {
  color: var(--accent-1);
  font-size: 0.85rem;
}

.product-desc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-desc-features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.product-desc-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-1);
}

/* Tab description panel */
.product-tab-description {
  max-width: 720px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

.product-tab-description p {
  margin-bottom: 14px;
}

.product-tab-description p:last-child {
  margin-bottom: 0;
}

.product-tab-description .product-desc-features-title {
  margin-top: 28px;
}

.product-tab-description .product-desc-features li {
  font-size: 0.88rem;
}

/* Video product info grid */
.product-video-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
  padding: 18px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
}

.product-video-spec {
  text-align: center;
  padding: 8px;
}

.product-video-spec .spec-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.product-video-spec .spec-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.product-video-spec .spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 2px;
}

/* Preview block */
.product-preview-block {
  margin: 20px 0;
  padding: 18px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.04), rgba(0, 113, 227, 0.08));
  border-left: 3px solid var(--accent-1);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.product-preview-block .preview-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-preview-block p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Actions ── */
.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  align-items: stretch;
}

.product-actions .btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-bounce);
}

.product-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.product-actions .btn-primary:active {
  transform: translateY(0);
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.quantity-selector button {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
}

.quantity-selector button:hover {
  color: var(--accent-1);
  background: rgba(0, 113, 227, 0.06);
}

.quantity-selector span {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
  transition: transform 0.15s ease;
}

.wishlist-btn-lg {
  width: 52px;
  height: auto;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg) !important;
  font-size: 1.2rem;
  transition: all var(--transition-bounce);
  flex-shrink: 0;
}

.wishlist-btn-lg:hover {
  transform: translateY(-2px) scale(1.05);
}

.wishlist-btn-lg.active-wish {
  background: rgba(215, 0, 21, 0.08) !important;
  color: var(--error) !important;
  border-color: rgba(215, 0, 21, 0.2) !important;
}

/* ── Share Row ── */
.product-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.product-share-row .share-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-share-row .share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.product-share-row .share-btn:hover {
  background: var(--accent-1);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Trust Badges ── */
.product-trust-row {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.product-trust-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 0.82rem;
  border-right: 1px solid var(--border-light);
}

.product-trust-item:last-child {
  border-right: none;
}

.product-trust-item .trust-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-1);
  font-size: 0.8rem;
  flex-shrink: 0;
}

.product-trust-item .trust-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-trust-item .trust-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ── Info Grid ── */
.product-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: var(--radius-lg);
  background: var(--border-light);
  overflow: hidden;
  margin-bottom: 0;
}

.product-info-item {
  padding: 16px;
  background: var(--bg-card);
  font-size: 0.85rem;
}

.product-info-item strong {
  display: block;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 600;
}

/* ── Tabs Section ── */
.product-tabs-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.product-tabs-header {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-tabs-header::-webkit-scrollbar {
  display: none;
}

.product-tab-btn {
  padding: 14px 24px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.product-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-1);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.product-tab-btn:hover {
  color: var(--text-primary);
}

.product-tab-btn.active {
  color: var(--accent-1);
}

.product-tab-btn.active::after {
  transform: scaleX(1);
}

.product-tab-count {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
}

.product-tab-panel {
  display: none;
  animation: tabFadeIn 0.3s ease;
}

.product-tab-panel.active {
  display: block;
}

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

/* ── Reviews Tab ── */
.reviews-summary {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
  padding: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  align-items: center;
}

.reviews-summary-big {
  text-align: center;
  min-width: 100px;
}

.reviews-summary-big .big-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
}

.reviews-summary-big .big-stars {
  color: #ffc107;
  font-size: 1rem;
  margin-top: 4px;
  letter-spacing: 2px;
}

.reviews-summary-big .big-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.reviews-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
}

.reviews-bar-row .bar-label {
  min-width: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.reviews-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border-light);
  border-radius: 4px;
  overflow: hidden;
}

.reviews-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffc107, #ffb300);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.reviews-bar-row .bar-count {
  min-width: 20px;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.review-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: box-shadow var(--transition-normal), transform var(--transition-normal);
}

.review-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 600;
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.review-comment {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ── Review Form ── */
.review-form-wrap {
  margin-top: 36px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
}

.review-form-wrap h3 {
  font-size: 1.15rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.review-form-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 4px;
}

.review-form-stars .rf-star {
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--border-light);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.review-form-stars .rf-star:hover,
.review-form-stars .rf-star.active {
  color: #ffc107;
  transform: scale(1.15);
}

/* ── Related Products ── */
.related-products-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.related-products-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.related-products-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.related-products-header a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-1);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.related-products-header a:hover {
  gap: 8px;
}

.related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ── Lightbox ── */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.product-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.product-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.25s ease;
}

.product-lightbox.open img {
  transform: scale(1);
}

.product-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.product-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.product-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.product-lightbox-prev { left: 20px; }
.product-lightbox-next { right: 20px; }

.product-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 500;
}

/* ── Sticky Mobile Purchase Bar ── */
.product-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border-light);
  padding: 12px 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-sticky-bar.visible {
  transform: translateY(0);
}

.product-sticky-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-sticky-bar .sticky-price {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.product-sticky-bar .sticky-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent-1);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.product-sticky-bar .sticky-btn:hover {
  background: var(--accent-2);
}

.product-sticky-bar .sticky-wishlist {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
}

.product-sticky-bar .sticky-wishlist:hover {
  color: var(--error);
  border-color: rgba(215, 0, 21, 0.3);
  background: rgba(215, 0, 21, 0.06);
}

.product-sticky-bar .sticky-wishlist.active-wish {
  color: var(--error);
  background: rgba(215, 0, 21, 0.08);
}

/* Desktop: hide sticky bar */
@media (min-width: 769px) {
  .product-sticky-bar { display: none !important; }
  .product-body-pad { padding-bottom: 0; }
}

/* Mobile: add body padding for sticky bar */
@media (max-width: 768px) {
  .product-body-pad { padding-bottom: 80px; }
}

/* === Auth Pages === */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px;
  border-radius: var(--radius-lg);
}

.auth-card.glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--text-muted);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  padding: 14px 16px;
}

.form-group .input-with-icon {
  position: relative;
}

.form-group .input-with-icon input {
  padding-left: 44px;
}

.form-group .input-with-icon i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent-1);
  font-weight: 600;
}

/* === Cart Page === */
.cart-page {
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.cart-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

.cart-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  align-items: start;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 20px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  align-items: center;
}

.cart-item-image {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.cart-item-info .cart-item-price {
  color: var(--accent-1);
  font-weight: 600;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.cart-item-remove {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--error);
}

.cart-summary {
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}

.cart-summary.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.cart-summary h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.9rem;
}

.summary-row.total {
  border-top: 1px solid var(--border-light);
  margin-top: 8px;
  padding-top: 20px;
  font-size: 1.1rem;
  font-weight: 700;
}

.summary-row.total .amount {
  color: var(--accent-1);
}

.checkout-btn {
  margin-top: 24px;
}

/* === Checkout Page — Redesigned === */
.checkout-page {
  padding: 24px 24px 80px;
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: hidden;
}

.checkout-hero {
  text-align: center;
  padding: 32px 0 24px;
}

.checkout-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(0, 113, 227, 0.06);
  border: 1px solid rgba(0, 113, 227, 0.12);
  border-radius: 9999px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.checkout-hero h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
  line-height: 1.2;
}

.checkout-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 460px;
  margin: 0 auto;
}

/* Step Progress */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 40px;
  padding: 0 20px;
}

.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.checkout-step .step-num {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.checkout-step.active .step-num {
  background: var(--accent-1);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 113, 227, 0.3);
}

.checkout-step.completed .step-num {
  background: var(--success);
  color: #fff;
}

.checkout-step .step-label {
  display: none;
}

.checkout-step.active .step-label,
.checkout-step.completed .step-label {
  display: inline;
}

.checkout-step-line {
  width: 48px;
  height: 2px;
  background: var(--border-light);
  margin: 0 8px;
  flex-shrink: 0;
}

.checkout-step-line.completed {
  background: var(--success);
}

/* Two-column layout */
.checkout-grid-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

/* Form column */
.checkout-form-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section card */
.checkout-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: box-shadow var(--transition-normal);
  overflow: hidden;
}

.checkout-section-card:hover {
  box-shadow: var(--shadow-sm);
}

.checkout-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.checkout-section-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 113, 227, 0.06);
  color: var(--accent-1);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.checkout-section-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.checkout-section-header .section-step-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-1);
  background: rgba(0, 113, 227, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

/* Form grid */
.checkout-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.checkout-form-grid .full-width {
  grid-column: span 2;
}

/* Form fields */
.checkout-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.92rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.checkout-field input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.checkout-field input:focus,
.checkout-field select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.1);
}

.checkout-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.checkout-field .field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Payment options */
.checkout-payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-payment-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--bg-card);
  min-width: 0;
}

.checkout-payment-card:hover {
  border-color: rgba(0, 113, 227, 0.3);
  background: rgba(0, 113, 227, 0.02);
}

.checkout-payment-card.selected {
  border-color: var(--accent-1);
  background: rgba(0, 113, 227, 0.04);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.08);
}

.checkout-payment-card input[type="radio"] {
  width: auto;
  accent-color: var(--accent-1);
  flex-shrink: 0;
}

.checkout-payment-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.checkout-payment-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.checkout-payment-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-payment-name .recommended-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(0, 113, 227, 0.08);
  padding: 2px 8px;
  border-radius: 9999px;
}

.checkout-payment-email {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-payment-email strong {
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* How to pay */
.checkout-howto {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(0, 113, 227, 0.03), rgba(0, 113, 227, 0.06));
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
}

.checkout-howto-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.checkout-howto ol {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* Transaction ID field */
.checkout-tx-field {
  position: relative;
}

.checkout-tx-field input {
  padding-left: 42px;
}

.checkout-tx-field .tx-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent-1);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ── Order Summary Sidebar ── */
.checkout-summary-col {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.checkout-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.checkout-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.checkout-summary-title h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.checkout-summary-title .item-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: auto;
}

.checkout-summary-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.checkout-summary-item {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.checkout-summary-item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.checkout-summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.checkout-summary-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-summary-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.checkout-summary-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-1);
  white-space: nowrap;
}

/* Summary totals */
.checkout-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.checkout-summary-row.total {
  padding-top: 14px;
  margin-top: 6px;
  border-top: 1px solid var(--border-light);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.checkout-summary-row.total .total-amount {
  color: var(--accent-1);
  font-size: 1.2rem;
}

/* Trust strip */
.checkout-trust-strip {
  display: flex;
  gap: 0;
  margin-top: 20px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.checkout-trust-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 8px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.checkout-trust-item:last-child {
  border-right: none;
}

.checkout-trust-item i {
  font-size: 0.85rem;
  color: var(--accent-1);
  margin-bottom: 2px;
}

.checkout-trust-item strong {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Submit button */
.checkout-submit-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  background: var(--accent-1);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-bounce);
  letter-spacing: -0.01em;
}

.checkout-submit-btn:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.checkout-submit-btn:active {
  transform: translateY(0);
}

.checkout-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Success Page ── */
.checkout-success {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 24px 80px;
}

.checkout-success-check {
  width: 88px;
  height: 88px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #34d058);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  box-shadow: 0 8px 32px rgba(36, 138, 61, 0.25);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.checkout-success h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.checkout-success .success-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.checkout-success .success-order-id {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-1);
}

/* Success details card */
.checkout-success-details {
  text-align: left;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  margin: 28px 0;
}

.checkout-success-details .detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.85rem;
}

.checkout-success-details .detail-row:last-child {
  border-bottom: none;
}

.checkout-success-details .detail-label {
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-success-details .detail-value {
  color: var(--text-primary);
  font-weight: 600;
  text-align: right;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: break-all;
}

.checkout-success-note {
  padding: 16px 20px;
  background: rgba(0, 113, 227, 0.04);
  border: 1px solid rgba(0, 113, 227, 0.1);
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 28px;
}

.checkout-success-note i {
  color: var(--accent-1);
  margin-top: 2px;
  flex-shrink: 0;
}

.checkout-success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Profile Page === */
.profile-page {
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.profile-info h1 {
  font-size: 1.6rem;
  font-weight: 700;
}

.profile-info p {
  color: var(--text-muted);
}

.profile-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 4px;
}

.profile-tab {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  color: var(--text-muted);
}

.profile-tab.active {
  background: var(--accent-gradient);
  color: white;
}

.profile-content {
  display: grid;
  gap: 24px;
}

/* === Wishlist Page === */
.wishlist-page {
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.wishlist-page h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
}

/* === Contact Page === */
.contact-page {
  padding: 40px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 40px;
}

.contact-info-cards {
  display: grid;
  gap: 20px;
}

.contact-info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-glass);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--accent-1);
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-weight: 600;
  margin-bottom: 4px;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Contact form name/email row */
.contact-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Home page value props grid */
.home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Testimonial slider — Apple Carousel */
.testimonial-slider-wrapper {
  position: relative;
  padding: 0 48px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.testimonial-slider-stage {
  overflow: hidden;
}

.testimonial-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 12px;
  scrollbar-width: none;
}

.testimonial-slider-track::-webkit-scrollbar {
  display: none;
}

.testimonial-slide {
  flex: 0 0 340px;
  scroll-snap-align: start;
  min-height: 200px;
}

.testimonial-slide > div {
  height: 100%;
}

/* Testimonial arrows */
.testimonial-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #d2d2d7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  color: #86868b;
}

.testimonial-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: #0071e3;
}

.testimonial-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.testimonial-slider-arrow--prev {
  left: 0;
}

.testimonial-slider-arrow--next {
  right: 0;
}

/* Testimonial dots */
.testimonial-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.testimonial-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d2d7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.testimonial-slider-dot.active {
  background: var(--ds-primary);
  width: 18px;
  border-radius: 3px;
}

/* Country flag slider */
.country-slider-wrapper {
  position: relative;
  padding: 0 44px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.country-slider-stage {
  overflow: hidden;
}

.country-slider-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px 8px;
  scrollbar-width: none;
}

.country-slider-track::-webkit-scrollbar {
  display: none;
}

.country-slide {
  flex: 0 0 100px;
  scroll-snap-align: start;
  transition: transform 0.3s ease;
}

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

.country-slide img {
  width: 100px;
  height: 75px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.country-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  border: 1px solid #d2d2d7;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all 0.3s ease;
  color: #86868b;
}

.country-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: #0071e3;
}

.country-slider-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.country-slider-arrow--prev {
  left: 0;
}

.country-slider-arrow--next {
  right: 0;
}

.country-slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.country-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d2d2d7;
  transition: all 0.3s ease;
  cursor: pointer;
}

.country-slider-dot.active {
  background: var(--ds-primary);
  width: 14px;
  border-radius: 3px;
}

/* Contact form wrapper (the right panel) */
.contact-form-wrapper {
  padding: 28px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
}

/* === About Page === */
.about-page {
  padding: 40px 24px;
}

.about-hero {
  text-align: center;
  padding: 60px 24px;
  max-width: 800px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.about-hero p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.value-card {
  padding: 32px;
  text-align: center;
}

.value-card .feature-icon {
  width: 64px;
  height: 64px;
  font-size: 1.6rem;
}

.value-card h3 {
  margin-bottom: 8px;
}

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

/* === Empty State === */
.empty-state {
  text-align: center;
  padding: 60px 24px;
}

.empty-state-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-state h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 500px;
  width: 100%;
  animation: scaleIn 0.3s ease-out;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

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

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
  font-size: 1.1rem;
}

.modal-close:hover {
  background: var(--bg-input);
}

/* ============================================
   Blog Styles — Apple-Inspired Design
   ============================================ */

/* Blog Page Layout */
.blog-page {
  background: #fff;
}

.blog-hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, #fff 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}

.blog-hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.blog-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ds-primary);
  margin-bottom: 20px;
}

.blog-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.blog-hero-desc {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 28px;
}

.blog-search-bar {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  padding: 4px 20px;
  transition: all 0.2s ease;
}

.blog-search-bar:focus-within {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.blog-search-bar i {
  color: rgba(0,0,0,0.3);
  font-size: 0.85rem;
}

.blog-search-bar input {
  border: none;
  background: transparent;
  padding: 12px 12px;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.blog-search-bar input:focus {
  box-shadow: none;
}

/* Featured Section */
.blog-featured-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.blog-featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.blog-featured-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16/9;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--i) * 0.1s);
}

.blog-featured-card:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
}

.blog-featured-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.blog-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.blog-featured-overlay h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin: 8px 0;
  line-height: 1.2;
}

.blog-featured-card:first-child .blog-featured-overlay h2 {
  font-size: 1.8rem;
}

.blog-card-category {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
}

/* Category Bar */
.blog-category-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.blog-category-chip {
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.blog-category-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
}

.blog-category-chip.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ds-primary);
  font-weight: 600;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  animation: fadeInUp 0.5s ease-out both;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.blog-card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.blog-card-body {
  padding: 18px;
}

.blog-card-body .blog-card-meta {
  color: rgba(0,0,0,0.4);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-excerpt {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.blog-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-tag {
  padding: 2px 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.7rem;
  color: var(--ds-primary);
  font-weight: 500;
}

.blog-load-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
}

.blog-load-more:hover {
  background: var(--ds-primary-focus);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

/* Blog Article Page */
.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-article-header {
  margin-bottom: 40px;
}

.blog-article-breadcrumb {
  margin-bottom: 20px;
}

.blog-article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-article-breadcrumb a:hover {
  color: var(--ds-primary);
}

.blog-article-category {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ds-primary);
  margin-bottom: 16px;
}

.blog-article-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 20px;
}

.blog-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-article-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-article-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.blog-article-author-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1d1d1f;
}

.blog-article-date {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.45);
}

.blog-article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-article-cover {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
}

.blog-article-cover img {
  width: 100%;
  border-radius: 14px;
}

.blog-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.7);
}

.blog-article-content p {
  margin-bottom: 1.4em;
}

.blog-article-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin: 1.8em 0 0.6em;
  letter-spacing: -0.01em;
}

.blog-article-content h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 1.4em 0 0.5em;
}

.blog-article-content img {
  border-radius: 12px;
  margin: 1.5em auto;
  max-width: 100%;
}

.blog-article-content a {
  color: var(--ds-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-content code {
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  background: rgba(0,0,0,0.04);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
}

.blog-article-content blockquote {
  border-left: 3px solid var(--ds-primary);
  padding: 16px 20px;
  margin: 1.5em 0;
  background: rgba(255, 255, 255, 0.0);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: rgba(0,0,0,0.6);
}

.blog-article-content ul, .blog-article-content ol {
  padding-left: 24px;
  margin-bottom: 1.4em;
}

.blog-article-content ul {
  list-style: disc;
}

.blog-article-content ol {
  list-style: decimal;
}

.blog-article-content li {
  margin-bottom: 0.4em;
}

.blog-article-footer {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.blog-article-share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.45);
}

.blog-share-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.35);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  font-size: 0.85rem;
  text-decoration: none;
}

.blog-share-btn:hover {
  background: var(--ds-primary);
  color: #fff;
}

.blog-back-link {
  font-size: 0.85rem;
  color: var(--ds-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.blog-back-link:hover {
  text-decoration: underline;
}

.blog-related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.blog-related-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 24px;
}

.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Blog Responsive */
@media (max-width: 768px) {
  .blog-hero-title { font-size: 2rem; }
  .blog-hero-desc { font-size: 0.9rem; }
  .blog-featured-grid { grid-template-columns: 1fr; }
  .blog-featured-card:first-child { grid-column: span 1; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-related-grid { grid-template-columns: 1fr; }
  .blog-article { padding: 24px 16px 60px; }
  .blog-article-title { font-size: 1.6rem; }
  .blog-article-content { font-size: 0.95rem; }
  .blog-article-footer { flex-direction: column; align-items: flex-start; }
  .blog-category-bar { flex-wrap: nowrap; overflow-x: auto; }
}

@media (max-width: 480px) {
  .blog-hero-title { font-size: 1.5rem; }
  .blog-grid { gap: 14px; }
  .blog-card-body { padding: 14px; }
  .blog-card-title { font-size: 0.9rem; }
}

/* Blog Post Page (SPA) - Responsive overrides for inline styles */
@media (max-width: 1024px) {
  .blog-post-wrapper {
    padding: 32px 20px !important;
  }
  .blog-post-layout {
    gap: 32px !important;
    grid-template-columns: 1fr 260px !important;
  }
}

@media (max-width: 768px) {
  .blog-post-wrapper {
    padding: 24px 16px !important;
  }
  .blog-post-layout {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .blog-post-sidebar {
    position: static !important;
    display: block !important;
  }
  .blog-article-main h1 {
    font-size: 1.6rem !important;
  }
  .blog-article-content {
    font-size: 0.95rem !important;
  }
  .blog-post-wrapper article [style*="display:flex"][style*="align-items:center"][style*="gap:16px"][style*="flex-wrap:wrap"] {
    flex-direction: column !important;
    text-align: center !important;
    align-items: center !important;
  }
  .blog-post-wrapper [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  .blog-post-wrapper [style*="repeat(auto-fill,minmax(220px,1fr))"] {
    grid-template-columns: 1fr 1fr !important;
  }
  .blog-post-wrapper > div:last-child a[href*="#/blog"] {
    width: 100% !important;
    justify-content: center !important;
  }
  .blog-post-wrapper [style*="border-radius:14px;overflow:hidden;margin-bottom:32px"] {
    margin-bottom: 20px !important;
  }

  /* Blog Listing - fix featured card on mobile */
  .blog-featured-card:first-child {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    aspect-ratio: 16/9 !important;
  }
  .blog-main-section {
    padding: 0 16px 40px !important;
  }
}

@media (max-width: 480px) {
  .blog-post-wrapper {
    padding: 20px 12px !important;
  }
  .blog-article-main h1 {
    font-size: 1.3rem !important;
  }
  .blog-article-content {
    font-size: 0.9rem !important;
  }
  .blog-post-wrapper [style*="repeat(auto-fill,minmax(220px,1fr))"] {
    grid-template-columns: 1fr !important;
  }
  .blog-post-wrapper [style*="padding:24px"] {
    padding: 16px !important;
  }
  .blog-post-wrapper [style*="margin-top:32px;padding:24px;background:#fafafa"] {
    padding: 16px !important;
  }
}

/* === Blog Ad Banners (dynamic, loaded from blog-ads.js) === */
.blog-ad-container{margin:40px 0;text-align:center;overflow:hidden;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.06);box-shadow:0 2px 12px rgba(0,0,0,.04);position:relative;transition:all .3s ease}
.blog-ad-container:hover{box-shadow:0 4px 24px rgba(0,0,0,.08);border-color:rgba(0,102,204,.12)}
.blog-ad-inner{display:flex;align-items:center;justify-content:center;width:100%;min-height:200px;background:linear-gradient(135deg,#fafafa,#f5f5f7);position:relative;padding:32px 24px}
.blog-ad-inner::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 20% 50%,rgba(0,102,204,.03) 0%,transparent 60%),radial-gradient(ellipse at 80% 50%,rgba(41,151,255,.02) 0%,transparent 60%);pointer-events:none}
.blog-ad-label{position:absolute;top:10px;right:14px;font-size:.6rem;color:rgba(0,0,0,.2);text-transform:uppercase;letter-spacing:1.2px;font-weight:600;background:rgba(0,0,0,.03);padding:2px 10px;border-radius:9999px}
.blog-ad-content{display:flex;align-items:center;gap:28px;padding:8px;position:relative;z-index:1;max-width:700px;width:100%}
.blog-ad-icon{width:72px;height:72px;border-radius:18px;background:linear-gradient(135deg,#0066cc,#2997ff);display:flex;align-items:center;justify-content:center;font-size:1.6rem;color:#fff;flex-shrink:0;box-shadow:0 4px 12px rgba(0,102,204,.25);transition:transform .3s ease,box-shadow .3s ease}
.blog-ad-container:hover .blog-ad-icon{transform:scale(1.05);box-shadow:0 6px 20px rgba(0,102,204,.35)}
.blog-ad-text{text-align:left;flex:1}
.blog-ad-text h3{font-size:1.1rem;font-weight:700;color:#1d1d1f;margin-bottom:4px;letter-spacing:-.01em;line-height:1.3}
.blog-ad-text p{font-size:.85rem;color:rgba(0,0,0,.5);line-height:1.5;margin-bottom:10px}
.blog-ad-cta{display:inline-flex;align-items:center;gap:6px;padding:8px 20px;background:linear-gradient(135deg,#0066cc,#0071e3);color:#fff;border-radius:9999px;font-size:.8rem;font-weight:500;text-decoration:none;transition:all .25s ease;letter-spacing:-.01em}
.blog-ad-cta:hover{background:linear-gradient(135deg,#0071e3,#2997ff);transform:translateY(-1px);box-shadow:0 4px 12px rgba(0,102,204,.3)}
.blog-ad-cta:active{transform:translateY(0)}
.blog-ad-cta i{font-size:.7rem;transition:transform .2s ease}
.blog-ad-cta:hover i{transform:translateX(2px)}
@media(max-width:768px){.blog-ad-container{margin:24px 0}.blog-ad-inner{min-height:auto;padding:24px 16px}.blog-ad-content{flex-direction:column;gap:16px;text-align:center}.blog-ad-text{text-align:center}.blog-ad-icon{width:56px;height:56px;font-size:1.3rem;border-radius:14px}}

/* ============================================
   Blog Listing — Google News-Inspired Premium Redesign
   ============================================ */

/* --- Hero Section --- */
.gn-hero {
  position: relative;
  padding: 80px 24px 56px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, #fff 100%);
}

.gn-hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 70%);
  top: -150px;
  left: -100px;
  pointer-events: none;
}

.gn-hero-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gn-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ds-primary);
  margin-bottom: 20px;
}

.gn-hero-title {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.gn-hero-desc {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto 28px;
}

/* --- Hero Search Bar with Autocomplete --- */
.gn-search-bar {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  padding: 4px 20px;
  transition: all 0.2s ease;
}

.gn-search-bar:focus-within {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.gn-search-bar > i {
  color: rgba(0,0,0,0.3);
  font-size: 0.85rem;
}

.gn-search-bar input {
  border: none;
  background: transparent;
  padding: 12px 12px;
  font-size: 0.9rem;
  outline: none;
  width: 100%;
}

.gn-search-bar input:focus {
  box-shadow: none;
}

/* Search Suggestions Dropdown */
.gn-search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 100;
  max-height: 380px;
  overflow-y: auto;
  animation: fadeIn 0.15s ease-out;
}

.gn-search-suggestions.active {
  display: block;
}

.gn-search-suggestions::-webkit-scrollbar {
  width: 4px;
}

.gn-search-suggestions::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 2px;
}

.gn-search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
  scroll-margin: 4px;
}

.gn-search-suggestion-item:hover,
.gn-search-suggestion-item.highlighted {
  background: rgba(0,0,0,0.04);
}

.gn-search-suggestion-item.highlighted {
  background: rgba(255, 255, 255, 0.1);
}

.gn-search-suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
}

.gn-search-suggestion-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gn-search-suggestion-info {
  flex: 1;
  min-width: 0;
}

.gn-search-suggestion-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #1d1d1f;
}

.gn-search-suggestion-category {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.gn-search-suggestion-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  color: var(--ds-primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.gn-search-suggestion-view-all:hover {
  background: rgba(0,0,0,0.04);
}

.gn-search-suggestion-empty,
.gn-search-suggestion-loading {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.gn-search-suggestion-loading .loader-spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

/* --- Hero Categories --- */
.gn-hero-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gn-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-primary);
}

.gn-category-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
  transform: translateY(-1px);
}

.gn-category-chip.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--ds-primary);
  font-weight: 600;
}

.gn-category-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(0,0,0,0.45);
}

.gn-category-chip.active .gn-category-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
}


/* --- Hero CTA Buttons --- */
.gn-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  margin-bottom: 4px;
}

.gn-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font-primary);
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}
.gn-hero-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}
.gn-hero-btn:hover i {
  transform: translateX(2px) scale(1.1);
}
.gn-hero-btn--primary {
  background: linear-gradient(135deg, var(--ds-primary), var(--ds-primary-focus));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.3);
}
.gn-hero-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 102, 204, 0.4);
}
.gn-hero-btn--primary:active {
  transform: translateY(0) scale(0.97);
}
.gn-hero-btn--secondary {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.08);
}
.gn-hero-btn--secondary:hover {
  background: rgba(0, 102, 204, 0.06);
  border-color: var(--ds-primary);
  color: var(--ds-primary);
  transform: translateY(-2px);
}
.gn-hero-btn--secondary:active {
  transform: translateY(0) scale(0.97);
}

/* --- Featured Slider Section --- */
.gn-featured-slider {
  padding: 40px 24px;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.gn-featured-slider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 40%, rgba(0,102,204,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 60%, rgba(41,151,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.gn-featured-slider-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.gn-featured-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.gn-featured-slider-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.gn-featured-slider-label i {
  color: #f59e0b;
  font-size: 0.95rem;
}

.gn-featured-slider-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Slider Stage */
.gn-slider-stage {
  overflow: hidden;
  border-radius: var(--radius-lg);
  position: relative;
}

.gn-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gn-slider-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 60px 0;
}

/* Slider Card */
.gn-slider-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.6;
  transform: scale(0.92);
  filter: saturate(0.7);
}

.gn-slider-card--active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  border-color: rgba(0,102,204,0.15);
}

.gn-slider-card:hover {
  transform: scale(0.92) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.gn-slider-card--active:hover {
  transform: scale(1) translateY(-4px);
}

.gn-slider-card-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.gn-slider-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gn-slider-card:hover .gn-slider-card-image img {
  transform: scale(1.08);
}

.gn-slider-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.05) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gn-slider-card-category {
  display: inline-block;
  width: fit-content;
  padding: 3px 10px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  margin-bottom: 8px;
}

.gn-slider-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.gn-slider-card-excerpt {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.45;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-slider-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}
.gn-slider-card-meta i {
  margin-right: 3px;
}

/* Slider Arrows */
.gn-slider-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  color: rgba(0,0,0,0.5);
  font-size: 0.8rem;
}
.gn-slider-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  color: var(--ds-primary);
  transform: scale(1.08);
}
.gn-slider-arrow:active {
  transform: scale(0.95);
}

/* Slider Dots */
.gn-slider-dots {
  display: flex;
  gap: 6px;
}
.gn-slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}
.gn-slider-dot.active {
  background: var(--ds-primary);
  width: 20px;
  border-radius: 3px;
}


/* Reduced motion for slider */
@media (prefers-reduced-motion: reduce) {
  .gn-slider-track {
    transition: none !important;
  }
  .gn-slider-card {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .gn-slider-card--active {
    transition: none !important;
  }
  .gn-slider-card:hover {
    transform: none !important;
  }
  .gn-featured-slider-nav {
    display: none !important;
  }
  .gn-slider-arrow {
    display: none;
  }
}

/* Slider Responsive */
@media (max-width: 1024px) {
  .gn-slider-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 240px;
  }
}
@media (max-width: 768px) {
  .gn-featured-slider {
    padding: 28px 16px;
  }
  .gn-featured-slider-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .gn-slider-card {
    flex: 0 0 calc(100% - 40px);
    min-width: 0;
  }
  .gn-slider-card-title {
    font-size: 0.9rem;
  }
  .gn-slider-card-excerpt {
    display: none;
  }
  .gn-hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .gn-hero-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .gn-featured-slider {
    padding: 20px 12px;
  }
  .gn-slider-card {
    flex: 0 0 calc(100% - 20px);
  }
  .gn-slider-card-meta {
    flex-direction: column;
    gap: 4px;
  }
}


/* --- Content Layout: 2-Column Grid --- */
.gn-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* --- Main Content Area --- */
.gn-main {
  min-height: 200px;
}

.gn-loading {
  display: flex;
  justify-content: center;
  padding: 60px 0;
}

/* Featured Posts Row */
.gn-featured-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.gn-featured-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: #fff;
  aspect-ratio: 16/10;
  animation: fadeInUp 0.6s ease-out both;
  animation-delay: calc(var(--i) * 0.12s);
  background: var(--bg-secondary);
}

.gn-featured-card--large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gn-featured-image {
  position: relative;
  width: 100%;
  height: 100%;
}

.gn-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gn-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.gn-featured-category {
  display: inline-block;
  padding: 4px 12px;
  background: var(--ds-primary);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
  margin-bottom: 8px;
}

.gn-featured-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-featured-card--large .gn-featured-title {
  font-size: 1.7rem;
}

.gn-featured-excerpt {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.gn-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.gn-featured-meta i {
  margin-right: 4px;
}

/* Section Header */
.gn-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ds-primary);
}

.gn-section-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gn-section-title i {
  color: var(--ds-primary);
  font-size: 1rem;
}

.gn-section-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Posts Grid */
.gn-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gn-post-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
  color: inherit;
  animation: fadeInUp 0.5s ease-out both;
  animation-delay: calc(var(--i) * 0.04s);
}

.gn-post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 25px rgba(0,0,0,0.07);
}

.gn-post-image {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-secondary);
}

.gn-post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.gn-post-category-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  background: var(--ds-primary);
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
}

.gn-post-body {
  padding: 16px;
}

.gn-post-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: rgba(0,0,0,0.4);
  margin-bottom: 6px;
}

.gn-post-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 6px;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gn-post-excerpt {
  font-size: 0.8rem;
  color: rgba(0,0,0,0.5);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}

.gn-post-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gn-post-tag {
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  font-size: 0.65rem;
  color: var(--ds-primary);
  font-weight: 500;
}

/* Ad Slot in Content */
.gn-ad-slot {
  margin: 32px 0;
}

/* Load More */
.gn-load-more {
  text-align: center;
  margin-top: 40px;
}

.gn-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--ds-primary);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-primary);
}

.gn-load-more-btn:hover {
  background: var(--ds-primary-focus);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.4);
}

.gn-load-more-btn:active {
  transform: scale(0.97);
}

/* Empty State */
.gn-empty {
  text-align: center;
  padding: 60px 24px;
}

.gn-empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

.gn-empty h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1d1d1f;
}

.gn-empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* --- Sidebar --- */
.gn-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.gn-sidebar-widget {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
}

.gn-widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(0,0,0,0.35);
  padding: 16px 18px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.gn-widget-title i {
  font-size: 0.75rem;
  color: var(--ds-primary);
}

/* Sidebar Search */
.gn-sidebar-search {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-input);
  margin: 12px 14px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 9999px;
  transition: all 0.2s ease;
}

.gn-sidebar-search:focus-within {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.gn-sidebar-search i {
  color: rgba(0,0,0,0.3);
  font-size: 0.8rem;
  margin-left: 4px;
}

.gn-sidebar-search input {
  border: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 0.85rem;
  outline: none;
  width: 100%;
}

.gn-sidebar-search input:focus {
  box-shadow: none;
}

/* Trending Posts */
.gn-trending-list {
  padding: 4px 0;
}

.gn-trending-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.gn-trending-item:hover {
  background: rgba(0,0,0,0.03);
}

.gn-trending-number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: rgba(0,0,0,0.1);
  flex-shrink: 0;
  min-width: 24px;
  line-height: 1.2;
}

.gn-trending-item:nth-child(1) .gn-trending-number { color: var(--ds-primary); opacity: 0.5; }
.gn-trending-item:nth-child(2) .gn-trending-number { color: var(--ds-primary); opacity: 0.4; }
.gn-trending-item:nth-child(3) .gn-trending-number { color: var(--ds-primary); opacity: 0.3; }

.gn-trending-info {
  flex: 1;
  min-width: 0;
}

.gn-trending-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}

.gn-trending-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.gn-trending-empty,
.gn-category-empty,
.gn-tag-empty {
  padding: 16px 18px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Category List */
.gn-category-list {
  padding: 4px 0;
}

.gn-category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(0,0,0,0.6);
  transition: all 0.15s ease;
  cursor: pointer;
}

.gn-category-item:hover {
  background: rgba(0,0,0,0.03);
  color: var(--ds-primary);
}

.gn-category-item i {
  font-size: 0.6rem;
  margin-right: 8px;
  color: rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.gn-category-item:hover i {
  color: var(--ds-primary);
  transform: translateX(2px);
}

.gn-category-item-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  background: rgba(0,0,0,0.04);
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(0,0,0,0.4);
}

.gn-category-item:hover .gn-category-item-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
}

/* Tag Cloud */
.gn-tag-cloud {
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gn-tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 9999px;
  color: rgba(0,0,0,0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  line-height: 1.4;
}

.gn-tag-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--ds-primary);
  transform: translateY(-1px);
}

/* Newsletter Widget */
.gn-widget-newsletter {
  background: linear-gradient(135deg, #f8f9fa, #f0f2f5);
}

.gn-newsletter-text {
  font-size: 0.82rem;
  color: rgba(0,0,0,0.55);
  line-height: 1.6;
  padding: 0 18px 12px;
  margin: 0;
}

.gn-newsletter-form {
  display: flex;
  align-items: center;
  margin: 0 14px 16px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 9999px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.2s ease;
}

.gn-newsletter-form:focus-within {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.gn-newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  outline: none;
  font-family: var(--font-primary);
}

.gn-newsletter-form input:focus {
  box-shadow: none;
}

.gn-newsletter-form button {
  padding: 10px 16px;
  background: transparent;
  color: var(--ds-primary);
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gn-newsletter-form button:hover {
  color: var(--ds-primary-focus);
}

/* Sidebar Ads */
.gn-sidebar .blog-ad-container {
  margin: 0;
}

.gn-sidebar .blog-ad-inner {
  min-height: auto;
  padding: 20px 16px;
}

.gn-sidebar .blog-ad-content {
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

.gn-sidebar .blog-ad-text {
  text-align: center;
}

.gn-sidebar .blog-ad-icon {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  border-radius: 12px;
}

/* --- Blog Listing Responsive --- */
@media (max-width: 1024px) {
  .gn-layout {
    grid-template-columns: 1fr 280px;
    gap: 28px;
    padding: 32px 20px 50px;
  }
  .gn-featured-row {
    grid-template-columns: 1fr 1fr;
  }
  .gn-posts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .gn-hero {
    padding: 48px 16px 36px;
  }
  .gn-hero-title {
    font-size: 2rem;
  }
  .gn-hero-desc {
    font-size: 0.9rem;
  }
  .gn-layout {
    grid-template-columns: 1fr;
    padding: 24px 16px 40px;
    gap: 32px;
  }
  .gn-sidebar {
    order: 2;
  }
  .gn-featured-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .gn-featured-card--large {
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
  .gn-featured-title {
    font-size: 1.1rem !important;
  }
  .gn-featured-excerpt {
    display: none;
  }
  .gn-featured-overlay {
    padding: 20px;
  }
  .gn-posts-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .gn-section-header {
    margin-bottom: 16px;
  }
  .gn-section-title {
    font-size: 1.1rem;
  }
  .gn-hero-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .gn-category-chip {
    font-size: 0.75rem;
    padding: 6px 14px;
    flex-shrink: 0;
  }
  .gn-search-suggestions {
    max-height: 300px;
  }
  .gn-trending-title {
    font-size: 0.8rem;
  }
  .gn-post-title {
    font-size: 0.9rem;
  }
  .gn-post-body {
    padding: 14px;
  }
}

@media (max-width: 480px) {
  .gn-hero-title {
    font-size: 1.6rem;
  }
  .gn-hero {
    padding: 36px 12px 28px;
  }
  .gn-layout {
    padding: 16px 12px 32px;
    gap: 24px;
  }
  .gn-post-body {
    padding: 12px;
  }
  .gn-post-title {
    font-size: 0.85rem;
  }
  .gn-post-excerpt {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }
  .gn-featured-title {
    font-size: 1rem !important;
  }
  .gn-featured-card {
    aspect-ratio: 16/9;
  }
  .gn-load-more-btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Animations === */
.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

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

/* === Skeleton Loader === */
.skeleton {
  background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-card) 50%, var(--bg-input) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Responsive Design === */
/* ============================================
   Responsive Design — Comprehensive
   ============================================ */

@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 1024px) {
  .hero-title { font-size: 2.8rem; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-image { max-width: 500px; margin: 0 auto; }
  .hero { min-height: auto; padding: 100px 24px 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  
  .about-hero h1 { font-size: 2.2rem; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  
  .profile-header { flex-wrap: wrap; }
  
  .admin-charts-row { grid-template-columns: 1fr; }
  
  .contact-grid { gap: 32px; }
  .home-value-grid { gap: 16px; }
  .home-testimonials-grid { gap: 12px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 44px; }

  /* Mobile Nav — Firefox-friendly slide-down */
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 20px 16px 24px;
    align-items: stretch;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: visibility 0.3s ease, opacity 0.3s ease, max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    justify-content: flex-start;
    flex: none;
    will-change: max-height, opacity;
  }
  
  .nav-links.active {
    visibility: visible;
    opacity: 1;
    max-height: 85vh;
    overflow-y: auto;
    pointer-events: all;
  }
  
  .nav-links .nav-link {
    padding: 12px 8px;
    height: auto;
    min-height: 60px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.6);
    border-radius: 14px;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: 1px solid transparent;
    position: relative;
  }
  
  .nav-links .nav-link:hover {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
  }

  .nav-links .nav-link:active {
    transform: scale(0.96);
  }
  
  .nav-links .nav-link.active::after {
    display: none;
  }
  
  .nav-links .nav-link.active {
    color: var(--ds-primary);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
  }
  
  .nav-links .nav-link i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0 auto;
    font-size: 15px;
    color: rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.04);
    border-radius: 10px;
    transition: all 0.25s ease;
  }

  .nav-links .nav-link:hover i {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.5);
  }

  .nav-links .nav-link.active i {
    background: rgba(255, 255, 255, 0.2);
    color: var(--ds-primary);
  }
  
  /* Mobile action items inside nav */
  .nav-action-mobile:not(#profileBtnMobile) {
    display: flex !important;
  }
  
  #profileBtnMobile {
    display: none !important;
  }
  
  #profileBtnMobile.show-profile {
    display: flex !important;
  }
  
  .nav-divider-mobile {
    display: block !important;
  }
  
  .nav-divider-mobile hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 8px 22px;
  }
  
  .nav-action-mobile .badge {
    position: static;
    display: inline-flex;
    margin-left: auto;
    transform: scale(0.85);
  }
  
  .nav-action-mobile .badge.visible {
    transform: scale(0.85);
  }
  
  /* Hide desktop action icons on mobile */
  .nav-actions .nav-icon-btn[aria-label="Wishlist"],
  .nav-actions .nav-icon-btn[aria-label="Cart"],
  .nav-actions .btn-sm.btn-primary {
    display: none;
  }
  
  .nav-actions #profileBtn {
    display: none !important;
  }
  
  .nav-brand-item {
    border-right: none;
    padding: 4px 0 2px;
    margin-right: 0;
    grid-column: 1 / -1;
    justify-content: center;
  }
  
  .nav-brand-item .nav-brand {
    font-size: 1rem;
    gap: 8px;
  }
  
  .nav-brand-item .brand-logo {
    width: 26px;
    height: auto;
  }
  
  .nav-divider-mobile {
    grid-column: 1 / -1;
    padding: 0;
  }
  
  .nav-action-mobile {
    grid-column: 1 / -1;
    justify-content: center !important;
    gap: 12px !important;
    padding: 4px 0 0 !important;
  }
  
  .nav-divider-mobile hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin: 0;
  }
  
  .nav-action-mobile .badge {
    position: static;
    display: inline-flex;
    margin-left: 6px;
    transform: scale(0.85);
  }
  
  .nav-action-mobile .badge.visible {
    transform: scale(0.85);
  }
  
  .nav-brand .brand-text {
    font-size: 0.95rem;
  }
  .brand-logo {
    width: 18px;
    height: auto;
  }

  .hero { padding: 60px 16px 50px; min-height: auto; }
  .hero-title { font-size: 2rem; }
  .hero-description { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .stat-number { font-size: 1.5rem; }
  .hero-badge { font-size: 0.7rem; }

  .section { padding: 48px 16px; }
  .section-title { font-size: 1.8rem; }
  .section-header { margin-bottom: 32px; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  /* Shop Page - Mobile */
  .shop-hero { padding: 48px 16px 36px; }
  .shop-hero-title { font-size: 1.8rem; }
  .shop-hero-desc { font-size: 0.9rem; }
  .shop-hero::before { width: 300px; height: 300px; top: -100px; right: -80px; }
  .shop-hero::after { width: 200px; height: 200px; bottom: -60px; left: -60px; }
  .shop-section { padding: 16px 16px 40px; }
  .shop-toolbar-inner { padding: 0 16px; flex-wrap: wrap; gap: 8px; }
  .shop-toolbar-left { flex-wrap: wrap; width: 100%; }
  .shop-toolbar-search { max-width: 100%; flex: 1 1 100%; }
  .shop-filter-select { font-size: 0.75rem; min-width: 80px; padding: 6px 28px 6px 10px; }
  .shop-filter-tags { padding: 6px 16px 0; }
  .shop-category-chips { gap: 6px; overflow-x: auto; flex-wrap: nowrap; justify-content: flex-start; padding-bottom: 4px; }
  .shop-category-chip { font-size: 0.72rem; padding: 6px 12px; flex-shrink: 0; }
  .shop-load-more-btn { width: 100%; justify-content: center; }
  .shop-toolbar-top { flex-direction: column; gap: 8px; align-items: flex-start; }

  /* Cart Page */
  .cart-content { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 12px; padding: 14px; }
  .cart-item-image { width: 80px; height: 80px; }
  .cart-item-actions { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
  .cart-summary { position: static; }
  .cart-page h1 { font-size: 1.5rem; }

  /* Product Detail — Mobile */
  .product-page-wrap { padding: 0 16px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; padding: 16px 0 32px; }
  .product-gallery { position: static; }
  .product-info h1 { font-size: 1.45rem; }
  .product-price-block .current-price { font-size: 1.6rem; }
  .product-trust-row { flex-direction: column; }
  .product-trust-item { border-right: none; border-bottom: 1px solid var(--border-light); }
  .product-trust-item:last-child { border-bottom: none; }
  .product-tabs-section { padding: 0 16px 32px; }
  .product-tabs-header { gap: 0; }
  .product-tab-btn { padding: 12px 16px; font-size: 0.82rem; }
  .reviews-summary { flex-direction: column; gap: 24px; padding: 20px; }
  .reviews-summary-big { min-width: auto; }
  .reviews-summary-big .big-number { font-size: 2.4rem; }
  .related-products-section { padding: 0 16px 60px; }
  .related-products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-sticky-bar { display: block; }
  .product-actions { display: none; }
  .product-share-row { display: none; }

  /* Checkout Page — Mobile */
  .checkout-page { padding: 12px 16px 80px; overflow-x: hidden; }
  .checkout-hero { padding: 20px 0 16px; }
  .checkout-hero h1 { font-size: 1.5rem; }
  .checkout-hero p { font-size: 0.88rem; }
  .checkout-hero-badge { font-size: 0.7rem; padding: 5px 12px; }

  /* Steps: compact on mobile */
  .checkout-steps { margin-bottom: 24px; padding: 0; gap: 0; }
  .checkout-step .step-label { display: none !important; }
  .checkout-step .step-num { width: 28px; height: 28px; font-size: 0.72rem; }
  .checkout-step-line { width: 32px; margin: 0 6px; }

  /* Grid: single column */
  .checkout-grid-layout { grid-template-columns: 1fr; gap: 20px; }
  .checkout-summary-col { position: static; order: -1; }

  /* Section cards */
  .checkout-section-card { padding: 20px; border-radius: var(--radius-lg); }
  .checkout-section-header { margin-bottom: 16px; gap: 10px; }
  .checkout-section-icon { width: 36px; height: 36px; font-size: 0.85rem; }
  .checkout-section-header h3 { font-size: 0.95rem; }
  .checkout-section-header .section-step-num { display: none; }

  /* Form grid: single column */
  .checkout-form-grid { grid-template-columns: 1fr; gap: 14px; }
  .checkout-form-grid .full-width { grid-column: span 1; }

  /* Form fields */
  .checkout-field input,
  .checkout-field select { padding: 12px 14px; font-size: 0.88rem; }

  /* Payment cards */
  .checkout-payment-card { padding: 14px 16px; gap: 12px; }
  .checkout-payment-icon { width: 38px; height: 38px; font-size: 1rem; }
  .checkout-payment-name { font-size: 0.88rem; }
  .checkout-payment-email { font-size: 0.75rem; }
  .checkout-payment-email strong { font-size: 0.72rem; }

  /* Howto */
  .checkout-howto { padding: 14px 16px; margin-bottom: 16px; }
  .checkout-howto ol { font-size: 0.78rem; }

  /* Transaction field */
  .checkout-tx-field input { padding: 12px 14px 12px 38px; font-size: 0.88rem; }
  .checkout-tx-field .tx-icon { left: 12px; font-size: 0.8rem; }

  /* Summary card */
  .checkout-summary-card { padding: 20px; border-radius: var(--radius-lg); }
  .checkout-summary-items { gap: 12px; margin-bottom: 16px; padding-bottom: 16px; }
  .checkout-summary-item-img { width: 44px; height: 44px; }
  .checkout-summary-item-name { font-size: 0.82rem; }
  .checkout-summary-item-price { font-size: 0.82rem; }

  /* Submit button: show mobile, hide summary */
  .checkout-submit-mobile { display: flex !important; }
  .checkout-summary-col .checkout-submit-btn { display: none !important; }

  /* Trust strip */
  .checkout-trust-strip { margin-top: 16px; }
  .checkout-trust-item { padding: 10px 6px; font-size: 0.65rem; }
  .checkout-trust-item i { font-size: 0.78rem; }
  .checkout-trust-item strong { font-size: 0.68rem; }

  /* Contact Page */
  .contact-grid { grid-template-columns: 1fr; gap: 24px; }
  .contact-page { padding: 24px 16px; }
  .contact-page .section-title { font-size: 1.6rem; }
  .contact-name-row { grid-template-columns: 1fr !important; gap: 16px !important; }
  .contact-info-card { padding: 20px !important; }
  
  /* Home page value props & testimonials */
  .home-value-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .testimonial-slider-wrapper { padding: 0; }
  .testimonial-slide { flex: 0 0 280px; }
  .testimonial-slider-arrow { display: none; }
  .country-slider-wrapper { padding: 0 32px; }
  .country-slide { flex: 0 0 80px; }
  .country-slide img { width: 80px; height: 60px; }
  .country-slider-arrow { display: none; }
  
  /* Contact form wrapper */
  .contact-form-wrapper { padding: 20px !important; }

  /* About Page */
  .about-page { padding: 24px 16px; }
  .about-hero { padding: 40px 16px; }
  .about-hero h1 { font-size: 1.8rem; }
  .about-hero p { font-size: 1rem; }
  .about-values { grid-template-columns: 1fr; gap: 16px; padding: 24px 16px; }
  .value-card { padding: 24px !important; }

  /* Auth Pages */
  .auth-card { padding: 28px; }
  .auth-header h1 { font-size: 1.5rem; }
  .auth-header p { font-size: 0.9rem; }

  /* Profile Page */
  .profile-page { padding: 24px 16px; }
  .profile-header { flex-direction: column; text-align: center; gap: 16px; margin-bottom: 24px; }
  .profile-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding: 3px;
  }
  .profile-tabs::-webkit-scrollbar {
    display: none;
  }
  .profile-tab {
    padding: 10px 16px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .profile-info h1 { font-size: 1.3rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 40px 16px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links h4 { margin-bottom: 12px; }

  .features-bar { grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 24px 16px; }
  
  /* Trust bar on home */
  .mobile-trust-bar {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .mobile-trust-bar > div:nth-child(2) {
    border-right: none !important;
  }
  .mobile-trust-bar > div {
    padding: 20px 12px !important;
  }

  /* Wishlist page */
  .wishlist-page { padding: 24px 16px; }
  .wishlist-page h1 { font-size: 1.5rem; }

  /* Admin table overflow fix */
  .admin-table-container { overflow-x: auto; }
  .admin-table td { white-space: normal; min-width: 100px; }
  .admin-header { padding: 16px 20px; }
  .admin-content { padding: 16px; }
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Newsletter */
  .newsletter-section { padding: 60px 16px; }
  .newsletter-content h2 { font-size: 1.6rem; }
  .newsletter-form-wrapper { flex-direction: column; }
  .newsletter-form-wrapper button { width: 100%; }

  /* Forgot password */
  .forgot-password-page { padding: 24px 16px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: var(--radius-md); }
  .product-card-body { padding: 12px; }
  .product-card-title { font-size: 0.82rem; }
  .product-card-category { font-size: 0.65rem; }
  .current-price { font-size: 0.95rem; }
  .compare-price { font-size: 0.75rem; }
  .product-card-footer { padding: 0 12px 12px; }
  .product-card .add-to-cart-btn { font-size: 0.75rem; padding: 8px; }
  .product-card-rating { font-size: 0.7rem; }
  .product-card-badge { font-size: 0.6rem; padding: 3px 8px; }

  .hero-title { font-size: 1.6rem; }
  .hero-description { font-size: 0.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 16px; margin-top: 32px; padding-top: 24px; }
  .hero-stats > div { flex: 1; min-width: 80px; }
  
  .features-bar { grid-template-columns: 1fr; gap: 8px; padding: 20px 16px; }
  .feature-item { padding: 16px; }
  .feature-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  
  .nav-actions { gap: 0px; }
  .nav-icon-btn { width: 30px; height: 30px; font-size: 0.8rem; }
  .nav-container { padding: 0 10px; gap: 4px; }
  .nav-link { padding: 0 10px; font-size: 11px; }
  
  .auth-card { padding: 20px; }
  .auth-header { margin-bottom: 20px; }
  .auth-header h1 { font-size: 1.3rem; }
  .auth-form .form-group input { padding: 12px 14px; }
  .form-group .input-with-icon input { padding-left: 40px; }
  .form-group .input-with-icon i { left: 12px; font-size: 0.85rem; }

  .section-title { font-size: 1.5rem; }
  .section-label { font-size: 0.7rem; padding: 4px 12px; }
  .section-subtitle { font-size: 0.9rem; }
  .section { padding: 32px 12px; }

  .cart-item { grid-template-columns: 60px 1fr; gap: 10px; padding: 12px; }
  .cart-item-image { width: 60px; height: 60px; }
  .cart-item-info h3 { font-size: 0.85rem; }
  .cart-summary { padding: 20px; }
  .checkout-btn { font-size: 0.9rem; }

  .product-page-wrap { padding: 0 12px; }
  .product-detail { padding: 12px 0 24px; }
  .product-info h1 { font-size: 1.25rem; }
  .product-price-block .current-price { font-size: 1.4rem; }
  .product-video-specs { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; }
  .quantity-selector { width: 100%; justify-content: center; }
  .product-info-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .product-tabs-section { padding: 0 12px 24px; }
  .product-tab-btn { padding: 10px 12px; font-size: 0.78rem; }
  .review-form-wrap { padding: 20px; }
  .related-products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .related-products-header h2 { font-size: 1.15rem; }

  .checkout-page { padding: 10px 12px 60px; }
  .checkout-hero { padding: 16px 0 12px; }
  .checkout-hero h1 { font-size: 1.3rem; }
  .checkout-hero-badge { font-size: 0.65rem; padding: 4px 10px; }
  .checkout-step .step-num { width: 26px; height: 26px; font-size: 0.68rem; }
  .checkout-step-line { width: 24px; margin: 0 4px; }
  .checkout-section-card { padding: 16px; }
  .checkout-section-header { margin-bottom: 14px; }
  .checkout-section-icon { width: 32px; height: 32px; font-size: 0.8rem; }
  .checkout-section-header h3 { font-size: 0.9rem; }
  .checkout-form-grid { gap: 12px; }
  .checkout-field input,
  .checkout-field select { padding: 11px 12px; font-size: 0.85rem; }
  .checkout-payment-card { padding: 12px 14px; gap: 10px; }
  .checkout-payment-icon { width: 34px; height: 34px; font-size: 0.9rem; border-radius: 8px; }
  .checkout-payment-name { font-size: 0.82rem; }
  .checkout-howto { padding: 12px 14px; }
  .checkout-howto ol { font-size: 0.75rem; gap: 4px; }
  .checkout-summary-card { padding: 16px; }
  .checkout-summary-item { gap: 10px; }
  .checkout-summary-item-img { width: 40px; height: 40px; border-radius: 8px; }
  .checkout-summary-item-name { font-size: 0.78rem; }
  .checkout-summary-item-meta { font-size: 0.7rem; }
  .checkout-summary-item-price { font-size: 0.78rem; }
  .checkout-summary-row { font-size: 0.82rem; }
  .checkout-summary-row.total { font-size: 1rem; }
  .checkout-summary-row.total .total-amount { font-size: 1.1rem; }
  .checkout-success { padding: 32px 12px 50px; }
  .checkout-success-check { width: 68px; height: 68px; font-size: 1.6rem; margin-bottom: 20px; }
  .checkout-success h2 { font-size: 1.3rem; }
  .checkout-success-details { padding: 18px; }
  .checkout-success-details .detail-row { padding: 8px 0; font-size: 0.82rem; }
  .checkout-success-note { padding: 12px 14px; font-size: 0.8rem; }
  .checkout-success-actions { flex-direction: column; gap: 10px; }
  .checkout-success-actions .ds-pill-cta,
  .checkout-success-actions .ds-pill-cta-secondary { width: 100%; justify-content: center; padding: 12px 20px; font-size: 0.88rem; }

  .profile-page { padding: 16px 12px; }
  .profile-avatar { width: 60px; height: 60px; font-size: 1.5rem; }
  .profile-tab { padding: 8px 14px; font-size: 0.75rem; }

  .contact-page { padding: 16px 12px; }
  .contact-info-card { padding: 16px !important; }
  .contact-info-icon { width: 40px; height: 40px; font-size: 1rem; }
  .contact-name-row { grid-template-columns: 1fr !important; gap: 12px !important; }
  .contact-form-wrapper { padding: 16px !important; }

  .about-page { padding: 16px 12px; }
  .about-hero { padding: 24px 12px; }
  .about-hero h1 { font-size: 1.5rem; }
  .about-values { padding: 16px 12px; }
  .about-values + div { margin-top: 24px !important; padding: 0 12px !important; }
  .about-values + div > div { padding: 32px 20px !important; }
  .about-values + div > div > div { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .footer { padding: 32px 12px 0; }
  .footer-grid { gap: 24px; }
  .footer-bottom p { font-size: 0.75rem; }
  .footer-links a { font-size: 0.85rem; }
  .social-links { justify-content: center; }
  .footer-brand p { text-align: center; }
  .footer-brand .brand-text { text-align: center; display: block; }
  .footer-logo { margin: 0 auto 12px; }
  .footer-links { text-align: center; }
  .footer-newsletter { text-align: center; }
  .newsletter-form { max-width: 320px; margin: 0 auto; }


  .category-card-name { font-size: 0.9rem; }
  
  .modal-content { padding: 24px 20px; margin: 0 12px; }
  .modal-header h2 { font-size: 1rem; }
  
  .toast { min-width: auto; width: calc(100vw - 32px); font-size: 0.85rem; }
  .toast-container { bottom: 16px; right: 16px; left: 16px; }
  
  .back-to-top { width: 40px; height: 40px; font-size: 0.9rem; bottom: 70px; right: 16px; }
}

@media (max-width: 360px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card-title { font-size: 0.75rem; }
  .current-price { font-size: 0.85rem; }
  .product-card-rating { font-size: 0.65rem; }
  .product-card-body { padding: 8px; }
  .product-card-footer { padding: 0 8px 8px; }
  .product-card .add-to-cart-btn { font-size: 0.7rem; padding: 6px; }
  
  .hero-title { font-size: 1.3rem; }
  .about-values + div > div > div {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .about-values + div > div > div > div > div:first-child {
    font-size: 1.8rem !important;
  }
}

/* ============================================
   CyberPunk Admin Dashboard — Futuristic Design
   Dark theme, neon accents, glassmorphism, glow effects
   ============================================ */

/* --- Admin Background Grid Pattern (Cyberpunk city grid) --- */
/* Admin modal form scroll support */
.admin-page .modal-content:has(textarea[rows]) {
  max-height: 85vh;
  overflow-y: auto;
}

/* Admin modal header stays fixed */
.admin-page .modal-content:has(textarea[rows]) .modal-header {
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
  padding-bottom: 12px;
}

/* Hide footer when admin is active */
body:has(.admin-page) .footer {
  display: none !important;
}

.admin-page {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  padding-top: 0;
  background: #111111;
  position: relative;
  --text-muted: rgba(255, 255, 255, 0.6);
  --text-secondary: rgba(255, 255, 255, 0.75);

/* --- Sidebar — Dark glass with neon accents --- */
.admin-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1a1a1a;
  border-right: 1px solid #2a2a2a;
  padding: 20px 12px;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 1;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
}

.admin-sidebar::-webkit-scrollbar {
  width: 3px;
}

.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
}

.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  padding: 0 8px 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  position: relative;
}

.admin-sidebar-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #2997ff, transparent);
  border-radius: 1px;
}

.admin-sidebar-header .brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  background: linear-gradient(135deg, #2997ff, #0066cc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.admin-sidebar-header .brand-icon {
  font-size: 1.2rem;
  text-shadow: none;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

/* --- Nav Items — Cyberpunk neon glow --- */
.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  text-decoration: none;
  position: relative;
}

.admin-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #555;
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.admin-nav-item:hover::before {
  opacity: 1;
}

.admin-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 500;
}

.admin-nav-item.active::before {
  opacity: 1;
  background: #ffffff;
}

.admin-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease;
}

.admin-nav-item.active i {
  color: #ffffff;
}

.admin-nav-item:hover i {
  color: rgba(255, 255, 255, 0.7);
}

.admin-divider {
  border: none;
  border-top: 1px solid #2a2a2a;
  margin: 12px 8px;
}

/* --- Main Content Area --- */
.admin-main {
  flex: 1;
  padding: 0;
  overflow-x: hidden;
  z-index: 1;
  position: relative;
}

/* --- Header Bar — Dark glass --- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 24, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.admin-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-header h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: #555;
  border-radius: 2px;
}

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

/* Admin override: convert shared .glass class to solid black & white */
.admin-page .glass {
  background: #1a1a1a !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid #2a2a2a !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.admin-page .glass:hover {
  background: #222222 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: #3a3a3a !important;
}

/* Admin card — solid dark card for listing pages (popup ads, blog ads) */
.admin-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.admin-card:hover {
  background: #222222;
  border-color: #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.admin-badge {
  padding: 5px 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

/* --- Admin Content — Dark canvas --- */
.admin-content {
  padding: 24px 32px 40px;
  position: relative;
  background: #111111;
  min-height: calc(100vh - var(--nav-height) - 80px);
}

/* ============================================
   Stat Cards — Holographic Neon
   ============================================ */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.admin-stat-card {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  background: rgba(10, 10, 24, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.35s ease;
}

.admin-stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 40%, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.35s ease;
  opacity: 0.5;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(255, 255, 255, 0.2);
}

.admin-stat-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 40%, rgba(255, 255, 255, 0.4));
}

/* Neon glow corner accent */
.admin-stat-card::after {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 40px;
  height: 40px;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 0 14px 0 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.admin-stat-card:hover::after {
  opacity: 1;
}

.admin-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  position: relative;
}

.admin-stat-icon::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: inherit;
  opacity: 0.3;
  filter: blur(8px);
  z-index: -1;
}

.admin-stat-info {
  flex: 1;
}

.admin-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 4px;
  color: #ffffff;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.admin-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-stat-change {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
}

.admin-stat-change.positive {
  color: #00e676;
  background: rgba(0, 230, 118, 0.08);
  border-color: rgba(0, 230, 118, 0.15);
  box-shadow: 0 0 8px rgba(0, 230, 118, 0.05);
}

.admin-stat-change.negative {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.15);
}

/* Stat icon neon colors */
.admin-stat-icon.revenue {
  background: #2a2a2a;
  color: #ffffff;
}

.admin-stat-icon.orders {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.7);
}

.admin-stat-icon.products {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.7);
}

.admin-stat-icon.users {
  background: #2a2a2a;
  color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Charts — Neon Glow Graphs
   ============================================ */
.admin-charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-chart-card {
  background: rgba(10, 10, 24, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.admin-chart-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25), 0 0 15px rgba(255, 255, 255, 0.1);
}

.admin-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-chart-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-primary);
}

.admin-chart-link {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  transition: color 0.2s ease;
}

.admin-chart-link:hover {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.admin-chart-body {
  padding: 20px;
}

/* --- Bar Chart — Neon gradient bars --- */
.admin-bar-chart {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 0 4px;
}

.admin-bar-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.admin-bar-value {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
}

.admin-bar-track {
  width: 100%;
  max-width: 36px;
  height: 120px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px 6px 0 0;
  position: relative;
  overflow: hidden;
}

.admin-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, #ffffff, rgba(255,255,255,0.4));
  border-radius: 6px 6px 0 0;
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.admin-bar-label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

/* --- Pie Legend --- */
.admin-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.admin-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.admin-legend-count {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  font-family: 'SF Mono', 'Menlo', monospace;
}

/* ============================================
   Tables — Frosted Glass with Neon Header
   ============================================ */
.admin-table-container {
  overflow-x: auto;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  background: #1a1a1a;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th {
  text-align: left;
  padding: 14px 16px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  font-family: var(--font-primary);
}

.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.85rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.06);
}

.admin-table tr:nth-child(even):hover td {
  background: rgba(255, 255, 255, 0.14);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================
   Toolbar & Search — Dark glass input
   ============================================ */
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 14px;
  min-width: 280px;
  transition: all 0.25s ease;
}

.admin-search:focus-within {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.1);
}

.admin-search i {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
}

.admin-search input {
  border: none;
  background: transparent;
  padding: 11px 0;
  font-size: 0.85rem;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
}

.admin-search input::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.admin-search input:focus {
  box-shadow: none;
}

/* ============================================
   Action Buttons — Neon glow
   ============================================ */
.admin-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.admin-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.2);
}

.admin-action-btn.delete:hover {
  background: rgba(255, 82, 82, 0.08);
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.15);
  box-shadow: 0 0 10px rgba(255, 82, 82, 0.05);
}

/* ============================================
   Toggle Switch — Neon toggle
   ============================================ */
.admin-toggle {
  width: 40px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 2px;
  position: relative;
}

.admin-toggle.active {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.admin-toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.admin-toggle.active .admin-toggle-knob {
  transform: translateX(18px);
  background: #ffffff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* --- Status Select --- */
.admin-status-select {
  padding: 5px 10px;
  font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.admin-status-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.admin-status-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* --- Sidebar toggle (mobile) --- */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
}

.admin-sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.admin-sidebar-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* --- Filter Select --- */
.filter-select {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.filter-select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.filter-select:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

/* ============================================
   Responsive — Cyberpunk Mobile
   ============================================ */

@media (max-width: 1024px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-charts-row {
    grid-template-columns: 1fr;
  }
  .admin-header {
    padding: 16px 24px;
  }
  .admin-content {
    padding: 20px 24px 32px;
  }
}

@media (max-width: 768px) {
  .admin-sidebar {
    width: 100%;
    max-width: 280px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 5000;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 60px 16px 20px;
  }
  .admin-sidebar-nav.open {
    display: flex;
  }
  .admin-sidebar-nav {
    display: none;
  }
  .admin-sidebar-toggle {
    display: flex;
    position: fixed;
    top: 56px;
    left: 12px;
    z-index: 5001;
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  }
  .admin-page {
    flex-direction: column;
  }
  .admin-header {
    padding: 14px 20px;
  }
  .admin-header h2 {
    font-size: 1.1rem;
  }
  .admin-content {
    padding: 16px;
  }
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .admin-stat-card {
    padding: 18px;
    gap: 14px;
  }
  .admin-stat-value {
    font-size: 1.3rem;
  }
  .admin-charts-row {
    grid-template-columns: 1fr;
  }
  .admin-search {
    min-width: 100%;
  }
  .newsletter-section { padding: 60px 16px; }
}

@media (max-width: 480px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-stat-card {
    padding: 14px;
    gap: 10px;
  }
  .admin-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
  .admin-stat-value {
    font-size: 1.15rem;
  }
  .admin-stat-label {
    font-size: 0.7rem;
  }
  .admin-stat-change {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .admin-content {
    padding: 12px;
  }
  .admin-header {
    padding: 12px 16px;
  }
  .admin-table th,
  .admin-table td {
    padding: 10px 12px;
  }
  .admin-table-container {
    border-radius: 10px;
  }
}



/* ============================================
   Media Manager — Neon Upload Zone
   ============================================ */

.media-manager {
  padding: 0;
}

.media-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
}

.media-count {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.media-filter-group {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.03);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.media-filter-btn {
  padding: 6px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
}

.media-filter-btn:hover {
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.05);
}

.media-filter-btn.active {
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);
}

.media-filter-btn i {
  margin-right: 4px;
}

/* --- Upload Dropzone --- */
.media-upload-area {
  margin-bottom: 20px;
}

.media-upload-dropzone {
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background: rgba(10, 10, 24, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.media-upload-dropzone::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent, rgba(255, 255, 255, 0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.media-upload-dropzone:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.0);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.0);
}

.media-upload-dropzone.dragover {
  border-text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1), inset 0 0 30px rgba(255, 255, 255, 0.1);
}

.media-upload-icon {
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.media-upload-dropzone.dragover .media-upload-icon {
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* --- Upload Progress --- */
.media-upload-progress {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.media-upload-item {
  padding: 12px 16px;
  background: rgba(10, 10, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.media-upload-item-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.media-upload-item-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-upload-item-size {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
  margin-left: 12px;
}

.media-upload-item-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.media-upload-item-fill {
  height: 100%;
  background: linear-gradient(90deg, #2997ff, #0066cc);
  border-radius: 2px;
  transition: width 0.3s ease;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

.media-upload-item-status {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

/* --- Media Grid --- */
.media-grid {
  min-height: 200px;
}

.media-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.media-item {
  background: rgba(10, 10, 24, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.media-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 12px rgba(255, 255, 255, 0.0);
  transform: translateY(-1px);
}

.media-item-preview {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.media-item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.media-item:hover .media-item-preview img {
  transform: scale(1.05);
}

.media-item-info {
  padding: 10px 12px;
}

.media-item-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.media-item-meta {
  display: flex;
  gap: 8px;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
}

.media-item-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.media-item:hover .media-item-actions {
  opacity: 1;
}

.media-action-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 24, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.75rem;
  backdrop-filter: blur(8px);
}

.media-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.2);
}

.media-action-btn.delete:hover {
  background: rgba(255, 82, 82, 0.1);
  color: #ff5252;
  border-color: rgba(255, 82, 82, 0.15);
}

.media-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.4);
}

.media-empty h3 {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

/* ============================================
   Admin Settings — Neon Glass Cards
   ============================================ */

.admin-settings {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.settings-card {
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  overflow: hidden;
  background: #1a1a1a;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

.settings-card:hover {
  border-color: #3a3a3a;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.settings-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

.settings-card-header i {
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  width: 24px;
  text-align: center;
}

.settings-card-header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.settings-card-body {
  padding: 20px;
}

.input-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0 14px;
  transition: all 0.25s ease;
}

.input-with-icon:focus-within {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.0);
}

.input-with-icon i {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.input-with-icon input {
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 0.85rem;
  width: 100%;
  color: rgba(255, 255, 255, 0.8);
  outline: none;
}

.input-with-icon input:focus {
  box-shadow: none;
}

@media (max-width: 768px) {
  .admin-settings {
    max-width: 100%;
  }
  .media-grid-items {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
  .media-toolbar {
    padding: 12px 16px;
  }
  .settings-card-body {
    padding: 16px;
  }
}
/* ============================================
   Admin Form Design System — Premium & Professional
   ============================================ */

/* --- Form Grid Helpers --- */
.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

/* --- Admin Form Card (groups related fields) --- */
.admin-form-card {
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-form-card:hover {
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

/* --- Section header inside admin forms --- */
.admin-form-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.admin-form-section-header i {
  color: var(--accent-1);
  font-size: 0.95rem;
  width: 24px;
  text-align: center;
}

/* --- Premium Form Group styling --- */
.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(0,0,0,0.65);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-form-group label .required {
  color: var(--error);
  font-size: 0.85rem;
}

.admin-form-group label i {
  font-size: 0.75rem;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
}

/* --- Premium form inputs inside modals --- */
.modal-content input[type="text"],
.modal-content input[type="url"],
.modal-content input[type="email"],
.modal-content input[type="number"],
.modal-content input[type="tel"],
.modal-content input[type="password"],
.modal-content textarea,
.modal-content select {
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #1d1d1f;
  transition: all 0.25s ease;
  width: 100%;
  outline: none;
  font-family: var(--font-primary);
}

.modal-content input[type="text"]:hover,
.modal-content input[type="url"]:hover,
.modal-content input[type="email"]:hover,
.modal-content input[type="number"]:hover,
.modal-content input[type="tel"]:hover,
.modal-content input[type="password"]:hover,
.modal-content textarea:hover,
.modal-content select:hover {
  border-color: rgba(0,0,0,0.15);
}

.modal-content input[type="text"]:focus,
.modal-content input[type="url"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="number"]:focus,
.modal-content input[type="tel"]:focus,
.modal-content input[type="password"]:focus,
.modal-content textarea:focus,
.modal-content select:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0,0,0,0.04);
}

.modal-content textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.6;
}

.modal-content select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237a7a7a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

/* --- Custom Checkbox styling --- */
.admin-form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 0;
}

.admin-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 1.5px solid rgba(0,0,0,0.15);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  position: relative;
}

.admin-form-checkbox input[type="checkbox"]:checked {
  background: var(--ds-primary);
  border-color: var(--ds-primary);
}

.admin-form-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.admin-form-checkbox input[type="checkbox"]:focus {
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.admin-form-checkbox span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- Color picker row (popup ad form) --- */
.admin-form-color-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-form-color-row input[type="color"] {
  width: 44px;
  height: 44px;
  padding: 3px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1.5px solid rgba(0,0,0,0.08);
  cursor: pointer;
  background: #fff;
}

.admin-form-color-row input[type="color"]:hover {
  border-color: rgba(0,0,0,0.15);
}

.admin-form-color-row input[type="text"] {
  flex: 1;
}

/* --- Hint text --- */
.admin-form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.4;
}

/* Admin Invoice & Quotation Generator */
.admin-invoice-page,.admin-quotation-page{padding:0}
.admin-invoice-layout{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
@media(max-width:1100px){.admin-invoice-layout{grid-template-columns:1fr}}
.admin-invoice-form{display:flex;flex-direction:column;gap:4px}
.admin-invoice-form-section{background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-md);padding:16px 18px;margin-bottom:12px}
.admin-invoice-form-section h4{font-size:.85rem;font-weight:600;margin-bottom:12px;display:flex;align-items:center;gap:8px;color:var(--accent-1);padding-bottom:8px;border-bottom:1px solid var(--border-light)}
.admin-invoice-form-section h4 i{font-size:.9rem}
.admin-invoice-form-section .form-group{margin-bottom:0}
.admin-invoice-form-section .form-group label{font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px;color:var(--text-muted)}
.admin-invoice-form-section .form-group input[readonly]{background:rgba(0,0,0,.02);cursor:default;border-style:dashed}
.admin-invoice-item-row,.admin-quote-service-row{display:grid;grid-template-columns:1fr 80px 100px 80px 30px;gap:8px;align-items:end;margin-bottom:8px}
.admin-invoice-item-row .form-group,.admin-quote-service-row .form-group{margin-bottom:0}
.admin-invoice-item-row .form-group label,.admin-quote-service-row .form-group label{font-size:.65rem;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:var(--text-muted)}
.admin-invoice-item-row input,.admin-quote-service-row input{padding:8px 10px;font-size:.82rem}
.admin-invoice-preview-wrapper{position:sticky;top:calc(var(--nav-height) + 20px);display:flex;flex-direction:column;gap:8px}
@media(max-width:1100px){.admin-invoice-preview-wrapper{position:static}}
.admin-invoice-preview-header{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;background:var(--bg-card);border:1px solid var(--border-light);border-radius:var(--radius-md) var(--radius-md) 0 0}
.admin-invoice-preview-header h4{font-size:.85rem;font-weight:600;display:flex;align-items:center;gap:8px}
.admin-invoice-preview-container{background:#e8e8e8;border:1px solid var(--border-light);border-radius:0 0 var(--radius-md) var(--radius-md);padding:16px;overflow-x:auto;min-height:400px}
.admin-invoice-preview{width:1100px;min-height:550px;margin:0 auto;border-radius:4px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.12);background:#fff}
.admin-invoice-preview.landscape{aspect-ratio:2/1}

/* Professional billing workbench */
.admin-invoice-page,
.admin-quotation-page {
  --doc-ink: #111827;
  --doc-muted: #64748b;
  --doc-line: rgba(15, 23, 42, 0.1);
  --doc-panel: #ffffff;
  --doc-soft: #f8fafc;
  --doc-blue: #2563eb;
  --doc-green: #059669;
}

.admin-doc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 52%, #eef6ff 100%);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
}

.admin-quotation-page .admin-doc-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffb 52%, #ecfdf5 100%);
}

.admin-doc-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--doc-muted);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.admin-doc-hero h3 {
  margin: 0;
  color: var(--doc-ink);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.admin-doc-hero p {
  margin: 6px 0 0;
  color: var(--doc-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.admin-doc-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-doc-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-doc-stat {
  background: var(--doc-panel);
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  padding: 15px;
}

.admin-doc-stat span {
  display: block;
  color: var(--doc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-doc-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--doc-ink);
  font-size: 1.2rem;
  font-weight: 850;
}

.admin-doc-empty {
  padding: 44px 24px;
  text-align: center;
  color: var(--doc-muted);
}

.admin-doc-empty i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--doc-soft);
  color: var(--doc-blue);
  font-size: 1.15rem;
}

.admin-quotation-page .admin-doc-empty i {
  color: var(--doc-green);
}

.admin-doc-empty strong {
  display: block;
  color: var(--doc-ink);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.admin-doc-form-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px 20px;
  border: 1px solid var(--doc-line);
  border-radius: 14px;
  background: var(--doc-panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.05);
}

.admin-doc-back {
  width: 34px;
  height: 34px;
  border: 1px solid var(--doc-line);
  border-radius: 10px;
  background: var(--doc-soft);
  color: var(--doc-ink);
  cursor: pointer;
  margin-right: 10px;
}

.admin-doc-title-row {
  display: flex;
  align-items: center;
}

.admin-doc-title-row h3 {
  margin: 0;
  color: var(--doc-ink);
  font-size: 1.18rem;
  font-weight: 800;
}

.admin-doc-title-row p {
  margin: 4px 0 0;
  color: var(--doc-muted);
  font-size: 0.8rem;
}

.admin-invoice-layout {
  grid-template-columns: minmax(420px, 0.95fr) minmax(500px, 1.05fr);
  gap: 20px;
}

.admin-invoice-form-section {
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.admin-invoice-form-section h4 {
  color: var(--doc-ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-invoice-form-section h4 i {
  color: var(--doc-blue);
}

.admin-quotation-page .admin-invoice-form-section h4 i {
  color: var(--doc-green);
}

.admin-invoice-form-section .form-group label {
  letter-spacing: 0.04em;
}

.admin-invoice-item-row,
.admin-quote-service-row {
  padding: 10px;
  border: 1px solid var(--doc-line);
  border-radius: 12px;
  background: var(--doc-soft);
}

.admin-line-remove {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  cursor: pointer;
}

.admin-line-remove:hover {
  background: rgba(239, 68, 68, 0.16);
}

.admin-invoice-preview-wrapper {
  gap: 0;
}

.admin-invoice-preview-header {
  border-radius: 14px 14px 0 0;
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
  padding: 12px 16px;
}

.admin-invoice-preview-header span {
  color: rgba(255,255,255,0.64) !important;
}

.admin-invoice-preview-container {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  border-radius: 0 0 14px 14px;
  padding: 18px;
}

.admin-invoice-preview {
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

@media(max-width:1200px) {
  .admin-invoice-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width:760px) {
  .admin-doc-hero,
  .admin-doc-form-header {
    grid-template-columns: 1fr;
  }

  .admin-doc-actions {
    justify-content: flex-start;
  }

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

  .admin-invoice-item-row,
  .admin-quote-service-row {
    grid-template-columns: 1fr !important;
  }
}


/* --- Video fields section (highlighted) --- */
.admin-form-video-section {
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s ease;
}

.admin-form-video-section:hover {
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

/* --- Modal form adjustments --- */
.modal-content form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Wider modals for forms */
.admin-page .modal-content:has(form) {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 28px 0;
}

/* Wider landscape form modals (product creation, etc.) */
.admin-page .modal-content[style*="max-width:900px"] {
  max-width: 900px !important;
  width: min(94vw, 900px);
}

.admin-page .modal-content:has(textarea) {
  max-width: 720px;
}

.admin-page .modal-content[style*="max-width:900px"]:has(textarea) {
  max-width: 900px !important;
  width: min(94vw, 900px);
}

/* Modal header — sticky at top so close button always visible */
.admin-page .modal-content:has(form) .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-card);
}

.admin-page .modal-content:has(form) .modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1d1d1f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-page .modal-content:has(form) .modal-header h2 i {
  color: var(--accent-1);
  font-size: 1rem;
}

/* --- Form submit button area — sticky at bottom so save always visible --- */
.admin-form-actions {
  display: flex;
  gap: 12px;
  padding: 16px 28px 20px;
  border-top: 1px solid rgba(0,0,0,0.08);
  margin: 0 -28px;
  position: sticky;
  bottom: 0;
  z-index: 5;
  background: var(--bg-card);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

.admin-form-actions .btn {
  flex: 1;
}

/* ============================================
   Admin Form Responsive Breakpoints
   ============================================ */

@media (max-width: 1024px) {
  .admin-page .modal-content:has(form) {
    max-width: 580px;
    padding: 24px;
  }
}

@media (max-width: 768px) {
  .admin-form-grid-2,
  .admin-form-grid-3 {
    grid-template-columns: 1fr;
  }
  .admin-page .modal-content:has(form) {
    max-width: 100%;
    margin: 0 8px;
    padding: 24px 20px;
    border-radius: var(--radius-md);
  }
  .admin-form-card {
    padding: 16px;
  }
  .admin-content { padding: 16px; }
  .admin-table td { white-space: normal; min-width: 80px; }
  .admin-form-section-header {
    font-size: 0.85rem;
  }
  .modal-content input[type="text"],
  .modal-content input[type="url"],
  .modal-content input[type="email"],
  .modal-content input[type="number"],
  .modal-content input[type="tel"],
  .modal-content input[type="password"],
  .modal-content textarea,
  .modal-content select {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .admin-page .modal-content:has(form) {
    padding: 16px 12px;
    border-radius: 10px 10px 0 0;
    max-height: 92vh;
    max-width: 100%;
    margin: 0 auto;
    height: auto;
    min-height: 50vh;
  }
  .admin-page .modal-overlay {
    padding: 8px;
  }
  .admin-form-actions {
    padding: 12px 12px 16px;
    margin: 0 -12px;
  }
  .admin-form-card {
    padding: 12px;
    border-radius: 8px;
  }
  .admin-form-section-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .admin-page .modal-content:has(form) {
    padding: 16px 12px;
    margin: 0 4px;
  }
  .modal-content input[type="text"],
  .modal-content input[type="url"],
  .modal-content input[type="email"],
  .modal-content input[type="number"],
  .modal-content input[type="tel"],
  .modal-content input[type="password"],
  .modal-content textarea,
  .modal-content select {
    padding: 9px 12px;
    font-size: 0.82rem;
  }
}

/* ============================================
   SPurno Video Player Styles
   ============================================ */

.spurno-player {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.spurno-player .spurno-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.spurno-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  z-index: 2;
  box-shadow: 0 4px 24px rgba(255, 255, 255, 0.5);
}

.spurno-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--accent-1);
}

.spurno-play-btn svg {
  margin-left: 3px;
}

/* Controls */
.spurno-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
  padding: 40px 16px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.spurno-player:hover .spurno-controls,
.spurno-player:focus .spurno-controls {
  opacity: 1;
  pointer-events: all;
}

/* Progress bar */
.spurno-progress {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
  transition: height 0.15s ease;
}

.spurno-progress:hover {
  height: 6px;
}

.spurno-progress-filled {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  border-radius: 2px;
  transition: width 0.1s linear;
  position: relative;
}

.spurno-progress-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-1);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow: 0 0 8px rgba(108,99,255,0.5);
}

.spurno-progress:hover .spurno-progress-thumb {
  opacity: 1;
}

/* Control buttons */
.spurno-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transition: background 0.2s;
}

.spurno-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Watermark */
.spurno-watermark {
  font-family: 'Inter', sans-serif;
  pointer-events: none;
}

.spurno-watermark-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Fullscreen */
.spurno-player:-webkit-full-screen {
  border-radius: 0;
}

.spurno-player:fullscreen {
  border-radius: 0;
}

.spurno-player:-webkit-full-screen .spurno-controls {
  padding: 60px 24px 20px;
}

.spurno-player:fullscreen .spurno-controls {
  padding: 60px 24px 20px;
}

/* ============================================
   Forgot Password Page Styles
   ============================================ */

.forgot-password-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

/* ============================================
   Video Player in Product Detail
   ============================================ */

.product-main-image .spurno-player {
  border-radius: var(--radius-md) !important;
}

.product-main-image .spurno-player .spurno-video {
  max-height: 500px;
}

.product-main-image .spurno-player:-webkit-full-screen .spurno-video {
  max-height: 100vh;
}

.product-main-image .spurno-player:fullscreen .spurno-video {
  max-height: 100vh;
}

/* ============================================
   Transaction / Payment Styles
   ============================================ */

.payment-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-normal);
}

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

.payment-option:has(input:checked) {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.05);
}

.tx-id-display {
  font-family: monospace;
  font-size: 0.85rem;
  background: var(--bg-input);
  padding: 4px 10px;
  border-radius: 4px;
  word-break: break-all;
}

.tx-status-approve {
  color: var(--success);
}

.tx-status-pending {
  color: var(--warning);
}

.tx-instructions {
  padding: 16px;
  background: rgba(108, 99, 255, 0.06);
  border: 1px solid rgba(108, 99, 255, 0.12);
  border-radius: var(--radius-sm);
}

.tx-instructions ol {
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 480px) {
  .tx-instructions ol {
    font-size: 0.78rem;
  }
}

/* ============================================
   ADMIN PANEL — Two-Tone: White Background + Black Text
   Overrides ALL admin components to pure white bg
   and black text (#1d1d1f). Easy to find and edit below.
   ============================================ */
.admin-page {
  background: #ffffff;
}
.admin-main {
  background: #ffffff;
}
.admin-content {
  background: #ffffff;
}

/* --- Sidebar --- */
.admin-sidebar {
  background: #ffffff !important;
  border-right: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 1px 0 8px rgba(0,0,0,0.04) !important;
}
.admin-sidebar-header .brand-text {
  color: #1d1d1f !important;
}
.admin-sidebar-header .brand-icon {
  color: #0066cc !important;
  text-shadow: none !important;
}
.admin-nav-item {
  color: rgba(0,0,0,0.6) !important;
}
.admin-nav-item:hover {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
}
.admin-nav-item:hover i {
  color: #1d1d1f !important;
}
.admin-nav-item.active {
  background: rgba(0,102,204,0.08) !important;
  color: #0066cc !important;
}
.admin-nav-item.active::before {
  background: #0066cc !important;
}
.admin-nav-item.active i {
  color: #0066cc !important;
}
.admin-nav-item i {
  color: rgba(0,0,0,0.3) !important;
}
.admin-divider {
  border-top: 1px solid rgba(0,0,0,0.06) !important;
}

/* --- Sidebar Toggle (mobile) --- */
.admin-sidebar-toggle {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.48) !important;
}
.admin-sidebar-toggle:hover {
  background: #ffffff !important;
  color: #1d1d1f !important;
  text-shadow: none !important;
}
.admin-sidebar-toggle.active {
  background: #ffffff !important;
  color: #1d1d1f !important;
  text-shadow: none !important;
}

/* --- Sidebar scrollbar --- */
.admin-sidebar::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.15) !important;
}

/* --- Header --- */
.admin-header {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-header h2 {
  color: #1d1d1f !important;
}
.admin-header h2::before {
  background: #0066cc !important;
}

/* --- Badge --- */
.admin-badge {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.48) !important;
}

/* --- Glass cards (dashboard, charts) --- */
.admin-page .glass {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.admin-page .glass:hover {
  background: #fafafa !important;
  border-color: rgba(0,0,0,0.12) !important;
}

/* --- Admin Card (listing cards) --- */
.admin-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.admin-card:hover {
  background: #fafafa !important;
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* --- Stat Cards --- */
.admin-stat-card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04) !important;
}
.admin-stat-card::before {
  background: linear-gradient(135deg, rgba(0,102,204,0.1), transparent 40%, rgba(0,102,204,0.05)) !important;
}
.admin-stat-card:hover {
  border-color: rgba(0,102,204,0.2) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
.admin-stat-card:hover::before {
  background: linear-gradient(135deg, rgba(0,102,204,0.15), transparent 40%, rgba(0,102,204,0.08)) !important;
}
.admin-stat-card::after {
  border-top: 2px solid #0066cc !important;
  border-right: 2px solid #0066cc !important;
}
.admin-stat-value {
  color: #1d1d1f !important;
}
.admin-stat-label {
  color: rgba(0,0,0,0.48) !important;
}
.admin-stat-change {
  color: rgba(0,0,0,0.48) !important;
  background: #f5f5f7 !important;
}
.admin-stat-change.positive {
  color: #10b981 !important;
  background: rgba(16,185,129,0.08) !important;
}
.admin-stat-change.negative {
  color: #ef4444 !important;
  background: rgba(239,68,68,0.08) !important;
}

/* --- Stat Icons --- */
.admin-stat-icon.revenue {
  background: rgba(0,102,204,0.1) !important;
  color: #0066cc !important;
}
.admin-stat-icon.orders {
  background: rgba(16,185,129,0.1) !important;
  color: #10b981 !important;
}
.admin-stat-icon.products {
  background: rgba(0,102,204,0.1) !important;
  color: #0066cc !important;
}
.admin-stat-icon.users {
  background: rgba(245,158,11,0.1) !important;
  color: #f59e0b !important;
}

/* --- Chart Cards --- */
.admin-chart-card {
  background: #ffffff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-chart-card:hover {
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.admin-chart-header {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-chart-header h3 {
  color: #1d1d1f !important;
}
.admin-chart-link {
  color: #0066cc !important;
}
.admin-chart-link:hover {
  text-decoration: underline !important;
  text-shadow: none !important;
}
.admin-chart-body {
  padding: 20px;
}

/* --- Bar Chart --- */
.admin-bar-fill {
  background: linear-gradient(to top, #0066cc, rgba(0,102,204,0.3)) !important;
}
.admin-bar-value {
  color: rgba(0,0,0,0.48) !important;
}
.admin-bar-label {
  color: rgba(0,0,0,0.48) !important;
}

/* --- Legend --- */
.admin-legend-item {
  color: rgba(0,0,0,0.64) !important;
}
.admin-legend-count {
  color: rgba(0,0,0,0.48) !important;
}

/* --- Tables --- */
.admin-table-container {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-table th {
  color: rgba(0,0,0,0.6) !important;
  background: #f5f5f7 !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-table td {
  color: rgba(0,0,0,0.64) !important;
  border-bottom: 1px solid rgba(0,0,0,0.04) !important;
}
.admin-table tr:last-child td {
  border-bottom: none !important;
}
.admin-table tr:nth-child(even) td {
  background: #fafafa !important;
}
.admin-table tr:nth-child(even):hover td {
  background: #f0f0f0 !important;
}
.admin-table tr:hover td {
  background: rgba(0,0,0,0.02) !important;
}

/* --- Search --- */
.admin-search {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-search:focus-within {
  border-color: #0066cc !important;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1) !important;
}
.admin-search i {
  color: rgba(0,0,0,0.3) !important;
}
.admin-search input::placeholder {
  color: rgba(0,0,0,0.3) !important;
}

/* --- Action Buttons --- */
.admin-action-btn {
  background: #f5f5f7 !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.48) !important;
}
.admin-action-btn:hover {
  background: #ffffff !important;
  color: #1d1d1f !important;
}
.admin-action-btn.delete:hover {
  background: rgba(239,68,68,0.08) !important;
  color: #ef4444 !important;
}

/* --- Toggle --- */
.admin-toggle {
  background: rgba(0,0,0,0.1) !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
}
.admin-toggle.active {
  background: #0066cc !important;
  border-color: #0066cc !important;
}
.admin-toggle-knob {
  background: #ffffff !important;
}
.admin-toggle.active .admin-toggle-knob {
  background: #ffffff !important;
}

/* --- Status Select --- */
.admin-status-select {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.64) !important;
}
.admin-status-select:hover {
  border-color: rgba(0,0,0,0.15) !important;
}
.admin-status-select:focus {
  border-color: #0066cc !important;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1) !important;
}

/* --- Filter Select --- */
.filter-select {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  color: rgba(0,0,0,0.64) !important;
}

/* --- Settings Panel --- */
.settings-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}
.settings-card:hover {
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}
.settings-card-header {
  color: #1d1d1f !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.settings-card-header i {
  text-shadow: none !important;
}

/* --- Input with Icon --- */
.input-with-icon {
  background: rgba(0,0,0,0.04) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.input-with-icon:focus-within {
  border-color: #0066cc !important;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1) !important;
}
.input-with-icon i {
  color: rgba(0,0,0,0.3) !important;
}
.input-with-icon input {
  color: #1d1d1f !important;
}
.input-with-icon input::placeholder {
  color: rgba(0,0,0,0.3) !important;
}

/* --- Form Section --- */
.admin-form-section-header {
  color: #1d1d1f !important;
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-form-card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-form-card:hover {
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* --- Video Section --- */
.admin-form-video-section {
  background: linear-gradient(135deg, rgba(0,102,204,0.04), transparent) !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-form-video-section:hover {
  border-color: rgba(0,0,0,0.12) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
}

/* --- Modal Form Headers --- */
.admin-page .modal-content:has(textarea[rows]) .modal-header {
  background: #ffffff !important;
}
.admin-page .modal-content:has(form) .modal-header h2 {
  color: #1d1d1f !important;
}
.admin-page .modal-content:has(form) .modal-header {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}
.admin-form-checkbox input[type="checkbox"]:focus {
  box-shadow: 0 0 0 3px rgba(0,102,204,0.15) !important;
}

/* --- Primary Button in Admin --- */
.admin-page .btn-primary {
  box-shadow: 0 4px 12px rgba(0,102,204,0.25) !important;
}
.admin-page .btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0,102,204,0.35) !important;
}

/* --- Secondary Button --- */
.btn-secondary {
  background: #f5f5f7 !important;
  color: #1d1d1f !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
}
.btn-secondary:hover {
  background: #ffffff !important;
}

/* --- Mobile sidebar (fix for white bg) --- */
@media (max-width: 768px) {
  .admin-sidebar {
    background: #ffffff !important;
    box-shadow: 4px 0 20px rgba(0,0,0,0.08) !important;
  }
  .admin-sidebar-toggle {
    display: flex !important;
    position: fixed !important;
    top: 56px;
    left: 12px;
    z-index: 5001;
    width: 40px;
    height: 40px;
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    color: rgba(0,0,0,0.48) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
  }
}

/* --- Empty state icon margins --- */
.admin-page i, .admin-page .fas {
  margin-right: 0;
}

}

/* ============================================
   Admin Ads & Popup Ads — Redesigned Cards
   ============================================ */

/* Ad Card */
.admin-ad-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  opacity: 1;
}

.admin-ad-card.inactive {
  opacity: 0.55;
}

.admin-ad-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.2);
}

.admin-ad-card-body {
  display: grid;
  grid-template-columns: 280px 1fr auto;
  gap: 0;
  align-items: stretch;
}

/* Live Preview Mockup */
.admin-ad-preview {
  position: relative;
  background: var(--bg-secondary);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-light);
  min-height: 160px;
  overflow: hidden;
}

.admin-ad-preview-mockup {
  width: 100%;
  max-width: 260px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.admin-ad-preview-header {
  height: 6px;
  background: linear-gradient(90deg, #e0e0e0, #f0f0f0);
}

.admin-ad-preview-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.admin-ad-preview-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
}

.admin-ad-preview-text {
  flex: 1;
  min-width: 0;
}

.admin-ad-preview-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.admin-ad-preview-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-ad-preview-cta {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  margin-top: 6px;
}

/* Animated shimmer effect on preview */
.admin-ad-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: adShimmer 3s ease-in-out infinite;
}

@keyframes adShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Ad Info Section */
.admin-ad-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.admin-ad-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-ad-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.admin-ad-badge.active {
  background: rgba(36, 138, 61, 0.1);
  color: var(--success);
}

.admin-ad-badge.inactive {
  background: rgba(134, 134, 139, 0.1);
  color: var(--text-muted);
}

.admin-ad-badge.animated {
  background: rgba(255, 193, 7, 0.12);
  color: #b25000;
}

.admin-ad-badge.type-badge {
  background: rgba(0, 113, 227, 0.08);
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.65rem;
}

.admin-ad-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
}

.admin-ad-headline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.admin-ad-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-ad-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.admin-ad-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-ad-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border-light);
}

/* Actions Column */
.admin-ad-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  border-left: 1px solid var(--border-light);
  justify-content: center;
}

/* Popup Ad Card */
.admin-popup-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.admin-popup-card.inactive {
  opacity: 0.55;
}

.admin-popup-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.2);
}

.admin-popup-card-body {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 0;
  align-items: stretch;
}

/* Popup Preview */
.admin-popup-preview {
  position: relative;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border-light);
  min-height: 150px;
  overflow: hidden;
}

.admin-popup-preview-mockup {
  width: 180px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

.admin-popup-preview-banner {
  padding: 18px 14px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.admin-popup-preview-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: popupGlow 4s ease-in-out infinite;
}

@keyframes popupGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.admin-popup-preview-icon {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
  position: relative;
}

.admin-popup-preview-title {
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  position: relative;
}

.admin-popup-preview-desc {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.3;
  position: relative;
}

.admin-popup-preview-cta {
  display: inline-block;
  padding: 4px 12px;
  background: #fff;
  border-radius: 20px;
  font-size: 0.55rem;
  font-weight: 700;
  margin-top: 8px;
  position: relative;
}

/* Animated text effect on popup preview */
.admin-popup-preview-title .animated-word {
  display: inline-block;
  animation: wordPop 2s ease-in-out infinite;
}

.admin-popup-preview-title .animated-word:nth-child(2) { animation-delay: 0.3s; }
.admin-popup-preview-title .animated-word:nth-child(3) { animation-delay: 0.6s; }

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

/* Shimmer across popup preview */
.admin-popup-preview::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  animation: popupShimmer 4s ease-in-out infinite;
}

@keyframes popupShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* Popup Info */
.admin-popup-info {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

/* Ad Stats Bar (shown above cards) */
.admin-ads-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.admin-ads-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  text-align: center;
  transition: all var(--transition-normal);
}

.admin-ads-stat:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.admin-ads-stat .stat-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 0.9rem;
}

.admin-ads-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.admin-ads-stat .stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Responsive: mobile */
@media (max-width: 768px) {
  .admin-ad-card-body {
    grid-template-columns: 1fr;
  }
  .admin-ad-preview {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    min-height: 120px;
    padding: 12px;
  }
  .admin-ad-actions {
    flex-direction: row;
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 12px 16px;
    justify-content: flex-end;
  }
  .admin-popup-card-body {
    grid-template-columns: 1fr;
  }
  .admin-popup-preview {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    min-height: 110px;
    padding: 12px;
  }
  .admin-ads-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .admin-ad-info { padding: 14px 16px; }
  .admin-popup-info { padding: 14px 16px; }
}
