/* ============================================
   SAMSUNG MD - MODERN SAAS THEME
   Monochrome + Electric Blue Accent
   Font: Inter + Outfit
   ============================================ */

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

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  /* Crimson/Silver/Purple Palette */
  --bg: #0a0002;
  --surface: #120406;
  --surface-2: #1a080b;
  --border: rgba(180, 40, 60, 0.12);
  --border-hover: rgba(200, 60, 80, 0.25);
  --text-primary: #FFFFFF;
  --text-secondary: #C8B8BA;
  --text-tertiary: #805055;
  --accent: #b91c2e;
  --accent-hover: #dc2626;
  --accent-muted: rgba(185, 28, 46, 0.15);
  --accent-glow: rgba(185, 28, 46, 0.08);
  --silver: #E8D8DA;
  --purple: #7c3aed;
  --purple-muted: rgba(124, 58, 237, 0.12);
  
  /* UI Colors */
  --white: #FFFFFF;
  --success: #22c55e;
  --warning: #eab308;
  --error: #ef4444;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  
  /* Spacing */
  --section-padding: 8rem 2rem;
  --container-max: 1200px;
  --card-radius: 12px;
  --btn-radius: 8px;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   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);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  list-style: none;
}

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

/* ============================================
   TYPOGRAPHY HIERARCHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  font-weight: 700;
  line-height: 1.15;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--text-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

/* ============================================
   GRID BACKGROUND
   ============================================ */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--bg);
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Video Background Overlay */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.5;
}

.bg-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.4;
}

.animated-bg::after {
  content: '';
  position: fixed;
  top: -40%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}

/* ============================================
   REMOVED: Old particle system
   .particles-container and .particle classes
   kept as empty shells so HTML doesn't break
   ============================================ */
.particles-container { display: none; }
.particle { display: none; }

/* ============================================
   ORB GLOW (scroll-aware radial gradient)
   ============================================ */
.hero-orbs { display: none; }
.hero-orb { display: none; }

/* ============================================
   FLOATING DOCK NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  padding: 0.5rem;
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: var(--transition-normal);
  width: auto;
  max-width: calc(100% - 40px);
  animation: navBorderGlow 7s ease-in-out infinite;
}

@keyframes navBorderGlow {
  0%, 100% {
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(185, 28, 46, 0.15), inset 0 0 15px rgba(185, 28, 46, 0.05);
  }
  25% {
    border-color: #dc2626;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.25), inset 0 0 20px rgba(220, 38, 38, 0.08);
  }
  50% {
    border-color: #ec4899;
    box-shadow: 0 0 25px rgba(236, 72, 153, 0.3), inset 0 0 20px rgba(236, 72, 153, 0.1);
  }
  75% {
    border-color: #f43f5e;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25), inset 0 0 15px rgba(244, 63, 94, 0.08);
  }
}

.navbar.scrolled {
  background: rgba(3, 3, 3, 0.85);
  border-color: var(--border-hover);
}

.navbar-container {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  max-width: none;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.navbar-container::-webkit-scrollbar { display: none; }

.navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}

.navbar-links a {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: var(--font-primary);
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-links a:hover,
.navbar-links a.active {
  color: var(--text-primary);
  background: var(--accent-muted);
  border: 1px solid rgba(185, 28, 46, 0.2);
  transform: translateY(-1px);
}

.navbar-links a::before,
.navbar-links a::after {
  display: none;
}

/* Hamburger Menu - hidden (replaced by horizontal scroll) */
.navbar-toggle { display: none !important; }

/* ============================================
   BUTTONS - Premium Minimal
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-primary);
  border: 1px solid transparent;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: 0;
  text-transform: none;
}

.btn::before { display: none; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--purple-muted);
  color: var(--purple);
  border-color: transparent;
}

.btn-secondary:hover {
  background: rgba(124, 58, 237, 0.2);
  transform: scale(1.02);
}

.btn-green {
  background: var(--surface-2);
  color: var(--text-primary);
  border-color: var(--border);
}

.btn-green:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: scale(1.02);
}

.btn-gold {
  background: var(--surface-2);
  color: var(--silver);
  border-color: var(--border);
}

.btn-gold:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--text-primary);
  transform: scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.02);
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }

/* ============================================
   CARDS - Premium Border Style
   ============================================ */
