/* ── CSS Variables ── */
:root {
  --navy: #0a0f1e;
  --navy-mid: #111827;
  --navy-light: #1e2a40;
  --navy-border: #263047;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --gold-dim: rgba(201, 168, 76, 0.15);
  --text: #e8eaf0;
  --text-muted: #7a8499;
  --text-dim: #4a5568;
  --green: #2ecc71;
  --orange: #f39c12;
  --red: #e74c3c;
  --blue: #3b82f6;
  --card-bg: #131c2e;
  --card-border: #1e2d45;
}

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

html,
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ── Background grid + glows ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* ── Animations ── */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.anim-slide-up {
  animation: slideUp 0.5s ease forwards;
}

.anim-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* ── Layout ── */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ── */
.sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid var(--card-border);
  padding: 1.8rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.5rem;
  margin-bottom: 2.5rem;
}

.sidebar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.sidebar-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-section-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  padding: 0 0.8rem;
  margin: 1.5rem 0 0.5rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 0.1rem;
  cursor: pointer;
}

.nav-item:hover {
  background: var(--navy-light);
  color: var(--text);
}

.nav-item.active {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
}

.sidebar-user {
  margin-top: auto;
  padding: 0.9rem 0.8rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a8892e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  flex-shrink: 0;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.user-id {
  font-size: 0.72rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.logout-btn {
  margin-left: auto;
  font-size: 1rem;
  color: var(--text-dim);
  cursor: pointer;
}

.logout-btn:hover {
  color: var(--red);
}

/* ── Notification Banners ── */
.notif-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-banner.urgent {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2), rgba(220, 38, 38, 0.08));
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #fca5a5;
}

.notif-banner.today {
  background: linear-gradient(135deg, rgba(202, 169, 87, 0.2), rgba(202, 169, 87, 0.08));
  border: 1px solid rgba(202, 169, 87, 0.4);
  color: var(--gold);
}

.notif-banner.tomorrow {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.notif-banner.stage-change {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.notif-banner-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.notif-banner-msg {
  flex: 1;
}

.notif-banner-join {
  padding: 0.4rem 1rem;
  border-radius: 8px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.notif-banner-join:hover {
  opacity: 0.85;
}

.notif-banner-close {
  background: none;
  border: none;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  opacity: 0.6;
  padding: 0.2rem 0.4rem;
  transition: opacity 0.2s;
}

.notif-banner-close:hover {
  opacity: 1;
}

/* ── Main content ── */
.main-content {
  margin-left: 260px;
  flex: 1;
  padding: 2rem 2.5rem;
  min-height: 100vh;
}

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.2rem;
}

.page-date {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
}

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 16px 16px 0 0;
}

.stat-accent.gold {
  background: var(--gold);
}

.stat-accent.green {
  background: var(--green);
}

.stat-accent.orange {
  background: var(--orange);
}

.stat-icon {
  position: absolute;
  right: 1.2rem;
  top: 1.2rem;
  font-size: 1.6rem;
  opacity: 0.3;
}

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

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0.3rem 0 0.2rem;
}

.stat-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Section header ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, var(--gold), #a8892e);
  border: none;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.03em;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--navy-border);
  background: var(--card-bg);
  color: var(--text-muted);
  transition: all 0.15s;
}

