/* ============================================================
   Unmarked Service Manager — Portal CSS v1.5.0
   Dashboard · Login · Password · Mobile
   ============================================================ */

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

:root {
  --font:        'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Surface */
  --bg:          #F5F5F7;
  --white:       #ffffff;
  --border:      rgba(0,0,0,.09);
  --border-faint:rgba(0,0,0,.05);

  /* Text */
  --t1: #1D1D1F;
  --t2: #6E6E73;
  --t3: #AEAEB2;

  /* Accent */
  --blue:        #0057FF;
  --blue-lt:     #EEF3FF;
  --blue-dark:   #0047D1;
  --green:       #30B960;
  --green-lt:    #ECFDF5;
  --orange:      #FF9F0A;
  --orange-lt:   #FFF3E0;
  --red:         #FF453A;
  --red-lt:      #FEE2E2;
  --purple:      #7C3AED;
  --purple-lt:   #EDE9FE;

  /* Layout */
  --sidebar-w:  256px;
  --topbar-h:    60px;
  --mobnav-h:    64px;

  /* Style */
  --radius:      16px;
  --radius-md:   12px;
  --radius-sm:   10px;
  --radius-xs:    8px;
  --shadow:      0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
  --shadow-auth: 0 20px 60px rgba(0,0,0,.09);
}

html, body {
  background: var(--bg);
  font-family: var(--font);
  color: var(--t1);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a  { text-decoration: none; color: inherit; }
img { display: block; }
button, input, select, textarea { font-family: var(--font); }

/* ─── Dashboard Shell ─────────────────────────────────────── */
.p-shell {
  display: flex;
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.p-sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 500;
  overflow-y: auto;
}

.p-sb-brand {
  padding: 20px 20px 25px;
  min-height: 66px;
  display: flex;
  align-items: center;
}
.p-sb-brand img { height: 28px; width: auto; }

.p-sb-nav { padding: 14px 10px; flex: 1; }

.p-nav-label {
  display: none;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--t3);
  padding: 0 10px;
  margin-bottom: 6px;
}

.p-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--t2); font-size: 14px; font-weight: 600;
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.p-nav-link svg { color: var(--t3); flex-shrink: 0; transition: color .15s; }
.p-nav-link:hover { background: var(--bg); color: var(--t1); }
.p-nav-link:hover svg { color: var(--t2); }
.p-nav-link.active { background: var(--blue-lt); color: var(--blue); }
.p-nav-link.active svg { color: var(--blue); }

.p-nav-badge {
  background: var(--red); color: #fff;
  border-radius: 99px; font-size: 10px; font-weight: 700;
  padding: 1px 7px; margin-left: auto; line-height: 1.5;
}

.p-nav-divider { height: 1px; background: var(--border); margin: 10px 4px; display:none;}

.p-nav-cta {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--blue); color: #fff;
  font-size: 14px; font-weight: 700;
  margin-bottom: 2px;
  margin-top: 20px;
  transition: background .15s, box-shadow .15s;
}
.p-nav-cta:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(0,87,255,.3); }
.p-nav-cta svg { flex-shrink: 0; }

/* Sidebar footer / user card */
.p-sb-footer { padding: 12px 10px; border-top: 1px solid var(--border); position: relative; }

.p-sb-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}
.p-sb-user-info { flex: 1; min-width: 0; }

