/* ========================================
   COMBAT ARENA MAROC - UFC AGGRESSIVE THEME
   Black / Red / Gold Combat Sports E-commerce
   ======================================== */

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

/* ========================================
   CSS VARIABLES - UFC COLOR SYSTEM
   ======================================== */
:root {
  /* Core UFC Palette */
  --ufc-black: #0a0a0a;
  --ufc-black-elevated: #111111;
  --ufc-black-card: #161616;
  --ufc-black-border: #1f1f1f;

  --ufc-red: #e83e3e;
  --ufc-red-bright: #ff2d2d;
  --ufc-red-dark: #b82d2d;
  --ufc-red-glow: rgba(232, 62, 62, 0.4);
  --ufc-red-glow-strong: rgba(232, 62, 62, 0.6);

  --ufc-gold: #d4a843;
  --ufc-gold-bright: #f0c040;
  --ufc-gold-dark: #b89030;
  --ufc-gold-glow: rgba(212, 168, 67, 0.3);

  --ufc-white: #ffffff;
  --ufc-white-muted: #e0e0e0;
  --ufc-gray: #888888;
  --ufc-gray-dark: #555555;
  --ufc-gray-border: #333333;

  /* Typography */
  --font-arabic: 'Changa', sans-serif;
  --font-latin: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Border Radius - Sharp/Aggressive */
  --radius-none: 0;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 0; /* No rounding - aggressive */

  /* Shadows - Combat Depth */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-red: 0 0 20px var(--ufc-red-glow);
  --shadow-red-lg: 0 0 40px var(--ufc-red-glow-strong);
  --shadow-gold: 0 0 20px var(--ufc-gold-glow);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* Container */
  --container-max: 1320px;
  --container-padding: 24px;
}

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-arabic);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ufc-white);
  background: var(--ufc-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.lang-fr {
  font-family: var(--font-latin);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Selection */
::selection {
  background: var(--ufc-red);
  color: var(--ufc-white);
}

/* ========================================
   NOISE OVERLAY - GRITTY TEXTURE
   ======================================== */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  animation: noiseShift 8s linear infinite;
}

@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(10%, 5%); }
  30% { transform: translate(-5%, 15%); }
  40% { transform: translate(15%, -5%); }
  50% { transform: translate(-10%, 10%); }
  60% { transform: translate(5%, -15%); }
  70% { transform: translate(-15%, 5%); }
  80% { transform: translate(10%, -10%); }
  90% { transform: translate(-5%, 10%); }
  100% { transform: translate(0, 0); }
}

/* ========================================
   CONTAINER
   ======================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ========================================
   TYPOGRAPHY - AGGRESSIVE COMBAT STYLE
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-arabic);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.lang-fr h1, body.lang-fr h2, body.lang-fr h3, body.lang-fr h4, body.lang-fr h5, body.lang-fr h6 {
  font-family: var(--font-latin);
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ufc-white);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--ufc-red), var(--ufc-gold));
  border-radius: var(--radius-none);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--ufc-gray);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-top: var(--space-sm);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-line.title-accent {
  color: var(--ufc-red);
  -webkit-text-stroke: 1px var(--ufc-red);
  text-shadow: 0 0 30px var(--ufc-red-glow);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--ufc-white-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  max-width: 600px;
  margin-top: var(--space-md);
}

p {
  font-size: 1rem;
  color: var(--ufc-white-muted);
  line-height: 1.7;
}

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

a:hover {
  color: var(--ufc-red);
}

/* ========================================
   BUTTONS - AGGRESSIVE COMBAT BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-none);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

body.lang-fr .btn {
  font-family: var(--font-latin);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn:focus-visible {
  outline: 2px solid var(--ufc-red);
  outline-offset: 3px;
}

/* Button focus also applies when keyboard-focused */
button:focus-visible,
input[type="button"]:focus-visible,
input[type="submit"]:focus-visible {
  outline: 2px solid var(--ufc-red);
  outline-offset: 3px;
  background: rgba(232, 62, 62, 0.1);
}

