:root {
  --bg: #f0f5fe;
  --bg-2: #e8f0fc;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.95);
  --surface-dark: rgba(12, 26, 43, 0.94);
  --surface-dark-2: rgba(18, 37, 58, 0.88);
  --text: #0f1e33;
  --muted: #5d7191;
  --line: rgba(15, 30, 51, 0.07);
  --primary: #2463ff;
  --primary-2: #30b8ae;
  --primary-glow: rgba(36, 99, 255, 0.12);
  --accent: #f0b83a;
  --good: #1fa870;
  --warn: #e89f3a;
  --bad: #e0505a;
  --shadow: 0 18px 50px rgba(26, 50, 88, 0.10);
  --radius: 1.25rem;
  --radius-sm: 0.85rem;
  --radius-pill: 999px;
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Manrope, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse at 10% 0%, rgba(36, 99, 255, 0.20), transparent 55%),
    radial-gradient(ellipse at 90% 5%, rgba(48, 184, 174, 0.15), transparent 50%),
    radial-gradient(ellipse at 50% 95%, rgba(36, 99, 255, 0.10), transparent 50%),
    radial-gradient(ellipse at 0% 50%, rgba(48, 184, 174, 0.08), transparent 45%),
    linear-gradient(135deg, #f0f5fe 0%, #e8f4fc 30%, #edf8ff 60%, #f0f5fe 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  width: 100%;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand strong,
.side-brand strong,
.user-panel strong {
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 14px 28px rgba(36, 93, 255, 0.22);
}

.brand-mark--small {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.85rem;
}

.brand small,
.side-brand span,
.user-panel span {
  display: block;
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-weight: 700;
}

.site-nav button {
  min-height: 2.8rem;
  padding: 0.4rem 0.75rem;
  border: 0;
  border-radius: 0.6rem;
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.site-nav button.active {
  color: var(--text);
  background: rgba(36, 99, 255, 0.06);
}

.site-nav button:hover {
  color: var(--text);
  background: rgba(36, 99, 255, 0.04);
}

.site-nav button.active:hover {
  background: rgba(36, 99, 255, 0.1);
}

.site-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.ghost-button,
.primary-button,
.logout-button,
.os-module,
.os-preview button,
.service-card button,
.schedule-actions button,
.close-button {
  border: 0;
  border-radius: 0.95rem;
  min-height: 3rem;
  padding: 0 1rem;
  font-weight: 800;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(36, 93, 255, 0.24);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-shell {
  width: min(1320px, calc(100% - 2rem));
  margin: 1rem auto 4rem;
}

.public-page {
  display: grid;
  gap: 1rem;
}

.page-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.2rem 0;
}

.page-grid {
  display: grid;
  gap: 1rem;
}

.page-grid--hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.95fr);
  gap: 1.2rem;
  align-items: stretch;
  margin-top: 1rem;
}

.page-grid--about {
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
}

.page-grid--support {
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
}

.page-grid--patients {
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.9fr);
}

.hero-copy,
.hero-visual,
.service-card,
.persona-card,
.faq-card,
.contact-card,
.media-card,
.vital-card,
.schedule-card,
.data-card,
.detail-panel,
.support-panel,
.booking-section,
.contact-section,
.os-rail,
.os-screen,
.portal-banner,
.portal-hero,
.invoice-row,
.about-copy,
.about-data,
.hero-stats article,
.pulse-grid div,
.os-metrics article,
.about-values article,
.impact-grid div,
.directory-card,
.note-paper,
.dual-grid article,
.split-grid article,
.metrics-grid article,
.analytics-grid article,
.schedule-summary article,
.footer-meta article {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(26, 50, 88, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover,
.persona-card:hover,
.faq-card:hover,
.contact-card:hover,
.media-card:hover,
.vital-card:hover,
.schedule-card:hover,
.data-card:hover,
.detail-panel:hover,
.support-panel:hover,
.booking-section:hover,
.contact-section:hover,
.invoice-row:hover,
.hero-stats article:hover,
.pulse-grid div:hover,
.os-metrics article:hover,
.about-values article:hover,
.impact-grid div:hover,
.directory-card:hover,
.note-paper:hover,
.dual-grid article:hover,
.split-grid article:hover,
.metrics-grid article:hover,
.analytics-grid article:hover,
.schedule-summary article:hover,
.footer-meta article:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 99, 255, 0.15);
  box-shadow: 0 16px 48px rgba(36, 99, 255, 0.12), 0 0 40px rgba(36, 99, 255, 0.05);
}