.p-sb-avatar {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--t1); color: #fff;
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.p-sb-uname {
  font-size: 13px; font-weight: 700; color: var(--t1);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-sb-urole { font-size: 11px; color: var(--t3); }

.p-sb-logout {
  margin-left: auto; color: var(--t3); flex-shrink: 0;
  padding: 4px 5px; border-radius: 7px;
  display: flex; transition: all .15s;
}
.p-sb-logout:hover { color: var(--red); background: var(--red-lt); }

/* ══════════════════════════════════════════════════════════
   MAIN AREA
══════════════════════════════════════════════════════════ */
.p-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

/* ─── Topbar ──────────────────────────────────────────────── */
.p-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.p-topbar-left  { display: flex; align-items: center; gap: 12px; }
.p-topbar-title { font-size: 17px; font-weight: 800; color: var(--t1); letter-spacing: -.3px; }
.p-topbar-right { display: flex; align-items: center; gap: 10px; }

/* ─── Content ─────────────────────────────────────────────── */
.p-content { padding: 28px; flex: 1; }

/* ══════════════════════════════════════════════════════════
   UI COMPONENTS
══════════════════════════════════════════════════════════ */

/* ─── Hero banner ─────────────────────────────────────────── */
.p-hero {
  background: linear-gradient(135deg, #0B1120 0%, #1A2C4A 100%);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}
.p-hero-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: var(--blue); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.p-hero-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: rgba(255,255,255,.4); margin-bottom: 3px;
}
.p-hero-date  { font-size: 20px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.p-hero-sub   { font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.p-hero-pill  {
  margin-left: auto; flex-shrink: 0;
  background: rgba(0,87,255,.25); color: #93C5FD;
  border: 1px solid rgba(0,87,255,.3);
  border-radius: 99px; padding: 5px 14px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}

/* ─── Stats ───────────────────────────────────────────────── */
.p-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 18px;
}
.p-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.p-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.p-stat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.si-dark   { background: #0B1120; color: #fff; }
.si-green  { background: var(--green-lt);  color: var(--green);  }
.si-orange { background: var(--orange-lt); color: var(--orange); }
.si-blue   { background: var(--blue-lt);   color: var(--blue);   }
.p-stat-val { font-size: 26px; font-weight: 800; line-height: 1; color: var(--t1); }
.p-stat-lbl { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--t3); margin-top: 3px; }

/* ─── Card ────────────────────────────────────────────────── */
.p-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 18px;
}
.p-card:last-child { margin-bottom: 0; }

.p-card-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.p-card-head h2 { font-size: 15px; font-weight: 700; color: var(--t1); }
.p-card-body { padding: 20px 22px; }

/* ─── Object grid ─────────────────────────────────────────── */
.p-obj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  padding: 18px 20px;
}
.p-obj-grid--standalone { padding: 0; }

.p-obj-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.p-obj-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,255,.07), var(--shadow-lg); }