/* ========================================
   INPUT & TEXT FIELD FOCUS
   ======================================== */
.input-focus {
  outline: 3px solid var(--ufc-red-glow);
  outline-offset: 2px;
  transition: outline-color 0.2s ease;
}

/* Search input - keep visible focus, make responsive */
.search-input:focus {
  outline: 3px solid var(--ufc-red-glow);
  outline-offset: 2px;
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px var(--ufc-red-glow);
  width: clamp(180px, 80%, 300px);
}

/* Form group input focus */
.form-group input:focus {
  outline: 3px solid var(--ufc-red-glow);
  outline-offset: 2px;
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px var(--ufc-red-glow);
}

/* Form input :focus-visible for keyboard users */
.form-group input:focus-visible {
  outline: 3px solid var(--ufc-red);
  outline-offset: 2px;
  border-color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.05);
}

/* Textarea focus */
.form-group textarea:focus {
  outline: 3px solid var(--ufc-red-glow);
  outline-offset: 2px;
  border-color: var(--ufc-red);
}

/* Select focus */
.filter-select:focus,
.form-select:focus {
  outline: 3px solid var(--ufc-red-glow);
  outline-offset: 2px;
  border-color: var(--ufc-red);
}

/* Link focus */
a:focus-visible {
  outline: 2px solid var(--ufc-red);
  outline-offset: 3px;
  background: rgba(232, 62, 62, 0.1);
  padding: var(--space-xs);
}

/* Dropdown menu keyboard focus */
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Focus for disabled state */
.form-group input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========================================
   FOCUS VISIBLE FOR NON-INPUT ELEMENTS
   ======================================== */
.button-hover-focus {
  outline: none;
  /* Fallback for browsers without :focus-visible support */
  outline: 2px solid var(--ufc-red);
  outline-offset: 3px;
}

/* Reduce motion for focus */
@media (prefers-reduced-motion: reduce) {
  .input-focus {
    transition: none;
  }
  .btn:focus-visible {
    outline: 2px solid var(--ufc-red);
    outline-offset: 3px;
  }
}
.btn-primary {
  background: linear-gradient(135deg, var(--ufc-red), var(--ufc-red-dark));
  color: var(--ufc-white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--ufc-red-bright), var(--ufc-red));
  box-shadow: var(--shadow-red-lg);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-red);
}

/* Secondary - Gold Accent */
.btn-secondary {
  background: transparent;
  color: var(--ufc-gold);
  border: 2px solid var(--ufc-gold);
}

.btn-secondary:hover {
  background: var(--ufc-gold);
  color: var(--ufc-black);
  box-shadow: var(--shadow-gold);
}

/* Outline - Subtle */
.btn-outline {
  background: transparent;
  color: var(--ufc-white);
  border: 1px solid var(--ufc-gray-border);
  padding: 10px 20px;
  font-size: 0.75rem;
}

.btn-outline:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

/* Large */
.btn-large {
  padding: 18px 36px;
  font-size: 1rem;
}

/* Small */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.75rem;
}

/* ========================================
   HEADER - TOP BAR
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--ufc-black-border);
}

.header-top {
  background: var(--ufc-black);
  border-bottom: 1px solid var(--ufc-black-border);
}

.header-top-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: var(--space-md);
}

.announcement-bar {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.announcement-text {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  animation: marquee 20s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Language Toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-toggle:hover {
  border-color: var(--ufc-gold);
  color: var(--ufc-gold);
}

.lang-current {
  color: var(--ufc-red);
}

.lang-divider {
  color: var(--ufc-gray-dark);
}

.lang-other {
  color: var(--ufc-gray);
}

.lang-toggle:hover .lang-other {
  color: var(--ufc-gold);
}

/* Cart & Account Links */
.cart-link, .account-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  color: var(--ufc-white);
  transition: all var(--transition-fast);
  position: relative;
}