.btn-sm:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm.gold {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

/* ── Form inputs ── */
.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-input::placeholder {
  color: var(--text-dim);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.badge.active {
  background: rgba(46, 204, 113, 0.12);
  color: var(--green);
}

.badge.pending {
  background: rgba(243, 156, 18, 0.12);
  color: var(--orange);
}

.badge.closed {
  background: rgba(122, 132, 153, 0.12);
  color: var(--text-muted);
}

.badge.review {
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue);
}

/* ── Cases table ── */
.cases-table {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2rem;
}

.table-head {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1.2fr 1fr;
  padding: 0.85rem 1.5rem;
  background: var(--navy-light);
  border-bottom: 1px solid var(--card-border);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.table-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr 1fr 1.2fr 1fr;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  align-items: center;
  cursor: pointer;
  font-size: 0.88rem;
  transition: background 0.15s;
}

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

.table-row:hover {
  background: var(--navy-light);
}

.case-id {
  font-weight: 600;
  color: var(--gold);
  font-size: 0.82rem;
}

.case-title {
  color: var(--text);
}

.case-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cell-muted {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Card ── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.5rem;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

/* ── Case detail ── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  background: none;
  border: none;
  transition: color 0.15s;
}

.back-btn:hover {
  color: var(--gold);
}

.case-header-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.case-header-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--gold), #a8892e);
}

.case-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.case-big-id {
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-big-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.4rem 0 0.3rem;
}

.case-meta-row {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
}

.case-meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.case-meta-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.two-col {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
}

/* ── Timeline (vertical, legacy) ── */
.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--card-border);
}

.timeline-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-dot.done {
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid var(--green);
  color: var(--green);
}

.timeline-dot.current {
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  color: var(--gold);
}

.timeline-dot.upcoming {
  background: var(--navy-light);
  border: 2px solid var(--navy-border);
  color: var(--text-dim);
}

.timeline-content {
  padding-top: 0.35rem;
}

.timeline-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.timeline-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.timeline-date {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* ── Upload zone ── */
.upload-zone {
  border: 2px dashed var(--navy-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 1rem;
}

.upload-zone:hover {
  border-color: var(--gold);
  background: var(--gold-dim);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.upload-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* ── Doc list ── */
.doc-list {
  list-style: none;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.doc-name {
  flex: 1;
  font-weight: 500;
}

.doc-size {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.doc-status-uploaded {
  font-size: 0.72rem;
  color: var(--green);
}

.doc-status-pending {
  font-size: 0.72rem;
  color: var(--orange);
}

/* ── Login card ── */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  animation: slideUp 0.6s ease forwards;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.logo-area {
  text-align: center;
  margin-bottom: 2.5rem;
}

.logo-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.logo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
}

.logo-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Login tabs ── */
.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 1.8rem;
}

.login-tab {
  padding: 0.65rem 0.5rem;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.login-tab:hover {
  color: var(--text);
}

.login-tab.active {
  background: var(--card-bg);
  border: 1px solid var(--navy-border);
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step-dots {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.step-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--navy-border);
  transition: background 0.3s;
}

.step-dot.active {
  background: var(--gold);
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--gold);
  cursor: pointer;
}

/* ── Identifier type toggle (Login) ── */
.id-type-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.id-type-btn {
  padding: 0.7rem 0.5rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.2s;
}

.id-type-btn:hover {
  border-color: var(--gold);
  color: var(--text);
}

.id-type-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
}

/* ── OTP inputs ── */
.otp-inputs {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
}

.otp-input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 600;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.88rem;
  z-index: 999;
  animation: toastIn 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* ── Loading spinner ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--navy-border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 2rem auto;
}

/* ── Error state ── */
.error-box {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--red);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 0.85rem;
  color: var(--red);
  margin-bottom: 1rem;
}

/* ── Horizontal timeline ── */
.h-timeline {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
}

/* Each step takes equal width and stacks dot-row above label */
.h-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 110px;
}

/*
  Dot row: left-connector | dot | right-connector
  The connectors flex-grow to fill available space.
  First step's left connector and last step's right connector
  are invisible (transparent) so the line starts/ends at the
  first/last dot rather than the card edge.
*/
.h-dot-row {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Visible connector segment */
.h-connector {
  flex: 1;
  height: 2px;
  background: var(--navy-border);
}

/* Invisible spacer — preserves dot centering for edge steps */
.h-connector-invisible {
  flex: 1;
  height: 2px;
  background: transparent;
}

.h-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
}

.h-dot.done {
  background: rgba(46, 204, 113, 0.15);
  border: 2px solid var(--green);
  color: var(--green);
}

.h-dot.current {
  background: var(--gold-dim);
  border: 2px solid var(--gold);
  color: var(--gold);
}

