/*
 * DigiMarket Pro - Premium Blue Styling
 * Responsive & Modern UI for Android, iOS, and Desktop
 */

:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;
  --primary-950: #172554;
  --surface: #ffffff;
  --background: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  -webkit-tap-highlight-color: transparent;
}

/* Mobile Screen Floating Dropdowns (Android & iOS) */
@media (max-width: 640px) {
  #nav-store-dropdown,
  #nav-notif-dropdown,
  #user-dropdown {
    position: fixed !important;
    left: 12px !important;
    right: 12px !important;
    top: 64px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 80px) !important;
    overflow-y: auto !important;
    transform: none !important;
    z-index: 9999 !important;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar utility for mobile horizontal scrolling */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-nav {
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Glowing Online Badge */
.status-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #ffffff;
}

.status-online {
  background-color: #10b981;
}

.status-offline {
  background-color: #94a3b8;
}

.pulse-ring {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulse-animation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.6);
    opacity: 0;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Card Hover Effects */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -10px rgba(37, 99, 235, 0.12), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  border-color: #93c5fd;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-blue-bg {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
}

.gradient-badge {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* Chat Message Bubbles */
.chat-bubble-sender {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-radius: 18px 18px 4px 18px;
}

.chat-bubble-receiver {
  background: #f1f5f9;
  color: #0f172a;
  border-radius: 18px 18px 18px 4px;
}

/* Mobile Bottom Navigation (iOS & Android friendly) */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.05);
    z-index: 50;
    padding-bottom: env(safe-area-inset-bottom);
  }
  
  body {
    padding-bottom: 74px; /* Space for mobile bottom bar */
  }

  /* Mobile Chat List View (Daftar Kontak Chat): show mobile bottom nav so user can open other menus */
  body.chat-list-active {
    padding-bottom: 74px !important;
  }

  body.chat-list-active .mobile-bottom-nav {
    display: flex !important;
  }

  body.chat-list-active footer#main-footer {
    display: none !important;
  }

  /* Lock viewport on mobile active chat ROOM so room chat doesn't scroll/shift and input sits on bottom */
  body.chat-room-active {
    overflow: hidden !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }

  body.chat-room-active footer#main-footer,
  body.chat-room-active .mobile-bottom-nav {
    display: none !important;
  }

  body.chat-room-active main {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  body.chat-room-active .chat-page-wrapper {
    height: 100% !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }
}