.cart-link:hover, .account-link:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.cart-link svg, .account-link svg {
  width: 20px;
  height: 20px;
}

.cart-count {
  position: absolute;
  top: -6px;
  left: -6px;
  min-width: 18px;
  height: 18px;
  background: var(--ufc-red);
  color: var(--ufc-white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-latin);
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.main-nav {
  padding: var(--space-md) 0;
}

.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

/* Logo */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
}

.logo-icon {
  font-size: 1.75rem;
  filter: drop-shadow(0 0 10px var(--ufc-red-glow));
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 10px var(--ufc-red-glow)); }
  50% { filter: drop-shadow(0 0 20px var(--ufc-red-glow-strong)); }
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-main {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ufc-white);
  letter-spacing: 0.02em;
}

body.lang-fr .logo-main {
  font-family: var(--font-latin);
}

.logo-sub {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ufc-red);
  letter-spacing: 0.1em;
}

body.lang-fr .logo-sub {
  font-family: var(--font-latin);
}

.logo-tagline {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.55rem;
  color: var(--ufc-gold);
  letter-spacing: 0.2em;
  margin-top: -2px;
  text-transform: uppercase;
}

/* Nav Center */
.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
}

.nav-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ufc-white-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

body.lang-fr .nav-link {
  font-family: var(--font-latin);
}

.nav-link:hover,
.nav-link.active {
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--ufc-red);
  transition: all var(--transition-base);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 220px;
  background: var(--ufc-black-elevated);
  border: 2px solid var(--ufc-red);
  border-top: 3px solid var(--ufc-red);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-lg), 0 0 30px var(--ufc-red-glow);
  z-index: var(--z-dropdown);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ufc-gold) !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

body.lang-fr .dropdown-item {
  font-family: var(--font-latin);
}

.dropdown-item:hover {
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.15);
  padding-right: var(--space-lg);
}

/* Nav Search */
.nav-search {
  flex-shrink: 0;
}

.search-form {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.search-input {
  /* Responsive width: 180px on small screens, 80% on medium, 300px max on large */
  width: clamp(180px, 80%, 300px);
  padding: 10px 14px;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  color: var(--ufc-white);
  transition: all var(--transition-fast);
}

body.lang-fr .search-input {
  font-family: var(--font-latin);
}

.search-input::placeholder {
  color: var(--ufc-gray-dark);
}

.search-input:focus {
  outline: none;
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px var(--ufc-red-glow);
  width: 280px;
}

.search-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-red);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-btn:hover {
  background: var(--ufc-red-bright);
  transform: scale(1.05);
}

.search-btn svg {
  width: 18px;
  height: 18px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: var(--z-modal);
}

.mobile-nav-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--ufc-white);
  border-radius: var(--radius-none);
  transition: all var(--transition-base);
  transform-origin: center;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--ufc-black);
  border-left: 1px solid var(--ufc-gray-border);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: calc(var(--z-modal) - 1);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--ufc-gray-border);
}

.mobile-nav-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-nav-close:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
}

.mobile-nav-menu {
  flex: 1;
  padding: var(--space-lg);
}

.mobile-nav-menu ul {
  list-style: none;
}

.mobile-nav-menu a {
  display: block;
  padding: var(--space-md) var(--space-sm);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ufc-white);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

body.lang-fr .mobile-nav-menu a {
  font-family: var(--font-latin);
}

.mobile-nav-menu a:hover {
  color: var(--ufc-red);
  background: rgba(232, 62, 62, 0.1);
}

.mobile-dropdown {
  margin: var(--space-sm) 0;
}

.mobile-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--ufc-white);
  font-family: var(--font-arabic);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  padding: var(--space-md) var(--space-sm);
}

body.lang-fr .mobile-dropdown-toggle {
  font-family: var(--font-latin);
}

.mobile-dropdown-menu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  padding-right: var(--space-lg);
}

.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 200px;
}

.mobile-dropdown-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ufc-gold);
  padding: var(--space-sm) 0;
}

