/* ==========================================================================
   CLIENT & MESSAGING DASHBOARD - CRIMSON OLED PITCH BLACK EDITION
   تصميم لوحة التحكم والشات الفاخرة - الإصدار الأسود الحالك والقرمزي المتوهج
   ========================================================================== */

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

:root {
  /* Dynamic Mobile Viewport Variables */
  --vh: 1vh;
  --app-height: 100dvh;

  /* Dynamic Primary Accent Variables (Defaults to Crimson) */
  --primary-rgb: 225, 29, 72;
  --primary-dark-rgb: 159, 18, 57;
  --primary-glow-rgb: 244, 63, 94;
  --primary-ruby-rgb: 190, 18, 60;

  --brand-crimson: rgb(var(--primary-rgb));
  --brand-crimson-dark: rgb(var(--primary-dark-rgb));
  --brand-crimson-glow: rgb(var(--primary-glow-rgb));
  --brand-ruby: rgb(var(--primary-ruby-rgb));
  --accent-gradient: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, rgb(var(--primary-dark-rgb)) 100%);
  --accent-gradient-glow: rgba(var(--primary-rgb), 0.45);

  /* Message Bubbles */
  --bubble-in-bg: #0d0d0d;
  --bubble-in-border: rgba(255, 255, 255, 0.08);
  --bubble-in-text: #f1f5f9;
  --bubble-in-time: #64748b;
  --bubble-out-bg: linear-gradient(135deg, rgb(var(--primary-dark-rgb)) 0%, rgb(var(--primary-rgb)) 100%);

  /* Surfaces & Glass (Dark OLED defaults) */
  --bg-canvas: #000000;
  --bg-wrapper: #000000;
  --bg-column: #000000;
  --bg-card: #080808;
  --bg-card-active: #101010;
  --bg-input: #050505;
  --bg-dock: rgba(13, 15, 24, 0.94);
  
  --border-dark: #121212;
  --border-card: #181818;
  --border-input: #1f1f1f;
  --border-soft: #262626;

  --glass-panel-bg: rgba(10, 10, 14, 0.65);
  --glass-panel-border: rgba(255, 255, 255, 0.06);
  --glass-bar-bg: rgba(10, 10, 10, 0.8);
  --glass-bar-border: rgba(255, 255, 255, 0.08);
  --modal-bg: #0e0f16;
  --modal-card-bg: rgba(0, 0, 0, 0.4);
  --card-bg-mobile: #0d0e15;
  --header-mobile-bg: #08080d;
  --watermark-opacity: 0.13;

  /* Typography */
  --text-white: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* Global Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: 'Alexandria', 'Plus Jakarta Sans', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
}

/* Force Alexandria for all Arabic UI and Cairo classes */
.font-cairo,
.font-alexandria {
  font-family: 'Alexandria', 'Cairo', sans-serif !important;
}

[lang="ar"],
button,
input,
select,
textarea {
  font-family: 'Alexandria', 'Plus Jakarta Sans', 'Cairo', sans-serif;
}

/* Hide all scrollbars completely everywhere */
*::-webkit-scrollbar,
::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* High-End Glow Effects */
.crimson-glow-sm {
  box-shadow: 0 0 16px -2px rgba(var(--primary-rgb), 0.45);
}
.crimson-glow-pill {
  box-shadow: 0 0 20px -2px rgba(var(--primary-rgb), 0.35), inset 0 0 10px rgba(var(--primary-glow-rgb), 0.2);
}
.neon-crimson-border {
  border: 1px solid rgba(var(--primary-rgb), 0.45);
}

/* Animations & Keyframes */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 14px -2px rgba(var(--primary-rgb), 0.35);
  }
  50% {
    box-shadow: 0 0 24px 3px rgba(var(--primary-rgb), 0.65);
  }
}
.glow-pulse {
  animation: glowPulse 2.8s infinite ease-in-out;
}

@keyframes messagePop {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.msg-anim {
  animation: messagePop 0.18s ease-out forwards;
}
.msg-anim-instant {
  animation: messagePop 0.15s ease-out forwards;
}

/* Dynamic Elastic Landing Animations for Live Messages (تأثير هبوط وظهور الرسالة الفوري) */
@keyframes messageLandMine {
  0% {
    opacity: 0;
    transform: translate3d(16px, 24px, 0) scale(0.82);
    filter: drop-shadow(0 0 22px rgba(var(--primary-rgb), 0.95));
  }
  60% {
    transform: translate3d(-3px, -4px, 0) scale(1.03);
    filter: drop-shadow(0 0 14px rgba(var(--primary-rgb), 0.6));
  }
  80% {
    transform: translate3d(1px, 1px, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}
.msg-anim-mine {
  animation: messageLandMine 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom right;
}

@keyframes messageLandOther {
  0% {
    opacity: 0;
    transform: translate3d(-16px, 24px, 0) scale(0.82);
    filter: drop-shadow(0 0 20px rgba(var(--primary-glow-rgb), 0.75));
  }
  60% {
    transform: translate3d(3px, -4px, 0) scale(1.03);
    filter: drop-shadow(0 0 10px rgba(var(--primary-glow-rgb), 0.4));
  }
  80% {
    transform: translate3d(-1px, 1px, 0) scale(0.99);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 0 transparent);
  }
}
.msg-anim-other {
  animation: messageLandOther 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  transform-origin: bottom left;
}

/* Landing Glow Ripple Aura (توهج وإشعاع الهبوط اللحظي) */
@keyframes bubbleLandedPulseMine {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.9), 0 0 32px rgba(var(--primary-rgb), 0.85);
    transform: scale(0.95);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(var(--primary-rgb), 0), 0 0 22px rgba(var(--primary-rgb), 0.45);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
    transform: scale(1);
  }
}
.bubble-landed-mine {
  animation: bubbleLandedPulseMine 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes bubbleLandedPulseOther {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7), 0 0 26px rgba(var(--primary-rgb), 0.65);
    transform: scale(0.95);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0), 0 0 16px rgba(var(--primary-rgb), 0.3);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
    transform: scale(1);
  }
}
.bubble-landed-other {
  animation: bubbleLandedPulseOther 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

/* Send Button Click Ripple Animation */
@keyframes sendBtnPulse {
  0% {
    transform: scale(0.85);
    box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.9);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 12px rgba(var(--primary-rgb), 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.55);
  }
}
.send-btn-active-pulse {
  animation: sendBtnPulse 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes waveBarPlay {
  0%, 100% {
    transform: scaleY(0.4);
  }
  50% {
    transform: scaleY(1);
  }
}
.wave-animating {
  animation: waveBarPlay 0.7s infinite ease-in-out;
}

/* Card Hover Micro-Interactions */
.interactive-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.interactive-hover:hover {
  border-color: rgba(var(--primary-rgb), 0.45) !important;
  transform: translateY(-1px);
}

/* Luxury Ultra-Transparent Crystal Glassmorphism */
.crystal-glass-bar {
  background: var(--glass-bar-bg) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px -5px rgba(0, 0, 0, 0.8), inset 0 1px 1px 0 rgba(255, 255, 255, 0.08);
}

.crystal-pill-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.crystal-pill-item:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}
.crystal-pill-item.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, var(--brand-ruby) 0%, var(--brand-crimson) 100%) !important;
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.35) !important;
  border: 1px solid rgba(var(--primary-glow-rgb), 0.6) !important;
}

