/* ═══════════════════════════════════════════════════════════════
   MHN Doctor Theme — MyHospitalNow Doctors v2
   Spec: docs/design-system.md
   Phase: 1 (Theme and Layout Foundation)

   This file is ADDITIVE — it does not override Bootstrap base
   styles. All classes are prefixed with `mhn-` to avoid conflicts.
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Design Tokens ─────────────────────────────────────── */

:root {
  /* Brand */
  --mhn-primary:        #0f766e;
  --mhn-primary-dark:   #115e59;
  --mhn-primary-light:  #ccfbf1;
  --mhn-secondary:      #2563eb;
  --mhn-secondary-dark: #1d4ed8;
  --mhn-accent:         #14b8a6;

  /* Surfaces */
  --mhn-bg:             #f8fafc;
  --mhn-surface:        #ffffff;
  --mhn-surface-soft:   #f1f5f9;
  --mhn-surface-hover:  #e2e8f0;

  /* Text */
  --mhn-text:           #0f172a;
  --mhn-text-secondary: #334155;
  --mhn-muted:          #64748b;
  --mhn-text-inverse:   #ffffff;

  /* Borders */
  --mhn-border:         #e2e8f0;
  --mhn-border-strong:  #cbd5e1;

  /* Status */
  --mhn-success:        #16a34a;
  --mhn-success-bg:     #f0fdf4;
  --mhn-warning:        #d97706;
  --mhn-warning-bg:     #fffbeb;
  --mhn-danger:         #dc2626;
  --mhn-danger-bg:      #fef2f2;
  --mhn-info:           #0284c7;
  --mhn-info-bg:        #f0f9ff;

  /* Geometry */
  --mhn-radius-sm:      6px;
  --mhn-radius-md:      10px;
  --mhn-radius-lg:      16px;
  --mhn-radius-full:    9999px;

  /* Shadows */
  --mhn-shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.05);
  --mhn-shadow-md:      0 4px 12px rgba(15, 23, 42, 0.08);
  --mhn-shadow-lg:      0 12px 32px rgba(15, 23, 42, 0.10);
  --mhn-shadow-focus:   0 0 0 3px rgba(15, 118, 110, 0.25);

  /* Spacing */
  --mhn-space-xs:       4px;
  --mhn-space-sm:       8px;
  --mhn-space-md:       16px;
  --mhn-space-lg:       24px;
  --mhn-space-xl:       32px;
  --mhn-space-2xl:      48px;

  /* Typography */
  --mhn-font-sans:      -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                        "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
                        "Segoe UI Emoji";
  --mhn-font-mono:      "SFMono-Regular", Menlo, Consolas, monospace;

  /* Transition */
  --mhn-transition:     150ms ease;
}


/* ── 2. Typography ────────────────────────────────────────── */

.mhn-display   { font-size: 1.75rem; font-weight: 700; line-height: 1.2; color: var(--mhn-text); }
.mhn-h1        { font-size: 1.5rem;  font-weight: 600; line-height: 1.3; color: var(--mhn-text); }
.mhn-h2        { font-size: 1.25rem; font-weight: 600; line-height: 1.35; color: var(--mhn-text); }
.mhn-h3        { font-size: 1rem;    font-weight: 600; line-height: 1.4; color: var(--mhn-text); }
.mhn-body      { font-size: 0.9375rem; font-weight: 400; line-height: 1.6; color: var(--mhn-text); }
.mhn-body-sm   { font-size: 0.8125rem; font-weight: 400; line-height: 1.5; color: var(--mhn-text-secondary); }
.mhn-caption   { font-size: 0.75rem; font-weight: 500; line-height: 1.4; color: var(--mhn-muted); }
.mhn-text-muted { color: var(--mhn-muted); }
.mhn-text-prose { max-width: 42rem; }


/* ── 3. Buttons ───────────────────────────────────────────── */

.mhn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  font-family: var(--mhn-font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--mhn-radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--mhn-transition),
              border-color var(--mhn-transition),
              box-shadow var(--mhn-transition),
              color var(--mhn-transition);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.mhn-btn:focus-visible {
  outline: none;
  box-shadow: var(--mhn-shadow-focus);
}

.mhn-btn-primary {
  background-color: var(--mhn-primary);
  color: var(--mhn-text-inverse);
}
.mhn-btn-primary:hover {
  background-color: var(--mhn-primary-dark);
  color: var(--mhn-text-inverse);
  text-decoration: none;
}
.mhn-btn-primary:active {
  background-color: #0d5550;
}

.mhn-btn-secondary {
  background-color: transparent;
  color: var(--mhn-primary);
  border-color: var(--mhn-primary);
}
.mhn-btn-secondary:hover {
  background-color: var(--mhn-primary);
  color: var(--mhn-text-inverse);
  text-decoration: none;
}

.mhn-btn-danger {
  background-color: var(--mhn-danger);
  color: var(--mhn-text-inverse);
}
.mhn-btn-danger:hover {
  background-color: #b91c1c;
  color: var(--mhn-text-inverse);
  text-decoration: none;
}

.mhn-btn-ghost {
  background-color: transparent;
  color: var(--mhn-text-secondary);
  border-color: var(--mhn-border);
}
.mhn-btn-ghost:hover {
  background-color: var(--mhn-surface-soft);
  color: var(--mhn-text);
  text-decoration: none;
}

.mhn-btn-sm { padding: 6px 14px; font-size: 13px; }
.mhn-btn-lg { padding: 14px 28px; font-size: 16px; }

.mhn-btn[disabled],
.mhn-btn-disabled {
  background-color: var(--mhn-surface-soft);
  color: var(--mhn-muted);
  border-color: var(--mhn-border);
  cursor: not-allowed;
  pointer-events: none;
}

.mhn-btn-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.mhn-btn-loading::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid var(--mhn-border);
  border-top-color: var(--mhn-primary);
  border-radius: 50%;
  animation: mhn-spin 0.6s linear infinite;
}
@keyframes mhn-spin { to { transform: rotate(360deg); } }


/* ── 4. Cards ─────────────────────────────────────────────── */

.mhn-card {
  background: var(--mhn-surface);
  border: 1px solid var(--mhn-border);
  border-radius: var(--mhn-radius-md);
  box-shadow: var(--mhn-shadow-sm);
  padding: var(--mhn-space-lg);
}
.mhn-card-interactive {
  cursor: pointer;
  transition: box-shadow var(--mhn-transition), transform var(--mhn-transition);
}
.mhn-card-interactive:hover {
  box-shadow: var(--mhn-shadow-md);
  transform: translateY(-1px);
}
.mhn-card-flush { padding: 0; }
.mhn-card-premium {
  border-left: 3px solid var(--mhn-accent);
}
.mhn-card-header {
  padding: var(--mhn-space-md) var(--mhn-space-lg);
  border-bottom: 1px solid var(--mhn-border);
  font-weight: 600;
  font-size: 1rem;
}
.mhn-card-body { padding: var(--mhn-space-lg); }
.mhn-card-footer {
  padding: var(--mhn-space-md) var(--mhn-space-lg);
  border-top: 1px solid var(--mhn-border);
  background: var(--mhn-surface-soft);
  border-radius: 0 0 var(--mhn-radius-md) var(--mhn-radius-md);
}