.p-obj-head {
  background: #0B1120;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.p-obj-head-icon {
  width: 34px; height: 34px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.p-obj-head-info { flex: 1; min-width: 0; }
.p-obj-head-name {
  font-size: 13px; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.p-obj-head-addr {
  font-size: 12px; color: rgba(255,255,255,.4); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.p-obj-body { padding: 14px 16px; }
.p-obj-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0; border-bottom: 1px solid var(--border-faint);
}
.p-obj-row:last-of-type { border-bottom: none; }
.p-obj-key { font-size: 12px; color: var(--t3); }
.p-obj-val { font-size: 12px; font-weight: 700; color: var(--t1); }
.p-obj-notes { font-size: 12px; color: var(--t3); padding-top: 10px; line-height: 1.5; }
.p-obj-foot { padding-top: 12px; border-top: 1px solid var(--border); margin-top: 6px; display: flex; gap: 8px; }

/* ─── Timeline ────────────────────────────────────────────── */
.p-timeline { display: flex; flex-direction: column; }

.p-tl-item {
  display: flex; gap: 14px;
  padding-bottom: 20px;
  position: relative;
}
.p-tl-item:not(:last-child)::before {
  content: '';
  position: absolute; left: 7px; top: 18px; bottom: 0;
  width: 2px; background: var(--border); border-radius: 2px;
}
.p-tl-dot {
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%; margin-top: 4px;
  border: 2.5px solid var(--white);
  box-shadow: 0 0 0 2px rgba(0,0,0,.12);
}
.dot-geplant       { background: var(--blue);   box-shadow: 0 0 0 2px rgba(0,87,255,.2); }
.dot-abgeschlossen { background: var(--green);  box-shadow: 0 0 0 2px rgba(48,185,96,.2); }
.dot-verschoben    { background: var(--orange); box-shadow: 0 0 0 2px rgba(255,159,10,.2); }

.p-tl-card {
  flex: 1;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
}
.p-tl-item.is-next .p-tl-card { background: var(--blue-lt); border-color: rgba(0,87,255,.2); }

.p-tl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.p-tl-name { font-size: 13px; font-weight: 700; color: var(--t1); display: flex; align-items: center; gap: 8px; }
.p-tl-next-pill { background: var(--blue); color: #fff; border-radius: 99px; font-size: 10px; font-weight: 700; padding: 2px 8px; }
.p-tl-meta { display: flex; gap: 12px; font-size: 12px; color: var(--t3); flex-wrap: wrap; margin-top: 4px; }
.p-tl-notes { font-size: 13px; color: var(--t2); margin-top: 8px; line-height: 1.6; }

/* ─── Damage list ─────────────────────────────────────────── */
.p-dmg-list { display: flex; flex-direction: column; }
.p-dmg-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px; border-bottom: 1px solid var(--border-faint);
  transition: background .1s;
}
.p-dmg-item:last-child { border-bottom: none; }
.p-dmg-item:hover { background: var(--bg); }

.p-dmg-thumb {
  width: 50px; height: 50px; flex-shrink: 0;
  object-fit: cover; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.p-dmg-placeholder {
  width: 50px; height: 50px; flex-shrink: 0;
  background: #F2F2F7; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--t3);
}
.p-dmg-body { flex: 1; min-width: 0; }
.p-dmg-meta { display: flex; gap: 10px; font-size: 12px; color: var(--t3); margin-bottom: 4px; align-items: center; }
.p-dmg-obj  { font-weight: 600; color: var(--t2); }
.p-dmg-text { font-size: 13px; color: var(--t1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ─── Badges ──────────────────────────────────────────────── */
.p-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; line-height: 1.4;
  flex-shrink: 0; white-space: nowrap;
}
.badge-neu            { background: #FEF9C3; color: #854D0E; }
.badge-in-bearbeitung { background: #DBEAFE; color: #1E40AF; }
.badge-erledigt       { background: var(--green-lt);  color: #14532D; }
.badge-geplant        { background: var(--purple-lt); color: var(--purple); }
.badge-abgeschlossen  { background: var(--green-lt);  color: var(--green); }
.badge-verschoben     { background: var(--red-lt);    color: #991B1B; }

.pkg-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: 10px; font-weight: 700; flex-shrink: 0; white-space: nowrap; }
.pkg-standard   { background: #F2F2F7; color: var(--t2); border: 1px solid rgba(0,0,0,.07); }
.pkg-sicherheit { background: #DBEAFE; color: #1E40AF; }
.pkg-premium    { background: var(--orange-lt); color: var(--orange); }

/* ─── Code chip ───────────────────────────────────────────── */
.p-code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 11px; letter-spacing: .4px;
  background: #F2F2F7; color: var(--t2);
  padding: 2px 8px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.06);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.p-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; line-height: 1;
  border: none; cursor: pointer; white-space: nowrap;
  transition: all .15s; text-decoration: none;
}
.p-btn-primary { background: var(--blue); color: #fff; }
.p-btn-primary:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(0,87,255,.3); color: #fff; }
.p-btn-outline { background: transparent; color: var(--t1); border: 1.5px solid var(--border); }
.p-btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.p-btn-ghost { background: transparent; color: var(--blue); font-weight: 600; padding: 0; }
.p-btn-ghost:hover { text-decoration: underline; }
.p-btn-sm   { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.p-btn-lg   { padding: 13px 24px; font-size: 15px; border-radius: var(--radius-md); }
.p-btn-full { width: 100%; justify-content: center; }

/* ─── Forms ───────────────────────────────────────────────── */
.p-field { margin-bottom: 18px; }
.p-field label { display: block; font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 7px; }
.p-required { color: var(--red); margin-left: 2px; }

.p-input,
.p-select,
.p-textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--t1); background: var(--white);
  font-family: var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.p-input:focus, .p-select:focus, .p-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,255,.1);
}
.p-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23AEAEB2' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px; cursor: pointer;
}
.p-textarea { resize: vertical; min-height: 120px; }

.p-drop {
  border: 2px dashed rgba(0,0,0,.12); border-radius: var(--radius-md);
  padding: 28px 20px; text-align: center; cursor: pointer;
  background: #F9F9F9; position: relative;
  transition: border-color .15s, background .15s;
}
.p-drop:hover { border-color: var(--blue); background: var(--blue-lt); }
.p-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.p-drop svg { color: var(--t3); margin: 0 auto 8px; }
.p-drop-hint { font-size: 14px; color: var(--t3); }
.p-drop-hint span { color: var(--blue); font-weight: 600; }
.p-drop-sub { font-size: 12px; color: var(--t3); margin-top: 4px; }

.p-file-preview { display: none; margin-top: 12px; text-align: center; }
.p-file-preview img { max-width: 200px; max-height: 150px; border-radius: var(--radius-sm); border: 1px solid var(--border); margin: 0 auto; }
.p-file-remove { margin-top: 8px; font-size: 13px; }

.p-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--t2);
  margin-bottom: 20px; cursor: pointer;
}
.p-remember input { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }

/* ─── Alerts ──────────────────────────────────────────────── */
.p-alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 18px;
  display: flex; align-items: flex-start; gap: 8px; line-height: 1.5;
}
.p-alert svg { flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--green-lt);  color: #14532D; }
.alert-error   { background: var(--red-lt);    color: #991B1B; }
.alert-info    { background: var(--blue-lt);   color: #1E40AF; font-weight: 600; }
/* JS-hidden alerts */
.p-alert[hidden], .p-alert.is-hidden { display: none !important; }

/* ─── Empty state ─────────────────────────────────────────── */
.p-empty {
  padding: 60px 24px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.p-empty svg { color: #C7C7CC; }
.p-empty p   { font-size: 14px; color: var(--t3); max-width: 260px; }

/* ─── Spinner ─────────────────────────────────────────────── */
.p-spin { animation: p-spin-anim 1s linear infinite; }
@keyframes p-spin-anim { to { transform: rotate(360deg); } }

/* ─── Report form wrapper ─────────────────────────────────── */
.p-report-wrap { max-width: 580px; }

/* ══════════════════════════════════════════════════════════
   AUTH PAGES — login.php / password.php
══════════════════════════════════════════════════════════ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); padding: 24px;
}
.auth-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px; padding: 40px;
  max-width: 420px; width: 100%;
  box-shadow: var(--shadow-auth);
}
.auth-logo { margin-bottom: 28px; }
.auth-logo img { height: 30px; width: auto; }

.auth-box form { display: flex; flex-direction: column; }

.auth-title { font-size: 22px; font-weight: 800; color: var(--t1); margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--t3); margin-bottom: 24px; }

.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 13px; font-weight: 600; color: var(--t1); margin-bottom: 7px; }
.auth-field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(0,0,0,.1); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--t1); background: var(--white);
  font-family: var(--font); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,255,.1);
}

.auth-forgot-row { text-align: right; margin-top: 15px; order: 10; display: flex; justify-content: center; }
.auth-forgot-row a { font-size: 13px; color: var(--blue); font-weight: 600; }
.auth-forgot-row a:hover { text-decoration: underline; }

.auth-remember {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--t2); margin-bottom: 40px; cursor: pointer;
}
.auth-remember input { width: 16px; height: 16px; accent-color: var(--blue); flex-shrink: 0; }

.auth-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 13px 24px;
  background: var(--blue); color: #fff;
  border: none; border-radius: var(--radius-md);
  font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: var(--font);
  transition: background .15s, box-shadow .15s;
}
.auth-btn:hover { background: var(--blue-dark); box-shadow: 0 4px 16px rgba(0,87,255,.3); }

.auth-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--t3); }
.auth-footer a { color: var(--blue); font-weight: 600; }
.auth-footer a:hover { text-decoration: underline; }

.auth-qr-notice {
  background: var(--blue-lt); color: #1E40AF;
  border: 1px solid rgba(0,87,255,.15);
  border-radius: var(--radius-sm); padding: 11px 14px;
  font-size: 13px; font-weight: 600; margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}

/* password.php specific */
.auth-success-wrap { text-align: center; }
.auth-success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--green-lt);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.auth-success-title { font-size: 20px; font-weight: 800; color: var(--t1); margin-bottom: 8px; }
.auth-success-sub   { font-size: 14px; color: var(--t3); margin-bottom: 24px; }

.auth-back-link { display: block; text-align: center; margin-top: 16px; font-size: 13px; color: var(--blue); font-weight: 600; }
.auth-back-link:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV
══════════════════════════════════════════════════════════ */
.p-mob-nav {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around; align-items: flex-end;
}
.p-mob-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  text-decoration: none; padding: 5px 8px; flex: 1; position: relative;
}
.p-mob-nav-icon { display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.p-mob-nav-item.active .p-mob-nav-icon { transform: scale(1.1); }
.p-mob-nav-label { font-size: 10px; font-weight: 600; color: var(--t3); font-family: var(--font); }
.p-mob-nav-item.active .p-mob-nav-label { color: var(--blue); font-weight: 700; }
.p-mob-nav-badge {
  position: absolute; top: 2px; right: calc(50% - 18px);
  background: var(--red); color: #fff;
  border-radius: 99px; font-size: 9px; font-weight: 700; padding: 1px 5px; line-height: 1.4;
}

/* FAB */
.p-mob-fab {
  display: none;
  position: fixed;
  bottom: calc(var(--mobnav-h) + env(safe-area-inset-bottom) + 12px);
  left: 50%; transform: translateX(-50%);
  z-index: 9999;
  background: var(--blue); color: #fff;
  border-radius: 99px; padding: 12px 22px;
  font-size: 14px; font-weight: 700; font-family: var(--font);
  white-space: nowrap; align-items: center; gap: 8px;
  box-shadow: 0 4px 24px rgba(0,87,255,.4);
  text-decoration: none;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.p-mob-fab:hover { background: var(--blue-dark); box-shadow: 0 6px 28px rgba(0,87,255,.5); transform: translateX(-50%) translateY(-2px); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .p-sidebar          { display: none; }
  .p-main             { margin-left: 0; }
  .p-topbar           { display: none; }
  .p-content          { padding: 16px 14px calc(var(--mobnav-h) + env(safe-area-inset-bottom) + 80px); }
  .p-mob-nav          { display: flex; }
  .p-mob-fab          { display: flex; }
  .p-stats            { grid-template-columns: 1fr 1fr; }
  .p-hero             { flex-wrap: wrap; gap: 12px; }
  .p-hero-pill        { margin-left: 0; }
  .p-obj-grid         { padding: 14px; grid-template-columns: 1fr; }
  .p-card-head        { padding: 14px 16px; }
  .p-card-body        { padding: 16px; }
  .p-dmg-item         { padding: 12px 16px; }
  .p-report-wrap      { max-width: 100%; }
  .auth-box           { padding: 32px 24px; }
}

@media (max-width: 480px) {
  .p-stats            { grid-template-columns: 1fr; }
  .p-topbar-right     { display: none; }
  .auth-box           { padding: 28px 18px; border-radius: 16px; }
}

/* auth-btn inline variant (password success page) */
.auth-btn--inline { display: inline-flex; width: auto; padding: 13px 32px; }

/* Fix 2: Hide FAB on report tab */
.p-mob-fab--hidden { display: none !important; }

/* ── Profile banner + context menu ──────────────────────────── */
.p-sb-user--clickable {
  cursor: pointer;
  transition: background .15s, border-color .15s;
  user-select: none;
}
.p-sb-user--clickable:hover { background: #F0F4FF; border-color: rgba(0,87,255,.2); }

.p-profile-chevron {
  color: var(--t3); flex-shrink: 0;
  transition: transform .2s;
}
#p-profile-trigger[aria-expanded="true"] .p-profile-chevron { transform: rotate(180deg); }

.p-profile-menu {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 10px; right: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  overflow: hidden;
  z-index: 600;
  animation: p-menu-in .15s ease;
  display: none;
}

.is-open {
  display: block;
}
@keyframes p-menu-in {
  from { opacity:0; transform: translateY(6px); }
  to   { opacity:1; transform: translateY(0); }
}
/* p-sb-footer position set above */

.p-pmenu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  font-size: 13px; font-weight: 600; color: var(--t2);
  text-decoration: none;
  transition: background .1s, color .1s;
}
.p-pmenu-item:hover { background: var(--bg); color: var(--t1); }
.p-pmenu-item svg { flex-shrink: 0; }
.p-pmenu-divider { height: 1px; background: var(--border);}
.p-pmenu-danger { color: var(--red) !important; }
.p-pmenu-danger:hover { background: var(--red-lt) !important; }
