/* Public portal v15 — AccurateLab brand */
:root {
  --primary: #1D428A;
  --primary-dark: #152f63;
  --primary-light: #2d5199;
  --accent: #E31E24;
  --accent-dark: #b8181d;
  --primary-soft: #eef2f9;
  --accent-soft: #fdeced;
  --primary-glow: rgba(29, 66, 138, 0.12);
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #E31E24;
  --pdf: #dc2626;
  --pdf-soft: #fef2f2;
  --pad: 16px;
  --radius: 16px;
  --radius-sm: 12px;
  --touch: 48px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
}

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

html { -webkit-text-size-adjust: 100%; width: 100%; }

body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(29, 66, 138, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(227, 30, 36, 0.05) 0%, transparent 40%);
  color: var(--text);
  line-height: 1.5;
  direction: rtl;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  overflow-x: hidden;
}

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

.p-page {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ── Top header (matches admin main-header) ── */
.p-toolbar-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
}

.p-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 70px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.72);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
}

.p-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  flex: 1;
}

.p-header-logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.p-brand-logo {
  position: relative;
  isolation: isolate;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(29, 66, 138, 0.15);
  border: 1px solid rgba(29, 66, 138, 0.12);
  color: #fff;
  font-size: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.p-brand-logo::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(227, 30, 36, 0.28), rgba(29, 66, 138, 0.22));
  filter: blur(12px);
  z-index: -1;
  opacity: 0.75;
}

.p-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.p-brand-logo-fallback {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
}

.p-brand-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.p-brand-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-brand-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.p-brand-sub .fa-circle {
  color: #10b981;
  font-size: 0.45rem;
}

.p-header-title-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-right: 0.5rem;
  border-right: 1px solid var(--border);
}

.p-page-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1D428A 0%, #E31E24 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-page-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.p-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.p-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(29, 66, 138, 0.2);
  background: var(--primary-soft);
  color: var(--primary-dark);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.p-header-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(29, 66, 138, 0.2);
}

.p-header-btn.is-open {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(29, 66, 138, 0.25);
}

