/* ==========================================================================
   E-TWALVE DIGITAL SUBSCRIPTIONS STORE - CORE DESIGN SYSTEM
   Theme: Obsidian Deep Black & Cyber Crimson Red Glow
   RTL First, Mobile Responsive, Ultra-Smooth Transitions
   ========================================================================== */

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

:root {
  /* Color Tokens */
  --bg-dark: #08090C;
  --bg-surface: #0E1015;
  --bg-surface-2: #141720;
  --bg-surface-3: #1B1F2D;
  
  --primary: #FF1E27;
  --primary-hover: #FF3B44;
  --primary-glow: rgba(255, 30, 39, 0.45);
  --primary-gradient: linear-gradient(135deg, #FF2E36 0%, #D8000C 100%);
  --primary-subtle: rgba(255, 30, 39, 0.12);

  --accent-cyan: #00F2FE;
  --accent-gold: #FFB800;
  --accent-green: #10B981;
  --accent-purple: #8B5CF6;

  --text-primary: #FFFFFF;
  --text-secondary: #9EABB8;
  --text-muted: #64748B;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 30, 39, 0.5);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-red-glow: 0 0 25px rgba(255, 30, 39, 0.35);
  --shadow-red-strong: 0 0 35px rgba(255, 30, 39, 0.55);

  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-normal: 260ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Global Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  direction: rtl;
  text-align: right;
  font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ==========================================================================
   FULL-SCREEN FLUID LAYOUT SYSTEM (Edge-to-Edge, Zero Empty Margins)
   Designed for all viewport sizes: Laptops, Desktops, Tablets, and Phones
   ========================================================================== */
.container,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: clamp(14px, 2.5vw, 42px) !important;
  padding-right: clamp(14px, 2.5vw, 42px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 2200px) {
  .container,
  .container-sm,
  .container-md,
  .container-lg,
  .container-xl,
  .container-xxl {
    max-width: 2000px !important;
  }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #222633;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-primary);
  font-weight: 800;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.text-crimson {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Splash Intro Screen (Visually Stunning, Auto-dismisses) */
#splashIntro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #06070A;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#splashIntro.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-ring {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(255, 30, 39, 0.4);
  box-shadow: var(--shadow-red-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: ringPulse 2.4s infinite ease-in-out;
}
.splash-ring::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 30, 39, 0.3);
  animation: spinSlow 12s linear infinite;
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 30, 39, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(255, 30, 39, 0.7); }
}
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Header & Sticky Navbar */
.etw-navbar {
  background: rgba(14, 16, 21, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  padding: 14px 0;
}
.etw-navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 12, 16, 0.96);
  border-bottom: 1px solid rgba(255, 30, 39, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.brand-logo-img {
  height: 42px;
  width: auto;
  transition: transform var(--transition-fast);
}
.brand-logo-img:hover {
  transform: scale(1.02);
}

.nav-link-custom {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}
.nav-link-custom.active {
  color: var(--primary);
}

/* Navbar Search Bar */
.nav-search-box {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  width: 240px;
  transition: all var(--transition-fast);
}
.nav-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(255, 30, 39, 0.3);
  width: 290px;
}
.nav-search-box input {
  background: transparent;
  border: none;
  color: #FFF;
  font-size: 14px;
  width: 100%;
  padding: 4px 8px;
  outline: none;
}
.nav-search-box input::placeholder {
  color: var(--text-muted);
}

/* Action Icons (Cart, Account) */
.nav-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  transition: all var(--transition-fast);
}
.nav-icon-btn:hover {
  background: var(--bg-surface-3);
  border-color: var(--primary);
  color: var(--primary);
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(255, 30, 39, 0.6);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.cart-badge.bump {
  transform: scale(1.35);
}

/* Red CTA Buttons */
.btn-crimson {
  background: var(--primary-gradient);
  color: #FFFFFF !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: none;
  box-shadow: 0 4px 18px rgba(255, 30, 39, 0.38);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-crimson:hover {
  background: linear-gradient(135deg, #FF3D45 0%, #E6000E 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red-strong);
}
.btn-crimson:active {
  transform: translateY(0);
}

.btn-crimson-outline {
  background: transparent;
  color: var(--text-primary) !important;
  font-weight: 700;
  border-radius: var(--radius-pill);
  padding: 10px 24px;
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-crimson-outline:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
  background: rgba(255, 30, 39, 0.08);
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 60px 0 40px;
  overflow: hidden;
}
.hero-glow-bg {
  position: absolute;
  top: 10%;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 30, 39, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* 3D Floating Hero Cards Graphic */
.hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSubtle 5s ease-in-out infinite;
}
@keyframes floatSubtle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.5deg); }
}
.hero-visual-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.7));
}