/* Nav Pill Menu in Center */
.nav-pill-btn {
  position: relative;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-pill-btn:hover {
  color: #ffffff !important;
  background: rgba(var(--primary-rgb), 0.15) !important;
  transform: translateY(-1px);
}
.nav-pill-active {
  background: linear-gradient(135deg, var(--brand-ruby) 0%, var(--brand-crimson) 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(var(--primary-glow-rgb), 0.7) !important;
}

/* Header Action Buttons */
.header-action-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-action-btn:hover {
  transform: translateY(-2px) scale(1.06);
  border-color: rgba(var(--primary-rgb), 0.6) !important;
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.45);
}

/* ==========================================================================
   BACKGROUND UNDERLAY: Small Circles & Glowing Orbs Under The Glass
   دوائر صغيرة وأجرام مضيئة في الخلفية تحت الزجاج
   ========================================================================== */
.bg-glass-underlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Crisp Small Circular Rings */
.bg-crisp-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  border: 1.5px solid rgba(var(--primary-rgb), 0.45);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.22) 0%, rgba(var(--primary-rgb), 0.04) 50%, transparent 70%);
  animation: circlePulse 7s infinite ease-in-out;
  box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.35), inset 0 0 18px rgba(var(--primary-rgb), 0.18);
}

.bg-ambient-orb-small {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.82;
  animation: orbDriftSmall 10s infinite ease-in-out alternate;
}

.bg-ambient-orb-blur {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.55;
  animation: orbDrift 16s infinite ease-in-out alternate;
}

@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.1); }
  100% { transform: translate(-25px, 20px) scale(0.95); }
}

@keyframes orbDriftSmall {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-20px, 25px) scale(1.15); }
  100% { transform: translate(20px, -18px) scale(1); }
}

@keyframes circlePulse {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.12); opacity: 0.85; }
}

/* Luxury Glass Panel for Sidebar & Main Containers (Translucent Dark Glass) */
.luxury-glass-panel {
  background: var(--glass-panel-bg) !important;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

#chat-messages-container {
  background: transparent !important;
}

/* ==========================================================================
   CHAT CENTER BACKGROUND WATERMARK: "العِصَـابَـة" فقط بدون لوجو (هادئة وصغيرة)
   خلفية نصية هادئة باللون الحار في منتصف الشات
   ========================================================================== */
.chat-center-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.13;
  text-align: center;
}

.watermark-arabic-text {
  font-size: clamp(24px, 4.2vw, 42px);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1;
  background: linear-gradient(180deg, #ff4d6d 0%, var(--brand-crimson) 70%, var(--brand-crimson-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(var(--primary-rgb), 0.7));
  text-align: center;
}

/* Jumbo Emoji Message (إيموجي كبير بدون إطار أو خلفية) */
.jumbo-emoji-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.jumbo-emoji-char {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.75));
}
.jumbo-emoji-char:hover {
  transform: scale(1.18);
}

/* Emoji Tab Pills */
.emoji-tab-pill {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s ease;
}
.emoji-tab-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.emoji-tab-pill.active {
  color: #ffffff;
  background: rgba(var(--primary-rgb), 0.25);
  border-color: rgba(var(--primary-rgb), 0.5);
  box-shadow: 0 0 10px rgba(var(--primary-rgb), 0.3);
}

/* Luxury Filter Pill */
.luxury-filter-pill {
  flex: 1;
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.luxury-filter-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}
.luxury-filter-pill.active {
  color: #ffffff !important;
  background: rgba(var(--primary-rgb), 0.22) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.45) !important;
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.3);
  font-weight: 700;
}

