/* Tutor Dashboard Styles — extracted from tutor-dashboard.html */
:root {
  --amber: #E8A020;
  --amber-light: #FDF0D8;
  --amber-dark: #B57A10;
  --ink: #1A1714;
  --ink-2: #2E2924;
  --ink-3: #433D35;
  --parchment: #F9F5ED;
  --parchment-2: #F0EAD8;
  --parchment-3: #E5DCC8;
  --text-main: #1A1714;
  --text-muted: #4A443C;
  --text-faint: #6B6358;
  --sidebar-w: 240px;
  --green: #2D7A4F;
  --green-bg: #E8F4EE;
  --red: #C0392B;
  --red-bg: #FCE8E6;
  --blue: #2563A8;
  --blue-bg: #E6EFF8;
  --border: rgba(26,23,20,0.10);
  --border-2: rgba(26,23,20,0.18);
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(26,23,20,0.08);
  --shadow: 0 4px 16px rgba(26,23,20,0.10);
  --teal: #0E7490;
  --teal-light: #12A48B;
  --navy: #1E293B;
  --muted: #64748B;
  --line: rgba(26,23,20,0.10);
  --blue-accent: #2563A8;
  --bottom-nav-h: 64px;
}

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

.skip-link:focus { top: 8px; left: 8px; }
*:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.nav-item:focus-visible, .bottom-nav-item:focus-visible, .icon-btn:focus-visible { outline-offset: -2px; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--parchment);
  color: var(--text-main);
  min-height: 100vh;
  font-size: 14px;
  overflow-x: hidden;
}

/* ── MISSING UTILITY CLASSES ── */
.btn-small { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.empty-state { text-align: center; padding: 32px 16px; color: var(--text-faint); }
.empty-state .empty-icon { font-size: 32px; margin-bottom: 8px; }
.empty-state .empty-text { font-size: 13px; }
.text-center { text-align: center; }

/* ── MOBILE OVERLAY & SIDEBAR TOGGLE ── */
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 99;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(2px);
}
.mobile-overlay.active { display: block; }
.sidebar.open { transform: translateX(0) !important; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { transform: translateX(-100%); position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 100; will-change: transform; }
  .sidebar-footer { display: none !important; }
  .mobile-menu-btn { display: flex !important; min-height: 44px; min-width: 44px; }
  .bottom-nav { display: flex !important; }
  .main { margin-left: 0 !important; }
  .page { padding: 16px 16px calc(var(--bottom-nav-h) + 24px); }
  .topbar { padding: 0 16px; min-height: 48px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .kpi-value { font-size: 24px; }
  .kpi-card { padding: 14px 16px; }
  .two-col, .three-col { grid-template-columns: 1fr !important; }
  .request-card { padding: 14px 16px; }
  .lead-card { padding: 14px 16px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .profile-hero { flex-direction: column; text-align: center; padding: 20px; }
  .profile-hero-score { margin-left: 0; text-align: center; margin-top: 16px; }
  .profile-hero-badges { justify-content: center; }
  .score-val { font-size: 28px; }
  .btn, .nav-item, .bottom-nav-item, .icon-btn, .toggle, .login-btn { min-height: 44px; }
  .btn-small { min-height: 40px; padding: 10px 16px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr !important; }
  .verified-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .data-table { font-size: 12px; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table th, .data-table td { padding: 8px 10px; white-space: nowrap; }
  #toast { bottom: calc(var(--bottom-nav-h) + 12px); right: 12px; left: 12px; max-width: none; }
  .settings-row { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
  .lead-card { padding: 14px 16px; }
  .lead-card.locked .lead-blur-content { padding: 16px; }
  .lead-unlock-btn { width: 100%; padding: 10px; font-size: 14px; }
  .request-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .request-meta { gap: 6px; }
  .meta-chip { font-size: 11px; padding: 3px 8px; }
  .request-actions { flex-direction: column; width: 100%; }
  .request-actions .btn { width: 100%; justify-content: center; }
  button, a, [onclick] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  #leads-subscription-info > div { flex-direction: column; gap: 8px !important; }
  .plan-card { min-width: 100% !important; }
  .card-body { padding: 12px 16px; }
  .card-header { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0); padding-left: env(safe-area-inset-left, 0); padding-right: env(safe-area-inset-right, 0); }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr !important; }
  .kpi-value { font-size: 20px; }
  .page { padding: 12px 12px calc(var(--bottom-nav-h) + 20px); }
  .topbar { padding: 0 12px; height: 52px; }
  .topbar-title { font-size: 16px; }
  .login-card { padding: 24px 20px; }
  .profile-hero-avatar { width: 56px; height: 56px; font-size: 20px; }
  .profile-hero-info .ph-name { font-size: 18px; }
  .btn-primary { padding: 14px 20px; font-size: 15px; }
  .btn-secondary { padding: 12px 18px; font-size: 14px; }
  .form-field input, .form-field select { padding: 12px; font-size: 15px; }
  .profile-hero { padding: 16px; gap: 14px; }
  .request-card, .lead-card { padding: 14px; }
  .bottom-nav-item .bnav-label { max-width: 70px; font-size: 9px; }
}

/* Tablet sidebar adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
  .sidebar-header { padding: 16px 16px 12px; }
  .tutor-mini { padding: 10px 16px; }
  .nav-item { padding: 7px 16px; font-size: 12.5px; }
}

/* ── LOGIN ─────────────────────────────── */
#login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(232,160,32,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(232,160,32,0.05) 0%, transparent 50%);
}

.login-card {
  background: var(--ink-2);
  border: 1px solid rgba(232,160,32,0.20);
  border-radius: var(--radius-lg);
  padding: 48px 44px;
  width: 400px;
  max-width: 92vw;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.login-logo .logo-mark {
  width: 36px; height: 36px;
  background: var(--amber);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600;
  color: var(--ink);
}

.login-logo .logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: #F5EDD8;
  letter-spacing: -0.3px;
}

.login-logo .logo-sub {
  font-size: 11px; color: rgba(245,237,216,0.4);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-top: -2px;
}

.login-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 500;
  color: #F5EDD8;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13px;
  color: rgba(245,237,216,0.45);
  margin-bottom: 32px;
  font-weight: 300;
}