.p-header-btn-chevron {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.p-header-btn.is-open .p-header-btn-chevron {
  transform: rotate(180deg);
}

.p-contact-panel {
  background: rgba(248, 250, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  animation: pPanelIn 0.22s ease;
}

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

.p-contact-panel-inner {
  padding: 1rem var(--pad) 1.25rem;
}

.p-contact-panel-head {
  margin-bottom: 0.85rem;
}

.p-contact-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.p-contact-panel-head h3 i {
  color: var(--primary);
}

.p-contact-panel-head p {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

.p-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.p-contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.p-contact-card:hover {
  border-color: rgba(29, 66, 138, 0.25);
  box-shadow: var(--shadow);
}

.p-contact-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(29, 66, 138, 0.18);
}

.p-contact-card-icon--map {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.p-contact-card-icon--user {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.18);
}

.p-contact-card-body {
  flex: 1;
  min-width: 0;
}

.p-contact-card-body strong {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 2px;
}

.p-contact-card-body a,
.p-contact-card-body span {
  display: block;
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.p-contact-card-body a {
  color: var(--primary) !important;
}

.p-contact-card-action {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff !important;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 10px rgba(29, 66, 138, 0.2);
}

.p-contact-card-action:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ── Header ── */
.p-top {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px var(--pad);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(29, 66, 138, 0.25);
}

.p-top-logo {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  padding: 4px;
}

.p-top-logo-fallback {
  display: none;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.25);
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.p-top-text { flex: 1; min-width: 0; }

.p-top-text h1 {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.p-top-text p {
  font-size: 0.78rem;
  opacity: 0.9;
  margin-top: 3px;
}

/* ── Body ── */
.p-body {
  flex: 1;
  width: 100%;
  padding: var(--pad);
  padding-bottom: calc(var(--pad) + env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
}

/* ── Blocks ── */
.p-block {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.p-block-center { text-align: center; padding: 40px 24px; }
.p-block-center h2 { font-size: 1.1rem; margin: 14px 0 8px; font-weight: 800; }
.p-block-center p { font-size: 0.9rem; color: var(--muted); margin-bottom: 18px; }

.p-block-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-block-title i { color: var(--primary); }
.p-block-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

/* ── Search ── */
.p-search-head {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.p-search-head h2 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-search-head h2 i { color: var(--primary); font-size: 0.9rem; }

.p-form { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.p-field { width: 100%; display: flex; flex-direction: column; gap: 6px; }

.p-field span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.p-field span i { margin-left: 5px; color: var(--primary); }

.p-field input {
  width: 100%;
  height: var(--touch);
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.p-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.p-field-row { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.p-form-btns { width: 100%; display: flex; gap: 10px; flex-wrap: wrap; }
.p-form-btns .p-btn-main { flex: 1; min-width: 140px; }

.p-refresh-btn.is-loading {
  opacity: 0.85;
  pointer-events: none;
}

.p-refresh-btn.is-loading .fa-sync-alt {
  animation: p-spin 0.75s linear infinite;
}

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

/* ── Buttons ── */
.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--touch);
  padding: 0 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
}

.p-btn-main {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(227, 30, 36, 0.3);
}

.p-btn-main:active { transform: scale(0.98); opacity: 0.95; }
.p-btn-full { width: 100%; }

.p-btn-ghost {
  background: var(--surface);
  color: var(--muted) !important;
  border: 1.5px solid var(--border);
  min-height: var(--touch);
  padding: 0 18px;
  flex-shrink: 0;
  box-shadow: none;
}

.p-btn-icon {
  width: 46px; height: 46px; min-height: 46px; padding: 0;
  background: var(--primary-soft);
  color: var(--primary) !important;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: none;
}

/* ── Results summary ── */
.p-results-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.p-results-summary span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.p-results-summary i { color: var(--primary); }

/* ── Contacts ── */
.p-contacts { list-style: none; width: 100%; display: flex; flex-direction: column; gap: 10px; }

.p-contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.p-contact-info { flex: 1; min-width: 0; }
.p-contact-info strong { display: block; font-size: 0.925rem; font-weight: 700; }
.p-contact-info a { font-size: 0.85rem; color: var(--primary) !important; font-weight: 600; }

/* ── Patient cards ── */
.p-patients { width: 100%; display: flex; flex-direction: column; gap: 16px; }

.p-day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.p-day-divider::before,
.p-day-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.p-day-divider span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}

.p-day-divider span i {
  color: var(--primary);
}

.p-file-day-label {
  list-style: none;
  margin: 0.35rem 0 0.15rem;
  padding: 0.5rem 1rem 0.15rem;
}

.p-file-day-label span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.p-file-day-label span i {
  color: var(--primary);
  font-size: 0.72rem;
}

.p-file-day-label[hidden] {
  display: none;
}

.p-patient {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.p-patient-head {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(29, 66, 138, 0.12);
}

.p-patient-title {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.p-patient-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(29, 66, 138, 0.3);
}

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

.p-patient-info strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
  word-break: break-word;
  color: var(--text);
}

.p-patient-info small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
}

.p-patient-actions { flex-shrink: 0; }

.p-btn-dl-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(29, 66, 138, 0.25);
  -webkit-tap-highlight-color: transparent;
}

.p-btn-dl-all:active { transform: scale(0.97); opacity: 0.9; }

/* ── File rows ── */
.p-files {
  list-style: none;
  width: 100%;
  margin: 0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.p-file-row {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.p-file-row:active {
  border-color: rgba(29, 66, 138, 0.3);
  box-shadow: var(--shadow-sm);
}

.p-file-row.is-read {
  background: #fff5f5;
  border-color: rgba(239, 68, 68, 0.28);
}

.p-file-row.is-read .p-file-icon {
  background: #fee2e2;
  color: #dc2626;
}

.p-file-row.is-read .p-file-name span {
  color: #b91c1c;
}

.p-file-read-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  color: #dc2626;
}

.p-file-read-badge.is-unread {
  color: var(--primary);
}

.p-file-read-badge i {
  font-size: 0.6rem;
}

.p-unread-count {
  color: var(--primary);
  font-weight: 700;
}

.p-btn-dl-all.is-read {
  background: #dc2626;
  color: #fff !important;
  border: none;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
}

.p-btn-dl-all.is-read:active {
  background: #b91c1c;
}

.p-file-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--pdf-soft);
  color: var(--pdf);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.p-file-name {
  flex: 1;
  min-width: 0;
}

.p-file-name span {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
  color: var(--text);
}

.p-file-name small {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}

.p-file-name small i { font-size: 0.65rem; }

.p-file-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.p-act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1rem;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, background 0.12s;
}

.p-act-btn:active { transform: scale(0.94); }

.p-act-view {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 3px 8px rgba(29, 66, 138, 0.25);
}

.p-act-dl {
  background: var(--surface);
  color: var(--primary) !important;
  border: 1.5px solid rgba(29, 66, 138, 0.35);
}

/* ── Empty ── */
.p-empty-icon {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 50%;
  background: var(--primary-soft);
  display: grid; place-items: center;
  font-size: 1.5rem; color: var(--primary);
}

.p-empty-icon--err { background: #fff1f2; color: var(--danger); }

/* ── Footer ── */
.p-footer {
  width: 100%;
  padding: 18px var(--pad);
  padding-bottom: calc(18px + env(safe-area-inset-bottom, 0));
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-footer strong { color: var(--text); font-size: 0.875rem; font-weight: 800; }

.p-footer-lab {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.p-dev-strip {
  width: 100%;
  padding: 0.35rem var(--pad);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  line-height: 1.4;
}

.p-dev-strip a {
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
}

.p-dev-strip a:hover { text-decoration: underline; }

.p-site-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 50%, rgba(227, 30, 36, 0.28) 0%, transparent 44%),
    radial-gradient(circle at 100% 50%, rgba(29, 66, 138, 0.32) 0%, transparent 42%),
    linear-gradient(135deg, #0f2347 0%, #1D428A 42%, #1D428A 62%, #c0191f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 10px 32px rgba(29, 66, 138, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.p-site-banner-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

.p-site-banner-glow--gold {
  width: 160px;
  height: 160px;
  top: -80px;
  right: 10%;
  background: rgba(227, 30, 36, 0.42);
  animation: p-dev-pulse 4.5s ease-in-out infinite;
}

.p-site-banner-glow--cyan {
  width: 140px;
  height: 140px;
  bottom: -70px;
  left: 6%;
  background: rgba(29, 66, 138, 0.38);
  animation: p-dev-pulse 5.5s ease-in-out infinite reverse;
}

.p-site-banner-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.03) 44%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0.03) 56%,
    transparent 64%
  );
  transform: translateX(-120%);
  animation: p-dev-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

.p-site-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.85rem var(--pad);
  text-align: center;
}

.p-site-banner-badge {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 1.05rem;
  background: linear-gradient(145deg, #E31E24, #b8181d);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 8px 22px rgba(227, 30, 36, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: p-banner-badge-pulse 2.8s ease-in-out infinite;
}

@keyframes p-banner-badge-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 8px 22px rgba(227, 30, 36, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.2); }
  50% { transform: scale(1.06); box-shadow: 0 10px 28px rgba(227, 30, 36, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
}

.p-site-banner-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.p-site-banner-text-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.p-site-banner-text {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.55;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

a.p-site-banner-text {
  transition: color 0.18s, text-shadow 0.18s;
}

a.p-site-banner-text:hover {
  color: #fecaca;
  text-shadow: 0 0 20px rgba(227, 30, 36, 0.45);
  text-decoration: none;
}

.p-site-banner-link-icon {
  font-size: 0.72rem;
  opacity: 0.85;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .p-site-banner-inner {
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem var(--pad);
  }

  .p-site-banner-badge {
    width: 38px;
    height: 38px;
    font-size: 0.92rem;
  }

  .p-site-banner-text {
    font-size: 0.88rem;
  }

  .p-site-banner-text-wrap {
    padding: 0.5rem 0.95rem;
  }
}

.p-dev-bar {
  position: relative;
  width: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 50%, rgba(227, 30, 36, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 100% 50%, rgba(29, 66, 138, 0.28) 0%, transparent 40%),
    linear-gradient(135deg, #0f2347 0%, #1D428A 45%, #c0191f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 8px 28px rgba(29, 66, 138, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.p-dev-bar-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(28px);
}

.p-dev-bar-glow--gold {
  width: 180px;
  height: 180px;
  top: -90px;
  right: 12%;
  background: rgba(227, 30, 36, 0.38);
  animation: p-dev-pulse 4.5s ease-in-out infinite;
}

.p-dev-bar-glow--cyan {
  width: 160px;
  height: 160px;
  bottom: -80px;
  left: 8%;
  background: rgba(34, 211, 238, 0.28);
  animation: p-dev-pulse 5.5s ease-in-out infinite reverse;
}

.p-dev-bar-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 36%,
    rgba(255, 255, 255, 0.03) 44%,
    rgba(255, 255, 255, 0.16) 50%,
    rgba(255, 255, 255, 0.03) 56%,
    transparent 64%
  );
  transform: translateX(-120%);
  animation: p-dev-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes p-dev-shimmer {
  0%, 18%, 100% { transform: translateX(-120%); opacity: 0; }
  42%, 58% { transform: translateX(120%); opacity: 1; }
}

@keyframes p-dev-pulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.p-dev-bar-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px var(--pad);
}

.p-dev-bar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.p-dev-bar-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fef3c7;
  font-size: 1rem;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.28), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.p-dev-bar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.p-dev-bar-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.p-dev-bar-name-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.p-dev-bar-name {
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.2;
  color: #fde68a;
  text-shadow: 0 0 18px rgba(251, 191, 36, 0.35);
  text-decoration: none;
  transition: color 0.18s, text-shadow 0.18s;
}

a.p-dev-bar-name:hover {
  color: #fff7cc;
  text-shadow: 0 0 24px rgba(251, 191, 36, 0.55);
}

.p-dev-bar-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.p-dev-bar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.p-dev-bar-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.p-dev-bar-tagline {
  display: flex;
  flex-direction: column;
  gap: 1px;
  text-align: right;
  min-width: 0;
}

.p-dev-bar-kicker {
  font-size: 0.64rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.02em;
}

.p-dev-bar-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  white-space: nowrap;
}

.p-dev-bar-divider {
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  flex-shrink: 0;
}

.p-dev-bar-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.p-dev-bar-credit-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
}

.p-dev-bar-company {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}

a.p-dev-bar-company:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.p-dev-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
}