/* Trust Badges (4 Items under Hero) */
.trust-badges-row {
  margin-top: 40px;
  padding: 18px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid rgba(255, 30, 39, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 20px;
  flex-shrink: 0;
}
.trust-badge-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.trust-badge-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Section Headers */
.section-header {
  margin-bottom: 32px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(255, 30, 39, 0.12);
  border: 1px solid rgba(255, 30, 39, 0.3);
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Categories Grid Cards */
.category-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
  text-decoration: none;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-color, var(--primary));
  opacity: 0.6;
  transition: opacity var(--transition-fast);
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-color, var(--primary));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 30, 39, 0.2);
}
.category-card:hover::before {
  opacity: 1;
}
.category-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}
.category-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFF;
}
.category-count {
  font-size: 13px;
  color: var(--text-muted);
}
.category-arrow-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 30, 39, 0.15);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 14px;
  transition: all var(--transition-fast);
}
.category-card:hover .category-arrow-btn {
  background: var(--primary);
  color: #FFF;
  transform: scale(1.1);
}

/* Product Cards */
.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
  height: 100%;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-active);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.65), var(--shadow-red-glow);
}
.product-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #06080C;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
  display: block;
  transition: transform var(--transition-normal);
}
.product-thumb-img.fit-contain {
  object-fit: contain;
  padding: 12px;
}
.product-card:hover .product-thumb-img {
  transform: scale(1.05);
}
.product-badge-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 30, 39, 0.9);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.product-wishlist-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 16, 21, 0.7);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
}
.product-wishlist-btn:hover {
  color: var(--primary);
  background: rgba(255, 30, 39, 0.15);
  border-color: var(--primary);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--accent-gold);
  margin-bottom: 8px;
}
.product-rating-count {
  color: var(--text-muted);
  font-size: 12px;
}
.product-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 6px;
  color: #FFF;
  line-height: 1.4;
}
.product-meta-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
}
.product-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: #FFF;
}
.product-original-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-right: 6px;
}
.product-duration-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-surface-2);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.btn-add-cart {
  width: 100%;
  background: var(--primary);
  color: #FFF !important;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.btn-add-cart:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 16px rgba(255, 30, 39, 0.4);
}

/* Gaming Promo Banner */
.gaming-banner-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 30, 39, 0.35);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 30, 39, 0.2);
}
.gaming-banner-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* Product Detail Page Specifics */
.gallery-main-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 380px;
}
.gallery-main-img {
  max-width: 90%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.7));
}
.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.gallery-thumb-item {
  width: 75px;
  height: 75px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.gallery-thumb-item.active, .gallery-thumb-item:hover {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(255, 30, 39, 0.4);
}
.gallery-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Feature Pills in Detail Page */
.feature-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.feature-pill {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Duration Selectors (Cards matching the reference) */
.duration-selector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.duration-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}
.duration-card:hover {
  border-color: rgba(255, 30, 39, 0.4);
}
.duration-card.active {
  border-color: var(--primary);
  background: rgba(255, 30, 39, 0.08);
  box-shadow: 0 0 16px rgba(255, 30, 39, 0.35);
}
.duration-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  font-weight: 600;
}
.duration-card.active .duration-card-label {
  color: var(--text-primary);
}
.duration-card-price {
  font-size: 17px;
  font-weight: 900;
  color: #FFF;
}
.duration-card.active .duration-card-price {
  color: var(--primary);
}

/* Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 8px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #FFF;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.qty-input {
  width: 44px;
  text-align: center;
  background: transparent;
  border: none;
  color: #FFF;
  font-weight: 800;
  font-size: 15px;
  outline: none;
}

/* Tabs in Detail Page */
.etw-tabs-nav {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.etw-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 0;
  position: relative;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.etw-tab-btn:hover {
  color: var(--text-primary);
}
.etw-tab-btn.active {
  color: var(--primary);
}
.etw-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  box-shadow: 0 0 10px var(--primary);
}

