:root {
  --ink:#17251f;
  --forest:#173c30;
  --cream:#f6f4ed;
  --mint:#edf4ee;
  --terra:#c86245;
  --gold:#d9ad62;
  --muted:#718079;
  --line:#dde3de}
* {
  box-sizing:border-box}
body {
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font-family:"DM Sans",sans-serif;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
  -webkit-text-size-adjust:100%}
button,input,select,textarea {
  font:inherit}
button {
  cursor:pointer;
  color:inherit}
#sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:245px;
  padding:26px 18px 30px;
  background:var(--forest);
  color:white;
  display:flex;
  flex-direction:column;
  z-index:30;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain}
body.sidebar-locked {
  overflow:hidden !important;
  touch-action:none;
  height:100vh;
  height:100dvh}
.brand {
  color:white;
  text-decoration:none;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  padding:8px 0 4px}
.brand i {
  width:35px;
  height:35px;
  border-radius:50%;
  background:var(--cream);
  color:var(--forest);
  display:grid;
  place-items:center}
.portal {
  color:#87a397;
  letter-spacing:.18em;
  font-size:11px;
  margin:28px 12px 14px}
nav {
  display:grid;
  gap:4px}
nav button {
  border:0;
  background:none;
  color:#bfd0c8;
  border-radius:9px;
  padding:12px;
  display:flex;
  gap:12px;
  text-align:left;
  font-size:15px;
  min-height:44px}
nav button.active,nav button:hover {
  background:#ffffff14;
  color:white}
nav button b {
  margin-left:auto;
  background:var(--terra);
  padding:2px 6px;
  border-radius:99px;
  font-size:16px}
.support {
  margin-top:auto;
  background:#244c3f;
  border-radius:13px;
  padding:15px;
  display:grid;
  gap:4px}
.support i {
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--gold);
  color:var(--forest);
  display:grid;
  place-items:center}
.support strong {
  font-size:16px}
.support small {
  font-size:11px;
  color:#aec0b7}
.support button {
  border:0;
  background:var(--cream);
  color:var(--forest);
  border-radius:7px;
  padding:8px 14px;
  margin-top:5px;
  font-size:11px;
  font-weight:700;
  transition:background 0.2s, transform 0.1s;
}
.support button:hover {
  background:white;
  transform:translateY(-1px);
}
.signout {
  border:0;
  background:none;
  color:#9db3a8;
  margin:14px;
  text-align:left}
.app {
  margin-left:245px}
.app>header {
  height:72px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:center;
  padding:0 3.5vw;
  gap:10px;
  position:sticky;
  top:0;
  z-index:20}
#menu {
  display:none;
  border:0;
  background:none}
.search {
  display:flex;
  gap:8px;
  align-items:center;
  width:320px;
  border:1px solid var(--line);
  padding:9px 12px;
  border-radius:8px;
  color:var(--muted)}
.search input {
  border:0;
  outline:0;
  width:100%;
  font-size:16px}
