/* ==========================================================================
   BOXD - Design System (Jersey 10 Big Readable Fonts, Refined 2px Borders & Symmetrical Layout)
   ========================================================================== */

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

@font-face {
  font-family: 'Changa';
  src: url('../fonts/Changa.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Clean Light Background Palette */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-surface-elevated: #e2e8f0;
  --bg-glass: rgba(255, 255, 255, 0.96);

  /* Black & Purple Theme Accents */
  --pixel-black: #121214;
  --accent-primary: #9333ea;
  --accent-primary-hover: #7e22ce;
  --accent-glow: rgba(147, 51, 234, 0.15);

  --accent-purple: #9333ea;
  --accent-purple-light: #a855f7;
  --accent-purple-bright: #c084fc;
  --accent-purple-dark: #7e22ce;
  --accent-purple-glow: rgba(147, 51, 234, 0.25);
  --accent-purple-tint: #f3e8ff;

  --pixel-red: #ef4444;
  --pixel-gold: #9333ea;
  --pixel-blue: #3b82f6;
  --pixel-green: #10b981;
  --pixel-purple: #9333ea;

  --accent-blue: #2563eb;
  --accent-crimson: #e11d48;
  --accent-gold: #9333ea;
  --accent-emerald: #059669;

  --text-main: #121214;
  --text-muted: #475569;
  --text-dim: #64748b;

  --border-subtle: #cbd5e1;
  --border-glass: #94a3b8;
  --border-active: #9333ea;

  /* Refined, Crisp Border Strokes (Reduced from bulky 3px/4px to sleek 2px/1.5px) */
  --border-pixel-sm: 1.5px solid #121214;
  --border-pixel: 2px solid #121214;
  --border-pixel-thick: 2px solid #121214;

  /* Clean, Symmetrical Hard Shadows */
  --shadow-pixel-sm: 2px 2px 0px #121214;
  --shadow-pixel: 3px 3px 0px #121214;
  --shadow-pixel-hover: 4px 4px 0px #9333ea;
  --shadow-pixel-purple: 3px 3px 0px #9333ea;
  --shadow-pixel-active: 1px 1px 0px #121214;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Jersey 10 Big Clear Pixel Typography */
  --font-title: 'Jersey 10', sans-serif;
  --font-display: 'Jersey 10', sans-serif;
  --font-body: 'Jersey 10', sans-serif;
  --font-pixel: 'Jersey 10', sans-serif;
  --font-code: 'Jersey 10', monospace;
  --font-ar: 'Changa', 'Cairo', sans-serif;
  --font-ar-display: 'Changa', sans-serif;
  --font-ar-body: 'Changa', 'Cairo', sans-serif;

  --shadow-sm: var(--shadow-pixel-sm);
  --shadow-md: var(--shadow-pixel);
  --shadow-lg: 4px 4px 0px #121214;

  --transition-smooth: all 0.15s ease;
}

/* RTL Support & Egyptian Arabic Typography */
[dir="rtl"],
[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] span, [dir="rtl"] a, [dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea,
[dir="rtl"] label, [dir="rtl"] .pixel-badge, [dir="rtl"] .nav-link, [dir="rtl"] .pixel-btn, [dir="rtl"] .pixel-modal-title,
[dir="rtl"] .pixel-toast-msg, [dir="rtl"] .pixel-toast-title {
  font-family: var(--font-ar), 'Changa', 'Cairo', sans-serif !important;
  letter-spacing: 0px !important;
}

[dir="rtl"] body {
  font-size: 0.95rem;
}

[dir="rtl"] .nav-item a {
  font-size: 0.95rem;
}

[dir="rtl"] .nav-btn {
  font-size: 0.95rem;
}

[dir="rtl"] .lang-switch-btn {
  font-size: 0.88rem;
}

[dir="rtl"] .nav-badge-pulse {
  font-size: 0.78rem;
}

[dir="rtl"] h1 { font-size: 2.4rem; }
[dir="rtl"] h2 { font-size: 1.9rem; }
[dir="rtl"] h3 { font-size: 1.5rem; }
[dir="rtl"] h4 { font-size: 1.25rem; }
[dir="rtl"] h5 { font-size: 1.1rem; }
[dir="rtl"] h6 { font-size: 0.95rem; }

[dir="rtl"] .toast-container {
  right: auto !important;
  left: 24px !important;
}

@media (max-width: 640px) {
  [dir="rtl"] .toast-container {
    right: auto !important;
    left: 16px !important;
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.3rem;
  line-height: 1.45;
  letter-spacing: 0.6px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
  background-image: 
    radial-gradient(#cbd5e1 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 20px 20px, 40px 40px, 40px 40px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.8px;
  color: var(--text-main);
}
h1 { font-size: 3.6rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 2.2rem; }
h4 { font-size: 1.7rem; }
h5 { font-size: 1.4rem; }
h6 { font-size: 1.2rem; }

p {
  font-family: var(--font-body);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  outline: none;
  background: transparent;
}

button {
  cursor: pointer;
}

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

/* Global Container - Symmetric Alignment */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .container {
    padding: 0 14px;
  }
}

/* Top Announcement Banner - Removed per user request */
.top-announcement-bar {
  display: none !important;
}

/* Main Navigation Bar - Symmetrical Alignment */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #ffffff;
  border-bottom: var(--border-pixel);
  box-shadow: 0 3px 0px rgba(18, 18, 20, 0.04);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 12px;
}

.nav-item a {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  position: relative;
  padding: 8px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
}

.nav-item a:hover,
.nav-item a.active {
  color: #121214;
  background: #faf5ff;
  border: 1.5px solid #9333ea;
  box-shadow: 2px 2px 0px #9333ea;
}

.nav-badge-pulse {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 2px 8px;
  background: #9333ea;
  color: #ffffff;
  border: 1.5px solid #121214;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  box-shadow: 1px 1px 0px #000;
}

/* Nav Soon Badge */
.nav-badge-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 2px 7px;
  background: #f3e8ff;
  color: #7e22ce;
  border: 1.5px solid #c084fc;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

[dir="rtl"] .nav-badge-soon {
  margin-left: 0;
  margin-right: 6px;
}

.nav-item a:hover .nav-badge-soon {
  background: #9333ea;
  color: #ffffff;
  border-color: #121214;
}

.nav-link-soon {
  opacity: 0.92;
  cursor: pointer;
}

/* Dropdown Menu Wrapper & Button */
.nav-dropdown-wrapper {
  position: relative;
}

.nav-menu-btn {
  background: #ffffff;
  border: var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  border-radius: var(--radius-sm);
  color: #121214;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.nav-menu-btn:hover,
.nav-menu-btn.active {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
  border-color: #9333ea;
  background: #faf5ff;
  color: #9333ea;
}

.nav-menu-btn.has-user {
  border-color: #9333ea;
  background: #f3e8ff;
  color: #7e22ce;
}

/* Dropdown Menu Container */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: #ffffff;
  border: 2.5px solid #121214;
  border-radius: 12px;
  box-shadow: 6px 6px 0px #121214;
  padding: 16px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.97);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
  pointer-events: none;
}

[dir="rtl"] .nav-dropdown-menu {
  right: auto;
  left: 0;
}

.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Dropdown User Profile Card */
.dropdown-user-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
}