.p-dev-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
  transition: background 0.18s, transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.p-dev-action:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.p-dev-action-fb:hover {
  background: rgba(24, 119, 242, 0.42);
  border-color: rgba(147, 197, 253, 0.5);
}

.p-dev-action i {
  font-size: 0.82rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .p-dev-bar-inner {
    gap: 10px;
    padding: 12px;
    justify-content: center;
  }

  .p-dev-bar-main {
    width: 100%;
    justify-content: center;
  }

  .p-dev-bar-copy {
    align-items: center;
    text-align: center;
  }

  .p-dev-bar-name-wrap {
    justify-content: center;
  }

  .p-dev-bar-tag {
    width: 100%;
    padding-right: 0;
    border-right: 0;
    text-align: center;
  }

  .p-dev-bar-actions {
    width: 100%;
    justify-content: center;
  }

  .p-dev-action span {
    display: none;
  }

  .p-dev-action {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .p-header-title-block {
    display: none;
  }

  .p-brand-title {
    font-size: 0.9rem;
    max-width: 140px;
  }

  .p-header-btn span,
  .p-header-btn-chevron {
    display: none;
  }

  .p-header-btn {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  .p-field-row { grid-template-columns: 1fr; }

  .p-patient-head {
    flex-wrap: wrap;
  }

  .p-patient-actions {
    width: 100%;
  }

  .p-btn-dl-all {
    width: 100%;
    min-height: 40px;
  }
}

@media (max-width: 360px) {
  .p-btn-dl-all span { display: none; }
  .p-btn-dl-all { width: 42px; padding: 0; border-radius: 10px; }
}

@media (min-width: 768px) {
  :root { --pad: 24px; }

  .p-body {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .p-top, .p-footer, .p-main-header {
    padding-left: max(24px, calc((100% - 720px) / 2));
    padding-right: max(24px, calc((100% - 720px) / 2));
  }

  .p-contact-panel-inner {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }

  .p-contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-file-row:hover {
    border-color: rgba(29, 66, 138, 0.25);
    box-shadow: var(--shadow-sm);
  }
}

@media (min-width: 1024px) {
  .p-body { max-width: 860px; }

  .p-main-header {
    min-height: 80px;
    padding-left: max(32px, calc((100% - 860px) / 2));
    padding-right: max(32px, calc((100% - 860px) / 2));
  }

  .p-top, .p-footer {
    padding-left: max(32px, calc((100% - 860px) / 2));
    padding-right: max(32px, calc((100% - 860px) / 2));
  }

  .p-page-title {
    font-size: 1.35rem;
  }

  .p-contact-panel-inner {
    max-width: 860px;
  }

  .p-patient-info strong { font-size: 1.05rem; }
}

/* Portal notification modal */
body.p-notif-open {
  overflow: hidden;
}

.p-notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.p-notif-overlay[hidden] {
  display: none !important;
}

.p-notif-modal {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  animation: p-notif-in 0.22s ease;
}

@keyframes p-notif-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.p-notif-head {
  padding: 1.15rem 1.15rem 0.75rem;
  background: linear-gradient(180deg, rgba(29, 66, 138, 0.08) 0%, transparent 100%);
}

.p-notif-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(29, 66, 138, 0.12);
  color: #1D428A;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.p-notif-head h2 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.5;
  color: #0f172a;
}

.p-notif-body {
  padding: 0.25rem 1.15rem 1rem;
  max-height: min(58vh, 420px);
  overflow: auto;
}

.p-notif-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #334155;
  font-weight: 600;
}

.p-notif-text.muted {
  color: #64748b;
}

.p-notif-image-wrap {
  margin-bottom: 0.85rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.p-notif-image-wrap img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #f8fafc;
}

.p-notif-actions {
  padding: 0 1.15rem 1.15rem;
}

/* ── Welcome splash (reports portal) ── */
body.p-welcome-active {
  overflow: hidden;
}

.p-welcome-splash {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(227, 30, 36, 0.28) 0%, transparent 42%),
    radial-gradient(circle at 80% 80%, rgba(29, 66, 138, 0.32) 0%, transparent 45%),
    linear-gradient(145deg, #152f63 0%, #1D428A 45%, #E31E24 100%);
  animation: p-welcome-in 0.45s ease;
  cursor: pointer;
}

.p-welcome-splash.is-out {
  animation: p-welcome-out 0.65s ease forwards;
  pointer-events: none;
}

.p-welcome-splash.is-hidden {
  display: none;
}

.p-welcome-splash.is-refresh .p-welcome-kicker i {
  animation: p-spin 0.75s linear infinite;
}

.p-welcome-splash.is-refresh .p-welcome-bar span {
  animation-duration: 1.1s;
}

@keyframes p-welcome-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes p-welcome-out {
  to { opacity: 0; transform: scale(1.03); }
}

.p-welcome-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.p-welcome-particles span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: p-welcome-float 4s ease-in-out infinite;
}