.timeline-card,
.news-card {
  padding: 1.1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 24px rgba(26, 50, 88, 0.06);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.timeline-card:hover,
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(36, 99, 255, 0.15);
  box-shadow: 0 16px 48px rgba(36, 99, 255, 0.12), 0 0 40px rgba(36, 99, 255, 0.05);
}

.hero-copy {
  padding: clamp(1.4rem, 3.2vw, 2.5rem);
  border-radius: 2rem;
}

.eyebrow {
  margin: 0 0 0.7rem;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.portal-hero h1,
.support-panel h3,
.login-panel h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 15ch;
  font-size: clamp(3rem, 5vw, 5.6rem);
  line-height: 0.94;
}

.hero-text {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.3rem;
}

.hero-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.hero-stats article,
.pulse-grid div,
.os-metrics article,
.about-values article,
.impact-grid div {
  padding: 1rem;
  border-radius: 1.05rem;
}

.hero-stats strong,
.pulse-grid strong,
.os-metrics strong,
.impact-grid strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
}

.hero-stats span,
.pulse-grid span,
.os-metrics span,
.impact-grid span,
.data-row span,
.service-card p,
.persona-card p,
.faq-card p,
.support-options span,
.contact-card p,
.contact-card span,
.about-copy p,
.hero-copy p,
.section-heading p,
.feed-row span,
.directory-card span,
.directory-card small,
.schedule-card p,
.schedule-card span,
.detail-panel p,
.detail-grid span,
.vital-card p,
.media-caption span {
  color: var(--muted);
}

.hero-visual {
  display: grid;
  gap: 1rem;
  border-radius: 2rem;
  padding: 1rem;
}

.feature-card,
.media-card,
.os-screen,
.os-rail,
.portal-banner,
.portal-hero,
.data-card,
.detail-panel,
.schedule-card,
.vital-card,
.invoice-row,
.contact-card,
.faq-card,
.support-panel,
.booking-section,
.contact-section,
.about-copy,
.about-data {
  border-radius: 1.5rem;
}

.feature-card {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(36, 93, 255, 0.94), rgba(39, 195, 182, 0.8));
  color: white;
}

.feature-card h2 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.06;
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.pulse-grid div {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.pulse-grid span {
  color: rgba(255, 255, 255, 0.8);
}

.media-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 3rem;
}

.media-card {
  overflow: hidden;
}

.media-card img,
.media-card video {
  height: 18rem;
}

.media-card--video video {
  background: #dcecff;
}

