:root {
  /* ==========================================================================
     CREMEET 2026 — 3D LIQUID GLASS & CHROMATIC MAGENTA DESIGN SYSTEM
     Brand: CreMeet | Core Colors: #050407, #0B080D, #FF35B8, #D81791, #FF8BD8
     ========================================================================== */

  /* System Color Behavior */
  --cm-bg-primary: #050407;
  --cm-bg-secondary: #0B080D;
  --cm-surface-glass: rgba(255, 255, 255, 0.04);
  --cm-surface-glass-hover: rgba(255, 255, 255, 0.08);

  /* Authentic CreMeet 3D Brand Colors */
  --cm-pink: #FF35B8;
  --cm-pink-hover: #E0269E;
  --cm-magenta: #D81791;
  --cm-light-pink: #FF8BD8;
  --cm-pink-subtle: rgba(255, 53, 184, 0.12);
  --cm-pink-border: rgba(255, 53, 184, 0.35);
  --cm-pink-glow: rgba(255, 53, 184, 0.4);

  /* Typography & Neutrals */
  --cm-text-primary: #FFFFFF;
  --cm-text-secondary: #A9A1AC;
  --cm-text-muted: #A9A1AC;
  --cm-text-tertiary: #716975;
  --cm-border-glass: rgba(255, 53, 184, 0.2);
  --cm-border-glass-strong: rgba(255, 255, 255, 0.16);
  --cm-separator: rgba(255, 255, 255, 0.08);

  /* Liquid Glass Tokens */
  --cm-glass-blur: blur(24px) saturate(190%);
  --cm-glass-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), inset 0 1px 1px rgba(255, 255, 255, 0.15);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Layout */
  --container-max: 1240px;

  /* Easing */
  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);

  /* Compatibility aliases for Admin and App */
  --cm-dark: #050407;
  --cm-dark-2: #0B080D;
  --cm-white: #FFFFFF;
  --cm-border: rgba(255, 53, 184, 0.2);
  --cm-border-dark: rgba(255, 255, 255, 0.1);
  --cm-text-light: #FFFFFF;
  --cm-text: #FFFFFF;
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  width: 100%;
  background-color: var(--cm-bg-primary);
}

body {
  background-color: var(--cm-bg-primary);
  color: var(--cm-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100dvh;
}

#root {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background-color: var(--cm-bg-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #080B11;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  border: 2px solid #080B11;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cm-pink);
}

::selection {
  background: rgba(255, 46, 126, 0.35);
  color: #FFFFFF;
}

img, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* App Media & UI Touch Protection (Prevents unwanted native drag & long-press image menus) */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Explicitly preserve selectable text areas */
p, article, span, h1, h2, h3, h4, h5, h6, input, textarea {
  -webkit-touch-callout: default;
  user-select: text;
}

/* Native App Controls & Cards */
.app-touch-tap,
.app-native-card,
.cm-action-pill,
.app-mobile-bottombar,
.app-mobile-topbar {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* Universal Button Tokens & Reset for CreMeet Web App */
*, *::before, *::after {
  -webkit-tap-highlight-color: transparent !important;
}

button {
  font-family: inherit;
  color: #FFFFFF;
  background: transparent;
  border: none;
  -webkit-tap-highlight-color: transparent !important;
}

.btn, .btn-primary, .btn-secondary, .btn-outline, .btn-danger, .cm-btn-primary, .cm-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  outline: none;
  border: 1px solid transparent;
  user-select: none;
  box-sizing: border-box;
}

/* Post Action Pill Button (Like, Comment, Share, Save) */
.cm-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-sizing: border-box;
}
.cm-action-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}
.cm-action-pill:active {
  transform: scale(0.96);
}
.cm-action-pill.active {
  background: rgba(255, 46, 126, 0.14);
  border-color: rgba(255, 46, 126, 0.35);
  color: #FF2E7E;
}

/* Native Circular Icon Button (Header, Back, Options, Chat, Bell) */
.cm-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
.cm-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}
.cm-icon-btn:active {
  transform: scale(0.94);
}

/* Native Squircle Icon Button (38px x 38px, radius 12px) */
.cm-squircle-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
  flex-shrink: 0;
  padding: 0;
  box-sizing: border-box;
}
.cm-squircle-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
}
.cm-squircle-btn:active {
  transform: scale(0.95);
}

/* Native Auth Button (Height 56px, Radius 16px, Native Color #FF3366) */
.cm-auth-btn-primary {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: #FF3366 !important;
  color: #FFFFFF !important;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 18px rgba(255, 51, 102, 0.35);
  box-sizing: border-box;
}
.cm-auth-btn-primary:hover {
  background: #FF1A53 !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 51, 102, 0.45);
}
.cm-auth-btn-primary:active {
  transform: translateY(0);
}
.cm-auth-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Native Google Button (Height 56px, Radius 16px) */
.cm-auth-btn-google {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: #F3F4F6 !important;
  color: #374151 !important;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.cm-auth-btn-google:hover {
  background: #E5E7EB !important;
  transform: translateY(-1px);
}
.cm-auth-btn-google:active {
  transform: translateY(0);
}

