/* ==========================================================================
   Game hup - Master Styling & Glassmorphism Design System
   Cyberpunk Dark + High-Voltage Yellow + 3D Glass Depth
   ========================================================================== */

:root {
  --bg-main: #070709;
  --bg-secondary: #0d0e14;
  --bg-card: rgba(18, 20, 29, 0.72);
  --bg-card-hover: rgba(28, 30, 42, 0.85);
  --bg-glass: rgba(14, 16, 23, 0.65);
  --bg-glass-heavy: rgba(10, 11, 16, 0.88);
  
  --accent-yellow: #F68B01;
  --accent-yellow-hover: #ff991c;
  --accent-yellow-dark: #d97706;
  --accent-glow: rgba(246, 139, 1, 0.35);
  --accent-glow-strong: rgba(246, 139, 1, 0.65);
  
  --text-white: #ffffff;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(246, 139, 1, 0.3);
  --border-yellow: rgba(246, 139, 1, 0.45);
  
  --status-success: #10b981;
  --status-warning: #f59e0b;
  --status-danger: #ef4444;
  --status-info: #3b82f6;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 25px var(--accent-glow);
  --shadow-glow-lg: 0 0 45px var(--accent-glow-strong);

  --font-en: 'Outfit', 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

input, select, textarea {
  font-family: inherit;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-primary);
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  width: 100%;
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(246, 139, 1, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(246, 139, 1, 0.04) 0%, transparent 45%),
    linear-gradient(to bottom, #070709 0%, #0a0b10 100%);
  background-attachment: fixed;
  font-family: var(--font-en);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Dynamic Arabic RTL / English LTR typography */
[dir="rtl"] {
  font-family: var(--font-ar);
}
[dir="ltr"] {
  font-family: var(--font-en);
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

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

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

/* Full Width Container Setup */
.app-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
  width: 100%;
  padding-bottom: 5rem;
}

.container-full {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 768px) {
  .container-full {
    padding: 0 1rem;
  }
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-panel-heavy {
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
}

.glass-panel-glow {
  border: 1px solid var(--border-yellow);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Brand Logo Styling */
.brand-logo-container {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  user-select: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(246, 139, 1, 0.25));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.brand-logo-container:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 16px rgba(246, 139, 1, 0.5));
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(7, 8, 12, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-search-bar {
  flex: 1;
  max-width: 580px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.65rem 1rem;
  padding-inline-start: 2.8rem;
  background: rgba(22, 24, 34, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-white);
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 16px var(--accent-glow);
  background: rgba(26, 28, 40, 0.95);
}

.search-icon-box {
  position: absolute;
  inset-inline-start: 1rem;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: var(--text-muted);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-nav-cart {
  background: var(--accent-yellow) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: var(--radius-md) !important;
  padding: 0.45rem 1rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 0 16px var(--accent-glow) !important;
}

.btn-nav-cart .cart-pill-badge {
  background: #000000;
  color: var(--accent-yellow);
  font-size: 0.75rem;
  font-weight: 900;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Buttons System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  outline: none;
  transition: var(--transition-smooth);
  user-select: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-yellow);
  color: #000000;
  box-shadow: 0 0 18px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-yellow-hover);
  box-shadow: 0 0 28px var(--accent-glow-strong);
  transform: translateY(-2px);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
  border-color: var(--border-glass);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-yellow-outline {
  background: transparent;
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
}

.btn-yellow-outline:hover {
  background: rgba(246, 139, 1, 0.12);
  box-shadow: 0 0 18px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

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

.btn-block {
  width: 100%;
}

/* Badge & Indicators */
.badge-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  background: var(--accent-yellow);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--accent-glow);
  padding: 0 4px;
}

/* Desktop Hero Cyber HUD Banner */
.hero-banner-section {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.hero-banner-card {
  position: relative;
  width: 100%;
  min-height: 480px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 50%, #151824 0%, #0c0d14 60%, #06070a 100%);
  border: 1.5px solid rgba(246, 139, 1, 0.45);
  box-shadow: 0 0 35px rgba(246, 139, 1, 0.18), inset 0 0 60px rgba(0, 0, 0, 0.85);
  padding: 2.5rem 3rem;
  box-sizing: border-box;
}

/* Banner Dismiss / Delete Button */
.banner-close-btn {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
  z-index: 20;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 16, 23, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}

.banner-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.5);
}

.hero-banner-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: 
    radial-gradient(ellipse at 45% 50%, rgba(246, 139, 1, 0.12) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  z-index: 1;
}

/* Left Display Showcase Pod */
.hero-left-showcase {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hero-vertical-tag {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Space Grotesk', var(--font-en);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: rgba(246, 139, 1, 0.85);
  text-shadow: 0 0 12px rgba(246, 139, 1, 0.6);
  user-select: none;
}

.hero-pod-frame {
  width: 220px;
  height: 230px;
  border: 2px solid rgba(246, 139, 1, 0.7);
  border-radius: 20px;
  background: radial-gradient(circle at 50% 60%, rgba(246, 139, 1, 0.1) 0%, rgba(10, 12, 18, 0.9) 70%);
  box-shadow: 0 0 25px rgba(246, 139, 1, 0.35), inset 0 0 20px rgba(246, 139, 1, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-pod-controller {
  width: 155px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 15px rgba(246, 139, 1, 0.5));
  animation: floatPod 4s ease-in-out infinite;
  z-index: 2;
}

.hero-pod-pedestal {
  position: absolute;
  bottom: 16px;
  width: 140px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(246, 139, 1, 0.45) 0%, rgba(20, 20, 20, 0.9) 60%, transparent 80%);
  border: 1px solid rgba(246, 139, 1, 0.6);
  box-shadow: 0 0 15px rgba(246, 139, 1, 0.6);
  z-index: 1;
}

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

/* Center HUD Controller & Telemetry */
.hero-center-hud {
  position: absolute;
  left: 44%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.hero-hud-reticles {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-hud-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(246, 139, 1, 0.25);
}
.hero-hud-circle.c1 { width: 340px; height: 340px; animation: spinSlow 30s linear infinite; }
.hero-hud-circle.c2 { width: 420px; height: 420px; border-style: dotted; border-color: rgba(246, 139, 1, 0.15); animation: spinSlowRev 45s linear infinite; }

@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes spinSlowRev { from { transform: rotate(360deg); } to { transform: rotate(0deg); } }

.hero-hud-controller-main {
  width: 320px;
  height: auto;
  filter: drop-shadow(0 0 35px rgba(246, 139, 1, 0.5)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.9));
  z-index: 4;
}

.hero-telemetry-top-left {
  position: absolute;
  top: 25px;
  left: -20px;
  text-align: left;
  font-family: 'Space Grotesk', var(--font-en);
  font-size: 0.72rem;
  color: rgba(246, 139, 1, 0.85);
  line-height: 1.4;
  z-index: 5;
  background: rgba(10, 12, 18, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(246, 139, 1, 0.25);
}

.hero-telemetry-top-left .hud-header {
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-telemetry-top-right {
  position: absolute;
  top: 25px;
  right: -30px;
  text-align: right;
  font-family: 'Space Grotesk', var(--font-en);
  font-size: 0.72rem;
  color: rgba(246, 139, 1, 0.85);
  line-height: 1.4;
  z-index: 5;
  background: rgba(10, 12, 18, 0.6);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(246, 139, 1, 0.25);
}

/* Right Content Column (RTL) */
.hero-banner-content {
  position: relative;
  z-index: 5;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  text-align: right;
}

[dir="ltr"] .hero-banner-content {
  text-align: left;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(20, 22, 32, 0.85);
  border: 1px solid rgba(246, 139, 1, 0.6);
  color: var(--accent-yellow);
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  width: fit-content;
  letter-spacing: 0.08em;
  box-shadow: 0 0 14px rgba(246, 139, 1, 0.25);
}

.hero-banner-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.9);
}

.hero-banner-subtitle {
  font-size: 0.98rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.hero-cta-btn {
  background: var(--accent-yellow) !important;
  color: #000000 !important;
  font-weight: 900 !important;
  padding: 0.85rem 1.8rem !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 0 22px var(--accent-glow) !important;
  width: fit-content;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow-strong) !important;
}

@media (max-width: 1080px) {
  .hero-center-hud { display: none; }
  .hero-banner-card { justify-content: flex-end; padding: 2rem; }
}

@media (max-width: 768px) {
  .hero-banner-section { display: none !important; }
}

/* Category Filters Bar */
.categories-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
  margin-bottom: 2.2rem;
}

.category-chip {
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-full);
  background: rgba(22, 25, 36, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.category-chip:hover {
  border-color: rgba(246, 139, 1, 0.5);
  color: #ffffff;
  background: rgba(30, 34, 48, 0.95);
}

.category-chip.active {
  background: var(--accent-yellow);
  color: #000000;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* Product Grid Layout */
.products-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

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

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* Mobile Rule: 2 Products per row strictly */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Product Card - 3D Glass Style */
.product-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  transform-style: preserve-3d;
}

.product-card:hover {
  border-color: var(--border-yellow);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.product-card-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #090a0e;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.product-stock-tag {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  color: var(--status-success);
  z-index: 2;
}

.product-stock-tag.low-stock {
  color: var(--status-warning);
  border-color: rgba(245, 158, 11, 0.4);
}

.product-stock-tag.out-stock {
  color: var(--status-danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.product-card-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.6rem;
}

@media (max-width: 768px) {
  .product-card-body {
    padding: 0.75rem;
    gap: 0.4rem;
  }
}

.product-category-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.6em;
}

@media (max-width: 768px) {
  .product-card-title {
    font-size: 0.88rem;
  }
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
}

.product-price-usd {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-yellow);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

@media (max-width: 768px) {
  .product-price-usd {
    font-size: 1.1rem;
  }
}

.product-price-currency {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.btn-card-add {
  flex: 1;
  background: var(--accent-yellow);
  color: #000000;
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.btn-card-add:hover {
  background: var(--accent-yellow-hover);
  box-shadow: 0 0 14px var(--accent-glow);
}

@media (max-width: 768px) {
  .btn-card-add {
    padding: 0.55rem;
    font-size: 0.8rem;
  }
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-card {
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 30px var(--accent-glow);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.modal-body {
  padding: 1.5rem;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Product Details View */
.product-details-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 820px) {
  .product-details-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.details-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gallery-main-view {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #090a0e;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-fast);
}

.gallery-thumb.active, .gallery-thumb:hover {
  border-color: var(--accent-yellow);
  opacity: 1;
  box-shadow: 0 0 10px var(--accent-glow);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.details-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.details-title {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.25;
}

.details-price-badge {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.details-price-usd {
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent-yellow);
}

.details-stock-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 24, 34, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
}

.qty-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  color: var(--text-white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.qty-display {
  width: 44px;
  text-align: center;
  font-weight: 800;
  color: #ffffff;
}

.details-cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn-buy-now {
  background: var(--accent-yellow);
  color: #000000;
  font-size: 1.1rem;
  font-weight: 900;
  padding: 0.95rem;
  box-shadow: 0 0 25px var(--accent-glow);
}

.btn-buy-now:hover {
  background: var(--accent-yellow-hover);
  box-shadow: 0 0 35px var(--accent-glow-strong);
}

/* Cart Page */
.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-table-card {
  padding: 1.5rem;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border-glass);
}

@media (max-width: 600px) {
  .cart-item-row {
    grid-template-columns: 60px 1fr;
    gap: 0.8rem;
  }
  .cart-item-controls {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

.cart-item-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item-title {
  font-weight: 700;
  color: #ffffff;
}

.cart-item-price {
  color: var(--accent-yellow);
  font-weight: 800;
}

.cart-summary-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: fit-content;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.summary-row.total-row {
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #ffffff;
}

/* 2-Step Checkout */
.checkout-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
}

.step-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0.45;
  transition: var(--transition-smooth);
}

.step-node.active {
  opacity: 1;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step-node.active .step-circle {
  background: var(--accent-yellow);
  color: #000000;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-glow);
}

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border-glass);
}

.step-connector.completed {
  background: var(--accent-yellow);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e2e8f0;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: rgba(18, 20, 29, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-yellow);
  box-shadow: 0 0 14px var(--accent-glow);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Payment Gateway Hosted Card Form */
.payment-card-frame {
  background: linear-gradient(135deg, rgba(20, 24, 38, 0.9), rgba(12, 14, 22, 0.95));
  border: 1px solid var(--border-yellow);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(246, 139, 1, 0.05);
  margin-bottom: 1.5rem;
}

.card-logos-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.card-badge-icon {
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
  border: 1px solid var(--border-glass);
}

.card-badge-icon.active {
  background: var(--accent-yellow);
  color: #000000;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 12px var(--accent-glow);
}

.sandbox-alert-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(245, 158, 11, 0.12);
  border: 1px dashed rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.85rem;
  color: #fbbf24;
}

/* Order Receipt Card */
.receipt-card {
  max-width: 650px;
  margin: 2rem auto;
  padding: 2.5rem;
  text-align: center;
}

.receipt-icon-success {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--status-success);
  color: var(--status-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.35);
}

/* Security Blocked Screen */
.security-blocked-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.blocked-card {
  max-width: 540px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  border-color: var(--status-danger);
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.25);
}

.blocked-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.blocked-title {
  color: #f87171;
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.blocked-meta {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 1.5rem 0;
  text-align: start;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
}

/* Admin Dashboard Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.admin-sidebar {
  width: 280px;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(24px);
  border-inline-end: 1px solid var(--border-glass);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 100;
}

@media (max-width: 960px) {
  .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
    transition: transform var(--transition-smooth);
  }
  
  /* LTR drawer slides from left */
  [dir="ltr"] .admin-sidebar {
    left: 0;
    transform: translateX(-100%);
  }
  [dir="ltr"] .admin-sidebar.open {
    transform: translateX(0);
  }
  
  /* RTL drawer slides from right */
  [dir="rtl"] .admin-sidebar {
    right: 0;
    transform: translateX(100%);
  }
  [dir="rtl"] .admin-sidebar.open {
    transform: translateX(0);
  }
}

.admin-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.admin-nav-item.active {
  background: var(--accent-yellow);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 0 20px var(--accent-glow);
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: hidden;
  max-width: calc(100vw - 280px);
}

@media (max-width: 960px) {
  .admin-content {
    max-width: 100vw;
    padding: 1rem;
  }
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.metric-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-yellow);
  box-shadow: 0 0 10px var(--accent-glow);
}

.metric-val {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
}

.metric-val.highlight {
  color: var(--accent-yellow);
}

/* Tables in Admin */
.admin-table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.admin-table th {
  background: rgba(18, 20, 29, 0.95);
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill.status-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.status-pill.status-preparing {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-pill.status-shipped {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.status-pill.status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-pill.status-paid {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pill.status-refunded {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tabs Switcher */
.subtabs-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

.subtab-btn {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.subtab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.subtab-btn.active {
  color: #000000;
  background: var(--accent-yellow);
  font-weight: 800;
  box-shadow: 0 0 15px var(--accent-glow);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-end: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-yellow);
  backdrop-filter: blur(20px);
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7), 0 0 15px var(--accent-glow);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  animation: slideInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Footer */
.site-footer {
  width: 100%;
  border-top: 1px solid var(--border-glass);
  background: rgba(6, 7, 10, 0.95);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Helpers */
.text-yellow { color: var(--accent-yellow) !important; }
.text-success { color: var(--status-success) !important; }
.text-danger { color: var(--status-danger) !important; }
.font-mono { font-family: monospace, monospace; }
.hidden { display: none !important; }

/* ==========================================================================
   Firebase UI & Admin Additions
   ========================================================================== */

.firebase-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(246, 139, 1, 0.1);
  border: 1px solid var(--border-yellow);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-yellow);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--status-success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--status-success);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.user-pill-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass-hover);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.user-pill-badge:hover {
  border-color: var(--border-yellow);
  background: rgba(246, 139, 1, 0.12);
}

.user-avatar-circle {
  width: 26px;
  height: 26px;
  background: var(--accent-yellow);
  color: #000;
  border-radius: 50%;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.user-name-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-white);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout-mini {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 0.2rem;
}

.btn-logout-mini:hover {
  color: var(--status-danger);
}

.admin-quick-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  text-decoration: none;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.admin-quick-link:hover {
  border-color: var(--accent-yellow);
  background: rgba(246, 139, 1, 0.15);
  transform: translateY(-2px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease-out;
}

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

.admin-tabs-nav-bar {
  background: rgba(10, 11, 16, 0.85);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.6rem 0;
  position: sticky;
  top: 75px;
  z-index: 90;
  backdrop-filter: blur(16px);
  width: 100%;
}

.admin-tabs-scroll-row {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

html[dir="rtl"] .admin-tabs-scroll-row {
  justify-content: flex-start;
  direction: rtl;
}

html[dir="ltr"] .admin-tabs-scroll-row {
  justify-content: flex-start;
  direction: ltr;
}

.admin-tabs-scroll-row::-webkit-scrollbar {
  display: none;
}

.adm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.adm-tab-btn:hover {
  color: var(--text-white);
  border-color: var(--border-glass-hover);
  background: rgba(255, 255, 255, 0.06);
}

.adm-tab-btn.active {
  background: var(--accent-yellow);
  color: #000;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 15px var(--accent-glow);
}

.admin-prod-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-prod-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-glass);
}

.btn-close-mini {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-close-mini:hover {
  color: var(--text-white);
}

/* ==========================================================================
   3D Hourglass & Store Maintenance Mode Screen
   ========================================================================== */
.maintenance-screen {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3.5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.maintenance-card {
  max-width: 720px;
  width: 100%;
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(246, 139, 1, 0.35);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(246, 139, 1, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: maintenanceFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.maintenance-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(246, 139, 1, 0.1) 0%, transparent 60%);
  pointer-events: none;
  animation: maintenancePulse 6s ease-in-out infinite alternate;
}

.maintenance-logo {
  height: 65px;
  max-width: 240px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(246, 139, 1, 0.5));
  margin-bottom: 0.5rem;
  animation: logoFloat 4s ease-in-out infinite alternate;
}

/* 3D Hourglass Component */
.hourglass-3d-wrap {
  width: 150px;
  height: 210px;
  perspective: 800px;
  margin: 0.5rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hourglass-3d-body {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: hourglass3DRotate 7s ease-in-out infinite alternate;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.85)) drop-shadow(0 0 18px rgba(246, 139, 1, 0.4));
}

@keyframes hourglass3DRotate {
  0% {
    transform: rotateY(-20deg) rotateX(12deg) rotateZ(0deg);
  }
  50% {
    transform: rotateY(20deg) rotateX(-12deg) rotateZ(4deg);
  }
  100% {
    transform: rotateY(-20deg) rotateX(12deg) rotateZ(0deg);
  }
}

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

@keyframes maintenancePulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.5; }
  100% { transform: scale(1.15) rotate(15deg); opacity: 0.9; }
}

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

.maintenance-title {
  font-size: 2.3rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 25px rgba(246, 139, 1, 0.6), 0 2px 4px rgba(0,0,0,0.8);
  line-height: 1.35;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #ffb703 70%, #F68B01 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.maintenance-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
}

/* Countdown Clock */
.maintenance-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(246, 139, 1, 0.4);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.6), 0 0 12px rgba(246, 139, 1, 0.15);
}

.countdown-num {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-yellow);
  line-height: 1;
}

.countdown-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.35rem;
  font-weight: 700;
}

.countdown-sep {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: rgba(246, 139, 1, 0.7);
  margin-top: -12px;
}

/* ==========================================================================
   Storefront Live Chat Widget (Floating Support)
   ========================================================================== */
.store-chat-trigger {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb703, #F68B01);
  box-shadow: 0 10px 25px rgba(246, 139, 1, 0.4), 0 0 15px rgba(255, 183, 3, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  color: #000;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  user-select: none;
}

html[dir="rtl"] .store-chat-trigger {
  right: auto;
  left: 25px;
}

.store-chat-trigger:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 14px 30px rgba(246, 139, 1, 0.6), 0 0 25px rgba(255, 183, 3, 0.7);
}

.chat-badge-bubble {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  font-family: var(--font-mono);
  padding: 2px 6px;
  border-radius: 12px;
  border: 2px solid #12141e;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
  animation: pulseDot 2s infinite;
}

html[dir="rtl"] .chat-badge-bubble {
  right: auto;
  left: -5px;
}

/* Chat Widget Window */
.store-chat-widget {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 380px;
  max-width: calc(100vw - 40px);
  height: 520px;
  max-height: calc(100vh - 120px);
  background: rgba(18, 20, 30, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(246, 139, 1, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(246, 139, 1, 0.15);
  z-index: 999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: chatOpenAnim 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

html[dir="rtl"] .store-chat-widget {
  right: auto;
  left: 25px;
}

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

.chat-widget-header {
  padding: 1rem 1.25rem;
  background: rgba(246, 139, 1, 0.1);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1a1d2d;
  border: 1.5px solid var(--accent-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-online-dot {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #12141e;
  box-shadow: 0 0 8px #10b981;
}

.chat-widget-body {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chat-msg {
  display: flex;
  flex-direction: column;
  max-width: 82%;
  animation: fadeIn 0.3s ease;
}

.chat-msg-incoming {
  align-self: flex-start;
}

.chat-msg-outgoing {
  align-self: flex-end;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-break: break-word;
}

.chat-msg-incoming .chat-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #f1f5f9;
  border-bottom-left-radius: 4px;
}

html[dir="rtl"] .chat-msg-incoming .chat-bubble {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 4px;
}

.chat-msg-outgoing .chat-bubble {
  background: linear-gradient(135deg, rgba(246, 139, 1, 0.9), rgba(255, 183, 3, 0.9));
  color: #000;
  font-weight: 600;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(246, 139, 1, 0.25);
}

html[dir="rtl"] .chat-msg-outgoing .chat-bubble {
  border-bottom-right-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chat-meta {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
  padding: 0 0.25rem;
}

.chat-msg-outgoing .chat-meta {
  text-align: end;
}

.chat-quick-chips {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--accent-yellow);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.chat-chip:hover {
  background: rgba(246, 139, 1, 0.2);
  border-color: var(--accent-yellow);
}

.chat-widget-footer {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.chat-input:focus {
  border-color: var(--accent-yellow);
}

.chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-yellow);
  border: none;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.chat-send-btn:hover {
  transform: scale(1.08);
}

/* ==========================================================================
   Admin Live Chat Management Dashboard (💬 الدردشة مع العملاء)
   ========================================================================== */
.admin-chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.25rem;
  height: 680px;
  max-height: calc(100vh - 220px);
}

@media (max-width: 900px) {
  .admin-chat-layout {
    grid-template-columns: 1fr;
    height: auto;
  }
}

.admin-chat-sidebar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-chat-session-item {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: background var(--transition-fast);
  position: relative;
}

.admin-chat-session-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.admin-chat-session-item.active {
  background: rgba(246, 139, 1, 0.12);
  border-right: 3px solid var(--accent-yellow);
}

html[dir="rtl"] .admin-chat-session-item.active {
  border-right: none;
  border-left: 3px solid var(--accent-yellow);
}

.chat-nav-badge {
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 12px;
  margin-inline-start: 6px;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  font-family: var(--font-mono);
  animation: pulseDot 2s infinite;
  display: inline-block;
}

.admin-chat-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.admin-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-chat-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(10, 12, 18, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.canned-replies-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.canned-chip-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--accent-yellow);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.canned-chip-btn:hover {
  background: rgba(246, 139, 1, 0.15);
  border-color: var(--accent-yellow);
  transform: translateY(-1px);
}

.admin-chat-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}



