
/* ================================================================
   1. RESET & CSS VARIABLES
   ================================================================ */

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

:root {
    /* Brand colours */
    --brand-green: #4B868E;
    --brand-green-dk: #2d5257;
    --brand-green-lt: #f1faf8;
    --brand-navy: #0E2C5E;
    --brand-teal-lt: #e8f6f3;
    /* Gold / CTA — same colour, two naming conventions used across pages */
    --brand-gold: #ffc629;
    --brand-gold-hov: #e0ac1a;
    --brand-cta: #ffc629; /* alias for onboarding pages */
    --brand-cta-hov: #e0ac1a; /* alias for onboarding pages */
    /* Neutrals */
    --white: #FFFFFF;
    --bg-light: #F4F7FB;
    --border: #D0DCE8;
    /* Text */
    --text-primary: #1A2E4A;
    --text-secondary: #5A708A;
    --text-muted: #8A9BB0;
    /* Feedback colours */
    --error: #D64040;
    --danger: #D64040;
    --danger-lt: #fdecea;
    /* Shadows */
    --shadow-card: 0 4px 24px rgba(14,44,94,.09); /* dashboard */
    --shadow-card-lg: 0 8px 40px rgba(14,44,94,.10); /* onboarding */
    --shadow-sm: 0 2px 8px rgba(14,44,94,.06);
    --shadow-input: 0 2px 8px rgba(14,44,94,.06);
    --shadow-modal: 0 24px 64px rgba(14,44,94,.22);
    /* Radii */
    --radius: 14px; /* dashboard cards */
    --radius-card: 16px; /* onboarding cards */
    --radius-sm: 10px; /* small cards / inputs */
    --radius-input: 8px;
    --radius-btn: 8px;
    /* Report icon palette */
    --genomind-primary-blue: #557CA6;
    --genomind-primary-teal: #4B868E;
    --genomind-primary-gold: #ffc629;
    --genomind-primary-warm: #9E9478;
    /*profile*/
    --gm-bg: #f5f7fb;
    --gm-surface: #ffffff;
    --gm-surface-alt: #f8fafc;
    --gm-border: #dbe3ef;
    --gm-text: #172033;
    --gm-muted: #667085;
    --gm-primary: #0f6d76;
    --gm-primary-soft: #e6f4f5;
    --gm-success-soft: #eaf7ef;
    --gm-warning-soft: #fff5e8;
    --gm-danger-soft: #fceaea;
    --gm-shadow: 0 10px 30px rgba(23, 32, 51, 0.08);
    --gm-radius: 18px;
}


/* ================================================================
   2. BASE: html, body, .page
   ================================================================ */

html, body {
  height: 100%;
  font-family: 'Nunito Sans', sans-serif;
  background: var(--bg-light);
  color: var(--text-primary);
}

.page {
  /*min-height: 100vh;*/
  display: flex;
  flex-direction: column;
}

.errorText {
    color: var(--error);
}

.loading {
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 48px;
    width: 48px;
    animation: rotate 0.5s infinite linear;
    border: 3px solid transparent;
    border-left-color: #4B868E;
    border-right-color: #ffc629;
    border-radius: 100%;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.input-validation-error {
    border-color: #dc3545 !important;
    padding-right: calc(1.5em + 0.75rem) !important;
    background-image: url("data:image/svg+xml,...") !important;
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}


/* ================================================================
   3. SHARED: FOOTER
   ================================================================ */

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Onboarding footer has slightly more padding */
.topnav ~ .footer,
.main ~ .footer {
  padding: 16px 40px;
}

.footer-copy { font-size: 12px; color: var(--text-muted); }

.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .18s;
}
.footer-links a:hover { color: var(--brand-green); }


/* ================================================================
   4. SHARED: TOP NAV (onboarding pages)
   ================================================================ */

.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.topnav-help {
  font-size: 13px;
  color: var(--text-secondary);
}
.topnav-help a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}
.topnav-help a:hover { text-decoration: underline; }


/* ================================================================
   5. SHARED: MAIN HEADER (dashboard pages)
   ================================================================ */
/*.navbar-nav {
    background-color: #fff;*/ /* important so shadow is visible */
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-radius: 6px;*/ /* optional, gives it a card feel */
    /*padding: 0.25rem 0.75rem;
}*/

.header .container-fluid {
    align-items: flex-start;
}
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 48px 60px;
}

/* Logo cell – spans both rows */
.header-logo {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  align-items: center;
  padding: 0 36px 0 32px;
}

/* ── Ceiling row ── */
.ceiling {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 32px;
  gap: 6px;
}

.ceiling-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 8px;
  padding: 5px 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.ceiling-btn:hover {
  border-color: var(--border);
  color: var(--text-primary);
  background: var(--bg-light);
}
.ceiling-btn.pay {
  height: 26px;
  background: var(--brand-gold);
  color: #1A2E4A;
  border-color: var(--brand-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(255,198,41,.4);
  transition: background .2s, transform .12s, box-shadow .2s;
}
.ceiling-btn.pay:hover {
  background: var(--brand-gold-hov);
  border-color: var(--brand-gold-hov);
  box-shadow: 0 6px 18px rgba(255,198,41,.45);
  transform: translateY(-1px);
}
.ceiling-btn.pay:active { transform: translateY(0); }

.ceiling-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: none;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  color: var(--text-secondary);
}
    .ceiling-icon.active {
        border-color: var(--brand-green);
        background: var(--brand-green-lt);
        color: var(--brand-green-dk);
    }
.ceiling-icon:hover {
  border-color: var(--border);
  background: var(--bg-light);
  color: var(--text-primary);
}
.ceiling-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notifications-link-badge {
    font-size: .55em;
    left: 85% !important;
}

.ceiling-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  margin: 0 .75em;
}

/*
    =====================================
    MODAL STUFF
    =====================================
*/

.modal-accent {
    height: 5px;
    background: linear-gradient(90deg, #2d5257 0%, #4B868E 60%, #7ab8bf 100%);
    border-radius: 18px 18px 0 0;
    flex-shrink: 0;
}

.modal-body {
    padding: 36px 40px 40px;
}

.modal-header-wrap {
    position: relative;
}

.modal-close {
    position: absolute;
    top: -8px;
    right: -12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    border-radius: 8px;
    transition: color .15s, background .15s;
}

    .modal-close:hover {
        color: var(--text-primary);
        background: var(--bg-light);
    }

    .modal-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
    }

.modal-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-green-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

    .modal-icon-wrap svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: var(--brand-green);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