.bell {
  width:38px;
  height:38px;
  border:1px solid var(--line);
  background:white;
  border-radius:50%;
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  color:var(--dark, #1c2826);
  transition:all 0.2s ease}
.bell:hover {
  background:#f8f6f3;
  border-color:#d1c7bc}
.bell b {
  position:absolute;
  right:-2px;
  top:-2px;
  background:var(--terra, #c85a32);
  color:white;
  border-radius:50%;
  min-width:18px;
  height:18px;
  padding:0 4px;
  font-size:11px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1}

.notif-dropdown {
  position:absolute;
  top:48px;
  right:0;
  width:340px;
  background:#ffffff;
  border:1px solid var(--line, #e2dacd);
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0, 0, 0, 0.12);
  z-index:1000;
  overflow:hidden}

.notif-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  background:#faf8f5;
  border-bottom:1px solid var(--line, #e2dacd)}
.notif-header strong {
  font-size:14px;
  font-weight:700;
  color:#1c2826}
.notif-header .text-btn {
  background:none;
  border:none;
  font-size:12px;
  color:var(--terra, #c85a32);
  cursor:pointer;
  padding:0;
  font-weight:600}
.notif-header .text-btn:hover {
  text-decoration:underline}

.notif-list {
  max-height:360px;
  overflow-y:auto}

.notif-empty {
  padding:24px;
  text-align:center;
  color:#8c857b;
  font-size:13px}

.notif-item {
  padding:12px 16px;
  border-bottom:1px solid #f0ebe4;
  display:flex;
  gap:10px;
  align-items:flex-start;
  transition:background 0.15s;
  cursor:pointer}
.notif-item:last-child {
  border-bottom:none}
.notif-item:hover {
  background:#fdfbf7}
.notif-item.unread {
  background:#f7f3ed}
.notif-item .notif-icon {
  font-size:16px;
  line-height:1;
  margin-top:2px}
.notif-item .notif-content {
  flex:1}
.notif-item .notif-text {
  font-size:13px;
  color:#2b3531;
  line-height:1.4;
  margin:0}
.notif-item .notif-time {
  font-size:11px;
  color:#90887e;
  margin-top:4px;
  display:block}
.avatar {
  width:38px;
  height:38px;
  border-radius:50%;
  background:#d2b19d;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700}
.identity {
  display:grid}
.identity strong {
  font-size:16px}
.identity small {
  font-size:11px;
  color:var(--muted)}
main {
  padding:34px 3.5vw 60px}
.view {
  display:none}
.view.active {
  display:block}
.page-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:24px}
.eyebrow {
  color:var(--terra);
  font-size:11px;
  letter-spacing:.16em;
  font-weight:700}
.page-head h1 {
  font:600 clamp(30px,3vw,42px) "Playfair Display";
  margin:6px 0 3px}
.page-head p {
  margin:0;
  color:var(--muted);
  font-size:16px}
.primary,.outline {
  border-radius:8px;
  padding:11px 16px;
  font-size:12px;
  font-weight:700}
.primary {
  border:0;
  background:var(--forest);
  color:white}
.outline {
  border:1px solid var(--line);
  background:white}
.verified {
  padding:13px 17px;
  background:#e6f1e8;
  border:1px solid #cfe1d2;
  border-radius:11px;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px}
.verified i,.credential-status i {
  width:32px;
  height:36px;
  background:var(--forest);
  color:white;
  display:grid;
  place-items:center;
  clip-path:polygon(50% 0,95% 18%,87% 76%,50% 100%,13% 76%,5% 18%)}
.verified div {
  display:grid}
.verified strong {
  font-size:16px}
.verified small {
  font-size:11px;
  color:var(--muted)}
.verified button {
  margin-left:auto;
  border:0;
  background:none;
  font-size:12px;
  font-weight:700}
.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:13px;
  margin-bottom:17px}
.stats article,.panel {
  background:white;
  border:1px solid #e0e5e1;
  border-radius:13px}
.stats article {
  padding:16px}
.stats article>span {
  width:32px;
  height:32px;
  border-radius:8px;
  background:var(--mint);
  display:grid;
  place-items:center}
.stats p {
  font-size:12px;
  color:var(--muted);
  margin:12px 0 3px}
.stats strong {
  font:600 24px "Playfair Display"}
.stats small {
  display:block;
  color:var(--muted);
  font-size:11px;
  margin-top:4px}
.panel {
  padding:19px}
.overview-grid {
  display:grid;
  grid-template-columns:1.5fr .8fr;
  gap:17px}
.panel-head {
  display:flex;
  justify-content:space-between;
  align-items:center}
.panel-head h2,.sync h2,.bank h2,.credentials h2 {
  font:600 19px "Playfair Display";
  margin:3px 0}
.panel-head p,.sync > p {
  font-size:12px;
  color:var(--muted)}
.panel-head button {
  border:0;
  background:none;
  color:var(--terra);
  font-size:12px;
  font-weight:700}
.session {
  display:grid;
  grid-template-columns:60px 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px 0;
  border-bottom:1px solid #edf0ed}
.session:last-child {
  border:0}
.time {
  display:grid;
  text-align:center;
  border-right:1px solid var(--line)}
.time strong {
  font-size:16px}
.time small {
  font-size:11px;
  color:var(--muted)}
.client {
  display:flex;
  gap:9px;
  align-items:center}
.client div {
  display:grid}
.client strong {
  font-size:15px}
.client small {
  font-size:11px;
  color:var(--muted)}
.join {
  border:0;
  background:var(--terra);
  color:white;
  padding:8px 11px;
  border-radius:7px;
  font-size:12px;
  font-weight:700}
.activity article {
  display:flex;
  gap:10px;
  align-items:center;
  padding:13px 0;
  border-bottom:1px solid #edf0ed}
.activity article>i {
  width:30px;
  height:30px;
  background:var(--mint);
  border-radius:8px;
  display:grid;
  place-items:center}
.activity article div {
  display:grid}
.activity strong {
  font-size:16px}
.activity small {
  font-size:11px;
  color:var(--muted)}
.activity article>b {
  margin-left:auto;
  color:#37845c;
  font-size:16px}
.tabs {
  display:flex;
  border-bottom:1px solid var(--line);
  gap:20px}
.tabs button {
  border:0;
  border-bottom:2px solid transparent;
  background:none;
  padding:10px 2px;
  color:var(--muted);
  font-size:12px;
  font-weight:700}
.tabs button.active {
  border-color:var(--terra);
  color:var(--ink)}
.table {
  margin-top:14px;
  padding:0 17px}
.row {
  display:grid;
  grid-template-columns:1.2fr 0.8fr 1.2fr 1fr .6fr auto;
  gap:14px;
  align-items:center;
  padding:14px 3px;
  border-bottom:1px solid #edf0ed;
  font-size:16px}
.row.head {
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  font-weight:700}
.status {
  padding:5px 8px;
  border-radius:99px;
  background:#e3f1e7;
  color:#337953;
  width:max-content}
.two-col {
  display:grid;
  grid-template-columns:1.5fr .7fr;
  gap:17px}
.day {
  display:grid;
  grid-template-columns:95px 40px 1fr;
  gap:12px;
  align-items:center;
  padding:11px 0;
  border-top:1px solid #edf0ed;
  font-size:16px}
.times {
  display:flex;
  align-items:center;
  gap:7px}
.times input, .times select {
  width:115px;
  padding:7px 10px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fbfcfb;
  font-size:14px;
  font-weight:600;
  color:var(--ink);
  outline:none;
  cursor:pointer}
.toggle {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:16px}
.toggle input {
  display:none}
.toggle i {
  width:34px;
  height:18px;
  border-radius:99px;
  background:#bac3bd;
  position:relative}
.toggle i:after {
  content:"";
  position:absolute;
  width:14px;
  height:14px;
  left:2px;
  top:2px;
  background:white;
  border-radius:50%}
.toggle input:checked+i {
  background:var(--forest)}
.toggle input:checked+i:after {
  left:18px}
.sync>button {
  width:100%;
  display:flex;
  gap:9px;
  align-items:center;
  text-align:left;
  padding:10px;
  margin:10px 0;
  border:1px solid var(--line);
  background:white;
  border-radius:8px}
.sync>button i {
  width:29px;
  height:29px;
  border-radius:7px;
  display:grid;
  place-items:center}
.google {
  background:#f5e2dc;
  color:#b64f39}
.outlook {
  background:#e2ebf5;
  color:#2868a4}
.sync button span {
  display:grid}
.sync button strong {
  font-size:16px}
.sync button small {
  font-size:11px;
  color:var(--muted)}
.sync button b {
  margin-left:auto}
.sync hr,.bank hr {
  border:0;
  border-top:1px solid var(--line);
  margin:18px 0}
.sync > label {
  display:grid;
  gap:5px;
  font-size:11px;
  font-weight:700;
  margin-top:10px}
.sync select,.form input,.form select,.form textarea {
  padding:9px;
  border:1px solid var(--line);
  border-radius:7px;
  border-bottom:1px solid #edf0ed;
  font-size:16px}
.doc-row.head {
  color:var(--muted);
  text-transform:uppercase;
  font-size:16px}
.doc-row strong {
  font-size:16px}
.doc-row small {
  display:block;
  color:var(--muted)}
.finance {
  grid-template-columns:repeat(3,1fr)}
.earnings {
  grid-template-columns:1.5fr .7fr;
  margin-bottom:17px}
.chart {
  height:260px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:end;
  justify-content:space-around;
  padding:20px;
  margin-top:15px;
  background:repeating-linear-gradient(to bottom,#edf0ed 0 1px,transparent 1px 20%)}
.chart i {
  width:9%;
  height:var(--h);
  background:#adc7b4;
  border-radius:6px 6px 0 0;
  position:relative}
.chart i.current {
  background:var(--forest)}
.chart b {
  position:absolute;
  bottom:-18px;
  font:500 8px "DM Sans";
  color:var(--muted)}
.bank>div {
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  background:var(--mint);
  border-radius:8px}
.bank div span {
  display:grid}
.bank small {
  color:var(--muted);
  font-size:16px}
.bank div>b {
  margin-left:auto}
.bank>p {
  display:flex;
  justify-content:space-between;
  font-size:16px}
.bank .outline {
  width:100%}
.profile {
  grid-template-columns:1.3fr .7fr}
.profile-top {
  display:flex;
  align-items:center;
  gap:13px;
  border-bottom:1px solid var(--line);
  padding-bottom:16px}
.avatar.large {
  width:62px;
  height:62px;
  font-size:16px}
.profile-top h2 {
  font:600 19px "Playfair Display";
  margin:0}
.profile-top small {
  font-size:11px;
  color:var(--muted)}
.progress {
  width:160px;
  height:5px;
  background:#e3e8e4;
  border-radius:5px}
.progress i {
  display:block;
  width:92%;
  height:100%;
  background:var(--forest)}
.form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px}
.form label {
  display:grid;
  gap:5px;
  font-size:11px;
  font-weight:700}
.form .full {
  grid-column:1/-1}
.form textarea {
  min-height:85px}
.credential-status {
  display:flex;
  gap:9px;
  align-items:center;
  background:var(--mint);
  padding:11px;
  border-radius:9px}
.credential-status span {
  display:grid}
.credential-status strong {
  font-size:16px}
.credential-status small {
  font-size:11px;
  color:var(--muted)}
.credentials>p {
  display:flex;
  gap:10px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  font-size:15px}
.credentials p span {
  display:grid}
.credentials p strong {
  font-size:16px}
.credentials p small {
  font-size:11px;
  color:var(--muted)}
.credentials p b {
  margin-left:auto;
  color:#39835b}
.credentials>.outline {
  width:100%}
.privacy {
  display:block;
  background:#f4f6f3;
  padding:10px;
  margin-top:12px;
  color:var(--muted);
  line-height:1.5}
.green {
  color:#39835b!important}
.backdrop {
  position:fixed;
  inset:0;
  background:#0b1d17cc;
  z-index:60;
  display:grid;
  place-items:center;
  padding:20px}
.backdrop[hidden] {
  display:none}
.call-modal {
  width:min(1050px,100%);
  background:white;
  padding:20px;
  border-radius:17px;
  position:relative}
.call-modal>button {
  position:absolute;
  right:14px;
  top:14px;
  border:0;
  border-radius:50%;
  width:32px;
  height:32px}
.call-modal h2 {
  font:600 24px "Playfair Display";
  margin:6px 0}
.call-modal p {
  font-size:12px;
  color:var(--muted)}
#jitsi {
  display:grid}
.sync button strong {
  font-size:16px}
.sync button small {
  font-size:11px;
  color:var(--muted)}
.sync button b {
  margin-left:auto}
.sync hr,.bank hr {
  border:0;
  border-top:1px solid var(--line);
  margin:18px 0}
.sync > label {
  display:grid;
  gap:5px;
  font-size:11px;
  font-weight:700;
  margin-top:10px}
.sync select,.form input,.form select,.form textarea {
  padding:9px;
  border:1px solid var(--line);
  border-radius:7px;
  border-bottom:1px solid #edf0ed;
  font-size:16px}
.doc-row.head {
  color:var(--muted);
  text-transform:uppercase;
  font-size:16px}
.doc-row strong {
  font-size:16px}
.doc-row small {
  display:block;
  color:var(--muted)}
.finance {
  grid-template-columns:repeat(3,1fr)}
.earnings {
  grid-template-columns:1.5fr .7fr;
  margin-bottom:17px}
.chart {
  height:260px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:end;
  justify-content:space-around;
  padding:20px;
  margin-top:15px;
  background:repeating-linear-gradient(to bottom,#edf0ed 0 1px,transparent 1px 20%)}
.chart i {
  width:9%;
  height:var(--h);
  background:#adc7b4;
  border-radius:6px 6px 0 0;
  position:relative}
.chart i.current {
  background:var(--forest)}
.chart b {
  position:absolute;
  bottom:-18px;
  font:500 8px "DM Sans";
  color:var(--muted)}
.bank>div {
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  background:var(--mint);
  border-radius:8px}
.bank div span {
  display:grid}
.bank small {
  color:var(--muted);
  font-size:16px}
.bank div>b {
  margin-left:auto}
.bank>p {
  display:flex;
  justify-content:space-between;
  font-size:16px}
.bank .outline {
  width:100%}
.profile {
  grid-template-columns: 1.4fr 0.6fr;
  gap: 24px;
}
.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  background: linear-gradient(135deg, #f0f7f3 0%, #e8f3ee 100%);
  border: 1px solid #c8ddd0;
  border-radius: 14px;
  margin-bottom: 6px;
}
.avatar.large {
  width: 72px;
  height: 72px;
  min-width: 72px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(30,77,59,0.18);
}
.profile-top h2 {
  font: 700 20px "Playfair Display", serif;
  margin: 0 0 2px;
  color: var(--forest, #1e4d3b);
}
.profile-top small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.progress {
  width: 180px;
  height: 6px;
  background: rgba(30,77,59,0.12);
  border-radius: 99px;
  margin-top: 6px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2d7a56, var(--forest, #1e4d3b));
  border-radius: 99px;
  transition: width 0.6s ease;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.form input, .form textarea, .form select {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  color: var(--ink, #173c30);
  background: #fff;
  border: 1.5px solid #d4e0d9;
  border-radius: 10px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.form input:focus, .form textarea:focus, .form select:focus {
  border-color: var(--forest, #1e4d3b);
  box-shadow: 0 0 0 3px rgba(30,77,59,0.08);
}
.form input:read-only {
  background: #f5f8f6;
  color: var(--muted);
  cursor: not-allowed;
}
.form .full {
  grid-column: 1 / -1;
}
.form textarea {
  min-height: 95px;
  resize: vertical;
  line-height: 1.55;
}
.credential-status {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, #eef7f2, #e3f2ea);
  border: 1px solid #b8ddc8;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 18px;
}
.credential-status span {
  display: grid;
  gap: 2px;
}
.credential-status strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest, #1e4d3b);
}
.credential-status small {
  font-size: 11.5px;
  color: #4a7a62;
  font-weight: 500;
}
.credentials > p {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.credentials p span {
  display: grid;
  gap: 2px;
}
.credentials p strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.credentials p small {
  font-size: 11.5px;
  color: var(--muted);
}
.credentials p b {
  margin-left: auto;
  color: #39835b;
  font-size: 13px;
}
.credentials > .outline {
  width: 100%;
  margin-top: 4px;
}
.privacy {
  display: block;
  background: #f4f7f5;
  padding: 11px 13px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid #dde8e2;
}
.green {
  color:#39835b!important}
.backdrop {
  position:fixed;
  inset:0;
  background:#0b1d17cc;
  z-index:60;
  display:grid;
  place-items:center;
  padding:20px}
.backdrop[hidden] {
  display:none}
.call-modal {
  width:min(1050px,100%);
  background:white;
  padding:20px;
  border-radius:17px;
  position:relative}
.call-modal>button {
  position:absolute;
  right:14px;
  top:14px;
  border:0;
  border-radius:50%;
  width:32px;
  height:32px}
.call-modal h2 {
  font:600 24px "Playfair Display";
  margin:6px 0}
.call-modal p {
  font-size:12px;
  color:var(--muted)}
#jitsi {
  height:min(670px,72vh);
  background:#111;
  border-radius:10px;
  overflow:hidden}
.toast {
  position:fixed;
  z-index:90;
  left:50%;
  bottom:25px;
  transform:translate(-50%,30px);
  opacity:0;
  background:var(--ink);
  color:white;
  padding:11px 18px;
  border-radius:99px}
.chat {
  padding:0;
  height:620px;
  display:grid;
  grid-template-columns:300px 1fr;
  overflow:hidden;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fff}

/* ── Thread List (left sidebar) ── */
.threads {
  border-right:1px solid var(--line);
  overflow-y:auto;
  background:linear-gradient(180deg, #f8faf7 0%, #fff 100%)}
.threads-header {
  padding:18px 18px 12px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--muted);
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,0.8);
  backdrop-filter:blur(8px);
  position:sticky;
  top:0;
  z-index:2}
.thread {
  display:flex;
  gap:12px;
  padding:14px 18px;
  border-bottom:1px solid #f0f2ef;
  cursor:pointer;
  transition:all 0.2s ease;
  position:relative}
.thread:hover {
  background:#f4f7f3}
.thread.active {
  background:var(--mint);
  border-left:3px solid var(--forest)}
.thread.active::after {
  content:'';
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--forest)}
.thread .avatar {
  width:42px;
  height:42px;
  min-width:42px;
  font-size:14px}
.thread-info {
  min-width:0;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:2px}
.thread-info strong {
  font-size:14px;
  font-weight:600;
  color:var(--ink)}
.thread-info .thread-preview {
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  line-height:1.4}
.thread-info .thread-meta {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:1px}
.thread-info .thread-meta .thread-status {
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:10px;
  font-weight:600;
  padding:2px 7px;
  border-radius:20px;
  background:#e8f5e9;
  color:#2e7d32}
.thread-info .thread-meta .thread-status.inactive {
  background:#f5f5f5;
  color:#999}
.thread-info .thread-time {
  font-size:10px;
  color:#bbb;
  margin-left:auto;
  white-space:nowrap}

/* ── Conversation Area (right) ── */
.conversation {
  display:flex;
  flex-direction:column;
  min-width:0;
  height:100%;
  min-height:0}

/* Chat header */
.mobile-back-btn {
  display: none;
}
.chat-head {
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 20px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(8px)}
.chat-head .avatar {
  width:38px;
  height:38px;
  min-width:38px;
  font-size:13px}
.chat-head-info {
  flex:1;
  min-width:0}
.chat-head-info strong {
  font-size:15px;
  font-weight:600;
  display:block}
.chat-head-info small {
  font-size:12px;
  color:var(--muted);
  display:flex;
  align-items:center;
  gap:5px}
.chat-head-info .online-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#4caf50;
  display:inline-block;
  animation:pulse-dot 2s infinite}
@keyframes pulse-dot {
  0%,100% { opacity:1 }
  50% { opacity:0.4 }
}
.chat-head-actions {
  display:flex;
  gap:6px}
.chat-head-actions button {
  width:36px;
  height:36px;
  border:1px solid var(--line);
  background:white;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.15s ease}
.chat-head-actions button:hover {
  background:var(--mint);
  border-color:var(--forest)}

/* Message bubbles area */
.bubbles {
  flex:1;
  min-height:0;
  padding:24px 20px;
  background:linear-gradient(180deg, #f7f9f6 0%, #fafcf9 50%, #f5f7f4 100%);
  display:flex;
  flex-direction:column;
  gap:12px;
  overflow-y:auto;
  scroll-behavior:smooth}
.bubbles::-webkit-scrollbar {
  width:5px}
.bubbles::-webkit-scrollbar-track {
  background:transparent}
.bubbles::-webkit-scrollbar-thumb {
  background:#d4d8d2;
  border-radius:10px}

/* Dynamically loaded bubbles styling */
.bubbles p {
  align-self:flex-start;
  max-width:65%;
  font-size:13.5px;
  line-height:1.55;
  padding:10px 14px;
  background:white;
  border:1px solid #e8ebe7;
  border-radius:16px 16px 16px 4px;
  margin:0;
  color:var(--ink);
  box-shadow:0 1px 2px rgba(0,0,0,0.03);
  position:relative;
  word-wrap:break-word;
  animation:msg-in 0.25s ease-out}

.bubbles p.mine {
  align-self:flex-end;
  background:var(--forest);
  color:white;
  border-color:transparent;
  border-radius:16px 16px 4px 16px;
  box-shadow:0 2px 8px rgba(38,90,71,0.15)}

.bubbles p time {
  display:flex;
  align-items:center;
  gap:4px;
  justify-content:flex-end;
  font-size:10px;
  color:#999;
  margin-top:4px}

.bubbles p.mine time {
  color:rgba(255,255,255,0.6)}

.lock-indicator {
  font-size: 11px;
  margin-right: 4px;
  vertical-align: middle;
  opacity: 0.85;
}

@keyframes msg-in {
  from { opacity:0; transform:translateY(6px) }
  to { opacity:1; transform:translateY(0) }
}

/* Date separator */
.bubbles .date-separator, .bubbles > small {
  align-self:center;
  color:var(--muted);
  font-size:11px;
  font-weight:600;
  letter-spacing:0.04em;
  padding:4px 14px;
  background:rgba(255,255,255,0.8);
  border-radius:20px;
  border:1px solid #edf0ed;
  margin:12px 0}

/* Empty state */
.chat-empty {
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:var(--muted);
  text-align:center;
  padding:40px}
.chat-empty .chat-empty-icon {
  font-size:40px;
  margin-bottom:4px;
  opacity:0.5}
.chat-empty h3 {
  font-size:16px;
  font-weight:600;
  color:var(--ink);
  margin:0}
.chat-empty p {
  font-size:13px;
  margin:0;
  max-width:260px;
  line-height:1.5}

/* ── Message Input Bar Redesign ── */
#message-form {
  display:flex;
  align-items:center;
  gap:10px;
  padding:14px 20px;
  border-top:1px solid var(--line);
  background:#fff}

#message-form button[type="button"] {
  width:38px;
  height:38px;
  min-width:38px;
  border:1px solid var(--line);
  background:white;
  border-radius:50%;
  cursor:pointer;
  font-size:18px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.15s ease;
  color:var(--muted)}

#message-form button[type="button"]:hover {
  background:var(--mint);
  color:var(--forest);
  border-color:var(--forest)}

#message-form input {
  flex:1;
  padding:10px 16px;
  border:1px solid var(--line);
  border-radius:20px;
  font-size:13.5px;
  background:#f8faf7;
  transition:all 0.15s ease;
  outline:none;
  box-sizing:border-box}

#message-form input:focus {
  border-color:var(--forest);
  background:#fff;
  box-shadow:0 0 0 3px rgba(38,90,71,0.08)}

#message-form input::placeholder {
  color:#b8bdb5}

#message-form button:not([type="button"]) {
  width:38px;
  height:38px;
  min-width:38px;
  border:0;
  background:var(--forest);
  color:white;
  border-radius:50%;
  cursor:pointer;
  font-size:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
  box-shadow:0 2px 8px rgba(38,90,71,0.2)}

#message-form button:not([type="button"]):hover {
  background:#1e4a3a;
  transform:scale(1.05)}

#message-form button:not([type="button"]):active {
  transform:scale(0.95)}
.doc-row {
  display:grid;
  grid-template-columns:1.5fr 1fr .8fr .8fr;
  gap:12px;
  padding:14px;
  border-bottom:1px solid #edf0ed;
  font-size:16px}
.doc-row.head {
  color:var(--muted);
  text-transform:uppercase;
  font-size:16px}
.doc-row strong {
  font-size:16px}
.doc-row small {
  display:block;
  color:var(--muted)}
.finance {
  grid-template-columns:repeat(3,1fr)}
.earnings {
  grid-template-columns:1.5fr .7fr;
  margin-bottom:17px}
.chart {
  height:260px;
  border-bottom:1px solid var(--line);
  display:flex;
  align-items:end;
  justify-content:space-around;
  padding:20px;
  margin-top:15px;
  background:repeating-linear-gradient(to bottom,#edf0ed 0 1px,transparent 1px 20%)}
.chart i {
  width:9%;
  height:var(--h);
  background:#adc7b4;
  border-radius:6px 6px 0 0;
  position:relative}
.chart i.current {
  background:var(--forest)}
.chart b {
  position:absolute;
  bottom:-18px;
  font:500 8px "DM Sans";
  color:var(--muted)}
.bank>div {
  display:flex;
  gap:10px;
  align-items:center;
  padding:12px;
  background:var(--mint);
  border-radius:8px}
.bank div span {
  display:grid}
.bank small {
  color:var(--muted);
  font-size:16px}
.bank div>b {
  margin-left:auto}
.bank>p {
  display:flex;
  justify-content:space-between;
  font-size:16px}
.bank .outline {
  width:100%}
.profile {
  grid-template-columns:1.3fr .7fr}
.profile-top {
  display:flex;
  align-items:center;
  gap:13px;
  border-bottom:1px solid var(--line);
  padding-bottom:16px}
.avatar.large {
  width:62px;
  height:62px;
  font-size:16px}
.profile-top h2 {
  font:600 19px "Playfair Display";
  margin:0}
.profile-top small {
  font-size:11px;
  color:var(--muted)}
.progress {
  width:160px;
  height:5px;
  background:#e3e8e4;
  border-radius:5px}
.progress i {
  display:block;
  width:92%;
  height:100%;
  background:var(--forest)}
.form {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:16px}
.form label {
  display:grid;
  gap:5px;
  font-size:11px;
  font-weight:700}
.form .full {
  grid-column:1/-1}
.form textarea {
  min-height:85px}
.credential-status {
  display:flex;
  gap:9px;
  align-items:center;
  background:var(--mint);
  padding:11px;
  border-radius:9px}
.credential-status span {
  display:grid}
.credential-status strong {
  font-size:16px}
.credential-status small {
  font-size:11px;
  color:var(--muted)}
.credentials>p {
  display:flex;
  gap:10px;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--line);
  font-size:15px}
.credentials p span {
  display:grid}
.credentials p strong {
  font-size:16px}
.credentials p small {
  font-size:11px;
  color:var(--muted)}
.credentials p b {
  margin-left:auto;
  color:#39835b}
.credentials>.outline {
  width:100%}
.privacy {
  display:block;
  background:#f4f6f3;
  padding:10px;
  margin-top:12px;
  color:var(--muted);
  line-height:1.5}
.green {
  color:#39835b!important}
.backdrop {
  position:fixed;
  inset:0;
  background:#0b1d17cc;
  z-index:60;
  display:grid;
  place-items:center;
  padding:20px}
.backdrop[hidden] {
  display:none}
.call-modal {
  width:min(1050px,100%);
  background:white;
  padding:20px;
  border-radius:17px;
  position:relative}
.call-modal>button {
  position:absolute;
  right:14px;
  top:14px;
  border:0;
  border-radius:50%;
  width:32px;
  height:32px}
.call-modal h2 {
  font:600 24px "Playfair Display";
  margin:6px 0}
.call-modal p {
  font-size:12px;
  color:var(--muted)}
#jitsi {
  height:min(670px,72vh);
  background:#111;
  border-radius:10px;
  overflow:hidden}
.toast {
  position:fixed;
  z-index:90;
  left:50%;
  bottom:25px;
  transform:translate(-50%,30px);
  opacity:0;
  background:var(--ink);
  color:white;
  padding:11px 18px;
  border-radius:99px;
  font-size:12px;
  transition:.3s}
.toast.show {
  opacity:1;
  transform:translate(-50%,0)}
@media(max-width:1050px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .overview-grid, .two-col, .profile, .earnings {
    grid-template-columns: 1fr;
  }
  .activity {
    display: none;
  }
}
@media(max-width:720px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding-bottom: 40px;
  }
  #sidebar.open {
    transform: translateX(0);
  }
  #sidebar.open::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.45);
    z-index: -1;
    touch-action: none;
  }
  .app {
    margin-left: 0;
  }
  #menu {
    display: block;
    min-width: 44px;
    min-height: 44px;
    font-size: 22px;
  }
  .search {
    display: none;
  }
  .identity {
    display: none;
  }
  main {
    padding: 25px 4vw;
  }
  .page-head {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .page-head .primary {
    width: 100%;
    text-align: center;
  }
  .chat {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 500px;
    position: relative;
    overflow: hidden;
  }
  /* Mobile: show threads by default, hide conversation */
  .threads {
    display: block;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .conversation {
    display: none !important;
  }
  /* When chat panel is in convo-mode, swap visibility */
  .chat.mobile-convo .threads {
    display: none;
  }
  .chat.mobile-convo .conversation {
    display: flex !important;
  }
  .mobile-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--forest);
    cursor: pointer;
    padding: 0 10px 0 0;
    font-weight: 700;
    line-height: 1;
  }
  .bubbles {
    min-height: 300px;
    max-height: 50vh;
  }
  .bubbles p {
    max-width: 85%;
  }
  .conversation form {
    padding: 10px;
    gap: 6px;
  }
  .conversation form input {
    font-size: 16px;
    padding: 11px;
  }
  .panel.table, #docs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  .panel.table .row, #session-table .row {
    min-width: 650px;
  }
  #docs .doc-row {
    min-width: 550px;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .form .full {
    grid-column: 1;
  }
  .session {
    grid-template-columns: 50px 1fr;
    gap: 10px;
  }
  .session .join {
    grid-column: 2;
  }
  .verified {
    flex-wrap: wrap;
  }
  .verified button {
    flex-basis: 100%;
    text-align: center;
    margin-left: 0;
  }
  .credential-status {
    flex-wrap: wrap;
  }
  .credentials > p {
    flex-wrap: wrap;
  }
  .tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .call-modal {
    padding: 16px;
  }
  .call-modal h2 {
    font-size: 20px;
  }
  #jitsi {
    height: min(400px, 60vh);
    border-radius: 8px;
  }
  .chart {
    height: 200px;
    padding: 15px 10px;
  }
  .bank > div {
    flex-wrap: wrap;
  }
  .bank .outline {
    margin-top: 12px;
  }
}
@media(max-width:480px) {
  .stats, .finance {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 14px;
  }
  .day {
    grid-template-columns: 75px 35px 1fr;
  }
  .times input {
    width: 72px;
  }
  .call-modal {
    padding: 12px;
  }
  .page-head h1 {
    font-size: 26px;
  }
  .app > header {
    height: 60px;
    padding: 0 4vw;
  }
  .profile-top {
    flex-direction: column;
    text-align: center;
  }
  .progress {
    margin: 8px auto 0;
  }
}
#lawyer-auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--cream);
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}
.auth-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(23, 60, 48, 0.08);
  width: 100%;
  max-width: 440px;
  padding: 40px;
  border: 1px solid var(--line);
  position: relative !important;
}
.close-auth-btn {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  border: none !important;
  background: #edf2ee !important;
  color: var(--ink) !important;
  font-size: 20px !important;
  font-family: sans-serif !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  text-decoration: none !important;
  z-index: 10 !important;
  line-height: 1 !important;
  transition: background 0.2s ease, transform 0.15s ease !important;
}
.close-auth-btn:hover {
  background: #dbe4dd !important;
  color: var(--forest) !important;
  transform: scale(1.05) !important;
}
.auth-card h2 {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--forest);
  margin: 0 0 8px;
}
.auth-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}
.auth-card form {
  display: grid;
  gap: 16px;
}
.auth-card .field {
  display: grid;
  gap: 6px;
}
.auth-card label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.auth-card input, .auth-card select {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.auth-card input:focus, .auth-card select:focus {
  border-color: var(--forest);
}
.auth-card .btn {
  background: var(--forest);
  color: white;
  border: 0;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 10px;
  transition: opacity 0.2s;
}
.auth-card .btn:hover {
  opacity: 0.9;
}
.auth-card .switch-text {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.auth-card .switch-text button {
  background: none;
  border: 0;
  color: var(--forest);
  font-weight: 600;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}
.auth-card .error-message {
  color: var(--terra);
  font-size: 13px;
  font-weight: 600;
}

/* ── Mobile Verify Row ─────────────────────────────────────────────────── */
.mobile-verify-label { display: flex; flex-direction: column; gap: 6px; }
.mobile-verify-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.mobile-verify-row input {
  flex: 1;
  min-width: 0;
}
.verify-btn {
  flex-shrink: 0;
  height: 42px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--forest);
  border-radius: 8px;
  background: transparent;
  color: var(--forest);
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.verify-btn:hover { background: var(--forest); color: #fff; }
.verify-btn.verified {
  border-color: #2e7d4f;
  background: #edf7f1;
  color: #2e7d4f;
  cursor: default;
  pointer-events: none;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 42px;
  font-size: 12px;
  font-weight: 700;
  color: #2e7d4f;
  background: #edf7f1;
  border: 1px solid #b5dfca;
  border-radius: 8px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}
.verified-badge[hidden] {
  display: none !important;
}

/* ── OTP Modal ─────────────────────────────────────────────────────────── */
#otp-modal {
  position: fixed;
  inset: 0;
  background: rgba(23,37,31,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn .2s ease;
}
#otp-modal[hidden] { display: none; }
.otp-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px 36px;
  width: 360px;
  max-width: 95vw;
  text-align: center;
  position: relative;
  box-shadow: 0 24px 64px rgba(23,37,31,.18);
  animation: slideUp .22s cubic-bezier(.34,1.28,.64,1);
}
.otp-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition: color .15s;
}
.otp-close:hover { color: var(--terra); }
.otp-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.otp-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
}
.otp-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.5;
}
.otp-inputs {
  margin-bottom: 6px;
}
#otp-input {
  width: 100%;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  outline: none;
  transition: border-color .18s;
  font-family: "DM Sans", monospace;
  color: var(--forest);
}
#otp-input:focus {
  border-color: var(--forest);
}
.otp-error {
  font-size: 12px;
  color: var(--terra);
  font-weight: 600;
  min-height: 18px;
  margin: 4px 0 12px;
}
#otp-confirm-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .18s, transform .1s;
  margin-bottom: 12px;
  font-family: "DM Sans", sans-serif;
}
#otp-confirm-btn:hover { opacity: .9; }
#otp-confirm-btn:active { transform: scale(.98); }
.otp-resend {
  background: none;
  border: none;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  font-family: "DM Sans", sans-serif;
  transition: color .15s;
}
.otp-resend:hover { color: var(--forest); }

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-warn {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,98,69,.6); }
  50%  { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(200,98,69,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(200,98,69,0); }
}

/* ── Mobile Lawyer Consultation Call Responsiveness ───────────────────────── */
@media (max-width: 720px) {
  #call.backdrop {
    padding: 0 !important;
  }
  #call .call-modal {
    width: 100% !important;
    height: 94vh !important;
    height: 94dvh !important;
    max-height: 94vh !important;
    border-radius: 16px !important;
    margin: 0 !important;
    padding: 12px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
  }
  #call .call-modal h2 {
    font-size: 18px !important;
    margin: 2px 0 !important;
    line-height: 1.25 !important;
  }
  #call .call-modal p {
    font-size: 11px;
    margin: 0 0 6px 0 !important;
  }
  #call .call-modal #jitsi {
    flex: 1 1 0% !important;
    height: 100% !important;
    min-height: 380px !important;
    border-radius: 12px;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    position: relative !important;
  }
  #call .call-modal #jitsi > iframe,
  #call .call-modal #jitsi > div {
    width: 100% !important;
    height: 100% !important;
    flex: 1 1 0% !important;
  }
}