.login-field { margin-bottom: 16px; }

.login-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(245,237,216,0.4);
  margin-bottom: 8px;
  font-weight: 500;
}

.login-field input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,160,32,0.18);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14px;
  color: #F5EDD8;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}

.login-field input:focus { border-color: var(--amber); }
.login-field input::placeholder { color: rgba(245,237,216,0.2); }

.login-btn {
  width: 100%;
  background: var(--amber);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.2px;
}

.login-btn:hover { background: #D4901A; }
.login-btn:active { transform: scale(0.99); }

.login-error {
  background: rgba(192,57,43,0.12);
  border: 1px solid rgba(192,57,43,0.25);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  color: #F4A59E;
  margin-top: 12px;
  display: none;
}

.login-forgot a:hover { color: var(--amber) !important; }
.login-pass-toggle:hover { color: rgba(245,237,216,0.6) !important; }

/* ── APP SHELL ─────────────────────────── */
#app { 
  display: none; 
  flex-direction: row;
}

/* ── SIDEBAR ───────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--ink);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  align-self: flex-start;
  transition: transform 0.3s ease;
}

.mobile-menu-btn {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: transparent;
  cursor: pointer; font-size: 20px; color: var(--ink);
}

.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(232,160,32,0.10);
}

.sidebar-logo {
  display: flex; align-items: center; gap: 9px;
}

.sidebar-logo .logo-mark {
  width: 30px; height: 30px;
  background: var(--amber);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600; color: var(--ink);
  flex-shrink: 0;
}

.sidebar-logo .brand {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 600;
  color: #F5EDD8;
}

.sidebar-logo .portal-tag {
  font-size: 9px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(232,160,32,0.6);
  display: block;
  margin-top: 1px;
}

.tutor-mini {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px;
  border-bottom: 1px solid rgba(232,160,32,0.08);
}

.tutor-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber) 0%, #B57A10 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: var(--ink); flex-shrink: 0;
  font-family: 'Playfair Display', serif;
  overflow: hidden;
}
.sidebar-avatar-img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

.tutor-mini-info .name {
  font-size: 13px; font-weight: 500;
  color: #F5EDD8;
}

.tutor-mini-info .status-dot {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; color: rgba(245,237,216,0.35);
  margin-top: 1px;
}

.status-dot::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: #4CAF50; flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 8px 0;
}

.nav-section-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(245,237,216,0.20);
  padding: 12px 20px 4px;
  font-weight: 500;
}

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 20px;
  cursor: pointer;
  border-radius: 0;
  transition: background 0.15s;
  position: relative;
  font-size: 13.5px;
  color: rgba(245,237,216,0.70);
  font-weight: 400;
  user-select: none;
  border-left: 2px solid transparent;
}

.nav-item:hover {
  background: rgba(232,160,32,0.07);
  color: rgba(245,237,216,0.80);
}

.nav-item.active {
  background: rgba(232,160,32,0.10);
  color: var(--amber);
  border-left-color: var(--amber);
}

.nav-item .nav-icon {
  width: 16px; height: 16px; flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active .nav-icon { opacity: 1; }

.nav-badge {
  margin-left: auto;
  background: var(--amber);
  color: var(--ink);
  font-size: 10px; font-weight: 600;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

.sidebar-footer {
  padding: 12px 0;
  border-top: 1px solid rgba(232,160,32,0.08);
}

/* ── MAIN ──────────────────────────────── */
.main {
  flex: 1;
  min-height: 100vh;
  background: var(--parchment);
}

