/* =============================================
   FlyBoy Simulation — Main Stylesheet
   ============================================= */

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

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── Design Tokens ── */
/* Colors pulled from Flyboy Simulations logo:
   Royal blue (#2463BE) = "flyboy" text
   Sky blue   (#2BBAE0) = logo sky/clouds
   Rust red   (#B83C16) = vintage plane
*/
:root {
  --bg-primary:      #080E1C;
  --bg-secondary:    #0C1528;
  --bg-tertiary:     #111D33;
  --bg-card:         #0E1830;
  --accent-blue:     #2463BE;
  --accent-blue-dim: #1A52A2;
  --accent-sky:      #2BBAE0;
  --accent-sky-dim:  #1EA0C4;
  --accent-rust:     #B83C16;
  --accent-gold:     #ffd700;
  --accent-gold-dim: #ccaa00;
  --text-primary:    #EDF2FA;
  --text-secondary:  #7D95BF;
  --text-muted:      #445272;
  --border:          #192840;
  --border-bright:   #253F6A;
  --danger:          #ff4757;
  --success:         #2ed573;
  --radius-sm:       6px;
  --radius-md:       12px;
  --radius-lg:       20px;
  --shadow-card:     0 4px 28px rgba(0,0,0,0.55);
  --shadow-glow:     0 0 28px rgba(36,99,190,0.28);
  --shadow-sky:      0 0 20px rgba(43,186,224,0.22);
  --shadow-gold:     0 0 20px rgba(255,215,0,0.2);
  --transition:      all 0.22s ease;
  --nav-height:      130px;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { color: var(--text-secondary); }

a { color: var(--accent-blue); transition: var(--transition); }
a:hover { color: #5bb3ff; }

/* ── Utilities ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-center { text-align: center; }

.w-full { width: 100%; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-blue);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-blue-dim);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-gold {
  background: var(--accent-gold);
  color: #000;
  font-weight: 700;
}
.btn-gold:hover {
  background: var(--accent-gold-dim);
  color: #000;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-bright);
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--danger);
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-blue { background: rgba(30,144,255,0.15); color: var(--accent-blue); border: 1px solid rgba(30,144,255,0.3); }
.badge-gold { background: rgba(255,215,0,0.12); color: var(--accent-gold); border: 1px solid rgba(255,215,0,0.25); }
.badge-green { background: rgba(46,213,115,0.12); color: var(--success); border: 1px solid rgba(46,213,115,0.25); }

/* ── Tag ── */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
}

/* ── Section spacing ── */
.section { padding: 72px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { font-size: 16px; max-width: 520px; margin: 0 auto; }

/* =============================================
   NAVIGATION
   ============================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(15, 22, 41, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo:hover { opacity: 0.88; }

.nav-logo-img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(36,99,190,0.4));
  transition: var(--transition);
}

.nav-logo:hover .nav-logo-img {
  filter: drop-shadow(0 2px 14px rgba(43,186,224,0.6));
}

/* Fallback text logo (shown if image missing) */
.nav-logo-fallback {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo-plane {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px rgba(36,99,190,0.7));
}

.logo-accent { color: var(--accent-sky); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 19px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
}

.cart-icon-btn:hover {
  border-color: var(--accent-blue);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.cart-icon-btn svg { width: 18px; height: 18px; }

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  background: var(--accent-gold);
  color: #000;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.cart-badge.hide { display: none; }

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.6); }
  100% { transform: scale(1); }
}

.cart-badge.pop { animation: badgePop 0.3s ease; }

.nav-account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent-blue);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-account-btn:hover {
  background: var(--accent-blue-dim);
  color: #fff;
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1;
  margin-left: auto;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10,14,26,0.95) 0%, rgba(10,14,26,0.70) 55%, rgba(10,14,26,0.88) 100%),
    url('https://images.unsplash.com/photo-1436891620584-47fd0e565afb?w=1920&q=80') center/cover no-repeat;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 50%, rgba(43,186,224,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent-sky);
  border-radius: 2px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 span { color: var(--accent-gold); }

.hero-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 56px;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.hero-stat strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.hero-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =============================================
   FEATURES STRIP
   ============================================= */

.features-strip {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(36,99,190,0.14);
  border: 1px solid rgba(43,186,224,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 13px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   CATEGORIES
   ============================================= */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky));
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

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

.category-card:hover::before { transform: scaleX(1); }

.category-emoji {
  font-size: 2.2rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.category-card h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.category-card p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.category-card .cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-blue);
}