/* ── 5. Badges ────────────────────────────────────────────── */

.mhn-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  border-radius: var(--mhn-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mhn-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
  min-width: 0;
  max-width: 100%;
}
.mhn-badge-verified { background: var(--mhn-success-bg); color: var(--mhn-success); }
.mhn-badge-premium  { background: rgba(20, 184, 166, 0.1); color: var(--mhn-accent); }
.mhn-badge-pending  { background: var(--mhn-warning-bg); color: var(--mhn-warning); }
.mhn-badge-rejected { background: var(--mhn-danger-bg); color: var(--mhn-danger); }
.mhn-badge-active   { background: var(--mhn-success-bg); color: var(--mhn-success); }
.mhn-badge-inactive { background: var(--mhn-surface-soft); color: var(--mhn-muted); }
.mhn-badge-info     { background: var(--mhn-info-bg); color: var(--mhn-info); }


/* ── 6. Alerts ────────────────────────────────────────────── */

.mhn-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--mhn-space-sm);
  padding: var(--mhn-space-md);
  border-radius: var(--mhn-radius-sm);
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid transparent;
}
.mhn-alert-success { background: var(--mhn-success-bg); color: #15803d; border-color: #bbf7d0; }
.mhn-alert-warning { background: var(--mhn-warning-bg); color: #92400e; border-color: #fde68a; }
.mhn-alert-danger  { background: var(--mhn-danger-bg);  color: #991b1b; border-color: #fecaca; }
.mhn-alert-info    { background: var(--mhn-info-bg);    color: #075985; border-color: #bae6fd; }

.mhn-alert-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.mhn-alert-content { flex: 1; }
.mhn-alert-title { font-weight: 600; margin-bottom: 2px; }
.mhn-alert-dismiss {
  flex-shrink: 0;
  background: none; border: none; cursor: pointer;
  color: inherit; opacity: 0.6; padding: 0; font-size: 18px; line-height: 1;
}
.mhn-alert-dismiss:hover { opacity: 1; }


/* ── 7. Form Controls ─────────────────────────────────────── */

.mhn-form-group { margin-bottom: var(--mhn-space-md); }

.mhn-form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mhn-text-secondary);
  margin-bottom: var(--mhn-space-xs);
}
.mhn-form-required::after {
  content: " *";
  color: var(--mhn-danger);
}

.mhn-form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--mhn-font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--mhn-text);
  background-color: var(--mhn-surface);
  border: 1px solid var(--mhn-border-strong);
  border-radius: var(--mhn-radius-sm);
  transition: border-color var(--mhn-transition), box-shadow var(--mhn-transition);
}
.mhn-form-control:focus {
  border-color: var(--mhn-primary);
  box-shadow: var(--mhn-shadow-focus);
  outline: none;
}
.mhn-form-control.is-invalid,
.mhn-form-control.mhn-invalid {
  border-color: var(--mhn-danger);
}
.mhn-form-control.is-invalid:focus,
.mhn-form-control.mhn-invalid:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.mhn-form-control::placeholder { color: var(--mhn-muted); }

textarea.mhn-form-control { min-height: 100px; resize: vertical; }
select.mhn-form-control { cursor: pointer; }

.mhn-form-hint {
  font-size: 12px;
  color: var(--mhn-muted);
  margin-top: var(--mhn-space-xs);
}
.mhn-form-error {
  font-size: 12px;
  color: var(--mhn-danger);
  margin-top: var(--mhn-space-xs);
}


/* ── 8. Empty State ───────────────────────────────────────── */

.mhn-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--mhn-space-2xl) var(--mhn-space-lg);
  max-width: 400px;
  margin: 0 auto;
}
.mhn-empty-state-icon {
  width: 48px; height: 48px;
  color: var(--mhn-muted);
  margin-bottom: var(--mhn-space-md);
  opacity: 0.6;
}
.mhn-empty-state-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mhn-text);
  margin-bottom: var(--mhn-space-sm);
}
.mhn-empty-state-description {
  font-size: 14px;
  color: var(--mhn-muted);
  line-height: 1.5;
  margin-bottom: var(--mhn-space-lg);
}


/* ── 9. Skeleton Loading ──────────────────────────────────── */

.mhn-skeleton {
  background: linear-gradient(
    90deg,
    var(--mhn-surface-soft) 25%,
    var(--mhn-surface-hover) 50%,
    var(--mhn-surface-soft) 75%
  );
  background-size: 200% 100%;
  animation: mhn-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--mhn-radius-sm);
  color: transparent;
}
@keyframes mhn-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.mhn-skeleton-line      { height: 14px; margin-bottom: 8px; }
.mhn-skeleton-line-short { height: 14px; width: 60%; margin-bottom: 8px; }
.mhn-skeleton-circle    { width: 48px; height: 48px; border-radius: 50%; }
.mhn-skeleton-avatar    { width: 80px; height: 80px; border-radius: 50%; }
.mhn-skeleton-card      { height: 180px; border-radius: var(--mhn-radius-md); }


/* ── 10. Status Pill ──────────────────────────────────────── */

.mhn-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--mhn-radius-full);
}
.mhn-status-pill-success { background: var(--mhn-success-bg); color: var(--mhn-success); }
.mhn-status-pill-warning { background: var(--mhn-warning-bg); color: var(--mhn-warning); }
.mhn-status-pill-danger  { background: var(--mhn-danger-bg);  color: var(--mhn-danger); }
.mhn-status-pill-info    { background: var(--mhn-info-bg);    color: var(--mhn-info); }
.mhn-status-pill-muted   { background: var(--mhn-surface-soft); color: var(--mhn-muted); }


/* ── 11. Breadcrumb ───────────────────────────────────────── */

.mhn-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: var(--mhn-space-sm) 0;
  font-size: 13px;
  color: var(--mhn-muted);
  list-style: none;
  margin: 0;
}
.mhn-breadcrumb-item a {
  color: var(--mhn-secondary);
  text-decoration: none;
}
.mhn-breadcrumb-item a:hover { text-decoration: underline; }
.mhn-breadcrumb-separator { color: var(--mhn-border-strong); margin: 0 2px; }
.mhn-breadcrumb-current { color: var(--mhn-text-secondary); font-weight: 500; }


/* ── 12. Listing Toolbar ──────────────────────────────────── */

.mhn-listing-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--mhn-space-sm);
  padding: var(--mhn-space-md);
  background: var(--mhn-surface);
  border: 1px solid var(--mhn-border);
  border-radius: var(--mhn-radius-md);
  margin-bottom: var(--mhn-space-lg);
}
.mhn-listing-count {
  font-size: 14px;
  color: var(--mhn-text-secondary);
  margin-right: auto;
}
.mhn-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--mhn-primary-light);
  color: var(--mhn-primary-dark);
  border-radius: var(--mhn-radius-full);
}
.mhn-filter-chip-remove {
  cursor: pointer;
  font-weight: 700;
  opacity: 0.7;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.mhn-filter-chip-remove:hover { opacity: 1; }


/* ── 13. Modal ────────────────────────────────────────────── */

.mhn-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 1040;
  display: none;
  align-items: center;
  justify-content: center;
}
.mhn-modal-backdrop.mhn-open { display: flex; }

