/* ============================================================
   TEL Intern Portal — Global Styles v4 (Sidebar Layout)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400&family=DM+Mono:wght@400;500&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --blue-950: #0a1628;
  --blue-900: #0f2044;
  --blue-800: #1e3a8a;
  --blue-600: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --purple-600: #7c3aed;
  --purple-100: #ede9fe;

  --green-500: #22c55e;
  --green-100: #dcfce7;
  --green-700: #15803d;

  --red-500:  #ef4444;
  --red-100:  #fee2e2;

  --amber-500: #f59e0b;
  --amber-100: #fef3c7;

  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --border:    #e4e8f0;
  --text:      #0f172a;
  --text-muted:#64748b;
  --radius:    14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --shadow:    0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.04);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12), 0 4px 8px rgba(15,23,42,.06);
  --shadow-xl: 0 24px 64px rgba(15,23,42,.16), 0 8px 16px rgba(15,23,42,.08);

  --sidebar-w: 240px;
  --topbar-h:  56px;
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.6;
}

.mono, code { font-family: 'DM Mono', monospace; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 99px; }

/* ════════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
   ════════════════════════════════════════════════════════════ */

/* ── Sidebar ─────────────────────────────────────────────────── */
.tel-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

/* ── Sidebar Brand ───────────────────────────────────────────── */
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-close {
  background: none; border: none;
  color: var(--text-muted); font-size: 16px;
  cursor: pointer; padding: 4px;
  border-radius: 8px;
  transition: background .15s, color .15s;
}
.sidebar-close:hover { background: var(--slate-100); color: var(--text); }

/* ── Role / User Area ───────────────────────────────────────── */
.sidebar-role {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.role-badge {
  display: inline-block;
  font-size: 10px; font-weight: 800;
  letter-spacing: .08em;
  border-radius: 6px;
  padding: 2px 8px;
}
.role-badge.admin  { background: var(--blue-50);    color: var(--blue-600); }
.role-badge.intern { background: var(--purple-100); color: var(--purple-600); }

.sidebar-avatar {
  width: 34px; height: 34px;
  background: var(--blue-900);
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  flex-shrink: 0;
}

/* ── Nav ─────────────────────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: 6px 8px 4px;
  margin-top: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s, color .15s;
  position: relative;
}
.sidebar-link i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar-link:hover {
  background: var(--slate-50);
  color: var(--text);
}
.sidebar-link.active {
  background: var(--blue-50);
  color: var(--blue-600);
  font-weight: 700;
}
.sidebar-link.active i { color: var(--blue-600); }

.sidebar-badge {
  margin-left: auto;
  background: var(--red-500);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── Sidebar Footer (sign out) ───────────────────────────────── */
.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--red-500);
  font-size: 13.5px;
  font-weight: 600;
  transition: background .15s;
}
.sidebar-signout:hover { background: var(--red-100); color: var(--red-500); }
.sidebar-signout i { font-size: 15px; }