/* ── Bank Account Panel & UPI Verification ─────────────────────────────────── */
.bank .panel-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.bank .panel-head h2 { margin:0; }

/* Bank account display card */
.bank-card {
  display:flex;
  align-items:flex-start;
  gap:14px;
  background:var(--mint);
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:14px;
  position:relative;
}
.bank-card-icon {
  width:40px;
  height:40px;
  border-radius:50%;
  background:var(--forest);
  color:white;
  display:grid;
  place-items:center;
  font-size:18px;
  flex-shrink:0;
}
.bank-card-info { flex:1; min-width:0; }
.bank-card-info strong { display:block; font-size:15px; margin-bottom:2px; }
.bank-card-info .bank-acno { font-family:monospace; font-size:13px; color:var(--muted); }
.bank-card-info .bank-ifsc { font-family:monospace; font-size:12px; color:var(--muted); }
.bank-vpa-row { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--muted); margin-top:4px; }
.bank-vpa-row .vpa-val { font-weight:600; color:var(--ink); }

/* Verification badge */
.bank-verify-badge {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
  margin-top:10px;
}
.bank-verify-badge.verified {
  background:#e6f4ed;
  color:#1b5e3b;
}
.bank-verify-badge.unverified {
  background:#fdf2ee;
  color:var(--terra);
}

