/* ============================================================
   LAYOUT-2 — Full Dashboard CSS (Fully Responsive)
   ============================================================ */

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

body {
  font-family: 'Inter', sans-serif;
  background: #f5f6fa;
  color: #1a1d23;
  font-size: 13px;
  min-height: 100vh;
}

/* ── TOP HEADER ── */
.top-header {
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
}
.breadcrumb strong { color: #111827; font-weight: 600; }
.breadcrumb .sep { color: #d1d5db; }

.dropdown-container { position: relative; }
.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  text-decoration: none;
  padding: 2px 0;
  border: none; background: none;
}
.arrow {
  border: solid #9ca3af;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  margin-top: -2px;
}
.dropdown-menu {
  display: none;
  position: fixed;
  min-width: 200px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  padding: 6px 0;
  z-index: 9999;
}
.dropdown-menu.show { display: block; }
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #374151;
  font-size: 12px;
  padding: 8px 14px;
  transition: background 0.15s;
}
.dropdown-menu a:hover, .dropdown-menu a.active-item { background: #f3f4f6; color: #111; }
.dropdown-menu .icon { font-size: 14px; }

.header-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-icons i { font-size: 14px; color: #6b7280; cursor: pointer; }
.header-icons i:hover { color: #374151; }
.avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e5e7eb;
  cursor: pointer;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  background: none; border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}
.hamburger span {
  width: 20px; height: 2px;
  background: #374151;
  border-radius: 2px;
  display: block;
  transition: 0.3s;
}

/* ── SUBNAV ── */
.subnav {
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  position: sticky;
  top: 48px;
  z-index: 90;
  overflow: visible;
}
.subnav-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: visible;
  scrollbar-width: none;
}
.subnav-left::-webkit-scrollbar { display: none; }

.subnav-left a, .subnav-left .dropdown-trigger {
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.subnav-left a:hover, .subnav-left .dropdown-trigger:hover { color: #111; background: #f3f4f6; }
.subnav-left a.active { color: #111827; font-weight: 600; border-bottom: 2px solid #111827; border-radius: 0; }

.subnav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  margin-left: 10px;
}
.subnav-right a {
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.subnav-right a:hover { color: #111; }

/* Mobile subnav drawer */
.subnav-mobile-toggle {
  display: none;
  background: none; border: none;
  cursor: pointer;
  font-size: 18px;
  color: #374151;
  padding: 4px 8px;
}
.subnav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  padding: 12px 20px;
  gap: 6px;
  position: sticky;
  top: 48px;
  z-index: 89;
}
.subnav-drawer.open { display: flex; }
.subnav-drawer a {
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
.subnav-drawer a.active { color: #111; font-weight: 600; }

/* ── MAIN CONTENT ── */
.content {
  padding: 20px 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.page-header h2 { font-size: 15px; font-weight: 700; color: #111827; }
.page-header p { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover { background: #f9fafb; }

/* ── DASHBOARD GRID ── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 16px;
  align-items: start;
}

.dashboard-left, .dashboard-right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── PANEL BASE ── */
.panel {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 16px;
}

/* ── QUICK CARDS GRID ── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.quick-card {
  background: #fff;
  border: 1px solid #e8eaf0;
  border-radius: 12px;
  padding: 16px;
  transition: box-shadow 0.2s;
}
.quick-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.07); }
.card-ico {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 10px;
  display: block;
}
.quick-card h4 { font-size: 12px; font-weight: 700; margin-bottom: 6px; color: #111827; }
.quick-card p { color: #6b7280; font-size: 11px; line-height: 1.5; margin-bottom: 10px; }
.quick-card a { color: #2563eb; font-size: 11px; font-weight: 600; text-decoration: none; }
.quick-card a:hover { text-decoration: underline; }

/* ── CONNECT PANEL ── */
.connect-panel {
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: 0;
}
.connect-left {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.connect-avatars {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}
.connect-avatars img {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -7px;
  object-fit: cover;
}
.connect-avatars img:first-child { margin-left: 0; }
.connect-avatars .plus-badge {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -7px;
  border: 2px solid #fff;
}
.connect-left h3 {
  font-size: 14px; font-weight: 700; color: #111827;
  line-height: 1.4; margin-bottom: 8px;
}
.connect-left h3 span { color: #2563eb; }
.connect-left p { font-size: 11px; color: #6b7280; line-height: 1.5; margin-bottom: 14px; }
.connect-left a {
  display: inline-block;
  background: #1a1d23;
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: background 0.2s;
}
.connect-left a:hover { background: #374151; }
.connect-right {
  width: 200px;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 0 12px 12px 0;
}
.connect-preview {
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 10px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.preview-bar { height: 6px; border-radius: 3px; background: #e5e7eb; margin-bottom: 6px; }
.preview-bar.w80 { width: 80%; }
.preview-bar.w60 { width: 60%; }
.preview-bar.w90 { width: 90%; }
.preview-bar.w50 { width: 50%; }
.preview-dots { display: flex; gap: 4px; margin-bottom: 8px; }
.preview-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: #e5e7eb; display: block;
}
.preview-dots span.blue { background: #3b82f6; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.preview-block { height: 20px; background: #f3f4f6; border-radius: 4px; }
.preview-block.blue { background: #eff6ff; }

/* ── INTEGRATIONS ── */
.integrations-panel h3 { font-size: 13px; font-weight: 700; margin-bottom: 14px; color: #111827; }
.integration-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.integration-list li {
  border: 1px solid #eceef3;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.15s;
}
.integration-list li:hover { border-color: #c7d2fe; }
.integ-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0;
}
.integ-icon.google { background: #fef2f2; color: #ef4444; }
.integ-icon.equinox { background: #f0fdf4; color: #16a34a; }
.integ-icon.currenie { background: #eff6ff; color: #3b82f6; }
.integ-icon.inferno { background: #fdf4ff; color: #a855f7; }
.integ-info { flex: 1; }
.integ-info h5 { font-size: 12px; font-weight: 600; color: #111827; margin-bottom: 1px; }
.integ-info small { font-size: 10px; color: #9ca3af; }
.integ-info p { font-size: 10px; color: #6b7280; margin-top: 2px; }

/* Toggle Switch */
.switch { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; inset: 0;
  border-radius: 20px; background: #d1d5db; cursor: pointer;
  transition: 0.2s;
}
.switch span::before {
  content: ''; width: 14px; height: 14px;
  border-radius: 50%; background: #fff;
  position: absolute; left: 3px; top: 3px;
  transition: 0.2s;
}
.switch input:checked + span { background: #2563eb; }
.switch input:checked + span::before { transform: translateX(16px); }

/* ── TEAMS TABLE ── */
.teams-panel { padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.panel-head h3 { font-size: 13px; font-weight: 700; color: #111827; }
.search-box {
  border: 1px solid #d9dce3;
  border-radius: 8px;
  font-size: 11px; color: #6b7280;
  padding: 6px 10px; display: flex; align-items: center; gap: 6px;
  cursor: pointer;
}
.teams-table { width: 100%; border-collapse: collapse; }
.teams-table th {
  text-align: left; font-size: 10px; font-weight: 600;
  color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 1px solid #eceef3; padding-bottom: 8px;
}
.teams-table td {
  font-size: 12px; border-bottom: 1px solid #f0f2f6;
  padding: 10px 0; vertical-align: middle;
}
.teams-table td:first-child { padding-right: 8px; }
.teams-table td strong { display: block; font-weight: 600; color: #111827; font-size: 12px; }
.teams-table td small { color: #9ca3af; font-size: 10px; display: block; margin-top: 1px; }
.stars { color: #f59e0b; letter-spacing: 1px; font-size: 11px; }
.members-group { display: flex; align-items: center; }
.members-group img {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid #fff; margin-left: -6px; object-fit: cover;
}
.members-group img:first-child { margin-left: 0; }
.members-group span {
  width: 22px; height: 22px; border-radius: 50%;
  background: #6366f1; color: #fff; font-size: 8px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  margin-left: -6px; border: 2px solid #fff;
}

.table-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px; font-size: 11px; color: #9ca3af;
}
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn {
  width: 26px; height: 26px; border-radius: 6px; border: 1px solid #e5e7eb;
  background: #fff; font-size: 11px; color: #374151;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.page-btn:hover, .page-btn.active { background: #1a1d23; color: #fff; border-color: #1a1d23; }

/* ── RIGHT COLUMN ── */

/* Balance */
.balance-panel h4 { font-size: 12px; font-weight: 700; color: #111827; margin-bottom: 3px; }
.balance-panel .sub { font-size: 10px; color: #9ca3af; }
.amount { font-size: 26px; font-weight: 800; color: #111827; margin: 8px 0 10px; letter-spacing: -0.5px; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs span {
  font-size: 10px; color: #6b7280;
  border: 1px solid #e5e7eb; border-radius: 6px;
  padding: 4px 9px; cursor: pointer; transition: 0.15s;
}
.tabs span.active { color: #2563eb; border-color: #bfdbfe; background: #eff6ff; }
.tabs span:hover { background: #f3f4f6; }

/* Line chart via SVG */
.chart-wrap { height: 90px; position: relative; overflow: hidden; border-radius: 8px; }
.chart-wrap svg { width: 100%; height: 100%; }

/* Sharing Panel */
.sharing-panel h4 { font-size: 12px; font-weight: 700; margin-bottom: 12px; color: #111827; }
.sharing-panel ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sharing-panel li {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.sharing-panel .radio-group { display: flex; flex-direction: column; }
.sharing-panel strong { font-size: 11px; font-weight: 600; color: #111827; }
.sharing-panel p { font-size: 10px; color: #6b7280; margin-top: 2px; line-height: 1.4; }
.sharing-panel input[type="radio"] { margin-top: 2px; accent-color: #2563eb; flex-shrink: 0; }

/* Block List */
.blocklist-panel h4 { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #111827; }
.blocklist-panel > p { font-size: 10px; color: #6b7280; margin-bottom: 12px; line-height: 1.4; }
.blocklist-panel button {
  border: 1px solid #2563eb; color: #2563eb;
  background: #eff6ff; border-radius: 6px;
  font-size: 10px; padding: 4px 10px; cursor: pointer;
  transition: 0.15s;
}
.blocklist-panel button:hover { background: #2563eb; color: #fff; }
.blocklist-panel .block-search {
  display: flex; border: 1px solid #e5e7eb; border-radius: 8px;
  overflow: hidden; margin-bottom: 10px;
}
.blocklist-panel .block-search input {
  flex: 1; border: none; outline: none; padding: 6px 10px; font-size: 11px; color: #374151;
}
.blocklist-panel .block-search button {
  border: none; border-radius: 0;
  background: #1a1d23; color: #fff; font-size: 11px; padding: 6px 12px;
}
.user-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #f0f2f6; }
.user-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.user-row .user-info { flex: 1; }
.user-row strong { display: block; font-size: 11px; font-weight: 600; color: #111827; }
.user-row span { color: #9ca3af; font-size: 10px; }
.user-row .del-btn {
  background: none; border: none; cursor: pointer; color: #d1d5db; font-size: 14px; padding: 4px;
  transition: color 0.15s;
}
.user-row .del-btn:hover { color: #ef4444; }

/* Data Panel */
.data-panel h4 { font-size: 12px; font-weight: 700; margin-bottom: 4px; color: #111827; }
.data-panel a {
  display: flex; justify-content: space-between; align-items: center;
  text-decoration: none; color: #1f2937;
  font-size: 11px; border-top: 1px solid #f0f2f6; padding: 9px 0;
  transition: color 0.15s;
}
.data-panel a:hover { color: #2563eb; }
.data-panel small { color: #9ca3af; font-size: 10px; }
.data-panel .toggle-row { display: flex; align-items: center; gap: 8px; }

/* ── FOOTER ── */
.footer {
  margin-top: 20px; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center;
  color: #9ca3af; font-size: 11px;
  border-top: 1px solid #e8eaf0;
  background: #fff;
  flex-wrap: wrap; gap: 8px;
}
.footer-links { display: flex; gap: 14px; }
.footer-links a { text-decoration: none; color: #6b7280; font-size: 11px; }
.footer-links a:hover { color: #111; }

/* ── RESPONSIVE ── */

/* 1200px */
@media (max-width: 1200px) {
  .dashboard-layout { grid-template-columns: 1fr 270px; }
}

/* 1024px */
@media (max-width: 1024px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-right { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}

/* 900px */
@media (max-width: 900px) {
  .subnav { display: none; }
  .subnav-mobile-toggle { display: flex; align-items: center; }
  .top-header { padding: 0 16px; }
  .content { padding: 16px; }
}

/* 768px */
@media (max-width: 768px) {
  .dashboard-right { grid-template-columns: 1fr; }
  .connect-right { display: none; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .teams-table th:nth-child(3),
  .teams-table td:nth-child(3) { display: none; }
}

/* 600px */
@media (max-width: 600px) {
  .quick-grid { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .content { padding: 12px; }
  .top-header { height: 52px; }
  .header-icons i:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .teams-table th:nth-child(4),
  .teams-table td:nth-child(4) { display: none; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* 400px */
@media (max-width: 400px) {
  .amount { font-size: 22px; }
  .panel { padding: 12px; }
  .quick-card { padding: 12px; }
}

/* ── Mobile drawer accordion ── */
.subnav-drawer {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e8eaf0;
  position: sticky;
  top: 48px;
  z-index: 89;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.subnav-drawer.open {
  display: flex;
  max-height: 90vh;
  overflow-y: auto;
}
.drawer-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.drawer-trigger:hover { background: #f9fafb; color: #111; }
.drawer-trigger.drawer-active { color: #2563eb; font-weight: 600; }
.drawer-trigger .drawer-arrow {
  border: solid #9ca3af;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform 0.2s;
}
.drawer-trigger.drawer-active .drawer-arrow {
  transform: rotate(-135deg);
  border-color: #2563eb;
}
.drawer-sub {
  display: none;
  flex-direction: column;
  background: #f9fafb;
  border-bottom: 1px solid #f3f4f6;
}
.drawer-sub.drawer-open { display: flex; }
.drawer-sub a {
  text-decoration: none;
  color: #6b7280;
  font-size: 12px;
  padding: 10px 36px;
  border-bottom: 1px solid #f3f4f6;
  transition: color 0.15s, background 0.15s;
}
.drawer-sub a:last-child { border-bottom: none; }
.drawer-sub a:hover { background: #f0f2f5; color: #111; }
.drawer-sub a.active-item { color: #2563eb; font-weight: 600; background: #eff6ff; }
.drawer-flat-link {
  text-decoration: none;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
  display: block;
}
.drawer-flat-link:hover { background: #f9fafb; color: #111; }
.drawer-flat-link.active { color: #2563eb; font-weight: 600; }

/* Show toggle only on mobile */
.subnav-mobile-toggle { display: none; }
@media (max-width: 900px) {
  .subnav { display: none; }
  .subnav-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #374151;
    padding: 4px 8px;
  }
}


/* Notification Panel */
.notif-panel {
  width: 400px;
  right: 0;
  left: auto;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  background: #fff;
  z-index: 9999;
  border: 1px solid #e5e7eb;
}
.dropdown-container.active .notif-panel {
  display: flex;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.notif-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.notif-tabs {
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #e5e7eb;
  gap: 16px;
  position: relative;
}
.notif-tab {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  padding: 12px 0;
  cursor: pointer;
  position: relative;
}
.notif-tab.active {
  color: #3b82f6;
  border-bottom: 2px solid #3b82f6;
}
.notif-dot {
  position: absolute;
  top: 10px;
  right: -6px;
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
}
.notif-body {
  max-height: 400px;
  overflow-y: auto;
}
.notif-item {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}
.notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.notif-status-dot {
  position: absolute;
  left: 48px;
  top: 44px;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
}
.notif-icon-success {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 1px solid #a7f3d0;
}
.notif-content {
  flex: 1;
}
.notif-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 4px;
}
.notif-text strong {
  color: #111827;
}
.notif-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}
.notif-meta {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 12px;
}
.notif-cards {
  display: flex;
  gap: 12px;
}
.notif-card {
  flex: 1;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 8px;
  padding: 12px;
}
.notif-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}
.notif-card-meta {
  font-size: 11px;
  color: #6b7280;
}
.notif-box {
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}
.notif-actions {
  display: flex;
  gap: 8px;
}
.notif-btn-outline {
  padding: 8px 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.notif-btn-solid {
  padding: 8px 16px;
  border: none;
  background: #111827;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.notif-more {
  color: #9ca3af;
  cursor: pointer;
}
.notif-footer {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
}
@media (max-width: 768px) {
  .notif-panel {
    width: 320px;
    right: 0;
  }
}



/* Notification Context Menu */
.notif-context-menu {
  position: absolute;
  right: 20px;
  top: 40px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  padding: 8px 0;
  width: 160px;
  z-index: 100;
  display: none;
}
.notif-context-menu.show {
  display: block;
}
.notif-context-item {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  gap: 12px;
}
.notif-context-item:hover {
  background: #f3f4f6;
}
.notif-context-item i {
  color: #6b7280;
  font-size: 14px;
}

/* Chat Panel */
.chat-panel {
  width: 400px;
  right: 0;
  left: auto;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  background: #fff;
  z-index: 9999;
  border: 1px solid #e5e7eb;
}
.chat-panel.show { display: flex !important; }
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.chat-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.chat-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.chat-group-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-group-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-group-text {
  display: flex;
  flex-direction: column;
}
.chat-group-text strong {
  font-size: 14px;
  color: #111827;
}
.chat-group-text span {
  font-size: 12px;
  color: #6b7280;
}
.chat-group-avatars {
  display: flex;
  align-items: center;
}
.chat-group-avatars img, .chat-plus-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  object-fit: cover;
}
.chat-group-avatars img:first-child {
  margin-left: 0;
}
.chat-plus-avatar {
  background: #10b981;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-body {
  padding: 20px;
  max-height: 350px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}
.chat-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.chat-msg.right {
  flex-direction: row;
  justify-content: flex-end;
}
.chat-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-msg-content {
  max-width: 75%;
  display: flex;
  flex-direction: column;
}
.chat-msg.right .chat-msg-content {
  align-items: flex-end;
}
.chat-bubble {
  background: #f3f4f6;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  color: #111827;
  line-height: 1.5;
}
.chat-bubble.blue {
  background: #3b82f6;
  color: #fff;
}
.chat-time {
  font-size: 11px;
  color: #6b7280;
  margin-top: 4px;
}
.chat-online-dot {
  position: absolute;
  right: -2px;
  bottom: 0;
  width: 10px;
  height: 10px;
  background: #10b981;
  border: 2px solid #fff;
  border-radius: 50%;
}
.chat-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
  background: #f9fafb;
}
.chat-action-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.chat-action-content {
  flex: 1;
}
.chat-action-text {
  font-size: 13px;
  color: #374151;
}
.chat-action-text strong {
  color: #111827;
}
.chat-action-meta {
  font-size: 11px;
  color: #6b7280;
  margin-top: 2px;
}
.chat-action-btns {
  display: flex;
  gap: 8px;
}
.chat-btn-outline {
  padding: 6px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
}
.chat-btn-solid {
  padding: 6px 12px;
  border: none;
  background: #111827;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
}
.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid #f3f4f6;
}
.chat-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e5e7eb;
  padding: 6px;
  border-radius: 8px;
}
.chat-input-wrapper img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-left: 4px;
}
.chat-input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  padding: 4px;
}
.chat-input-wrapper i {
  color: #9ca3af;
  cursor: pointer;
}
@media (max-width: 768px) {
  .chat-panel {
    width: 320px;
    right: 0;
  }
}

/* Profile Panel */
.profile-panel {
  width: 280px;
  right: 0;
  left: auto;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  background: #fff;
  z-index: 9999;
  border: 1px solid #e5e7eb;
}
.profile-panel.show { display: flex !important; }
.profile-header {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
  gap: 12px;
}
.profile-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.profile-info strong {
  font-size: 14px;
  color: #111827;
}
.profile-info span {
  font-size: 12px;
  color: #6b7280;
}
.profile-badge {
  background: #eff6ff;
  color: #3b82f6;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}
.profile-body {
  padding: 8px 0;
}
.profile-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  text-decoration: none;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  transition: background 0.15s;
  cursor: pointer;
}
.profile-link:hover {
  background: #f9fafb;
}
.profile-link i:first-child {
  font-size: 16px;
  color: #6b7280;
  width: 20px;
  text-align: center;
}
.language-row {
  cursor: default;
}
.language-row:hover {
  background: transparent;
}
.lang-btn {
  margin-left: auto;
  border: 1px solid #e5e7eb;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.profile-footer {
  border-top: 1px solid #f3f4f6;
  padding: 8px 0 16px 0;
}
.dark-mode-row {
  cursor: default;
}
.dark-mode-row:hover {
  background: transparent;
}
.toggle-switch {
  margin-left: auto;
  width: 36px;
  height: 20px;
  background: #e5e7eb;
  border-radius: 10px;
  position: relative;
  cursor: pointer;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.toggle-switch.active {
  background: #10b981;
}
.toggle-switch.active::after {
  transform: translateX(16px);
}
.profile-logout-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 12px auto 0 auto;
  padding: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
  text-align: center;
}
.profile-logout-btn:hover {
  background: #f9fafb;
}


/* -- Company Profile Cover Responsive -- */
@media (max-width: 768px) {
  .pp-hero > div:first-child { height: 110px !important; }
  .pp-hero .pp-meta { flex-wrap: wrap; gap: 6px 12px; }
  .pp-layout { flex-direction: column; }
  .pp-sidebar { width: 100%; }
}
@media (max-width: 480px) {
  .pp-hero .pp-name { font-size: 15px; }
  .pp-hero > div:last-child { padding: 0 16px 16px; }
}
