
:root{--nh-dark:#020817;--nh-surface:#07182c;--nh-surface2:#0b2341;--nh-border:#173a58;--nh-text:#f5f9ff;--nh-muted:#a7bdd2;--nh-blue:#329bf0;--nh-cyan:#62e6e0}
body{background:radial-gradient(circle at 5% -5%,rgba(50,155,240,.16),transparent 28%),radial-gradient(circle at 95% 0%,rgba(98,230,224,.08),transparent 26%),linear-gradient(145deg,#020817,#061224 55%,#07182b)!important;color:var(--nh-text)!important}
.health-navbar{background:rgba(2,8,23,.94)!important;border-bottom:1px solid rgba(98,230,224,.12)!important}.health-nav-link{color:#c9ddec!important}.health-nav-link:hover,.health-nav-link.active{background:rgba(50,155,240,.12)!important;color:#fff!important}.health-brand,.health-brand:hover{color:#fff!important}.health-mobile-link{color:#d6e6f5!important}.health-mobile-link:hover,.health-mobile-link.active{background:#0b2445!important;color:#fff!important}
.container,.narrow{color:var(--nh-text)}.panel,.card,.feature,.metric,.info,.trust,.hero,.documents-card,.stats-card,.insight-card,.food-card,.medical-card,.support-card{background:linear-gradient(145deg,#07182c,#081d36)!important;border-color:var(--nh-border)!important;color:var(--nh-text)!important;box-shadow:0 18px 48px rgba(0,0,0,.24)!important}.muted,.section-intro,p.muted{color:var(--nh-muted)!important}.hero h1,.hero h2,.hero h3,.section-head h1,.section-head h2,.feature h3,.card h3,.panel h2,.panel h3{color:#f6faff!important}.hero p{color:#a7bdd2!important}.btn-primary,.btn-blue{background:linear-gradient(135deg,#1478c5,#329bf0)!important;color:#fff!important;border:0!important}.btn-outline,.btn-secondary{background:#0a1d35!important;border-color:#244867!important;color:#d9ebfa!important}.form-control,.form-select,input,select,textarea{background:#06172a!important;color:#edf7ff!important;border-color:#244867!important}.form-control::placeholder,input::placeholder,textarea::placeholder{color:#7290a8!important}.alert{border-color:#2a4c69!important}.health-offcanvas{background:#061225!important;color:#fff}.health-offcanvas .btn-close{filter:invert(1)}
.container > .hero,.dashboard-page .hero,.food-hero,.medical-hero,.ai-hero,.profile-hero,.support-hero,.documents-page .hero,.reminders-page .hero{background:linear-gradient(145deg,#071a30,#0a294a)!important;border:1px solid #1b4668!important;box-shadow:0 22px 60px rgba(0,0,0,.3)!important;color:#fff!important}.dashboard-page .hero::after,.food-hero::after,.medical-hero::after,.ai-hero::after{opacity:.35!important}.dashboard-page .hero h1,.food-hero h1,.medical-hero h1,.ai-hero h1,.profile-hero h1,.support-hero h1{color:#fff!important}.food-hero p,.medical-hero p,.ai-hero p,.support-hero p{color:#b6cde0!important}.food-hero-visual,.medical-hero-visual,.ai-hero-orb{filter:saturate(.85) brightness(.8)}
.nh-pwa-install-btn{border:1px solid #2a5d80!important;background:#0a2742!important;color:#dff4ff!important;border-radius:10px!important;padding:8px 12px!important;font-size:12px!important;font-weight:800!important}.nh-pwa-install-btn[hidden]{display:none!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* NizHealth component spacing system — consistent, responsive and mobile-first. */
:root{
  --nh-space-1:4px;--nh-space-2:8px;--nh-space-3:12px;--nh-space-4:16px;
  --nh-space-5:24px;--nh-space-6:32px;--nh-space-7:40px;--nh-space-8:48px;
  --nh-content-max:1180px;--nh-touch:48px;
}
html{scroll-padding-top:76px}
body{overflow-x:hidden}
.container{width:min(calc(100% - 32px),var(--nh-content-max));margin-inline:auto;padding-inline:0}
.container.dashboard-page{padding-top:var(--nh-space-6);padding-bottom:var(--nh-space-8)}
.container > .hero,.dashboard-page > .hero,.food-hero,.medical-hero,.ai-hero,.profile-hero,.documents-page > .hero,.reminders-page > .hero{
  margin:0 0 var(--nh-space-6);padding:clamp(24px,4vw,40px);border-radius:24px;
}
.grid{gap:var(--nh-space-5);margin-block:var(--nh-space-5)}
.grid.cards{align-items:stretch}
.panel,.card,.tile,.medical-overview-card,.stats-card,.insight-card,.food-card,.documents-card{padding:var(--nh-space-5);border-radius:18px}
.panel + .panel,.card + .card{margin-top:0}
.section-head{margin-bottom:var(--nh-space-4);gap:var(--nh-space-3)}
.section-head h1,.section-head h2,.section-head h3{margin:0}
.panel h1,.panel h2,.panel h3,.card h1,.card h2,.card h3{margin-top:0;margin-bottom:var(--nh-space-3)}
.panel p:last-child,.card p:last-child,.tile span:last-child{margin-bottom:0}
form{gap:var(--nh-space-4)}
label{margin-bottom:6px}
input,select,textarea,.form-control,.form-select{min-height:var(--nh-touch);border-radius:12px}
.btn,.btn-primary,.btn-secondary,.btn-outline,.btn-blue,button{min-height:44px}
.table-wrap{margin-top:var(--nh-space-4);overflow-x:auto;border-radius:14px}
.empty{padding:var(--nh-space-6);border-radius:16px;margin-block:var(--nh-space-4)}
.nh-icon{width:1.2em;height:1.2em;display:inline-block;vertical-align:-.22em;flex:0 0 auto;fill:none;stroke:currentColor}
.nav-link-icon .nh-icon,.mobile-link-icon .nh-icon{width:18px;height:18px;vertical-align:-4px}
.nav-link-icon,.mobile-link-icon,.logout-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px}
.health-nav-link,.health-mobile-link{min-height:44px;gap:8px}
.dashboard-page .stat .icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;margin-bottom:10px;color:#62e6e0}
.dashboard-page .stat .icon .nh-icon{width:26px;height:26px}
.tile{display:flex;flex-direction:column;gap:8px}
.tile b{display:flex;align-items:center;gap:9px}
.ai-dashboard-card{margin-top:var(--nh-space-6);padding:var(--nh-space-6);border-radius:20px}
.ai-dashboard-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px}
.ai-dashboard-icon .nh-icon{width:30px;height:30px}
@media(max-width:767px){
  .container{width:min(calc(100% - 24px),var(--nh-content-max))}
  .container.dashboard-page{padding-top:var(--nh-space-4)}
  .grid{gap:var(--nh-space-4);margin-block:var(--nh-space-4)}
  .panel,.card,.tile,.medical-overview-card,.stats-card,.insight-card,.food-card,.documents-card{padding:var(--nh-space-4)}
  .container > .hero,.dashboard-page > .hero,.food-hero,.medical-hero,.ai-hero,.profile-hero,.documents-page > .hero,.reminders-page > .hero{padding:24px 20px;border-radius:20px;margin-bottom:var(--nh-space-5)}
  .ai-dashboard-card{padding:24px 20px}
}

/* =========================================================
   NIZHEALTH GLOBAL VISUAL OVERHAUL — FINAL LAYER
   ========================================================= */

:root{
  --nh-bg:#020817;
  --nh-bg-soft:#061224;
  --nh-surface:#07182c;
  --nh-surface-2:#0a2039;
  --nh-surface-3:#0d2947;
  --nh-border:rgba(98,170,220,.18);
  --nh-border-strong:rgba(98,190,240,.32);
  --nh-text:#f5f9ff;
  --nh-text-soft:#d7e8f5;
  --nh-muted:#91abc0;
  --nh-blue:#329bf0;
  --nh-cyan:#62e6e0;
  --nh-danger:#ff8179;
  --nh-success:#5ee6a8;
  --nh-shadow:0 18px 50px rgba(0,0,0,.28);
  --nh-shadow-soft:0 10px 30px rgba(0,0,0,.20);
}

html,body{
  background:#020817!important;
  color:var(--nh-text)!important;
}

body{
  background:
    radial-gradient(circle at 8% -8%,rgba(50,155,240,.14),transparent 28%),
    radial-gradient(circle at 94% 4%,rgba(98,230,224,.07),transparent 25%),
    linear-gradient(145deg,#020817 0%,#061224 52%,#07182b 100%)!important;
  min-height:100vh;
}

/* ---------- PAGE WIDTH / SPACING ---------- */

.container{
  width:min(calc(100% - 40px),1180px)!important;
  max-width:1180px!important;
  padding:32px 0 72px!important;
}

.narrow{
  width:min(calc(100% - 40px),850px)!important;
}

section{
  scroll-margin-top:80px;
}

.hero{
  position:relative;
  overflow:hidden;
  border-radius:24px;
}

.hero > *{
  position:relative;
  z-index:1;
}

/* ---------- TYPOGRAPHY ---------- */

h1,h2,h3,h4,h5,h6{
  color:var(--nh-text);
}

h1{
  letter-spacing:-.035em;
}

h2,h3{
  letter-spacing:-.018em;
}

p{
  color:var(--nh-text-soft);
}

small,.small{
  color:var(--nh-muted);
}

a{
  color:#69c5ff;
}

a:hover{
  color:#9bdcff;
}

/* ---------- UNIVERSAL SURFACES ---------- */

.panel,
.card,
.tile,
.feature,
.metric,
.info,
.trust,
.stats-card,
.insight-card,
.food-card,
.medical-card,
.documents-card,
.support-card,
.ai-dashboard-card,
.medical-overview-card{
  background:linear-gradient(145deg,var(--nh-surface),var(--nh-surface-2))!important;
  border:1px solid var(--nh-border)!important;
  color:var(--nh-text)!important;
  box-shadow:var(--nh-shadow-soft)!important;
}

.panel:hover,
.card:hover,
.tile:hover,
.feature:hover,
.metric:hover,
.info:hover,
.stats-card:hover,
.insight-card:hover,
.food-card:hover,
.medical-card:hover,
.documents-card:hover{
  border-color:var(--nh-border-strong)!important;
}

/* ---------- HEADERS ---------- */

.section-head,
.page-header{
  margin-bottom:24px;
}

.section-head p,
.page-header p{
  color:var(--nh-muted)!important;
}

.eyebrow{
  color:#67c8ff!important;
}

/* ---------- BUTTONS ---------- */

.btn,
button,
input[type="submit"],
input[type="button"]{
  border-radius:12px!important;
  font-weight:700!important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important;
}

.btn:hover,
button:hover,
input[type="submit"]:hover,
input[type="button"]:hover{
  transform:translateY(-1px);
}

.btn-primary,
.btn-blue,
button.btn-primary{
  background:linear-gradient(135deg,#1478c5,#329bf0)!important;
  border:1px solid rgba(125,211,252,.28)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(20,120,197,.22)!important;
}

.btn-secondary,
.btn-outline{
  background:#0a1d35!important;
  border:1px solid #244867!important;
  color:#d9ebfa!important;
}

.btn-danger{
  background:#3a1518!important;
  border:1px solid rgba(255,129,121,.28)!important;
  color:#ffaaa3!important;
}

/* ---------- FORMS ---------- */

.form-label,
label{
  color:#dcecf8!important;
  font-weight:600;
}

input,
select,
textarea,
.form-control,
.form-select{
  background:#06172a!important;
  color:#edf7ff!important;
  border:1px solid #244867!important;
  border-radius:12px!important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus{
  background:#071b31!important;
  color:#fff!important;
  border-color:#329bf0!important;
  box-shadow:0 0 0 3px rgba(50,155,240,.14)!important;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder{
  color:#6f8da5!important;
}

/* ---------- TABLES ---------- */

table{
  color:var(--nh-text)!important;
}

.table-wrap{
  background:var(--nh-surface)!important;
  border:1px solid var(--nh-border)!important;
  box-shadow:var(--nh-shadow-soft)!important;
}

th{
  background:#0b2341!important;
  color:#bfe5ff!important;
  border-color:var(--nh-border)!important;
}

td{
  background:transparent!important;
  color:#d9e9f5!important;
  border-color:rgba(98,170,220,.12)!important;
}

/* ---------- ALERTS / EMPTY STATES ---------- */

.alert{
  background:#091d34!important;
  color:#dcecf8!important;
  border:1px solid var(--nh-border-strong)!important;
}

.empty{
  background:rgba(7,24,44,.72)!important;
  border:1px dashed var(--nh-border-strong)!important;
  color:var(--nh-muted)!important;
}

/* ---------- HERO CONSISTENCY ---------- */

.container > .hero,
.dashboard-page > .hero,
.food-hero,
.medical-hero,
.ai-hero,
.profile-hero,
.support-hero,
.documents-page > .hero,
.reminders-page > .hero{
  margin-bottom:32px!important;
  padding:clamp(28px,4vw,44px)!important;
  border:1px solid rgba(98,190,240,.24)!important;
  border-radius:24px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.14),transparent 35%),
    linear-gradient(145deg,#071a30,#0a294a)!important;
  box-shadow:0 22px 60px rgba(0,0,0,.30)!important;
}

/* ---------- ICON CONSISTENCY ---------- */

.nh-icon{
  stroke:currentColor;
  fill:none;
  stroke-width:1.8;
}

.niz-sidebar-link-icon .nh-icon,
.niz-mobile-notification .nh-icon{
  width:19px!important;
  height:19px!important;
}

/* ---------- SIDEBAR RELATIONSHIP ---------- */

@media(min-width:992px){
  body{
    padding-left:var(--niz-sidebar-width,274px)!important;
  }

  .container{
    width:min(calc(100% - 48px),1180px)!important;
  }
}

/* ---------- MOBILE ---------- */

@media(max-width:767px){
  .container{
    width:calc(100% - 24px)!important;
    padding-top:20px!important;
    padding-bottom:48px!important;
  }

  .narrow{
    width:calc(100% - 24px)!important;
  }

  h1{
    font-size:clamp(26px,8vw,34px)!important;
  }

  h2{
    font-size:20px!important;
  }

  .hero{
    border-radius:20px!important;
  }

  .container > .hero,
  .dashboard-page > .hero,
  .food-hero,
  .medical-hero,
  .ai-hero,
  .profile-hero,
  .support-hero,
  .documents-page > .hero,
  .reminders-page > .hero{
    padding:24px 20px!important;
    margin-bottom:24px!important;
  }

  .grid,
  .grid.cards,
  .grid.two{
    grid-template-columns:1fr!important;
  }

  .panel,
  .card,
  .tile,
  .stats-card,
  .insight-card,
  .food-card,
  .medical-card,
  .documents-card{
    border-radius:16px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    transition:none!important;
    animation:none!important;
  }
}

/* Global upgrade banner spacing */
body:has(.niz-upgrade-banner){
  padding-top:82px;
}

@media(max-width:991px){
  body:has(.niz-upgrade-banner){
    padding-top:138px;
  }
}

@media(max-width:600px){
  .niz-upgrade-link{
    padding:10px 12px!important;
    gap:9px!important;
    border-radius:12px!important;
  }

  .niz-upgrade-icon{
    width:32px!important;
    height:32px!important;
  }

  .niz-upgrade-copy strong{
    font-size:12px!important;
  }

  .niz-upgrade-copy small{
    display:none!important;
  }

  .niz-upgrade-arrow{
    font-size:19px!important;
  }
}

/* =========================================================
   NIZHEALTH PAGE ARRANGEMENT — CONSISTENT RHYTHM
   ========================================================= */

main.container{
  padding-top:32px!important;
  padding-bottom:72px!important;
}

main.container > section,
main.container > .grid,
main.container > .health-tabs,
main.container > .smart-summary-grid{
  margin-top:24px;
  margin-bottom:24px;
}

main.container > section:first-child,
main.container > .hero:first-child,
main.container > .page-heading:first-child{
  margin-top:0;
}

/* Page headings */
.page-heading,
.section-heading,
.section-head{
  margin-bottom:18px!important;
}

.page-heading h1,
.page-heading h2,
.section-heading h1,
.section-heading h2,
.section-head h1,
.section-head h2{
  margin-bottom:8px!important;
}

.page-heading p,
.section-heading p,
.section-head p{
  max-width:760px;
  color:var(--nh-muted)!important;
}

/* Consistent grids */
.grid{
  row-gap:20px!important;
  column-gap:20px!important;
}

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

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

/* Generic section separation */
main.container > section + section{
  margin-top:28px;
}

/* Dashboard */
.dashboard-page .hero{
  margin-bottom:28px!important;
}

.dashboard-page .stat{
  min-height:150px;
}

.dashboard-page .nizhealth-referral-card{
  margin-top:28px!important;
}

/* Health tracking */
.health-tracking-page .health-tabs{
  margin-bottom:20px!important;
}

.health-tab-panel{
  margin-bottom:24px!important;
}

/* AI */
.ai-page{
  max-width:1000px!important;
}

.ai-page .ai-hero{
  margin-bottom:24px!important;
}

.ai-chat-panel{
  border-radius:20px!important;
  overflow:hidden;
}

/* Medical file */
.medical-page .medical-hero{
  margin-bottom:24px!important;
}

.medical-overview{
  margin-bottom:24px!important;
}

.medical-section{
  margin-top:24px!important;
}

/* Food */
.food-page .food-hero{
  margin-bottom:24px!important;
}

.food-form-card,
.meal-history{
  margin-top:24px!important;
}

/* Reminders */
main.container:has(.smart-summary-grid) .hero{
  margin-bottom:24px!important;
}

.smart-summary-grid{
  gap:18px!important;
}

/* Profile */
.profile-account-card,
.profile-panel{
  margin-top:24px!important;
}

/* Documents */
.document-stats{
  margin-top:24px!important;
  margin-bottom:24px!important;
}

.document-upload-panel{
  margin-bottom:24px!important;
}

/* Health Overview custom layout */
.health-signals,
.ho-hero,
.ho-section{
  width:100%;
}

.ho-hero{
  margin-bottom:28px!important;
}

.ho-section{
  margin-top:24px!important;
  margin-bottom:24px!important;
}

.health-signals{
  margin-bottom:28px!important;
}

.health-signals .section-heading{
  margin-bottom:16px!important;
}

/* Don't let long content create awkward horizontal overflow */
main.container img,
main.container svg,
main.container video{
  max-width:100%;
}

.table-responsive,
.table-wrap{
  max-width:100%;
}

/* Mobile arrangement */
@media(max-width:991px){
  main.container{
    padding-top:24px!important;
    padding-bottom:52px!important;
  }

  .grid.cards,
  .grid.two{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  main.container > section,
  main.container > .grid{
    margin-top:20px;
    margin-bottom:20px;
  }
}

@media(max-width:767px){
  main.container{
    padding-top:20px!important;
    padding-bottom:44px!important;
  }

  .grid.cards,
  .grid.two{
    grid-template-columns:1fr!important;
  }

  main.container > section + section{
    margin-top:20px;
  }

  .dashboard-page .stat{
    min-height:0;
  }

  .page-heading,
  .section-heading,
  .section-head{
    margin-bottom:14px!important;
  }
}

/* =========================================================
   NIZHEALTH APP SHELL — SIDEBAR / CONTENT RELATIONSHIP
   ========================================================= */

:root{
  --niz-sidebar-width:274px;
  --niz-content-gutter:28px;
}

.niz-sidebar{
  background:
    linear-gradient(180deg,#061426 0%,#04101f 100%)!important;
  border-right:1px solid rgba(98,190,240,.14)!important;
  box-shadow:8px 0 30px rgba(0,0,0,.18)!important;
}

.niz-sidebar-header{
  min-height:72px!important;
  padding:12px 14px!important;
  border-bottom:1px solid rgba(98,190,240,.10)!important;
}

.niz-sidebar-brand img{
  border-radius:11px;
}

.niz-sidebar-brand strong{
  color:#f5f9ff!important;
  font-size:14px!important;
}

.niz-sidebar-brand small{
  color:#7798b3!important;
}

.niz-sidebar-user{
  margin:14px 12px!important;
  background:rgba(50,155,240,.055)!important;
  border-color:rgba(98,190,240,.14)!important;
}

.niz-sidebar-section{
  margin-bottom:10px!important;
}

.niz-sidebar-section-title{
  color:#6d91ad!important;
  font-size:9px!important;
  padding:10px 11px 6px!important;
}

.niz-sidebar-link{
  min-height:44px!important;
  margin:2px 0!important;
  padding:10px 12px!important;
  border-radius:11px!important;
}

.niz-sidebar-link:hover{
  background:rgba(50,155,240,.09)!important;
}

.niz-sidebar-link.active{
  background:linear-gradient(
    90deg,
    rgba(50,155,240,.19),
    rgba(50,155,240,.07)
  )!important;
  box-shadow:inset 3px 0 #329bf0!important;
}

.niz-sidebar-link-icon{
  color:#72c9ff!important;
}

.niz-sidebar-footer{
  background:rgba(2,8,23,.35)!important;
}

/* Main application area */
@media(min-width:992px){
  body{
    padding-left:var(--niz-sidebar-width)!important;
  }

  main.container{
    width:min(
      calc(100% - (var(--niz-content-gutter) * 2)),
      1180px
    )!important;
    max-width:1180px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
}

/* Keep the upgrade banner inside the application area */
.niz-upgrade-banner{
  left:calc(var(--niz-sidebar-width) + 20px)!important;
  right:20px!important;
}

@media(max-width:991px){
  .niz-upgrade-banner{
    left:12px!important;
    right:12px!important;
  }

  main.container{
    width:calc(100% - 24px)!important;
    max-width:none!important;
  }
}

/* Mobile sidebar */
@media(max-width:991px){
  .niz-sidebar{
    box-shadow:14px 0 45px rgba(0,0,0,.42)!important;
  }

  .niz-mobile-topbar{
    background:rgba(4,15,29,.97)!important;
    box-shadow:0 5px 20px rgba(0,0,0,.18)!important;
  }

  .niz-mobile-menu-button,
  .niz-mobile-notification{
    min-width:42px;
    min-height:42px;
  }

  .niz-mobile-menu-button{
    background:rgba(50,155,240,.09)!important;
    border:1px solid rgba(98,190,240,.12)!important;
  }
}

/* Prevent old navbar/offcanvas styles from visually competing */
body > nav.health-navbar{
  display:none!important;
}

.health-offcanvas{
  display:none!important;
}

/* =========================================================
   NIZHEALTH COMPONENT POLISH
   ========================================================= */

/* Cards */
.panel,
.card,
.tile,
.feature,
.metric,
.info,
.trust,
.stats-card,
.insight-card,
.food-card,
.medical-card,
.documents-card,
.support-card{
  position:relative;
  overflow:hidden;
}

.panel::before,
.card::before,
.tile::before,
.stats-card::before,
.insight-card::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    radial-gradient(
      circle at 100% 0%,
      rgba(50,155,240,.055),
      transparent 34%
    );
}

/* Stat cards */
.stat,
.metric,
.stats-card{
  min-height:120px;
}

.stat strong,
.metric strong,
.stats-card strong{
  color:#f7fbff!important;
}

.stat small,
.metric small,
.stats-card small{
  color:#88a7be!important;
}

/* Section action rows */
.section-head,
.section-heading{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.section-head > :last-child,
.section-heading > :last-child{
  flex-shrink:0;
}

/* Status / badges */
.badge,
.status,
.tag,
.chip{
  border-radius:999px!important;
  font-weight:700!important;
}

.badge{
  border:1px solid rgba(98,190,240,.18);
}

/* Links inside cards */
.panel a,
.card a,
.tile a,
.stats-card a,
.insight-card a{
  color:#70caff;
}

.panel a:hover,
.card a:hover,
.tile a:hover,
.stats-card a:hover,
.insight-card a:hover{
  color:#a7e0ff;
}

/* Action groups */
.actions,
.action-row,
.button-row,
.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
}

/* Lists */
.panel ul,
.panel ol,
.card ul,
.card ol{
  padding-left:20px;
}

.panel li,
.card li{
  margin-bottom:6px;
}

/* Dividers */
hr{
  border-color:rgba(98,170,220,.13)!important;
  opacity:1!important;
}

/* Code / technical values */
code{
  color:#8ed6ff!important;
  background:#06172a!important;
  border:1px solid rgba(98,190,240,.12);
  border-radius:6px;
  padding:2px 6px;
}

/* Search / filters */
.search,
.filters,
.filter-bar{
  background:rgba(7,24,44,.72);
  border:1px solid var(--nh-border);
  border-radius:16px;
  padding:14px;
}

/* File / document rows */
.document-row,
.file-row,
.history-row{
  border-color:rgba(98,170,220,.13)!important;
}

.document-row:hover,
.file-row:hover,
.history-row:hover{
  background:rgba(50,155,240,.055)!important;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible{
  outline:2px solid #62c8ff!important;
  outline-offset:2px;
}

/* Mobile action stacking */
@media(max-width:600px){
  .section-head,
  .section-heading{
    display:block;
  }

  .section-head > :last-child,
  .section-heading > :last-child{
    margin-top:12px;
  }

  .actions,
  .action-row,
  .button-row,
  .form-actions{
    width:100%;
  }

  .actions .btn,
  .action-row .btn,
  .button-row .btn,
  .form-actions .btn{
    flex:1 1 auto;
  }
}

/* =========================================================
   DASHBOARD — PREMIUM APP LAYOUT
   ========================================================= */

.dashboard-page{
  max-width:1180px!important;
}

.dashboard-page > .hero{
  min-height:230px;
  display:flex;
  align-items:center;
  padding:38px!important;
  margin-bottom:28px!important;
}

.dashboard-page > .hero h1{
  max-width:760px;
  margin-bottom:12px!important;
}

.dashboard-page > .hero p{
  max-width:700px;
  font-size:15px;
  line-height:1.7;
}

/* Dashboard stat row */
.dashboard-page .grid.cards{
  margin-top:0!important;
  margin-bottom:30px!important;
}

.dashboard-page .stat{
  min-height:155px!important;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px!important;
  border-radius:18px!important;
}

.dashboard-page .stat .icon{
  width:44px!important;
  height:44px!important;
  border-radius:12px;
  background:rgba(50,155,240,.10);
  margin-bottom:14px!important;
}

.dashboard-page .stat h3,
.dashboard-page .stat strong{
  font-size:24px;
  line-height:1.15;
}

/* Main dashboard sections */
.dashboard-page > section:not(.hero){
  margin-top:28px!important;
}

.dashboard-page .section-head{
  padding:0 2px;
}

/* Referral / promotional card */
.dashboard-page .nizhealth-referral-card{
  background:
    radial-gradient(circle at 95% 10%,rgba(50,155,240,.14),transparent 32%),
    linear-gradient(145deg,#071c34,#0a2949)!important;
  border-color:rgba(98,190,240,.24)!important;
}

/* Dashboard two-column areas */
.dashboard-page .grid.two{
  align-items:stretch;
}

.dashboard-page .grid.two > section{
  min-width:0;
}

/* Make dashboard cards feel intentional */
.dashboard-page .panel{
  min-width:0;
}

.dashboard-page .panel h2,
.dashboard-page .panel h3{
  line-height:1.25;
}

/* Dashboard links / quick actions */
.dashboard-page .panel .btn{
  margin-top:4px;
}

/* Mobile dashboard */
@media(max-width:767px){
  .dashboard-page > .hero{
    min-height:0;
    padding:26px 20px!important;
  }

  .dashboard-page > .hero h1{
    font-size:30px!important;
  }

  .dashboard-page > .hero p{
    font-size:14px;
  }

  .dashboard-page .grid.cards{
    margin-bottom:22px!important;
  }

  .dashboard-page .stat{
    min-height:125px!important;
    padding:18px!important;
  }

  .dashboard-page > section:not(.hero){
    margin-top:22px!important;
  }
}

/* =========================================================
   HEALTH OVERVIEW — INTELLIGENCE DASHBOARD
   ========================================================= */

.health-overview,
.health-overview-page{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

/* Hero */
.ho-hero{
  position:relative;
  overflow:hidden;
  padding:34px!important;
  margin-bottom:30px!important;
  border-radius:22px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.15),transparent 35%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.20)!important;
}

.ho-hero h1{
  color:#f7fbff!important;
  font-size:32px;
  line-height:1.15;
  margin-bottom:10px!important;
}

.ho-hero p{
  max-width:720px;
  color:#a9c0d4!important;
  line-height:1.7;
}

/* Sections */
.ho-section{
  margin:0 0 30px!important;
}

.ho-section > h2,
.ho-section > h3{
  margin-bottom:14px!important;
  color:#f3f8fd!important;
}

/* Latest measurements / intelligence cards */
.ho-grid,
.ho-cards,
.health-signals{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.health-signals{
  margin:24px 0 30px!important;
}

.health-signals > *,
.ho-grid > *,
.ho-cards > *{
  min-width:0;
}

/* Signal cards */
.health-signal,
.signal-card,
.ho-card{
  min-height:140px;
  padding:20px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#071a31,#081f38)!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.health-signal:hover,
.signal-card:hover,
.ho-card:hover{
  border-color:rgba(98,190,240,.30)!important;
  transform:translateY(-1px);
  transition:.18s ease;
}

.health-signal strong,
.signal-card strong{
  color:#f6fbff!important;
  font-size:18px;
}

.health-signal small,
.signal-card small{
  color:#8faec5!important;
  line-height:1.5;
}

/* Measurement cards */
.ho-measurement,
.ho-metric,
.measurement-card{
  min-height:125px;
  padding:20px!important;
  border-radius:17px!important;
}

/* Tables / history */
.ho-section table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(98,170,220,.14);
  border-radius:15px;
}

.ho-section th{
  background:#06172a!important;
  color:#91b2c9!important;
}

.ho-section td{
  color:#d9e8f3!important;
}

/* Empty / unavailable signals */
.health-signal.muted,
.signal-card.muted,
.ho-card.muted{
  opacity:.82;
}

/* Health Overview responsive */
@media(max-width:900px){
  .health-signals,
  .ho-grid,
  .ho-cards{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .ho-hero{
    padding:25px 20px!important;
    border-radius:18px!important;
  }

  .ho-hero h1{
    font-size:27px;
  }

  .health-signals,
  .ho-grid,
  .ho-cards{
    grid-template-columns:1fr;
  }

  .health-signal,
  .signal-card,
  .ho-card{
    min-height:0;
  }

  .ho-section{
    margin-bottom:24px!important;
  }
}

/* =========================================================
   HEALTH TRACKING — UNIFIED DATA ENTRY
   ========================================================= */

.health-tracking-page{
  max-width:1180px!important;
}

.health-tracking-page .page-heading{
  margin-bottom:24px!important;
}

.health-tracking-page .page-heading h1{
  font-size:32px;
  line-height:1.15;
  color:#f6fbff!important;
}

.health-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px!important;
  margin-bottom:24px!important;
  background:#06172a!important;
  border:1px solid rgba(98,190,240,.14)!important;
  border-radius:16px!important;
}

.health-tabs a,
.health-tabs button{
  min-height:44px;
  padding:10px 15px!important;
  border-radius:11px!important;
  border:1px solid transparent!important;
  background:transparent!important;
  color:#91aec5!important;
  font-weight:700;
  text-decoration:none;
}

.health-tabs a:hover,
.health-tabs button:hover,
.health-tabs .active{
  color:#f5fbff!important;
  background:rgba(50,155,240,.13)!important;
  border-color:rgba(98,190,240,.16)!important;
}

/* Tracking forms */
.health-tab-panel,
.record-form{
  padding:24px!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.health-tab-panel h2,
.record-form h2,
.health-tab-panel h3,
.record-form h3{
  color:#f5faff!important;
  margin-bottom:8px!important;
}

.health-tab-panel p,
.record-form p{
  color:#91abc0!important;
}

/* Form fields */
.health-tracking-page label{
  color:#cfe2ef!important;
  font-weight:650;
}

.health-tracking-page input,
.health-tracking-page select,
.health-tracking-page textarea{
  background:#041326!important;
  border-color:rgba(98,170,220,.20)!important;
  color:#f5faff!important;
}

.health-tracking-page input:focus,
.health-tracking-page select:focus,
.health-tracking-page textarea:focus{
  border-color:#329bf0!important;
  box-shadow:0 0 0 3px rgba(50,155,240,.10)!important;
}

/* Recorded data */
.health-tracking-page table{
  border:1px solid rgba(98,170,220,.14);
  border-radius:15px;
  overflow:hidden;
}

.health-tracking-page th{
  background:#06172a!important;
  color:#8eacc3!important;
}

.health-tracking-page td{
  color:#dceaf4!important;
}

/* Mobile */
@media(max-width:600px){
  .health-tracking-page .page-heading h1{
    font-size:28px;
  }

  .health-tabs{
    overflow-x:auto;
    flex-wrap:nowrap;
    scrollbar-width:none;
  }

  .health-tabs::-webkit-scrollbar{
    display:none;
  }

  .health-tabs a,
  .health-tabs button{
    flex:0 0 auto;
  }

  .health-tab-panel,
  .record-form{
    padding:19px!important;
  }
}

/* =========================================================
   PULSE — MEASUREMENT EXPERIENCE
   ========================================================= */

.pulse-page{
  max-width:1180px!important;
}

.pulse-page .hero,
.pulse-hero{
  padding:34px!important;
  border-radius:22px!important;
  margin-bottom:28px!important;
  background:
    radial-gradient(circle at 88% 15%,rgba(98,230,224,.10),transparent 30%),
    linear-gradient(145deg,#071b32,#061426)!important;
  border:1px solid rgba(98,190,240,.20)!important;
}

.pulse-page .hero h1,
.pulse-hero h1{
  color:#f7fbff!important;
  font-size:32px;
}

.pulse-page .hero p,
.pulse-hero p{
  color:#9db8cd!important;
  line-height:1.7;
}

/* Pulse metrics */
.pulse-stats,
.pulse-grid,
.pulse-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:28px!important;
}

.pulse-stat,
.pulse-metric{
  min-height:135px;
  padding:22px!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,#071a31,#08213b)!important;
  border:1px solid rgba(98,190,240,.15)!important;
}

.pulse-stat strong,
.pulse-metric strong{
  display:block;
  color:#f7fbff!important;
  font-size:26px;
  line-height:1.1;
  margin:7px 0;
}

.pulse-stat small,
.pulse-metric small{
  color:#8faec5!important;
}

/* Recording area */
.pulse-record,
.pulse-form,
.pulse-card{
  padding:24px!important;
  border-radius:19px!important;
  background:#07182c!important;
  border:1px solid rgba(98,190,240,.15)!important;
}

.pulse-page input,
.pulse-page select,
.pulse-page textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

/* History */
.pulse-history,
.pulse-page table{
  border-radius:16px!important;
  overflow:hidden;
}

.pulse-page th{
  background:#06172a!important;
  color:#8eacc3!important;
}

.pulse-page td{
  color:#dceaf4!important;
}

/* Mobile */
@media(max-width:900px){
  .pulse-stats,
  .pulse-grid,
  .pulse-metrics{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px){
  .pulse-page .hero,
  .pulse-hero{
    padding:25px 20px!important;
    border-radius:18px!important;
  }

  .pulse-page .hero h1,
  .pulse-hero h1{
    font-size:28px;
  }

  .pulse-stats,
  .pulse-grid,
  .pulse-metrics{
    grid-template-columns:1fr;
  }

  .pulse-stat,
  .pulse-metric{
    min-height:110px;
  }

  .pulse-record,
  .pulse-form,
  .pulse-card{
    padding:19px!important;
  }
}

/* =========================================================
   PULSE — FOCUSED HEALTH SIGNAL
   ========================================================= */

.pulse-page,
.pulse-container{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.pulse-hero{
  padding:32px!important;
  border-radius:21px!important;
  margin-bottom:26px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(98,230,224,.10),transparent 32%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.pulse-card,
.pulse-stat,
.pulse-panel{
  padding:21px!important;
  border-radius:17px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.pulse-stat strong{
  color:#f6fbff!important;
  font-size:25px!important;
}

.pulse-stat small{
  color:#8da9bf!important;
}

.pulse-history,
.pulse-panel table{
  overflow:hidden;
  border-radius:15px;
}

.pulse-panel th{
  background:#06172a!important;
  color:#91aec4!important;
}

.pulse-panel td{
  color:#dceaf4!important;
}

/* =========================================================
   AI COMPANION — CHAT EXPERIENCE
   ========================================================= */

.ai-page{
  max-width:980px!important;
}

.ai-hero{
  padding:30px!important;
  margin-bottom:22px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.13),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.ai-hero h1{
  color:#f7fbff!important;
}

.ai-hero p{
  color:#9fb8cc!important;
  line-height:1.7;
}

.ai-chat-panel{
  overflow:hidden;
  border-radius:20px!important;
  background:#06172a!important;
  border:1px solid rgba(98,190,240,.17)!important;
  box-shadow:0 15px 45px rgba(0,0,0,.18)!important;
}

.ai-chat-panel input,
.ai-chat-panel textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

.ai-chat-panel input:focus,
.ai-chat-panel textarea:focus{
  border-color:#329bf0!important;
  box-shadow:0 0 0 3px rgba(50,155,240,.10)!important;
}

.ai-message,
.chat-message,
.message{
  border-radius:16px!important;
  line-height:1.65;
}

.ai-message.user,
.chat-message.user,
.message.user{
  background:linear-gradient(135deg,#0b4775,#0b5d91)!important;
  color:#fff!important;
}

.ai-message.assistant,
.chat-message.assistant,
.message.assistant{
  background:#0a2039!important;
  color:#dceaf4!important;
  border:1px solid rgba(98,190,240,.12)!important;
}

@media(max-width:600px){
  .pulse-hero,
  .ai-hero{
    padding:23px 19px!important;
    border-radius:18px!important;
  }

  .pulse-stat,
  .pulse-card,
  .pulse-panel{
    padding:18px!important;
  }
}

/* =========================================================
   MEDICAL FILE — RECORD CENTRE
   ========================================================= */

.medical-page{
  max-width:1180px!important;
}

.medical-hero{
  padding:32px!important;
  margin-bottom:26px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.13),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.medical-hero h1{
  color:#f7fbff!important;
  font-size:32px;
}

.medical-hero p{
  max-width:720px;
  color:#9fb8cc!important;
  line-height:1.7;
}

.medical-overview,
.medical-section{
  margin-top:24px!important;
  padding:23px!important;
  border-radius:19px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.medical-section h2,
.medical-section h3,
.medical-overview h2,
.medical-overview h3{
  color:#f5faff!important;
}

.medical-section p,
.medical-overview p{
  color:#9eb7ca!important;
  line-height:1.65;
}

.medical-page table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(98,170,220,.13);
  border-radius:14px;
}

.medical-page th{
  background:#06172a!important;
  color:#91aec5!important;
}

.medical-page td{
  color:#dceaf4!important;
}

.medical-page input,
.medical-page select,
.medical-page textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

/* =========================================================
   DOCUMENTS — PRIVATE FILE CABINET
   ========================================================= */

.documents-page{
  max-width:1180px!important;
}

.documents-page > .hero{
  padding:32px!important;
  margin-bottom:26px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.12),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
}

.document-stats{
  gap:16px!important;
  margin-bottom:24px!important;
}

.document-stats > *{
  min-height:125px;
  padding:20px!important;
  border-radius:17px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.document-upload-panel{
  padding:23px!important;
  border-radius:19px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.document-upload-panel input[type="file"]{
  background:#041326!important;
  border-color:rgba(98,170,220,.20)!important;
  color:#dceaf4!important;
}

.documents-page .document-row,
.documents-page .file-row{
  display:flex;
  align-items:center;
  gap:14px;
  padding:15px 17px!important;
  border:1px solid rgba(98,170,220,.12)!important;
  border-radius:14px!important;
  background:rgba(6,23,42,.72)!important;
  margin-bottom:9px;
}

.documents-page .document-row:hover,
.documents-page .file-row:hover{
  border-color:rgba(98,190,240,.25)!important;
  background:rgba(50,155,240,.06)!important;
}

@media(max-width:600px){
  .medical-hero,
  .medical-overview,
  .medical-section,
  .documents-page > .hero,
  .document-upload-panel{
    padding:20px!important;
    border-radius:17px!important;
  }

  .medical-hero h1{
    font-size:28px;
  }

  .documents-page .document-row,
  .documents-page .file-row{
    align-items:flex-start;
    flex-direction:column;
  }
}

/* =========================================================
   FOOD & NUTRITION — DAILY LOG
   ========================================================= */

.food-page{
  max-width:1180px!important;
}

.food-page > .food-hero{
  padding:32px!important;
  margin-bottom:26px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(98,230,224,.10),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.food-hero h1{
  color:#f7fbff!important;
}

.food-hero p{
  color:#9fb8cc!important;
  line-height:1.7;
}

.food-form-card,
.meal-history{
  padding:23px!important;
  border-radius:19px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.food-form-card h2,
.meal-history h2,
.meal-history h3{
  color:#f5faff!important;
}

.food-page input,
.food-page select,
.food-page textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

.meal-history table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(98,170,220,.13);
  border-radius:14px;
}

.meal-history th{
  background:#06172a!important;
  color:#91aec5!important;
}

.meal-history td{
  color:#dceaf4!important;
}

/* =========================================================
   REMINDERS — ROUTINE CENTRE
   ========================================================= */

.reminders-page{
  max-width:1180px!important;
}

.smart-summary-grid{
  gap:16px!important;
  margin:22px 0 28px!important;
}

.smart-summary-grid > *{
  min-height:125px;
  padding:20px!important;
  border-radius:17px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.reminders-page .hero{
  padding:32px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.13),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.reminders-page .panel{
  padding:22px!important;
  border-radius:18px!important;
  background:#071a31!important;
  border-color:rgba(98,190,240,.14)!important;
}

.reminders-page .panel h2,
.reminders-page .panel h3{
  color:#f5faff!important;
}

.reminders-page input,
.reminders-page select,
.reminders-page textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

.reminders-page .reminder,
.reminders-page .routine,
.reminders-page .reminder-card{
  padding:16px!important;
  margin-bottom:10px;
  border-radius:15px!important;
  background:#06172a!important;
  border:1px solid rgba(98,170,220,.13)!important;
}

.reminders-page .reminder:hover,
.reminders-page .routine:hover,
.reminders-page .reminder-card:hover{
  border-color:rgba(98,190,240,.25)!important;
}

@media(max-width:600px){
  .food-page > .food-hero,
  .food-form-card,
  .meal-history,
  .reminders-page .hero,
  .reminders-page .panel{
    padding:20px!important;
    border-radius:17px!important;
  }
}

/* =========================================================
   PROFILE — ACCOUNT CENTRE
   ========================================================= */

.profile-hero{
  padding:32px!important;
  margin-bottom:24px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.13),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.profile-hero h1{
  color:#f7fbff!important;
}

.profile-hero p{
  color:#9fb8cc!important;
}

.profile-account-card,
.profile-panel{
  padding:23px!important;
  margin-top:20px!important;
  border-radius:19px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.profile-account-card h2,
.profile-panel h2,
.profile-panel h3{
  color:#f5faff!important;
}

.profile-panel label{
  color:#cfe2ef!important;
  font-weight:650;
}

.profile-panel input,
.profile-panel select,
.profile-panel textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

/* =========================================================
   SUBSCRIPTION — UPGRADE CENTRE
   ========================================================= */

.subscription-page,
.upgrade-page{
  max-width:1180px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.subscription-page .hero,
.upgrade-page .hero{
  padding:32px!important;
  margin-bottom:26px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(50,155,240,.16),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.20)!important;
}

.subscription-page .plan,
.subscription-page .plan-card,
.upgrade-page .plan,
.upgrade-page .plan-card{
  position:relative;
  padding:24px!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,#071a31,#06172a)!important;
  border:1px solid rgba(98,190,240,.15)!important;
}

.subscription-page .plan:hover,
.subscription-page .plan-card:hover{
  border-color:rgba(98,190,240,.32)!important;
  transform:translateY(-2px);
  transition:.18s ease;
}

.subscription-page .price,
.subscription-page .amount{
  color:#f7fbff!important;
}

.subscription-page .price strong,
.subscription-page .amount strong{
  color:#70caff!important;
}

.subscription-page .feature,
.subscription-page li{
  color:#b9cfdf!important;
}

/* =========================================================
   CUSTOMER CARE / SUPPORT
   ========================================================= */

.support-page,
.customer-care-page{
  max-width:1000px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}

.support-page .hero,
.customer-care-page .hero{
  padding:32px!important;
  margin-bottom:26px!important;
  border-radius:21px!important;
  background:
    radial-gradient(circle at 90% 10%,rgba(98,230,224,.10),transparent 34%),
    linear-gradient(145deg,#071a31,#061426)!important;
  border:1px solid rgba(98,190,240,.18)!important;
}

.support-page .panel,
.customer-care-page .panel{
  padding:23px!important;
  margin-top:18px!important;
  border-radius:19px!important;
  background:#071a31!important;
  border:1px solid rgba(98,190,240,.14)!important;
}

.support-page input,
.support-page textarea,
.customer-care-page input,
.customer-care-page textarea{
  background:#041326!important;
  color:#f5faff!important;
  border-color:rgba(98,170,220,.20)!important;
}

@media(max-width:600px){
  .profile-hero,
  .profile-account-card,
  .profile-panel,
  .subscription-page .hero,
  .upgrade-page .hero,
  .subscription-page .plan,
  .subscription-page .plan-card,
  .support-page .hero,
  .customer-care-page .hero,
  .support-page .panel,
  .customer-care-page .panel{
    padding:20px!important;
    border-radius:17px!important;
  }
}



/* ==========================================================
   NIZHEALTH DESIGN SYSTEM — NAVY / SKY / CYAN
   Shared visual layer; preserves existing page structure.
   ========================================================== */
:root {
  --nh-dark: #020817;
  --nh-surface: #07182c;
  --nh-surface-2: #0a2039;
  --nh-surface-3: #0d2947;
  --nh-border: rgba(125, 190, 230, .22);
  --nh-border-strong: rgba(56, 189, 248, .58);
  --nh-text: #f5f9ff;
  --nh-text-soft: #d7e8f5;
  --nh-muted: #a7bdd2;
  --nh-blue: #38a7ff;
  --nh-cyan: #62e6e0;
  --nh-focus: #7dd3fc;
  --nh-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  --nh-shadow-hover: 0 24px 56px rgba(0, 0, 0, .38);
  --nh-radius: 20px;
  --nh-motion: 180ms ease;
}

/* Readable dark surfaces with cyan/blue atmosphere */
body {
  color: var(--nh-text);
}
.panel, .card, .tile, .feature, .metric, .info, .trust,
.stats-card, .insight-card, .food-card, .medical-card,
.documents-card, .support-card, .medical-overview-card {
  position: relative;
  border: 1px solid var(--nh-border);
  border-radius: var(--nh-radius);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(56,189,248,.065), transparent 52%),
    linear-gradient(145deg, var(--nh-surface), #081d36);
  color: var(--nh-text);
  box-shadow: var(--nh-shadow);
  transition:
    border-color var(--nh-motion),
    box-shadow var(--nh-motion),
    background-color var(--nh-motion);
}
.panel p, .card p, .tile p, .feature p, .info p {
  color: var(--nh-text-soft);
}
.muted, .text-muted, .section-intro, p.muted {
  color: var(--nh-muted);
}

/* Links should look like links, not ordinary body text */
a:not(.btn):not(.health-nav-link):not(.health-mobile-link) {
  text-decoration-color: rgba(98,230,224,.48);
  text-underline-offset: .22em;
  transition: color var(--nh-motion), text-decoration-color var(--nh-motion);
}
a:not(.btn):not(.health-nav-link):not(.health-mobile-link):hover {
  color: var(--nh-cyan);
  text-decoration-color: currentColor;
}

/* Buttons: one consistent action language */
.btn, button, input[type="button"], input[type="submit"],
input[type="reset"], .btn-primary, .btn-blue, .btn-secondary,
.btn-outline, .btn-danger {
  min-height: 44px;
  border-radius: 13px;
  font-weight: 700;
  transition:
    transform var(--nh-motion),
    box-shadow var(--nh-motion),
    border-color var(--nh-motion),
    background-color var(--nh-motion),
    filter var(--nh-motion);
}
.btn-primary, .btn-blue, button.btn-primary,
input[type="submit"], .btn:not(.secondary):not(.btn-secondary):not(.btn-outline):not(.btn-danger) {
  background: linear-gradient(115deg, #087bc1, #258fe8 58%, #27c8d4);
  border: 1px solid rgba(125,211,252,.5);
  color: #fff;
  box-shadow: 0 8px 22px rgba(14,165,233,.18);
}
.btn-secondary, .btn-outline, .btn.secondary {
  background: rgba(8, 31, 54, .92);
  border: 1px solid rgba(98, 230, 224, .42);
  color: #e4f7ff;
}
.btn-danger, button.btn-danger {
  background: linear-gradient(120deg, #7f1d2d, #c24150);
  border: 1px solid rgba(255,129,121,.5);
  color: #fff;
}
.btn:active, button:active, input[type="button"]:active,
input[type="submit"]:active {
  transform: translateY(1px) scale(.985);
  filter: brightness(.94);
}
.btn:focus-visible, button:focus-visible, a:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--nh-focus);
  outline-offset: 3px;
}
@media (hover:hover) and (pointer:fine) {
  .btn:hover, button:hover, input[type="button"]:hover,
  input[type="submit"]:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 12px 28px rgba(14,165,233,.22);
  }
}

/* Clickable cards: clear cyan edge and action cue.
   Static information cards remain calmer and do not lift. */
a.card, a.tile, a.feature, a.metric, a.info,
button.card, button.tile, button.feature,
[role="button"].card, [role="button"].tile,
.clickable-card, .interactive-card, .feature-link,
.tile[href], .card[href] {
  cursor: pointer;
  border-color: rgba(56,189,248,.62);
  background:
    linear-gradient(135deg, rgba(14,165,233,.105), transparent 58%),
    linear-gradient(145deg, #09213a, #07182c);
  box-shadow:
    inset 3px 0 0 rgba(56,189,248,.82),
    0 12px 32px rgba(0,0,0,.24);
}
@media (hover:hover) and (pointer:fine) {
  a.card:hover, a.tile:hover, a.feature:hover, a.metric:hover,
  a.info:hover, button.card:hover, button.tile:hover,
  button.feature:hover, [role="button"].card:hover,
  [role="button"].tile:hover, .clickable-card:hover,
  .interactive-card:hover, .feature-link:hover,
  .tile[href]:hover, .card[href]:hover {
    border-color: var(--nh-cyan);
    box-shadow:
      inset 3px 0 0 var(--nh-cyan),
      0 0 0 1px rgba(98,230,224,.14),
      var(--nh-shadow-hover);
    transform: translateY(-3px);
  }
}
a.card:active, a.tile:active, .clickable-card:active,
.interactive-card:active, .feature-link:active {
  transform: translateY(0) scale(.99);
}
a.card:focus-visible, a.tile:focus-visible, .clickable-card:focus-visible,
.interactive-card:focus-visible, .feature-link:focus-visible {
  outline: 3px solid var(--nh-cyan);
  outline-offset: 4px;
}

/* A plain informational card should not pretend to be a control */
.info-card, .static-card, .read-only-card {
  cursor: default;
  border-color: var(--nh-border);
}

/* Cyan accents for headings, badges and status indicators */
.eyebrow, .section-label, .section-kicker {
  color: var(--nh-cyan);
  letter-spacing: .12em;
}
.badge, .pill, .status-badge {
  border-color: rgba(98,230,224,.35);
}
hr, .divider {
  border-color: rgba(125,190,230,.18);
}

/* Soft entrance motion for major sections */
@keyframes nhRiseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
  main > .hero, main > section, .dashboard-page > .hero {
    animation: nhRiseIn 420ms ease both;
  }
}

/* Keep controls usable on narrow screens and respect reduced motion */
@media (max-width: 600px) {
  .btn, button, input[type="button"], input[type="submit"] {
    min-height: 46px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
\n
/* NIZHEALTH FORCE OVERRIDE v1 */
html body {
  background: #04101f !important;
  color: #f4f9ff !important;
  color-scheme: dark !important;
}
html body main, html body .container, html body .container-fluid,
html body .page-content, html body .main-content {
  color: #f4f9ff !important;
}
html body h1, html body h2, html body h3, html body h4,
html body p, html body label, html body li,
html body .card-title {
  color: #f4f9ff;
}
html body .text-muted, html body .form-text,
html body .text-secondary {
  color: #b5c9df !important;
}
html body .card, html body .panel, html body .info-card,
html body .stat-card, html body .insight-card,
html body .content-card, html body .modal-content {
  background: #0a1d33 !important;
  color: #f4f9ff !important;
  border: 1px solid #244866 !important;
}
html body input:not([type=checkbox]):not([type=radio]),
html body select, html body textarea {
  background: #061629 !important;
  color: #f4f9ff !important;
  border: 1px solid #5790b7 !important;
}
html body input:focus, html body select:focus,
html body textarea:focus {
  border-color: #54c7ff !important;
  box-shadow: 0 0 0 .22rem rgba(84,199,255,.2) !important;
}
html body .btn-primary, html body button[type=submit],
html body input[type=submit], html body .primary-action,
html body .cta-button {
  background: linear-gradient(115deg,#168be0,#26c8d7) !important;
  color: #04101f !important;
  border: 1px solid #77e8ff !important;
  font-weight: 800 !important;
  cursor: pointer !important;
}
html body .btn-secondary, html body .btn-outline-primary,
html body .btn-outline-secondary {
  background: #102b46 !important;
  color: #eaf8ff !important;
  border: 1px solid #59bdf6 !important;
  cursor: pointer !important;
}
html body a.card, html body a.stat-card,
html body a.action-card, html body a.tool-card,
html body .clickable-card, html body [data-href],
html body [data-clickable=true] {
  cursor: pointer !important;
  border: 1px solid #3789b7 !important;
  transition: transform .2s ease, box-shadow .2s ease,
              border-color .2s ease !important;
}
html body a.card:hover, html body a.stat-card:hover,
html body a.action-card:hover, html body a.tool-card:hover,
html body .clickable-card:hover, html body [data-href]:hover,
html body [data-clickable=true]:hover {
  border-color: #6de7ff !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(32,173,229,.2) !important;
}
html body button:hover, html body .btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}
html body a:focus-visible, html body button:focus-visible,
html body .btn:focus-visible {
  outline: 3px solid #72e8ff !important;
  outline-offset: 3px !important;
}
@keyframes nhForceEnter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
html body main > .container, html body main > .container-fluid {
  animation: nhForceEnter .38s ease-out both;
}
@media(prefers-reduced-motion:reduce) {
  html body *, html body *::before, html body *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
\n
/* =========================================================
   NIZHEALTH SHARED NAVBAR — AUTHORITATIVE DESIGN RULES
   Keep navigation consistent across desktop and mobile.
   ========================================================= */

.niz-sidebar .niz-sidebar-link {
  box-sizing: border-box;
  color: #c5d9eb !important;
  text-decoration: none !important;
  transition: background-color .18s ease, color .18s ease,
              box-shadow .18s ease;
}

.niz-sidebar .niz-sidebar-link:hover,
.niz-sidebar .niz-sidebar-link:focus-visible {
  background: rgba(56, 189, 248, .10) !important;
  color: #f5fbff !important;
}

.niz-sidebar .niz-sidebar-link.active {
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, .20),
    rgba(56, 189, 248, .07)
  ) !important;
  color: #ffffff !important;
  box-shadow: inset 3px 0 #38bdf8 !important;
}

.niz-sidebar .niz-sidebar-link-icon {
  color: #7dd3fc !important;
}

.niz-sidebar .niz-sidebar-logout {
  box-sizing: border-box;
  width: 100%;
  color: #fca5a5 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease;
}

.niz-sidebar .niz-sidebar-logout:hover,
.niz-sidebar .niz-sidebar-logout:focus-visible {
  color: #fecaca !important;
  background: rgba(239, 68, 68, .12) !important;
  border-color: rgba(248, 113, 113, .18) !important;
}

.niz-sidebar .niz-sidebar-logout:focus-visible,
.niz-sidebar .niz-sidebar-link:focus-visible,
.niz-mobile-topbar a:focus-visible,
.niz-mobile-topbar button:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

.niz-mobile-topbar {
  background: rgba(6, 17, 31, .98) !important;
  border-bottom: 1px solid rgba(125, 211, 252, .16) !important;
}

.niz-mobile-notification {
  color: #7dd3fc !important;
}

.niz-sidebar-notification-badge,
.niz-mobile-notification-badge {
  background: #ef4444 !important;
  color: #ffffff !important;
}