/* Verify button */
.btn-verify-upi {
  display:flex;
  align-items:center;
  gap:8px;
  width:100%;
  margin-top:14px;
  padding:11px 16px;
  background:linear-gradient(135deg,#5f259f,#a04fc7);
  color:white;
  border:none;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  transition:opacity .2s;
  justify-content:center;
}
.btn-verify-upi:hover { opacity:.88; }
.btn-verify-upi:disabled { opacity:.5; cursor:not-allowed; }
.btn-verify-upi .phonepe-icon { font-size:18px; }

/* UTR chip */
.utr-chip {
  display:inline-block;
  background:#f0f0f8;
  border:1px solid #d8d8ea;
  border-radius:6px;
  padding:3px 8px;
  font-family:monospace;
  font-size:11px;
  color:#444;
  margin-top:6px;
}

/* Payout schedule info */
.payout-info {
  border-top:1px solid var(--line);
  margin-top:14px;
  padding-top:12px;
}
.payout-info p { display:flex; justify-content:space-between; margin:5px 0; font-size:13px; color:var(--muted); }
.payout-info p b { color:var(--ink); font-weight:600; }

/* PDF.js Text Layer Overlay (prevents double/overlapping text rendering) */
.textLayer {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  opacity: 0.95;
  line-height: 1.0;
  user-select: text;
  -webkit-user-select: text;
  pointer-events: auto !important;
}
.textLayer span, #pdf-text-layer span {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  position: absolute;
  white-space: pre;
  cursor: text !important;
  transform-origin: 0% 0%;
  pointer-events: auto !important;
  user-select: text !important;
  -webkit-user-select: text !important;
}
.textLayer ::selection, .textLayer *::selection, #pdf-text-layer ::selection, #pdf-text-layer *::selection {
  background: rgba(250, 204, 21, 0.45) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.textLayer ::-moz-selection, .textLayer *::-moz-selection, #pdf-text-layer ::-moz-selection, #pdf-text-layer *::-moz-selection {
  background: rgba(250, 204, 21, 0.45) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