.topbar {
  background: rgba(249,245,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex; align-items: center; gap: 16px;
  position: sticky; top: 0; z-index: 50;
}

.topbar-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 500;
  color: var(--ink);
  flex: 1;
}

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

.icon-btn {
  width: 34px; height: 34px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--text-muted);
  position: relative;
}

.icon-btn:hover { background: var(--parchment-2); }

.notif-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  position: absolute; top: 6px; right: 6px;
  border: 1.5px solid var(--parchment);
}

/* ── PAGE CONTENT ──────────────────────── */
.page { display: none; padding: 24px 28px 40px; }
.page.active { display: block; }

/* ── KPI GRID ──────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}

.kpi-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.kpi-card.amber::after { background: var(--amber); }
.kpi-card.green::after { background: var(--green); }
.kpi-card.blue::after { background: var(--blue); }
.kpi-card.red::after { background: var(--red); }

.kpi-label {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 8px;
}

.kpi-value {
  font-family: 'Playfair Display', serif;
  font-size: 30px; font-weight: 600;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-sub {
  font-size: 11px;
  color: var(--text-faint);
}

.kpi-sub.up { color: var(--green); }
.kpi-sub.down { color: var(--red); }

/* ── TWO COL ───────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── CARD ──────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.1px;
}

.card-action {
  font-size: 12px;
  color: var(--amber-dark);
  cursor: pointer;
  font-weight: 500;
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
}

.card-action:hover { text-decoration: underline; }

.card-body { padding: 16px 20px; }

/* ── MATCH ITEM ────────────────────────── */
.match-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.match-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--amber-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  color: var(--amber-dark);
  flex-shrink: 0;
  font-family: 'Playfair Display', serif;
}

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

.match-name {
  font-size: 13.5px; font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
}

.match-detail {
  font-size: 12px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.match-right {
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 4px; flex-shrink: 0;
}

.match-fee {
  font-family: 'DM Mono', monospace;
  font-size: 13px; font-weight: 500;
  color: var(--ink);
}

/* ── PILLS/BADGES ──────────────────────── */
.pill {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.1px;
  white-space: nowrap;
}

.pill-green { background: var(--green-bg); color: var(--green); }
.pill-amber { background: var(--amber-light); color: #8B5E10; }
.pill-red { background: var(--red-bg); color: var(--red); }
.pill-blue { background: var(--blue-bg); color: var(--blue); }
.pill-gray { background: var(--parchment-2); color: var(--text-muted); }
.pill-teal { background: rgba(14,116,144,0.1); color: var(--teal); }

/* ── PROFILE FORM ──────────────────────── */
.profile-section { margin-bottom: 24px; }

.profile-section-title {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.form-grid.full { grid-template-columns: 1fr; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--parchment);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--amber);
  background: #fff;
}

.form-field textarea { resize: vertical; min-height: 80px; }

.tag-input {
  display: flex; flex-wrap: wrap; gap: 6px;
  background: var(--parchment);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 7px 10px;
  min-height: 40px;
  cursor: text;
}

.tag {
  background: var(--amber-light);
  color: #7A5010;
  font-size: 12px; font-weight: 500;
  padding: 3px 8px;
  border-radius: 5px;
  display: flex; align-items: center; gap: 4px;
}

.tag .tag-remove {
  cursor: pointer; font-size: 11px;
  color: #9A7030;
  line-height: 1;
}

.btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex; align-items: center; gap: 6px;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}