.dropdown-user-avatar {
  width: 44px;
  height: 44px;
  background: #faf5ff;
  border: 2px solid #9333ea;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #9333ea;
  flex-shrink: 0;
  box-shadow: 2px 2px 0px #121214;
}

.dropdown-user-info {
  flex: 1;
  overflow: hidden;
}

.dropdown-user-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 800;
  color: #121214;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dropdown-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.dropdown-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 6px;
  text-align: center;
  transition: all 0.15s ease;
  border: 1.5px solid #121214;
}

.dropdown-divider {
  height: 1.5px;
  background: #f1f5f9;
  border-bottom: 1px dashed #cbd5e1;
  margin: 12px 0;
}

.dropdown-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dropdown-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #121214;
  background: transparent;
  border: 1.5px solid transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

[dir="rtl"] .dropdown-menu-item {
  text-align: right;
}

.dropdown-menu-item:hover {
  background: #faf5ff;
  border-color: #9333ea;
  transform: translateX(3px);
}

[dir="rtl"] .dropdown-menu-item:hover {
  transform: translateX(-3px);
}

.dropdown-item-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
}

.dropdown-item-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #121214;
}

.dropdown-item-sub {
  font-size: 0.78rem;
  color: #6b7280;
  font-weight: 500;
}

.dropdown-soon-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fdf4ff;
  border: 1.5px dashed #c084fc;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #9333ea;
}

.soon-dot {
  width: 8px;
  height: 8px;
  background: #9333ea;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.dropdown-signout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropdown-signout-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* Coming Soon Modal */
.soon-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10002;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.soon-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.soon-modal-card {
  background: #ffffff;
  border: 3px solid #121214;
  border-radius: 16px;
  box-shadow: 8px 8px 0px #9333ea;
  max-width: 440px;
  width: 100%;
  padding: 32px 24px;
  text-align: center;
  transform: scale(0.92) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.soon-modal-backdrop.show .soon-modal-card {
  transform: scale(1) translateY(0);
}

.soon-modal-icon-wrap {
  width: 68px;
  height: 68px;
  background: #f3e8ff;
  border: 2.5px solid #9333ea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #9333ea;
  margin: 0 auto 16px;
  box-shadow: 3px 3px 0px #121214;
}

.soon-modal-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  color: #121214;
  margin-bottom: 8px;
}

.soon-modal-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.soon-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
}

.badge-mini-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 5px;
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #c084fc;
  border-radius: 3px;
  margin-left: 4px;
  text-transform: uppercase;
}

[dir="rtl"] .badge-mini-soon {
  margin-left: 0;
  margin-right: 4px;
}

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

/* Nav Action Buttons - Uniform Symmetric Heights */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  background: #ffffff;
  color: #121214;
  border-radius: var(--radius-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}

.nav-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pixel-hover);
}

.nav-btn:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-pixel-active);
}

.btn-primary {
  background: #121214;
  color: #ffffff;
  border-color: #121214;
}

.btn-primary:hover {
  background: #9333ea;
  border-color: #121214;
  color: #ffffff;
  box-shadow: 4px 4px 0px #121214;
}

.btn-outline {
  border: var(--border-pixel);
  background: #ffffff;
  color: var(--text-main);
}

.btn-outline:hover {
  background: #faf5ff;
  border-color: #9333ea;
  box-shadow: 4px 4px 0px #9333ea;
}

.btn-icon {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: var(--border-pixel);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  position: relative;
  box-shadow: var(--shadow-pixel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-icon:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
  border-color: #9333ea;
}

.btn-icon:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-pixel-active);
}

.cart-count-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #9333ea;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 900;
  width: 24px;
  height: 24px;
  border: 1.5px solid #121214;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 1px 1px 0px #000;
  transition: transform 0.18s ease, background 0.18s ease;
}

@keyframes badgePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); background: #10b981; }
  100% { transform: scale(1); }
}

.cart-count-badge.badge-popping {
  animation: badgePop 0.32s ease forwards;
}

.lang-switch-btn {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: var(--border-pixel);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-pixel-sm);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.1s;
}

.lang-switch-btn:hover {
  background: #faf5ff;
  border-color: #9333ea;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #9333ea;
}

/* Nav Mobile Toggle Hamburger Button */
.nav-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: var(--border-pixel);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  box-shadow: var(--shadow-pixel);
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, border-color 0.1s;
  flex-shrink: 0;
}

.nav-mobile-toggle:hover {
  background: #faf5ff;
  border-color: #9333ea;
  box-shadow: 4px 4px 0px #9333ea;
  transform: translate(-2px, -2px);
}

.nav-mobile-toggle:active {
  transform: translate(1px, 1px);
  box-shadow: var(--shadow-pixel-active);
}

/* ==========================================================================
   MOBILE NAVIGATION DRAWER & BACKDROP
   ========================================================================== */
.nav-mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 18, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-mobile-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: -320px;
  width: 300px;
  max-width: 84vw;
  height: 100vh;
  background: #ffffff;
  z-index: 99999;
  border-right: var(--border-pixel);
  box-shadow: 6px 0px 0px rgba(18, 18, 20, 0.15);
  transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-mobile-drawer.active {
  left: 0;
}

[dir="rtl"] .nav-mobile-drawer {
  left: auto;
  right: -320px;
  border-right: none;
  border-left: var(--border-pixel);
  box-shadow: -6px 0px 0px rgba(18, 18, 20, 0.15);
  transition: right 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

[dir="rtl"] .nav-mobile-drawer.active {
  right: 0;
  left: auto;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid #121214;
  background: #faf5ff;
}

.mobile-drawer-logo {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
}

.mobile-drawer-close {
  width: 38px;
  height: 38px;
  background: #ffffff;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #121214;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #121214;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}

.mobile-drawer-close:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #ef4444;
  border-color: #ef4444;
  color: #ef4444;
}

.mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  gap: 8px;
  flex: 1;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 800;
  color: #121214;
  text-decoration: none;
  transition: all 0.12s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #faf5ff;
  border: 1.5px solid #9333ea;
  box-shadow: 3px 3px 0px #9333ea;
  color: #9333ea;
  transform: translateX(3px);
}