.h-dot.upcoming {
  background: var(--navy-light);
  border: 2px solid var(--navy-border);
  color: var(--text-dim);
}

/* Label sits directly below the dot, centered */
.h-step-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.3;
  padding: 0 4px;
}

.h-step-date {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.2rem;
}

/* ── Detail tabs (inside case detail) ── */
.detail-tabs {
  display: flex;
  gap: 0;
  border-bottom: none;
}

.detail-tab {
  padding: 0.75rem 1.4rem;
  background: var(--navy-light);
  border: 1px solid var(--card-border);
  border-bottom: none;
  border-right: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.detail-tab:first-child {
  border-radius: 12px 0 0 0;
}

.detail-tab:last-child {
  border-radius: 0 12px 0 0;
  border-right: 1px solid var(--card-border);
}

.detail-tab:hover {
  color: var(--text);
  background: var(--card-bg);
}

.detail-tab.active {
  background: var(--card-bg);
  color: var(--gold);
  font-weight: 600;
  border-bottom: 2px solid var(--card-bg);
  margin-bottom: -1px;
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 6px;
  border-radius: 10px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Previous Meetings Table ── */
.prev-meetings-section {
  margin-top: 1.5rem;
  border-top: 1px solid var(--navy-border);
  padding-top: 1.2rem;
}

.prev-meetings-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.8rem;
}

.prev-meetings-table {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--navy-border);
}

.pm-table-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr 0.6fr;
  background: var(--navy-light);
  padding: 0.7rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pm-table-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 1fr 0.6fr;
  padding: 0.7rem 0.9rem;
  font-size: 0.84rem;
  color: var(--text);
  border-top: 1px solid var(--navy-border);
  transition: background 0.2s;
}

.pm-table-row:hover {
  background: var(--navy-light);
}

.pm-cell {
  display: flex;
  align-items: center;
}

.pm-passcode {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--gold);
}

.pm-join-link {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.82rem;
  text-decoration: none;
  transition: color 0.2s;
}

.pm-join-link:hover {
  color: var(--text);
}

/* ── Notices Tab ── */
.notices-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.notice-group {
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  overflow: hidden;
}

.notice-group-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--navy-light);
  font-weight: 600;
}

.notice-group-icon {
  font-size: 1.2rem;
}

.notice-group-name {
  font-size: 0.92rem;
  color: var(--text);
}

.notice-list {
  display: flex;
  flex-direction: column;
}

.notice-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--text-muted);
  border-top: 1px solid var(--navy-border);
  transition: background 0.2s, color 0.2s;
}

.notice-item:hover {
  background: var(--navy-light);
  color: var(--text);
}

.notice-file-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.notice-file-name {
  flex: 1;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notice-download-icon {
  font-size: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.notice-item:hover .notice-download-icon {
  transform: translateY(2px);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
}

.empty-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── Comms timeline ── */
.comms-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comms-item {
  display: flex;
  flex-direction: column;
  max-width: 75%;
}

.comms-item.sent {
  align-self: flex-end;
  align-items: flex-end;
}

.comms-item.received {
  align-self: flex-start;
  align-items: flex-start;
}

.comms-meta {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.comms-bubble {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.comms-item.sent .comms-bubble {
  background: var(--gold-dim);
  border: 1px solid rgba(201, 168, 76, 0.25);
  color: var(--text);
  border-radius: 12px 12px 2px 12px;
}

.comms-item.received .comms-bubble {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  color: var(--text);
  border-radius: 12px 12px 12px 2px;
}

/* ── Client details grid ── */
.client-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.client-field {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
}

.client-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.client-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

/* ── Meeting URL box ── */
.meeting-url-box {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 10px;
  padding: 0.9rem 1.4rem;
  font-size: 0.88rem;
}

/* ── Frappe HTML renderer ── */
.frappe-html-render {
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
  overflow-x: auto;
}

.frappe-html-render table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.frappe-html-render th,
.frappe-html-render td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--navy-border);
  text-align: left;
  vertical-align: top;
}

.frappe-html-render th {
  background: var(--navy-light);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.frappe-html-render tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.frappe-html-render a {
  color: var(--gold);
}

.frappe-html-render p {
  margin: 0.4rem 0;
}

.frappe-html-render strong {
  color: var(--text);
}

/* ── Empty state (enhanced) ── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  filter: grayscale(0.3);
}

.empty-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.empty-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  max-width: 300px;
}

/* ── Tab content card ── */
.tab-content-card {
  border-radius: 0 0 16px 16px;
  border-top: none;
  min-height: 200px;
}

/* ═══════════════════════════════════════════════════════════════════
   COMMS TIMELINE — Stage-based Accordion Layout
   ═══════════════════════════════════════════════════════════════════ */

.stage-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical connector line */
.stage-timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 30px;
  bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(201, 168, 76, 0.15));
  border-radius: 2px;
}

.stage-block {
  position: relative;
  padding-left: 54px;
  padding-bottom: 1.5rem;
}

.stage-block:last-child {
  padding-bottom: 0;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0;
  gap: 0.8rem;
}

.stage-header-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.stage-icon {
  position: absolute;
  left: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-light);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.15);
}