/* Desktop Chat Responsiveness (100% viewport fit, no page scroll, pinned bottom input) */
@media (min-width: 769px) {
  body.chat-active-page,
  body.chat-room-active,
  body.chat-list-active {
    overflow: hidden !important;
    height: 100vh !important;
  }

  body.chat-active-page footer,
  body.chat-room-active footer,
  body.chat-list-active footer,
  body.chat-active-page .mobile-bottom-nav,
  body.chat-room-active .mobile-bottom-nav,
  body.chat-list-active .mobile-bottom-nav {
    display: none !important;
  }

  body.chat-active-page main,
  body.chat-room-active main,
  body.chat-list-active main {
    flex: 1 1 0% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  body.chat-active-page .chat-page-wrapper,
  body.chat-room-active .chat-page-wrapper,
  body.chat-list-active .chat-page-wrapper {
    height: calc(100vh - 85px) !important;
    max-height: calc(100vh - 85px) !important;
    padding-top: 0.5rem !important;
    padding-bottom: 0.75rem !important;
    flex: 1 1 0% !important;
    min-height: 0 !important;
  }
}

/* Chat Product Inquiry Bubble */
.chat-product-bubble {
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.chat-product-bubble:hover {
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.2);
}

/* Pulse animation for active heart icon */
@keyframes heart-pulse {
  0% { transform: scale(1); }
  25% { transform: scale(1.3); }
  50% { transform: scale(1.1); }
  75% { transform: scale(1.3); }
  100% { transform: scale(1); }
}
.animate-heart {
  animation: heart-pulse 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ========================================================================= */
/* MODERN 3D TACTILE DESIGN SYSTEM (SKEUOMORPHIC 3.0 & 3D DEPTH)            */
/* ========================================================================= */

/* 1. 3D Elevated Cards */
.card-3d {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 12px -2px rgba(15, 23, 42, 0.05),
    0 10px 24px -4px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-3d:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 4px 8px rgba(15, 23, 42, 0.04),
    0 12px 24px -4px rgba(15, 23, 42, 0.08),
    0 20px 32px -8px rgba(37, 99, 235, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

/* 2. 3D Dark Hero Card */
.card-3d-dark {
  background: linear-gradient(135deg, #090e17 0%, #0f172a 50%, #1e1b4b 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 
    0 10px 30px -5px rgba(15, 23, 42, 0.6),
    0 20px 40px -10px rgba(30, 27, 75, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 2px rgba(0, 0, 0, 0.5);
}

/* 3. 3D Emerald / Green Card (Saldo Card) */
.card-3d-emerald {
  background: linear-gradient(145deg, #059669 0%, #047857 50%, #064e3b 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 24px -4px rgba(5, 150, 105, 0.4),
    0 16px 36px -8px rgba(4, 120, 87, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -2px 4px rgba(0, 0, 0, 0.3);
}

/* 4. Real 3D Tactile Push Buttons */
.btn-3d {
  position: relative;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.3);
}

.btn-3d:active {
  transform: translateY(1.5px);
  box-shadow: 
    0 0 1px rgba(0, 0, 0, 0.1),
    inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.btn-3d-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 60%, #1d4ed8 100%);
  border: 1px solid #1e40af;
  color: #ffffff;
  box-shadow: 
    0 2px 0 #1e3a8a,
    0 4px 10px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-3d-primary:hover {
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 60%, #2563eb 100%);
}
.btn-3d-primary:active {
  transform: translateY(2px);
  box-shadow: 
    0 0 0 #1e3a8a,
    0 2px 4px rgba(37, 99, 235, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-3d-emerald {
  background: linear-gradient(180deg, #10b981 0%, #059669 60%, #047857 100%);
  border: 1px solid #065f46;
  color: #ffffff;
  box-shadow: 
    0 2px 0 #064e3b,
    0 4px 10px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-3d-emerald:hover {
  background: linear-gradient(180deg, #34d399 0%, #10b981 60%, #059669 100%);
}
.btn-3d-emerald:active {
  transform: translateY(2px);
  box-shadow: 
    0 0 0 #064e3b,
    0 2px 4px rgba(16, 185, 129, 0.2),
    inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.btn-3d-glass {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 2px 0 rgba(0, 0, 0, 0.25),
    0 4px 8px rgba(0, 0, 0, 0.15),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.35);
  color: #ffffff;
}
.btn-3d-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-3d-glass:active {
  transform: translateY(1.5px);
  box-shadow: 
    0 0 0 rgba(0, 0, 0, 0.25),
    inset 0 1px 2px rgba(0, 0, 0, 0.4);
}

.btn-3d-white {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  box-shadow: 
    0 2px 0 #cbd5e1,
    0 4px 8px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 #ffffff;
}
.btn-3d-white:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.btn-3d-white:active {
  transform: translateY(1.5px);
  box-shadow: 
    0 0 0 #cbd5e1,
    inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 5. 3D Floating Icon Bubble */
.icon-3d {
  position: relative;
  box-shadow: 
    0 3px 6px -1px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.04),
    inset 0 1px 1px rgba(255, 255, 255, 0.8),
    inset 0 -1px 1px rgba(0, 0, 0, 0.05);
}

/* 6. 3D Recessed Track / Segmented Pill Nav */
.pill-track-3d {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  box-shadow: 
    inset 0 1px 3px rgba(15, 23, 42, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.8);
}

.pill-item-3d-active {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 
    0 2px 4px rgba(15, 23, 42, 0.06),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 #ffffff;
}

/* 7. 3D Micro Badge */
.badge-3d {
  box-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.5);
}

\n
/* ========================================================================= */
/* ULTRA-MODERN 3D CARD & COMPACT STYLING                                    */
/* ========================================================================= */

.product-card, .card-3d {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 3.5px solid #cbd5e1;
  border-radius: 1.25rem;
  box-shadow: 
    0 4px 8px -1px rgba(15, 23, 42, 0.05),
    0 2px 4px -2px rgba(15, 23, 42, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
  transform: translateZ(0);
}

.product-card:hover, .card-3d:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: #93c5fd;
  border-bottom-color: #2563eb;
  box-shadow: 
    0 18px 30px -6px rgba(37, 99, 235, 0.18),
    0 8px 12px -4px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.product-card-sponsored, .card-3d-sponsored {
  background: #ffffff;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  border-bottom: 3.5px solid #f59e0b;
  border-radius: 1.25rem;
  box-shadow: 
    0 4px 10px -2px rgba(245, 158, 11, 0.12),
    0 2px 4px -2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease;
  position: relative;
  transform: translateZ(0);
}

.product-card-sponsored:hover, .card-3d-sponsored:hover {
  transform: translateY(-5px) scale(1.008);
  border-color: #f59e0b;
  border-bottom-color: #d97706;
  box-shadow: 
    0 18px 32px -6px rgba(245, 158, 11, 0.28),
    0 8px 14px -4px rgba(217, 119, 6, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.btn-3d-primary {
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 100%);
  border-bottom: 2.5px solid #1e3a8a;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-3d-primary:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(37, 99, 235, 0.38);
}
.btn-3d-primary:active {
  transform: translateY(2px);
  border-bottom-width: 1px;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.2);
}

.btn-3d-secondary {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-bottom: 2.5px solid #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04), inset 0 1px 0 #ffffff;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-3d-secondary:hover {
  background: #f8fafc;
  border-color: #bfdbfe;
  border-bottom-color: #93c5fd;
  color: #2563eb;
}
.btn-3d-secondary:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.badge-3d-gold {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  border: 1px solid rgba(254, 240, 138, 0.6);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #0f172a;
}


/* 3D Icons & Navbar Enhancements */
.icon-3d {
  filter: drop-shadow(0 1.5px 2px rgba(15, 23, 42, 0.15));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.icon-3d:hover, group:hover .icon-3d {
  transform: translateY(-1px) scale(1.05);
  filter: drop-shadow(0 3px 5px rgba(37, 99, 235, 0.25));
}

.nav-btn-3d {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-bottom: 2.5px solid #cbd5e1;
  border-radius: 0.75rem;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 1);
  transition: all 0.18s ease;
}
.nav-btn-3d:hover {
  border-color: #93c5fd;
  border-bottom-color: #2563eb;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.16), inset 0 1px 0 rgba(255, 255, 255, 1);
}
.nav-btn-3d:active {
  transform: translateY(1.5px);
  border-bottom-width: 1px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.06);
}

.search-3d {
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  border: 1.5px solid #e2e8f0;
}
.search-3d:focus-within {
  border-color: #3b82f6;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04), 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* ========================================================================= */
/* COMPREHENSIVE 3D SUITE FOR SELLER & STORE PAGES                           */
/* ========================================================================= */

.card-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1.5px solid rgba(226, 232, 240, 0.95) !important;
  border-bottom: 4px solid #cbd5e1 !important;
  border-radius: 1.25rem !important;
  box-shadow: 
    0 6px 12px -2px rgba(15, 23, 42, 0.05),
    0 2px 4px -2px rgba(15, 23, 42, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s ease !important;
  position: relative;
  transform: translateZ(0);
}

.card-3d:hover {
  transform: translateY(-4px) scale(1.005) !important;
  border-color: #93c5fd !important;
  border-bottom-color: #2563eb !important;
  box-shadow: 
    0 16px 28px -6px rgba(37, 99, 235, 0.16),
    0 6px 10px -4px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.card-3d-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 45%, #1e3a8a 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.18) !important;
  border-bottom: 5px solid #020617 !important;
  border-radius: 1.25rem !important;
  box-shadow: 
    0 12px 28px -6px rgba(15, 23, 42, 0.5),
    0 4px 8px -2px rgba(15, 23, 42, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
  position: relative;
  transform: translateZ(0);
}

.card-3d-emerald {
  background: linear-gradient(135deg, #065f46 0%, #047857 50%, #059669 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.22) !important;
  border-bottom: 5px solid #064e3b !important;
  border-radius: 1.25rem !important;
  box-shadow: 
    0 12px 26px -6px rgba(4, 120, 87, 0.45),
    0 4px 8px -2px rgba(4, 120, 87, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  position: relative;
  transform: translateZ(0);
}

.btn-3d-glass {
  background: rgba(255, 255, 255, 0.14) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  border-bottom: 3.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-3d-glass:hover {
  background: rgba(255, 255, 255, 0.24) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  border-bottom-color: rgba(255, 255, 255, 0.65) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
.btn-3d-glass:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
}

.btn-3d-emerald {
  background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #34d399 !important;
  border-bottom: 3.5px solid #065f46 !important;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-3d-emerald:hover {
  background: linear-gradient(180deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(5, 150, 105, 0.45) !important;
  color: #ffffff !important;
}
.btn-3d-emerald:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.25) !important;
}

.pill-track-3d {
  background: #f1f5f9 !important;
  border: 1.5px solid #e2e8f0 !important;
  border-bottom: 2.5px solid #cbd5e1 !important;
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.06) !important;
}

.pill-item-3d-active {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: 3px solid #2563eb !important;
  box-shadow: 0 3px 6px rgba(37, 99, 235, 0.15), inset 0 1px 0 #ffffff !important;
}

.badge-3d {
  border-bottom-width: 2px !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.stat-icon-3d {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  border-bottom: 2.5px solid rgba(0, 0, 0, 0.15) !important;
  transform: translateZ(0) !important;
}

.btn-3d-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
  border: 1px solid #f87171 !important;
  border-bottom: 3.5px solid #991b1b !important;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-3d-danger:hover {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.45) !important;
  color: #ffffff !important;
}
.btn-3d-danger:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25) !important;
}

.btn-3d-amber {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #fbbf24 !important;
  border-bottom: 3.5px solid #92400e !important;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  transition: all 0.16s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.btn-3d-amber:hover {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 16px rgba(217, 119, 6, 0.45) !important;
  color: #ffffff !important;
}
.btn-3d-amber:active {
  transform: translateY(2px) !important;
  border-bottom-width: 1px !important;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.25) !important;
}



/* --- 3D CHAT ENHANCEMENTS --- */
.chat-bubble-sender-3d {
  background: linear-gradient(145deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
  color: #ffffff !important;
  border-radius: 22px 22px 4px 22px !important;
  border: 1px solid rgba(191, 219, 254, 0.45) !important;
  border-bottom: 3.5px solid #1e3a8a !important;
  border-right: 2px solid #1e40af !important;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.38), 0 3px 6px -2px rgba(37, 99, 235, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.45) !important;
  position: relative;
}
.chat-bubble-receiver-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  color: #0f172a !important;
  border-radius: 22px 22px 22px 4px !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: 3.5px solid #cbd5e1 !important;
  border-left: 1.5px solid #f1f5f9 !important;
  box-shadow: 0 6px 18px -3px rgba(15, 23, 42, 0.07), inset 0 1px 0 #ffffff !important;
  position: relative;
}
.chat-deck-3d {
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 5px solid #cbd5e1;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 10px 20px -6px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.chat-file-card-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid #e2e8f0 !important;
  border-bottom: 3px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
  border-radius: 18px !important;
}
.chat-img-frame-3d {
  border-radius: 18px !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  border-bottom: 3.5px solid rgba(0, 0, 0, 0.25) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden;
  position: relative;
  background: #0f172a;
}
.badge-3d-gold {
  background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%) !important;
  color: #92400e !important;
  border: 1px solid #fcd34d !important;
  border-bottom: 2px solid #f59e0b !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.badge-3d-blue {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e40af !important;
  border: 1px solid #93c5fd !important;
  border-bottom: 2px solid #3b82f6 !important;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}
.input-sunken-3d {
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  border-top: 2px solid #94a3b8 !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08) !important;
}
.input-sunken-3d:focus {
  background-color: #ffffff !important;
  border-color: #3b82f6 !important;
  box-shadow: inset 0 2px 4px rgba(37, 99, 235, 0.06), 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
.chat-dock-3d {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-top: 1px solid #e2e8f0 !important;
  box-shadow: 0 -8px 24px -4px rgba(15, 23, 42, 0.06) !important;
}
.contact-item-active-3d {
  background: linear-gradient(90deg, #eff6ff 0%, #f8fafc 100%) !important;
  border-left: 4px solid #2563eb !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 3px 8px -2px rgba(37, 99, 235, 0.08) !important;
}