[dir="rtl"] .mobile-nav-link:hover,
[dir="rtl"] .mobile-nav-link.active {
  transform: translateX(-3px);
}

.mobile-drawer-footer {
  padding: 16px 18px;
  border-top: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-drawer-auth-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 800;
  background: #121214;
  color: #ffffff;
  border: 2px solid #121214;
  box-shadow: 3px 3px 0px #9333ea;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
}

.mobile-drawer-auth-btn:hover {
  background: #9333ea;
  box-shadow: 4px 4px 0px #121214;
  color: #ffffff;
}

/* ==========================================================================
   CART DRAWER - Symmetrical Spacing
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 18, 20, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 440px;
  max-width: 90vw;
  height: 100vh;
  background: #ffffff;
  border-left: var(--border-pixel);
  box-shadow: -6px 0px 0px rgba(18, 18, 20, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: var(--border-pixel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.cart-drawer-header h3 {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: #121214;
  letter-spacing: 0.5px;
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1.5px dashed #cbd5e1;
}

.cart-item-img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  border: 1.5px solid #121214;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-tier-badge {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 800;
  color: #9333ea;
  margin-top: 2px;
}

.cart-item-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.cart-item-price {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 900;
  color: #9333ea;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #121214;
  border-radius: var(--radius-sm);
  background: #ffffff;
  overflow: hidden;
}

.cart-qty-btn {
  width: 24px;
  height: 24px;
  background: #f3f4f6;
  border: none;
  font-weight: 900;
  font-size: 1.1rem;
  color: #121214;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-btn:hover {
  background: #e5e7eb;
}

.cart-qty-val {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: #121214;
}

.cart-drawer-footer {
  padding: 24px;
  border-top: var(--border-pixel);
  background: #f8fafc;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 1.25rem;
}

.cart-summary-total {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 900;
  padding-top: 12px;
  border-top: 1.5px dashed #121214;
  margin-top: 12px;
}

.cart-checkout-btn {
  width: 100%;
  padding: 14px;
  background: #9333ea;
  color: #ffffff;
  border: var(--border-pixel);
  box-shadow: 3px 3px 0px #121214;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 800;
  text-align: center;
  margin-top: 16px;
  display: block;
  transition: transform 0.1s, box-shadow 0.1s;
}

.cart-checkout-btn:hover {
  background: #7e22ce;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #121214;
}

/* ==========================================================================
   UNIVERSAL RETRO PIXEL FILTER PILLS
   ========================================================================== */
.category-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 20px auto 32px;
}

.filter-pill {
  padding: 10px 18px;
  background: #ffffff;
  border: 2px solid #121214;
  box-shadow: 3px 3px 0px #121214;
  border-radius: var(--radius-sm, 3px);
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 800;
  color: #121214;
  cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.12s cubic-bezier(0.16, 1, 0.3, 1), background 0.12s, color 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  text-decoration: none;
}

.filter-pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
  border-color: #121214;
  background: #faf5ff;
}

.filter-pill.active {
  background: #121214;
  color: #ffffff;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
  border-color: #121214;
}

/* ==========================================================================
   PIXEL RETRO TOAST ALERTS & NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed !important;
  top: 86px !important;
  right: 24px !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 9999999 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  pointer-events: none !important;
  max-width: 400px !important;
  width: calc(100vw - 48px) !important;
  overflow: visible !important;
}

[dir="rtl"] .toast-container {
  right: auto !important;
  left: 24px !important;
}

/* Phone / Mobile: Alerts smaller and centered in the middle top */
@media (max-width: 768px) {
  .toast-container {
    top: 14px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: min(340px, calc(100vw - 28px)) !important;
    width: min(340px, calc(100vw - 28px)) !important;
    align-items: center !important;
    gap: 8px !important;
  }

  [dir="rtl"] .toast-container {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .pixel-toast,
  .pixel-morph-toast {
    width: 100% !important;
    border-width: 1.5px !important;
    box-shadow: 2.5px 2.5px 0px #121214 !important;
    animation: pixelAlertInMobile 0.25s cubic-bezier(0.18, 0.9, 0.32, 1.25) forwards !important;
  }

  .pixel-toast.dismissing,
  .pixel-morph-toast.dismissing {
    animation: pixelAlertOutMobile 0.18s ease-in forwards !important;
  }

  .pixel-toast-header {
    padding: 5px 8px 4px !important;
    border-bottom-width: 1.5px !important;
  }

  .pixel-toast-tag {
    padding: 2px 6px !important;
    font-size: 0.78rem !important;
    gap: 4px !important;
    border-width: 1px !important;
    box-shadow: 1px 1px 0px #121214 !important;
  }

  .pixel-toast-close-btn {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.85rem !important;
  }

  .pixel-toast-body {
    padding: 7px 10px !important;
    gap: 8px !important;
    align-items: center !important;
  }

  .pixel-toast-icon-side {
    width: 26px !important;
    height: 26px !important;
    font-size: 0.92rem !important;
    border-width: 1.5px !important;
    box-shadow: 1.5px 1.5px 0px #121214 !important;
  }

  .pixel-toast-title {
    font-size: 0.92rem !important;
    margin-bottom: 2px !important;
  }

  .pixel-toast-msg {
    font-size: 0.85rem !important;
    line-height: 1.25 !important;
  }

  .pixel-toast-timer-track {
    height: 3px !important;
  }
}

@keyframes pixelAlertInMobile {
  0% {
    opacity: 0;
    transform: translateY(-24px) scale(0.95);
  }
  70% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pixelAlertOutMobile {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-20px) scale(0.94);
  }
}

.pixel-toast,
.pixel-morph-toast {
  pointer-events: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 2px solid #121214;
  box-shadow: 4px 4px 0px #121214;
  border-radius: 2px;
  user-select: none;
  overflow: hidden;
  animation: pixelAlertIn 0.28s cubic-bezier(0.18, 0.9, 0.32, 1.25) forwards;
  transition: transform 0.2s, opacity 0.2s;
}

.pixel-toast:hover .pixel-toast-timer-bar,
.pixel-morph-toast:hover .pixel-toast-timer-bar {
  animation-play-state: paused;
}

.pixel-toast.dismissing,
.pixel-morph-toast.dismissing {
  animation: pixelAlertOut 0.2s ease-in forwards;
}

