/* ===== BUNDLE LAYOUT SYSTEM ===== */
/* Modern SaaS Dashboard Layout - Stripe/Linear/Vercel inspired */

/* === CSS VARIABLES === */
:root {
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --topbar-height: 64px;
  --content-max: 1400px;
  --gap: 1.5rem;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --sidebar-bg: #0c0c14;
  --sidebar-border: rgba(255,255,255,0.05);
  --sidebar-hover: rgba(255,255,255,0.04);
  --sidebar-active: rgba(99,102,241,0.1);
  --sidebar-active-border: rgba(99,102,241,0.3);
  --topbar-bg: rgba(12,12,20,0.8);
  --content-bg: #0a0a0f;
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.06);
  --card-hover: rgba(255,255,255,0.06);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-sidebar: #94a3b8;
  --overlay: rgba(0,0,0,0.6);
}

[data-theme="light"] {
  --sidebar-bg: #ffffff;
  --sidebar-border: rgba(0,0,0,0.06);
  --sidebar-hover: rgba(0,0,0,0.03);
  --sidebar-active: rgba(99,102,241,0.08);
  --sidebar-active-border: rgba(99,102,241,0.25);
  --topbar-bg: rgba(255,255,255,0.85);
  --content-bg: #f8fafc;
  --card-bg: #ffffff;
  --card-border: rgba(0,0,0,0.07);
  --card-hover: rgba(0,0,0,0.02);
  --text: #0f172a;
  --text-muted: #64748b;
  --text-sidebar: #475569;
  --overlay: rgba(0,0,0,0.4);
}

/* === APP LAYOUT === */
.app-layout {
  display: flex;
  min-height: 100vh;
  background: var(--content-bg);
}

/* === SIDEBAR === */
.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: width var(--transition), transform var(--transition);
  overflow: hidden;
}

.sidebar-brand {
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  border-bottom: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-brand svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
  flex-shrink: 0;
}

.sidebar-brand span {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: transparent; border-radius: 3px; }
.sidebar-nav:hover::-webkit-scrollbar-thumb { background: var(--sidebar-border); }

.sidebar-section {
  margin-bottom: 1.5rem;
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 1rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-sidebar);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
  margin: 0 0.5rem 0.15rem;
  white-space: nowrap;
}

.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}

.sidebar-link.active {
  background: var(--sidebar-active);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  margin-left: 0.35rem;
  padding-left: 0.85rem;
}

.sidebar-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-link span {
  white-space: nowrap;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar-footer {
  padding: 0.75rem;
  border-top: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sidebar-user-info {
  overflow: hidden;
  opacity: 1;
  transition: opacity var(--transition);
}

.sidebar-user-info p {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Sidebar footer buttons (theme, logout) */
.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-sidebar);
  font-size: 0.82rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 0.15rem;
}
.sidebar-footer-btn:hover {
  background: var(--sidebar-hover);
  color: var(--text);
}
.sidebar-footer-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.sidebar-footer-btn .sfb-label {
  white-space: nowrap;
}

/* === MAIN AREA === */
.main-area {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left var(--transition);
}

/* === TOPBAR === */
.topbar {
  height: var(--topbar-height);
  position: sticky;
  top: 0;
  background: var(--topbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 50;
}

.topbar-page-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topbar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--sidebar-border);
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.topbar-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--sidebar-hover);
}

.topbar-btn svg {
  width: 16px;
  height: 16px;
}

/* === CONTENT === */
.content-area {
  flex: 1;
  padding: 1.5rem;
  overflow-y: auto;
}

.content-container {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* === MOBILE TOGGLE === */
.sidebar-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--sidebar-border);
  background: transparent;
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 0.75rem;
}

.sidebar-toggle svg {
  width: 18px;
  height: 18px;
}

/* === OVERLAY === */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 99;
  opacity: 0;
  transition: opacity var(--transition);
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

/* === RESPONSIVE GRID SYSTEM === */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: var(--gap); }

/* Equal height cards */
.eq-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--gap); }
.eq-cards .card { display: flex; flex-direction: column; height: 100%; }
.eq-cards .card-body { flex: 1; }
.eq-cards .card-footer { margin-top: auto; padding-top: 1rem; }

/* === ANIMATIONS === */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.anim-fade { animation: fadeIn 0.4s ease both; }
.anim-slide-up { animation: slideUp 0.5s ease both; }
.anim-scale { animation: scaleIn 0.4s ease both; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }

/* Hover lift for cards */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: rgba(99,102,241,0.2);
}

/* === GLASS CARD === */
.glass-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.glass-card:hover {
  background: var(--card-hover);
  border-color: rgba(99,102,241,0.15);
}

/* === STAT CARD === */
.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.stat-icon svg { width: 20px; height: 20px; }

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 0.25rem;
}

/* === RESPONSIVE === */