/* Shopping Cart View & Drawer */
.cart-card-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  gap: 16px;
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-thumb {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-md);
  background: #090B10;
  padding: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cart-item-badge {
  font-size: 12px;
  color: var(--text-muted);
}
.cart-item-price {
  font-size: 18px;
  font-weight: 800;
  color: #FFF;
}
.cart-item-delete {
  color: #FF4D4D;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  transition: all var(--transition-fast);
}
.cart-item-delete:hover {
  background: rgba(255, 77, 77, 0.15);
}

/* Coupon Box */
.coupon-input-group {
  display: flex;
  gap: 8px;
  margin: 20px 0;
}
.coupon-input {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  color: #FFF;
  flex-grow: 1;
  outline: none;
}
.coupon-input:focus {
  border-color: var(--primary);
}

/* Order Summary Box */
.summary-line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text-secondary);
}
.summary-line.total {
  font-size: 20px;
  font-weight: 900;
  color: #FFF;
  border-top: 1px dashed var(--border-light);
  padding-top: 14px;
  margin-top: 14px;
}

/* Checkout Step Indicator */
.checkout-steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  gap: 24px;
}
.step-node {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
}
.step-node.active {
  color: var(--primary);
}
.step-node.completed {
  color: var(--accent-green);
}
.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.step-divider {
  flex-grow: 1;
  max-width: 60px;
  height: 2px;
  background: var(--border-light);
}

/* Payment Method Card */
.payment-method-card {
  background: var(--bg-surface-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}
.payment-method-card.active {
  border-color: var(--primary);
  background: rgba(255, 30, 39, 0.06);
  box-shadow: 0 0 16px rgba(255, 30, 39, 0.25);
}

/* Order Success Animated Circle */
.success-check-wrap {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--accent-green);
  font-size: 48px;
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes scaleIn {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Delivered License Code Box */
.license-code-box {
  background: #06070A;
  border: 1px dashed rgba(255, 30, 39, 0.5);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  color: #00F2FE;
  position: relative;
  margin: 16px 0;
  direction: ltr;
  text-align: left;
  white-space: pre-wrap;
}
.copy-code-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #FFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  direction: rtl;
}

/* Toast Notification */
#etwToast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 10000;
  background: var(--bg-surface);
  border: 1px solid var(--primary);
  box-shadow: var(--shadow-red-strong);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#etwToast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Bottom Navigation Bar (Tab Bar) */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(14, 16, 21, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-light);
  z-index: 999;
  padding: 8px 12px;
  justify-content: space-around;
}
.mobile-tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  position: relative;
}
.mobile-tab-item.active {
  color: var(--primary);
}
.mobile-tab-item i {
  font-size: 20px;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN SUITE
   Breakpoints: 1440px+, 1280px, 1024px, 992px, 768px, 576px, 430px, 390px, 375px, 360px, 320px
   Zero Unintended Horizontal Scroll, Touch-Friendly, Fluid Typography
   ========================================================================== */

/* 1. Large Screens & Desktop (1200px - 1440px+) */
@media (min-width: 1400px) {
  .hero-visual-img {
    max-height: 480px;
  }
}

@media (max-width: 1199.98px) {
  .hero-visual-img {
    max-height: 380px;
  }
  .duration-selector-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

/* 2. Tablets & Small Laptops (992px - 1024px) */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .trust-badges-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .duration-selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-search-box {
    display: none;
  }
  .hero-section {
    padding: 40px 0 30px;
  }
  .hero-visual-wrap {
    margin-top: 20px;
  }
  .gallery-main-box {
    margin-bottom: 16px;
  }
}

/* 3. Small Tablets & Large Phones (768px) */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 74px; /* Essential space for bottom mobile navigation bar */
  }
  .mobile-bottom-bar {
    display: flex;
  }
  #etwToast {
    bottom: 84px; /* Lift above bottom bar */
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }
  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.2rem);
    line-height: 1.35;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .trust-badges-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .section-title {
    font-size: 1.55rem;
  }
  .section-header {
    margin-bottom: 24px;
  }
  .category-card {
    padding: 16px;
  }
}