.mhn-modal {
  background: var(--mhn-surface);
  border-radius: var(--mhn-radius-lg);
  box-shadow: var(--mhn-shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.mhn-modal-wide { max-width: 680px; }
.mhn-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--mhn-space-lg);
  border-bottom: 1px solid var(--mhn-border);
}
.mhn-modal-title { font-size: 1.125rem; font-weight: 600; color: var(--mhn-text); margin: 0; }
.mhn-modal-close {
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: var(--mhn-muted); padding: 4px; line-height: 1;
  border-radius: var(--mhn-radius-sm);
}
.mhn-modal-close:hover { background: var(--mhn-surface-soft); color: var(--mhn-text); }
.mhn-modal-body { padding: var(--mhn-space-lg); }
.mhn-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--mhn-space-sm);
  padding: var(--mhn-space-md) var(--mhn-space-lg);
  border-top: 1px solid var(--mhn-border);
}

@media (max-width: 575.98px) {
  .mhn-modal-backdrop.mhn-open { align-items: flex-end; }
  .mhn-modal {
    border-radius: var(--mhn-radius-lg) var(--mhn-radius-lg) 0 0;
    max-height: 85vh;
    max-width: 100%;
  }
}


/* ── 14. Dashboard Shell ──────────────────────────────────── */

.mhn-dashboard-shell {
  display: flex;
  min-height: 100vh;
}
.mhn-dashboard-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--mhn-primary-dark);
  color: var(--mhn-text-inverse);
  overflow-y: auto;
  position: sticky;
  top: 0;
  height: 100vh;
}
.mhn-dashboard-main {
  flex: 1;
  min-width: 0;
  background: var(--mhn-bg);
  padding: var(--mhn-space-xl);
}

.mhn-sidebar-group-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255, 0.5);
  padding: var(--mhn-space-md) var(--mhn-space-md) var(--mhn-space-xs);
}
.mhn-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--mhn-space-sm);
  padding: 10px var(--mhn-space-md);
  color: rgba(255,255,255, 0.8);
  text-decoration: none;
  font-size: 14px;
  border-radius: var(--mhn-radius-sm);
  margin: 2px var(--mhn-space-sm);
  transition: background-color var(--mhn-transition), color var(--mhn-transition);
}
.mhn-sidebar-link:hover {
  background: rgba(255,255,255, 0.12);
  color: #fff;
  text-decoration: none;
}
.mhn-sidebar-link.active {
  background: rgba(255,255,255, 0.18);
  color: #fff;
  font-weight: 500;
}
.mhn-sidebar-link i { width: 18px; text-align: center; opacity: 0.8; }
.mhn-sidebar-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255,255,255, 0.2);
  padding: 2px 7px;
  border-radius: var(--mhn-radius-full);
}

@media (max-width: 991.98px) {
  .mhn-dashboard-sidebar {
    position: fixed;
    z-index: 1030;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .mhn-dashboard-sidebar.mhn-sidebar-open {
    transform: translateX(0);
  }
  .mhn-dashboard-main { padding: var(--mhn-space-md); }
}


/* ── 15. Pagination ───────────────────────────────────────── */

.mhn-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: var(--mhn-space-lg) 0;
  list-style: none;
  margin: 0;
}
.mhn-pagination a,
.mhn-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: var(--mhn-radius-sm);
  text-decoration: none;
  border: 1px solid var(--mhn-border);
  transition: all var(--mhn-transition);
}
.mhn-pagination a {
  background: var(--mhn-surface);
  color: var(--mhn-secondary);
}
.mhn-pagination a:hover {
  background: var(--mhn-surface-soft);
  border-color: var(--mhn-secondary);
  text-decoration: none;
}
.mhn-pagination .active span {
  background: var(--mhn-primary);
  color: var(--mhn-text-inverse);
  border-color: var(--mhn-primary);
}
.mhn-pagination .disabled span {
  color: var(--mhn-muted);
  background: var(--mhn-surface-soft);
  cursor: not-allowed;
}


/* ── 16. Responsive Utilities ─────────────────────────────── */
/* .mhn-hide-mobile keeps its natural display on desktop (no rule needed)
   and is hidden under 768px via the media query below. */

.mhn-hide-desktop { display: none; }

@media (max-width: 767.98px) {
  .mhn-hide-mobile  { display: none; }
  .mhn-hide-desktop { display: block; }
}

.mhn-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--mhn-space-md);
}

.mhn-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.mhn-focus-ring:focus-visible {
  outline: none;
  box-shadow: var(--mhn-shadow-focus);
}


/* ── 17. Filter Drawer (Mobile) ───────────────────────────── */

.mhn-filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--mhn-surface);
  border-radius: var(--mhn-radius-lg) var(--mhn-radius-lg) 0 0;
  box-shadow: var(--mhn-shadow-lg);
  z-index: 1050;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--mhn-space-lg);
}
.mhn-filter-drawer.mhn-open {
  transform: translateY(0);
}
.mhn-filter-drawer-handle {
  width: 40px; height: 4px;
  background: var(--mhn-border-strong);
  border-radius: 2px;
  margin: 0 auto var(--mhn-space-md);
}


/* ── 18. Premium Lock ─────────────────────────────────────── */

.mhn-premium-lock {
  position: relative;
  overflow: hidden;
}
.mhn-premium-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248, 250, 252, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--mhn-space-lg);
  z-index: 5;
  border-radius: var(--mhn-radius-md);
}
.mhn-premium-lock-icon { font-size: 28px; color: var(--mhn-accent); margin-bottom: var(--mhn-space-sm); }
.mhn-premium-lock-text { font-size: 14px; color: var(--mhn-text-secondary); margin-bottom: var(--mhn-space-md); }


/* ── 19. Bootstrap 4 Pagination Theme Override ────────────── */

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 16px 0;
  list-style: none;
  margin: 0;
}
.pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  font-size: 14px;
  border-radius: var(--mhn-radius-sm);
  border: 1px solid var(--mhn-border);
  background: var(--mhn-surface);
  color: var(--mhn-secondary);
  text-decoration: none;
  transition: all var(--mhn-transition);
}
.pagination .page-item .page-link:hover {
  background: var(--mhn-surface-soft);
  border-color: var(--mhn-secondary);
  text-decoration: none;
}
.pagination .page-item.active .page-link {
  background: var(--mhn-primary);
  color: var(--mhn-text-inverse);
  border-color: var(--mhn-primary);
}
.pagination .page-item.disabled .page-link {
  color: var(--mhn-muted);
  background: var(--mhn-surface-soft);
  cursor: not-allowed;
  pointer-events: none;
}


/* ── JS Pagination Links (generated by doctor_profile_filter.js) ── */