/* Luxury Chat Card in Inbox */
.luxury-chat-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.luxury-chat-card:hover {
  background: rgba(255, 255, 255, 0.038);
  border-color: rgba(255, 255, 255, 0.085);
  transform: translateY(-1px);
}
.luxury-chat-card.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.14) 0%, rgba(10, 10, 10, 0.95) 100%) !important;
  border: 1px solid rgba(var(--primary-rgb), 0.4) !important;
  box-shadow: 0 4px 20px -2px rgba(var(--primary-rgb), 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
.luxury-chat-card.active::before {
  display: none !important;
}

/* User Card in Inbox */
.inbox-user-card {
  padding: 11px 13px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  background: transparent;
  border: 1px solid transparent;
}
.inbox-user-card:hover {
  background: #0a0a0a;
  border-color: #1a1a1a;
}
.inbox-user-card.active {
  background: #111111 !important;
  border: 1px solid rgba(var(--primary-rgb), 0.5) !important;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.8);
}
.inbox-user-card.active::before {
  display: none !important;
}

/* Unread Badge */
.unread-badge {
  background: var(--brand-crimson);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.5);
}

/* Ultra-Luxury Message Bubbles */
.luxury-bubble-mine {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.94) 0%, rgba(var(--primary-dark-rgb), 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35);
  transition: all 0.15s ease;
}
.luxury-bubble-mine:hover {
  box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.45);
}

.luxury-bubble-other {
  background: #0d0d0d !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: all 0.15s ease;
}
.luxury-bubble-other:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

/* Luxury Input Console & Buttons (صندوق كتابة الرسائل - أسود فاحم صريح) */
.luxury-input-console {
  background: var(--bg-input) !important;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
}
.luxury-input-console:focus-within {
  border-color: rgba(var(--primary-rgb), 0.7) !important;
  box-shadow: 0 0 25px rgba(var(--primary-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  background: #000000 !important;
}

.luxury-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #94a3b8;
  flex-shrink: 0;
}
.luxury-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1.5px) scale(1.06);
}
.luxury-icon-btn:active {
  transform: translateY(0) scale(0.95);
}

/* Message Bubbles */
.bubble-in {
  background: var(--bubble-in-bg);
  border: 1px solid #1a1b28;
  border-radius: 18px 18px 18px 4px;
  color: #e2e8f0;
  position: relative;
  word-break: break-word;
}

.bubble-out {
  background: var(--bubble-out-bg);
  border: 1px solid rgba(var(--primary-glow-rgb), 0.35);
  border-radius: 18px 18px 4px 18px;
  color: #ffffff;
  position: relative;
  word-break: break-word;
  box-shadow: 0 4px 20px -2px rgba(var(--primary-rgb), 0.35);
}

/* Ultra-Modern Sleek Audio Note (WhatsApp / Telegram style) */
.luxury-audio-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 20px;
  width: 290px;
  max-width: 100%;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.luxury-audio-mine {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95) 0%, rgba(var(--primary-dark-rgb), 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.35);
}

.luxury-audio-other {
  background: #0d0d0d !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.85);
}

.audio-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.luxury-audio-mine .audio-play-btn {
  background: #ffffff;
  color: var(--brand-crimson);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.luxury-audio-mine .audio-play-btn:hover {
  transform: scale(1.08);
  background: #f8fafc;
}
.luxury-audio-other .audio-play-btn {
  background: var(--brand-crimson);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(var(--primary-rgb), 0.5);
}
.luxury-audio-other .audio-play-btn:hover {
  transform: scale(1.08);
  background: var(--brand-crimson-glow);
}

.waveform-container {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 22px;
  cursor: pointer;
  flex: 1;
}

.wave-bar {
  width: 2.8px;
  min-height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.28);
  transition: height 0.1s ease, background-color 0.15s ease;
}
.luxury-audio-other .wave-bar {
  background: #242424;
}
.luxury-audio-mine .wave-bar.played {
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}
.luxury-audio-other .wave-bar.played {
  background: var(--brand-crimson);
  box-shadow: 0 0 8px rgba(var(--primary-rgb), 0.7);
}

.speed-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 1.5px 6px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.luxury-audio-mine .speed-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.luxury-audio-other .speed-badge {
  background: #181818;
  color: #a3a3a3;
  border: 1px solid #282828;
}
.speed-badge:hover {
  filter: brightness(1.2);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox-modal.active {
  display: flex;
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #0d0e15;
  border: 1px solid var(--brand-crimson);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(var(--primary-rgb), 0.35);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toastPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Shake Animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}
.shake-animation {
  animation: shake 0.45s ease-in-out;
}

/* Stealth YouTube Camouflage Full Screen */
#stealth-screen {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #020617;
  flex-direction: column;
}
#stealth-screen.active {
  display: flex;
}

/* Circular Video Note (فويس كاميرا) Ultra-Luxury Styles */
.video-note-bubble {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8), 0 0 28px rgba(var(--primary-rgb), 0.4);
  border: 2.5px solid rgba(var(--primary-rgb), 0.85);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-note-bubble:hover {
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 38px rgba(var(--primary-rgb), 0.6);
  border-color: var(--brand-crimson-glow);
}
.video-note-bubble video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
}
.vn-play-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.vn-play-overlay.playing {
  opacity: 0;
}
.video-note-bubble:hover .vn-play-overlay.playing {
  opacity: 0.6;
}
.vn-play-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(var(--primary-rgb), 0.92);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.6);
  font-size: 24px;
  transition: transform 0.2s ease;
}
.video-note-bubble:hover .vn-play-icon {
  transform: scale(1.08);
}
.vn-bubble-svg-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: rotate(-90deg);
}

/* Call Modal Animations */
@keyframes callPulse {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 0 25px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.call-pulse-animation {
  animation: callPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ==========================================================================
   Interactive Message System: Search, Reply, Reactions, Deletions
   ========================================================================== */

/* Reply Highlight Pulse */
@keyframes replyPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
  50% { transform: scale(1.02); box-shadow: 0 0 25px 4px rgba(var(--primary-rgb), 0.7); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0); }
}
.reply-highlight-pulse {
  animation: replyPulse 0.9s ease-in-out 2;
  border-radius: 18px;
}