/* 4. Standard Mobile Phones (576px) */
@media (max-width: 575.98px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
  .cart-card-wrap {
    padding: 18px 14px;
    border-radius: var(--radius-lg);
  }

  /* Responsive Cart Items: Grid stacking prevents horizontal squashing */
  .cart-item-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    grid-template-areas:
      "thumb details delete"
      "thumb stepper price";
    gap: 8px 12px;
    align-items: center;
    padding: 14px 0;
  }
  .cart-item-thumb {
    grid-area: thumb;
    width: 56px;
    height: 56px;
  }
  .cart-item-details {
    grid-area: details;
    min-width: 0;
  }
  .cart-item-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cart-item-delete {
    grid-area: delete;
    justify-self: end;
  }
  .qty-stepper {
    grid-area: stepper;
  }
  .cart-item-price {
    grid-area: price;
    justify-self: end;
    font-size: 15px;
  }

  /* Checkout Steps Bar Scaling */
  .checkout-steps-bar {
    gap: 10px;
    margin-bottom: 22px;
  }
  .step-node {
    font-size: 12px;
    gap: 5px;
  }
  .step-circle {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  .step-divider {
    max-width: 25px;
  }

  /* Duration Selector Cards on Mobile */
  .duration-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .duration-card {
    padding: 10px 6px;
  }
  .duration-card-label {
    font-size: 12px;
  }
  .duration-card-price {
    font-size: 15px;
  }

  /* Feature Pills in Product Details */
  .feature-pills-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .feature-pill {
    padding: 6px 10px;
    font-size: 12px;
    justify-content: center;
  }

  /* Product Grid and Cards */
  .product-card {
    padding: 16px;
  }
  .product-title {
    font-size: 16px;
  }
  .product-thumb-wrap {
    height: 150px;
  }

  /* Tables: Smooth Touch Scroll */
  .table-responsive {
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
  }
}

/* 5. Modern Medium Phones (430px - iPhone 14 Pro Max / S23 Ultra) */
@media (max-width: 430px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .hero-visual-img {
    max-height: 240px;
  }
  .brand-logo-img {
    height: 32px;
  }
  .nav-icon-btn {
    width: 38px;
    height: 38px;
  }
  .splash-ring {
    width: 140px;
    height: 140px;
  }
  .splash-ring img {
    height: 42px;
  }
  .coupon-input-group {
    flex-direction: column;
    gap: 8px;
  }
  .coupon-input-group button {
    width: 100%;
  }
}