.media-caption {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem 1.2rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.media-caption strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.content-section {
  margin-bottom: 3rem;
}

.section-heading {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.section-heading p {
  max-width: 60ch;
  margin: 0;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.card-grid--services {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid--personas {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card,
.persona-card,
.faq-card,
.contact-card {
  padding: 1.2rem;
}

.service-badge,
.status-pill,
.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
}

.service-badge,
.status-pill {
  color: #16305d;
  background: #dcecff;
}

.service-card h3,
.persona-card strong,
.contact-card strong,
.faq-card strong,
.data-card h3,
.portal-hero h1,
.schedule-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.service-card ul,
.persona-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.persona-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.persona-avatar {
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.95rem;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: 1rem;
}

.about-copy,
.about-data {
  padding: 1.3rem;
}

.about-copy p {
  line-height: 1.75;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.about-values strong,
.mini-list strong,
.support-options strong,
.contact-card strong,
.data-row strong,
.feed-row strong,
.directory-card strong,
.schedule-card strong {
  display: block;
}

.about-values span,
.mini-list span,
.support-options span,
.contact-card span,
.directory-card small {
  display: block;
  margin-top: 0.2rem;
}

.about-data {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.data-card {
  padding: 1.2rem;
}

.mini-list,
.support-options,
.feed-list,
.directory-grid,
.stack-list {
  display: grid;
  gap: 0.7rem;
}

.mini-list div,
.support-options article,
.feed-row,
.directory-card,
.stack-list button {
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.4);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.support-layout,
.contact-grid,
.os-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: 1rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.support-panel {
  padding: 1.3rem;
  display: grid;
  gap: 1rem;
  align-content: start;
}

.booking-section,
.contact-section {
  padding: 1.3rem;
}

.booking-form,
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.booking-form label,
.contact-form label,
.login-panel label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
}

.booking-form input,
.booking-form textarea,
.booking-form select,
.contact-form input,
.contact-form textarea,
.login-panel input,
.login-panel select {
  width: 100%;
  border: 0;
  border-radius: 1rem;
  padding: 0.92rem 1rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

.booking-form input:focus,
.booking-form textarea:focus,
.booking-form select:focus,
.contact-form input:focus,
.contact-form textarea:focus,
.login-panel input:focus {
  border-color: rgba(36, 93, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(36, 93, 255, 0.1);
}

.span-2 {
  grid-column: span 2;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--good);
  font-weight: 800;
}

.contact-grid {
  align-items: start;
}

.contact-card {
  min-height: 100%;
}

.os-preview {
  align-items: stretch;
}

.os-rail {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: linear-gradient(180deg, #0f2440 0%, #112f52 100%);
  color: white;
}

.os-rail__head,
.os-module,
.os-topline,
.schedule-card__top,
.schedule-actions,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.os-rail__head small,
.os-rail__head strong {
  display: block;
}

.os-module {
  width: 100%;
  padding: 0.9rem 1rem;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.os-module span {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 900;
}

.os-module strong,
.os-module small {
  display: block;
}

.os-screen {
  padding: 1.2rem;
}

.os-topline h3 {
  margin: 0.1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
}

.os-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}

.os-tables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.os-tables h4 {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
}

.data-row,
.feed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}

.data-row:first-of-type,
.feed-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.portal-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-height: 100vh;
}

.portal-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
  padding: 1.1rem;
  color: white;
  background: linear-gradient(180deg, #0f2240 0%, #102a4b 55%, #0d1f39 100%);
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-panel {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
}

.portal-nav {
  display: grid;
  gap: 0.45rem;
}

.portal-nav button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.portal-nav button.active,
.portal-nav button:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 0.7rem;
}

.sidebar-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.logout-button {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.portal-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-topbar h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.2rem;
}

.portal-topbar p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.portal-banner {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
}

.portal-banner span {
  flex: 0 0 auto;
  color: var(--good);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portal-banner p {
  margin: 0;
  color: var(--muted);
}

.portal-grid {
  display: grid;
  gap: 1rem;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 0.75fr);
  gap: 1rem;
  padding: 1.3rem;
}

.portal-hero h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.98;
}

.portal-hero p {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-stack {
  display: grid;
  gap: 0.8rem;
}

.hero-stack div {
  display: grid;
  align-content: center;
  min-height: 6.2rem;
  padding: 1rem;
  border-radius: 1.05rem;
  background: #fff;
}

.dual-grid,
.split-grid,
.finance-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.data-card {
  padding: 1.2rem;
}

.data-card p {
  margin: 0;
}

.data-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
}

.positive {
  color: var(--good);
  background: rgba(31, 174, 114, 0.12);
}

.warning {
  color: #9c6a12;
  background: rgba(242, 178, 51, 0.18);
}

.critical {
  color: #a4313a;
  background: rgba(225, 91, 100, 0.14);
}

.progress-list,
.feed-list,
.stack-list {
  display: grid;
  gap: 0.7rem;
}

.progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 0.7fr) auto;
  gap: 1rem;
  align-items: center;
}

.bar-track {
  height: 0.75rem;
  border-radius: 999px;
  background: rgba(17, 35, 62, 0.08);
  overflow: hidden;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.stack-list button {
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.82);
}

.stack-list button.active {
  border-color: rgba(36, 93, 255, 0.3);
  background: rgba(36, 93, 255, 0.08);
}

.detail-panel {
  padding: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0;
}

.detail-grid span {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: #fff;
}

.segmented {
  display: inline-flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(36, 93, 255, 0.08);
}

.segmented button {
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.9rem;
}

.schedule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.schedule-summary article {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
}

.schedule-summary strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.schedule-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.schedule-card__top,
.schedule-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.schedule-actions button {
  padding: 0;
  min-height: auto;
  color: var(--primary);
  background: transparent;
}

.vitals-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.vital-card {
  padding: 1rem;
}

.vital-card--stable {
  box-shadow: inset 0 0 0 1px rgba(31, 174, 114, 0.14);
}

.vital-card--watch {
  box-shadow: inset 0 0 0 1px rgba(233, 162, 59, 0.16);
}

.vital-values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.vital-values span {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 0.65rem 0.4rem;
  border-radius: 0.9rem;
  background: #f4f6fa;
}

.vital-values b {
  font-family: "Space Grotesk", sans-serif;
}

.revenue-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.8rem;
  align-items: end;
  min-height: 18rem;
  margin-top: 1rem;
}

.revenue-bars div {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
}

.revenue-bars i {
  width: 100%;
  min-height: 5rem;
  border-radius: 1rem 1rem 0.45rem 0.45rem;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}

.invoice-list {
  display: grid;
  gap: 0.7rem;
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
}

.invoice-meta {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.invoice-meta b {
  font-family: "Space Grotesk", sans-serif;
}

.support-grid {
  align-items: start;
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.directory-card {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.login-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 31, 0.36);
  backdrop-filter: blur(8px);
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(44rem, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.4rem;
  border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 28px 90px rgba(26, 50, 88, 0.15);
}

.note-paper {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.35rem;
  background:
    #fff,
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1.7rem,
      rgba(36, 93, 255, 0.06) 1.7rem,
      rgba(36, 93, 255, 0.06) 1.8rem
    );
  transform-origin: top left;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.note-paper::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(36, 93, 255, 0.22), rgba(39, 195, 182, 0.18));
  transform: rotate(12deg);
}

.note-paper:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 22px 42px rgba(26, 51, 90, 0.18);
}