.btn-primary:hover { background: var(--amber-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: var(--parchment-2);
  color: var(--text-main);
  border: 1px solid var(--border-2);
}

.btn-secondary:hover { background: var(--parchment-3); }

.btn-danger {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(192,57,43,0.2);
}

.btn-success {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(45,122,79,0.2);
}

/* ── PLAN CARD (MONETIZATION) ── */
.plan-card {
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.plan-card:active { transform: scale(0.98); }

/* ── VERIFIED BADGES ───────────────────── */
.verified-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.verified-item {
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}

.verified-icon { font-size: 20px; margin-bottom: 6px; }

.verified-label {
  font-size: 11px; color: var(--text-muted);
  font-weight: 500;
}

.verified-status {
  font-size: 11px; margin-top: 3px;
  font-weight: 500;
}

/* ── TABLE ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  background: var(--parchment-2);
  padding: 10px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(249,245,237,0.5); }

.mono { font-family: 'DM Mono', monospace; font-size: 12.5px; }

.request-cards-container { display: flex; flex-direction: column; gap: 0; }

/* ── MATCH REQUEST CARD ────────────────── */
.request-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}

.request-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--amber);
  border-radius: 3px 0 0 3px;
}

.request-card-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 12px;
}

.request-meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 14px;
}

.meta-chip {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-muted);
  background: var(--parchment);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
}

.request-actions { display: flex; gap: 8px; }

/* ── LEAD CARD (BLURRED) ──────────────── */
.lead-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 12px; position: relative; overflow: hidden; }
.lead-card.locked .lead-blur { position: absolute; inset: 0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgba(255,255,255,0.6); display: flex; align-items: center; justify-content: center; flex-direction: column; z-index: 2; border-radius: var(--radius-lg); }
.lead-card.locked .lead-blur-content { text-align: center; }
.lead-card.locked .lead-info > * { filter: blur(4px); pointer-events: none; }
.lead-unlock-btn { padding: 8px 16px; background: var(--teal); color: #fff; border: none; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 8px; }
.lead-unlock-btn-free { background: var(--green); }

/* ── NOTIFICATION ITEM ─────────────────── */
.notif-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}

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

.notif-item.unread { background: rgba(232,160,32,0.04); }

.notif-icon-wrap {
  width: 36px; height: 36px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px;
}

.notif-text { flex: 1; }

.notif-title {
  font-size: 13.5px; font-weight: 500; color: var(--ink);
  margin-bottom: 2px;
}

.notif-desc { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.notif-time { font-size: 11px; color: var(--text-faint); margin-top: 4px; }

.unread-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber); flex-shrink: 0; margin-top: 5px;
}

/* ── SECTION HEADER ────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 13px; font-weight: 500;
  color: var(--ink);
}

/* ── SETTINGS ──────────────────────────── */
.settings-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.settings-label { font-size: 13.5px; color: var(--ink); }
.settings-desc { font-size: 12px; color: var(--text-faint); margin-top: 2px; }

.toggle {
  width: 40px; height: 22px;
  background: var(--parchment-3);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  border: none;
}

.toggle.on { background: var(--amber); }

.toggle::after {
  content: '';
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px; left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle.on::after { left: 21px; }

/* ── TOAST ─────────────────────────────── */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--ink-2);
  color: #F5EDD8;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transform: translateY(60px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 9999;
  display: flex; align-items: center; gap: 10px;
  max-width: 320px;
}

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

/* ── BOTTOM TAB BAR (MOBILE) ── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  background: var(--ink);
  border-top: 1px solid rgba(232,160,32,0.15);
  z-index: 1000;
  justify-content: space-around;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 8px;
  cursor: pointer;
  color: rgba(245,237,216,0.45);
  font-size: 10px;
  font-weight: 500;
  transition: color 0.15s;
  position: relative;
  min-width: 56px;
  border: none;
  background: none;
  flex: 1;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item:active { background: rgba(232,160,32,0.08); }

.bottom-nav-item.active {
  color: var(--amber);
}

.bottom-nav-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--amber);
  border-radius: 0 0 2px 2px;
}

.bottom-nav-item .bnav-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.bottom-nav-item .bnav-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

.bottom-nav-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 20px);
  background: var(--amber);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── PROFILE HEADER ────────────────────── */