/* ── Logo ────────────────────────────────────────────────────── */
.tel-logo-sm {
  width: 32px; height: 32px;
  background: var(--blue-900);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Main wrapper ────────────────────────────────────────────── */
.main-wrapper {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
}

.main-content {
  flex: 1;
  padding: 28px 32px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ── Main footer ─────────────────────────────────────────────── */
.main-footer {
  padding: 16px 32px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Mobile topbar ───────────────────────────────────────────── */
.mobile-topbar {
  position: sticky;
  top: 0; z-index: 999;
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: var(--shadow-sm);
}

.sidebar-toggle {
  background: none; border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
  line-height: 1;
  transition: background .15s;
}
.sidebar-toggle:hover { background: var(--slate-100); }

/* ── Sidebar overlay (mobile) ────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0; z-index: 999;
  background: rgba(15,23,42,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.sidebar-overlay.show { opacity: 1; pointer-events: all; }

/* ── Mobile: sidebar slides in ───────────────────────────────── */
@media (max-width: 991px) {
  .tel-sidebar {
    transform: translateX(-100%);
    box-shadow: var(--shadow-xl);
  }
  .tel-sidebar.open { transform: translateX(0); }

  .main-wrapper {
    margin-left: 0;
    width: 100%;
  }
  .main-content { padding: 20px 16px; }
  .main-footer { padding: 14px 16px; }
}

/* ── Desktop: no topbar ───────────────────────────────────────── */
@media (min-width: 992px) {
  .mobile-topbar { display: none !important; }
  .sidebar-close  { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   COMPONENTS
   ════════════════════════════════════════════════════════════ */

/* ── Page header ─────────────────────────────────────────────── */
.page-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}
.page-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

/* ── Cards ───────────────────────────────────────────────────── */
.tel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.tel-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.tel-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 1px 0 0;
}

/* ── Stat cards ──────────────────────────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ── Flash messages ──────────────────────────────────────────── */
.flash-success, .flash-error {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.flash-success { background: var(--green-100); color: var(--green-700); }
.flash-error   { background: var(--red-100);   color: var(--red-500); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: var(--blue-800) !important;
  border-color: var(--blue-800) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: var(--blue-900) !important; transform: translateY(-1px); }
.btn-outline-danger { border-radius: 10px; font-weight: 600; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  padding: 8px 12px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}
.form-label { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 5px; }

/* ── Tables ──────────────────────────────────────────────────── */
.table { font-size: 13px; }
.table th {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted); background: var(--slate-50);
  padding: 10px 12px; border: none;
}
.table td { padding: 10px 12px; vertical-align: middle; border-color: var(--border); }
.table tbody tr:hover { background: var(--slate-50); }
.table-responsive { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ── Badges ──────────────────────────────────────────────────── */
.badge-active {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-100); color: var(--green-700);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
}
.badge-active .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green-500);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.3); }
}
.badge-team  { background:var(--blue-50);    color:var(--blue-600);    font-size:11px; font-weight:700; padding:3px 9px; border-radius:6px; display:inline-block; }
.badge-title { background:var(--purple-100); color:var(--purple-600);  font-size:11px; font-weight:700; padding:3px 9px; border-radius:6px; display:inline-block; margin-left:4px; }
.badge-lead  { background:var(--amber-100);  color:#92400e;            font-size:11px; font-weight:700; padding:3px 9px; border-radius:6px; display:inline-block; margin-left:4px; }

/* ── Modals ──────────────────────────────────────────────────── */
.modal-content {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xl);
}
.modal-header {
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.modal-body   { padding: 20px; }
.modal-footer { border-top: 1px solid var(--border); padding: 14px 20px; }

/* ── Notification bell ───────────────────────────────────────── */
.nav-bell {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 17px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-bell:hover { background: var(--blue-50); color: var(--blue-600); }
.bell-badge {
  position: absolute; top: 3px; right: 3px;
  background: var(--red-500); color: #fff;
  font-size: 9px; font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; line-height: 1;
  border: 2px solid var(--surface);
}

/* ── Notification cards ──────────────────────────────────────── */
.notif-card { transition: transform .15s, box-shadow .15s; cursor: pointer; }
.notif-card:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

/* ── Progress bar ────────────────────────────────────────────── */
.progress { height: 6px; border-radius: 99px; background: var(--slate-100); }
.progress-bar { border-radius: 99px; background: var(--blue-600); }

/* ── Typography helpers ──────────────────────────────────────── */
.fw-700 { font-weight: 700 !important; }
.fw-800 { font-weight: 800 !important; }
.text-muted { color: var(--text-muted) !important; }

/* ── Mobile content ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .main-content { padding: 16px 12px; }

  .tel-card { padding: 14px 16px; }
  .stat-card { padding: 14px 16px; }
  .stat-value { font-size: 22px !important; }

  .page-header h2 { font-size: 18px; }

  /* Full-width buttons */
  .btn-block-mobile { width: 100% !important; }

  /* Modal slides up from bottom */
  .modal-dialog {
    margin: 0;
    max-width: 100%;
    align-items: flex-end;
  }
  .modal.fade .modal-dialog { transform: translateY(50px); }
  .modal.show .modal-dialog { transform: translateY(0); }
  .modal-content {
    border-radius: 20px 20px 0 0;
  }
}

/* ── Utility ─────────────────────────────────────────────────── */
.tel-footer { display: none; } /* legacy, replaced by .main-footer */

/* ════════════════════════════════════════════════════════════
   INTERN CARDS
   ════════════════════════════════════════════════════════════ */

.intern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.intern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--slate-300);
}

.intern-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.intern-card-meta { flex: 1; min-width: 0; }
.intern-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intern-card-title-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intern-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px 12px;
  background: var(--slate-50);
  border-radius: 10px;
}
.intern-mini-stat .val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.intern-mini-stat .lbl {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-top: 1px;
}

.intern-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