.p-welcome-particles span:nth-child(1) { top: 12%; right: 18%; animation-delay: 0s; }
.p-welcome-particles span:nth-child(2) { top: 28%; left: 14%; width: 6px; height: 6px; animation-delay: 0.6s; }
.p-welcome-particles span:nth-child(3) { bottom: 22%; right: 24%; width: 10px; height: 10px; animation-delay: 1.1s; }
.p-welcome-particles span:nth-child(4) { bottom: 30%; left: 20%; animation-delay: 0.3s; }
.p-welcome-particles span:nth-child(5) { top: 45%; right: 8%; width: 5px; height: 5px; animation-delay: 1.8s; }
.p-welcome-particles span:nth-child(6) { top: 18%; left: 42%; width: 7px; height: 7px; animation-delay: 2.2s; }

@keyframes p-welcome-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.35; }
  50% { transform: translateY(-14px) scale(1.15); opacity: 0.75; }
}

.p-welcome-card {
  position: relative;
  width: min(92vw, 380px);
  text-align: center;
  color: #fff;
  animation: p-welcome-card 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes p-welcome-card {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.p-welcome-logo-ring {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  animation: p-welcome-pulse 2.2s ease-in-out infinite;
}

@keyframes p-welcome-pulse {
  0%, 100% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 0 0 0 rgba(255, 255, 255, 0.25); }
  50% { box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22), 0 0 0 12px rgba(255, 255, 255, 0); }
}