/* =============================================
   PRODUCT GRID & CARDS
   ============================================= */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.sale-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-rust);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.free-badge  { background: var(--accent-sky) !important; color: #0C1F4A !important; }
.free-price  { color: var(--accent-sky) !important; }
.owned-badge {
  position: absolute;
  top: 40px;
  left: 12px;
  background: #16a34a;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10,14,26,0.75);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: capitalize;
  border: 1px solid var(--border);
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.stars { color: var(--accent-gold); font-size: 13px; letter-spacing: 1px; }
.rating-count { font-size: 12px; color: var(--text-muted); }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 16px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.price-block { display: flex; flex-direction: column; gap: 1px; }
.price-original {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-current {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* =============================================
   PROMO BANNER
   ============================================= */

.promo-banner {
  background: linear-gradient(90deg, rgba(36,99,190,0.14), rgba(43,186,224,0.08), rgba(184,60,22,0.06), rgba(36,99,190,0.14));
  border: 1px solid rgba(30,144,255,0.2);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.promo-text strong {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.promo-text p { font-size: 13px; color: var(--text-secondary); }

/* =============================================
   STORE PAGE — LAYOUT
   ============================================= */

.page-hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}

.page-hero h1 { margin-bottom: 6px; }

.store-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 40px 0;
  align-items: start;
  position: relative;
}

/* Filter Sidebar */
.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  max-height: calc(100vh - var(--nav-height) - 40px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  align-self: start;
}
.filter-sidebar::-webkit-scrollbar { width: 4px; }
.filter-sidebar::-webkit-scrollbar-track { background: transparent; }
.filter-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.filter-sidebar h2 {
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.filter-group { margin-bottom: 24px; }
.filter-group h3 {
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
  user-select: none;
}

.filter-option:hover { color: var(--text-primary); }

.filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--accent-blue);
  cursor: pointer;
}

.filter-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.price-slider {
  width: 100%;
  accent-color: var(--accent-blue);
  cursor: pointer;
  margin-bottom: 8px;
}

.price-display {
  font-size: 13px;
  color: var(--text-secondary);
}

.price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* About card */
.about-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
}

.about-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  opacity: 0.6;
}

.about-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.about-body p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 600px) {
  .about-card {
    flex-direction: column;
    padding: 28px 24px;
    text-align: center;
  }
}

/* Sort bar */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.results-count {
  font-size: 14px;
  color: var(--text-secondary);
}

.sort-select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 8px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.sort-select:focus { border-color: var(--accent-blue); }

/* =============================================
   AUTH PAGE
   ============================================= */

.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(30,144,255,0.06) 0%, transparent 70%),
    var(--bg-primary);
}

.auth-box {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

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

.auth-logo .logo-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-primary);
}

.auth-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

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

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 11px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.13);
}

.form-group input::placeholder { color: var(--text-muted); }

.form-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 18px;
  text-align: center;
  font-weight: 500;
}

.form-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.form-footer a { color: var(--accent-blue); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.shake { animation: shake 0.35s ease; }

/* =============================================
   DASHBOARD
   ============================================= */

.dashboard-page {
  padding: 48px 0 72px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 28px;
}

.avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  cursor: pointer;
}

.user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}

.avatar-wrapper:hover .avatar-overlay {
  opacity: 1;
}

.dashboard-header h2 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.dashboard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}

.dashboard-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.order-row:last-child { border-bottom: none; }

.order-id {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.order-info { flex: 1; min-width: 0; }
.order-info strong { font-size: 13px; color: var(--text-primary); display: block; }
.order-info span { font-size: 12px; color: var(--text-muted); }

.order-amount {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.empty-orders {
  text-align: center;
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* ── My Products Card ── */
.products-card {
  margin-bottom: 24px;
}

.empty-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.product-license-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.product-license-row:last-child { border-bottom: none; }

.product-license-img {
  width: 110px;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
}

.product-license-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.product-license-header h4 {
  font-size: 15px;
  color: var(--text-primary);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* License key box */
.license-key-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.license-key-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.license-key-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.license-key-text {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-sky);
  letter-spacing: 0.08em;
  flex: 1;
}

.copy-key-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: rgba(43,186,224,0.1);
  border: 1px solid rgba(43,186,224,0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-sky);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.copy-key-btn:hover {
  background: rgba(43,186,224,0.2);
  border-color: var(--accent-sky);
}

/* Activation bar */
.activation-status { margin-top: 4px; }

.activation-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.activation-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.activation-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-sky);
}

.activation-count.at-limit { color: var(--danger); }

.activation-bar-track {
  height: 5px;
  background: var(--bg-tertiary);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 6px;
}

.activation-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.activation-bar-fill.full { background: var(--danger); }

.activation-note {
  font-size: 12px;
  color: var(--text-muted);
}

.activation-note a { color: var(--accent-sky); }

/* Actions column */
.product-license-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}