/* Tablet: collapsed sidebar */
@media (max-width: 1024px) {
  .sidebar {
    width: var(--sidebar-collapsed);
  }
  .sidebar-brand span,
  .sidebar-section-title,
  .sidebar-link span,
  .sidebar-user-info {
    opacity: 0;
    pointer-events: none;
  }
  .sidebar-link {
    justify-content: center;
    padding: 0.65rem;
    margin: 0 0.35rem 0.15rem;
  }
  .sidebar-link.active {
    padding-left: 0.65rem;
    margin-left: 0.35rem;
    border-left: none;
    border-bottom: 2px solid var(--primary);
  }
  .sidebar-user {
    justify-content: center;
  }
  .main-area {
    margin-left: var(--sidebar-collapsed);
  }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: hidden sidebar */
@media (max-width: 768px) {
  .sidebar {
    width: var(--sidebar-width);
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-brand span,
  .sidebar-section-title,
  .sidebar-link span,
  .sidebar-user-info {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar-link {
    justify-content: flex-start;
    padding: 0.65rem 1rem;
    margin: 0 0.5rem 0.15rem;
  }
  .sidebar-link.active {
    border-left: 3px solid var(--primary);
    border-bottom: none;
    margin-left: 0.35rem;
    padding-left: 0.85rem;
  }
  .sidebar-user {
    justify-content: flex-start;
  }
  .main-area {
    margin-left: 0;
  }
  .sidebar-toggle {
    display: flex;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .eq-cards { grid-template-columns: repeat(2, 1fr); }
  .content-area { padding: 1rem; }
}

/* Small mobile */
@media (max-width: 480px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .eq-cards { grid-template-columns: 1fr; }
  .topbar { padding: 0 1rem; }
  .topbar-page-title { font-size: 0.9rem; }
  .content-area { padding: 0.75rem; }
}

/* === MOBILE ADMIN PANEL FIXES === */
@media (max-width: 768px) {
  /* Admin tabs: smaller, horizontally scrollable */
  .admin-tabs {
    gap: 0.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0;
  }
  .admin-tab {
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
    top: 0;
    border-bottom: 2px solid transparent;
  }

  /* All admin tables: horizontal scroll */
  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .admin-table {
    min-width: 650px;
  }
  .admin-table th {
    padding: 0.6rem 0.5rem;
    font-size: 0.65rem;
  }
  .admin-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }

  /* Action buttons: smaller */
  .admin-table td .btn-sm {
    padding: 0.3rem 0.4rem;
  }
  .admin-table td .btn-sm svg {
    width: 12px;
    height: 12px;
  }

  /* Broadcast grid */
  .broadcast-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Service select grid */
  .svc-select-grid {
    grid-template-columns: 1fr;
  }

  /* Modal sizing */
  .modal {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem;
  }
  .modal form {
    padding: 1rem;
  }
  .modal-header {
    padding: 1rem;
  }
  .modal-header h3 {
    font-size: 0.9rem;
  }

  /* Form grids inside modals */
  .modal form .grid-cols-2,
  .modal form .grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  /* Stats: 2 columns on tablet */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Countdown ring */
  .countdown-ring {
    width: 130px;
    height: 130px;
  }
  .countdown-ring svg {
    width: 130px;
    height: 130px;
  }
  .countdown-text .days {
    font-size: 1.8rem;
  }

  /* Notification dropdown */
  .notif-dropdown {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
  .notif-dropdown::before {
    right: 14px;
  }
  .notif-list {
    max-height: 320px;
  }

  /* Settings */
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-nav {
    position: static;
    display: flex;
    gap: 0.25rem;
    overflow-x: auto;
    padding: 0.5rem;
  }
  .settings-nav-btn {
    white-space: nowrap;
    width: auto;
  }

  /* Sub status grid */
  .sub-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Subscription card */
  .sub-banner .grid-cols-2 {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /* Admin tables: smaller still */
  .admin-table {
    min-width: 600px;
  }
  .admin-table th {
    padding: 0.5rem 0.4rem;
    font-size: 0.62rem;
  }
  .admin-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
  }

  /* All grids: single column */
  .grid-4,
  .grid-3,
  .grid-2,
  .eq-cards,
  .cat-grid,
  .pr-grid,
  .sp-grid {
    grid-template-columns: 1fr;
  }

  /* Countdown */
  .countdown-ring {
    width: 120px;
    height: 120px;
  }
  .countdown-ring svg {
    width: 120px;
    height: 120px;
  }
  .countdown-text .days {
    font-size: 1.6rem;
  }
  .countdown-units {
    gap: 0.5rem;
  }
  .countdown-unit .num {
    font-size: 0.9rem;
  }

  /* Notification dropdown full width */
  .notif-dropdown {
    width: calc(100vw - 1.5rem);
    right: -0.25rem;
    border-radius: var(--radius-sm);
  }
  .notif-dropdown::before {
    right: 10px;
  }

  /* Modals */
  .modal {
    border-radius: var(--radius-sm);
    max-height: 95vh;
  }
  .device-modal {
    max-width: calc(100vw - 1rem) !important;
  }

  /* Sub status: single column */
  .sub-status-grid {
    grid-template-columns: 1fr;
  }

  /* Detail grids */
  .detail-svcs {
    grid-template-columns: 1fr !important;
  }

  /* Content padding */
  .content-container {
    padding: 0;
  }

  /* Section headers smaller */
  .sec-header h2 {
    font-size: 1.4rem;
  }
}

/* === MOBILE TABLE FIXES === */
@media (max-width: 768px) {
  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.5rem;
    font-size: 0.75rem;
  }
  .admin-table th {
    font-size: 0.65rem;
  }
  .admin-table-container {
    margin: 0 -0.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .modal {
    max-width: calc(100vw - 1rem);
    margin: 0.5rem;
  }
  .modal form {
    padding: 1rem;
  }
  .modal-header {
    padding: 1rem;
  }
  .stat-card {
    padding: 1rem;
  }
  .svc-card {
    padding: 1rem;
  }
  .cat-card {
    padding: 1.25rem;
  }
  .plan-card {
    padding: 1.25rem;
  }
  .bundle-card {
    padding: 1.25rem;
  }
  .feature-card {
    padding: 1.25rem;
  }
  .test-card {
    padding: 1.25rem;
  }
  .settings-panel {
    padding: 1.25rem;
  }
  .settings-nav {
    position: static;
  }
  .countdown-ring {
    width: 130px;
    height: 130px;
  }
  .countdown-ring svg {
    width: 130px;
    height: 130px;
  }
  .countdown-text .days {
    font-size: 1.8rem;
  }
  .pr-search-wrap {
    max-width: 100%;
  }
  .filter-bar {
    gap: 0.35rem;
  }
  .filter-pill {
    padding: 0.35rem 0.6rem;
    font-size: 0.7rem;
  }
  .filter-search {
    min-width: 100%;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .broadcast-grid {
    grid-template-columns: 1fr;
  }
  .profile-hero {
    flex-direction: column;
    text-align: center;
  }
  .sub-status-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .admin-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table {
    min-width: 700px;
  }
  .admin-table th,
  .admin-table td {
    padding: 0.5rem 0.4rem;
    font-size: 0.72rem;
  }
  .admin-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.72rem;
  }
  .countdown-ring {
    width: 120px;
    height: 120px;
  }
  .countdown-ring svg {
    width: 120px;
    height: 120px;
  }
  .countdown-text .days {
    font-size: 1.6rem;
  }
  .countdown-units {
    gap: 0.5rem;
  }
  .countdown-unit .num {
    font-size: 0.9rem;
  }
  .modal {
    border-radius: var(--radius-sm);
  }
  .modal-header h3 {
    font-size: 0.9rem;
  }
  .btn-sm {
    padding: 0.35rem 0.5rem;
    font-size: 0.7rem;
  }
  .svc-select-grid {
    grid-template-columns: 1fr;
  }
  .detail-svcs {
    grid-template-columns: 1fr;
  }
  .sub-status-grid {
    grid-template-columns: 1fr;
  }
  .compare-table {
    min-width: 500px;
  }
  .compare-table-wrap {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sidebar-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* === NOTIFICATION DROPDOWN === */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 2rem);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  z-index: 150;
  overflow: hidden;
  animation: notifSlideIn 0.2s ease;
}
@keyframes notifSlideIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.notif-dropdown.hidden { display: none; }
.notif-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: var(--card-bg);
  border-left: 1px solid var(--card-border);
  border-top: 1px solid var(--card-border);
  transform: rotate(45deg);
  z-index: 1;
}
.notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  position: relative;
  z-index: 2;
  background: var(--card-bg);
}
.notif-header h4 { font-size: 0.9rem; font-weight: 700; margin: 0; }
.notif-header button {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.notif-header button:hover { background: var(--sidebar-hover); }
.notif-list {
  max-height: 380px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.notif-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}
.notif-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--card-border);
  width: 100%;
  font-family: inherit;
  color: var(--text);
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--sidebar-hover); }
.notif-item.unread { background: var(--sidebar-active); }
.notif-item.unread:hover { background: var(--sidebar-active); }
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.notif-dot.read { background: var(--card-border); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 0.8rem; font-weight: 600; margin: 0 0 0.15rem; }
.notif-msg { font-size: 0.75rem; color: var(--text-muted); line-height: 1.45; margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-time { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }
.notif-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.notif-icon-wrap svg { width: 16px; height: 16px; }

/* === EXISTING COMPONENT OVERRIDES === */
.navbar { display: none; } /* Hide old navbar when layout.css is active */
.mobile-menu-btn { display: none; }