#doc-text-body ::selection, 
#doc-text-body *::selection,
.doc-line ::selection,
.doc-line *::selection {
  background: #fde047 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}
#doc-text-body ::-moz-selection, 
#doc-text-body *::-moz-selection,
.doc-line ::-moz-selection,
.doc-line *::-moz-selection {
  background: #fde047 !important;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
}

#pdf-floating-text-popover {
  position: absolute;
  z-index: 10000;
  background: var(--forest, #17382c);
  color: white;
  padding: 8px 16px;
  border-radius: 99px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transform: translate(-50%, -100%);
  margin-top: -8px;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
#pdf-floating-text-popover:hover {
  background: #1e4d3e;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}
@keyframes popoverFadeIn {
  from { opacity: 0; transform: translate(-50%, -90%) scale(0.95); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

.textLayer span.inline-text-highlight,
#pdf-text-layer span.inline-text-highlight {
  background: rgba(250, 204, 21, 0.45) !important;
  border-bottom: 2px solid #ca8a04 !important;
  border-radius: 2px;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  mix-blend-mode: multiply !important;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.textLayer span.inline-text-highlight:hover,
.textLayer span.inline-text-highlight.active-highlight,
#pdf-text-layer span.inline-text-highlight:hover,
#pdf-text-layer span.inline-text-highlight.active-highlight {
  background: rgba(234, 179, 8, 0.75) !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.6) !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

#doc-text-body .inline-text-highlight,
#doc-text-body .inline-text-highlight *,
.doc-line.inline-text-highlight,
.doc-line.inline-text-highlight *,
.doc-line .inline-text-highlight,
.doc-line .inline-text-highlight * {
  background: rgba(253, 224, 71, 0.85) !important;
  border-bottom: 2px solid #ca8a04 !important;
  border-radius: 3px;
  padding: 1px 4px;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  display: inline;
}
#doc-text-body .inline-text-highlight:hover,
#doc-text-body .inline-text-highlight.active-highlight,
.doc-line .inline-text-highlight:hover,
.doc-line .inline-text-highlight.active-highlight {
  background: #fde047 !important;
  color: #000000 !important;
  -webkit-text-fill-color: #000000 !important;
  box-shadow: 0 0 8px rgba(202, 138, 4, 0.6) !important;
}

.highlight-pulse {
  animation: pulseGlow 1.8s ease-in-out infinite;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(234, 179, 8, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

.pdf-review-tab-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #64748b);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s;
}
.pdf-review-tab-btn.active {
  background: white;
  color: var(--forest, #17382c);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.payout-note {
  font-size:11px;
  color:var(--muted);
  font-style:italic;
  line-height:1.5;
  margin-top:10px;
  border-top:1px solid var(--line);
  padding-top:10px;
}

/* ── Responsive Annotator Modal Rules ── */
.pdf-annotator-container {
  display: flex;
  flex-direction: column;
  height: 85vh;
  max-height: 850px;
  background: #f7f9f8;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}
.pdf-annotator-header {
  background: var(--forest, #17382c);
  color: white;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pdf-annotator-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}
.pdf-mobile-toggle-group {
  display: none;
}

@media (max-width: 768px) {
  #pdf-annotator-overlay {
    padding: 6px !important;
  }
  .pdf-annotator-container {
    height: 94vh !important;
    max-height: 100vh !important;
    border-radius: 12px !important;
  }
  .pdf-annotator-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  #pdf-render-scroll {
    padding: 12px 8px !important;
  }
  .pdf-mobile-toggle-group {
    display: inline-flex !important;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 99px;
    padding: 3px;
    gap: 3px;
  }
  .pdf-mobile-toggle-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .pdf-mobile-toggle-btn.active {
    background: white;
    color: var(--forest, #17382c);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }
  
  /* Mobile Display Mode Switching */
  .pdf-annotator-container.pdf-mobile-show-doc #pdf-render-scroll {
    display: flex !important;
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
  }
  .pdf-annotator-container.pdf-mobile-show-doc #pdf-sidebar {
    display: none !important;
  }
  .pdf-annotator-container.pdf-mobile-show-sidebar #pdf-render-scroll {
    display: none !important;
  }
  .pdf-annotator-container.pdf-mobile-show-sidebar #pdf-sidebar {
    display: flex !important;
    flex: 1 !important;
    width: 100% !important;
    height: 100% !important;
    border-left: none !important;
  }
}

/* ── Lawyer Portal Mobile Responsiveness Enhancements ── */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
  }

  /* Horizontal scroll for data tables */
  .table-responsive, .panel-table, main {
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Layout grids */
  .stats, .overview-grid, .two-col, .profile, .earnings, .fee-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  /* Cards and Panels */
  .panel, .card {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  /* Page Head & Actions */
  .page-head {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }
  .page-head .primary, .page-head button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Modals */
  .call-modal, .modal-card {
    width: 95vw !important;
    max-height: 94vh !important;
    padding: 20px 14px !important;
    border-radius: 16px !important;
  }

  /* Jitsi Container */
  #jitsi {
    height: min(480px, 72vh) !important;
  }
}

/* ── Language Auto-Suggest Dropdown Component ── */
.lang-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #c8d6cb;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 999;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 4px;
  padding: 4px 0;
  box-sizing: border-box;
}

.lang-dropdown-item {
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink, #173c30);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-dropdown-item:hover, .lang-dropdown-item.selected {
  background: #eef5f0;
  color: var(--forest, #1e4d3b);
  font-weight: 600;
}

/* ── Practice Area Checkboxes ────────────────────────────────────────────── */
.practice-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.practice-checkboxes label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid #d4e0d9;
  border-radius: 20px;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--ink) !important;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  margin: 0 !important;
}