.note-paper__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.note-paper__top strong {
  font-family: "Space Grotesk", sans-serif;
}

.note-fields {
  display: grid;
  gap: 0.8rem;
}

.note-fields label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 800;
}

.note-fields textarea {
  min-height: 4.2rem;
  border: 0;
  padding: 0.2rem 0 0.3rem;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px dashed rgba(36, 93, 255, 0.16);
}

.note-fields textarea:focus {
  box-shadow: none;
  border-bottom-color: rgba(36, 93, 255, 0.42);
}

.note-save {
  justify-self: end;
}

.booking-portal {
  max-width: 60rem;
}

.audit-list {
  display: grid;
  gap: 0.7rem;
}

.audit-row {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: #fff;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.analytics-grid article {
  padding: 1rem;
  border-radius: 1rem;
  background: #fff;
}

.analytics-grid strong {
  display: block;
  margin-top: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.close-button {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  min-height: 2.6rem;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: #fff;
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.1);
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.close-button:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  transform: scale(1.1);
}

.role-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.role-switcher button {
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 51, 90, 0.06);
  border: 0;
  border-radius: 0.95rem;
  min-height: 3rem;
  padding: 0 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
}

.role-switcher button.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 8px 20px rgba(36, 93, 255, 0.25);
}

.login-panel form {
  display: grid;
  gap: 0.9rem;
}