@keyframes pixelAlertIn {
  0% {
    opacity: 0;
    transform: translateX(40px) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateX(-4px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes pixelAlertOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(50px) scale(0.9);
  }
}

/* Toast Header Bar */
.pixel-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  background: #f8fafc;
  border-bottom: 2px solid #121214;
}

.pixel-toast-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1.5px solid #121214;
  box-shadow: 1.5px 1.5px 0px #121214;
  border-radius: 2px;
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.toast-success .pixel-toast-tag { background: #9333ea; color: #ffffff; }
.toast-error .pixel-toast-tag { background: #ef4444; color: #ffffff; }
.toast-warning .pixel-toast-tag { background: #f59e0b; color: #121214; }
.toast-info .pixel-toast-tag { background: #3b82f6; color: #ffffff; }

.pixel-toast-close-btn {
  background: transparent;
  border: 1.5px solid transparent;
  color: #64748b;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  font-size: 1.1rem;
  font-weight: 900;
  transition: all 0.1s;
}

.pixel-toast-close-btn:hover {
  background: #fee2e2;
  border-color: #ef4444;
  color: #dc2626;
  box-shadow: 2px 2px 0px #121214;
  transform: translate(-1px, -1px);
}

/* Toast Body */
.pixel-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
}

.pixel-toast-icon-side {
  width: 38px;
  height: 38px;
  border-radius: 4px;
  border: 2px solid #121214;
  box-shadow: 2px 2px 0px #121214;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  background: #f8fafc;
}

.toast-success .pixel-toast-icon-side { color: #9333ea; border-color: #121214; }
.toast-error .pixel-toast-icon-side { color: #ef4444; border-color: #121214; background: #fff1f2; }
.toast-warning .pixel-toast-icon-side { color: #d97706; border-color: #121214; background: #fffbeb; }
.toast-info .pixel-toast-icon-side { color: #3b82f6; border-color: #121214; background: #eff6ff; }

.pixel-toast-content {
  flex: 1;
  min-width: 0;
}

.pixel-toast-title {
  display: block;
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 900;
  color: #121214;
  margin-bottom: 2px;
  line-height: 1.2;
}

.pixel-toast-msg {
  display: block;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  word-break: break-word;
}

/* Stepped Countdown Progress Bar */
.pixel-toast-timer-track {
  width: 100%;
  height: 5px;
  background: #e2e8f0;
  border-top: 1.5px solid #121214;
  overflow: hidden;
}

.pixel-toast-timer-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
  animation: pixelCountdown linear forwards;
}

.toast-success .pixel-toast-timer-bar { background: #9333ea; }
.toast-error .pixel-toast-timer-bar { background: #ef4444; }
.toast-warning .pixel-toast-timer-bar { background: #f59e0b; }
.toast-info .pixel-toast-timer-bar { background: #3b82f6; }

@keyframes pixelCountdown {
  from { width: 100%; }
  to { width: 0%; }
}

/* ==========================================================================
   PIXEL MORPH CONFIRMATION & ALERT MODAL DIALOG
   ========================================================================== */
.pixel-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 20, 0.68);
  backdrop-filter: blur(3px);
  z-index: 1000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.pixel-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.pixel-modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border: var(--border-pixel-thick);
  box-shadow: 6px 6px 0px #121214;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  animation: pixelModalPop 0.26s cubic-bezier(0.18, 0.9, 0.32, 1.2) forwards;
  overflow: hidden;
}

@keyframes pixelModalPop {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-12px);
  }
  75% {
    opacity: 1;
    transform: scale(1.02) translateY(2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.pixel-modal-header {
  padding: 16px 20px 12px;
  border-bottom: 2px solid #121214;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pixel-modal-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #121214;
  border-radius: 2px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 900;
  background: #9333ea;
  color: #ffffff;
}

.pixel-modal-tag.type-error { background: #ef4444; }
.pixel-modal-tag.type-warning { background: #f59e0b; color: #121214; }
.pixel-modal-tag.type-info { background: #3b82f6; }

.pixel-modal-body {
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pixel-modal-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  border: 2px solid #121214;
  box-shadow: 2px 2px 0px #121214;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.6rem;
  background: #faf5ff;
  color: #9333ea;
}

.pixel-modal-icon-wrap.type-error { background: #fef2f2; color: #ef4444; }
.pixel-modal-icon-wrap.type-warning { background: #fffbeb; color: #d97706; }

.pixel-modal-text-wrap {
  flex: 1;
}

.pixel-modal-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 900;
  color: #121214;
  margin-bottom: 6px;
  line-height: 1.2;
}

.pixel-modal-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.4;
}

.pixel-modal-footer {
  padding: 14px 20px 18px;
  border-top: 2px solid #121214;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pixel-modal-btn {
  padding: 10px 20px;
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.2rem;
  cursor: pointer;
  border: 2px solid #121214;
  border-radius: var(--radius-sm);
  transition: transform 0.1s, box-shadow 0.1s;
}

.pixel-modal-btn-cancel {
  background: #ffffff;
  color: #121214;
  box-shadow: 2px 2px 0px #121214;
}

.pixel-modal-btn-cancel:hover {
  background: #f1f5f9;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121214;
}

.pixel-modal-btn-confirm {
  background: #9333ea;
  color: #ffffff;
  box-shadow: 3px 3px 0px #121214;
}

.pixel-modal-btn-confirm.danger {
  background: #ef4444;
}

.pixel-modal-btn-confirm:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px #121214;
}

/* ==========================================================================
   SITE FOOTER - Symmetrical Columns
   ========================================================================== */
.footer {
  background: #121214;
  color: #ffffff;
  border-top: var(--border-pixel);
  padding: 60px 0 40px;
  margin-top: auto;
  font-family: var(--font-body);
}

.footer .brand-logo-img,
.footer-logo {
  filter: brightness(0) invert(1) !important;
  height: 34px;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-brand-desc {
  font-family: var(--font-body);
  font-size: 1.25rem;
  color: #94a3b8;
  margin: 16px 0 20px;
  max-width: 320px;
  line-height: 1.4;
}

.footer-social-links {
  display: flex;
  gap: 12px;
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  background: #1e1e22;
  border: 1.5px solid #3f3f46;
  border-radius: var(--radius-sm);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.1s;
}

.footer-social-btn:hover {
  background: #9333ea;
  color: #ffffff;
  border-color: #9333ea;
  transform: translate(-2px, -2px);
  box-shadow: 3px 3px 0px #c084fc;
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 1.7rem;
  font-weight: 800;
  color: #c084fc;
  margin-bottom: 16px;
  letter-spacing: 0.8px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-list a {
  color: #94a3b8;
  font-size: 1.25rem;
  font-weight: 500;
  transition: color 0.15s, padding 0.15s;
}

.footer-links-list a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid #27272a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.15rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 16px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-left: 1.5px solid #121214;
}
::-webkit-scrollbar-thumb {
  background: #121214;
  border: 1.5px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (Global & Navigation)
   ========================================================================== */
@media (max-width: 992px) {
  .nav-links {
    display: none !important;
  }
  .nav-mobile-toggle {
    display: inline-flex !important;
  }
  .navbar-inner {
    height: 70px;
    gap: 12px;
  }
  .brand-logo-img {
    height: 38px;
    max-width: 150px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 600px) {
  .top-announcement-bar {
    font-size: 0.95rem;
    padding: 8px 10px;
    gap: 6px;
    line-height: 1.3;
  }
  .navbar-inner {
    height: 64px;
    gap: 8px;
  }
  .brand-logo-img {
    height: 34px;
    max-width: 130px;
  }
  .nav-actions {
    gap: 8px;
  }
  .lang-switch-btn {
    height: 40px;
    padding: 0 10px;
    font-size: 0.95rem;
  }
  .btn-icon {
    width: 40px;
    height: 40px;
  }
  .nav-mobile-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }
  .nav-btn {
    height: 40px;
    padding: 0 12px;
    font-size: 1.05rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-brand-desc {
    margin: 12px auto 16px;
  }
  .footer-social-links {
    justify-content: center;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 440px) {
  .top-announcement-bar {
    font-size: 0.88rem;
    padding: 6px 8px;
  }
  .navbar-inner {
    height: 58px;
    gap: 6px;
  }
  .brand-logo-img {
    height: 28px;
    max-width: 105px;
  }
  .nav-actions {
    gap: 6px;
  }
  .lang-switch-btn {
    height: 36px;
    padding: 0 8px;
    font-size: 0.85rem;
  }
  .btn-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .nav-mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.05rem;
  }
  .nav-btn#nav-auth-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-btn#nav-auth-btn span {
    display: none;
  }
  .cart-count-badge {
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    font-size: 0.85rem;
  }
}

/* ==========================================================================
   GLOBAL QUICK ORDER TRACKING MODAL & NAVBAR BUTTON
   Accessible to anyone on any page (Guest, User, Phone, or Order ID)
   ========================================================================== */

/* 1. Navbar Track Button */
.nav-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: #ffffff;
  border: var(--border-pixel);
  box-shadow: var(--shadow-pixel);
  color: #121214;
  font-family: var(--font-body);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.nav-track-btn i {
  color: #9333ea;
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.nav-track-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px #9333ea;
  border-color: #9333ea;
  color: #9333ea;
}

.nav-track-btn:hover i {
  transform: scale(1.15) rotate(-6deg);
}

.nav-track-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #9333ea;
}

@media (max-width: 600px) {
  .nav-track-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-track-btn span {
    display: none;
  }
  .nav-track-btn i {
    font-size: 1.05rem;
  }
}

/* 2. Quick Track Modal Backdrop & Card */
.quick-track-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-track-modal-backdrop.active {
  opacity: 1;
}

.quick-track-modal-card {
  background: #ffffff;
  border: 3px solid #121214;
  box-shadow: 8px 8px 0px #9333ea;
  border-radius: var(--radius-md, 8px);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(14px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.quick-track-modal-backdrop.active .quick-track-modal-card {
  transform: scale(1) translateY(0);
}

/* 3. Modal Header */
.quick-track-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #faf5ff;
  border-bottom: 2.5px solid #121214;
}

.quick-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #9333ea;
  color: #ffffff;
  padding: 4px 12px;
  border: 2px solid #121214;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.8px;
  box-shadow: 2px 2px 0px #121214;
}

.quick-track-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px #4ade80;
  animation: pulseDotAnim 1.4s infinite alternate ease-in-out;
}

@keyframes pulseDotAnim {
  0% { transform: scale(0.85); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 1; }
}

.quick-track-close-btn {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border: 2px solid #121214;
  border-radius: 6px;
  box-shadow: 2px 2px 0px #121214;
  color: #121214;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}

.quick-track-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121214;
}

.quick-track-close-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #121214;
}

/* 4. Modal Body */
.quick-track-body {
  padding: 24px;
}

.quick-track-title-wrap {
  text-align: center;
  margin-bottom: 22px;
}

.quick-track-icon-aura {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  background: #faf5ff;
  border: 2.5px solid #121214;
  border-radius: 50%;
  box-shadow: 4px 4px 0px #9333ea;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #9333ea;
  animation: floatTrackIcon 3s ease-in-out infinite alternate;
}

@keyframes floatTrackIcon {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-4px) rotate(-3deg); }
}

.quick-track-title {
  font-family: var(--font-display, 'Outfit', sans-serif);
  font-size: 1.65rem;
  font-weight: 900;
  color: #121214;
  margin: 0 0 6px;
  letter-spacing: -0.5px;
}

.quick-track-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin: 0 auto;
  max-width: 440px;
}

/* 5. Input Group & Paste Button */
.quick-track-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quick-track-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: #fafafa;
  border: 2.5px solid #121214;
  border-radius: 6px;
  box-shadow: 3px 3px 0px #121214;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.quick-track-input-group:focus-within {
  border-color: #9333ea;
  box-shadow: 4px 4px 0px #9333ea;
  background: #ffffff;
}

.quick-track-input-icon {
  position: absolute;
  left: 14px;
  color: #9333ea;
  font-size: 1.15rem;
  pointer-events: none;
  z-index: 2;
}

[dir="rtl"] .quick-track-input-icon {
  left: auto;
  right: 14px;
}

.quick-track-input {
  flex: 1;
  width: 100%;
  height: 52px;
  border: none;
  background: transparent;
  padding: 0 12px 0 44px;
  font-family: monospace, var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #121214;
  letter-spacing: 0.5px;
  outline: none;
  box-sizing: border-box;
}

[dir="rtl"] .quick-track-input {
  padding: 0 44px 0 12px;
  text-align: right;
}

.quick-track-input::placeholder {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: normal;
}

/* One-Click Paste Button */
.quick-track-paste-btn {
  margin-right: 6px;
  height: 38px;
  padding: 0 14px;
  background: #9333ea;
  color: #ffffff;
  border: 2px solid #121214;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 2px 2px 0px #121214;
  white-space: nowrap;
  transition: background-color 0.15s, transform 0.12s, box-shadow 0.12s;
  flex-shrink: 0;
}

[dir="rtl"] .quick-track-paste-btn {
  margin-right: 0;
  margin-left: 6px;
}

.quick-track-paste-btn:hover {
  background: #7e22ce;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121214;
}

.quick-track-paste-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #121214;
}

/* Pasted pulse highlight animation */
.quick-track-input-group.pasted-highlight {
  border-color: #22c55e !important;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35), 4px 4px 0px #121214 !important;
  animation: pastedPulseGlow 1.2s ease-out;
}

@keyframes pastedPulseGlow {
  0% { transform: scale(1.02); }
  50% { transform: scale(0.99); }
  100% { transform: scale(1); }
}

/* 6. Modal Submit Button */
.quick-track-submit-btn {
  width: 100%;
  height: 50px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #121214;
  color: #ffffff;
  border: 2.5px solid #121214;
  border-radius: 6px;
  box-shadow: 4px 4px 0px #9333ea;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.quick-track-submit-btn:hover {
  background: #9333ea;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #121214;
}

.quick-track-submit-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px #121214;
}

/* 7. Live Results Section */
.quick-track-results {
  margin-top: 20px;
  border-top: 2px dashed #e2e8f0;
  padding-top: 18px;
}

.track-results-loading {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-muted);
}

.track-results-loading p {
  margin-top: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: #121214;
}

.track-results-error {
  background: #fff1f2;
  border: 2px solid #e11d48;
  border-radius: 6px;
  box-shadow: 3px 3px 0px #e11d48;
  padding: 16px;
  text-align: center;
}

.track-error-icon {
  font-size: 2rem;
  color: #e11d48;
  margin-bottom: 8px;
}

.track-results-error h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: #9f1239;
  margin: 0 0 6px;
}

.track-results-error p {
  font-size: 0.9rem;
  color: #881337;
  margin: 0;
  line-height: 1.4;
}

/* Modal Order Result Card */
.modal-track-order-card {
  background: #faf5ff;
  border: 2.5px solid #121214;
  border-radius: 6px;
  box-shadow: 4px 4px 0px #9333ea;
  padding: 16px;
  margin-bottom: 14px;
}

.modal-track-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid rgba(18, 18, 20, 0.1);
}

.modal-track-order-id {
  font-family: monospace;
  font-size: 1.15rem;
  font-weight: 900;
  color: #9333ea;
}

.modal-track-status-pill {
  padding: 3px 10px;
  border: 1.5px solid #121214;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 1.5px 1.5px 0px #121214;
}

.modal-track-status-pill.confirmed { background: #fef08a; color: #854d0e; }
.modal-track-status-pill.packing { background: #fed7aa; color: #9a3412; }
.modal-track-status-pill.shipped { background: #bfdbfe; color: #1e40af; }
.modal-track-status-pill.delivered { background: #bbf7d0; color: #166534; }
.modal-track-status-pill.cancelled { background: #fecdd3; color: #9f1239; }

/* Modal Mini Stepper */
.modal-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0;
  position: relative;
}

.modal-stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.modal-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #121214;
  background: #ffffff;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: 2px 2px 0px #121214;
  transition: all 0.2s;
}

.modal-stepper-step.completed .modal-step-dot {
  background: #22c55e;
  color: #ffffff;
  border-color: #121214;
}

.modal-stepper-step.active .modal-step-dot {
  background: #9333ea;
  color: #ffffff;
  border-color: #121214;
  box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3), 2px 2px 0px #121214;
}

.modal-step-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  margin-top: 6px;
  text-transform: uppercase;
}

.modal-stepper-step.completed .modal-step-label,
.modal-stepper-step.active .modal-step-label {
  color: #121214;
  font-weight: 800;
}

.modal-step-line {
  position: absolute;
  top: 16px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.modal-step-line-fill {
  height: 100%;
  background: #22c55e;
  transition: width 0.3s ease;
}

/* Order Meta Grid in Modal */
.modal-track-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 0.85rem;
  background: #ffffff;
  border: 1.5px solid #121214;
  border-radius: 4px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.modal-track-meta-item strong {
  color: #121214;
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
}

.modal-track-meta-item span {
  color: #121214;
  font-weight: 700;
}

.modal-track-view-full-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: #ffffff;
  color: #121214;
  border: 2px solid #121214;
  border-radius: 4px;
  box-shadow: 2px 2px 0px #121214;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s;
}

.modal-track-view-full-btn:hover {
  background: #9333ea;
  color: #ffffff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #121214;
}

/* 8. Footer Track Button */
.footer-track-order-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #121214;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 2px 2px 0px #9333ea;
  transition: transform 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.footer-track-order-btn:hover {
  background: #9333ea;
  border-color: #9333ea;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #ffffff;
}

/* 9. Login Page Hint */
.guest-track-login-hint {
  margin-top: 20px;
  padding: 14px;
  background: #faf5ff;
  border: 2px dashed #9333ea;
  border-radius: 6px;
  text-align: center;
}

.guest-track-login-hint p {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #121214;
}

.guest-track-login-hint button {
  background: transparent;
  border: none;
  color: #9333ea;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
}

.guest-track-login-hint button:hover {
  color: #7e22ce;
}

/* ==========================================================================
   GLOBAL TOP ANNOUNCEMENT BAR
   ========================================================================== */
.boxd-top-announcement {
  background: #9333ea;
  color: #ffffff;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border-bottom: 2px solid #121214;
  position: relative;
  z-index: 1001;
}

.boxd-top-announcement .announcement-link {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.15s ease;
}

.boxd-top-announcement .announcement-link:hover {
  text-decoration: underline;
  opacity: 0.95;
}

/* ==========================================================================
   BOXD PRODUCTION LINE LOADER (Capsule Conveyor + Traveling Big 'B' Box: Left -> Right)
   ========================================================================== */
.boxd-loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
  width: 100%;
  margin: 0 auto;
  user-select: none;
}

.boxd-conveyor-travel-stage {
  position: relative;
  width: 270px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

/* 1. Moving Crate Track Container (Directly on top of Conveyor Gear + Landing Zone) */
.conveyor-travel-track {
  position: absolute;
  bottom: 34px; /* Direct flush contact on top of conveyor belt gear line */
  left: 6px;
  width: 260px;
  height: 48px;
  z-index: 3;
  pointer-events: none;
}

.traveling-crate-unit {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: crate-drop-glide-jump 2.5s ease-in-out infinite;
  will-change: transform, opacity;
  transform-origin: center bottom;
}

@keyframes crate-drop-glide-jump {
  /* Phase 1: Dropped from above onto the left gear */
  0% {
    transform: translate(6px, -50px) scale(0.9, 1.1);
    opacity: 0;
  }
  4% {
    transform: translate(6px, -28px) scale(0.95, 1.05);
    opacity: 1;
  }
  8% {
    /* Impact landing squash directly on the gear surface */
    transform: translate(6px, 0px) scale(1.18, 0.82);
    opacity: 1;
  }
  12% {
    /* Rebound bounce */
    transform: translate(14px, -6px) scale(0.92, 1.08);
    opacity: 1;
  }
  16% {
    /* Land back on belt */
    transform: translate(22px, 0px) scale(1.06, 0.94);
    opacity: 1;
  }
  20% {
    /* Settled */
    transform: translate(30px, 0px) scale(1, 1);
    opacity: 1;
  }
  
  /* Phase 2: Smooth linear glide across conveyor in direct contact with belt */
  68% {
    transform: translate(154px, 0px) scale(1, 1);
    opacity: 1;
  }
  
  /* Phase 3: JUMPS off right gear in an arc towards the marked ground place */
  74% {
    /* Jump launch up and forward */
    transform: translate(180px, -12px) scale(0.92, 1.08);
    opacity: 1;
  }
  80% {
    /* Arc peak heading down */
    transform: translate(200px, 8px) scale(0.96, 1.04);
    opacity: 1;
  }
  86% {
    /* Lands in marked ground spot with cartoon impact squash */
    transform: translate(212px, 34px) scale(1.24, 0.76);
    opacity: 1;
  }
  91% {
    /* Cartoon ground bounce pop */
    transform: translate(214px, 20px) scale(0.92, 1.08);
    opacity: 1;
  }
  96% {
    /* Settle in marked ground spot and disappear */
    transform: translate(214px, 34px) scale(1.05, 0.95);
    opacity: 0;
  }
  100% {
    transform: translate(214px, 34px) scale(1, 1);
    opacity: 0;
  }
}

[dir="rtl"] .traveling-crate-unit {
  animation-name: crate-drop-glide-jump-rtl;
}

@keyframes crate-drop-glide-jump-rtl {
  /* Phase 1: Dropped from above onto the right gear */
  0% {
    transform: translate(154px, -50px) scale(0.9, 1.1);
    opacity: 0;
  }
  4% {
    transform: translate(154px, -28px) scale(0.95, 1.05);
    opacity: 1;
  }
  8% {
    /* Impact landing squash on right gear */
    transform: translate(154px, 0px) scale(1.18, 0.82);
    opacity: 1;
  }
  12% {
    /* Rebound bounce */
    transform: translate(146px, -6px) scale(0.92, 1.08);
    opacity: 1;
  }
  16% {
    /* Land back on belt */
    transform: translate(138px, 0px) scale(1.06, 0.94);
    opacity: 1;
  }
  20% {
    /* Settled */
    transform: translate(130px, 0px) scale(1, 1);
    opacity: 1;
  }
  
  /* Phase 2: Smooth linear glide right-to-left in direct contact */
  68% {
    transform: translate(6px, 0px) scale(1, 1);
    opacity: 1;
  }
  
  /* Phase 3: JUMPS off left gear in an arc towards the left marked ground place */
  74% {
    transform: translate(-20px, -12px) scale(0.92, 1.08);
    opacity: 1;
  }
  80% {
    transform: translate(-40px, 8px) scale(0.96, 1.04);
    opacity: 1;
  }
  86% {
    /* Lands on ground */
    transform: translate(-52px, 34px) scale(1.24, 0.76);
    opacity: 1;
  }
  91% {
    /* Cartoon ground bounce pop */
    transform: translate(-54px, 20px) scale(0.92, 1.08);
    opacity: 1;
  }
  96% {
    /* Settle on ground and disappear */
    transform: translate(-54px, 34px) scale(1.05, 0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-54px, 34px) scale(1, 1);
    opacity: 0;
  }
}

/* 2. The BOXD Crate with Big "B" */
.loader-box-crate {
  position: relative;
  width: 48px;
  height: 44px;
  background: linear-gradient(135deg, #a855f7 0%, #9333ea 50%, #7e22ce 100%);
  border: 2.5px solid #121214;
  box-shadow: 2.5px 2.5px 0px #121214;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Open Crate Top Flap */
.crate-top-flap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: #6b21a8;
  border-bottom: 1.5px solid #121214;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* Big "B" Logo Emblem */
.crate-logo-b {
  font-family: 'Jersey 10', 'Impact', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 2px 2px 0px #121214, -1px -1px 0px #c084fc;
  letter-spacing: -1px;
  transform: translateY(2px);
  z-index: 2;
}

.crate-tape {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 100%;
  background: rgba(254, 240, 138, 0.4);
  border-left: 1px dashed rgba(18, 18, 20, 0.35);
  border-right: 1px dashed rgba(18, 18, 20, 0.35);
  z-index: 1;
}

/* Contact Shadow under box */
.crate-contact-shadow {
  width: 38px;
  height: 3px;
  margin-top: 1px;
  background: rgba(18, 18, 20, 0.4);
  border-radius: 50%;
}

/* 3. Capsule Conveyor Belt with Left & Right Wheels */
.loader-conveyor-capsule {
  position: relative;
  width: 210px;
  height: 38px;
  z-index: 2;
}

.conveyor-track-outer {
  position: relative;
  width: 100%;
  height: 100%;
  background: #1e1b4b;
  border: 2.5px solid #121214;
  border-radius: 9999px; /* Capsule / Stadium shape */
  box-shadow: 3px 3px 0px #121214;
  padding: 3px 6px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}

/* Conveyor Moving Belt Tread Tracks */
.conveyor-belt-flow {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 6px,
    rgba(147, 51, 234, 0.35) 6px,
    rgba(147, 51, 234, 0.35) 12px
  );
  animation: belt-flow-loop 0.6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes belt-flow-loop {
  from { transform: translateX(0); }
  to { transform: translateX(-24px); }
}

[dir="rtl"] .conveyor-belt-flow {
  animation: belt-flow-rtl 0.6s linear infinite;
}

@keyframes belt-flow-rtl {
  from { transform: translateX(-24px); }
  to { transform: translateX(0); }
}

/* Inner Body housing the wheels */
.conveyor-inner-body {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 2;
}

/* Circular Rotating Pulleys / Wheels */
.conveyor-wheel {
  position: relative;
  width: 26px;
  height: 26px;
  background: #e2e8f0;
  border: 2px solid #121214;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 3px rgba(0,0,0,0.3);
  animation: wheel-rotate 0.8s linear infinite;
}

@keyframes wheel-rotate {
  100% { transform: rotate(360deg); }
}

[dir="rtl"] .conveyor-wheel {
  animation: wheel-rotate-rtl 0.8s linear infinite;
}

@keyframes wheel-rotate-rtl {
  100% { transform: rotate(-360deg); }
}

.wheel-spokes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.wheel-spokes .spoke {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #64748b;
  transform: translate(-50%, -50%);
}

.wheel-spokes .spoke.s2 { transform: translate(-50%, -50%) rotate(60deg); }
.wheel-spokes .spoke.s3 { transform: translate(-50%, -50%) rotate(120deg); }

.wheel-center-hub {
  position: relative;
  width: 8px;
  height: 8px;
  background: #9333ea;
  border: 1.5px solid #121214;
  border-radius: 50%;
  z-index: 3;
}

/* Middle Recessed Channel between wheels */
.conveyor-middle-channel {
  flex: 1;
  height: 12px;
  margin: 0 4px;
  background: #0f172a;
  border: 1.5px solid #121214;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.conveyor-middle-channel .channel-line {
  width: 100%;
  height: 2px;
  background: #9333ea;
  box-shadow: 0 0 6px #9333ea;
  opacity: 0.8;
}

/* Ground Shadow (covers conveyor + marked landing zone) */
.conveyor-ground-shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 250px;
  height: 7px;
  background: rgba(18, 18, 20, 0.2);
  border-radius: 50%;
  filter: blur(2px);
}

/* Status Text Label */
.boxd-loader-label {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display, 'Jersey 10', sans-serif);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #121214;
  text-transform: uppercase;
}

.loader-dots span {
  animation: dot-jump 1.2s infinite;
  display: inline-block;
  font-weight: 900;
  color: #9333ea;
}
.loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dot-jump {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; color: #9333ea; }
}

/* Compact Version */
.boxd-loader-wrap.compact {
  padding: 14px 8px;
}
.boxd-loader-wrap.compact .boxd-conveyor-travel-stage {
  width: 210px;
  height: 88px;
}
.boxd-loader-wrap.compact .conveyor-travel-track {
  width: 200px;
  height: 38px;
  left: 6px;
  bottom: 27px; /* Flush direct gear contact */
  top: auto;
}
.boxd-loader-wrap.compact .loader-box-crate {
  width: 36px;
  height: 32px;
}
.boxd-loader-wrap.compact .crate-logo-b {
  font-size: 1.6rem;
}
.boxd-loader-wrap.compact .crate-contact-shadow {
  width: 30px;
  height: 3px;
}
.boxd-loader-wrap.compact .loader-conveyor-capsule {
  width: 154px;
  height: 30px;
}
.boxd-loader-wrap.compact .conveyor-wheel {
  width: 20px;
  height: 20px;
}
.boxd-loader-wrap.compact .wheel-center-hub {
  width: 6px;
  height: 6px;
}
.boxd-loader-wrap.compact .boxd-loader-label {
  font-size: 1.1rem;
  margin-top: 8px;
}
.boxd-loader-wrap.compact .conveyor-ground-shadow {
  width: 190px;
}
.boxd-loader-wrap.compact .traveling-crate-unit {
  animation-name: crate-drop-glide-jump-compact;
}

@keyframes crate-drop-glide-jump-compact {
  0% {
    transform: translate(4px, -36px) scale(0.9, 1.1);
    opacity: 0;
  }
  4% {
    transform: translate(4px, -20px) scale(0.95, 1.05);
    opacity: 1;
  }
  8% {
    transform: translate(4px, 0px) scale(1.18, 0.82);
    opacity: 1;
  }
  12% {
    transform: translate(10px, -4px) scale(0.92, 1.08);
    opacity: 1;
  }
  16% {
    transform: translate(16px, 0px) scale(1.06, 0.94);
    opacity: 1;
  }
  20% {
    transform: translate(22px, 0px) scale(1, 1);
    opacity: 1;
  }
  68% {
    transform: translate(114px, 0px) scale(1, 1);
    opacity: 1;
  }
  74% {
    /* Jump launch up and forward */
    transform: translate(136px, -9px) scale(0.92, 1.08);
    opacity: 1;
  }
  80% {
    /* Arc peak heading down */
    transform: translate(150px, 6px) scale(0.96, 1.04);
    opacity: 1;
  }
  86% {
    /* Lands in marked ground spot with cartoon impact squash */
    transform: translate(158px, 27px) scale(1.24, 0.76);
    opacity: 1;
  }
  91% {
    /* Cartoon ground bounce pop */
    transform: translate(160px, 16px) scale(0.92, 1.08);
    opacity: 1;
  }
  96% {
    /* Settle and disappear */
    transform: translate(160px, 27px) scale(1.05, 0.95);
    opacity: 0;
  }
  100% {
    transform: translate(160px, 27px) scale(1, 1);
    opacity: 0;
  }
}

[dir="rtl"] .boxd-loader-wrap.compact .traveling-crate-unit {
  animation-name: crate-drop-glide-jump-compact-rtl;
}

@keyframes crate-drop-glide-jump-compact-rtl {
  0% {
    transform: translate(114px, -36px) scale(0.9, 1.1);
    opacity: 0;
  }
  4% {
    transform: translate(114px, -20px) scale(0.95, 1.05);
    opacity: 1;
  }
  8% {
    transform: translate(114px, 0px) scale(1.18, 0.82);
    opacity: 1;
  }
  12% {
    transform: translate(108px, -4px) scale(0.92, 1.08);
    opacity: 1;
  }
  16% {
    transform: translate(102px, 0px) scale(1.06, 0.94);
    opacity: 1;
  }
  20% {
    transform: translate(96px, 0px) scale(1, 1);
    opacity: 1;
  }
  68% {
    transform: translate(4px, 0px) scale(1, 1);
    opacity: 1;
  }
  74% {
    transform: translate(-16px, -9px) scale(0.92, 1.08);
    opacity: 1;
  }
  80% {
    transform: translate(-30px, 6px) scale(0.96, 1.04);
    opacity: 1;
  }
  86% {
    transform: translate(-38px, 27px) scale(1.24, 0.76);
    opacity: 1;
  }
  91% {
    transform: translate(-40px, 16px) scale(0.92, 1.08);
    opacity: 1;
  }
  96% {
    transform: translate(-40px, 27px) scale(1.05, 0.95);
    opacity: 0;
  }
  100% {
    transform: translate(-40px, 27px) scale(1, 1);
    opacity: 0;
  }
}