.practice-checkboxes label:has(input:checked) {
  background: #e6f2ec;
  border-color: var(--forest, #1e4d3b);
  color: var(--forest, #1e4d3b) !important;
  font-weight: 600 !important;
}

.practice-checkboxes input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--forest, #1e4d3b);
  cursor: pointer;
  border: none;
  padding: 0;
}

/* ── Form Section Divider ─────────────────────────────────────────────────── */
.form-section-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}

.form-section-divider span {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.form-section-divider::before,
.form-section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ── Credential Icon Badge ─────────────────────────────────────────────────── */
.credential-status i {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--forest, #1e4d3b);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(30,77,59,0.25);
}

/* ── Profile Panel save button ──────────────────────────────────────────────── */
#save-profile-btn {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
}

/* ── Consultation Table & Cards Redesign ────────────────────────── */
.consultation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.consultations-tabs {
  display: inline-flex;
  background: #edf3ef;
  padding: 4px;
  border-radius: 12px;
  gap: 4px;
  border: 1px solid #d8e6dc;
}

.consultations-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted, #668073);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.consultations-tabs button.active {
  background: white;
  color: var(--forest, #1e4d3b);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-weight: 700;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(30, 77, 59, 0.1);
  color: var(--forest, #1e4d3b);
}

.consultations-tabs button.active .tab-badge {
  background: var(--forest, #1e4d3b);
  color: white;
}

.consultation-card-panel {
  background: white;
  border: 1px solid #d5e0d7;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
}

#session-table .row {
  display: grid;
  grid-template-columns: 240px 140px 240px 200px 140px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f4f1;
  transition: background 0.18s ease;
  min-width: 1100px;
}

#session-table .row:last-child {
  border-bottom: none;
}

