@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --accent: #F59E0B;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --dark-bg: #090D16;
  --dark-card: #111726;
  --dark-card-border: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --success: #10B981;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15px;
  }
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
  padding-bottom: 76px; /* space for mobile sticky bar */
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.38;
}

/* Glassmorphism Cards */
.glass-panel {
  background: rgba(17, 23, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

.glass-panel-hover {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 16px 32px -8px var(--primary-glow);
}

/* Gradients */
.gold-gradient-text {
  background: linear-gradient(135deg, #FDE68A 0%, #F59E0B 50%, #D97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.blue-gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glowing Pulsing Button */
.btn-primary-glow {
  background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.25s ease;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #2563EB 0%, #1E40AF 100%);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: scale(1.02);
}

.btn-gold-glow {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #0F172A;
  font-weight: 700;
  box-shadow: 0 0 24px var(--accent-glow);
  transition: all 0.25s ease;
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #FBBF24 0%, #B45309 100%);
  box-shadow: 0 0 36px rgba(245, 158, 11, 0.6);
  transform: scale(1.02);
}

/* Animations */
@keyframes pulseRing {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.pulse-ring {
  animation: pulseRing 2s infinite ease-in-out;
}

/* Floating Actions */
.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-btn:hover {
  transform: scale(1.12);
}

/* Sticky Mobile Bar with Safe Area Support */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(11, 15, 25, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .mobile-sticky-bar {
    display: none;
  }
}

/* Mobile App-like Bottom Nav Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

@media (min-width: 768px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 0;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.mobile-nav-item.active, .mobile-nav-item:hover {
  color: #38BDF8;
}

.mobile-nav-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

/* Mobile Quick Order Bottom Sheet */
.bottom-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 88vh;
  background: #111726;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.7);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.sheet-drag-handle {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  margin: 0 auto 16px auto;
}

/* Horizontal scroll pill nav */
.horizontal-scroll-row {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 10px;
  padding-bottom: 8px;
}

.horizontal-scroll-row::-webkit-scrollbar {
  display: none;
}
.horizontal-scroll-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.snap-card {
  scroll-snap-align: start;
  flex: 0 0 calc(85% - 10px);
}

@media (min-width: 640px) {
  .snap-card {
    flex: 0 0 calc(45% - 10px);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #090D16;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Video badge */
.video-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

/* Car Filter Tab */
.car-tab-btn.active {
  background: #2563EB;
  color: white;
  border-color: #3B82F6;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Copyright Watermark & Anti-Copy / Anti-Download Protection */
.protected-media-wrap {
  position: relative;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

img, video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.protected-media-wrap img {
  pointer-events: none;
}

.soso-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: clamp(11px, 2.5vw, 15px);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.34);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
}