.profile-hero {
  background: var(--ink);
  background-image:
    radial-gradient(circle at 80% 50%, rgba(232,160,32,0.08) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}

.profile-hero-avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
  border: 3px solid rgba(232,160,32,0.4);
}

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

.avatar-upload-btn {
  position: absolute; bottom: -2px; right: -2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; cursor: pointer;
  border: 2px solid #fff;
}

.avatar-upload-btn:hover { background: var(--teal); }

.avatar-upload-progress {
  display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); border-radius: 50%;
  align-items: center; justify-content: center; color: #fff; font-size: 12px;
}

.profile-hero-info .ph-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 600;
  color: #F5EDD8;
  margin-bottom: 4px;
}

.profile-hero-info .ph-details {
  font-size: 13px; color: rgba(245,237,216,0.5);
}

.profile-hero-badges {
  display: flex; gap: 8px; margin-top: 10px;
}

.hero-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px; font-weight: 500;
  border: 1px solid;
}

.hero-badge.verified {
  background: rgba(45,122,79,0.2);
  color: #7FD4A5;
  border-color: rgba(45,122,79,0.3);
}

.hero-badge.status {
  background: rgba(232,160,32,0.15);
  color: var(--amber);
  border-color: rgba(232,160,32,0.3);
}

.hero-badge.category {
  background: rgba(37,99,168,0.15);
  color: var(--blue);
  border-color: rgba(37,99,168,0.3);
}

.profile-hero-score {
  margin-left: auto;
  text-align: right;
}

.score-val {
  font-family: 'Playfair Display', serif;
  font-size: 38px; font-weight: 600;
  color: var(--amber); line-height: 1;
}

.score-label { font-size: 11px; color: rgba(245,237,216,0.35); margin-top: 2px; }

/* ── LOADING ───────────────────────────── */
.loading-shimmer {
  background: linear-gradient(90deg, var(--parchment-2) 25%, var(--parchment-3) 50%, var(--parchment-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
  height: 14px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── SKELETON SCREEN ────────────────────── */
.skeleton {
  display: none;
  padding: 24px 28px 40px;
}
.skeleton.active {
  display: block;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.sk-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.sk-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.sk-line {
  height: 14px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.sk-line.short { width: 60%; }
.sk-line.thin { height: 10px; width: 40%; }
.sk-circle {
  width: 48px; height: 48px; border-radius: 50%;
  margin-bottom: 12px;
}
.sk-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.sk-row:last-child { border-bottom: none; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.page.active { animation: fadeInUp 0.25s ease; }

/* Profile Completion Tracker */
.profile-completion-section {
  margin-bottom: 24px;
}

.profile-completion-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.profile-header {
  background: var(--amber-light);
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.profile-header h3 {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-header p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.profile-completion {
  padding: 20px;
}

.progress-container {
  margin-bottom: 16px;
}

.progress-bar {
  height: 8px;
  background: var(--parchment-2);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--amber);
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.profile-completion .low .progress-bar-fill {
  background: var(--red);
}

.profile-completion .medium .progress-bar-fill {
  background: var(--teal);
}

.profile-completion .high .progress-bar-fill {
  background: var(--green);
}

.incomplete-items h4 {
  margin: 0 0 8px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

#incomplete-items-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#incomplete-items-list li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--parchment-2);
  font-size: 13px;
  color: var(--text-muted);
}

#incomplete-items-list li:last-child {
  border-bottom: none;
}

#incomplete-items-list li::before {
  content: "•";
  color: var(--amber);
  margin-right: 8px;
  font-size: 10px;
}

/* ── PRINT STYLES ─────────────────────────── */
@media print {
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
  body { background: #fff !important; padding: 0 !important; }
  #login-screen, .sidebar, .bottom-nav, .toast-wrap, .mobile-menu-btn { display: none !important; }
  .app-container { display: block !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .page { display: block !important; padding: 20px 0 !important; page-break-inside: avoid; }
  .card { border: 1px solid #ddd !important; box-shadow: none !important; margin-bottom: 16px !important; }
  .profile-hero { border: 1px solid #ddd !important; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr) !important; gap: 12px !important; }
  .kpi-card { border: 1px solid #ddd !important; padding: 12px !important; }
  .profile-completion-section { display: none !important; }
  .btn, button { display: none !important; }
  .request-card, .lead-card { border: 1px solid #ddd !important; break-inside: avoid; }
  .form-field input, .form-field select { border: 1px solid #ddd !important; }
}