.p-welcome-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
}

.p-welcome-logo-fallback {
  display: none;
  width: 72px;
  height: 72px;
  place-items: center;
  font-size: 2rem;
  color: #fff;
}

.p-welcome-kicker {
  font-size: 0.95rem;
  font-weight: 700;
  opacity: 0.92;
  margin-bottom: 0.5rem;
  animation: p-welcome-fade-up 0.6s ease 0.35s both;
}

.p-welcome-kicker i {
  margin-left: 0.35rem;
}

.p-welcome-lab {
  font-size: clamp(1.5rem, 6vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  animation: p-welcome-fade-up 0.65s ease 0.5s both;
}

.p-welcome-sub {
  font-size: 0.88rem;
  opacity: 0.88;
  font-weight: 600;
  animation: p-welcome-fade-up 0.65s ease 0.65s both;
}

@keyframes p-welcome-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.p-welcome-bar {
  width: 120px;
  height: 4px;
  margin: 1.35rem auto 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  animation: p-welcome-fade-up 0.5s ease 0.8s both;
}

.p-welcome-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: inherit;
  animation: p-welcome-progress 2.4s ease forwards;
}

@keyframes p-welcome-progress {
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .p-btn, .p-act-btn, .p-file-row, .p-field input, .p-header-btn { transition: none; }
  .p-contact-panel { animation: none; }
  .p-notif-modal { animation: none; }
  .p-welcome-splash,
  .p-welcome-card,
  .p-welcome-logo-ring,
  .p-welcome-kicker,
  .p-welcome-lab,
  .p-welcome-sub,
  .p-welcome-bar,
  .p-welcome-particles span { animation: none !important; }
  .p-welcome-bar span { width: 100%; }
}