.modal-top {
    padding: 28px 28px 0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-green-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .modal-icon svg {
        width: 26px;
        height: 26px;
        fill: none;
        stroke: var(--brand-green);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.modal-eyebrow {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.modal-title-area {
    flex: 1;
}
.modal-title {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.modal-subtitle {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

.modal-legal-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-section-label {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.modal-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.modal-section-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

.modal-disclaimer {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 28px;
}

.modal-revocation {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

    .modal-revocation a {
        color: var(--brand-green);
    }

.sig-pad-wrap {
    border: 1.5px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: var(--bg-light);
}

.sig-pad-canvas {
    display: block;
    width: 100%;
    height: 110px;
    cursor: crosshair;
}

.sig-pad-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
    transition: opacity .2s;
}

.sig-pad-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-top: 1px solid var(--border);
    background: var(--white);
    font-size: 11.5px;
    color: var(--text-muted);
}

.sig-clear-btn {
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color .15s, background .15s;
}

    .sig-clear-btn:hover {
        color: var(--text-primary);
        background: var(--bg-light);
    }

.user-chip {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    align-items: center;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: border-color .18s, background .18s;
    background: var(--white);
}
.user-chip:hover {
  border-color: var(--brand-green);
  background: var(--brand-green-lt);
}

    .user-chip.open .user-arrow {
        transform: rotate(180deg); /* arrow points up when open */
    }

.user-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

.user-name {
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.user-arrow {
    transition: transform 0.2s ease;
    font-size: 10px;
}

.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: unset !important;
    width: max-content !important;
    z-index: 100;
}

    .user-dropdown button {
        width: 100%;
        padding: 8px 16px;
        text-align: left;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 14px;
    }

        .user-dropdown button:hover {
            background-color: #f5f5f5;
        }

/* Action buttons */
.user-dropdown-action {
    width: 100%;
    padding: 8px 16px;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}

    .user-dropdown-action:hover {
        background-color: #f5f5f5;
    }

.user-dropdown-label {
    padding: 10px 16px 6px;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background .14s;
    font-family: 'Nunito', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

    .user-dropdown-item:hover {
        background: var(--bg-light);
    }

    .user-dropdown-item.active {
        color: var(--brand-green);
    }
    .user-dropdown-item .item-avatar {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: var(--brand-green);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: 800;
        color: #fff;
        flex-shrink: 0;
        opacity: .7;
    }
    .item-avatar.kid-1 {
        background: var(--genomind-primary-teal);
    }
.item-avatar.kid-2 {
    background: var(--genomind-primary-blue);
}
.item-avatar.kid-3 {
    background: var(--genomind-primary-gold);
}
.item-avatar.kid-4 {
    background: var(--genomind-primary-warm);
}

    .user-dropdown-item.active .item-avatar {
        opacity: 1;
    }

    .user-dropdown-item .item-check {
        margin-left: auto;
        width: 14px;
        height: 14px;
        fill: none;
        stroke: var(--brand-green);
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.user-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

.user-dropdown-item.logout {
    color: #c0392b;
    padding-bottom: 10px;
}

    .user-dropdown-item.logout .item-icon {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #c0392b;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.nav-link-signout {
    color: #c0392b !important;
    padding-bottom: 10px !important;
}

    .nav-link .item-icon {
        margin-right: .5em;
        width: 22px;
        height: 22px;
        fill: none;
        stroke: #c0392b;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.user-dropdown-item.profile .item-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Divider */
.user-dropdown-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 4px 0;
}

/* ── Nav row ── */
.mainnav {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  height: 60px;
}

.nav-link {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary) !important;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    transition: color .18s, border-color .18s;
    cursor: pointer;
    white-space: nowrap;
}
.nav-link:hover { color: var(--brand-green); }
    .nav-link.active {
        color: var(--brand-green) !important;
        border-color: var(--brand-green);
    }
    .nav-link.signout {
        color: #c0392b !important;
        padding-bottom: 10px !important;
    }

/*
    =========================================================
    PROFILE
    =========================================================
*/

.app-shell {
    max-width: 1500px !important;
    margin: 0 auto;
}

.sidebar-card,
.content-card,
.stats-card,
.subtle-card {
    background: var(--gm-surface);
    border: 1px solid var(--gm-border);
    border-radius: var(--gm-radius);
}

.sidebar-card,
.content-card {
    box-shadow: var(--gm-shadow);
}

.member-card {
    border: 1px solid var(--gm-border);
    border-radius: 16px;
    padding: 14px;
    background: #fff;
    transition: .2s ease;
    cursor: pointer;
}

    .member-card:hover {
        border-color: #bdd2d6;
        transform: translateY(-1px);
    }

    .member-card.active {
        background: var(--gm-primary-soft);
        border-color: #9ac8cc;
    }

.avatar-badge {
    width: 44px;
    height: 44px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0f6d76;
    background: #dff1f3;
    flex-shrink: 0;
}

    .avatar-badge.kid-1 {
        /*        background: #efeafe;
        color: #6b4de6;*/
        background: var(--genomind-primary-teal);
        color: #fff;
    }

    .avatar-badge.kid-2 {
        /*        background: #ffeedd;
        color: #c56c00;*/
        background: var(--genomind-primary-blue);
        color: #fff;
    }

    .avatar-badge.kid-3 {
        /*        background: #e7f5e9;
        color: #2f8f55;*/
        background: var(--genomind-primary-gold);
        color: #fff;
    }

    .avatar-badge.kid-4 {
        /*        background: #e7f5e9;
        color: #2f8f55;*/
        background: var(--genomind-primary-warm);
        color: #fff;
    }

.nav-pills .nav-link-profile {
    border-radius: 999px;
    border: none;
    color: var(--gm-muted);
    padding: .65rem 1rem;
    font-weight: 600;
    background-color: #fff;
}

    .nav-pills .nav-link-profile.active {
        background: var(--gm-primary);
        color: #fff;
        box-shadow: 0 8px 18px rgba(15,109,118,.18);
        border:none;
    }

.form-card {
    border: 1px solid var(--gm-border);
    border-radius: 18px;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    height: 100%;
}

.timeline-item {
    position: relative;
    padding-left: 1.25rem;
    padding-bottom: 1.1rem;
    border-left: 2px solid #dce7f0;
    margin-left: .35rem;
}

    .timeline-item:last-child {
        padding-bottom: 0;
        border-left-color: transparent;
    }

    .timeline-item::before {
        content: "";
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--gm-primary);
        position: absolute;
        left: -6px;
        top: .35rem;
        box-shadow: 0 0 0 4px #e8f4f5;
    }

.sticky-actions {
    position: sticky;
    bottom: 18px;
    z-index: 50;
}

    .sticky-actions .action-bar {
        background: rgba(255,255,255,.92);
        backdrop-filter: blur(10px);
        border: 1px solid var(--gm-border);
        border-radius: 18px;
        box-shadow: var(--gm-shadow);
    }

.badge-soft-primary {
    background: var(--gm-primary-soft);
    color: var(--gm-primary);
}
    .page-title .badge-soft-primary {
        font-size: 16px;
    }

.badge-soft-success {
    background: var(--gm-success-soft);
    color: #257a46;
}
    .page-title .badge-soft-success {
        font-size: 16px;
    }

.badge-soft-warning {
    background: var(--gm-warning-soft);
    color: #9a5b00;
}

.badge-soft-danger {
    background: var(--gm-danger-soft);
    color: #b44343;
}

.account-menu .list-group-item {
    border: 0;
    border-radius: 14px !important;
    margin-bottom: .35rem;
    padding: .85rem .95rem;
    color: #344054;
    font-weight: 500;
}

    .account-menu .list-group-item.active {
        background: var(--gm-primary-soft);
        color: var(--gm-primary);
        border: 1px solid #b2d0d3;
    }
    .account-menu .list-group-item:hover {
        background: var(--brand-green-lt);
    }

.note-box {
    border: 1px dashed #bfd1e0;
    background: #f8fbff;
    border-radius: 16px;
    padding: 1rem;
}

@media (max-width: 991.98px) {
    .sidebar-column {
        order: 1;
    }

    .content-column {
        order: 2;
    }

    .sticky-actions {
        position: static;
    }
}


/* ── PROFILE HERO CARD ───────────────────────── */
.profile-hero {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-accent {
    height: 5px;
    background: linear-gradient(90deg, #2d5257 0%, #4B868E 60%, #7ab8bf 100%);
}

.hero-body {
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-green-dk) 0%, var(--brand-green) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(75,134,142,.3);
    letter-spacing: .03em;
}

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

.hero-name {
    font-family: 'Nunito', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.hero-email {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 3px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--brand-green-lt);
    border: 1px solid #b6ddd9;
    border-radius: 20px;
    padding: 3px 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--brand-green-dk);
}

    .hero-badge .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--brand-cta);
    }

.hero-since {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ── SETTINGS CARD ───────────────────────────── */
.settings-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    /*overflow: hidden;*/
    margin-bottom: 20px;
}

/* Section header inside card */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 32px 0;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand-green-lt);
    border: 1px solid #b6ddd9;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .section-icon svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: var(--brand-green-dk);
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .section-icon.danger {
        background: var(--danger-lt);
        border-color: var(--danger-border);
    }

        .section-icon.danger svg {
            stroke: var(--danger);
        }

.section-title {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 1px;
}

/* ── TEST REFERENCE ID LIST ──────────────────── */
.test-id-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.test-id-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: 10px;
}

.test-id-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .test-id-icon svg {
        width: 15px;
        height: 15px;
        stroke: var(--text-secondary);
    }

.test-id-details {
    display: flex;
    flex-direction: column;
    gap: 1px;
    flex: 1;
    min-width: 0;
}

.test-id-value {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: .02em;
}

.test-id-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.test-id-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 20px;
    background: var(--brand-green-lt);
    border: 1px solid #b6ddd9;
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--brand-green-dk);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Height split input (ft + in) */
.height-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.height-unit-wrap {
    position: relative;
}

    .height-unit-wrap .form-input {
        padding-right: 36px;
    }

.height-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    pointer-events: none;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.input-with-icon {
    position: relative;
}

    .input-with-icon .form-input {
        padding-right: 44px;
    }

.input-eye-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    transition: color .18s;
}

    .input-eye-btn:hover {
        color: var(--brand-green);
    }

    .input-eye-btn svg {
        width: 16px;
        height: 16px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── SECURITY QUESTIONS LINK ─────────────────── */
.sec-question-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-light);
    margin-top: 18px;
    transition: border-color .18s, background .18s;
    cursor: pointer;
    text-decoration: none;
}

    .sec-question-link-row:hover {
        border-color: var(--brand-green);
        background: var(--brand-green-lt);
    }

.sec-link-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sec-link-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .sec-link-icon svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: var(--text-secondary);
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.sec-link-label {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
}

.sec-link-status {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 1px;
}

.sec-link-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── ACCOUNT SECTION ─────────────────────────── */
.account-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--bg-light);
    transition: border-color .18s, background .18s;
}

    .action-row:hover {
        border-color: #b0cdd1;
        background: var(--brand-green-lt);
    }

    .action-row.danger-row {
        background: var(--danger-lt);
        border-color: var(--danger-border);
    }

        .action-row.danger-row:hover {
            border-color: var(--danger);
            background: #fff0f0;
        }

.action-info {
    flex: 1;
}

.action-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.action-row.danger-row .action-label {
    color: var(--danger);
}

.action-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    background: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .18s, color .18s, background .18s;
}

    .btn-action svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .btn-action:hover {
        border-color: var(--brand-green);
        color: var(--brand-green);
        background: var(--brand-green-lt);
    }

    .btn-action.danger {
        border-color: var(--danger-border);
        color: var(--danger);
        background: var(--white);
    }

        .btn-action.danger:hover {
            border-color: var(--danger);
            background: var(--danger-lt);
        }

