/* ============================================
   OUR LITTLE WORLD — Global Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Primary Palette — Deep Purple + Rose Gold */
  --bg-primary: #0d0d1a;
  --bg-secondary: #141428;
  --bg-card: rgba(30, 30, 60, 0.6);
  --bg-card-hover: rgba(40, 40, 80, 0.8);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);

  --accent-primary: #c9a0dc;
  --accent-secondary: #e8b4b8;
  --accent-warm: #ffd6e0;
  --accent-glow: rgba(201, 160, 220, 0.3);
  --accent-gradient: linear-gradient(135deg, #c9a0dc, #e8b4b8);
  --accent-gradient-warm: linear-gradient(135deg, #e8b4b8, #ffd6e0);

  --text-primary: #f0e6f6;
  --text-secondary: #a89bb5;
  --text-muted: #6b5f7a;
  --text-accent: #d4b0e0;

  --border-subtle: rgba(201, 160, 220, 0.12);
  --border-active: rgba(201, 160, 220, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(201, 160, 220, 0.15);

  /* Layout */
  --sidebar-width: 280px;
  --sidebar-collapsed: 70px;
  --header-height: 0px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Typography */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background ambient glow */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 20%, rgba(201, 160, 220, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(232, 180, 184, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.3;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
}

p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   LAYOUT — Sidebar + Main Content
   ============================================ */

.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-smooth);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 4px;
}

/* Sidebar Header / Logo */
.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
  flex-shrink: 0;
}

.sidebar-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.sidebar-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.nav-section {
  margin-bottom: 24px;
}

.nav-section-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 12px;
  margin-bottom: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 400;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.nav-link:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  transform: translateX(4px);
}

.nav-link.active {
  background: rgba(201, 160, 220, 0.12);
  color: var(--accent-primary);
  font-weight: 500;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--accent-gradient);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  font-size: 1.15rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sidebar-user:hover {
  background: var(--bg-glass-hover);
}

.sidebar-user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.sidebar-user-link:hover {
  color: inherit;
}

.sidebar-user-link:hover .sidebar-user-name {
  color: var(--accent-primary);
}

.sidebar-user-link:hover .sidebar-user-status {
  color: var(--text-secondary);
}


.sidebar-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-primary);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* --- Main Content --- */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
  min-height: 100vh;
  position: relative;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.3rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-active);
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 90;
  backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
  display: block;
}

/* ============================================
   COMPONENTS
   ============================================ */

/* Glass Card */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
}

/* Page Header */
.page-header {
  margin-bottom: 32px;
}

.page-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Coming Soon Placeholder */
.coming-soon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.coming-soon-icon {
  font-size: 4rem;
  margin-bottom: 24px;
  animation: floatBounce 3s ease-in-out infinite;
}

.coming-soon-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.coming-soon-text {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 400px;
}

.coming-soon-sparkle {
  margin-top: 32px;
  display: flex;
  gap: 8px;
}

.coming-soon-sparkle span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  animation: sparkle 1.5s ease-in-out infinite;
}

.coming-soon-sparkle span:nth-child(2) {
  animation-delay: 0.3s;
  background: var(--accent-secondary);
}

.coming-soon-sparkle span:nth-child(3) {
  animation-delay: 0.6s;
  background: var(--accent-warm);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-active);
  color: var(--text-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(201, 160, 220, 0.2);
  }

  50% {
    box-shadow: 0 0 20px rgba(201, 160, 220, 0.4);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
    padding-top: 72px;
  }

  .page-title {
    font-size: 1.4rem;
  }

  .coming-soon-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 16px;
    padding-top: 68px;
  }

  .glass-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-active);
}

.logout-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: auto;
}

.logout-link:hover {
  background: rgba(255, 82, 82, 0.1);
  border-color: rgba(255, 82, 82, 0.4);
  transform: translateX(3px);
}

/* --- Realtime Ping Overlay (Full & Absolute Focus) --- */
html.popup-active {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
  position: fixed !important;
  /* Lock background scroll */
}

html.popup-active body .app-layout,
html.popup-active body .sidebar,
html.popup-active body .mobile-menu-toggle {
  display: none !important;
  /* Total removal of everything else */
}

.global-ping-full-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #0d0d1a !important;
  /* Deep solid color background */
  padding: env(safe-area-inset-top) 20px env(safe-area-inset-bottom) 20px !important;
  opacity: 1 !important;
  /* Force visibility */
}

.global-ping-overlay.fade-out {
  animation: slideUpOut 0.6s forwards cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ping-card {
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-active);
  padding: 25px 40px;
  border-radius: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow);
  min-width: 320px;
  overflow: hidden;
  position: relative;
}

.ping-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent, var(--accent-primary)) 0%, transparent 70%);
  opacity: 0.15;
}

