/* =========================================================
   VitalTrack — IoT Metabolic Syndrome Monitoring
   ========================================================= */

/* ---------- 1. RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f5f8f8;
    color: #1b2e2f;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
    min-height: 100%;
    overflow-x: hidden;
}

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

img,
video {
    max-width: 100%;
    display: block;
}

/* ---------- 2. HEADER (glassmorphism) ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 14px 24px;
    pointer-events: none;
}

.header-inner {
    padding: 0 24px;
    align-items: center;
    display: flex;
    gap: 32px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1280px;
    min-height: 64px;

    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);

    pointer-events: auto;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header-inner:hover {
    background: rgba(255, 255, 255, 0.16);
}

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

.logo-name {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.main-nav {
    display: flex;
    gap: 28px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.15s ease;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.main-nav a:hover {
    color: #ffffff;
}

/* ---------- 3. HERO ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    isolation: isolate;
    background: #0a2321;
}

/* background image layer */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1800&q=80');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(0.9) contrast(1.08) brightness(0.8);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        rgba(9, 23, 30, 0.74),
        rgba(9, 23, 30, 0.44) 40%,
        rgba(9, 23, 30, 0.6)
    );
}

/* foreground content */
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100vh;
    padding: 120px 48px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

/* top-right stats */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 260px;
    margin-left: auto;
}

.stat {
    color: #f1f1f1;
}

.stat-divider {
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
    height: 2px;
    position: relative;
}

.stat-divider::after {
    content: "";
    width: 100%;
    z-index: 2;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgb(255, 255, 255));
    height: 2px;
    position: absolute;
    inset: 0;
}

.stat-label {
    opacity: 0.7;
    color: #f1f1f1;
    margin-top: 10px;
    font-size: 15px;
    font-weight: 400;
}

.stat-value-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
}

.stat-value {
    color: #f1f1f1;
    font-size: 44px;
    font-weight: 500;
    line-height: 1;
}

.stat-dots {
    display: flex;
    gap: 4px;
}

.stat-dots span {
    background-color: #f1f1f1;
    border-radius: 100%;
    width: 4px;
    height: 4px;
}

.stat-dots span.faded {
    opacity: 0.3;
}

/* bottom row */
.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-top: auto;
    flex-wrap: wrap;
}

.hero-copy {
    max-width: 720px;
}