@media (max-width: 768px) {
  .product-license-row {
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto;
  }
  .product-license-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .product-license-img { height: 54px; }
}

/* =============================================
   CART PAGE
   ============================================= */

.cart-page { padding: 48px 0 72px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.cart-page-title {
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 100px;
  height: 66px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 14px; font-family: 'Inter', sans-serif; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.cart-item-info .item-category { font-size: 12px; color: var(--text-muted); text-transform: capitalize; }

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.qty-btn:hover { border-color: var(--accent-blue); color: var(--accent-blue); }

.qty-display {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 4px;
}

.remove-btn:hover { color: var(--danger); }

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

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

/* Order Summary Box */
.order-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.order-summary-box h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

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

.summary-row.total .price-current {
  font-size: 1.1rem;
}

.checkout-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.checkout-form { display: flex; flex-direction: column; gap: 12px; }

.checkout-form h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.checkout-form input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.checkout-form input:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(30,144,255,0.12);
}

.checkout-form input::placeholder { color: var(--text-muted); }

.card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 4px;
}

/* ── Payment Method Tabs ── */
.payment-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 16px;
  gap: 2px;
}

.payment-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
}

.payment-tab:hover { color: var(--text-secondary); }

.payment-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── PayPal Panel ── */
.paypal-panel { display: flex; flex-direction: column; gap: 12px; }

.paypal-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.paypal-input:focus {
  border-color: #009cde; /* PayPal blue */
  box-shadow: 0 0 0 3px rgba(0,156,222,0.13);
}

.paypal-input::placeholder { color: var(--text-muted); }

#paypal-button-container {
  min-height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* Shown when client-id is not yet configured */
.paypal-placeholder {
  background: rgba(255,165,0,0.07);
  border: 1px dashed rgba(255,165,0,0.3);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}

.paypal-placeholder p { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.paypal-placeholder p:first-child { color: #f0a500; font-weight: 600; }
.paypal-placeholder code {
  background: var(--bg-tertiary);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--accent-blue);
}

/* Empty Cart */
.empty-cart {
  text-align: center;
  padding: 100px 24px;
}

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

.empty-cart h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.empty-cart p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* Order Confirmation */
.order-confirmation {
  text-align: center;
  max-width: 480px;
  margin: 80px auto;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.success-check {
  width: 72px;
  height: 72px;
  background: rgba(46,213,115,0.12);
  border: 2px solid var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px;
  color: var(--success);
}

.order-confirmation h2 { color: var(--text-primary); margin-bottom: 12px; }
.order-confirmation p { color: var(--text-secondary); margin-bottom: 6px; }
.order-confirmation .order-id-display {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  color: var(--accent-blue);
  margin: 16px 0;
}

/* =============================================
   PRODUCT DETAIL PAGE
   ============================================= */

/* Breadcrumb */
.breadcrumb-bar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--text-secondary); }
.breadcrumb-bar a:hover { color: var(--accent-sky); }
.breadcrumb-sep { margin: 0 8px; color: var(--text-muted); }
.breadcrumb-current { color: var(--text-primary); text-transform: capitalize; }

/* Main layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 48px;
  padding: 48px 0 32px;
  align-items: start;
}

/* Gallery */
.detail-main-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(8,14,28,0.7);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.gallery-arrow:hover { background: var(--accent-blue); border-color: var(--accent-blue); }
.gallery-arrow.left  { left: 12px; }
.gallery-arrow.right { right: 12px; }

.detail-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.detail-thumb {
  width: 80px;
  height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.65;
}

.detail-thumb:hover { opacity: 1; border-color: var(--border-bright); }
.detail-thumb.active { opacity: 1; border-color: var(--accent-sky); }

/* Info panel */
.detail-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 14px;
}

.detail-meta { margin-bottom: 20px; }

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-price {
  font-size: 2rem !important;
}