/* Native Auth Input (Height 56px, Radius 16px, Background #1A1A1A, Border #333) */
.cm-auth-input {
  width: 100%;
  height: 56px;
  border-radius: 16px;
  background: #1A1A1A;
  border: 1px solid #333333;
  color: #FFFFFF;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
}
.cm-auth-input:focus {
  border-color: #FF3366;
}

.btn-primary {
  background: linear-gradient(135deg, #FF1493 0%, #FF007F 100%) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 46, 126, 0.45) !important;
  box-shadow: 0 4px 16px rgba(255, 46, 126, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #FF2E7E 0%, #FF1493 100%) !important;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 22px rgba(255, 46, 126, 0.55);
  color: #FFFFFF !important;
}

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

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-1.5px);
  color: #FFFFFF !important;
}

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

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-outline {
  background: transparent !important;
  color: #FF2E7E !important;
  border: 1px solid rgba(255, 46, 126, 0.45) !important;
}

.btn-outline:hover {
  background: rgba(255, 46, 126, 0.12) !important;
  border-color: #FF2E7E !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #EF4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #EF4444 !important;
}

/* Apple Liquid-Glass Button Tokens */
.btn-apple-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #FF2E7E 0%, #D81B60 100%);
  color: #FFFFFF;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 46, 126, 0.5);
  border-top: 1.5px solid rgba(255, 255, 255, 0.45);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.15s ease;
  box-shadow: 0 4px 0 #910638, 0 8px 20px rgba(255, 46, 126, 0.35);
  user-select: none;
}
.btn-apple-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 5px 0 #910638, 0 12px 26px rgba(255, 46, 126, 0.5);
}
.btn-apple-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #910638, 0 4px 10px rgba(255, 46, 126, 0.3);
}

.btn-apple-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  color: #FFFFFF;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.15s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.6), 0 8px 18px rgba(0, 0, 0, 0.4);
  user-select: none;
}
.btn-apple-glass:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.7), 0 12px 24px rgba(255, 255, 255, 0.08);
}
.btn-apple-glass:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8), 0 3px 8px rgba(0, 0, 0, 0.4);
}

/* Restrained Liquid Glass Surface */
.liquid-glass-surface {
  background: var(--cm-surface-glass);
  backdrop-filter: var(--cm-glass-blur);
  -webkit-backdrop-filter: var(--cm-glass-blur);
  border: 1px solid var(--cm-border-glass);
  box-shadow: var(--cm-glass-shadow);
  border-radius: var(--radius-lg);
}

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