.stage-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stage-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stage-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.04));
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 8px;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.stage-download-btn:hover {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.08));
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.2);
}

.download-icon {
  font-size: 0.9rem;
}

.stage-channels {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Channel card — the clickable row per medium */
.channel-card {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Color accents per channel */
.channel-whatsapp {
  border-left: 3px solid #25D366;
}

.channel-sms {
  border-left: 3px solid #3b82f6;
}

.channel-email {
  border-left: 3px solid #8b5cf6;
}

.channel-post {
  border-left: 3px solid #f59e0b;
}

.channel-other {
  border-left: 3px solid #6b7280;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
  user-select: none;
}

.channel-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.channel-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.channel-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.channel-medium {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.channel-phone {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 0.3rem;
}

.channel-phone::before {
  content: '·';
  margin-right: 0.4rem;
  color: var(--text-dim);
}

.channel-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.channel-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.channel-expand-icon {
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: transform 0.2s;
  display: inline-block;
}

.channel-expand-icon.expanded {
  transform: rotate(180deg);
}

/* Expandable content = the actual message */
.channel-content {
  padding: 0.8rem 1rem 1rem;
  border-top: 1px solid rgba(30, 45, 69, 0.5);
  background: rgba(201, 168, 76, 0.02);
  animation: contentSlideIn 0.2s ease-out;
}

.channel-content-text {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding: 0.6rem 0.8rem;
  background: var(--navy-light);
  border-radius: 8px;
  border: 1px solid var(--navy-border);
}

/* Postal communication details */
.postal-details {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.postal-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.65rem 0.9rem;
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 8px;
}

.postal-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  min-width: 120px;
}

.postal-value {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}

@keyframes contentSlideIn {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }

  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* Status badges */
.comms-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  width: fit-content;
}

.comms-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: statusPulse 2s ease-in-out infinite;
}

.comms-status.delivered {
  background: rgba(46, 204, 113, 0.12);
  color: #2ecc71;
}

.comms-status.delivered::before {
  background: #2ecc71;
}

.comms-status.sent {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.comms-status.sent::before {
  background: #3b82f6;
}

.comms-status.failed {
  background: rgba(231, 76, 60, 0.12);
  color: #e74c3c;
}

.comms-status.failed::before {
  background: #e74c3c;
}

.comms-status.pending {
  background: rgba(243, 156, 18, 0.12);
  color: #f39c12;
}

.comms-status.pending::before {
  background: #f39c12;
}

@keyframes statusPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}


/* ═══════════════════════════════════════════════════════════════════
   CONTACTS TAB — Premium Glass Cards
   ═══════════════════════════════════════════════════════════════════ */