.glass-card,
.tab-card,
.script-card,
.product-card,
.service-item,
.download-card,
.admin-form-section,
.admin-script-item,
.stat-card,
.login-card,
.cart-modal-content,
.edit-modal-content {
  background: linear-gradient(135deg, rgba(185,28,46,0.9) 0%, rgba(200,184,186,0.18) 50%, rgba(10,0,2,0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.glass-card:hover,
.tab-card:hover,
.script-card:hover,
.product-card:hover,
.service-item:hover,
.download-card:hover {
  border-color: #dc2626;
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), inset 0 0 15px rgba(220, 38, 38, 0.1);
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-primary);
}

.section-title span {
  color: var(--accent);
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-top: -2rem;
  margin-bottom: 3rem;
}

/* ============================================
   HERO SECTION - Clean Modern
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.2rem;
  background: var(--accent-muted);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title .gradient-text {
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: initial;
  animation: none;
}

.hero-title .hacker-text {
  color: var(--accent);
  text-shadow: none;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Secondary service chips */
.hero-secondary {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  cursor: pointer;
}

.service-chip:hover {
  border-color: var(--accent);
  color: var(--silver);
  background: var(--accent-muted);
  transform: translateY(-1px);
}

/* Glowing orbs */
.hero-orbs {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orbFloat 10s ease-in-out infinite;
}

.hero-orb:nth-child(1) {
  width: 300px;
  height: 300px;
  background: var(--dark-red);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.hero-orb:nth-child(2) {
  width: 250px;
  height: 250px;
  background: var(--royal-blue);
  top: 50%;
  right: -5%;
  animation-delay: -3s;
}

.hero-orb:nth-child(3) {
  width: 200px;
  height: 200px;
  background: var(--hacker-green);
  bottom: 10%;
  left: 30%;
  animation-delay: -6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ============================================
   TABS / NAVIGATION CARDS
   ============================================ */
.tabs-section { padding: 4rem 2rem; }
.tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.tab-card {
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tab-card::before,
.tab-card:hover::before { display: none; }

.tab-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.tab-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

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

.tab-card .tab-arrow {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1.2rem;
  transition: var(--transition-normal);
}

.tab-card:hover .tab-arrow {
  transform: translateX(6px);
  color: var(--accent);
}

/* ============================================
   GENERATOR PAGE (Samsung MD) - Clean
   ============================================ */
.generator-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
}

.generator-container {
  text-align: center;
  max-width: 520px;
  width: 100%;
}

.generator-title {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.generator-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* Premium Input */
.input-wrapper {
  position: relative;
  margin-bottom: 2rem;
}

.input-wrapper .input-glow { display: none; }

.animated-input {
  width: 100%;
  padding: 1.1rem 1.4rem;
  font-size: 1.05rem;
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  color: var(--text-primary);
  outline: none;
  transition: var(--transition-normal);
  letter-spacing: 1px;
}

.animated-input::placeholder {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  filter: none;
}

.animated-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* Code Display */
.code-display {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: 6px;
  color: var(--text-primary);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.code-display.generating {
  animation: codePulse 0.4s ease-in-out 3;
}

@keyframes codePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.code-display .placeholder-text {
  color: var(--text-tertiary);
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Session Counter */
.session-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  margin-top: 2rem;
}

.session-counter .counter-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.session-counter .counter-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.session-counter .counter-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   EXP PAGE
   ============================================ */
.exp-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.exp-container {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.exp-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   SCRIPT STORE
   ============================================ */
.scripts-page {
  padding: 8rem 2rem 4rem;
  min-height: 100vh;
}

.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 2rem auto 0;
}

.script-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.script-card::before { display: none; }

.script-card .script-title {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.script-card .script-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.script-card .script-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-display);
}

.script-card .script-date {
  color: var(--text-tertiary);
  font-size: 0.75rem;
}

/* ============================================
   CART - Premium Minimal
   ============================================ */
.cart-floating {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
}

.cart-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
  position: relative;
}

.cart-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
  transform: scale(1.05);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: var(--accent-hover);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.cart-modal.active { display: flex; }

.cart-modal-content {
  padding: 2rem;
  max-width: 460px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.cart-modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cart-items { margin-bottom: 1.5rem; }

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border);
}

.cart-item-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-info span {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.85rem;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

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

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.cart-total span:last-child { color: var(--accent); }

/* Checkout - Terminal/Linear Style */
.checkout-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkout-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--btn-radius);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--surface);
  color: var(--text-primary);
}