/* In-Chat Search Highlights */
.search-highlight-match {
  box-shadow: 0 0 12px rgba(var(--primary-rgb), 0.4) !important;
  border-radius: 18px;
}
.search-highlight-active {
  box-shadow: 0 0 24px rgba(var(--primary-rgb), 0.95), 0 0 0 2px var(--brand-crimson) !important;
  border-radius: 18px;
  animation: searchActivePulse 1.2s infinite ease-in-out;
}
@keyframes searchActivePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Message Actions Toolbar on Hover and Mobile Tap */
.group\/msg:hover .msg-action-toolbar,
.group\/msg.show-actions .msg-action-toolbar {
  opacity: 1 !important;
  pointer-events: auto !important;
}

@keyframes fadeInPicker {
  from { opacity: 0; transform: translateY(6px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.animate-fade-in {
  animation: fadeInPicker 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Luxury Poll Card Styling */
.luxury-poll-card {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px rgba(var(--primary-rgb), 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.luxury-poll-card:hover {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(var(--primary-rgb), 0.12);
}
.poll-option-row {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, background-color, border-color;
  -webkit-tap-highlight-color: transparent;
}
.poll-option-row:hover {
  transform: translateY(-1px);
}
.poll-option-row:active {
  transform: scale(0.985);
}
.poll-progress-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  height: 100%;
  transition: width 0.52s cubic-bezier(0.34, 1.25, 0.64, 1), background-color 0.3s ease;
  will-change: width;
  pointer-events: none;
}
.poll-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2.5px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.85);
  border-radius: 9999px;
  opacity: 0.9;
  pointer-events: none;
}
.poll-progress-fill[style*="width: 0%"]::after,
.poll-progress-fill[style*="width: 0px"]::after {
  display: none !important;
}
.poll-check-pop {
  animation: pollVotePop 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
@keyframes pollVotePop {
  0% {
    transform: scale(0.65);
    opacity: 0.5;
  }
  60% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pollBarPulse {
  0% {
    filter: brightness(1) drop-shadow(0 0 4px rgba(var(--primary-rgb), 0.4));
  }
  50% {
    filter: brightness(1.35) drop-shadow(0 0 16px rgba(var(--primary-glow-rgb), 0.95));
  }
  100% {
    filter: brightness(1) drop-shadow(0 0 8px rgba(var(--primary-rgb), 0.6));
  }
}
.poll-bar-pulsing {
  animation: pollBarPulse 0.65s ease-out;
}

/* Center Desktop/Tablet Navigation Switcher (المحادثات vs UFC) */
#main-nav-switcher {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  margin: 0 !important;
  z-index: 30;
}
@media (max-width: 767px) {
  #main-nav-switcher {
    display: none !important;
  }
}



/* Smooth Native Mobile Page Transitions (Hardware-Accelerated 60/120fps) */
@keyframes mobileSlideInFromRight {
  0% {
    transform: translate3d(-100%, 0, 0);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@keyframes mobileSlideOutToRight {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(-100%, 0, 0);
    opacity: 0.7;
  }
}
@keyframes mobileSidebarEnter {
  0% {
    transform: translate3d(40px, 0, 0);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}
@keyframes mobileFadeInSmooth {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-chat-slide-enter {
  animation: mobileSlideInFromRight 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  will-change: transform, opacity;
}
.mobile-chat-slide-leave {
  animation: mobileSlideOutToRight 0.18s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  will-change: transform, opacity;
}
.mobile-sidebar-enter {
  animation: mobileSidebarEnter 0.20s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  will-change: transform, opacity;
}
#ufc-view-container:not(.hidden) {
  animation: mobileFadeInSmooth 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes iconSpring {
  0% { transform: scale(0.92); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1.06); }
}

/* Mobile Bottom Navigation Bar: Hidden by default on desktop/tablet */
#mobile-bottom-nav {
  display: none;
}

/* ==========================================================================
   MOBILE-FIRST NATIVE WHATSAPP ARCHITECTURE (max-width: 767px)
   تصميم نسخة الموبايل الحقيقية المطابقة لتطبيق واتساب بنسبة 100%
   ========================================================================== */
@media (max-width: 767px) {
  /* Ultra-Fast Mobile Mode: Strip heavy GPU effects from main UI elements (not the dock) */
  .luxury-glass-panel,
  .crystal-glass-bar,
  .luxury-input-console,
  #active-chat-header,
  header.relative.z-10,
  #chat-attach-menu,
  #mobile-header-menu-dropdown,
  #chat-header-menu-dropdown,
  #conversations-sidebar-list,
  #chat-messages-container,
  #floating-reaction-picker {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-shadow: none !important;
  }

  /* Remove all GPU-stalling box-shadows and filters on mobile (exempting glass dock) */
  .luxury-glass-panel,
  .crystal-glass-bar,
  .luxury-input-console,
  .luxury-bubble-mine,
  .luxury-bubble-other,
  #chat-recording-bar,
  #active-chat-header,
  header.relative.z-10,
  #chat-attach-menu,
  #mobile-header-menu-dropdown,
  #chat-header-menu-dropdown,
  #conversations-sidebar-list,
  #chat-messages-container {
    box-shadow: none !important;
    filter: none !important;
  }

  /* Hide background glowing orbs on mobile for pure OLED black & maximum speed */
  .bg-glass-underlay {
    display: none !important;
  }

  /* Prevent browser bounce & rubber-banding scroll */
  html, body {
    height: 100% !important;
    height: 100dvh !important;
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Mobile Gate and Auth Screens & Cards */
  #gate-screen, #auth-screen {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 16px 12px 32px 12px !important;
  }
  #gate-card, #auth-card {
    max-width: 100% !important;
    width: 95% !important;
    margin: auto !important;
    padding: 24px 18px !important;
    border-radius: 26px !important;
  }

  /* Ensure modal & screen visibility is strictly respected on mobile */
  #main-chat-screen.hidden,
  #gate-screen.hidden,
  #auth-screen.hidden,
  #stealth-mode-overlay.hidden,
  #surveillance-lounge-modal.hidden,
  #ufc-view-container.hidden,
  #settings-view-container.hidden {
    display: none !important;
  }

  /* Full Screen Master Dashboard on Mobile - Zero wasted margins */
  #main-chat-screen:not(.hidden) {
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 0 !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    background: #000000 !important;
    overflow: hidden !important;
  }

  /* Columns Container on Mobile */
  #main-chat-screen > div.relative.z-10.flex {
    gap: 0 !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    height: auto !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  /* Top Navigation Bar on Mobile (Conversations Header) */
  header.relative.z-10 {
    height: 54px !important;
    min-height: 54px !important;
    padding-top: max(6px, env(safe-area-inset-top, 6px)) !important;
    padding-bottom: 6px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #08080c !important;
    z-index: 100 !important;
    flex-shrink: 0 !important;
  }
  header.relative.z-10 .header-action-btn {
    width: 36px !important;
    height: 36px !important;
  }

  /* ========================================================================
     STATE A: Mobile Conversations List (الدردشات)
     ======================================================================== */
  body.mobile-view-conversations header.relative.z-10 {
    display: flex !important;
  }
  body.mobile-view-conversations #chat-sidebar {
    display: flex !important;
    flex: 1 1 0% !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000000 !important;
    padding: 8px 12px 0 12px !important;
    overflow: hidden !important;
  }
  body.mobile-view-conversations #conversations-sidebar-list {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 78px !important; /* space for fixed floating bottom dock */
  }
  body.mobile-view-conversations #chat-main-area {
    display: none !important;
  }

  /* WhatsApp Style Chat Cards */
  .luxury-chat-card {
    padding: 12px !important;
    border-radius: 18px !important;
    min-height: 64px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: #0d0e15 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
  }
  .luxury-chat-card:active {
    background: rgba(var(--primary-rgb), 0.14) !important;
    transform: scale(0.985) !important;
  }

  /* Mobile Bottom Navigation Bar (Fixed Floating Island Glass Dock) */
  #mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
    left: 14px !important;
    right: 14px !important;
    margin: 0 auto !important;
    width: calc(100% - 28px) !important;
    max-width: 440px !important;
    height: 56px !important;
    align-items: center !important;
    justify-content: space-around !important;
    border-radius: 28px !important;
    background: rgba(13, 15, 24, 0.94) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(var(--primary-rgb), 0.2) !important;
    padding: 0 8px !important;
    z-index: 9999 !important;
    overflow: hidden !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease !important;
  }
  body.mobile-view-chat #mobile-bottom-nav {
    display: none !important;
  }
  .mobile-nav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 16px;
    height: 46px;
    border-radius: 16px;
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 70px;
    box-sizing: border-box;
  }
  .mobile-nav-btn:active {
    transform: scale(0.94);
  }
  .mobile-nav-btn.active {
    color: #ffffff !important;
    background: rgba(var(--primary-rgb), 0.16) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.3) !important;
    box-shadow: none !important;
  }
  .mobile-nav-btn.active i {
    color: #ff3366 !important;
    transform: scale(1.1);
    filter: none !important;
    animation: iconSpring 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  .mobile-nav-btn.active span {
    color: #ffffff !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px;
  }
  .mobile-nav-btn::before,
  .mobile-nav-btn::after,
  .mobile-nav-btn.active::before,
  .mobile-nav-btn.active::after {
    display: none !important;
    content: none !important;
  }

  /* Filter segmented pills on mobile - comfortable touch targets */
  .luxury-filter-pill {
    min-height: 38px !important;
    padding: 7px 12px !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    cursor: pointer !important;
  }
  .luxury-filter-pill:active {
    transform: scale(0.95);
  }

  /* ========================================================================
     STATE B: Mobile Dedicated Chat View (المحادثة النشطة)
     ======================================================================== */
  body.mobile-view-chat header.relative.z-10 {
    display: none !important; /* Hide outer app header */
  }
  body.mobile-view-chat #chat-sidebar {
    display: none !important;
  }
  body.mobile-view-chat #chat-main-area {
    display: flex !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 0 !important;
    background: #000000 !important;
    position: relative !important;
  }

  /* Dedicated Chat Header on Mobile */
  #active-chat-header {
    height: auto !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    padding-top: max(8px, env(safe-area-inset-top, 8px)) !important;
    padding-bottom: 8px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    background: #08080d !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 30 !important;
  }
  #mobile-chat-back-btn {
    display: flex !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  /* Chat Messages Container on Mobile */
  #chat-messages-container {
    padding: 12px 10px !important;
    gap: 8px !important;
    flex: 1 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Message Bubbles & Media on Mobile */
  .luxury-bubble-mine, .luxury-bubble-other {
    max-width: 90% !important;
    font-size: 13.5px !important;
    line-height: 1.45 !important;
    padding: 8px 12px !important;
  }
  .luxury-audio-pill {
    max-width: 92% !important;
    min-width: 215px !important;
    padding: 7px 10px !important;
  }
  .video-note-bubble {
    width: 180px !important;
    height: 180px !important;
  }
  .luxury-call-card {
    min-width: unset !important;
    width: 100% !important;
    max-width: 280px !important;
  }

  /* Chat Input Console on Mobile */
  #chat-main-area > div.relative.z-20.pt-2 {
    padding-top: 6px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
    background: #000000 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .luxury-input-console {
    padding: 5px 8px !important;
    border-radius: 28px !important;
    min-height: 46px !important;
    gap: 4px !important;
  }
  .luxury-icon-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
  #chat-send-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  /* Mobile 3-Dots Dropdown & Attach Menu - Guaranteed Top/Anchor Positioning */
  #mobile-header-menu-dropdown {
    position: absolute !important;
    top: 46px !important;
    left: 0 !important;
    right: auto !important;
    z-index: 99999 !important;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  #chat-header-menu-dropdown {
    position: absolute !important;
    top: 46px !important;
    left: 0 !important;
    right: auto !important;
    z-index: 99999 !important;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
  }
  #chat-attach-menu {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  /* Extreme Mobile Performance: Hardware Acceleration & Silky 60fps/120fps Scroll */
  #conversations-sidebar-list, #chat-messages-container {
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    transform: translateZ(0) !important;
    will-change: scroll-position !important;
    scroll-behavior: auto !important;
  }

  /* Direct users list robust display */
  #users-direct-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    contain: none !important;
  }
  #users-direct-list .luxury-chat-card {
    display: flex !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  /* Native touch feedback with zero delay */
  button, a, input, textarea, .luxury-chat-card, .mobile-nav-btn {
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
  }

  .luxury-glass-panel {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #000000 !important;
  }
  .luxury-chat-card {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #0d0e15 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: background 0.1s ease, transform 0.08s ease !important;
  }
  .luxury-chat-card:active {
    background: rgba(var(--primary-rgb), 0.12) !important;
    transform: scale(0.985) !important;
  }
  .luxury-chat-card.active {
    background: rgba(var(--primary-rgb), 0.16) !important;
    border-color: rgba(var(--primary-rgb), 0.4) !important;
  }
  .luxury-bubble-mine, .luxury-bubble-other {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  /* Emoji Drawer on Mobile (Full Bottom Sheet) */
  #chat-emoji-drawer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 24px 24px 0 0 !important;
    max-height: 55vh !important;
    padding: 14px 16px max(16px, env(safe-area-inset-bottom)) 16px !important;
    border: 1px solid rgba(var(--primary-rgb), 0.4) !important;
    border-bottom: none !important;
    z-index: 50 !important;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.95) !important;
  }
  #quick-emoji-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    max-height: 36vh !important;
    gap: 8px !important;
  }
  #quick-emoji-grid button {
    font-size: 26px !important;
    padding: 8px 4px !important;
  }

  /* Full Screen Mobile Settings & Modals */
  #profile-edit-modal {
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.95) !important;
  }
  #profile-edit-modal > div {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    padding: 18px 16px max(24px, env(safe-area-inset-bottom)) 16px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background: #0a0b12 !important;
  }

  /* WhatsApp Dynamic Input Bar Swap (Mic vs Send Button) */
  #chat-message-input {
    font-size: 16px !important; /* Prevents auto-zoom in iOS Safari */
    min-width: 0 !important;
    padding: 6px 8px !important;
  }
  body.mobile-has-text #chat-send-btn {
    display: flex !important;
    animation: popScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
  body.mobile-has-text #chat-mic-btn,
  body.mobile-has-text #chat-video-note-btn {
    display: none !important;
  }
  body.mobile-no-text #chat-send-btn {
    display: none !important;
  }
  body.mobile-no-text #chat-mic-btn,
  body.mobile-no-text #chat-video-note-btn {
    display: flex !important;
  }

  @keyframes popScaleIn {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.12); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
  }

  /* Floating UFC Guess Card On Mobile (Scaled & Non-Intrusive) */
  #ufc-guess-floating-card {
    top: 4px !important;
    right: 4px !important;
    transform: scale(0.82) !important;
    transform-origin: top right !important;
  }
  #ufc-floating-card-pill {
    top: 6px !important;
    right: 6px !important;
  }

  /* UFC Arena & Hub Dedicated Mobile Layout (Fluid & Zero Waste) */
  #ufc-view-container {
    padding: 10px 10px calc(80px + env(safe-area-inset-bottom, 12px)) 10px !important;
    border-radius: 0 !important;
    border: none !important;
    background: #000000 !important;
    width: 100% !important;
    height: 100% !important;
    height: calc(var(--vh, 1vh) * 100) !important;
    height: 100dvh !important;
    gap: 16px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .ufc-top-strip-wrapper {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 16px !important;
  }
  .ufc-top-strip-pill {
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 10px !important;
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
  }
  .ufc-event-card {
    border-radius: 20px !important;
  }
  .ufc-event-card > div[onclick*="toggleEvent"] {
    min-height: 240px !important;
    padding: 12px !important;
  }

  /* All Modals Centered & Touch Scroll on Mobile */
  #game-hub-modal > div,
  #ufc-guess-modal > div,
  #spy-voting-modal > div,
  #spy-card-modal > div,
  #spy-category-modal > div,
  #spy-guess-modal > div,
  #whisper-modal > div,
  #ufc-share-modal > div,
  #ufc-tale-modal > div,
  #ufc-prediction-history-modal > div,
  #ufc-voters-modal > div,
  #custom-confirm-modal > div {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
    margin: auto !important;
    padding: 16px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* ==========================================================================
   UFC OFFICIAL FIGHT PASS & HUB STYLING
   ========================================================================== */