.hero-title {
    font-size: clamp(34px, 5vw, 72px);
    color: #f1f1f1;
    margin: 0 0 16px;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    color: #f1f1f1;
    font-size: clamp(15px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    max-width: 560px;
    opacity: 0.9;
}

/* CTA button */
.hero-cta {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 18px 20px;
    min-width: 180px;
    max-width: 220px;
    color: #f1f1f1;
    background-color: rgba(241, 241, 241, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(241, 241, 241, 0.1);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

.hero-cta:hover {
    background-color: rgba(241, 241, 241, 0.2);
    transform: translateY(-2px);
}

.hero-cta-label {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.hero-cta-arrow {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hero-cta-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ---------- 4. SECTIONS ---------- */
.section {
    margin: 0 auto;
    max-width: 1280px;
    padding: 72px 28px 24px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 16px;
}

.eyebrow {
    color: #0f766e;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

h2 {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.date-label {
    color: #6b8585;
    font-size: 0.85rem;
    font-weight: 500;
    background: #eef4f3;
    padding: 4px 14px;
    border-radius: 30px;
}

/* ---------- 5. SENSOR CARDS ---------- */
.sensor-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, 1fr);
}

.sensor-card {
    background-color: #ffffff;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(227, 236, 234, 0.9);
    border-radius: 24px;
    min-height: 224px;
    overflow: hidden;
    padding: 24px 20px;
    position: relative;
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s ease,
        border-color 0.45s ease;
    box-shadow: 0 8px 24px rgba(18, 75, 70, 0.08);
}

.sensor-card:hover {
    border-color: #c2dbd7;
    box-shadow: 0 24px 42px -18px rgba(18, 75, 70, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    transform: translateY(-7px) scale(1.012);
    z-index: 3;
}

.sensor-card--temperature {
    background-image: linear-gradient(135deg, rgba(10, 49, 48, 0.9), rgba(19, 112, 99, 0.55)),
        url('https://images.unsplash.com/photo-1511174511562-5f7f18b874f8?auto=format&fit=crop&w=900&q=85');
    background-position: center;
    color: #ffffff;
    box-shadow: 0 12px 30px -16px rgba(19, 112, 99, 0.55);
}

.sensor-card--temperature .card-top {
    justify-content: flex-start;
    margin-bottom: 16px;
}

.sensor-card--temperature .sensor-name {
    min-height: 0;
}

.sensor-card--temperature .reading {
    font-size: 2rem;
    margin-top: 10px;
}

.sensor-card--glucose {
    background-image: url('https://images.unsplash.com/photo-1576091160399-112ba8d25d1d?auto=format&fit=crop&w=900&q=85');
    background-position: 58% center;
    border-color: #d9d0bb;
    border-radius: 22px;
    color: #ffffff;
    isolation: isolate;
    padding: 0;
    box-shadow: 0 12px 30px -16px rgba(143, 103, 48, 0.5);
}

.glucose-overlay {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(0, 0, 0, 0.2);
    inset: 0 0 0 0;
    mask-image: linear-gradient(to top, #000000 0%, transparent 42%);
    -webkit-mask-image: linear-gradient(to top, #000000 0%, transparent 42%);
    opacity: 0.9;
    position: absolute;
    transition: backdrop-filter 0.3s ease, background 0.3s ease, mask-image 0.3s ease, opacity 0.3s ease;
    z-index: -1;
}

.glucose-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    padding: 24px 20px;
    position: relative;
}

.sensor-card--glucose .sensor-name {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.glucose-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.35s ease;
}

.sensor-card--glucose .card-top {
    margin-bottom: 14px;
    margin-top: 16px;
}

.sensor-card--glucose .reading {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.sensor-card--glucose .reading span,
.sensor-card--glucose .sensor-note {
    color: rgba(255, 255, 255, 0.8);
}

.sensor-card--glucose:hover .glucose-overlay,
.sensor-card--glucose:focus-within .glucose-overlay {
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    background: rgba(0, 0, 0, 0.42);
    mask-image: linear-gradient(to top, #000000 16%, #000000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, #000000 16%, #000000 70%, transparent 100%);
    opacity: 1;
}

.sensor-card--glucose:hover .glucose-details,
.sensor-card--glucose:focus-within .glucose-details {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.sensor-card--heart {
    background-image: linear-gradient(145deg, rgba(92, 24, 41, 0.9), rgba(170, 66, 78, 0.5)),
        url('https://images.unsplash.com/photo-1530026405186-ed1f139313f8?auto=format&fit=crop&w=900&q=85');
    background-position: center;
    color: #ffffff;
    border-radius: 30px 12px 30px 12px;
    box-shadow: 0 12px 30px -16px rgba(139, 47, 69, 0.6);
}

.sensor-card--pressure {
    background-image: linear-gradient(180deg, rgba(239, 248, 249, 0.75), rgba(239, 248, 249, 0.98)),
        url('https://images.unsplash.com/photo-1584982751601-97dcc096659c?auto=format&fit=crop&w=900&q=85');
    background-position: center 42%;
    border-color: #c9e1e4;
    border-radius: 12px;
    box-shadow: 0 12px 30px -16px rgba(42, 127, 136, 0.45);
}

.sensor-card--ecg {
    background-image: linear-gradient(135deg, rgba(13, 31, 61, 0.94), rgba(33, 77, 119, 0.62)),
        url('https://images.unsplash.com/photo-1559757175-0eb30cd8c063?auto=format&fit=crop&w=900&q=85');
    background-position: center 38%;
    color: #ffffff;
    border-color: #294e70;
    border-radius: 20px 20px 8px 8px;
    box-shadow: 0 12px 30px -16px rgba(20, 54, 98, 0.65);
}

/* Shared image-first card interaction */
.sensor-grid {
    gap: 20px;
    perspective: 1200px;
}

.sensor-card {
    isolation: isolate;
    min-height: 280px;
    padding: 0;
    will-change: transform;
}

.sensor-card::before {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: inherit;
    content: "";
    inset: 8px;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.sensor-card::after {
    background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.2) 46%, transparent 66%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    transform: translateX(-115%);
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.sensor-card:hover::after,
.sensor-card:focus-within::after {
    transform: translateX(115%);
}

.card-overlay {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    background: rgba(0, 0, 0, 0.18);
    inset: 0;
    mask-image: linear-gradient(to top, #000000 0%, transparent 40%);
    -webkit-mask-image: linear-gradient(to top, #000000 0%, transparent 40%);
    opacity: 0.9;
    position: absolute;
    transition: backdrop-filter 0.6s ease, background 0.6s ease, mask-image 0.6s ease, opacity 0.6s ease;
    z-index: -1;
}

.card-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
    padding: 22px 20px;
    position: relative;
    z-index: 1;
}

.card-content > .reading {
    bottom: 22px;
    position: absolute;
    right: 20px;
}

.card-details {
    bottom: 18px;
    left: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    transform: translateY(10px);
    order: 2;
    right: 132px;
    transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s,
        opacity 0.45s ease 0.14s,
        transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

.card-content > .card-top {
    margin: 0;
    position: absolute;
    right: 20px;
    top: 22px;
    z-index: 3;
}

.sensor-card .sensor-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    min-height: 0;
    max-width: calc(100% - 112px);
    order: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.sensor-card .reading {
    color: #ffffff;
    font-size: 1.65rem;
    margin-top: 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.12s;
}

.sensor-card .reading span,
.sensor-card .sensor-note {
    color: rgba(255, 255, 255, 0.78);
}

.sensor-card .sensor-note {
    font-size: 0.62rem;
    margin-top: 0;
    white-space: nowrap;
}

.sensor-card .card-top {
    margin-bottom: 0;
}

.sensor-card:hover .card-overlay,
.sensor-card:focus-within .card-overlay {
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    background: rgba(0, 0, 0, 0.4);
    mask-image: linear-gradient(to top, #000000 15%, #000000 72%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, #000000 15%, #000000 72%, transparent 100%);
    opacity: 1;
}

.sensor-card:hover .card-details,
.sensor-card:focus-within .card-details {
    max-height: 22px;
    opacity: 1;
    transform: translateY(0);
}

.sensor-card:hover .sensor-name,
.sensor-card:focus-within .sensor-name {
    transform: translateY(-30px);
}

.sensor-card:hover .reading,
.sensor-card:focus-within .reading {
    transform: translateY(-30px);
}

.sensor-card--pressure .sensor-name {
    color: #1b4d50;
    max-width: calc(100% - 142px);
    text-shadow: none;
}

.sensor-card--pressure .reading {
    color: #1b4d50;
    font-size: 1.4rem;
    text-shadow: none;
}

.sensor-card--pressure .reading span,
.sensor-card--pressure .sensor-note {
    color: #527b7d;
}

.sensor-card--pressure .reading span {
    font-size: 0.62rem;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.status,
.table-status {
    border-radius: 40px;
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status.normal,
.table-status.normal {
    background: #e1f3ec;
    color: #146b4a;
}

.status.warning,
.table-status.warning {
    background: #fef1da;
    color: #92671b;
}

.status.alert,
.table-status.alert {
    background: #fce8e6;
    color: #b13e38;
}

.sensor-name {
    color: #557272;
    font-size: 0.8rem;
    font-weight: 500;
    min-height: 38px;
    line-height: 1.3;
}

.sensor-card--temperature .sensor-name,
.sensor-card--heart .sensor-name,
.sensor-card--ecg .sensor-name {
    color: rgba(255, 255, 255, 0.82);
}

.reading {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 4px;
    color: #123b39;
    line-height: 1.2;
}

.sensor-card--temperature .reading,
.sensor-card--heart .reading,
.sensor-card--ecg .reading {
    color: #ffffff;
}

.reading span {
    color: #6b8585;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 3px;
}

.sensor-card--temperature .reading span,
.sensor-card--heart .reading span,
.sensor-card--ecg .reading span {
    color: rgba(255, 255, 255, 0.7);
}

.sensor-note {
    color: #8fa3a3;
    font-size: 0.68rem;
    margin-top: 8px;
}

.sensor-card--temperature .sensor-note,
.sensor-card--heart .sensor-note,
.sensor-card--ecg .sensor-note {
    color: rgba(255, 255, 255, 0.65);
}

/* ---------- 6. LOWER GRID ---------- */
.lower-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    margin: 0 auto;
    max-width: 1280px;
    padding: 24px 28px 72px;
    background: transparent;
}

.info-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    padding: 28px 28px 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 18px -12px rgba(15, 23, 42, 0.12);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.18);
    border-color: rgba(148, 163, 184, 0.35);
    transform: translateY(-2px);
}

.profile-status {
    align-items: center;
    background: #ecfdf5;
    border: 1px solid #d1fae5;
    border-radius: 999px;
    color: #047857;
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 600;
    gap: 7px;
    padding: 7px 12px;
    white-space: nowrap;
}

.status-dot {
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45);
    height: 7px;
    width: 7px;
    animation: status-pulse 2.4s ease-out infinite;
}

@keyframes status-pulse {
    0%, 65%, 100% { box-shadow: 0 0 0 0 rgba(57, 185, 130, 0.35); }
    82% { box-shadow: 0 0 0 5px rgba(57, 185, 130, 0); }
}

.patient-profile {
    align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    gap: 16px;
    padding: 18px 0 24px;
}

.avatar {
    align-items: center;
    background: linear-gradient(135deg, #d6f3ec, #bfe8e0);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 50%;
    color: #0f766e;
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    height: 56px;
    justify-content: center;
    width: 56px;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.patient-profile h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.patient-profile p {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 2px;
}

.patient-details {
    display: grid;
    gap: 22px 20px;
    grid-template-columns: 1fr 1fr;
    padding-top: 24px;
}

.patient-details div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 0 2px;
}

.patient-details span {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.patient-details strong {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

table {
    border-collapse: collapse;
    font-size: 0.9rem;
    width: 100%;
    margin-top: 18px;
    overflow: hidden;
    border-radius: 14px;
}

th {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0 12px 12px;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

td {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 15px 12px;
    font-weight: 500;
    color: #0f172a;
}

.measurement-row {
    transition: background 0.18s ease;
}

.measurement-row td:first-child::before {
    align-items: center;
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.1);
    border-radius: 7px;
    color: #0f766e;
    content: "";
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    margin-right: 10px;
    vertical-align: middle;
    width: 24px;
}

.measurement-row:nth-child(1) td:first-child::before {
    content: "°";
}

.measurement-row:nth-child(2) td:first-child::before {
    content: "~";
}

.measurement-row:nth-child(3) td:first-child::before {
    content: "⌁";
}

.measurement-row:hover {
    background: rgba(248, 250, 252, 0.8);
}

.measurement-row--alert {
    background: rgba(255, 247, 246, 0.8);
}

.measurement-row--alert:hover {
    background: rgba(255, 241, 239, 0.9);
}

.alert-message {
    align-items: flex-start;
    background: #fff7f6;
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-left: 4px solid #ef4444;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.alert-message:hover {
    background: #fff1f2;
    transform: translateX(2px);
}

.alert-mark {
    align-items: center;
    background: #f7d8d4;
    border-radius: 50%;
    color: #a33d36;
    display: inline-flex;
    flex: 0 0 22px;
    font-size: 0.8rem;
    font-weight: 800;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
}

.alert-message strong {
    font-size: 0.9rem;
    font-weight: 700;
    color: #991b1b;
}

.alert-message p {
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ---------- 7. STAFF ---------- */
.staff-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.staff-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
}

.staff-card {
    background: #ffffff;
    border: 1px solid #e3ecea;
    border-radius: 20px;
    padding: 24px 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.staff-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -8px rgba(18, 75, 70, 0.15);
}

.staff-avatar {
    align-items: center;
    background: #d7efea;
    border-radius: 50%;
    color: #146b5e;
    display: flex;
    font-size: 0.9rem;
    font-weight: 700;
    height: 52px;
    justify-content: center;
    width: 52px;
    margin-bottom: 16px;
    overflow: hidden;
}

.staff-avatar img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.staff-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #123b39;
}

.staff-role {
    color: #177a6e;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 4px 0 10px;
}

.staff-note {
    color: #7b9494;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ---------- 8. FOOTER ---------- */
.site-footer {
    align-items: center;
    background: #0d2c2b;
    color: #d9e5e4;
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr 1fr auto;
    padding: 32px 40px;
    border-radius: 32px 32px 0 0;
    margin-top: 20px;
}

.site-footer strong {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.site-footer p,
.footer-contact {
    color: #9db1b0;
    font-size: 0.78rem;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.copyright {
    white-space: nowrap;
    font-size: 0.72rem;
}

/* ---------- 9. MEDIA QUERIES ---------- */
@media (max-width: 1100px) {
    .sensor-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .staff-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 850px) {
    .site-header {
        padding: 10px 16px;
    }

    .header-inner {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 18px;
        min-height: auto;
    }

    .main-nav {
        order: 3;
        overflow-x: auto;
        padding-top: 6px;
        width: 100%;
        gap: 20px;
    }

    .hero-content {
        padding: 140px 24px 40px;
    }

    .hero-stats {
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-bottom: 40px;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .lower-grid {
        grid-template-columns: 1fr;
        padding: 24px 20px 60px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        border-radius: 24px 24px 0 0;
        padding: 28px 20px;
    }

    .copyright {
        white-space: normal;
    }
}

@media (max-width: 520px) {
    .hero-content {
        padding: 120px 20px 32px;
    }

    .sensor-grid,
    .staff-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section {
        padding: 40px 20px 10px;
    }

    .patient-details {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 34px;
    }
}

/* ---------- 10. BENTO SENSOR GRID ---------- */
@media (min-width: 1101px) {
    .sensor-grid {
        gap: 20px;
        grid-template-areas:
            "temperature temperature glucose heart"
            "temperature temperature pressure ecg";
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(220px, 1fr));
    }

    .sensor-card {
        min-height: 0;
    }

    .sensor-card--temperature {
        grid-area: temperature;
    }

    .sensor-card--glucose {
        grid-area: glucose;
    }

    .sensor-card--heart {
        grid-area: heart;
    }

    .sensor-card--pressure {
        grid-area: pressure;
    }

    .sensor-card--ecg {
        grid-area: ecg;
    }
}

@media (min-width: 851px) and (max-width: 1100px) {
    .sensor-grid {
        gap: 20px;
        grid-template-areas:
            "temperature temperature glucose"
            "heart pressure ecg";
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(220px, 1fr));
    }

    .sensor-card {
        min-height: 0;
    }

    .sensor-card--temperature {
        grid-area: temperature;
    }

    .sensor-card--glucose {
        grid-area: glucose;
    }

    .sensor-card--heart {
        grid-area: heart;
    }

    .sensor-card--pressure {
        grid-area: pressure;
    }

    .sensor-card--ecg {
        grid-area: ecg;
    }
}

@media (max-width: 850px) {
    .sensor-grid {
        grid-template-areas: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }
}

@media (max-width: 520px) {
    .sensor-grid {
        grid-template-columns: 1fr;
    }
}