/* ==========================================================================
   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;
}

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;
  overflow-x: hidden;
  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;
}

/* Top Announcement Banner */
.top-announcement-bar {
  background: #121214;
  color: #ffffff;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-align: center;
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-bottom: 1.5px solid #27272a;
}

.top-announcement-bar span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-announcement-bar a {
  background: #9333ea;
  color: #ffffff;
  padding: 4px 14px;
  font-weight: 800;
  font-size: 1rem;
  border: 1.5px solid #121214;
  box-shadow: 2px 2px 0px #000;
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
}

.top-announcement-bar a:hover {
  background: #a855f7;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0px #000;
}

/* 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-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;
}

/* ==========================================================================
   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: 12px !important;
  pointer-events: none !important;
  max-width: 420px !important;
  width: calc(100vw - 48px) !important;
  overflow: visible !important;
}

@media (max-width: 640px) {
  .toast-container {
    top: 76px !important;
    right: 16px !important;
    width: calc(100vw - 32px) !important;
    max-width: 100% !important;
  }
}

.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 */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .navbar-inner {
    height: 70px;
  }
  .nav-links {
    display: none;
  }
}
