/* =========================================================
   PREMIUM NOTIFICATION COMPONENTS — notifications-premium.css
   High-end Dark theme design system, glowing accents, 
   frosted glassmorphism, responsive reflow, and micro-animations.
========================================================= */

:root {
  --bg-primary: #070913;
  --bg-secondary: #0c0f1d;
  --card-bg: rgba(18, 22, 38, 0.6);
  --card-border: rgba(255, 255, 255, 0.06);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  
  /* Status Colors */
  --color-success: #10b981;
  --color-success-glow: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-glow: rgba(245, 158, 11, 0.15);
  --color-error: #ef4444;
  --color-error-glow: rgba(239, 68, 68, 0.15);
  --color-purple: #7b61ff;
  --color-purple-glow: rgba(123, 97, 255, 0.15);

  --font-heading: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- LAYOUT ---- */
.main-content {
  margin-left: 250px;
  min-height: 100vh;
  width: calc(100% - 250px);
  background: radial-gradient(circle at 80% 20%, #15112c 0%, var(--bg-primary) 50%);
}

/* ---- TOPBAR ---- */
.topbar {
  padding: 20px 40px;
  background: rgba(7, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.search-box {
  width: 420px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: rgba(123, 97, 255, 0.5);
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.15);
  background: rgba(255, 255, 255, 0.07);
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  color: var(--text-main);
}

.search-box input::placeholder {
  color: #526173;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.add-btn, .collection-btn, .theme-btn {
  border: none;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
}


.toast {
  background: #111827;
  color: white;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 10px;
  opacity: 0;
  transform: translateX(30px);
  transition: all .3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}
.add-btn {
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.add-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transform: translateY(-1px);
}

.collection-btn {
  background: linear-gradient(135deg, #7b61ff, #ff7a3d);
  color: white;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.25);
}

.collection-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(123, 97, 255, 0.4);
}

.theme-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* ---- HERO ---- */
.hero {
  margin: 40px;
  padding: 50px 60px;
  border-radius: 32px;
  background: linear-gradient(135deg, #100b26 0%, #0d1222 50%, #20133c 100%);
  border: 1px solid rgba(255, 255, 255, 0.04);
  color: white;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.12), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-left {
  min-width: 0;
}

.breadcrumb {
  color: #ff7a3d;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 14px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
  font-family: var(--font-heading);
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.7;
  max-width: 700px;
}

.hero-tags {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-tags span {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #cbd5e1;
}

.hero-tags span i {
  color: #7b61ff;
}

/* Hero Preview Animation */
.hero-preview {
  flex-shrink: 0;
}

.hero-notification-demo {
  padding: 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.demo-bubble {
  padding: 12px 24px;
  border-radius: 30px;
  background: rgba(123, 97, 255, 0.1);
  border: 1px solid rgba(123, 97, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 0 15px rgba(123, 97, 255, 0.1);
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: demoBlink 1.5s infinite ease-in-out;
}

@keyframes demoBlink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ---- FILTERS ---- */
.filters {
  display: flex;
  gap: 12px;
  padding: 0 40px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filters button {
  border: 1px solid var(--card-border);
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.filters button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.12);
}

.filters .active {
  background: #7b61ff;
  color: white;
  border-color: #7b61ff;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.2);
}

/* ---- GRID ---- */
.notification-grid {
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

/* ---- SHOWCASE CARD ---- */
.component-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.component-card:hover {
  transform: translateY(-5px);
  border-color: rgba(123, 97, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 25px rgba(123, 97, 255, 0.05);
}

.card-preview {
  height: 280px;
  background: #090b15;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  position: relative;
}

.card-preview.dark-preview {
  background: linear-gradient(135deg, #070912 0%, #101428 100%);
}

.card-interactive-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.card-interactive-area.full-width {
  width: 100%;
}

.card-content {
  padding: 24px;
  border-top: 1px solid var(--card-border);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.card-top h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.card-top span {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(123, 97, 255, 0.12);
  color: #a394ff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-content p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 14px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.card-actions button {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-actions button:hover {
  background: rgba(123, 97, 255, 0.15);
  color: #fff;
  border-color: rgba(123, 97, 255, 0.35);
}

.trigger-live-btn {
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  transition: var(--transition-smooth);
}

.trigger-live-btn.orange {
  background: linear-gradient(135deg, #f97316, #d97706);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.trigger-live-btn.green {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.trigger-live-btn.purple {
  background: linear-gradient(135deg, #7b61ff, #583fe6);
  box-shadow: 0 4px 12px rgba(123, 97, 255, 0.2);
}

.trigger-live-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.1);
}

/* Code block styles */
.code-block {
  margin: 0;
  padding: 18px 24px;
  background: #05060b;
  border-top: 1px solid var(--card-border);
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: #cbd5e1;
}

.code-block code {
  font-family: 'Fira Code', 'Courier New', monospace;
  white-space: pre;
}


/* =========================================================
   1. TOAST NOTIFICATION STYLING
========================================================= */
.toast-preview-wrapper {
  width: 100%;
  max-width: 320px;
}

.premium-toast {
  position: relative;
  background: #101321;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  width: 100%;
  transition: var(--transition-smooth);
}

/* Variant Accents */
.premium-toast.success { border-left: 4px solid var(--color-success); }
.premium-toast.warning { border-left: 4px solid var(--color-warning); }
.premium-toast.error   { border-left: 4px solid var(--color-error); }

.toast-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-toast.success .toast-icon { background: rgba(16, 185, 129, 0.1); color: var(--color-success); }
.premium-toast.warning .toast-icon { background: rgba(245, 158, 11, 0.1); color: var(--color-warning); }
.premium-toast.error   .toast-icon { background: rgba(239, 68, 68, 0.1); color: var(--color-error); }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.toast-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.toast-close-btn {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition-smooth);
  font-size: 14px;
}

.toast-close-btn:hover {
  color: #fff;
}

.toast-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  animation: drainProgress 4s linear forwards;
}

.premium-toast.success .toast-progress-bar { background: var(--color-success); }
.premium-toast.warning .toast-progress-bar { background: var(--color-warning); }
.premium-toast.error   .toast-progress-bar { background: var(--color-error); }

@keyframes drainProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Live Toast Floating */
.live-toast-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
  pointer-events: none;
}

.live-toast-container .premium-toast {
  pointer-events: auto;
  animation: toastSlideIn 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes toastSlideIn {
  from { transform: translateX(120%) scale(0.9); opacity: 0; }
  to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastSlideOut {
  from { transform: translateX(0) scale(1); opacity: 1; }
  to { transform: translateX(120%) scale(0.9); opacity: 0; }
}


/* =========================================================
   2. SUCCESS ALERT NOTIFICATION STYLING
========================================================= */
.premium-alert-success {
  position: relative;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.16);
  border-radius: 20px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.03);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.alert-glow {
  position: absolute;
  top: 50%;
  left: 10%;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 60%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.alert-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.alert-icon-wrapper i {
  font-size: 20px;
  color: var(--color-success);
  animation: tickBounce 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.alert-text {
  flex-grow: 1;
}

.alert-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.alert-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.alert-close {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 14px;
}

.alert-close:hover {
  color: #fff;
  transform: rotate(90deg);
}

@keyframes tickBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}


/* =========================================================
   3. MESSAGE NOTIFICATION CARD STYLING
========================================================= */
.premium-msg-card {
  background: #111424;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.msg-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.msg-avatar-wrapper {
  position: relative;
  width: 46px;
  height: 46px;
}

.msg-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.05);
}

.presence-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2.5px solid #111424;
}

.presence-dot.online {
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: presencePulse 2s infinite ease-in-out;
}

.presence-dot.offline {
  background: #64748b;
  box-shadow: none;
}

.msg-user-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.msg-username {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.msg-time {
  font-size: 11px;
  color: var(--text-muted);
}

.msg-badge {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(123, 97, 255, 0.12);
  color: #a394ff;
  font-size: 10px;
  font-weight: 700;
}

.msg-body {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.msg-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
}

.msg-actions {
  display: flex;
  gap: 10px;
}

.msg-btn {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =========================================================
   ADDITIONAL NOTIFICATION VARIANTS (5)
========================================================= */

/* 11. Sticky Persistent Banner */
.sticky-banner {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(123,97,255,0.12), rgba(255,122,61,0.06));
  border: 1px solid rgba(123,97,255,0.12);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.sticky-banner .sb-left{ display:flex; gap:12px; align-items:center; }
.sticky-banner .sb-cta{ background: linear-gradient(135deg,var(--color-purple),var(--color-warning)); color:#fff; border:none; padding:8px 14px; border-radius:10px; cursor:pointer; }

/* 12. Actionable Inline Snackbar */
.inline-snackbar{ display:flex; gap:12px; align-items:center; padding:10px 14px; border-radius:999px; background: rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.05); }
.inline-snackbar .snack-msg{ color:var(--text-main); font-weight:600; }
.inline-snackbar .snack-action{ background:none; border:1px solid rgba(255,255,255,0.06); color:#fff; padding:6px 10px; border-radius:8px; cursor:pointer; }

/* 13. Centered Critical Modal Alert (preview-only) */
.modal-alert-preview{ width:100%; display:flex; align-items:center; justify-content:center; }
.critical-modal{ width:100%; max-width:420px; padding:20px; border-radius:16px; background: linear-gradient(180deg,#1a0f18,#0f0910); border:1px solid rgba(239,68,68,0.12); box-shadow:0 30px 60px rgba(239,68,68,0.06); display:flex; flex-direction:column; gap:12px; }
.critical-modal h4{ color:#fff; margin:0; }
.critical-modal .modal-actions{ display:flex; gap:8px; }
.critical-modal .modal-btn{ padding:10px 12px; border-radius:10px; border:none; cursor:pointer; font-weight:700; }
.critical-modal .modal-btn.ack{ background:#ef4444; color:#fff; }
.critical-modal .modal-btn.dismiss{ background:transparent; border:1px solid rgba(255,255,255,0.06); color:var(--text-muted); }

/* 14. Progress Toast List (multiple small items) */
.progress-toast-list{ display:flex; flex-direction:column; gap:10px; width:100%; max-width:360px; }
.progress-toast-item{ background: rgba(255,255,255,0.02); border-radius:12px; padding:10px; border:1px solid rgba(255,255,255,0.04); display:flex; gap:12px; align-items:center; }
.progress-thumb{ width:42px; height:42px; border-radius:8px; background:rgba(255,255,255,0.03); display:flex; align-items:center; justify-content:center; }
.progress-line{ flex:1; height:8px; background:rgba(255,255,255,0.03); border-radius:8px; overflow:hidden; }
.progress-fill{ height:100%; background:linear-gradient(90deg,var(--color-purple),var(--color-warning)); width:0%; transition:width 0.6s ease; }

/* 15. Avatar Notification Cluster */
.avatar-cluster{ display:flex; align-items:center; gap:8px; }
.avatar-stack{ display:flex; margin-right:6px; }
.avatar-stack img{ width:36px; height:36px; border-radius:50%; border:2px solid rgba(0,0,0,0.3); margin-left:-12px; box-shadow:0 6px 18px rgba(0,0,0,0.45); }
.avatar-count{ padding:6px 10px; border-radius:999px; background:rgba(255,255,255,0.04); border:1px solid rgba(255,255,255,0.06); color:var(--text-main); font-weight:700; }

@media(max-width:720px){
  .sticky-banner{ flex-direction:column; align-items:flex-start; }
  .progress-toast-list{ max-width:100%; }
}

.msg-btn:hover {
  background: rgba(123, 97, 255, 0.12);
  border-color: rgba(123, 97, 255, 0.3);
  color: #fff;
}

.msg-btn.dismiss-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #fff;
}

.msg-reply-box {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  border: 1px solid var(--card-border);
  animation: replyBoxReveal 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

.msg-reply-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: #fff;
}

.msg-send-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #7b61ff;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.msg-send-btn:hover {
  background: #583fe6;
}

@keyframes presencePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

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


/* =========================================================
   4. FLOATING NOTIFICATION POPUP STYLING
========================================================= */
.floating-popup-showcase {
  width: 100%;
  display: flex;
  justify-content: center;
}

.premium-floating-popup {
  background: rgba(13, 17, 30, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 40px;
  padding: 12px 20px 12px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255,255,255,0.05);
  max-width: 330px;
  width: 100%;
  transition: var(--transition-smooth);
}

.popup-brand-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(123,97,255,0.2), rgba(255,122,61,0.2));
  border: 1px solid rgba(123, 97, 255, 0.25);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.popup-brand-badge i {
  color: #ff7a3d;
}

.popup-info {
  flex-grow: 1;
  min-width: 0;
}

.popup-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-desc {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.popup-btn.view {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.popup-btn.view:hover {
  background: #7b61ff;
  border-color: #7b61ff;
}

.popup-close-btn {
  background: none;
  border: none;
  color: #475569;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 12px;
}

.popup-close-btn:hover {
  color: #fff;
}


/* =========================================================
   5. GLASSMORPHISM NOTIFICATION UI STYLING
========================================================= */
.premium-glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 24px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.glass-bg-glow {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 110px;
  height: 110px;
  background: radial-gradient(circle, rgba(123, 97, 255, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.glass-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.glass-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(255, 122, 61, 0.15));
  border: 1px solid rgba(123, 97, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-icon-box i {
  font-size: 18px;
  color: #a394ff;
}

.glass-title-area {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.glass-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.glass-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

.glass-content {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 18px;
}

.glass-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.glass-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-action-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.glass-action-btn:hover {
  background: linear-gradient(135deg, #7b61ff, #ff7a3d);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.25);
}


/* ---- RESPONSIVE MEDIA QUERIES ---- */
@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 40px;
  }
  .hero-preview {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-content {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px;
  }
  .search-box {
    width: 100%;
  }
  .hero {
    margin: 20px;
    padding: 30px 24px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .filters {
    padding: 0 20px;
  }
  .notification-grid {
    padding: 0 20px 40px;
  }
}


@media (max-width: 992px) {

  .sidebar {
    position: fixed;
    left: -320px;
    top: 0;
    height: 100vh;
    transition: .3s;
    z-index: 1000;
  }

  .sidebar.active {
    left: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 999;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }
}
/* ============================================================
   PREMIUM NOTIFICATIONS V2 CUSTOM COMPONENTS STYLE SYSTEM
   ============================================================ */

/* 1. STACKED NOTIFICATION CENTER */
.premium-stacked-center {
  background: rgba(20, 24, 46, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 22px;
  width: 100%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stacked-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.stacked-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.stacked-badge {
  font-size: 11px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7a3d 0%, #eb6835 100%);
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 10px rgba(255, 122, 61, 0.25);
  transition: all 0.3s ease;
}

.stacked-cards-container {
  position: relative;
  height: 130px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 12px;
}

.premium-stacked-center.expanded .stacked-cards-container {
  height: auto;
}

.stacked-card-item {
  position: absolute;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stacking Positions (Collapsed) */
.card-top-item {
  top: 0;
  transform: scale(1);
  z-index: 3;
  opacity: 1;
}

.card-middle-item {
  top: 14px;
  transform: scale(0.95);
  z-index: 2;
  opacity: 0.85;
}

.card-bottom-item {
  top: 28px;
  transform: scale(0.9);
  z-index: 1;
  opacity: 0.65;
}

/* Expanded Positions */
.premium-stacked-center.expanded .stacked-card-item {
  position: relative;
  top: auto;
  transform: scale(1) !important;
  opacity: 1 !important;
  margin-bottom: 12px;
  z-index: auto;
}

.premium-stacked-center.expanded .stacked-card-item:last-child {
  margin-bottom: 0;
}

.item-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.item-avatar.orange {
  background: linear-gradient(135deg, #ff7a3d, #eb6835);
  box-shadow: 0 4px 10px rgba(255, 122, 61, 0.2);
}

.item-avatar.purple {
  background: linear-gradient(135deg, #7b61ff, #6244ec);
  box-shadow: 0 4px 10px rgba(123, 97, 255, 0.2);
}

.item-avatar.green {
  background: linear-gradient(135deg, #00f2fe, #4facfe);
  box-shadow: 0 4px 10px rgba(79, 172, 254, 0.2);
}

.item-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.item-body strong {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.item-body span {
  font-size: 11px;
  color: #8a9bc0;
  line-height: 1.4;
}

.stacked-dismiss {
  background: none;
  border: none;
  color: #6a7a94;
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.stacked-dismiss:hover {
  color: #ff6b6b;
}

.stacked-footer {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.stacked-action-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.stacked-action-btn.primary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.stacked-action-btn.primary:hover {
  background: #fff;
  color: #141428;
  border-color: #fff;
}

.stacked-action-btn.secondary {
  background: transparent;
  border: 1px solid transparent;
  color: #6a7a94;
}

.stacked-action-btn.secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}


/* 2. LIVE ACTIVITY FEED CARD */
.premium-activity-feed {
  background: rgba(20, 24, 46, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 22px;
  width: 100%;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.feed-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-icon {
  color: #eb6835;
  animation: pulseRotate 2.5s infinite linear;
}

@keyframes pulseRotate {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); opacity: 0.8; }
  100% { transform: scale(1); }
}

.feed-status {
  font-size: 10px;
  font-weight: 800;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feed-timeline {
  position: relative;
  padding-left: 20px;
}

.timeline-line {
  position: absolute;
  left: 3px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(16, 185, 129, 0.4), rgba(235, 104, 53, 0.4), rgba(123, 97, 255, 0.4));
}

.feed-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feed-item:last-child {
  padding-bottom: 0;
}

.feed-item:hover {
  transform: translateX(4px);
}

.feed-marker {
  position: absolute;
  left: -20px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  z-index: 2;
}

.feed-marker.pulse-green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
}

.feed-marker.pulse-orange {
  background: #ff7a3d;
  box-shadow: 0 0 10px #ff7a3d;
}

.feed-marker.pulse-purple {
  background: #7b61ff;
  box-shadow: 0 0 10px #7b61ff;
}

.feed-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback {
  background: rgba(255, 255, 255, 0.05);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a9bc0;
  font-size: 11px;
}

.feed-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.feed-user {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.feed-text {
  font-size: 11px;
  color: #8a9bc0;
  line-height: 1.4;
}

.feed-text strong {
  color: #fff;
  font-weight: 600;
}

.feed-time {
  font-size: 9px;
  color: #6a7a94;
}


/* 3. EXPANDABLE SYSTEM ALERT */
.premium-system-alert {
  background: rgba(20, 24, 46, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  width: 100%;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-system-alert.danger {
  border-left: 4px solid #ef4444;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.08);
}

.alert-banner {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.alert-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  font-size: 15px;
  flex-shrink: 0;
}

.alert-brief {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.alert-brief strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.alert-brief span {
  font-size: 11px;
  color: #8a9bc0;
}

.alert-toggle-btn {
  background: none;
  border: none;
  color: #6a7a94;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.alert-collapsible-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(0, 0, 0, 0.15);
}

.premium-system-alert.expanded .alert-collapsible-wrapper {
  max-height: 350px;
}

.alert-details-content {
  padding: 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-section h5 {
  font-size: 11px;
  font-weight: 800;
  color: #6a7a94;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.diagnostic-code {
  background: rgba(10, 10, 20, 0.8);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.diagnostic-code code {
  font-family: "Fira Code", monospace;
  font-size: 10px;
  color: #10b981;
  line-height: 1.5;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.alert-action-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.alert-action-btn.copy {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #8a9bc0;
}

.alert-action-btn.copy:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.alert-action-btn.resolve {
  background: linear-gradient(135deg, #7b61ff, #6244ec);
  border: none;
  color: #fff;
}

.alert-action-btn.resolve:hover {
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
  transform: translateY(-1px);
}


/* 4. PROGRESS UPLOAD NOTIFICATION */
.premium-progress-upload {
  background: rgba(20, 24, 46, 0.5);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 22px;
  width: 100%;
}

.upload-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.upload-icon-box {
  width: 38px;
  height: 38px;
  background: rgba(123, 97, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7b61ff;
  font-size: 16px;
  flex-shrink: 0;
}

.float-anim {
  animation: floatBob 2s infinite ease-in-out;
}

@keyframes floatBob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
  100% { transform: translateY(0); }
}

.upload-title-area {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-title-area strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.upload-title-area span {
  font-size: 11px;
  color: #8a9bc0;
}

.upload-close {
  background: none;
  border: none;
  color: #6a7a94;
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.upload-close:hover {
  color: #fff;
}

.upload-progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.upload-progress-bar-track {
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
}

.upload-progress-fill {
  background: linear-gradient(90deg, #ff7a3d, #7b61ff);
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(123, 97, 255, 0.4);
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
}

.upload-progress-meta span:first-child {
  color: #fff;
}

.upload-progress-meta span:last-child {
  color: #6a7a94;
}

.upload-actions {
  display: flex;
  gap: 12px;
}

.upload-action-btn {
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-action-btn.pause {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  flex: 1;
}

.upload-action-btn.pause:hover {
  background: rgba(255, 255, 255, 0.08);
}

.upload-action-btn.pause.resume {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.upload-action-btn.cancel {
  background: transparent;
  border: 1px solid transparent;
  color: #6a7a94;
}

.upload-action-btn.cancel:hover {
  color: #ff6b6b;
}


/* 5. INTERACTIVE CHAT BUBBLE */
.premium-chat-bubble-container {
  position: relative;
  display: inline-block;
}

.chat-bubble-trigger {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.chat-bubble-trigger:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: #7b61ff;
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.25);
}

.bubble-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-unread-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #ff7a3d;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141428;
  box-shadow: 0 2px 8px rgba(255, 122, 61, 0.4);
}

.bubble-ripple {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: 50%;
  border: 2px solid #7b61ff;
  opacity: 0;
  animation: triggerRipple 2.5s infinite ease-out;
  pointer-events: none;
}

@keyframes triggerRipple {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.4); opacity: 0; }
}

.chat-popover-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 320px;
  background: rgba(20, 24, 46, 0.75);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9) translateY(15px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
}

.chat-popover-window.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.chat-window-header {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-avatar-status {
  position: relative;
  width: 36px;
  height: 36px;
}

.header-avatar-status img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 9px;
  height: 9px;
  background: #10b981;
  border: 2px solid #141428;
  border-radius: 50%;
}

.header-text h4 {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
  margin: 0;
}

.header-text span {
  font-size: 10px;
  color: #8a9bc0;
}

.chat-header-close {
  background: none;
  border: none;
  color: #6a7a94;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.chat-header-close:hover {
  color: #fff;
}

.chat-messages-body {
  padding: 20px;
  height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 11px;
  line-height: 1.4;
  max-width: 80%;
  position: relative;
}

.msg-bubble.incoming {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-bubble.outgoing {
  background: linear-gradient(135deg, #7b61ff, #6244ec);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.msg-time {
  display: block;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  text-align: right;
}

.chat-input-footer {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  gap: 10px;
}

.chat-input-footer input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 11px;
  color: #fff;
  outline: none;
  transition: all 0.3s ease;
}

.chat-input-footer input:focus {
  border-color: #7b61ff;
  background: rgba(255, 255, 255, 0.06);
}

.chat-send-btn {
  background: linear-gradient(135deg, #7b61ff, #6244ec);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chat-send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(123, 97, 255, 0.3);
}

/* Typing Indicator Animation */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px !important;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #8a9bc0;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  margin-left: var(--sidebar-w);
  background: #111;
  color: #aaa;
  padding: 0;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 2fr;
  gap: 40px;
  padding: 56px 48px 40px;
  max-width: 100%;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.footer-col h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.socials {
  display: flex;
  gap: 12px;
}

.socials a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1e1e1e;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  font-size: 14px;
  transition: all var(--transition);
}

.socials a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.newsletter-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--accent);
}

.newsletter-form button {
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.newsletter-form button:hover {
  background: #d45c28;
}

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding: 20px 48px;
  text-align: center;
  font-size: 13px;
  color: #555;
}