/* ── SECURE BADGE ────────────────────────────── */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

    .secure-badge svg {
        width: 13px;
        height: 13px;
        fill: none;
        stroke: var(--text-muted);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── TOGGLE SWITCHES ─────────────────────────── */
.toggle-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

    .toggle-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .toggle-row:first-child {
        padding-top: 0;
    }

    .toggle-row.disabled {
        opacity: 0.5;
        pointer-events: none;
        user-select: none;
        position: relative;
    }

        .toggle-row.disabled::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: calc(var(--radius) - 1px);
            background: rgba(244,247,251,.45);
        }

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

.toggle-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.toggle-desc {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
    line-height: 1.5;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
        position: absolute;
    }

.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background .2s;
}

    .toggle-track::after {
        content: '';
        position: absolute;
        left: 3px;
        top: 3px;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: white;
        box-shadow: 0 1px 4px rgba(0,0,0,.2);
        transition: transform .2s;
    }

/*.toggle-switch input:checked ~ .toggle-track {
    background: var(--brand-green);
}

    .toggle-switch input:checked ~ .toggle-track::after {
        transform: translateX(20px);
    }

.toggle-switch input:focus ~ .toggle-track {
    box-shadow: 0 0 0 3px rgba(75,134,142,.18);
}*/
.toggle-switch input[type="checkbox"]:checked ~ .toggle-track {
    background: var(--brand-green);
}

    .toggle-switch input[type="checkbox"]:checked ~ .toggle-track::after {
        transform: translateX(20px);
    }

.toggle-switch input[type="checkbox"]:focus ~ .toggle-track {
    box-shadow: 0 0 0 3px rgba(75,134,142,.18);
}

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.notifications-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: var(--shadow-card);
    transition: border-color .2s, box-shadow .2s, transform .18s;
    cursor: pointer;
}

    .notifications-card:hover {
        border-color: var(--brand-green);
        box-shadow: 0 8px 32px rgba(75,134,142,.14);
        transform: translateY(-2px);
    }
.notifications-indicator{
    width: 12px;
    height:12px;
}
.notifications-card[data-delivered=unread] .notifications-indicator {
    box-shadow: 1px 2px 3px #903823 inset;
    background-color: var(--danger)
}

.notifications-card[data-delivered=read] .notifications-indicator {
    box-shadow: 1px 2px 3px #798593 inset;
    background-color: #edf0f2;
}
.notifications-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
}

.notifications-card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.65;
}

.notifications-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-green);
    text-decoration: none;
}

    .notifications-card-cta svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: transform .15s;
    }

/* ================================================================
   6. SHARED: MAIN CONTENT AREA (dashboard pages)
   ================================================================ */
/* Onboarding uses .main; dashboard uses .content */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 24px 64px;
}

.content {
  flex: 1;
  padding: 36px 32px 48px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.page-title {
  font-family: 'Nunito', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.6;
}


/* ── TEST SELECTOR BAR ───────────────────────── */
.test-selector-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.test-selector-label {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.test-selector-select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 7px 36px 7px 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
    box-shadow: var(--shadow-sm);
    min-width: 220px;
}

    .test-selector-select:hover,
    .test-selector-select:focus {
        border-color: var(--brand-green);
        outline: none;
        box-shadow: 0 0 0 3px rgba(75,134,142,.12);
    }

.test-selector-caret {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-add-test {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1.5px solid var(--brand-green);
    border-radius: 8px;
    padding: 7px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-green);
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
    box-shadow: var(--shadow-sm);
}

    .btn-add-test:hover {
        background: var(--brand-green-lt);
        border-color: var(--brand-green-dk);
        color: var(--brand-green-dk);
        box-shadow: 0 2px 8px rgba(75,134,142,.15);
    }

    .btn-add-test svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ================================================================
   7. SHARED: FORM ELEMENTS
   ================================================================ */

.info-text, .help-block, .help-text, .form-text {
    color: #798593;
    font-style: italic;
    font-weight: 200;
    padding: .25rem 0;
}
.small {
    font-size: 70%;
    font-weight: normal;
}

.form-group { margin-bottom: 16px; }
/*.form-group:last-of-type { margin-bottom: 0; }*/

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: .01em;
}

/* Optional tag used in complete-account-setup */
.form-label .optional-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  font-family: 'Nunito Sans', sans-serif;
  letter-spacing: 0;
}

/* Numbered circle used in security-questions */
.form-label .question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(75,134,142,.12);
  color: var(--brand-green-dk);
  font-size: 10px;
  font-weight: 800;
  margin-right: 5px;
  vertical-align: middle;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14.5px;
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  box-shadow: var(--shadow-input);
  transition: border-color .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(75,134,142,.12);
}
.form-input:disabled {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

    .form-input.readonly-style {
        background-color: #eee;
        pointer-events: none;
        opacity: 0.7;
    }

/* Large input variant (dashboard-no-id) */
.form-input.lg {
  height: 52px;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
}

/* Select element */
.form-select {
  width: 100%;
  height: 46px;
  padding: 0 36px 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A9BB0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  outline: none;
  box-shadow: var(--shadow-input);
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.form-select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(75,134,142,.12);
}
.form-select:disabled {
  background-color: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

/* Textarea */
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  min-height: 80px;
  resize: vertical;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .15s;
}
.form-textarea:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(75,134,142,.12);
}
.form-textarea::placeholder { color: var(--text-muted); }

/* Side-by-side name row (complete-account-setup) */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.form-row-2 .form-group { margin-bottom: 0; }

/* City / State / Zip row (dashboard-no-id) */
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 80px 110px;
  gap: 12px;
  margin-bottom: 18px;
}

/* Test Ref ID field with inline icon */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-input { padding-right: 42px; }
.input-addon-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sign-in remember / forgot row */
.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.remember-label input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand-green);
  cursor: pointer;
}
.forgot-link {
  font-size: 13px;
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover { text-decoration: underline; }

/* Section label (uppercase eyebrow) */
.section-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* Horizontal rule between sections */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}


/* ================================================================
   8. SHARED: BUTTONS
   ================================================================ */
/* Default state (Open) */
.arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Closed state (when the button has the .collapsed class) */
button[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}
a[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}

/* Primary CTA button – onboarding */
.btn-primary {
    /*width: 100%;*/
    padding: .375rem .75rem;
    height: 48px;
    background: var(--brand-green);
    color: #fff;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, transform .12s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(var(--brand-green-lt));
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary.active,
    .btn-primary:hover {
        background: var(--brand-green-dk);
        box-shadow: 0 6px 18px rgba(var(--brand-green-lt));
        transform: translateY(-1px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    .btn-primary.btn-sm {
        padding: .25rem .5rem !important;
        font-size: 12px !important;
        height: 35px;
    }

    /* Inline / icon-alongside variant (dashboard-no-id) */
    .btn-primary.inline,
    .btn-primary[style*="display:inline"] {
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 28px;
        margin-top: 0;
    }

/* Primary CTA button – onboarding */
.btn-primary-cta {
    /*width: 100%;*/
    padding: .375rem .75rem;
    height: 48px;
    background: var(--brand-cta);
    color: #1A2E4A;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, transform .12s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(255,198,41,.4);
}

    .btn-primary-cta:hover,
    .btn-primary-cta:focus,
    .btn-primary-cta.active,
    .btn-primary-cta:hover {
        background: var(--brand-cta-hov);
        box-shadow: 0 6px 18px rgba(255,198,41,.45);
        transform: translateY(-1px);
    }
    .btn-primary-cta:active {
        transform: translateY(0);
    }

/* Inline / icon-alongside variant (dashboard-no-id) */
    .btn-primary-cta.inline,
    .btn-primary-cta[style*="display:inline"] {
        width: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 28px;
        margin-top: 0;
    }
.btn-primary svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn-primary-cta svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Full-width gold button variant (dashboard-no-id modal) */
.btn-primary-full {
    /*width: 100%;*/
    padding: .375rem .75rem;
    height: 48px;
    background: var(--brand-gold) !important;
    color: #1A2E4A;
    border: none;
    border-radius: var(--radius-btn);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    cursor: pointer;
    transition: background .2s, transform .12s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(255,198,41,.4);
}

    .btn-primary-full:hover,
    .btn-primary-full:focus,
    .btn-primary-full.active,
    .btn-primary-full:hover {
        background: var(--brand-gold-hov);
        box-shadow: 0 6px 18px rgba(255,198,41,.45);
        transform: translateY(-1px);
    }
.btn-primary-full:active { transform: translateY(0); }

.btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: var(--text-muted);
    border-color: var(--text-muted);
    box-shadow:none;
}

/* Secondary outline button */
.btn-secondary-outline {
    /*width: 100%;*/
    padding: .375rem .75rem;
    height: 48px;
    background: transparent;
    color: var(--brand-navy);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-btn);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}
    .btn-secondary-outline:hover,
    .btn-secondary-outline:focus,
    .btn-secondary-outline:active,
    .btn-secondary-outline.active,
    .btn-secondary-outline:hover {
        border-color: var(--brand-green);
        color: var(--brand-green);
        background: var(--brand-green-lt);
    }

.btn-secondary {
    padding: .375rem .75rem;
    height: 48px;
    /*display: inline-flex;*/
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--brand-green);
    border-radius: var(--radius-btn);
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-green);
    cursor: pointer;
    transition: background .18s, color .18s, border-color .18s, box-shadow .18s;
}

    .btn-secondary:hover,
    .btn-secondary:focus,
    .btn-secondary:active,
    .btn-secondary.active,
    .btn-secondary:focus:active {
        background: var(--brand-green-lt);
        border-color: var(--brand-green-dk);
        color: var(--brand-green-dk);
        box-shadow: 0 2px 8px rgba(75,134,142,.15);
    }