.mobile-dropdown-menu a:hover {
  color: var(--ufc-red);
}

.mobile-nav-footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--ufc-gray-border);
}

#mobileLangToggle {
  width: 100%;
  padding: var(--space-md);
  font-size: 0.85rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(232, 62, 62, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(212, 168, 67, 0.1) 0%, transparent 60%),
    var(--ufc-black);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--ufc-red);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 8s ease-in-out infinite;
}

.particle:nth-child(odd) {
  background: var(--ufc-gold);
  animation-duration: 10s;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-4xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: rgba(232, 62, 62, 0.15);
  border: 1px solid var(--ufc-red);
  border-radius: var(--radius-none);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--ufc-red);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: var(--space-lg);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 10px var(--ufc-red-glow); }
  50% { box-shadow: 0 0 20px var(--ufc-red-glow-strong); }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--ufc-gray-border);
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ufc-red);
  line-height: 1;
  text-shadow: 0 0 20px var(--ufc-red-glow);
}

.stat-label {
  display: block;
  font-family: var(--font-arabic);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ufc-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-xs);
}

body.lang-fr .stat-label {
  font-family: var(--font-latin);
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

.hero-scroll svg {
  width: 28px;
  height: 28px;
  color: var(--ufc-gray);
  transition: color var(--transition-fast);
}

.hero-scroll:hover svg {
  color: var(--ufc-red);
}

/* ========================================
   SECTIONS COMMON
   ======================================== */
section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ========================================
   CATEGORIES - AGGRESSIVE GRID
   ======================================== */
.categories {
  background: var(--ufc-black-elevated);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,0.95) 100%);
  z-index: 1;
  transition: opacity var(--transition-base);
}

.category-card:hover::before {
  opacity: 0.8;
}

.category-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg), var(--shadow-red);
}

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.category-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-lg);
  z-index: 2;
}

.category-name {
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--ufc-white);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

body.lang-fr .category-name {
  font-family: var(--font-latin);
}

.category-count {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.category-arrow {
  position: absolute;
  top: var(--space-lg);
  left: var(--space-lg);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.8);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-none);
  color: var(--ufc-white);
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 3;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateY(0);
}

.category-arrow:hover {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: var(--ufc-white);
}

.category-arrow svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   FEATURED PRODUCTS CAROUSEL
   ======================================== */
.featured-products {
  background: var(--ufc-black);
}

.products-carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.product-card {
  flex: 0 0 280px;
  scroll-snap-align: start;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--ufc-red);
  box-shadow: var(--shadow-lg), var(--shadow-red);
}

.product-image-wrapper {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 4px 10px;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-none);
  z-index: 2;
}

.badge-sale {
  background: var(--ufc-red);
  color: var(--ufc-white);
}

.badge-new {
  background: var(--ufc-gold);
  color: var(--ufc-black);
}

.badge-bestseller {
  background: var(--ufc-white);
  color: var(--ufc-black);
}

.product-quick-view {
  position: absolute;
  bottom: var(--space-sm);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: var(--ufc-red);
  color: var(--ufc-white);
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-none);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  cursor: pointer;
  z-index: 2;
}

.product-card:hover .product-quick-view {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.product-info {
  padding: var(--space-md);
}

.product-discipline {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.65rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.product-name {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ufc-white);
  margin-bottom: var(--space-sm);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.lang-fr .product-name {
  font-family: var(--font-latin);
}

.product-price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.price-current {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ufc-red);
}

.price-original {
  font-family: var(--font-latin);
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--ufc-gray);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--ufc-gold);
}

.product-rating svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.rating-count {
  color: var(--ufc-gray);
  font-family: var(--font-latin);
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-none);
  color: var(--ufc-white);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: var(--ufc-white);
  box-shadow: var(--shadow-red);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-btn svg {
  width: 22px;
  height: 22px;
}

.carousel-prev {
  right: 100%;
  margin-right: var(--space-md);
}

.carousel-next {
  left: 100%;
  margin-left: var(--space-md);
}