.contacts-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-card {
  background: linear-gradient(145deg, rgba(19, 28, 46, 0.9), rgba(30, 42, 64, 0.6));
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.3s;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border-color: rgba(201, 168, 76, 0.3);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), transparent);
  border-bottom: 1px solid var(--card-border);
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a8892e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 2px 12px rgba(201, 168, 76, 0.25);
}

.contact-name-area {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.contact-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.contact-designation {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-primary-badge {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.72rem;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(30, 45, 69, 0.5);
  border-right: 1px solid rgba(30, 45, 69, 0.5);
  transition: background 0.2s;
}

.contact-info-item:hover {
  background: rgba(201, 168, 76, 0.04);
}

.contact-info-item:nth-child(even) {
  border-right: none;
}

.contact-info-item:last-child,
.contact-info-item:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.contact-info-full {
  grid-column: 1 / -1;
  border-right: none;
}

.contact-info-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  filter: grayscale(0.2);
}

.contact-info-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.contact-info-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}


/* ═══════════════════════════════════════════════════════════════════
   MEETING TAB — Premium Hero + Cards
   ═══════════════════════════════════════════════════════════════════ */

.meeting-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 0.5rem 0;
}

.meeting-hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.meeting-hero-icon {
  font-size: 3rem;
  margin-bottom: 0.8rem;
  display: inline-block;
  background: var(--gold-dim);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  line-height: 80px;
  border: 2px solid rgba(201, 168, 76, 0.3);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.1);
}

.meeting-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.meeting-hero-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.meeting-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 0 0.5rem;
}

.meeting-detail-card {
  background: var(--navy-light);
  border: 1px solid var(--navy-border);
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.meeting-detail-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.meeting-detail-card:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 168, 76, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.meeting-detail-card:hover::after {
  opacity: 1;
}

.meeting-detail-icon {
  font-size: 1.5rem;
  margin-bottom: 0.6rem;
}

.meeting-detail-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.meeting-detail-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.meeting-join-area {
  text-align: center;
  padding: 1rem 0;
}

.meeting-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--gold), #a8892e);
  border: none;
  border-radius: 12px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
  animation: glowPulse 3s ease-in-out infinite;
}

.meeting-join-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
}

.meeting-join-icon {
  font-size: 1.1rem;
}

.meeting-url-display {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
  word-break: break-all;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.meeting-pending-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.5rem;
  background: rgba(243, 156, 18, 0.06);
  border: 1px dashed rgba(243, 156, 18, 0.25);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.meeting-pending-icon {
  font-size: 1.2rem;
}

@keyframes glowPulse {

  0%,
  100% {
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
  }

  50% {
    box-shadow: 0 4px 30px rgba(201, 168, 76, 0.4);
  }
}

/* ── Contact detail block (from backend HTML) ── */
.contact-detail-block {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-detail-block .cd-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(30, 45, 69, 0.5);
  transition: background 0.15s;
}

.contact-detail-block .cd-row:last-child {
  border-bottom: none;
}

.contact-detail-block .cd-row:hover {
  background: rgba(201, 168, 76, 0.04);
}

.contact-detail-block .cd-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.contact-detail-block .cd-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════════ */

.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-hero-card {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(201, 168, 76, 0.02)) !important;
  border-color: rgba(201, 168, 76, 0.2) !important;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.5rem;
}

.profile-avatar-lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d4a843);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.3);
}

.profile-hero-info {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.profile-name-lg {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.profile-designation {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

.profile-id-badge {
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--navy-light);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--navy-border);
  display: inline-block;
  width: fit-content;
}

.card-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--card-border);
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.profile-detail-item.full-width {
  grid-column: 1 / -1;
}

.profile-detail-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.profile-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   NOTIFICATIONS PAGE
   ═══════════════════════════════════════════════════════════════════ */

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.notification-card {
  position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.notification-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification-card.unread {
  border-left: 3px solid var(--gold);
}

.notif-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
}

.notif-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.notif-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.notif-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
}

.notif-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.notif-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.notif-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HELP & SUPPORT PAGE
   ═══════════════════════════════════════════════════════════════════ */