/* "Don't know" / text-link button (dashboard-no-id) */
.dont-know-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-green);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color .15s;
}
.dont-know-link:hover { color: var(--brand-green-dk); text-decoration: underline; }
.dont-know-link svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Toggle group (signin page – Myself / My Dependent) */
.toggle-group {
  display: flex;
  margin-top: 8px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  overflow: hidden;
}
.toggle-btn {
  flex: 1;
  height: 42px;
  background: transparent;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.toggle-btn + .toggle-btn { border-left: 1.5px solid var(--border); }
    .toggle-btn.active {
        background: var(--brand-teal-lt);
        color: var(--brand-green-dk);
    }
.toggle-btn:not(.active):hover {
  background: var(--bg-light);
  color: var(--text-muted);
}

.btn-check:checked + .btn {
    background-color: var(--brand-teal-lt);
    color: var(--brand-green-dk);
    border-color: #b0bec5;
}

.btn-group .btn {
    border-radius: 0;
}

    .btn-group .btn:first-of-type {
        border-top-left-radius: 8px;
        border-bottom-left-radius: 8px;
    }

    .btn-group .btn:last-of-type {
        border-top-right-radius: 8px;
        border-bottom-right-radius: 8px;
    }

/* Share Results button (pharmacist-consult) */
.btn-share-results svg {
  width: 14px; height: 14px;
  fill: none;
  margin-right:.5em;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* or divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
/*
    ===============================================================
   CONTACT US
    ===============================================================
*/
/* ── CONTACT GRID ────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

/* ── CONTACT FORM ────────────────────────────── */
.contact-form-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 32px 32px 28px;
}

.form-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

.form-error-msg {
    font-size: 12px;
    color: #e05c5c;
    display: none;
}

    .form-error-msg.visible {
        display: block;
    }

/* File attachment */
.file-upload-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px dashed var(--border);
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

    .file-upload-label:hover {
        border-color: var(--brand-green);
        background: var(--brand-green-lt);
    }

    .file-upload-label svg {
        width: 16px;
        height: 16px;
        stroke: var(--text-muted);
        fill: none;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
    }

    .file-upload-label span {
        font-size: 13.5px;
        color: var(--text-secondary);
    }

        .file-upload-label span strong {
            color: var(--brand-green);
            font-weight: 700;
        }

#fileInput {
    display: none;
}

#fileNameDisplay {
    font-size: 12.5px;
    color: var(--brand-green);
    margin-top: 4px;
    display: none;
}

/* Submit button */
.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: var(--brand-gold);
    color: #1A2E4A;
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255,198,41,.4);
    transition: background .2s, transform .12s, box-shadow .2s;
    margin-top: 20px;
}

    .btn-submit:hover {
        background: var(--brand-gold-hov);
        box-shadow: 0 6px 18px rgba(255,198,41,.45);
        transform: translateY(-1px);
    }

    .btn-submit:active {
        transform: translateY(0);
    }

    .btn-submit svg {
        width: 16px;
        height: 16px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── SUCCESS STATE ────────────────────────────── */
.success-state {
    text-align: center;
    padding: 48px 24px;
}

.success-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--brand-green-lt);
    border: 2px solid var(--brand-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

    .success-icon svg {
        width: 28px;
        height: 28px;
        stroke: var(--brand-green);
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.success-state h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-state p {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    max-width: 340px;
    margin: 0 auto;
}
/* ── SIDEBAR ──────────────────────────────────── */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Contact info card */
.info-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 24px;
}

.info-card-title {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.info-item {
    display: flex;
    gap: 13px;
    align-items: flex-start;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

    .info-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .info-item:first-of-type {
        padding-top: 0;
    }

.info-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--brand-green-lt);
    border: 1.5px solid rgba(75,134,142,.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .info-icon svg {
        width: 15px;
        height: 15px;
        stroke: var(--brand-green);
        fill: none;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.info-body {
}

.info-label {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-value {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.4;
}

    .info-value a {
        color: var(--brand-green);
        text-decoration: none;
        font-weight: 700;
    }

        .info-value a:hover {
            text-decoration: underline;
        }

.info-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hours card */
.hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

    .hours-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.hours-day {
    color: var(--text-secondary);
    font-weight: 600;
}

.hours-time {
    color: var(--text-primary);
    font-weight: 700;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
}

    .hours-time.closed {
        color: var(--text-muted);
        font-weight: 600;
    }

.hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: 14px;
}

    .hours-badge.open-now {
        background: #e8f7ef;
        color: #1e7a42;
        border: 1.5px solid #b8e6cc;
    }

.hours-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
/*
    ===============================================================
    FAQ
    ===============================================================
*/
/* ── SEARCH BAR ──────────────────────────────── */
.faq-search-wrap {
    position: relative;
    margin-bottom: 36px;
}

    .faq-search-wrap svg {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        width: 17px;
        height: 17px;
        stroke: var(--text-muted);
        fill: none;
        stroke-width: 1.9;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }

.faq-search {
    width: 100%;
    height: 48px;
    padding: 0 18px 0 46px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-family: 'Nunito Sans', sans-serif;
    font-size: 14.5px;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}

    .faq-search::placeholder {
        color: var(--text-muted);
    }

    .faq-search:focus {
        border-color: var(--brand-green);
        box-shadow: 0 0 0 3px rgba(75,134,142,.13);
    }

/* ── CATEGORY PILLS ──────────────────────────── */
.faq-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.faq-pill {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}

    .faq-pill:hover {
        border-color: var(--brand-green);
        color: var(--brand-green);
    }

    .faq-pill.active {
        background: var(--brand-green);
        border-color: var(--brand-green);
        color: var(--white);
    }

/* ── ACCORDION SECTION ───────────────────────── */
.faq-section {
    margin-bottom: 10px;
}

.faq-section-label {
    font-family: 'Nunito', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    padding-left: 2px;
}

.faq-group {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

    .faq-item:last-child {
        border-bottom: none;
    }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}

    .faq-question:hover {
        background: var(--bg-light);
    }

    .faq-question.open {
        background: var(--brand-green-lt);
    }

.faq-q-text {
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
}

.faq-question.open .faq-q-text {
    color: var(--brand-green-dk);
}

.faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .22s, background .18s, border-color .18s;
}

    .faq-chevron svg {
        width: 11px;
        height: 11px;
        stroke: var(--text-secondary);
        fill: none;
        stroke-width: 2.4;
        stroke-linecap: round;
        stroke-linejoin: round;
        transition: stroke .18s;
    }

.faq-question.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--brand-green);
    border-color: var(--brand-green);
}

    .faq-question.open .faq-chevron svg {
        stroke: var(--white);
    }

.faq-answer {
    display: none;
    padding: 0 24px 22px;
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.75;
}

    .faq-answer.open {
        display: block;
    }

    .faq-answer p + p {
        margin-top: 10px;
    }

    .faq-answer strong {
        color: var(--text-primary);
        font-weight: 700;
    }

    .faq-answer a {
        color: var(--brand-green);
        font-weight: 600;
        text-decoration: none;
    }

        .faq-answer a:hover {
            text-decoration: underline;
        }

    .faq-answer ul {
        margin: 10px 0 4px 18px;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

/* ── STILL HAVE QUESTIONS BANNER ─────────────── */
.faq-cta-banner {
    margin-top: 36px;
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dk) 100%);
    border-radius: var(--radius);
    padding: 30px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 6px 28px rgba(75,134,142,.25);
}

.faq-cta-text h3 {
    font-family: 'Nunito', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 4px;
}

.faq-cta-text p {
    font-size: 14px;
    color: rgba(255,255,255,.78);
    line-height: 1.5;
}

.faq-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-gold);
    color: #1A2E4A;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 22px;
    border-radius: 9px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255,198,41,.4);
    transition: background .2s, transform .12s, box-shadow .2s;
    white-space: nowrap;
}

    .faq-cta-btn:hover {
        background: var(--brand-gold-hov);
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(255,198,41,.45);
    }

    .faq-cta-btn svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/* ── NO RESULTS ──────────────────────────────── */
.faq-no-results {
    display: none;
    text-align: center;
    padding: 56px 20px;
    color: var(--text-muted);
}

    .faq-no-results svg {
        width: 44px;
        height: 44px;
        stroke: var(--border);
        fill: none;
        stroke-width: 1.5;
        stroke-linecap: round;
        stroke-linejoin: round;
        margin-bottom: 14px;
    }

    .faq-no-results p {
        font-size: 14.5px;
        line-height: 1.6;
    }

    .faq-no-results strong {
        color: var(--text-secondary);
    }