#ufc-view-container {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(var(--primary-rgb), 0.4) transparent !important;
}
#ufc-view-container::-webkit-scrollbar {
  width: 6px;
  display: block !important;
}
#ufc-view-container::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.4);
  border-radius: 9999px;
}
#ufc-view-container::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.8);
}

@keyframes ufcTitleGlow {
  0%, 100% {
    filter: drop-shadow(0 15px 35px rgba(var(--primary-rgb), 0.45));
  }
  50% {
    filter: drop-shadow(0 20px 50px rgba(var(--primary-rgb), 0.75));
  }
}
.ufc-glow-text {
  animation: ufcTitleGlow 3s ease-in-out infinite;
}

/* Precise UFC Hub Strip & Center Alignment */
.ufc-top-strip-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.ufc-top-strip-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  padding: 0 12px !important;
  margin: auto !important;
  box-sizing: border-box !important;
  vertical-align: middle !important;
  line-height: normal !important;
  max-width: 95% !important;
}
@media (min-width: 640px) {
  .ufc-top-strip-pill {
    padding: 0 20px !important;
  }
}

/* ==========================================================================
   FEATURE 5: GHOST SELF-DESTRUCTING MESSAGES
   ========================================================================== */
#chat-ghost-btn.active {
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: rgba(245, 158, 11, 0.18) !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.4) !important;
  animation: ghostBtnPulse 1.8s ease-in-out infinite;
}