/* 6. Standard Compact Phones (390px - iPhone 13/14/15) */
@media (max-width: 390px) {
  .section-title {
    font-size: 1.35rem;
  }
  .btn-crimson, .btn-crimson-outline {
    font-size: 14px;
    padding: 10px 16px;
  }
  .duration-selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* 7. Classic Compact Phones (375px - iPhone SE / 8 / 12 Mini) */
@media (max-width: 375px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .cart-card-wrap {
    padding: 14px 10px;
  }
  .hero-title {
    font-size: 1.55rem;
  }
  .trust-badge-item {
    padding: 14px 12px;
  }
  .trust-badge-icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .trust-badge-title {
    font-size: 13px;
  }
  .trust-badge-desc {
    font-size: 11px;
  }
  .qty-input {
    width: 34px;
    font-size: 13px;
  }
  .qty-btn {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

/* 8. Android 360px (Standard Galaxy A series / Redmi) */
@media (max-width: 360px) {
  .duration-selector-grid {
    grid-template-columns: 1fr;
  }
  .step-node span:last-child {
    display: none; /* Hide text labels on 360px to keep steps clean */
  }
  .step-divider {
    max-width: 20px;
  }
  .license-code-box {
    font-size: 12px;
    padding: 12px;
    word-break: break-all;
  }
  .copy-code-btn {
    position: static;
    margin-top: 10px;
    display: block;
    width: 100%;
    text-align: center;
  }
}

/* 9. Ultra Narrow Screens (320px - Galaxy Fold / Older devices) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 1.4rem;
  }
  .section-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .btn-crimson, .btn-crimson-outline {
    width: 100%;
    justify-content: center;
  }
  .brand-logo-img {
    height: 26px;
  }
  .nav-icon-btn {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
  .cart-item-row {
    grid-template-columns: 46px 1fr;
    grid-template-areas:
      "thumb details"
      "thumb delete"
      "stepper price";
  }
  .cart-item-thumb {
    width: 46px;
    height: 46px;
  }
  .feature-pills-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BADGES & STATUS PILLS (High-Contrast, Zero Block-Color Overflow)
   ========================================================================== */
.badge {
  font-weight: 700 !important;
  letter-spacing: 0.3px;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  line-height: 1.35 !important;
  padding: 6px 12px !important;
  border-radius: var(--radius-pill) !important;
  text-shadow: none !important;
}

/* Success Badges (Paid, Delivered, Active) */
.badge.bg-success,
.badge-status-paid,
.badge-status-delivered,
.badge-status-active,
.badge-status-success {
  background: rgba(16, 185, 129, 0.16) !important;
  color: #34D399 !important;
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
}
.badge.bg-success i,
.badge-status-paid i,
.badge-status-delivered i,
.badge-status-active i,
.badge-status-success i {
  color: #34D399 !important;
}

/* Warning Badges (Pending, Processing) */
.badge.bg-warning,
.badge-status-pending,
.badge-status-processing,
.badge-status-warning {
  background: rgba(245, 158, 11, 0.16) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.45) !important;
}
.badge.bg-warning i,
.badge-status-pending i,
.badge-status-processing i,
.badge-status-warning i {
  color: #FBBF24 !important;
}

/* Info Badges (Manual, In-Progress, Details) */
.badge.bg-info,
.badge-status-info {
  background: rgba(14, 165, 233, 0.16) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(14, 165, 233, 0.45) !important;
}
.badge.bg-info i,
.badge-status-info i {
  color: #38BDF8 !important;
}

/* Danger Badges (Failed, Cancelled, Banned, Out of Stock) */
.badge.bg-danger,
.badge-status-failed,
.badge-status-banned,
.badge-status-danger {
  background: rgba(255, 30, 39, 0.16) !important;
  color: #FF5A62 !important;
  border: 1px solid rgba(255, 30, 39, 0.45) !important;
}
.badge.bg-danger i,
.badge-status-failed i,
.badge-status-danger i {
  color: #FF5A62 !important;
}

/* Secondary Badges (Archived, Disabled) */
.badge.bg-secondary,
.badge-status-archived,
.badge-status-disabled {
  background: rgba(148, 163, 184, 0.14) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
}

/* Primary Badges */
.badge.bg-primary {
  background: rgba(255, 30, 39, 0.22) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--primary) !important;
}

/* Dark Badges */
.badge.bg-dark {
  background: #0E1015 !important;
  color: #E2E8F0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* ==========================================================================
   ADMIN STAT ICONS (High-Contrast, Visible Icons)
   ========================================================================== */
.admin-stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.admin-stat-icon i {
  font-size: 24px !important;
  display: inline-block !important;
  line-height: 1 !important;
}
.admin-stat-icon.bg-success, .admin-stat-icon.icon-success {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #10B981 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
}
.admin-stat-icon.bg-warning, .admin-stat-icon.icon-warning {
  background: rgba(245, 158, 11, 0.15) !important;
  color: #FBBF24 !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
}
.admin-stat-icon.bg-info, .admin-stat-icon.icon-info {
  background: rgba(14, 165, 233, 0.15) !important;
  color: #38BDF8 !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
}
.admin-stat-icon.bg-danger, .admin-stat-icon.icon-danger {
  background: rgba(255, 30, 39, 0.15) !important;
  color: #FF1E27 !important;
  border: 1px solid rgba(255, 30, 39, 0.35) !important;
}
.admin-stat-icon.bg-secondary, .admin-stat-icon.icon-secondary {
  background: rgba(148, 163, 184, 0.12) !important;
  color: #CBD5E1 !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
}

/* ==========================================================================
   PRODUCT DETAILS GALLERY & IMAGE PRESENTATION
   ========================================================================== */
.gallery-main-box {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 20px;
  background: #0B0D13;
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.gallery-main-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5));
  transition: transform var(--transition-normal);
}
.gallery-main-box:hover .gallery-main-img {
  transform: scale(1.04);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gallery-thumb-item {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  background: #0B0D13;
  border: 1px solid var(--border-light);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}
.gallery-thumb-item:hover, .gallery-thumb-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}
.gallery-thumb-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