/* FAQ quick-link card */
.faq-link-card {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--brand-green-dk) 100%);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 6px 28px rgba(75,134,142,.22);
}

    .faq-link-card h4 {
        font-family: 'Nunito', sans-serif;
        font-size: 15px;
        font-weight: 800;
        color: var(--white);
        margin-bottom: 5px;
    }

    .faq-link-card p {
        font-size: 13px;
        color: rgba(255,255,255,.75);
        line-height: 1.5;
        margin-bottom: 14px;
    }

.faq-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.3);
    border-radius: 8px;
    padding: 8px 16px;
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    transition: background .18s, border-color .18s;
}

    .faq-link-btn:hover {
        background: rgba(255,255,255,.25);
        border-color: rgba(255,255,255,.5);
    }

    .faq-link-btn svg {
        width: 13px;
        height: 13px;
        stroke: currentColor;
        fill: none;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ================================================================
   9. SHARED: TOOLTIPS
   ================================================================ */

.tooltip-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  /*background: rgba(90,112,138,.15);*/
  cursor: pointer;
  transition: background .15s;
  flex-shrink: 0;
}
.tooltip-icon:hover { /*background: rgba(45,82,87,.18);*/ }
.tooltip-icon svg {
  width: 10px; height: 10px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.tooltip-icon:hover svg { stroke: var(--brand-green-dk); }

.tooltip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1A2E4A;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: normal;
  line-height: 1.65;
  padding: 12px 14px;
  border-radius: 8px;
  width: 260px;
  box-shadow: 0 8px 24px rgba(14,44,94,.25);
  z-index: 200;
  pointer-events: none;
  white-space: normal;
}
    .tooltip-bubble.bottom {
        top: calc(100% + 8px);
        bottom: 0%;
    }
.tooltip-bubble a { color: #7ab8bf; text-decoration: none; }
.tooltip-bubble a:hover { text-decoration: underline; }
.tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 100%; 
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1A2E4A;
}
.tooltip-icon:hover .tooltip-bubble,
.tooltip-icon:focus .tooltip-bubble { display: block; }

.tooltip-inner {
    background: #1A2E4A;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.65;
    padding: 12px 14px;
    border-radius: 8px;
    max-width: min(260px, calc(100vw - 20px)); /* 🔥 prevents overflow */
    text-align: initial;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1A2E4A;
}

.popover {
    max-width: min(260px, calc(100vw - 20px));
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 24px rgba(14,44,94,.25);
}

.popover-header {
    background: #1A2E4A;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 600;
    border-bottom: none;
    padding: 10px 14px 0 14px;
}

.popover-body {
    background: #1A2E4A;
    color: rgba(255,255,255,.9);
    font-size: 12px;
    line-height: 1.65;
    padding: 10px 14px 14px 14px;
}

.popover .popover-arrow::before {
    border-top-color: #1A2E4A !important;
}


/* ================================================================
   10. SHARED: SECURE BADGE
   ================================================================ */

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
}
.secure-badge svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ================================================================
   11. SHARED: ONBOARDING CARD (single-column, steps 2 & 3)
   ================================================================ */

.card {
    background: var(--white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-lg);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    overflow: visible;
    margin-bottom: 28px;
}

.card-accent {
  height: 5px;
  background: linear-gradient(90deg, #2d5257 0%, #4B868E 60%, #7ab8bf 100%);
}

.card-body { padding: 44px 48px 48px; }

/* Step progress pill */
.step-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-green-lt);
  border: 1px solid #b6ddd9;
  border-radius: 20px;
  padding: 4px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand-green-dk);
  margin-bottom: 20px;
}
.step-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-cta);
  flex-shrink: 0;
}

/* Form headings inside onboarding cards */
.form-title {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-navy);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 32px;
}

/* Security questions card */
.question-card {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px 20px;
  margin-bottom: 12px;
}
.question-card:last-of-type { margin-bottom: 0; }


/* ================================================================
   12. SHARED: CHECKBOXES (security-questions)
   ================================================================ */

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .18s, background .18s;
  cursor: pointer;
}
.checkbox-row:has(.custom-checkbox:checked) {
  border-color: #a0c8cc;
  background: #f4fbfb;
}
.checkbox-row:hover { border-color: #b0cdd1; }

.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color .18s, background .18s;
  position: relative;
}
.custom-checkbox:checked {
  background: var(--brand-green-dk);
  border-color: var(--brand-green-dk);
}
.custom-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px; top: 1px;
  width: 8px; height: 12px;
  border: 2.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(42deg);
  display: block;
}
.custom-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,82,87,.15);
}

.checkbox-text-wrap { flex: 1; min-width: 0; }

.checkbox-main-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 5px;
}

.checkbox-sub-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    line-height: 1.5;
}

.checkbox-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
  transition: color .15s;
  display: inline-block;
}
.checkbox-link:hover { color: var(--brand-green-dk); text-decoration: underline; }


/* ================================================================
   13. SHARED: REPORT CARDS & FULL-WIDTH CARDS (dashboard pages)
   ================================================================ */

.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.report-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: border-color .2s, box-shadow .2s, transform .18s;
  cursor: pointer;
}
.report-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 8px 32px rgba(75,134,142,.14);
  transform: translateY(-2px);
}

.report-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  /*background: var(--brand-green-lt);*/
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.report-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Per-card icon color overrides */
.report-icon--blue {
    background: rgba(85,124,166,.12);
}

    .report-icon--blue svg {
        stroke: var(--genomind-primary-blue);
    }

.report-card:has(.report-icon--blue):hover {
    border-color: var(--genomind-primary-blue);
    box-shadow: 0 8px 32px rgba(85,124,166,.14);
    transform: translateY(-2px);
}

.report-icon--teal {
    background: rgba(75,134,142,.12);
}

    .report-icon--teal svg {
        stroke: var(--genomind-primary-teal);
    }

.report-card:has(.report-icon--teal):hover {
    border-color: var(--genomind-primary-teal);
    box-shadow: 0 8px 32px rgba(75,134,142,.14);
    transform: translateY(-2px);
}

.report-icon--gold {
    background: rgba(255,198,41,.12);
}

    .report-icon--gold svg {
        stroke: var(--genomind-primary-gold);
    }

.report-card:has(.report-icon--gold):hover {
    border-color: var(--genomind-primary-gold);
    box-shadow: 0 8px 32px rgba(255,198,41,.18);
    transform: translateY(-2px);
}

.report-icon--warm {
    background: rgba(158,148,120,.12);
    /*background: var(--brand-green-lt);*/
}

    .report-icon--warm svg {
        stroke: var(--genomind-primary-warm);
    }
    .report-icon--warm i {
        color: var(--genomind-primary-warm);
    }

.report-card:has(.report-icon--warm):hover {
    border-color: var(--genomind-primary-warm);
    box-shadow: 0 8px 32px rgba(158,148,120,.14);
    transform: translateY(-2px);
}

/* Per-card CTA color */
.report-card-cta--blue {
    color: var(--genomind-primary-blue);
}

.report-card-cta--teal {
    color: var(--genomind-primary-teal);
}

.report-card-cta--gold {
    color: var(--genomind-primary-gold);
}

.report-card-cta--warm {
    color: var(--genomind-primary-warm);
}

.report-card-title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.report-card-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.report-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-green);
  text-decoration: none;
}
.report-card-cta svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .15s;
}
.genmedpro-card:hover .report-card-cta svg,
.report-card:hover .report-card-cta svg {
  transform: translateX(3px);
}

/* ── UPGRADE BANNER ──────────────────────────── */
.upgrade-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #2d5257 0%, #4B868E 100%);
    border-radius: var(--radius);
    padding: 28px 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-shadow: 0 4px 24px rgba(75,134,142,.25);
    transition: box-shadow .2s, transform .18s;
    cursor: pointer;
}

    .upgrade-card:hover {
        box-shadow: 0 8px 36px rgba(75,134,142,.35);
        transform: translateY(-2px);
    }

.upgrade-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .upgrade-icon svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: var(--brand-gold);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.upgrade-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-title-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.upgrade-title {
    font-family: 'Nunito', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
}

.upgrade-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,.7);
}

.upgrade-desc {
    font-size: 13.5px;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    margin: 0;
}

.report-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.report-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
}

    .report-pill svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: var(--brand-gold);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.upgrade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-gold);
    color: #1A2E4A;
    border: 1px solid var(--brand-gold);
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .12s;
}

    .upgrade-btn:hover {
        background: var(--brand-gold-hov);
        border-color: var(--brand-gold-hov);
        transform: translateY(-1px);
    }

    .upgrade-btn:active {
        transform: translateY(0);
    }

    .upgrade-btn svg {
        width: 12px;
        height: 12px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

/*
    Unlock/upgrade modal stuff
*/
/* Reassurance callout */
.reassurance {
    background: #fef9e7;
    border-left: 3px solid var(--brand-gold);
    border-radius: 0;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
}

    .reassurance svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: #b8860b;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .reassurance p {
        font-size: 13.5px;
        color: #6b5300;
        line-height: 1.55;
        margin: 0;
    }

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-check {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-green-lt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .feature-check svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: var(--brand-green);
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

.feature-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-top: 4px;
}

    .feature-text strong {
        font-weight: 700;
        color: var(--text-primary);
    }