/* Server error / maintenance page (503) */
.p-err-body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #1a1a1a;
  color: #e5e5e5;
  font-family: 'Cairo', -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

.p-err-wrap {
  width: min(100%, 520px);
  text-align: center;
}

.p-err-code {
  font-size: clamp(4.5rem, 22vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #f5f5f5;
  font-family: -apple-system, 'Segoe UI', Tahoma, sans-serif;
}

.p-err-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 600;
  color: #d4d4d4;
  font-family: -apple-system, 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0.01em;
}

.p-err-rule {
  width: 64px;
  height: 3px;
  margin: 1.5rem auto;
  background: #525252;
  border-radius: 999px;
}

.p-err-msg {
  margin: 0 auto;
  max-width: 420px;
  color: #a3a3a3;
  line-height: 1.9;
  font-size: 1rem;
}

.p-err-progress {
  margin: 1.75rem auto 0;
  max-width: 360px;
  text-align: left;
}

.p-err-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.78rem;
  color: #737373;
  font-family: -apple-system, 'Segoe UI', Tahoma, sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.p-err-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #2e2e2e;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
}

.p-err-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #737373 0%, #e5e5e5 100%);
  transition: width 0.45s ease;
  position: relative;
}

.p-err-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  animation: p-err-progress-shine 2.2s ease-in-out infinite;
}

@keyframes p-err-progress-shine {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}

.p-err-phone {
  margin: 1.5rem 0 0;
  font-size: 0.95rem;
  color: #a3a3a3;
}

.p-err-phone a {
  color: #e5e5e5;
  text-decoration: none;
  font-weight: 700;
  border-bottom: 1px dotted #737373;
}

.p-err-foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #2e2e2e;
  font-size: 0.82rem;
  color: #737373;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.p-err-sep {
  color: #525252;
}

@media (prefers-reduced-motion: reduce) {
  .p-err-progress-fill::after {
    animation: none;
  }
}