#hospital_list_pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 20px 0;
}
#hospital_list_pages .pagination-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--mhn-border, #e2e8f0);
  background: var(--mhn-surface, #fff);
  color: var(--mhn-text-secondary, #334155) !important;
  text-decoration: none !important;
  transition: all 150ms ease;
  cursor: pointer;
  user-select: none;
}
#hospital_list_pages .pagination-link:hover {
  background: var(--mhn-primary-light, #ccfbf1);
  border-color: var(--mhn-primary, #0f766e);
  color: var(--mhn-primary, #0f766e) !important;
}
#hospital_list_pages .pagination-link.active {
  background: var(--mhn-primary, #0f766e) !important;
  color: #fff !important;
  border-color: var(--mhn-primary, #0f766e) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
#hospital_list_pages #prev_btn,
#hospital_list_pages #next_btn {
  font-size: 16px;
  font-weight: 700;
  background: var(--mhn-surface-soft, #f1f5f9);
}
#hospital_list_pages #prev_btn:hover,
#hospital_list_pages #next_btn:hover {
  background: var(--mhn-primary-light, #ccfbf1);
}
#hospital_list_pages #prev_btn[prev-page="0"],
#hospital_list_pages #next_btn[next-page="0"] {
  opacity: 0.35;
  pointer-events: none;
}

/* SSR Bootstrap pagination override */
#server_pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  list-style: none;
}
#server_pagination .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  border: 1px solid var(--mhn-border, #e2e8f0);
  background: var(--mhn-surface, #fff);
  color: var(--mhn-text-secondary, #334155);
  text-decoration: none;
  transition: all 150ms ease;
  margin: 0;
}
#server_pagination .page-item .page-link:hover {
  background: var(--mhn-primary-light, #ccfbf1);
  border-color: var(--mhn-primary, #0f766e);
  color: var(--mhn-primary, #0f766e);
}
#server_pagination .page-item.active .page-link {
  background: var(--mhn-primary, #0f766e);
  color: #fff;
  border-color: var(--mhn-primary, #0f766e);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
#server_pagination .page-item.disabled .page-link {
  color: var(--mhn-muted, #64748b);
  background: var(--mhn-surface-soft, #f1f5f9);
  pointer-events: none;
  opacity: 0.5;
}


/* ── Search Bar Filter Dropdowns ───────────────────────────── */

#hospital-profile-filter select.form-control,
#hospital-profile-filter input.form-control {
  height: 44px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  background-color: rgba(255,255,255,0.95);
  font-size: 14px;
  color: #334155;
  padding: 8px 12px;
  appearance: auto;
  -webkit-appearance: auto;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
#hospital-profile-filter select.form-control:focus,
#hospital-profile-filter input.form-control:focus {
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  outline: none;
  background-color: #fff;
}
#hospital-profile-filter select.form-control option {
  padding: 10px 12px;
  font-size: 14px;
  background: #fff;
  color: #334155;
}
#hospital-profile-filter select.form-control option:checked {
  background: var(--mhn-primary-light, #ccfbf1);
  color: var(--mhn-primary-dark, #115e59);
}


/* ── 20. Doctor Card Theme Enhancements ───────────────────── */

#hospital_list_table .card {
  border: 1px solid var(--mhn-border);
  border-radius: var(--mhn-radius-md);
  box-shadow: var(--mhn-shadow-sm);
  transition: box-shadow var(--mhn-transition);
}
#hospital_list_table .card:hover {
  box-shadow: var(--mhn-shadow-md);
}
#hospital_list_table .card .btn-primary {
  background-color: var(--mhn-primary);
  border-color: var(--mhn-primary);
  border-radius: var(--mhn-radius-sm);
}
#hospital_list_table .card .btn-primary:hover {
  background-color: var(--mhn-primary-dark);
  border-color: var(--mhn-primary-dark);
}
#hospital_list_table .card a.u-color--primary h2 {
  color: var(--mhn-primary) !important;
}
#hospital_list_table .card a.u-color--primary:hover h2 {
  color: var(--mhn-primary-dark) !important;
}


/* ── 21. Public Doctor Profile ────────────────────────────── */

.mhn-profile-avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mhn-border);
  display: block;
  margin: 0 auto;
}
@media (max-width: 767.98px) { .mhn-profile-avatar { width: 110px; height: 110px; } }

.mhn-profile-doctor-name {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--mhn-primary);
  text-transform: capitalize;
  margin-bottom: 4px;
}

/* Section nav */
.mhn-section-nav {
  background: var(--mhn-surface);
  border-bottom: 2px solid var(--mhn-border);
  position: sticky;
  top: 70px;
  z-index: 90;
  margin-bottom: 16px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.mhn-section-nav::-webkit-scrollbar { display: none; }
.mhn-section-nav-list {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}
.mhn-section-nav-list li a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mhn-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--mhn-transition), border-color var(--mhn-transition);
  white-space: nowrap;
}
.mhn-section-nav-list li a:hover,
.mhn-section-nav-list li a.mhn-nav-active {
  color: var(--mhn-primary);
  border-bottom-color: var(--mhn-primary);
}

/* Profile section wrapper */
.mhn-profile-section {
  margin-bottom: 16px;
  scroll-margin-top: 120px;
}
.mhn-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--mhn-text);
  padding: 14px 20px;
  border-bottom: 1px solid var(--mhn-border);
  margin: 0;
}
.mhn-section-body {
  padding: 16px 20px;
}
.mhn-section-body.mhn-rich-content { color: var(--mhn-text-secondary); line-height: 1.75; }
.mhn-rich-content p  { margin-bottom: 0.75rem; }
.mhn-rich-content ul,
.mhn-rich-content ol { padding-left: 1.25rem; margin-bottom: 0.5rem; }

/* Owner empty state hint */
.mhn-owner-edit-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--mhn-surface-soft);
  border: 1px dashed var(--mhn-border-strong);
  border-radius: var(--mhn-radius-md);
  color: var(--mhn-muted);
  font-size: 13px;
}
.mhn-owner-edit-hint a { color: var(--mhn-secondary); font-weight: 500; text-decoration: none; }
.mhn-owner-edit-hint a:hover { text-decoration: underline; }