.checkout-btn:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: scale(1.02);
}

.checkout-btn.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.checkout-btn.telegram:hover {
  border-color: #0088cc;
  color: #0088cc;
}

.checkout-btn.mpesa {
  cursor: not-allowed;
  position: relative;
  overflow: hidden;
  filter: grayscale(1);
  opacity: 0.6;
}

.checkout-btn.mpesa::after {
  content: 'Dropping soon 💞';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   PRODUCT CARDS (Pterodactyl)
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 2rem auto 0;
}

.product-card {
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Product Ribbon - Clean Badge */
.product-ribbon {
  position: absolute;
  top: 16px;
  right: -30px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: var(--white);
  padding: 0.2rem 2.5rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
  font-family: var(--font-primary);
}

.product-ribbon.gold { background: linear-gradient(135deg, var(--accent), #dc2626); }
.product-ribbon.blue { background: linear-gradient(135deg, var(--purple), var(--accent)); }
.product-ribbon.pink { background: linear-gradient(135deg, var(--accent), var(--purple)); }
.product-ribbon.red { background: linear-gradient(135deg, #dc2626, var(--accent)); }

@keyframes ribbonPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } }
.product-ribbon { animation: ribbonPulse 2s ease-in-out infinite; }

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.product-features { margin-bottom: 1.5rem; }

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.product-features li .feature-icon { font-size: 1rem; }

.product-pricing {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--btn-radius);
  text-align: center;
}

.product-pricing .price-old {
  color: var(--text-tertiary);
  text-decoration: line-through;
  font-size: 0.9rem;
  margin-right: 0.75rem;
}

.product-pricing .price-current {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.product-pricing .price-discount {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.15rem 0.5rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-pricing .price-negotiable {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 2rem 3rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-content {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

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

.footer-contact {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: var(--accent);
  transition: var(--transition-fast);
}

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

.footer-copyright {
  color: var(--text-tertiary);
  font-size: 0.8rem;
}

.footer-copyright .powered {
  color: var(--accent);
  font-weight: 600;
}

/* ============================================
   FLOATING MUSIC PLAYER
   ============================================ */
.music-player {
  position: fixed;
  top: 6rem;
  left: 2rem;
  z-index: 998;
  cursor: grab;
  user-select: none;
  touch-action: none;
  transition: none;
}

.music-player:active { cursor: grabbing; }

.music-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
}

.music-btn:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.music-btn:not(.muted) {
  animation: musicGlow 0.8s ease-in-out infinite alternate;
}

@keyframes musicGlow {
  0% { box-shadow: 0 0 8px rgba(185, 28, 46, 0.3), 0 4px 15px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 0 40px rgba(185, 28, 46, 0.2), 0 4px 15px rgba(0,0,0,0.3); }
  100% { box-shadow: 0 0 12px rgba(236, 72, 153, 0.4), 0 0 30px rgba(185, 28, 46, 0.15), 0 4px 15px rgba(0,0,0,0.3); }
}

.music-btn.muted {
  opacity: 0.6;
}

.music-btn.muted::after {
  content: '';
  position: absolute;
  width: 60%;
  height: 2px;
  background: var(--accent-hover);
  transform: rotate(-45deg);
  border-radius: 1px;
}

.music-btn .music-equalizer {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 10px;
}

.music-btn .music-equalizer span {
  width: 3px;
  background: var(--accent);
  border-radius: 1px;
  animation: equalizer 0.8s ease-in-out infinite alternate;
}

.music-btn .music-equalizer span:nth-child(1) { height: 6px; animation-delay: 0s; }
.music-btn .music-equalizer span:nth-child(2) { height: 10px; animation-delay: 0.2s; }
.music-btn .music-equalizer span:nth-child(3) { height: 4px; animation-delay: 0.4s; }
.music-btn.muted .music-equalizer { display: none; }

@keyframes equalizer {
  0% { transform: scaleY(0.5); }
  100% { transform: scaleY(1); }
}

/* ============================================
   FLOATING CONTACT BUTTONS
   ============================================ */
.floating-buttons {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 999;
}

.floating-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.floating-btn svg {
  width: 22px;
  height: 22px;
  transition: fill 0.2s ease;
}

.floating-btn.whatsapp {
  background: #25D366;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.floating-btn.whatsapp svg { fill: white; }

.floating-btn.telegram {
  background: #0088cc;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.floating-btn.telegram svg { fill: white; }

.floating-btn::after {
  content: attr(data-label);
  position: absolute;
  left: 56px;
  white-space: nowrap;
  background: var(--surface);
  backdrop-filter: blur(8px);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.floating-btn:hover::after { opacity: 1; }

.floating-btn:hover {
  transform: scale(1.1);
  filter: brightness(1.15);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  top: 5rem;
  right: 1.5rem;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.8rem 1.2rem;
  border-radius: var(--btn-radius);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.85rem;
  animation: slideInRight 0.25s ease, fadeOut 0.25s ease 2.75s;
  min-width: 240px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.toast.success { border-color: rgba(34, 197, 94, 0.3); }
.toast.error { border-color: rgba(239, 68, 68, 0.3); }
.toast.info { border-color: rgba(59, 130, 246, 0.3); }

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

@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* ============================================
   SERVICE PAGES
   ============================================ */
.service-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.service-message {
  max-width: 560px;
  padding: 3rem;
  border-radius: var(--card-radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.service-message .service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-message h2 {
  font-size: 1.6rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.service-message p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1rem;
}

.service-message .interactive-link {
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.service-message .interactive-link:hover { color: var(--accent-hover); }

/* ============================================
   SERVICES LIST
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 2rem auto 0;
}

.service-item {
  padding: 2rem;
  text-align: center;
  cursor: pointer;
}

.service-item .service-item-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  display: block;
}

.service-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Download Card */
.download-card {
  padding: 2.5rem;
  text-align: center;
  max-width: 480px;
  margin: 2rem auto;
  cursor: pointer;
}

.download-card:hover {
  border-color: var(--accent);
}

.download-card .download-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.download-card h3 {
  font-size: 1.15rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
  padding: 8rem 2rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: var(--surface);
  border-radius: var(--btn-radius);
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  animation: skeletonShimmer 1.5s ease-in-out infinite;
  transform: translateX(-100%);
}

@keyframes skeletonShimmer {
  100% { transform: translateX(100%); }
}

.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-title { height: 20px; margin-bottom: 12px; width: 60%; }
.skeleton-card { height: 200px; }

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.scale-in {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.scale-in.visible { opacity: 1; transform: scale(1); }

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

/* Tablet */
@media (max-width: 1024px) {
  .hero-title { font-size: clamp(2rem, 5vw, 3.5rem); }
  .products-grid,
  .scripts-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    top: 12px;
    padding: 0.4rem;
    max-width: calc(100% - 24px);
  }

  .navbar-container {
    width: auto;
    gap: 0.15rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
  }

  .navbar-links a {
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
  }

  .hero { padding: 6rem 1.5rem 3rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .section { padding: 4rem 1.5rem; }
  .section-title { font-size: 1.6rem; }
  .tabs-grid { grid-template-columns: 1fr; }
  .products-grid, .scripts-grid { grid-template-columns: 1fr; }
  .generator-container { padding: 0 1rem; }
  .floating-buttons { left: 1rem; bottom: 1rem; gap: 0.6rem; }
  .floating-btn { width: 42px; height: 42px; }
  .floating-btn svg { width: 18px; height: 18px; }
  .floating-btn::after { display: none; }
  .cart-floating { right: 1rem; bottom: 1rem; }
  .cart-btn { width: 48px; height: 48px; font-size: 1.1rem; }
  .cart-modal-content { padding: 1.5rem; width: 95%; }
  .product-pricing .price-current { font-size: 1.4rem; }
  .footer { padding: 3rem 1.5rem 2rem; }

  /* Music player - move to bottom-right on mobile to avoid overlap */
  .music-player {
    top: auto !important;
    bottom: 5rem !important;
    left: auto !important;
    right: 1rem !important;
  }

  .music-btn {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
  }

  /* Page content padding for mobile */
  .generator-page { padding: 6rem 1rem 4rem; }
  .exp-page { padding: 6rem 1rem 4rem; }
  .service-page { padding: 6rem 1rem 4rem; }

  /* Service detail message */
  .service-message { padding: 2rem 1.5rem; }

  /* Script store cards */
  .script-card { padding: 1.2rem; }
  .script-card .script-header { flex-direction: column; gap: 0.5rem; }
  .script-card .script-meta { flex-wrap: wrap; gap: 0.4rem; }

  /* Product cards */
  .product-card { padding: 1.5rem; }
  .product-card .product-header { flex-direction: column; text-align: center; }
  .product-card .product-price { font-size: 1.8rem; }

  /* Toast on mobile */
  .toast-container {
    top: auto;
    bottom: 5rem;
    right: 0.5rem;
    left: 0.5rem;
  }
  .toast { min-width: unset; width: 100%; }

  /* Cart modal on mobile */
  .cart-modal-content { max-height: 80vh; overflow-y: auto; }
  .cart-items { max-height: 40vh; }

  /* Checkout page */
  .checkout-container { padding: 6rem 1rem 3rem; }
  .checkout-summary { padding: 1.5rem; }
  .payment-options { flex-direction: column; }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-title { font-size: 1.6rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero { padding: 5rem 1rem 2rem; }
  .generator-title { font-size: 1.3rem; }
  .generator-subtitle { font-size: 0.85rem; }
  .code-display { font-size: 1.3rem; letter-spacing: 4px; padding: 1rem; }
  .animated-input { font-size: 0.95rem; padding: 0.9rem; }
  .session-counter { flex-wrap: wrap; padding: 0.7rem 1rem; }
  .session-counter .counter-number { font-size: 1.2rem; }
  .product-card { padding: 1.2rem; }
  .product-card .product-features li { font-size: 0.85rem; }
  .product-pricing .price-current { font-size: 1.3rem; }
  .exp-actions { flex-direction: column; }
  .exp-actions .btn { width: 100%; }
  .section-title { font-size: 1.3rem; }
  .section { padding: 3rem 1rem; }
  .page-header { padding: 5rem 1rem 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header p { font-size: 0.85rem; }
  .tabs-section { padding: 2rem 1rem; }
  .tab-card { padding: 1.5rem; }
  .tab-icon { font-size: 2rem; }
  .tab-card h3 { font-size: 1.1rem; }
  .tab-card p { font-size: 0.85rem; }
  .music-player { right: 0.5rem !important; bottom: 4.5rem !important; }
  .floating-buttons { left: 0.5rem; bottom: 0.5rem; gap: 0.5rem; }
  .floating-btn { width: 38px; height: 38px; }
  .floating-btn svg { width: 16px; height: 16px; }
  .service-message { padding: 1.5rem; }
  .service-message h2 { font-size: 1.3rem; }
  .service-message p { font-size: 0.9rem; }
  .services-grid { gap: 1rem; }
  .service-item { padding: 1.5rem; }
  .download-card { padding: 1.5rem; margin: 1rem auto; }
  .checkout-section { padding: 1.2rem; }
  .checkout-header h1 { font-size: 1.5rem; }
  .checkout-header { margin-bottom: 1.5rem; }
  .generator-container .btn { width: 100%; }
  .footer { padding: 2rem 1rem 1.5rem; }
  .footer-content { gap: 1rem; }
  .cart-btn { width: 44px; height: 44px; font-size: 1rem; }
  .cart-floating { right: 0.75rem; bottom: 0.75rem; }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  transition: var(--transition-fast);
  font-size: 0.85rem;
}

.skip-link:focus { top: 0; }