.help-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem;
  transition: background 0.2s, border-color 0.2s;
}

.faq-item:hover {
  background: rgba(201, 168, 76, 0.03);
  border-color: rgba(201, 168, 76, 0.15);
}

.faq-question {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-answer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.help-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.help-contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.2rem;
  background: var(--navy-light);
  border-radius: 12px;
  border: 1px solid var(--navy-border);
  text-align: center;
}

.help-contact-icon {
  font-size: 1.5rem;
}

.help-contact-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.help-contact-value {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   UPLOAD DOCUMENTS TAB
   ═══════════════════════════════════════════════════════════════════ */

.upload-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.upload-hero {
  text-align: center;
  padding: 1rem 0;
}

.upload-hero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.upload-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.upload-hero-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.upload-dropzone {
  border: 2px dashed rgba(201, 168, 76, 0.3);
  border-radius: 14px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s;
  background: rgba(201, 168, 76, 0.02);
}

.upload-dropzone:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.upload-dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
  opacity: 0.7;
}

.upload-dropzone-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.upload-dropzone-sub {
  font-size: 0.82rem;
  color: var(--gold);
  margin-top: 0.3rem;
}

.upload-dropzone-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.8rem;
}

.upload-categories {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.upload-category-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.upload-category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.upload-chip {
  padding: 0.45rem 0.9rem;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.upload-chip:hover {
  border-color: rgba(201, 168, 76, 0.3);
  color: var(--text);
}

.upload-chip.active {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
}

.upload-actions {
  text-align: center;
}

.upload-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 2rem;
  background: linear-gradient(135deg, var(--gold), #d4a843);
  border: none;
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
}

.upload-submit-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 25px rgba(201, 168, 76, 0.4);
}

.upload-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .table-head,
  .table-row {
    grid-template-columns: 1fr 2fr 1fr;
  }

  .table-head>*:nth-child(4),
  .table-head>*:nth-child(5),
  .table-row>*:nth-child(4),
  .table-row>*:nth-child(5) {
    display: none;
  }

  .detail-tabs {
    flex-wrap: wrap;
  }

  .detail-tab {
    flex: 1;
    text-align: center;
    font-size: 0.72rem;
    padding: 0.5rem 0.4rem;
    min-width: 0;
  }

  .stage-timeline::before {
    left: 17px;
  }

  .stage-block {
    padding-left: 44px;
  }

  .stage-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .channel-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .channel-right {
    flex-wrap: wrap;
  }

  .meeting-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-detail-block .cd-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .pm-table-head,
  .pm-table-row {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 0.72rem;
  }

  .pm-table-head>*:nth-child(4),
  .pm-table-head>*:nth-child(5),
  .pm-table-row>*:nth-child(4),
  .pm-table-row>*:nth-child(5) {
    display: none;
  }

  .notice-item {
    padding: 0.7rem;
  }

  .notice-file-name {
    font-size: 0.78rem;
  }
}

/* ── Mobile: ≤ 480px ── */
@media (max-width: 480px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 0.8rem;
  }

  .case-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .case-title {
    font-size: 1.1rem;
    word-break: break-all;
  }

  .detail-tabs {
    gap: 0;
  }

  .detail-tab {
    font-size: 0.68rem;
    padding: 0.45rem 0.3rem;
  }

  .tab-badge {
    min-width: 16px;
    height: 16px;
    font-size: 0.6rem;
    padding: 0 4px;
    margin-left: 3px;
  }

  .meeting-details-grid {
    grid-template-columns: 1fr;
  }

  .pm-table-head,
  .pm-table-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.7rem;
  }

  .pm-table-head>*:nth-child(3),
  .pm-table-head>*:nth-child(4),
  .pm-table-head>*:nth-child(5),
  .pm-table-row>*:nth-child(3),
  .pm-table-row>*:nth-child(4),
  .pm-table-row>*:nth-child(5) {
    display: none;
  }

  .h-timeline {
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .notice-group-name {
    font-size: 0.85rem;
  }
}