.login-panel input,
.login-panel textarea {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  background: white;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.check-row input {
  width: 1.05rem;
  min-height: 1.05rem;
  padding: 0;
}

.demo-card {
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  border-radius: 1.2rem;
  background: linear-gradient(135deg, rgba(36, 93, 255, 0.06), rgba(39, 195, 182, 0.04));
}

.demo-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.demo-account-row {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 0;
  border-radius: 0.95rem;
  color: var(--text);
  text-align: left;
  background: #fff;
  transition: all 0.25s ease;
  cursor: pointer;
  font-weight: 700;
}

.demo-account-row:hover {
  background: rgba(36, 93, 255, 0.04);
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.demo-account-row code {
  color: var(--primary);
  font-family: Manrope, Arial, sans-serif;
}

.form-error {
  margin: 0;
  color: var(--bad);
  font-weight: 800;
}

.portal-banner .status-pill,
.status-chip {
  color: #16305d;
  background: #dcecff;
}

.status-chip--success,
.positive {
  color: #0d7f54;
  background: rgba(31, 174, 114, 0.14);
}

.status-chip--info {
  color: #245dff;
  background: rgba(36, 93, 255, 0.12);
}

.status-chip--warning {
  color: #a56c00;
  background: rgba(233, 162, 59, 0.16);
}

.status-chip--critical {
  color: #b83e46;
  background: rgba(225, 91, 100, 0.14);
}

.support-options article,
.directory-card,
.feed-row,
.mini-list div,
.stack-list button {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.support-options article:hover,
.directory-card:hover,
.feed-row:hover,
.mini-list div:hover,
.stack-list button:hover,
.service-card:hover,
.persona-card:hover,
.faq-card:hover,
.contact-card:hover,
.media-card:hover,
.data-card:hover,
.os-module:hover,
.portal-nav button:hover,
.hero-stats article:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.page-extended {
  margin-top: 1.2rem;
}

.timeline-strip,
.news-grid,
.info-band {
  display: grid;
  gap: 1rem;
}

.timeline-strip,
.info-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card,
.news-card {
  padding: 1.1rem;
  border-radius: 1.4rem;
  background: #fff;
}

.timeline-card strong,
.news-card .eyebrow {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.timeline-card h3,
.news-card h3 {
  margin: 0 0 0.35rem;
}

.timeline-card p,
.news-card p {
  margin: 0;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}

.footer-grid strong {
  display: block;
  margin-bottom: 0.4rem;
}

.footer-links,
.footer-meta {
  display: grid;
  gap: 0.5rem;
}

.footer-links button {
  width: fit-content;
  color: var(--text);
  font-weight: 800;
  padding: 0.4rem 0.8rem;
  text-align: left;
  border: 0;
  border-radius: 0.7rem;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.footer-links button:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(36, 93, 255, 0.2);
}

.footer-meta {
  gap: 0.7rem;
}

.footer-meta article {
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 51, 90, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-meta article:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 51, 90, 0.08);
}

.footer-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.15rem;
}

.footer-meta strong {
  font-size: 1.05rem;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(36, 93, 255, 0.12);
  color: var(--primary);
  font-weight: 800;
}

.media-strip--wide {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.media-strip--wide .media-card img,
.media-strip--wide .media-card video {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (max-width: 1120px) {
  .hero-section,
  .page-grid--hero,
  .about-section,
  .page-grid--about,
  .page-grid--support,
  .page-grid--patients,
  .support-layout,
  .contact-grid,
  .os-preview,
  .portal-hero,
  .dual-grid,
  .split-grid,
  .finance-grid,
  .support-grid,
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .media-strip,
  .card-grid--services,
  .card-grid--personas,
  .timeline-strip,
  .news-grid,
  .info-band,
  .metrics-grid,
  .analytics-grid,
  .schedule-summary,
  .directory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-stats,
  .pulse-grid,
  .os-metrics,
  .schedule-summary,
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-sidebar {
    position: static;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .header-actions,
  .hero-actions {
    width: 100%;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .hero-stats,
  .pulse-grid,
  .media-strip,
  .card-grid--services,
  .card-grid--personas,
  .timeline-strip,
  .news-grid,
  .info-band,
  .about-values,
  .impact-grid,
  .booking-form,
  .contact-form,
  .metrics-grid,
  .analytics-grid,
  .directory-grid,
  .vital-values,
  .os-tables,
  .os-metrics,
  .schedule-summary {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .progress-row,
  .invoice-row,
  .schedule-card__top,
  .schedule-actions,
  .portal-topbar,
  .os-topline,
  .section-title,
  .top-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid,
  .media-strip--wide {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    padding: 1rem;
  }
}

@keyframes aurora-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes slide-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

.page-shell,
.site-footer,
.login-modal {
  animation: fade-in 0.6s ease;
}

.public-page > article {
  animation: slide-up 0.5s ease both;
}

.public-page > article:nth-child(2) { animation-delay: 0.1s; }
.public-page > article:nth-child(3) { animation-delay: 0.2s; }
.public-page > article:nth-child(4) { animation-delay: 0.3s; }

.hero-copy h1,
.hero-visual {
  animation: slide-up 0.6s ease both;
}

.hero-copy h1 { animation-delay: 0.05s; }
.hero-visual { animation-delay: 0.15s; }

.card-grid--services .service-card,
.card-grid--personas .persona-card,
.timeline-card,
.news-card,
.media-card {
  animation: slide-up 0.5s ease both;
}

.card-grid--services .service-card:nth-child(1) { animation-delay: 0.05s; }
.card-grid--services .service-card:nth-child(2) { animation-delay: 0.1s; }
.card-grid--services .service-card:nth-child(3) { animation-delay: 0.15s; }
.card-grid--services .service-card:nth-child(4) { animation-delay: 0.2s; }

.site-header .brand-mark {
  position: relative;
  transition: transform 0.3s ease;
}

.site-header .brand-mark::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary), var(--primary-2), var(--accent), var(--primary));
  background-size: 300% 300%;
  z-index: -1;
  animation: aurora-drift 4s ease infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.site-header .brand:hover .brand-mark::after {
  opacity: 1;
}

.site-header .brand:hover .brand-mark {
  transform: scale(1.08);
}

.site-header .brand:hover .brand-mark::after {
  animation: spin-slow 2s linear infinite;
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 3rem 2rem 2rem;
  margin-top: 4rem;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--primary-2), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

.footer-grid {
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-grid p {
  line-height: 1.7;
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.footer-grid > div > p.eyebrow {
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.95rem;
  background: rgba(36, 93, 255, 0.08);
  color: var(--muted);
  font-weight: 900;
  font-size: 1.15rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(36, 93, 255, 0.2);
}

.footer-awards {
  display: flex;
  gap: 0.7rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.footer-awards span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.6rem;
  background: rgba(242, 178, 51, 0.12);
  color: #a56c00;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.footer-awards .award-premium {
  background: rgba(36, 93, 255, 0.1);
  color: var(--primary);
}

.footer-awards .award-gold {
  background: rgba(242, 178, 51, 0.12);
  color: #a56c00;
}

.footer-newsletter {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.footer-newsletter input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter input:focus {
  border-color: rgba(36, 93, 255, 0.3);
  box-shadow: 0 0 0 3px rgba(36, 93, 255, 0.08);
}

.footer-newsletter button {
  border: 0;
  border-radius: 0.95rem;
  padding: 0.85rem 1.2rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.footer-newsletter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(36, 93, 255, 0.25);
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.brand-mark {
  transition: transform 0.3s ease;
  cursor: default;
}

.service-card,
.persona-card,
.faq-card,
.contact-card,
.media-card,
.data-card,
.feature-card {
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, border-color 0.3s ease;
}

.service-card:hover,
.persona-card:hover,
.faq-card:hover,
.contact-card:hover,
.data-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 50px rgba(26, 51, 90, 0.15);
}

.hero-visual:hover .feature-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(26, 51, 90, 0.18);
}

.pulse-grid div:hover {
  transform: translateY(-3px) scale(1.02);
  transition: transform 0.3s ease;
}

.hero-stats article:hover {
  transform: translateY(-4px) scale(1.02);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 35, 62, 0.03);
}

::-webkit-scrollbar-thumb {
  background: rgba(36, 93, 255, 0.15);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(36, 93, 255, 0.3);
}

::selection {
  background: rgba(36, 93, 255, 0.15);
  color: var(--text);
}

.site-header {
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.os-module:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.os-screen {
  transition: box-shadow 0.2s ease;
}

.os-screen:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.portal-hero {
  transition: box-shadow 0.3s ease;
}

.segmented button {
  transition: all 0.25s ease;
}

.primary-button {
  transition: box-shadow 0.2s ease;
}

.primary-button:hover {
  box-shadow: 0 12px 28px rgba(36, 93, 255, 0.25);
}

.ghost-button {
  transition: all 0.25s ease;
}

.ghost-button:hover {
  background: rgba(36, 93, 255, 0.04);
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.06);
}

.modal-open .site-header,
.modal-open .appointment-float,
.modal-open .emergency-float {
  filter: blur(4px);
  pointer-events: none;
}

.login-panel {
  animation: slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.login-backdrop {
  animation: fade-in 0.25s ease both;
}

.note-paper {
  transition: box-shadow 0.2s ease;
}

.note-paper:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.1);
}

.portal-sidebar {
  transition: background 0.5s ease;
}

.schedule-card {
  transition: box-shadow 0.2s ease;
}

.schedule-card:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.vital-card {
  transition: box-shadow 0.2s ease;
}

.vital-card:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.invoice-row {
  transition: all 0.25s ease;
}

.invoice-row:hover {
  background: rgba(36, 93, 255, 0.04);
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.news-card {
  transition: box-shadow 0.2s ease;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.timeline-card {
  transition: box-shadow 0.2s ease;
}

.timeline-card:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.media-card video,
.media-card img {
  transition: opacity 0.3s ease;
}

.media-card:hover video,
.media-card:hover img {
  opacity: 0.85;
}

.media-caption {
  transition: background 0.3s ease;
}

.media-card:hover .media-caption {
  background: #fafbfc;
}

body::before,
body::after {
  transition: opacity 0.5s ease;
}

.demo-account-row {
  transition: all 0.2s ease;
}

.demo-account-row:hover {
  transform: translateX(3px);
  border-color: rgba(36, 93, 255, 0.2);
  background: rgba(36, 93, 255, 0.04);
}

.status-pill,
.status-chip {
  transition: all 0.25s ease;
}

.role-switcher button {
  transition: all 0.25s ease;
}

.role-switcher button:hover {
  transform: translateY(-2px);
}

.bar-track i {
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.revenue-bars i {
  transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.service-card,
.persona-card,
.timeline-card,
.news-card,
.media-card,
.faq-card,
.contact-card,
.vital-card,
.schedule-card,
.data-card {
  transition: box-shadow 0.3s ease;
}

.service-card:hover,
.persona-card:hover,
.timeline-card:hover,
.news-card:hover,
.media-card:hover,
.faq-card:hover,
.contact-card:hover,
.vital-card:hover,
.schedule-card:hover,
.data-card:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.hero-stats {
  transform-style: preserve-3d;
}

.hero-stats article,
.pulse-grid div,
.os-metrics article,
.about-values article,
.impact-grid div,
.dual-grid article,
.split-grid article,
.metrics-grid article,
.analytics-grid article,
.directory-card,
.schedule-summary article,
.invoice-row,
.feed-row,
.note-paper,
.support-options article {
  transition: box-shadow 0.2s ease;
}

.hero-stats article:hover,
.pulse-grid div:hover,
.os-metrics article:hover,
.about-values article:hover,
.impact-grid div:hover,
.dual-grid article:hover,
.split-grid article:hover,
.metrics-grid article:hover,
.analytics-grid article:hover,
.directory-card:hover,
.schedule-summary article:hover,
.invoice-row:hover,
.feed-row:hover,
.note-paper:hover,
.support-options article:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.1);
}

.portal-main {
  perspective: 800px;
}

.os-screen {
  transition: box-shadow 0.3s ease;
}

.os-screen:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.12);
}

.footer-meta article,
.footer-links button {
  transition: box-shadow 0.2s ease, background 0.3s ease;
}

.footer-meta article:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.metrics-grid article,
.analytics-grid article,
.directory-card {
  transition: box-shadow 0.2s ease;
}

.vital-values span {
  transition: box-shadow 0.2s ease;
}

.vital-values span:hover {
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.06);
}

.revenue-bars div {
  transition: box-shadow 0.2s ease;
}

.revenue-bars div:hover {
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.06);
}

.invoice-row {
  transition: box-shadow 0.2s ease;
}

.invoice-row:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.feed-row {
  transition: box-shadow 0.2s ease;
}

.feed-row:hover {
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.06);
}

.note-paper {
  transition: box-shadow 0.2s ease;
}

.note-paper:hover {
  box-shadow: 0 8px 28px rgba(26, 51, 90, 0.1);
}

.support-options article {
  transition: box-shadow 0.2s ease;
}

.support-options article:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.primary-button,
.ghost-button,
.logout-button {
  transition: box-shadow 0.2s ease, background 0.3s ease;
}

.primary-button:hover {
  box-shadow: 0 8px 20px rgba(36, 93, 255, 0.25);
}

.ghost-button:hover,
.logout-button:hover {
  box-shadow: 0 4px 12px rgba(26, 51, 90, 0.08);
}

.os-module {
  transition: box-shadow 0.2s ease, background 0.3s ease;
}

.os-module:hover {
  box-shadow: 0 4px 16px rgba(26, 51, 90, 0.08);
}

.media-card img,
.media-card video {
  transition: opacity 0.3s ease;
}

.media-card:hover img,
.media-card:hover video {
  opacity: 0.85;
}

.media-caption {
  transition: background 0.2s ease;
}

.media-card:hover .media-caption {
  background: #fafbfc;
}

.segmented button {
  transition: background 0.2s ease, color 0.2s ease;
}

.segmented button:hover {
  background: rgba(36, 93, 255, 0.04);
}

.booking-form label,
.contact-form label {
  transition: color 0.2s ease;
}

.booking-form label:focus-within,
.contact-form label:focus-within {
  color: var(--primary);
}

/* === Scroll reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

/* === Pill tabs === */
.segmented {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.35rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.segmented button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  font-size: 0.85rem;
}

.segmented button:hover {
  color: var(--text);
  background: rgba(36, 99, 255, 0.06);
}

.segmented button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px rgba(36, 99, 255, 0.2);
}

/* === Sticky buttons === */
.appointment-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 100;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.appointment-float .primary-button {
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 32px rgba(36, 99, 255, 0.25);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.appointment-float .primary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 40px rgba(36, 99, 255, 0.35);
}

.emergency-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: rgba(224, 80, 90, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(224, 80, 90, 0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.emergency-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(224, 80, 90, 0.35);
  background: rgba(224, 80, 90, 0.98);
}

/* === 3D Medical Cross Icon === */
.medical-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  animation: float 4s ease-in-out infinite;
}

.medical-icon .cross {
  position: relative;
  width: 48px;
  height: 48px;
}

.medical-icon .cross::before {
  content: '';
  position: absolute;
  width: 48px;
  height: 14px;
  top: 17px;
  left: 0;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 4px 16px rgba(36, 99, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.medical-icon .cross::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 48px;
  top: 0;
  left: 17px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
  box-shadow: 4px 0 16px rgba(36, 99, 255, 0.25), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

/* === Doctor profile image zoom === */
.persona-avatar {
  overflow: hidden;
  border-radius: 1rem;
}

.persona-avatar img,
.persona-avatar .avatar-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.persona-card:hover .persona-avatar img,
.persona-card:hover .persona-avatar .avatar-placeholder {
  transform: scale(1.08);
}

/* === More spacing === */
.page-panel {
  padding: 1.5rem 1.5rem 0;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2 {
  margin: 0 0 0.5rem;
}

.card-grid--services,
.card-grid--personas {
  gap: 1.25rem;
}

.service-card,
.persona-card,
.faq-card,
.contact-card {
  padding: 1.5rem;
}

.hero-text {
  max-width: 60ch;
  line-height: 1.75;
  margin: 0.75rem 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-stats {
  gap: 1rem;
}

.page-extended {
  margin-top: 2rem;
}

/* === Service pills === */
.service-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(36, 99, 255, 0.08);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

/* === Glass contact form === */
.booking-form label,
.contact-form label {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form label:focus-within,
.contact-form label:focus-within {
  border-color: rgba(36, 99, 255, 0.25);
  box-shadow: 0 0 0 3px rgba(36, 99, 255, 0.06);
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 0;
  padding: 0.3rem 0;
  width: 100%;
  outline: none;
}

.booking-form label span,
.contact-form label span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === Responsive fixes === */
@media (max-width: 720px) {
  .emergency-float {
    bottom: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.75rem;
  }
  .appointment-float {
    bottom: 1rem;
    right: 1rem;
  }
  .appointment-float .primary-button {
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
  }
  .medical-icon {
    width: 48px;
    height: 48px;
  }
  .medical-icon .cross {
    width: 36px;
    height: 36px;
  }
  .medical-icon .cross::before {
    width: 36px;
    height: 10px;
    top: 13px;
  }
  .medical-icon .cross::after {
    width: 10px;
    height: 36px;
    left: 13px;
  }
}