/* ========================================
   TRUST SIGNALS
   ======================================== */
.trust-signals {
  background: var(--ufc-black-elevated);
  border-top: 1px solid var(--ufc-gray-border);
  border-bottom: 1px solid var(--ufc-gray-border);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  text-align: center;
}

.trust-item {
  padding: var(--space-xl) var(--space-md);
  transition: transform var(--transition-base);
}

.trust-item:hover {
  transform: translateY(-4px);
}

.trust-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ufc-black-card), var(--ufc-black));
  border: 1px solid var(--ufc-gray-border);
  border-radius: 50%;
  color: var(--ufc-red);
  transition: all var(--transition-base);
}

.trust-item:hover .trust-icon {
  border-color: var(--ufc-red);
  box-shadow: var(--shadow-red);
  transform: scale(1.1);
}

.trust-icon svg {
  width: 28px;
  height: 28px;
}

.trust-item h3 {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ufc-white);
  margin-bottom: var(--space-xs);
}

body.lang-fr .trust-item h3 {
  font-family: var(--font-latin);
}

.trust-item p {
  font-size: 0.85rem;
  color: var(--ufc-gray);
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
  position: relative;
  background: var(--ufc-black);
  overflow: hidden;
}

.newsletter-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(232, 62, 62, 0.1) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(212, 168, 67, 0.08) 0%, transparent 60%);
}

.newsletter-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: var(--space-3xl) 0;
}

.newsletter-text .section-title {
  margin-bottom: var(--space-md);
}

.newsletter-text .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.newsletter-text p {
  font-size: 1.1rem;
  color: var(--ufc-white-muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

.form-group {
  flex: 1;
  min-width: 280px;
  position: relative;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-md);
  font-family: var(--font-arabic);
  font-size: 1rem;
  color: var(--ufc-white);
  transition: all var(--transition-fast);
}

body.lang-fr .form-group input {
  font-family: var(--font-latin);
}

/* Placeholder color with better contrast against dark backgrounds */
.form-group input::placeholder {
  color: var(--ufc-gray-border); /* Slightly lighter for readability */
}

.form-group input:focus {
  outline: none;
  border-color: var(--ufc-red);
  box-shadow: 0 0 0 3px var(--ufc-red-glow);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--ufc-red);
}

.form-error {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 0.75rem;
  color: var(--ufc-red);
  min-height: 20px;
}

.newsletter-form .btn {
  flex-shrink: 0;
}

.newsletter-consent {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--ufc-gray-dark);
}

.newsletter-consent a {
  color: var(--ufc-gold);
  text-decoration: underline;
}

.newsletter-consent a:hover {
  color: var(--ufc-red);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--ufc-black);
  border-top: 1px solid var(--ufc-gray-border);
}

.footer-main {
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.brand-desc {
  font-size: 0.9rem;
  color: var(--ufc-gray);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 280px;
}

.social-links {
  display: flex;
  gap: var(--space-sm);
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  color: var(--ufc-gray);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--ufc-red);
  border-color: var(--ufc-red);
  color: var(--ufc-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-nav h4 {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
}

.footer-nav ul {
  list-style: none;
}

.footer-nav li {
  margin-bottom: var(--space-sm);
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--ufc-white-muted);
  transition: all var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--ufc-red);
  padding-right: var(--space-sm);
}

/* ========================================
   DEFAULT ITALIC RESET - COMBAT THEME
   ======================================== */
  /* Browsers default <address>, <cite>, and <i> to italic;
     explicitly set font-style: normal to prevent unwanted rendering */
  address,
  cite,
  i {
    font-style: normal;
  }

/* ========================================
   SKIP LINK - Keyboard Navigation Accessibility
   ======================================== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--ufc-black);
  border: 1px solid var(--ufc-gray-border);
  padding: 8px 16px;
  color: var(--ufc-white);
  font-family: var(--font-arabic);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-xs);
}

.skip-link:focus-visible {
  top: var(--space-xs);
  outline: 2px solid var(--ufc-red);
  outline-offset: 2px;
}

/* ========================================
   DEFAULT ITALIC RESET - COMBAT THEME
   ======================================== */
  font-style: normal;
  line-height: 2;
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--ufc-white-muted);
}