#session-table .row.session-row:hover {
  background: #fbfdfc;
}

#session-table .row.head {
  background: #f7faf8;
  border-bottom: 1px solid #e2ece5;
  padding: 12px 20px;
  color: #5c7567;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Specific column head alignment */
.col-head.col-client { text-align: left; }
.col-head.col-ref { text-align: left; }
.col-head.col-matter { text-align: left; }
.col-head.col-time { text-align: left; }
.col-head.col-status { text-align: center; }
.col-head.col-actions { text-align: right; }

/* Cell alignments matching heads */
.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}

.client-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--forest, #1e4d3b);
}

.client-sub {
  font-size: 11px;
  color: #7a9486;
  font-weight: 500;
}

/* Ref cell */
.ref-tag {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #3b6b55;
  background: #edf5f0;
  border: 1px solid #cce3d5;
  border-radius: 6px;
  padding: 4px 10px;
  letter-spacing: 0.03em;
}

/* Matter cell */
.matter-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #2c4438;
  background: #f4f8f5;
  border-radius: 8px;
  padding: 4px 10px;
  border: 1px solid #e1ebe4;
}

.matter-icon {
  font-size: 13px;
}

/* Datetime cell */
.datetime-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.datetime-date {
  font-size: 13px;
  font-weight: 700;
  color: #1e362a;
}