/* Steps */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
    padding-bottom: 18px;
}

    .step:last-child {
        padding-bottom: 0;
    }

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.step-connector {
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 1.5px;
    background: var(--border);
}

.step-text {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    padding-top: 4px;
}

/* Detail rows */
.detail-rows {
    border-top: 1.5px solid var(--border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f7;
    font-size: 13.5px;
}

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

.detail-label {
    color: var(--text-secondary);
}

.detail-value {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

    .detail-value.price {
        font-size: 18px;
        font-weight: 800;
        color: var(--text-primary);
    }

/* GenMedPro Banner card */
.genmedpro-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .2s, box-shadow .2s, transform .18s;
  cursor: pointer;
}
.genmedpro-card:hover {
  border-color: var(--brand-green);
  box-shadow: 0 8px 32px rgba(75,134,142,.14);
  transform: translateY(-2px);
}

.genmedpro-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2d5257 0%, #4B868E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.genmedpro-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.genmedpro-header { display: flex; align-items: center; gap: 10px; }

.genmedpro-title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.genmedpro-badge {
  background: var(--brand-green-lt);
  color: var(--brand-green-dk);
  border: 1px solid #b6ddd9;
  border-radius: 20px;
  padding: 2px 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.genmedpro-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

.genmedpro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.genmedpro-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.genmedpro-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand-gold);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Genetic Counselor CTA card */
.counselor-card {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #3a5f8a 0%, #7aa0c4 100%);
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(85,124,166,.25);
  transition: box-shadow .2s, transform .18s;
}
.counselor-card:hover {
  box-shadow: 0 8px 36px rgba(85,124,166,.35);
  transform: translateY(-2px);
}
.counselor-left { display: flex; align-items: center; gap: 20px; }

.counselor-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.counselor-icon svg { width: 26px; height: 26px; }

.counselor-title {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}
.counselor-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}

.counselor-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: var(--brand-gold);
  color: #1A2E4A;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  box-shadow: 0 4px 14px rgba(255,198,41,.4);
  transition: background .2s, transform .12s, box-shadow .2s;
  flex-shrink: 0;
}
.counselor-cta svg { width: 14px; height: 14px; transition: transform .15s; }
.counselor-card:hover .counselor-cta {
  background: var(--brand-gold-hov);
  box-shadow: 0 6px 18px rgba(255,198,41,.45);
}
.counselor-card:hover .counselor-cta svg { transform: translateX(3px); }


/* ================================================================
   15. PAGE: SIGN IN (patient-portal-signin-Original)
   ================================================================ */

/* Two-panel card layout */
.card-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: 0 8px 40px rgba(14,44,94,.12);
  background: var(--white);
}

/* Left brand panel */
.left-panel {
    background: linear-gradient(160deg, #2d5257 0%, #4f868e 50%, #7ab8bf 100%);
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card) 0 0 var(--radius-card);
}
.left-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.left-panel::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(0,163,180,.15);
}

.left-logo { 
    margin-bottom: 15px; position: relative; z-index: 1; 

}
.left-logo img { 
    height: 30px; 
    /*filter: brightness(0) invert(1);*/ 
}

.left-headline {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.left-sub {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.6;
  margin-bottom: 36px;
  position: relative;
  z-index: 1;
}

.left-footer {
  margin-top: 44px;
  font-size: 11px;
  color: rgba(255,255,255,.85);
  position: relative;
  z-index: 1;
}

/* Right form panel */
.right-panel {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Tabs (Sign In / Create Account) */
.form-tabs {
  display: flex;
  margin-bottom: 32px;
  border-bottom: 2px solid var(--border);
}
.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

/* iPad and smaller */
@media (max-width: 1024px) {
    .tab-btn {
        padding: 8px 12px;
        font-size: 14px;
    }
}

.tab-btn.active {
  color: var(--brand-green);
  border-color: var(--brand-green);
}
.tab-btn:hover:not(.active) { color: var(--text-secondary); }

/* Sign-in form title (larger) */
.right-panel .form-title { font-size: 24px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }


/* ================================================================
   16. PAGE: SECURITY QUESTIONS (patient-portal-security-questions)
   ================================================================ */
/* Uses shared: .topnav, .main, .card, .card-accent, .card-body,
   .step-pill, .form-title, .form-subtitle, .section-label,
   .section-divider, .form-group, .form-label .question-num,
   .form-select, .form-input, .checkbox-group, .checkbox-row,
   .custom-checkbox, .checkbox-text-wrap, .checkbox-main-text,
   .checkbox-link, .tooltip-*, .btn-primary, .secure-badge, .footer */

/* Section label margin override for security questions */
.question-card .section-label { margin-bottom: 12px; }


/* ================================================================
   17. PAGE: COMPLETE ACCOUNT SETUP (patient-portal-complete-account-setup)
   ================================================================ */
/* Uses shared: .topnav, .main, .card, .card-accent, .card-body,
   .step-pill, .form-title, .form-subtitle, .section-label,
   .section-divider, .form-row-2, .form-group, .form-label,
   .form-label .optional-tag, .form-input, .tooltip-*, .input-icon-wrap,
   .btn-primary, .secure-badge, .footer */

/* Complete Account Setup – btn-primary top margin override */
/*.card-body .btn-primary { margin-top: 28px; }*/


/* ================================================================
   18. PAGE: DASHBOARD – NO ID (patient-portal-dashboard-no-id)
   ================================================================ */

/* Enter Test Ref ID card */
.enter-id-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  max-width: 620px;
}
.enter-id-accent-bar {
  height: 5px;
  background: linear-gradient(90deg, #2d5257 0%, #4B868E 60%, #7ab8bf 100%);
}
.enter-id-body { padding: 40px 44px 44px; }

.enter-id-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--brand-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.enter-id-icon-wrap svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.enter-id-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.enter-id-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}
.enter-id-desc strong { font-weight: 700; color: var(--text-primary); }

/* No-ID page: btn-primary is inline (not full-width) */
/*.enter-id-body .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 28px;
  margin-top: 0;
}*/

/* Help hint banner below card */
.help-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 20px;
  max-width: 620px;
  padding: 16px 20px;
  border-radius: 10px;
  background: #fffcf0;
  border: 1.5px solid #f0d97a;
}
.help-hint-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: #fff7d6;
  border: 1px solid #f0d97a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.help-hint-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: #a07c00;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.help-hint-text { font-size: 13px; color: #7a5c00; line-height: 1.6; }
.help-hint-text strong { font-weight: 700; color: #5a4000; }

/* No-ID modal – profile confirm box */
.profile-confirm-box {
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 22px;
}
.profile-confirm-label {
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.profile-row:last-child { margin-bottom: 0; }
.profile-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  width: 90px;
  flex-shrink: 0;
}
.profile-field-value {
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.profile-confirm-question {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
}
.profile-confirm-question a {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: none;
}
.profile-confirm-question a:hover { text-decoration: underline; }


/* ================================================================
   19. PAGE: DASHBOARD – PENDING (patient-portal-dashboard-pending)
   ================================================================ */

.pending-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1.5px solid #b6ddd9;
  border-left: 5px solid var(--brand-green);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.pending-banner-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--brand-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pending-banner-icon svg {
  width: 22px; height: 22px;
  fill: none;
  stroke: var(--brand-green-dk);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pending-banner-body { display: flex; flex-direction: column; gap: 4px; }
.pending-banner-title {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand-green-dk);
}
.pending-banner-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Pending state – grayed-out report cards */
/*.pending-banner ~ * .report-card,
.report-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  position: relative;
}
.report-card.disabled::after,
.pending-banner ~ * .report-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 1px);
  background: rgba(244,247,251,.45);
}*/
/* Pending – icon override to gray */
/*.pending-banner ~ * .report-icon { background: #eef1f5; }*/

.report-card.disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
    position: relative;
}
.report-card.disabled::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: calc(var(--radius) - 1px);
    background: rgba(244,247,251,.45);
}

/* ================================================================
   20. PAGE: DASHBOARD – PHARMACIST CONSULT
       (patient-portal-dashboard-pharmacist-consult)
   ================================================================ */