.footer-contact strong {
  color: var(--ufc-white);
}

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

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

.footer-bottom {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--ufc-gray-border);
}

.footer-bottom-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.copyright {
  font-size: 0.8rem;
  color: var(--ufc-gray);
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: 0.8rem;
  color: var(--ufc-gray);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--ufc-red);
}

.payment-methods {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.payment-label {
  font-size: 0.75rem;
  color: var(--ufc-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-icon {
  height: 32px;
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast);
}

.payment-icon:hover {
  transform: scale(1.1);
}

.payment-cod {
  font-family: var(--font-latin);
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--ufc-gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   BACK TO TOP
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  left: var(--space-xl);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ufc-red);
  border: none;
  border-radius: var(--radius-none);
  color: var(--ufc-white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition-base);
  z-index: var(--z-sticky);
  box-shadow: var(--shadow-red);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ufc-red-bright);
  transform: translateY(-4px);
  box-shadow: var(--shadow-red-lg);
}

.back-to-top svg {
  width: 24px;
  height: 24px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .nav-center {
    display: none;
  }

  .nav-search {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 16px;
    --space-4xl: 48px;
    --space-3xl: 40px;
  }

  .header-top-content {
    flex-wrap: wrap;
    height: auto;
    padding: var(--space-sm) 0;
    gap: var(--space-sm);
  }

  .announcement-bar {
    order: 3;
    width: 100%;
    text-align: center;
  }

  .main-nav .container {
    gap: var(--space-md);
  }

  .logo-main {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 1rem;
  }

  .logo-tagline {
    font-size: 0.5rem;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-content {
    padding: var(--space-2xl) 0;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    flex: 0 0 240px;
  }

  .carousel-prev {
    right: auto;
    left: 0;
    margin: 0;
  }

  .carousel-next {
    left: auto;
    right: 0;
    margin: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }

  .footer-brand {
    grid-column: auto;
  }

  .brand-desc {
    max-width: none;
  }

  .social-links {
    justify-content: center;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    order: -1;
  }

  .payment-methods {
    justify-content: center;
  }

  .back-to-top {
    bottom: var(--space-md);
    left: var(--space-md);
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .hero-stats {
    gap: var(--space-md);
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .form-group {
    min-width: 0;
  }

  .newsletter-form .btn {
    width: 100%;
  }
}

/* ========================================
   LOADING STATES
   ======================================== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--ufc-black-card) 25%,
    var(--ufc-gray-border) 50%,
    var(--ufc-black-card) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: var(--space-xl);
  left: var(--space-xl);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-left: 4px solid var(--ufc-red);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease-out;
}

.toast.success {
  border-left-color: var(--ufc-gold);
}

.toast.error {
  border-left-color: var(--ufc-red);
}

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

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.toast-message {
  font-size: 0.9rem;
  color: var(--ufc-white);
}

.toast-close {
  margin-right: auto;
  background: none;
  border: none;
  color: var(--ufc-gray);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.toast-close:hover {
  color: var(--ufc-red);
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--ufc-black-card);
  border: 1px solid var(--ufc-gray-border);
  border-top: 3px solid var(--ufc-red);
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: transform var(--transition-base);
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--ufc-gray-border);
}

.modal-title {
  font-family: var(--font-arabic);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ufc-white);
}

body.lang-fr .modal-title {
  font-family: var(--font-latin);
}

.modal-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ufc-gray-border);
  border-radius: var(--radius-sm);
  color: var(--ufc-gray);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  border-color: var(--ufc-red);
  color: var(--ufc-red);
}

.modal-body {
  padding: var(--space-lg);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-top: 1px solid var(--ufc-gray-border);
}