@keyframes ghostBtnPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.5)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8)); }
}

/* Ghost Card Cyber Detonator Details */
.ghost-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(12px);
}
.ghost-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, #f59e0b, #ef4444, #f59e0b);
  background-size: 200% 100%;
  animation: ghostHazardSlide 2s linear infinite;
  z-index: 2;
}

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

.ghost-card .ph-fingerprint {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* Arcade Game Hub Modal styling */
#game-hub-modal:not(.hidden) {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

/* Burning / Disintegration animation when countdown ends */
.ghost-burning-disintegrate {
  animation: ghostDisintegrate 0.75s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
  pointer-events: none !important;
}

@keyframes ghostDisintegrate {
  0% {
    filter: drop-shadow(0 0 20px #f59e0b) brightness(1.4);
    transform: scale(1);
    opacity: 1;
  }
  30% {
    filter: drop-shadow(0 0 35px #ef4444) brightness(2) contrast(1.5);
    transform: scale(1.03) rotate(-1deg);
    opacity: 0.9;
  }
  70% {
    filter: blur(4px) drop-shadow(0 0 15px #78350f);
    transform: scale(0.92) translateY(-8px) skewX(2deg);
    opacity: 0.4;
  }
  100% {
    filter: blur(12px);
    transform: scale(0.8) translateY(-20px);
    opacity: 0;
  }
}

.ghost-burned-stamp {
  animation: stampFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stampFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* ==========================================================================
   CUSTOM LUXURY LIGHT MODE (الوضع الفاتح المخصص الراقي)
   تصميم مخصص فائق الأناقة والراحة البصرية مع تباين عالي لكل العناصر
   ========================================================================== */

html.light,
html.light body {
  background-color: var(--bg-canvas) !important;
  color: var(--text-primary) !important;
}

html.light #main-chat-screen {
  background-color: var(--bg-canvas) !important;
}

/* Luxury Glass Panels & Bars in Light Mode */
html.light .luxury-glass-panel {
  background: var(--glass-panel-bg) !important;
  border-color: var(--glass-panel-border) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

html.light .crystal-glass-bar {
  background: var(--glass-bar-bg) !important;
  border-color: var(--glass-bar-border) !important;
  box-shadow: 0 4px 18px -2px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  color: #334155 !important;
}
html.light .crystal-glass-bar:hover {
  color: #0f172a !important;
}

/* Chat & Sidebar Text in Light Mode */
html.light h1, html.light h2, html.light h3, html.light h4,
html.light .text-white:not(.keep-white) {
  color: #0f172a !important;
}

html.light .text-slate-100 { color: #0f172a !important; }
html.light .text-slate-200 { color: #1e293b !important; }
html.light .text-slate-300 { color: #334155 !important; }
html.light .text-slate-400 { color: #64748b !important; }

/* Keep White Text on Saturated / Accent Buttons & Outgoing Bubbles */
html.light .keep-white,
html.light .keep-white *,
html.light .luxury-bubble-mine,
html.light .luxury-bubble-mine *,
html.light .unread-badge,
html.light .unread-counter-badge,
html.light button.bg-brand-crimson,
html.light button.bg-brand-crimson *,
html.light #chat-send-btn,
html.light #chat-send-btn *,
html.light #rec-send-btn,
html.light #rec-send-btn *,
html.light #nav-btn-chat.active,
html.light #nav-btn-chat.active *,
html.light .theme-accent-btn span,
html.light [class*="bg-brand-crimson"],
html.light [class*="bg-brand-crimson"] * {
  color: #ffffff !important;
}

/* Chat Inbox Cards in Light Mode */
html.light .luxury-chat-card {
  background: var(--bg-card) !important;
  border-color: var(--border-card) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}
html.light .luxury-chat-card:hover {
  background: rgba(var(--primary-rgb), 0.04) !important;
  border-color: rgba(var(--primary-rgb), 0.25) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}
html.light .luxury-chat-card.active {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12) 0%, #ffffff 100%) !important;
  border-color: rgba(var(--primary-rgb), 0.45) !important;
  box-shadow: 0 4px 20px -2px rgba(var(--primary-rgb), 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* User Card in Inbox */
html.light .inbox-user-card:hover {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
html.light .inbox-user-card.active {
  background: #f8fafc !important;
  border-color: rgba(var(--primary-rgb), 0.4) !important;
}

/* Message Bubbles in Light Mode */
html.light .luxury-bubble-other {
  background: var(--bubble-in-bg) !important;
  border: 1px solid var(--bubble-in-border) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
  color: var(--bubble-in-text) !important;
}
html.light .luxury-bubble-other * {
  color: #1e293b;
}
html.light .luxury-bubble-other .text-slate-400,
html.light .luxury-bubble-other .text-slate-500 {
  color: #64748b !important;
}

html.light .luxury-bubble-mine {
  background: var(--bubble-out-bg) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.35) !important;
  color: #ffffff !important;
}
html.light .luxury-bubble-mine * {
  color: #ffffff !important;
}

/* Input Console in Light Mode */
html.light .luxury-input-console {
  background: var(--bg-input) !important;
  border: 1px solid var(--border-input) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
}
html.light .luxury-input-console textarea,
html.light .luxury-input-console input {
  color: #0f172a !important;
}
html.light .luxury-input-console textarea::placeholder,
html.light .luxury-input-console input::placeholder {
  color: #94a3b8 !important;
}

/* Icon Buttons in Light Mode */
html.light .luxury-icon-btn {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
html.light .luxury-icon-btn:hover {
  background: rgba(var(--primary-rgb), 0.1) !important;
  border-color: rgba(var(--primary-rgb), 0.3) !important;
  color: var(--brand-crimson) !important;
}

/* Audio Player in Light Mode */
html.light .luxury-audio-other {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06) !important;
}
html.light .luxury-audio-other .wave-bar {
  background: #cbd5e1;
}
html.light .luxury-audio-other .speed-badge {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}

/* Modals, Dropdowns & Menus in Light Mode */
html.light .lightbox-modal > div,
html.light #profile-edit-modal > div,
html.light #chat-attach-menu,
html.light #chat-header-menu-dropdown,
html.light #mobile-header-menu-dropdown,
html.light #floating-reaction-picker,
html.light #chat-emoji-drawer {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12) !important;
}

html.light input:not([type="checkbox"]):not([type="radio"]),
html.light textarea,
html.light select {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #0f172a !important;
}

/* Pill menus & Filters */
html.light .crystal-pill-item {
  color: #64748b;
}
html.light .crystal-pill-item:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.05);
}
html.light .luxury-filter-pill {
  color: #64748b;
}
html.light .luxury-filter-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}
html.light .emoji-tab-pill {
  color: #64748b;
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}
html.light .emoji-tab-pill:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.08);
}

/* Polls in Light Mode */
html.light .luxury-poll-card {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.09) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}
html.light .poll-option-row {
  background: #f8fafc !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}
html.light .poll-option-row:hover {
  background: #f1f5f9 !important;
}

/* Mobile specific styling in Light Mode */
@media (max-width: 767px) {
  html.light body.mobile-view-conversations #chat-sidebar {
    background: var(--bg-canvas) !important;
  }
  html.light body.mobile-view-chat #chat-main-area {
    background: var(--bg-canvas) !important;
  }
  html.light #active-chat-header {
    background: rgba(255, 255, 255, 0.96) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  }
  html.light #mobile-bottom-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 16px rgba(var(--primary-rgb), 0.15) !important;
  }
  html.light .mobile-nav-btn {
    color: #64748b !important;
  }
  html.light .mobile-nav-btn.active {
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
    color: var(--brand-crimson) !important;
  }
  html.light .mobile-nav-btn.active span {
    color: var(--brand-crimson) !important;
  }
  html.light .luxury-chat-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
}