.detail-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* Requirements */
.requirements-grid {
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.req-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.req-row:last-child { border-bottom: none; }
.req-row span:first-child { color: var(--text-muted); }
.req-row span:last-child  { color: var(--text-primary); font-weight: 600; }

/* Sections */
.detail-section-title {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* Video */
.video-wrapper {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Description & Features grid */
.detail-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 48px 0 0;
}

.detail-description p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

/* Features list */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-check {
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Card link styles */
.card-img-wrapper { display: block; }
.card-title-link  { text-decoration: none; }
.card-title-link:hover .card-title { color: var(--accent-sky); }

.card-details-link {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition);
}
.card-details-link:hover { color: var(--accent-sky); }

/* Responsive detail page */
@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .detail-bottom-grid { grid-template-columns: 1fr; }
  .detail-cta { flex-wrap: wrap; }
  .detail-cta .btn { flex: 1; }
}

/* =============================================
   REVIEWS
   ============================================= */

.reviews-section {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
}

.reviews-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

/* Summary: avg score + distribution bars */
.reviews-summary {
  display: flex;
  gap: 40px;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.reviews-avg {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.reviews-big-avg {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.reviews-avg .stars { font-size: 18px; color: var(--accent-gold); }

.reviews-bars {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.bar-label { color: var(--accent-gold); font-weight: 600; min-width: 24px; }

.bar-track {
  flex: 1;
  height: 7px;
  background: var(--bg-tertiary);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-sky));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.bar-count { color: var(--text-muted); min-width: 16px; text-align: right; }

/* Write a review form */
.review-form-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 32px;
}

.review-signin-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.review-signin-prompt p { color: var(--text-secondary); font-size: 14px; }

.review-form-inner h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Star picker */
.star-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.star-picker-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.star-picker-stars {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.star-label {
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.12s ease;
  line-height: 1;
  user-select: none;
}

.star-label.filled { color: var(--accent-gold); }

.star-picker-hint {
  font-size: 13px;
  color: var(--accent-sky);
  font-weight: 600;
}

.review-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  resize: vertical;
  outline: none;
  transition: var(--transition);
  margin-bottom: 10px;
}

.review-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(36,99,190,0.13);
}

.review-textarea::placeholder { color: var(--text-muted); }

/* Review cards */
.reviews-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

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

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

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-sky));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
}

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

.review-stars {
  color: var(--accent-gold);
  font-size: 16px;
  letter-spacing: 1px;
}

.review-comment {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 12px;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.helpful-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Barlow', sans-serif;
}

.helpful-btn:hover:not([disabled]) {
  border-color: var(--accent-blue);
  color: var(--accent-sky);
}

.helpful-btn.voted {
  color: var(--accent-sky);
  border-color: rgba(43,186,224,0.3);
  cursor: default;
}

.review-yours {
  font-size: 11px;
  color: var(--accent-sky);
  background: rgba(43,186,224,0.1);
  border: 1px solid rgba(43,186,224,0.2);
  border-radius: 99px;
  padding: 2px 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =============================================
   TOAST NOTIFICATIONS
   ============================================= */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  font-size: 14px;
  color: var(--text-primary);
  min-width: 260px;
  max-width: 360px;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent-blue); }

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

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

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

.toast-icon { font-size: 17px; }

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: auto;
}

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

.footer-brand p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

.footer-badges { display: flex; gap: 8px; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .store-layout { grid-template-columns: 200px 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
    z-index: 999;
  }
  .hamburger { display: flex; }
  .nav-account-btn span.btn-text { display: none; }

  .hero { min-height: 70vh; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
  }

  .filter-sidebar h2 { display: none; }
  .filter-group { margin-bottom: 0; min-width: 140px; }

  .cart-layout { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  .auth-box { padding: 28px 20px; }
  .dashboard-header { flex-direction: column; text-align: center; }

  /* Product grid — 2 columns on tablets/large phones */
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Nav logo scale down slightly */
  .nav-logo-img { height: 80px; }

  /* Nav font size */
  .nav-links a { font-size: 16px; }

  /* Reviews summary */
  .reviews-summary { flex-direction: column; gap: 20px; align-items: flex-start; }
}

@media (max-width: 480px) {
  :root { --nav-height: 70px; }
  .nav-logo-img { height: 60px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .promo-banner { flex-direction: column; text-align: center; }

  /* Product grid — single column on phones */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }

  /* Product cards — larger touch targets */
  .card-body { padding: 14px; }
  .btn { min-height: 44px; }

  /* Nav links font size */
  .nav-links a { font-size: 16px; }

  /* My Products — stack fully on small phones */
  .product-license-row {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .product-license-img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-sm); }
  .product-license-actions { flex-direction: row; flex-wrap: wrap; }
  .product-license-actions .btn { flex: 1; text-align: center; justify-content: center; }

  /* Reviews summary — stack on phones */
  .reviews-summary { flex-direction: column; gap: 20px; align-items: flex-start; }

  /* Detail page CTA buttons full width */
  .detail-cta { flex-direction: column; }
  .detail-cta .btn { width: 100%; justify-content: center; }

  /* Dashboard header */
  .dashboard-header { gap: 12px; }
  .dashboard-header .badge { margin-left: 0 !important; }
}