.ping-emoji {
  font-size: 3.5rem;
  animation: heartBeat 1s infinite;
}

.ping-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.ping-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--accent, var(--accent-primary));
  width: 100%;
  animation: progressShrink 4s linear forwards;
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translate(-50%, -100px) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes slideUpOut {
  to {
    opacity: 0;
    transform: translate(-50%, -100px) scale(0.9);
  }
}

@keyframes progressShrink {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* --- Global Game Invite Notification --- */
.invite-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100000;
  animation: invite-slide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 420px;
  width: calc(100% - 40px);
}

@keyframes invite-slide {
  from {
    transform: translateX(120%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.invite-content {
  background: linear-gradient(135deg, rgba(12, 12, 30, 0.97), rgba(20, 15, 40, 0.97));
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.2), 0 0 60px rgba(168, 85, 247, 0.05);
  position: relative;
  overflow: hidden;
}

.invite-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00e5ff, #a855f7, #ff2d78);
}

.invite-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #00ff88;
  animation: inv-pulse 1.5s ease-in-out infinite;
}

@keyframes inv-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.invite-icon {
  font-size: 2rem;
  flex-shrink: 0;
  animation: inv-shake 2s ease-in-out infinite;
}

@keyframes inv-shake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-10deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(10deg);
  }
}

.invite-info {
  flex: 1;
  min-width: 0;
}

.invite-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #a855f7;
  margin-bottom: 4px;
}

.invite-detail {
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 6px;
}

.invite-detail strong {
  color: #00e5ff;
}

.invite-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.invite-mode {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.invite-stake {
  font-size: 0.75rem;
  color: #ffd700;
  font-weight: 500;
}

.invite-actions {
  display: flex;
  gap: 8px;
  margin-left: 10px;
}

.invite-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.8rem;
}

.invite-btn.accept {
  background: #a855f7;
  color: #fff;
}

.invite-btn.accept:hover {
  background: #9333ea;
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.invite-btn.dismiss {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  padding: 8px 10px;
}

.invite-btn.dismiss:hover {
  background: rgba(255, 68, 68, 0.15);
  color: #ff4444;
}

@media (max-width: 480px) {
  .invite-toast {
    top: auto;
    bottom: 20px;
    right: 10px;
    left: 10px;
    width: auto;
  }

  .invite-actions {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }
}

/* ============================================
   GLOBAL MINI MUSIC PLAYER (Sidebar)
   ============================================ */

.sidebar-mini-player {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(139, 92, 246, 0.05);
  position: relative;
}

.mini-player-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-player-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.mini-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  flex-shrink: 0;
}

.mini-eq span {
  width: 2.5px;
  background: #8b5cf6;
  border-radius: 2px;
  animation: miniEqBounce 0.7s ease-in-out infinite alternate;
}

.mini-eq span:nth-child(1) {
  height: 4px;
  animation-delay: 0s;
}

.mini-eq span:nth-child(2) {
  height: 10px;
  animation-delay: 0.15s;
}

.mini-eq span:nth-child(3) {
  height: 6px;
  animation-delay: 0.1s;
}

.mini-eq.paused span {
  animation-play-state: paused;
  height: 3px !important;
}

@keyframes miniEqBounce {
  0% {
    height: 3px;
  }

  100% {
    height: 14px;
  }
}

.mini-text {
  min-width: 0;
  overflow: hidden;
}

.mini-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mini-channel {
  font-size: 0.62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.mini-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.mini-ctrl {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s;
  color: var(--text-secondary);
}

.mini-ctrl:hover {
  background: rgba(139, 92, 246, 0.2);
  color: #8b5cf6;
}

.mini-play {
  width: 30px;
  height: 30px;
  background: rgba(139, 92, 246, 0.15) !important;
  font-size: 0.8rem;
}

.mini-play:hover {
  background: rgba(139, 92, 246, 0.3) !important;
}

.mini-expand {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 6px;
  font-size: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: all 0.3s;
}

.mini-expand:hover {
  background: rgba(139, 92, 246, 0.25);
  transform: scale(1.1);
}

/* --- Realtime Call Ping --- */
.global-ping-overlay.is-call {
  pointer-events: all;
  top: 60px;
}

.global-ping-overlay.is-call .ping-card {
  border-left: none !important;
  border-top: 4px solid var(--accent) !important;
  padding: 30px 40px;
  min-width: 320px;
}

.ping-actions {
  margin-top: 20px;
  width: 100%;
}

.ping-btn.join-meet {
  display: block;
  width: 100%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.ping-btn.join-meet:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ============================================
   RESPONSIVE LAYOUT (MOBILE)
   ============================================ */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 250px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
    width: 100%;
    overflow-x: hidden;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .page-header {
    margin-top: 40px;
    text-align: center;
  }

  .header-content {
    flex-direction: column;
    align-items: flex-start;
  }
}