/* ── Avatars ─────────────────────────────────────────────────── */
.avatar {
  border-radius: 12px;
  background: var(--blue-900);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'DM Mono', monospace;
  letter-spacing: -.02em;
}
.avatar-md { width: 42px; height: 42px; font-size: 14px; }
.avatar-lg { width: 56px; height: 56px; font-size: 18px; }
.avatar-xl { width: 72px; height: 72px; font-size: 22px; border-radius: 18px; }

/* ── Full-width layout fix ───────────────────────────────────── */
/* intentionally empty — handled above */

/* ── Section divider ─────────────────────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 14px;
}
.section-divider h6 {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  white-space: nowrap;
  margin: 0;
}

/* ── Journal panel inside modal ──────────────────────────────── */
.journal-row-btn {
  font-size: 11px;
  background: var(--purple-100);
  color: var(--purple-600);
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

/* ── Concerns / Feedback ─────────────────────────────────────── */
.concern-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
}

/* ── Time clock button ───────────────────────────────────────── */
#time-action-btn {
  min-width: 160px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 12px;
}

/* ── Login page ──────────────────────────────────────────────── */
/* ── Login page ─────────────────────────────────────────────── */
body.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 20px;
}
.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.login-glow-1, .login-glow-2 {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.login-glow-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,.08) 0%, transparent 70%);
  top: -100px; left: -100px;
}
.login-glow-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
  bottom: -80px; right: -80px;
}
.tel-logo-lg {
  width: 52px; height: 52px;
  background: var(--blue-900);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px;
  margin: 0 auto 14px;
}

/* ── Responsive grid tightening ──────────────────────────────── */
@media (max-width: 575px) {
  .intern-card-footer { flex-direction: column; align-items: flex-start; }
  .intern-card-stats  { grid-template-columns: 1fr 1fr; }
}

/* ════════════════════════════════════════════════════════════
   DASHBOARD
   ════════════════════════════════════════════════════════════ */

.dash-hero {
  background: var(--blue-900);
  background-image: radial-gradient(ellipse 70% 80% at 0% 0%, rgba(59,130,246,.25) 0%, transparent 60%);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(255,255,255,.07);
}
.dash-hero-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}
.dash-hero-name {
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 2px;
}
.dash-hero-email {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  margin: 0;
  font-family: 'DM Mono', monospace;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.9);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}
.hero-badge.amber {
  background: rgba(245,158,11,.2);
  color: #fcd34d;
}
.hero-badge.green {
  background: rgba(34,197,94,.2);
  color: #86efac;
}
.hero-badge i { font-size: 11px; }
.dash-hero-right { flex-shrink: 0; }
.dash-today-box { text-align: right; }
.dash-today-val {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-family: 'DM Mono', monospace;
  line-height: 1;
}
.dash-today-lbl {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 3px;
}

/* Time in/out buttons */
.btn-timein, .btn-timeout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 12px;
  border: 2px solid;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.btn-timein {
  background: var(--blue-900);
  color: #fff;
  border-color: var(--blue-900);
}
.btn-timein:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15,32,68,.3); }
.btn-timeout {
  background: #fff;
  color: var(--red-500);
  border-color: var(--red-500);
}
.btn-timeout:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(239,68,68,.2); }

/* ── Profile photo upload ─────────────────────────────────────── */
.pm-avatar-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.pm-photo-upload-btn {
  position: absolute;
  bottom: -4px; right: -4px;
  width: 26px; height: 26px;
  background: var(--blue-600);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  cursor: pointer;
  border: 2px solid #fff;
  transition: background .15s, transform .15s;
  z-index: 2;
}
.pm-photo-upload-btn:hover {
  background: var(--blue-800);
  transform: scale(1.1);
}

/* ── Profile hero (modal) ─────────────────────────────────────── */
.profile-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--blue-900);
  background-image: radial-gradient(ellipse 60% 80% at 0% 0%, rgba(59,130,246,.2) 0%, transparent 60%);
  border-radius: 14px;
  margin-bottom: 20px;
}
.profile-hero-name  { font-size: 18px; font-weight: 800; color: #fff; }
.profile-hero-email { font-size: 12px; color: rgba(255,255,255,.5); font-family: 'DM Mono', monospace; margin: 2px 0 8px; }
.profile-stat-row {
  display: flex; gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}
.profile-stat {
  flex: 1; text-align: center;
  padding: 14px 8px;
  border-right: 1px solid var(--border);
}
.profile-stat:last-child { border-right: none; }
.profile-stat .val { font-size: 18px; font-weight: 800; color: var(--text); }
.profile-stat .lbl { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-top: 2px; }