/* "Ads" disclosure label — top-right corner of sponsored cards */
.mhn-ads-label {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--mhn-muted, #64748b);
  background: var(--mhn-surface-soft, #f1f5f9);
  border: 1px solid var(--mhn-border, #e2e8f0);
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.4;
}

/* Trust pills */
.mhn-trust-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.mhn-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--mhn-radius-full);
  font-size: 12px;
  font-weight: 600;
}
.mhn-trust-verified { background: var(--mhn-success-bg); color: var(--mhn-success); border: 1px solid #bbf7d0; }
.mhn-trust-claimed  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.mhn-trust-premium  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mhn-trust-pending  { background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa; }
.mhn-trust-reg      { background: var(--mhn-surface-soft); color: var(--mhn-text-secondary); border: 1px solid var(--mhn-border-strong); }

/* Availability day pills */
.mhn-avail-days { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mhn-day-pill {
  padding: 4px 10px;
  border-radius: var(--mhn-radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--mhn-primary-light);
  color: var(--mhn-primary-dark);
}
.mhn-avail-time { font-size: 14px; color: var(--mhn-text-secondary); }

/* Social icon row */
.mhn-profile-social { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mhn-profile-social-icon { font-size: 1.4rem; transition: transform var(--mhn-transition); }
.mhn-profile-social-icon:hover { transform: scale(1.15); }

/* Visit Website button */
.visit-website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--mhn-primary);
  border-radius: var(--mhn-radius-sm);
  color: var(--mhn-primary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--mhn-transition), color var(--mhn-transition);
  white-space: nowrap;
}
.visit-website-btn:hover { background: var(--mhn-primary); color: #fff; text-decoration: none; }
.visit-website-btn.is-locked { opacity: 0.6; cursor: not-allowed; }

/* Claim button */
.claim-button {
  display: block;
  background-color: var(--mhn-secondary);
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-family: var(--mhn-font-sans);
  cursor: pointer;
  border-radius: var(--mhn-radius-md);
  text-align: left;
  width: 100%;
  max-width: 240px;
  transition: box-shadow var(--mhn-transition);
}
.claim-button:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.discount-oldprice { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.discount-badge { background: #f7d23c; color: #222; font-weight: 700; font-size: 0.8rem; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; }
.old-price { font-size: 0.95rem; color: rgba(255,255,255,0.7); text-decoration: line-through; font-weight: 600; }
.price-section { font-size: 1.6rem; font-weight: 500; margin-bottom: 4px; color: #fff; }
.term-info { margin-top: 8px; font-size: 0.875rem; font-weight: 500; color: #fff; text-align: center; }

/* Related doctor links */
.mhn-related-links { list-style: none; padding: 0; margin: 0; }
.mhn-related-links li { padding: 6px 0; border-bottom: 1px solid var(--mhn-border); }
.mhn-related-links li:last-child { border-bottom: none; }
.mhn-related-links li a { color: var(--mhn-secondary); font-size: 13px; text-decoration: none; }
.mhn-related-links li a:hover { text-decoration: underline; }

/* Mobile sticky booking bar */
.mhn-profile-mobile-cta { display: none; }
@media (max-width: 767.98px) {
  .mhn-profile-mobile-cta {
    display: flex;
    gap: 8px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 10px 16px;
    background: var(--mhn-surface);
    border-top: 1px solid var(--mhn-border);
    z-index: 200;
    box-shadow: 0 -4px 12px rgba(15,23,42,0.08);
  }
  .mhn-profile-mobile-cta .mhn-btn { flex: 1; text-align: center; justify-content: center; }
  .mhn-profile-content-wrap { padding-bottom: 72px; }
}

/* Premium gate modal */
.mhn-premium-gate-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 45px rgba(15,23,42,0.28); }
.mhn-premium-gate-modal .modal-header { border-bottom: 0; padding: 20px 24px 10px; background: linear-gradient(135deg,#f8fbff 0%,#eef5ff 100%); }
.mhn-premium-gate-modal .modal-title { font-weight: 800; color: #163a66; font-size: 1.25rem; }
.mhn-premium-gate-modal .modal-body { padding: 8px 24px 0; color: #334155; }
.mhn-premium-gate-modal .modal-footer { border-top: 0; padding: 18px 24px 24px; }
.mhn-premium-gate-modal .btn { min-width: 120px; border-radius: 10px; font-weight: 700; }
.mhn-premium-gate-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e8f1ff; color: #1455c6; font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }
.mhn-premium-gate-note { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; font-size: 14px; line-height: 1.6; }

/* Story items */
.mhn-story-item { background: var(--mhn-surface-soft); padding: 16px; border-radius: var(--mhn-radius-md); margin-bottom: 16px; box-shadow: var(--mhn-shadow-sm); }

/* Comments */
#commentsystem .list-group-item { border: 1px solid var(--mhn-border); border-radius: var(--mhn-radius-md); margin-bottom: 10px; padding: 12px 14px; line-height: 1.5; }

/* Profile breadcrumb */
.mhn-profile-breadcrumb .breadcrumb { background: var(--mhn-surface); border: 1px solid var(--mhn-border); border-radius: var(--mhn-radius-sm); padding: 10px 16px; margin-bottom: 0; }
.mhn-profile-breadcrumb .breadcrumb a { color: var(--mhn-secondary); }
.mhn-profile-breadcrumb .breadcrumb .active { color: var(--mhn-text-secondary); }

@media (max-width: 991.98px) {
  .mhn-profile-avatar-col { margin-bottom: 16px; }
  .claim-button { margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Section 22 — Dashboard Home
   ========================================================================== */

/* ── Welcome Banner ──────────────────────────────────────────────────────── */
.mhn-dash-welcome {
  background: linear-gradient(135deg, var(--mhn-primary) 0%, var(--mhn-primary-dark) 100%);
  color: #fff;
  padding: 18px 22px;
  border-radius: var(--mhn-radius-lg);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.mhn-dash-welcome-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.mhn-dash-welcome-avatar-placeholder {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: rgba(255,255,255,0.8);
  flex-shrink: 0;
}
.mhn-dash-welcome-body { flex: 1; min-width: 0; }
.mhn-dash-welcome-greeting {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mhn-dash-welcome-meta {
  font-size: 0.8rem; opacity: 0.9;
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.mhn-dash-premium-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff; font-weight: 700; font-size: 10px;
  padding: 3px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mhn-dash-free-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.15);
  color: #fff; font-size: 11px; font-weight: 500;
  padding: 3px 9px; border-radius: 999px;
}
.mhn-dash-free-pill a { color: #fff; text-decoration: underline; font-weight: 700; }
.mhn-dash-verified-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(22,163,74,0.22);
  color: #bbf7d0; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}
.mhn-dash-pending-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(245,158,11,0.22);
  color: #fde68a; font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
}

/* ── Profile Completion Card ─────────────────────────────────────────────── */
.mhn-completion-card {
  background: var(--mhn-surface);
  border: 1px solid var(--mhn-border);
  border-radius: var(--mhn-radius-md);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.mhn-completion-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.mhn-completion-label { font-weight: 600; color: var(--mhn-text); font-size: 0.875rem; }
.mhn-completion-pct   { font-weight: 800; font-size: 1rem; }
.mhn-completion-pct.tier-danger  { color: var(--mhn-danger); }
.mhn-completion-pct.tier-warning { color: var(--mhn-warning); }
.mhn-completion-pct.tier-accent  { color: #0891b2; }
.mhn-completion-pct.tier-success { color: var(--mhn-success); }
.mhn-completion-bar-track {
  height: 7px; background: var(--mhn-surface-soft);
  border-radius: 999px; overflow: hidden; margin-bottom: 7px;
}
.mhn-completion-bar-fill { height: 100%; border-radius: 999px; transition: width 0.5s ease; }
.mhn-completion-bar-fill.fill-danger  { background: var(--mhn-danger); }
.mhn-completion-bar-fill.fill-warning { background: var(--mhn-warning); }
.mhn-completion-bar-fill.fill-accent  { background: #0891b2; }
.mhn-completion-bar-fill.fill-success { background: var(--mhn-success); }
.mhn-completion-next { font-size: 0.78rem; color: var(--mhn-muted); }
.mhn-completion-next a { color: var(--mhn-secondary); font-weight: 600; }

/* ── Booking Metric Cards ────────────────────────────────────────────────── */
.mhn-booking-metric {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  color: #fff;
  padding: 16px 12px;
  border-radius: var(--mhn-radius-md);
  text-align: center;
  height: 100%;
}
.mhn-booking-metric .metric-icon { font-size: 1.4rem; opacity: 0.7; margin-bottom: 5px; }
.mhn-booking-metric .metric-label {
  font-size: 0.72rem; font-weight: 700; opacity: 0.85;
  text-transform: uppercase; letter-spacing: 0.05em; display: block;
}
.mhn-booking-metric .metric-value { font-size: 2rem; font-weight: 800; margin-top: 3px; line-height: 1; }

/* ── Profile Section Status Cards ────────────────────────────────────────── */
.mhn-status-card {
  padding: 12px 10px;
  border-radius: var(--mhn-radius-md);
  text-align: center;
  border: 1px solid var(--mhn-border);
  background: var(--mhn-surface);
  height: 100%;
}
.mhn-status-card .sc-icon { font-size: 1.2rem; color: var(--mhn-muted); margin-bottom: 5px; display: block; }
.mhn-status-card .sc-label { font-size: 0.75rem; font-weight: 600; color: var(--mhn-text); display: block; margin-bottom: 5px; }
.mhn-status-value {
  font-size: 0.7rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px; border-radius: 999px;
}
.mhn-status-value.sv-complete   { background: #dcfce7; color: #166534; }
.mhn-status-value.sv-incomplete { background: #fff7ed; color: #9a3412; }
.mhn-status-value.sv-loading    { background: var(--mhn-surface-soft); }

/* ── Chart Wrapper ───────────────────────────────────────────────────────── */
.mhn-chart-wrap {
  background: var(--mhn-surface);
  border: 1px solid var(--mhn-border);
  border-radius: var(--mhn-radius-md);
  padding: 14px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
}
.mhn-chart-hidden { display: none !important; }
.mhn-no-data-note {
  text-align: center; padding: 20px 12px;
  color: var(--mhn-muted); font-size: 0.8rem; line-height: 1.5;
}
.mhn-no-data-note i { font-size: 1.8rem; display: block; margin-bottom: 8px; opacity: 0.35; }

/* ── Dashboard shimmer skeleton ──────────────────────────────────────────── */
.mhn-sk {
  display: inline-block; border-radius: 6px; color: transparent !important;
  background: linear-gradient(90deg,rgba(255,255,255,0.3) 25%,rgba(255,255,255,0.6) 50%,rgba(255,255,255,0.3) 75%);
  background-size: 200% 100%;
  animation: mhn-sk-shimmer 1.4s ease-in-out infinite;
  min-width: 32px; pointer-events: none;
}
@keyframes mhn-sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Status indicator dots (hidden, shown by JS) ─────────────────────────── */
.status-indicator {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-left: 3px; vertical-align: middle;
}

@media (max-width: 767.98px) {
  .mhn-dash-welcome { flex-direction: column; align-items: flex-start; gap: 10px; }
  .mhn-booking-metric .metric-value { font-size: 1.6rem; }
  .mhn-dash-welcome-greeting { font-size: 0.95rem; }
}

/* ── 23. Premium Lock Components ─────────────────────────────────────────── */

/* ── locked-feature wrapper ── */
.mhn-locked-feature {
  position: relative;
  min-height: 200px;
  border-radius: var(--mhn-radius-lg, 12px);
  overflow: hidden;
}

/* blurred slot preview (optional named slot) */
.mhn-locked-preview {
  filter: blur(4px);
  pointer-events: none;
  user-select: none;
  opacity: 0.5;
}

/* overlay sits on top of the preview */
.mhn-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(2px);
  padding: 24px;
  z-index: 2;
}

/* when no preview: overlay fills the box naturally */
.mhn-locked-feature:not(:has(.mhn-locked-preview)) .mhn-locked-overlay {
  position: relative;
  inset: auto;
  background: var(--mhn-surface-soft, #f1f5f9);
  border: 1.5px dashed var(--mhn-border-strong, #cbd5e1);
  border-radius: var(--mhn-radius-lg, 12px);
  padding: 40px 24px;
}

.mhn-locked-card {
  text-align: center;
  max-width: 360px;
}

.mhn-locked-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--mhn-primary-light, #ccfbf1);
  color: var(--mhn-primary, #0f766e);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.mhn-locked-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mhn-text, #0f172a);
  margin-bottom: 6px;
}

.mhn-locked-benefit {
  font-size: 0.875rem;
  color: var(--mhn-muted, #64748b);
  margin-bottom: 18px;
  line-height: 1.5;
}

.mhn-locked-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.mhn-locked-upgrade-btn {
  min-width: 180px;
}

.mhn-locked-learn-link {
  font-size: 0.8rem;
  color: var(--mhn-muted, #64748b);
  text-decoration: underline;
}
.mhn-locked-learn-link:hover { color: var(--mhn-primary, #0f766e); }

/* Price block inside the reusable upgrade-gate lock card */
.mhn-locked-feature .mhn-locked-card { max-width: 420px; }
.mhn-locked-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--mhn-primary, #0f766e);
  margin-bottom: 4px;
}
.mhn-locked-price-was {
  text-decoration: line-through;
  font-size: 1rem;
  font-weight: 600;
  color: var(--mhn-muted, #64748b);
  margin-right: 4px;
}
.mhn-locked-price-period {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--mhn-muted, #64748b);
}
.mhn-locked-save {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mhn-success, #16a34a);
  margin-bottom: 16px;
}

/* ── plan-status-card ── */
.mhn-plan-status-card {
  padding: 20px 22px;
}

.mhn-plan-status-card--premium {
  border-left: 4px solid var(--mhn-accent, #14b8a6);
}

.mhn-plan-status-card--free {
  border-left: 4px solid var(--mhn-border-strong, #cbd5e1);
}

.mhn-plan-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.mhn-plan-status-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mhn-text, #0f172a);
}

.mhn-plan-status-card--premium .mhn-plan-status-badge { color: var(--mhn-primary, #0f766e); }

.mhn-plan-status-since {
  font-size: 0.75rem;
  color: var(--mhn-muted, #64748b);
}

.mhn-plan-status-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.mhn-plan-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mhn-plan-benefits-list li {
  font-size: 0.83rem;
  color: var(--mhn-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mhn-plan-benefits-list li .fa-check {
  color: var(--mhn-success, #16a34a);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mhn-plan-status-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.mhn-plan-upgrade-btn {
  white-space: nowrap;
}

.mhn-plan-active-note {
  font-size: 0.83rem;
  color: var(--mhn-success, #16a34a);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ── upgrade-banner ── */
.mhn-upgrade-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--mhn-surface-soft, #f1f5f9);
  border: 1px solid var(--mhn-border, #e2e8f0);
  border-left: 4px solid var(--mhn-accent, #14b8a6);
  border-radius: var(--mhn-radius, 8px);
  margin-bottom: 16px;
}

.mhn-upgrade-banner--compact {
  padding: 8px 12px;
}

.mhn-upgrade-banner-icon {
  color: var(--mhn-muted, #64748b);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.mhn-upgrade-banner-body {
  flex: 1;
  font-size: 0.875rem;
  color: var(--mhn-text, #0f172a);
}

.mhn-upgrade-banner-label strong { color: var(--mhn-primary, #0f766e); }

.mhn-upgrade-banner-btn {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 0.8rem;
  padding: 6px 14px;
}

/* ── Mobile adjustments ── */
@media (max-width: 575.98px) {
  .mhn-upgrade-banner { flex-wrap: wrap; }
  .mhn-upgrade-banner-btn { width: 100%; text-align: center; }
  .mhn-locked-overlay { padding: 16px; }
  .mhn-plan-status-actions { flex-direction: column; align-items: flex-start; }
  .mhn-plan-upgrade-btn { width: 100%; text-align: center; }
}


/* ══════════════════════════════════════════════════════════════
   24. Notification Preferences (F58)
   email-notification.blade.php component
   ══════════════════════════════════════════════════════════════ */

.mhn-notif-header {
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--mhn-border, #e2e8f0);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--mhn-muted, #64748b);
}

.mhn-notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--mhn-border, #e2e8f0);
}

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

.mhn-notif-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--mhn-text, #0f172a);
  margin-bottom: 0.1rem;
}

.mhn-notif-desc {
  font-size: 0.78rem;
  color: var(--mhn-muted, #64748b);
}

.mhn-notif-forced {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mhn-success, #16a34a);
  background: #dcfce7;
  padding: 1px 7px;
  border-radius: 10px;
  white-space: nowrap;
}

.mhn-notif-master-off .mhn-notif-row .custom-control-input:not(.forced-on) {
  pointer-events: none;
}

.mhn-notif-master-off .mhn-notif-row:not(.mhn-notif-forced-row) {
  opacity: 0.45;
}

/* ── Mobile ── */
@media (max-width: 575.98px) {
  .mhn-notif-row { flex-wrap: wrap; gap: 0.4rem; }
}


/* ── 25. Dashboard Component Action Bar ───────────────────── */

/* Shared layout helpers used inside dashboard components */
.mhn-dash-action-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

/* Section header row with icon + title, matching the card-header_bar */
#sp_h_dash_header {
  background: var(--mhn-surface, #fff);
  border-bottom: 1px solid var(--mhn-border, #e2e8f0);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mhn-text, #0f172a);
}

/* Shared img utility used inside dashboard component panels */
.mhn-dash-panel img {
  max-width: 100%;
}

/* Appointment filter button group */
.mhn-apt-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.mhn-apt-filter-bar .mhn-btn {
  border: 1.5px solid var(--mhn-border-strong, #cbd5e1);
  color: var(--mhn-muted, #64748b);
}

.mhn-apt-filter-bar .mhn-btn:hover,
.mhn-apt-filter-bar .mhn-btn.active {
  background: var(--mhn-primary, #0f766e);
  color: #fff;
  border-color: var(--mhn-primary, #0f766e);
}

/* Reset/Prev/Next utility buttons */
.mhn-apt-nav-btn {
  border: 1.5px solid var(--mhn-border, #e2e8f0);
  color: var(--mhn-muted, #64748b);
  background: var(--mhn-surface, #fff);
  padding: 6px 14px;
  border-radius: var(--mhn-radius-sm, 6px);
  font-size: 13px;
  cursor: pointer;
  transition: background 150ms, border-color 150ms;
}

.mhn-apt-nav-btn:hover {
  background: var(--mhn-surface-soft, #f1f5f9);
  border-color: var(--mhn-border-strong, #cbd5e1);
}

/* Card overview / tip boxes (rendered by JS into view divs).
   Merged single source of truth (was previously duplicated lower down). */
.mhn-view-overview {
  background: var(--mhn-surface-soft, #f1f5f9);
  border: 1px solid var(--mhn-border, #e2e8f0);
  border-left: 4px solid var(--mhn-primary, #0f766e);
  border-radius: 0 var(--mhn-radius-sm, 6px) var(--mhn-radius-sm, 6px) 0;
  padding: 12px 16px;
  margin-bottom: 1rem;
  font-size: 13px;
  color: var(--mhn-text-secondary, #334155);
  line-height: 1.6;
}

.mhn-view-tip {
  background: #eff6ff;
  border: 1px solid #bae6fd;
  border-left: 4px solid var(--mhn-secondary, #2563eb);
  border-radius: 0 var(--mhn-radius-sm, 6px) var(--mhn-radius-sm, 6px) 0;
  padding: 12px 16px;
  margin-top: 1rem;
  font-size: 13px;
  color: var(--mhn-text-secondary, #334155);
  line-height: 1.6;
}

.mhn-view-overview::before {
  content: '\f05a'; /* FA4 info-circle */
  font-family: FontAwesome, sans-serif;
  margin-right: 7px;
  color: var(--mhn-primary, #0f766e);
}

.mhn-view-tip::before {
  content: '\f0eb'; /* FA4 lightbulb-o */
  font-family: FontAwesome, sans-serif;
  margin-right: 7px;
  color: var(--mhn-info, #0284c7);
}


/* ── 26. Button ID Overrides (sp_globals compatibility) ─────── */
/*
   sp_globals.css styles each edit-button by ID with #ffc107 yellow and a
   Font Awesome 5 ::before icon.  FA5 is not loaded on the dashboard, so
   the pseudo-element renders a blank/garbled glyph and leaves 10 px of
   phantom margin.  Since ID-selectors beat class-selectors, we re-declare
   every affected ID here (mhn-doctor-theme.css loads last → wins on ties).
*/
#edit_btn_pro,
#btn_edit,
#pro_edit,
#res_edit,
#awa_edit,
#bibli_edit,
#soci_edit,
#edit_avatar,
#edit_cv {
  background-color: var(--mhn-primary, #0f766e);
  color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 2px 8px rgba(15, 118, 110, .22);
  transition: background-color 150ms, box-shadow 150ms, transform 150ms;
}
#edit_btn_pro:hover, #btn_edit:hover, #pro_edit:hover, #res_edit:hover,
#awa_edit:hover, #bibli_edit:hover, #soci_edit:hover, #edit_avatar:hover,
#edit_cv:hover {
  background-color: var(--mhn-primary-dark, #115e59);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}
#edit_btn_pro:focus, #btn_edit:focus, #pro_edit:focus, #res_edit:focus,
#awa_edit:focus, #bibli_edit:focus, #soci_edit:focus, #edit_avatar:focus,
#edit_cv:focus {
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .35);
  outline: none;
}
/* Suppress the FA5 ::before that sp_globals adds — it renders blank since FA5 is not loaded */
#edit_btn_pro::before, #btn_edit::before, #pro_edit::before, #res_edit::before,
#awa_edit::before, #bibli_edit::before, #soci_edit::before, #edit_avatar::before,
#edit_cv::before {
  content: none;
}


/* ── 27. Appointment Table (div-based CSS grid) ─────────────── */
/*
   doctor_BookAptmt.js generates a div-based table using the class names
   below.  Without CSS these divs stack vertically.  This section turns
   them into a proper 7-column data grid.
*/
#view-appointment {
  border: 1px solid var(--mhn-border, #e2e8f0);
  border-radius: var(--mhn-radius-md, 10px);
  overflow: hidden;
  font-size: 13px;
  background: var(--mhn-surface, #fff);
}

.table-container {
  overflow-x: auto;
  width: 100%;
}

.table-header {
  background: var(--mhn-surface-soft, #f1f5f9);
  border-bottom: 2px solid var(--mhn-border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 2;
}

.table-header .table-row,
.table-body .table-row {
  display: grid;
  grid-template-columns: 46px 1fr 108px 154px 90px 1.4fr 110px;
  min-width: 700px;
}

.table-cell {
  padding: 10px 12px;
  border-right: 1px solid var(--mhn-border, #e2e8f0);
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table-cell:last-child { border-right: none; justify-content: center; }

/* 6th column (slot title + duration) wraps */
.table-header .table-row .table-cell:nth-child(6),
.table-body  .table-row .table-cell:nth-child(6) {
  white-space: normal;
  align-items: flex-start;
  padding-top: 9px;
}

.header-cell {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mhn-muted, #64748b);
  white-space: nowrap;
  cursor: default;
}

.sort-arrow { cursor: pointer; }
.sort-arrow:hover { color: var(--mhn-primary, #0f766e); }

.table-body .table-row {
  border-bottom: 1px solid var(--mhn-border, #e2e8f0);
  transition: background 80ms;
}
.table-body .table-row:last-child { border-bottom: none; }
.table-body .table-row:hover { background: var(--mhn-surface-soft, #f1f5f9); }

/* Status / Approve button inside appointment rows */
.table-cell .badge-success,
.table-cell .btn-success {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}
.table-cell .btn-danger {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
}


/* ── 28. Payment Details ─────────────────────────────────────── */
.mhn-payment-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mhn-primary, #0f766e);
  border-bottom: 2px solid var(--mhn-primary-light, #ccfbf1);
  padding-bottom: .5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.mhn-payment-col-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--mhn-muted, #64748b);
  background: var(--mhn-surface-soft, #f1f5f9);
  border: 1px solid var(--mhn-border, #e2e8f0);
  border-radius: var(--mhn-radius-sm, 6px) var(--mhn-radius-sm, 6px) 0 0;
  padding: 8px 12px;
  display: none; /* hidden on mobile; shown via d-lg-flex on parent */
}

.mhn-payment-empty {
  text-align: center;
  padding: 2rem;
  color: var(--mhn-muted, #64748b);
  font-size: 13px;
}

@media (max-width: 991px) {
  .table-header .table-row,
  .table-body .table-row {
    grid-template-columns: 40px 1fr 100px 130px 80px 1fr 100px;
    min-width: 620px;
  }
}

/* ── 29. Story / Blog Component Tabs ─────────────────────────── */
/* MHN-themed Bootstrap 4 nav-tabs used in submit-your-story */
#storyTabs.nav-tabs {
  border-bottom: 2px solid var(--mhn-primary, #0f766e);
}
#storyTabs .nav-link {
  color: var(--mhn-muted, #64748b);
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: color .15s, border-color .15s;
}
#storyTabs .nav-link:hover {
  color: var(--mhn-primary, #0f766e);
  border-bottom-color: var(--mhn-primary-light, #ccfbf1);
}
#storyTabs .nav-link.active {
  color: var(--mhn-primary, #0f766e);
  border-bottom: 3px solid var(--mhn-primary, #0f766e);
  background: transparent;
}
/* Story card row inside imageContainer */
#imageContainer .mhn-card .row.no-gutters img {
  height: 160px;
  object-fit: cover;
}
/* Edit Story modal header */
#editStoryModal .modal-header {
  background: var(--mhn-primary, #0f766e);
  color: #ffffff;
}
#editStoryModal .modal-header .close {
  color: #ffffff;
  opacity: .85;
}
#editStoryModal .modal-header .close:hover { opacity: 1; }

/* ── 30. Profile Section View Panels (dashboard) ─────────────────
   Clean card-based read-only views injected by doctor_medical /
   professional / research / awards / bibliography / social JS into
   #view-profile, #view-pro, #view-res, etc. Replaces the oversized
   Bootstrap `h2.text-primary` + `alert` overview/tip boxes. */
.mhn-section-view {
  max-width: 880px;
  margin: 0;
}
.mhn-section-view .mhn-card { padding: 0; }

/* Card header with section icon + title */
.mhn-section-view .mhn-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--mhn-text, #0f172a);
}
.mhn-section-view .mhn-card-header i {
  color: var(--mhn-primary, #0f766e);
}

/* Definition list (Medical Registration) */
.mhn-detail-list { display: flex; flex-direction: column; }
.mhn-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--mhn-border, #e2e8f0);
}
.mhn-detail-row:last-child { border-bottom: none; }
.mhn-detail-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mhn-muted, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mhn-detail-label i {
  color: var(--mhn-primary, #0f766e);
  width: 16px;
  text-align: center;
}
.mhn-detail-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--mhn-text, #0f172a);
  text-align: right;
  overflow-wrap: break-word;
}
.mhn-detail-value.is-empty {
  font-weight: 500;
  font-style: italic;
  color: var(--mhn-muted, #94a3b8);
}

/* Rich-text content (Professional / Research / Awards / Bibliography) */
.mhn-rich-content {
  font-size: 14px;
  line-height: 1.7;
  color: var(--mhn-text, #0f172a);
  overflow-wrap: break-word;
}
.mhn-rich-content p:last-child { margin-bottom: 0; }

/* Social links row */
.mhn-social-row { display: flex; flex-wrap: wrap; gap: 12px; }
.mhn-social-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}
.mhn-social-btn:hover { transform: translateY(-2px); color: #fff; }
.mhn-social-btn.is-disabled { opacity: .3; pointer-events: none; }
.mhn-social-fb { background: #1877f2; }
.mhn-social-tw { background: #1da1f2; }
.mhn-social-in { background: #0a66c2; }
.mhn-social-yt { background: #ff0000; }
.mhn-social-ig {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

/* Avatar view (Upload Avatar) */
.mhn-avatar-view {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.mhn-avatar-img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mhn-primary, #0f766e);
  padding: 3px;
  background: #fff;
  flex-shrink: 0;
}
.mhn-avatar-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mhn-text, #0f172a);
  margin-bottom: 6px;
}
.mhn-avatar-hint {
  font-size: 13px;
  color: var(--mhn-muted, #64748b);
  line-height: 1.6;
  margin: 0;
  max-width: 440px;
}

/* Centre the Edit / Public view action bar on small screens.
   The premium upsell card itself is the reusable `<x-premium.upgrade-gate>`
   component, styled with the shared `.mhn-locked-*` classes (Section 23). */
@media (max-width: 575px) {
  .mhn-dash-action-bar { justify-content: center; }
}

/* ── 31. Doctor Profile (dashboard My Profile) view ──────────────
   Themes the JS-rendered #profile-view (tabs, info badges, avatar). */
.mhn-profile-tabs.nav-tabs { border-bottom: 2px solid var(--mhn-primary, #0f766e); }
.mhn-profile-tabs .nav-link {
  color: var(--mhn-muted, #64748b);
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
}
.mhn-profile-tabs .nav-link:hover { color: var(--mhn-primary, #0f766e); }
.mhn-profile-tabs .nav-link.active {
  color: var(--mhn-primary, #0f766e);
  background: transparent;
  border-bottom: 3px solid var(--mhn-primary, #0f766e);
}
.mhn-info-badge {
  display: inline-block;
  background: var(--mhn-primary-light, #ccfbf1);
  color: var(--mhn-primary-dark, #115e59);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .02em;
}
.mhn-info-badge + br { line-height: 1.8; }
.mhn-na { color: var(--mhn-muted, #94a3b8); font-style: italic; }
.mhn-profile-avatar-ring {
  height: 150px;
  width: 150px;
  border: 3px solid var(--mhn-primary, #0f766e);
  box-shadow: 0 4px 15px rgba(15, 118, 110, .18);
  background: #fff;
}