/* Admin Panel Dark Mode Override */
.admin-layout {
  background: var(--cm-dark);
  color: var(--cm-text-light);
  min-height: 100vh;
}
.admin-layout .glass-panel,
.admin-layout .liquid-glass-card {
  background: rgba(27, 33, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ══════════════════════════════════════════════════════════════════════════
   CREMEET 3-TIER DEVICE RESPONSIVE SYSTEM
   1. Mobile: 0px – 767px
   2. Tablet: 768px – 1199px
   3. Desktop & Laptop: 1200px+
   ══════════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE SHELL RULES (Mobile, Tablet, Desktop)
   - Mobile & Tablet (< 1024px): Floating bottom bar + mobile header
   - Desktop (>= 1024px): Dedicated Apple-inspired left sidebar + right rail on Home
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1023px) {
  .app-desktop-sidebar {
    display: none !important;
  }
  .app-desktop-rightrail {
    display: none !important;
  }
  .app-tablet-rail {
    display: none !important;
  }
  .app-mobile-topbar {
    display: flex !important;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
  .app-mobile-bottombar {
    display: flex !important;
    width: 100%;
    max-width: 500px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 1024px) {
  .app-desktop-sidebar {
    display: flex !important;
  }
  .app-desktop-rightrail {
    display: flex !important;
  }
  .app-tablet-rail {
    display: none !important;
  }
  .app-mobile-topbar {
    display: none !important;
  }
  .app-mobile-bottombar {
    display: none !important;
  }
}

/* App-Like Native Touch & Shell Utilities */
.app-touch-tap {
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.12s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.12s ease;
}
.app-touch-tap:active {
  transform: scale(0.96);
  opacity: 0.85;
}

.app-touch-subtle:active {
  transform: scale(0.985);
  opacity: 0.92;
}

.app-bottom-bar-safe {
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}

.app-top-bar-safe {
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
}

/* App Card Surface */
.app-native-card {
  background: rgba(18, 22, 31, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Feed Viewport Center (Desktop App Layout) */
.app-feed-container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

/* Modal Bottom Sheet */
@keyframes appSheetSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.app-sheet-slide-up {
  animation: appSheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Original CreMeet-Branded Loader Animations */
@keyframes cremeetOrbitalSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cremeetLoaderPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.cremeet-orbital-spin {
  animation: cremeetOrbitalSpin 1.2s linear infinite;
  transform-origin: center;
}

.cremeet-orbital-spin-fast {
  animation: cremeetOrbitalSpin 0.9s linear infinite;
  transform-origin: center;
}

.cremeet-loader-pulse {
  animation: cremeetLoaderPulse 1.8s ease-in-out infinite;
}

/* 3D Landing Page Responsive Display Rules */
@media (max-width: 640px) {
  .cm-desktop-only {
    display: none !important;
  }
  .cm-mobile-only {
    display: block !important;
  }
}
@media (min-width: 641px) {
  .cm-desktop-only {
    display: block !important;
  }
  .cm-mobile-only {
    display: none !important;
  }
}

/* Apple Bento Grid Column Spans */
@media (min-width: 900px) {
  .bento-span-8 {
    grid-column: span 8 !important;
  }
  .bento-span-4 {
    grid-column: span 4 !important;
  }
}
@media (max-width: 899px) {
  .bento-span-8,
  .bento-span-4 {
    grid-column: span 12 !important;
  }
}

/* ==========================================================================
   APPLE DESIGN SYSTEM ANIMATION SUITE
   Silky, cinematic, fluid motion curves based on Apple Pro presentation specs
   ========================================================================== */

@keyframes appleFadeUp {
  0% {
    opacity: 0;
    transform: translateY(32px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes appleFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes appleScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.96) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.apple-fade-up {
  animation: appleFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apple-fade-in {
  animation: appleFadeIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apple-scale-in {
  animation: appleScaleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.delay-75 { animation-delay: 75ms; }
.delay-150 { animation-delay: 150ms; }
.delay-225 { animation-delay: 225ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* Apple-style Lightweight Intersection Scroll Reveal (Silky, Low GPU Load) */
.apple-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease-out, transform 0.45s ease-out;
}

.apple-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Interactive Apple Micro-Interactions */
.apple-card-hover {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.08);
}

.apple-btn-hover {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-btn-hover:hover {
  transform: scale(1.02);
}

.apple-btn-hover:active {
  transform: scale(0.98);
}

/* Apple-Style Three-Dot Wave Loader */
@keyframes appleDotWave {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  40% {
    transform: translateY(-8px);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 53, 184, 0.6);
  }
}

/* Apple-Style Page Entrance Transition */
@keyframes applePageEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive App Shell & Apple Floating Dock */
@media (min-width: 768px) {
  .app-mobile-bottombar {
    bottom: 16px !important;
    border-radius: 28px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 53, 184, 0.2) !important;
  }
}

.apple-page-enter {
  animation: applePageEnter 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Apple-Style Modal & Sheet Animations */
@keyframes appleModalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.apple-modal-enter {
  animation: appleModalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.apple-sheet-enter {
  animation: appleSheetSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes appleSlideLeft {
  from {
    opacity: 0;
    transform: translateX(32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes appleSlideRight {
  from {
    opacity: 0;
    transform: translateX(-32px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.apple-slide-left {
  animation: appleSlideLeft 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apple-slide-right {
  animation: appleSlideRight 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Apple-Style Three-Dot Liquid Glass Action Menu */
@keyframes appleMenuPop {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.apple-glass-menu {
  animation: appleMenuPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  transform-origin: top right;
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  background: rgba(14, 12, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 53, 184, 0.15);
}

.apple-glass-menu-item {
  transition: background-color 0.15s cubic-bezier(0.16, 1, 0.3, 1), color 0.15s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-glass-menu-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.apple-glass-menu-item:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .apple-fade-up,
  .apple-fade-in,
  .apple-scale-in,
  .apple-reveal,
  .apple-slide-left,
  .apple-slide-right,
  .apple-page-enter,
  .apple-modal-enter,
  .apple-sheet-enter,
  .apple-glass-menu,
  .cm-loader-dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Chat Header & Layout Responsive Utilities */
@media (max-width: 1023px) {
  .chat-header-desktop-only {
    display: none !important;
  }
  .mobile-only-btn {
    display: flex !important;
  }
  .chat-fast-scroll-slider {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .chat-header-desktop-only {
    display: flex !important;
  }
  .mobile-only-btn {
    display: none !important;
  }
}

.header-user-clickable:hover {
  background: rgba(255, 255, 255, 0.05);
}