/* Watermark in Light Mode */
html.light .chat-center-watermark {
  opacity: 0.06 !important;
}

/* Ambient circles in Light Mode */
html.light .bg-crisp-circle {
  border-color: rgba(var(--primary-rgb), 0.25);
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
  box-shadow: 0 0 35px rgba(var(--primary-rgb), 0.15);
}
html.light .bg-ambient-orb-small {
  opacity: 0.25;
}

/* UFC Cinema Floating Reaction Animation */
@keyframes floatReaction {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
  }
  20% {
    transform: translateY(-15px) scale(1.15);
    opacity: 1;
  }
  80% {
    transform: translateY(-80px) scale(1);
    opacity: 0.9;
  }
  100% {
    transform: translateY(-130px) scale(0.85);
    opacity: 0;
  }
}

.animate-float-reaction {
  animation: floatReaction 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* ==========================================================================
   Smooth Conversation Switch & Section Animation Enhancements
   ========================================================================== */

/* 1. Chat Area Smooth Switch */
@keyframes chatSwitchFade {
  0% {
    opacity: 0.35;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-switch-animation {
  animation: chatSwitchFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* 2. Chat Header Avatar & Title Switch Fade */
@keyframes headerSwitchFade {
  0% {
    opacity: 0.45;
    transform: scale(0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.header-switch-animation {
  animation: headerSwitchFade 0.20s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

/* 3. Attach Menu Animated Popup */
@keyframes attachMenuPopup {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.attach-menu-anim-in {
  animation: attachMenuPopup 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  transform-origin: bottom right;
}

/* 4. Game Hub Modal Entrance Animations */
@keyframes modalBackdropFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalDialogScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.game-hub-backdrop-in {
  animation: modalBackdropFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.game-hub-dialog-in {
  animation: modalDialogScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 5. Tactile Micro-Interactions for Buttons */
.interactive-click-btn {
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
  will-change: transform;
}

.interactive-click-btn:active {
  transform: scale(0.92) !important;
}

.luxury-chat-card {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease !important;
}

.luxury-chat-card:active {
  transform: scale(0.985);
}

/* ==========================================================================
   UFC LUXURY OCTAGON & CHAMPIONSHIP GOLD STYLING
   ========================================================================== */
.bouts-pop-animation {
  animation: boutsPopDropdown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes boutsPopDropdown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ufc-gold-glow {
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ufc-gold-glow:hover {
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.ufc-crimson-glow {
  box-shadow: 0 0 25px rgba(225, 29, 72, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ufc-blue-glow {
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

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

.ufc-gold-shimmer-badge {
  background: linear-gradient(90deg, rgba(212,175,55,0.15) 0%, rgba(255,230,128,0.4) 50%, rgba(212,175,55,0.15) 100%);
  background-size: 200% 100%;
  animation: ufcGoldShimmer 4s infinite linear;
}

.ufc-stat-bar-glow {
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}