.datetime-time {
  font-size: 12px;
  color: #627d70;
  font-weight: 500;
}

.datetime-time small {
  color: #8fa79b;
}

/* Status cell */
.status-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.actions-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 99px;
  padding: 4px 12px;
  letter-spacing: 0.02em;
  width: fit-content;
}

.status-confirmed {
  background: #e8f6ed;
  color: #1b6338;
  border: 1px solid #b7e3c7;
}

.status-in-progress {
  background: #fff8e6;
  color: #996500;
  border: 1px solid #ffe299;
}

.status-completed {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.status-cancelled {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.status-pending {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.pulse-dot.amber {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* Action button group */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-action.btn-join {
  background: var(--forest, #1e4d3b);
  color: white;
  box-shadow: 0 2px 6px rgba(30, 77, 59, 0.25);
}

.btn-action.btn-join:hover:not(.disabled) {
  background: #15382b;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 77, 59, 0.35);
}

.btn-action.btn-join.disabled {
  background: #eef3f0 !important;
  color: #8ca497 !important;
  border-color: #d2e0d7 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.btn-action.btn-complete {
  background: white;
  color: var(--forest, #1e4d3b);
  border: 1px solid #c2d6c9;
}

.btn-action.btn-complete:hover:not(.disabled) {
  background: #edf5f0;
  border-color: var(--forest, #1e4d3b);
}

.btn-action.btn-complete.disabled {
  background: #fafcfb !important;
  color: #abc0b3 !important;
  border-color: #e0eae3 !important;
  cursor: not-allowed !important;
  opacity: 0.6;
}

.btn-action.btn-details {
  background: white;
  color: #3b5246;
  border: 1px solid #d2ded6;
}

.btn-action.btn-details:hover {
  background: #f4f8f5;
  color: var(--forest, #1e4d3b);
}

/* Empty state */
.empty-consultations {
  text-align: center;
  padding: 48px 20px;
}

.empty-consultations .empty-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.empty-consultations h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--forest, #1e4d3b);
  margin: 0 0 4px;
}

.empty-consultations p {
  font-size: 13px;
  color: var(--muted, #668073);
  margin: 0;
}

/* ── Sign in with Google Button & Auth Divider ────────────────────────── */
.btn-google-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid #d5e0d7;
  background: white;
  color: #17251f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  margin-bottom: 12px;
}

.btn-google-auth:hover {
  background: #f8faf8;
  border-color: #173c30;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #8fa79b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2ece5;
}

/* ── Notification Bell Dropdown Styles ── */
.bell {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--forest);
  border-radius: 50%;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bell:hover {
  background: rgba(23, 60, 48, 0.08);
}

.bell b#notification-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #e63946;
  color: white;
  font-size: 10px;
  font-weight: 800;
  border-radius: 10px;
  padding: 2px 6px;
  line-height: 1;
  box-shadow: 0 2px 5px rgba(230, 57, 70, 0.4);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2ece5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  overflow: hidden;
  animation: fadeInDown 0.2s ease-out forwards;
}

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

.notif-header {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2ee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8faf8;
}

.notif-header strong {
  font-size: 14px;
  color: #173c30;
  font-weight: 700;
}

.notif-header .text-btn {
  background: none;
  border: none;
  color: #2a6855;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.notif-header .text-btn:hover {
  text-decoration: underline;
}

.notif-list {
  max-height: 320px;
  overflow-y: auto;
}

.notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: #8fa79b;
  font-size: 13px;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f4f1;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background 0.15s ease;
  cursor: pointer;
}

.notif-item:last-child {
  border-bottom: none;
}

.notif-item:hover {
  background: #f4f8f5;
}

.notif-item.unread {
  background: #edf6f2;
}

.notif-icon {
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}

.notif-body {
  flex: 1;
}

.notif-title {
  font-size: 13px;
  font-weight: 600;
  color: #173c30;
  margin-bottom: 2px;
}

.notif-time {
  font-size: 11px;
  color: #8fa79b;
}