/* Test Reference ID banner */
.test-ref-banner {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  overflow: hidden;
}
.test-ref-accent {
  width: 5px;
  align-self: stretch;
  background: linear-gradient(180deg, #2d5257 0%, #4B868E 100%);
  flex-shrink: 0;
}
.test-ref-inner {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 18px 20px 18px 26px;
  min-width: 0;
  justify-content: space-between;
}

.test-ref-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    justify-content: space-between;
}
.test-ref-label {
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.test-ref-value {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}
.test-ref-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 28px;
}
.test-ref-item { display: flex; flex-direction: column; flex-shrink: 0; }
.test-ref-item.grow {
  flex: 1;
  min-width: 0;
}
.test-ref-item.grow .test-ref-value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.test-ref-icon-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.test-ref-icon {
  width: 36px; height: 36px;
  border-radius: 9px;
  background: rgba(75,134,142,.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.test-ref-icon svg {
  width: 17px; height: 17px;
  fill: none;
  stroke: var(--brand-green);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test-ref-share-wrap { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

/* Pharmacist-consult modal – larger max-width */


/* ================================================================
   21. PAGE: WELLNESS FULL (patient-portal-dashboard-wellness-full)
   ================================================================ */

/* Sub-navigation */
.wellness-subnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 20px 0 28px;
  padding: 6px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  width: fit-content;
}
.subnav-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 7px; border: none;
  background: none; font-family: 'Nunito', sans-serif;
  font-size: 13.5px; font-weight: 700; color: var(--text-secondary);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.subnav-btn:hover { background: var(--bg-light); color: var(--text-primary); }
.subnav-btn.active { background: var(--brand-green); color: #fff; }
.subnav-btn svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.btn-export svg {
    width: 14px;
    height: 14px;
    fill: none;
    margin-right: .5em;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Wellness section cards */
.wellness-section {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 24px;
  overflow: hidden;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 20px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  flex-wrap: wrap;
}
.section-head-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}
.section-meta { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 7px;
  background: var(--brand-green); color: #fff;
  font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800;
  border-radius: 20px;
}
.count-badge.zero { background: var(--border); color: var(--text-muted); }
.section-body { padding: 24px 28px; }

/* Wellness page buttons (teal primary, ghost, icon, danger) */
.wellness-section .btn-primary,
.wellness-section ~ .modal-overlay .btn-primary {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--brand-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 13.5px;
  height: auto;
  margin-top: 0;
  box-shadow: 0 3px 10px rgba(75,134,142,.3);
}
.wellness-section .btn-primary:hover,
.wellness-section ~ .modal-overlay .btn-primary:hover {
  background: var(--brand-green-dk);
  box-shadow: 0 5px 14px rgba(75,134,142,.35);
}
.wellness-section .btn-primary svg,
.wellness-section ~ .modal-overlay .btn-primary svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; color: var(--text-muted);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px 14px; font-family: 'Nunito', sans-serif;
  font-size: 13px; font-weight: 700; cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text-secondary); background: var(--bg-light); }

.btn-danger-ghost {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; color: var(--text-muted);
  border: none; border-radius: 6px; padding: 5px 8px;
  font-family: 'Nunito', sans-serif; font-size: 12.5px; font-weight: 700;
  cursor: pointer; transition: color .18s, background .18s;
}
.btn-danger-ghost:hover { color: var(--danger); background: var(--danger-lt); }
.btn-danger-ghost svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-navy);
    cursor: pointer;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.btn-icon:hover { background: var(--bg-light); color: var(--text-secondary); }
.btn-icon.danger:hover { background: var(--danger-lt); color: var(--danger); }
.btn-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Condition Diary */
.condition-hint {
  font-size: 13px; color: var(--text-muted); line-height: 1.6;
  margin-bottom: 20px; padding: 12px 16px;
  background: var(--bg-light); border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
}
.condition-hint strong { color: var(--text-secondary); font-weight: 700; }
.condition-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.condition-tile {
  position: relative;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 72px; padding: 10px 8px;
  background: var(--bg-light);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif; font-size: 12.5px; font-weight: 700;
  color: var(--text-secondary); line-height: 1.35;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
}
.condition-tile:hover { border-color: var(--brand-green); color: var(--brand-green-dk); background: var(--brand-green-lt); }
.condition-tile.active {
  background: var(--brand-green); border-color: var(--brand-green);
  color: #fff; box-shadow: 0 3px 12px rgba(75,134,142,.3);
}
    .condition-tile.active:hover {
        background: var(--brand-green-dk);
        border-color: var(--brand-green-dk);
    }
.tile-check {
  position: absolute; top: 6px; right: 7px;
  width: 16px; height: 16px;
  background: rgba(255,255,255,.25); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.condition-tile.active .tile-check {
    opacity: 1;
}
.tile-check svg { width: 10px; height: 10px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Medications list */
.med-empty {
  text-align: center; padding: 36px 20px; color: var(--text-muted);
}
.med-empty-icon {
  width: 48px; height: 48px; margin: 0 auto 12px;
  background: var(--bg-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
}
.med-empty-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text-muted); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.med-empty p { font-size: 14px; line-height: 1.55; max-width: 360px; margin: 0 auto; }
.med-empty strong { font-weight: 700; color: var(--text-secondary); display: block; margin-bottom: 4px; font-family: 'Nunito', sans-serif; font-size: 15px; }

.med-list { display: flex; flex-direction: column; gap: 12px; }
.med-card {
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 12px;
  background: var(--bg-light); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px;
  transition: border-color .15s, box-shadow .15s;
}
.med-card:hover { border-color: #b8ccd8; box-shadow: var(--shadow-sm); }
.med-card-name { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.med-card-detail { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }
.med-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.med-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  font-family: 'Nunito', sans-serif; font-size: 11.5px; font-weight: 700;
}
.med-tag.still { background: var(--brand-green-lt); color: var(--brand-green-dk); }
.med-tag.adherence { background: var(--bg-light); color: var(--text-secondary); border: 1px solid var(--border); }
.med-tag.benefit { background: #fff8e5; color: #9a6700; border: 1px solid #f5e0a0; }
.med-tag.side-effect { background: var(--danger-lt); color: #9b2020; border: 1px solid #f5c6c6; }
.med-card-actions { display: flex; gap: 2px; flex-shrink: 0; }

.delete-confirm { display: none; align-items: center; gap: 6px; background: var(--danger-lt); border: 1px solid #f5c6c6; border-radius: 6px; padding: 4px 10px; }
.delete-confirm.visible { display: flex; }
.delete-confirm span { font-size: 12.5px; font-weight: 700; color: var(--danger); font-family: 'Nunito', sans-serif; }
.delete-confirm button { border: none; background: none; cursor: pointer; padding: 2px; border-radius: 4px; display: flex; align-items: center; transition: background .12s; }
.delete-confirm button:hover { background: rgba(0,0,0,.08); }
.delete-confirm button svg { width: 14px; height: 14px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.delete-confirm .confirm-yes { color: var(--danger); stroke: var(--danger); }
.delete-confirm .confirm-no { color: var(--text-muted); stroke: var(--text-muted); }

.twitter-typeahead {
    width: 100%;
}

.still-taking-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    white-space: nowrap;
    flex-shrink: 0;
}

    .still-taking-row input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: var(--brand-green);
    }

    .still-taking-row label {
        font-family: 'Nunito', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: var(--text-secondary);
        cursor: pointer;
    }

/* Tracker tabs */
.tracker-tabs {
  display: flex; align-items: center;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.tracker-tabs::-webkit-scrollbar { display: none; }
.tracker-tab {
  display: flex; align-items: center; gap: 7px;
  padding: 14px 20px; font-family: 'Nunito', sans-serif;
  font-size: 13.5px; font-weight: 700; color: var(--text-muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, border-color .15s;
  background: none; border-top: none; border-left: none; border-right: none;
}
.tracker-tab:hover { color: var(--brand-green); }
.tracker-tab.active { color: var(--brand-green); border-color: var(--brand-green); }

.tracker-content { padding: 24px 28px; }
.tracker-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; gap: 12px; }
.tracker-title { font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 800; color: var(--text-primary); }
.tracker-desc { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; max-width: 760px; margin-bottom: 24px; }
.tracker-entries-count { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Chart */
.chart-wrap {
  position: relative; width: 100%;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.chart-canvas { display: block; width: 100%; }

/* Chart date filter bar */
.chart-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.chart-filter label { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-secondary); white-space: nowrap; }
.chart-filter input[type="date"] {
  padding: 6px 10px; font-family: 'Nunito Sans', sans-serif; font-size: 13px;
  color: var(--text-primary); background: var(--white);
  border: 1.5px solid var(--border); border-radius: 6px; outline: none;
  transition: border-color .15s;
}
.chart-filter input[type="date"]:focus { border-color: var(--brand-green); }
.chart-filter-sep { color: var(--text-muted); font-size: 13px; }
.chart-filter-actions { display: flex; gap: 8px; margin-left: auto; }
.btn-filter {
  padding: 7px 16px; border-radius: 6px;
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background .15s, border-color .15s; border: 1.5px solid;
}
.btn-filter.reset { background: none; border-color: var(--border); color: var(--text-muted); }
.btn-filter.reset:hover { border-color: var(--text-muted); color: var(--text-secondary); }
.btn-filter.search { background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.btn-filter.search:hover { background: var(--brand-green-dk); border-color: var(--brand-green-dk); }

/* Tracker log list */
.tracker-log { margin-top: 20px; }
.tracker-log-title {
  font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.tracker-log-list { display: flex; flex-direction: column; gap: 8px; max-height: 180px; overflow-y: auto; }
.tracker-log-entry {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--bg-light);
  border: 1px solid var(--border); border-radius: 8px; gap: 12px;
}
.tracker-log-date { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; min-width: 70px; }
.tracker-log-value { display: flex; align-items: center; gap: 6px; flex: 1; }
.tracker-severity-pill {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 20px; font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
}
.sev-0 { background: #e0f4f0; color: #1a7060; }
.sev-1 { background: #fff3d6; color: #8a5c00; }
.sev-2 { background: #ffe5d0; color: #9a4200; }
.sev-3 { background: var(--danger-lt); color: #9b2020; }
.tracker-log-notes { font-size: 12px; color: var(--text-muted); font-style: italic; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wellness modal (different structure from dashboard modal) */
.wellness-section ~ .modal-overlay .modal,
#trackModal.modal-overlay .modal {
  border-radius: var(--radius);
  transform: translateY(16px);
  transition: transform .22s;
}
.wellness-section ~ .modal-overlay.open .modal,
#trackModal.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px 18px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 10px; padding: 16px 26px;
  border-top: 1px solid var(--border);
  background: var(--bg-light);
  border-radius: 0 0 var(--radius) var(--radius);
}

.btn-modal-primary {
  padding: 10px 22px; background: var(--brand-gold); border: none;
  border-radius: 8px; font-family: 'Nunito', sans-serif; font-size: 14px;
  font-weight: 800; color: #1A2E4A; cursor: pointer;
  transition: background .15s, transform .1s; letter-spacing: .02em;
}
.btn-modal-primary:hover { background: var(--brand-gold-hov); transform: translateY(-1px); }

.btn-modal-secondary {
  padding: 10px 18px; background: none; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: 'Nunito', sans-serif; font-size: 14px;
  font-weight: 700; color: var(--text-secondary); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.btn-modal-secondary:hover { border-color: var(--text-muted); color: var(--text-primary); }

/* Wellness modal form fields */
.form-row { margin-bottom: 18px; }
.form-row-inline { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.form-row-inline .form-group { flex: 1; }

.input-unit-row { display: flex; gap: 8px; align-items: center; }
.form-input-sm { flex: 1; }
.form-select-sm { width: auto; flex-shrink: 0; }

.still-taking-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; white-space: nowrap; flex-shrink: 0; }
.still-taking-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand-green); }
.still-taking-row label { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }

.date-range-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-sep { font-size: 13px; color: var(--text-muted); font-weight: 600; flex-shrink: 0; }

.side-effects-list { display: flex; flex-direction: column; gap: 10px; }
.side-effect-row { display: flex; gap: 8px; align-items: center; }
.side-effect-row .form-select { flex: 1; }
.side-effect-row .form-select.sev { width: 130px; flex: none; }
.btn-remove-se { width: 30px; height: 30px; border-radius: 6px; border: none; background: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .12s, color .12s; }
.btn-remove-se:hover { background: var(--danger-lt); color: var(--danger); }
.btn-remove-se svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.btn-add-se { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--brand-green); font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; padding: 4px 0; margin-top: 4px; }
.btn-add-se:hover { color: var(--brand-green-dk); }

/* Severity button group */
.severity-group { display: flex; gap: 8px; flex-wrap: wrap; }
.sev-btn {
  flex: 1; min-width: 80px; padding: 10px 8px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--white);
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; text-align: center;
}
.sev-btn:hover { border-color: var(--brand-green); color: var(--brand-green-dk); }
.sev-btn.active { border-color: var(--brand-green); background: var(--brand-green); color: #fff; }
.sev-btn.active-mild { border-color: #d4a000; background: #fff3d6; color: #7a4e00; }
.sev-btn.active-moderate { border-color: #c06020; background: #ffe5d0; color: #7a3000; }
.sev-btn.active-severe { border-color: var(--danger); background: var(--danger-lt); color: #8b1c1c; }

/* Quality / Intensity option groups */
.option-group { display: flex; gap: 8px; }
.opt-btn {
  flex: 1; padding: 9px 6px; border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--white); font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); cursor: pointer; text-align: center;
  transition: border-color .15s, background .15s, color .15s;
}
.opt-btn:hover { border-color: var(--brand-green); color: var(--brand-green-dk); }
.opt-btn.active { border-color: var(--brand-green); background: var(--brand-green-lt); color: var(--brand-green-dk); }

/* Unit toggle */
.unit-toggle { display: flex; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; }
.unit-btn { padding: 10px 16px; border: none; background: none; font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 700; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.unit-btn.active { background: var(--brand-green); color: #fff; }
.unit-btn:not(.active):hover { background: var(--bg-light); color: var(--text-secondary); }

/* Toast notifications */
.toast-stack {
  position: fixed; bottom: 10em; right: 28px; z-index: 600;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: #1e3550; color: #fff; padding: 12px 18px;
  border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.22);
  font-family: 'Nunito', sans-serif; font-size: 13.5px; font-weight: 700;
  pointer-events: all;
  animation: toastIn .28s ease forwards;
  max-width: 340px;
  width: 100%;
}
.toast.fade-out { animation: toastOut .28s ease forwards; }
.toast-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.toast-icon.success { background: #3ecf8e; }
.toast-icon.danger {
        background: var(--bs-danger);
    }
.toast-icon.info { background: var(--brand-green); }
.toast-icon svg { width: 11px; height: 11px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(12px); } }


/* ================================================================
   22. PAGE: WELLNESS COMING SOON (patient-portal-dashboard-wellness)
   ================================================================ */

.coming-soon-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 680px;
}
.coming-soon-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--brand-green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.coming-soon-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--brand-green-dk);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.coming-soon-body { display: flex; flex-direction: column; gap: 6px; }
.coming-soon-title {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}
.coming-soon-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ================================================================
   PASSWORD
   ================================================================ */
.progress-bar {
    height: 15px;
    text-align: right;
}

.progress-bar-indicator {
    font-size: 12px;
    font-weight: 100;
    color: #fff;
    line-height: 1.25;
    padding: 0 4px;
}

.strengthBox.progress {
    background-color: rgb(237, 240, 242);
}

/* Password Meter Classes */
.strength0 {
    width: 1%;
    background-color: rgb(237, 240, 242);
}

.strength1 {
    width: 20%;
    background-color: rgb(205, 80, 50);
}

.strength2 {
    width: 40%;
    background-color: rgb(235, 169, 0);
}

.strength3 {
    width: 60%;
    background-color: rgb(255, 198, 41);
}

.strength4 {
    width: 80%;
    /*background-color: #a7b633;*/
    background-color: var(--brand-green);
}

.strength5 {
    width: 100%;
    background-color: var(--brand-green);
}
.progress {
    display: flex;
    overflow: hidden;
    font-size: 1rem;
    line-height: 10px;
    text-align: center;
    background-color: rgba(183, 199, 211, 0.85);
    border-radius: 0;
    box-shadow: 0;
}
.pw_strength {
    margin-top: -7.5px;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
}
.pw_strength-text {
    flex: 0 0 41.6666666667%;
    max-width: 41.6666666667%;
}
/* ================================================================
   23. RESPONSIVE BREAKPOINTS
   ================================================================ */

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
}
/*@media (max-width: 992px) {
    .navbar-main-menu {
        display: none;
    }
}*/

/* ── Dashboard pages ── */
@media (max-width: 700px) {
  .mainnav { padding: 0 16px; }
  .ceiling { padding: 0 16px; }
  .content { padding: 24px 16px 40px; }
  .footer { padding: 14px 16px; }

  .report-grid { grid-template-columns: 1fr; }
  .genmedpro-card { flex-direction: column; gap: 18px; }
  .counselor-card { flex-direction: column; gap: 16px; }

  .enter-id-body { padding: 28px 24px 32px; }
  .form-row-3 { grid-template-columns: 1fr 70px 100px; }

  .modal-body { padding: 28px 24px 32px; }
  .modal-form-row { grid-template-columns: 1fr; }

  .section-body, .tracker-content { padding: 18px 16px; }
  .section-head { padding: 16px; }

  /* Mobile: wellness modal slides up from bottom */
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; margin: 0; border-radius: var(--radius) var(--radius) 0 0; align-self: flex-end; }

  .coming-soon-box { padding: 24px 20px; }
}

/* ── Onboarding pages ── */
@media (max-width: 720px) {
  .card-shell { grid-template-columns: 1fr; }
  .left-panel { padding: 36px 28px 32px; }
  .right-panel { padding: 36px 28px; }
  .left-panel::before, .left-panel::after { display: none; }
  .topnav { padding: 0 20px; }
  .footer { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}

@media (max-width: 620px) {
  .topnav { padding: 0 20px; }
  .main { padding: 32px 16px 48px; }
  .card-body { padding: 32px 24px 36px; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ── Condition grid ── */
@media (max-width: 860px) { .condition-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .condition-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .condition-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── Wellness modal on mobile: inline form rows stack ── */
@media (max-width: 700px) {
  .form-row-inline { flex-direction: column; }
}

@media (max-width: 992px) {
    .test-ref-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .test-ref-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .test-ref-item {
        margin-bottom: 0.5rem;
    }
    .test-ref-divider {
        display: none;
    }
}
@media (max-width: 576px) {
    .tooltip-bubble {
        left: calc(-30vw - 10vw);
        transform: none;
        width: max-content;
        max-width: calc(50vw - 20px);
    }
}