.modal-actions.service-booking-actions { flex-direction: column; align-items: stretch; }
.booking-person-fields { display: grid; gap: 16px; margin: 20px 0; padding: 18px; border: 1px solid #b2d2f3; border-radius: 16px; min-width: 0; }
.booking-person-fields legend { font-weight: 700; padding: 0 6px; }
.booking-person-fields input { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid #b2d2f3; border-radius: 10px; font: inherit; }
/* GENERAL */
body {
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    background-color: #f4f8fc;
}

[hidden] {
    display: none !important;
}

/* HEADER */
.sticky-header {
    position: sticky;
    top: 0;
    background: #2b6cb0;
    color: white;
    padding: 15px 40px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* HERO */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    background: white;
}

.hero-text h1 {
    font-size: 45px;
    color: #2b6cb0;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 20px;
}

.hero-image img {
    width: 400px;
    border-radius: 20px;
}

/* BUTTONS */
.primary-btn {
    background: #2b6cb0;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

.secondary-btn {
    background: white;
    border: 2px solid #2b6cb0;
    color: #2b6cb0;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
}

/* SECTIONS */
.section {
    padding: 50px;
}

.light-bg {
    background: #eef3f9;
}

.section-title {
    color: black;
    font-size: 32px;
    margin-bottom: 25px;
    text-align: center;
}

/* CARD LAYOUT */
.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.center {
    justify-content: center;
}

/* PROMO CARDS */
.promo-card {
    background: white;
    width: 280px;
    height: 260px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* SERVICE CARDS */
.service-card {
    background: white;
    width: 220px;
    height: 180px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ICONS */
.icon {
    font-size: 45px;
    color: #2b6cb0;
    margin-top: 10px;
}

/* TEXT */
h3 {
    color: black;
    font-size: 20px;
    margin: 5px 0;
}

.price {
    color: #2b6cb0;
    font-weight: bold;
    font-size: 18px;
}

.includes {
    font-size: 13px;
    color: #666;
}

/* HOVER */
.promo-card:hover,
.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background: #e6f0ff;
}

/* APPOINTMENTS */
.appointment-card {
    background: white;
    padding: 20px;
    width: 250px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.status.pending {
    background: orange;
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
}

/* REVIEWS */
.reviews {
    display: flex;
    gap: 20px;
}

.review-card {
    background: white;
    width: 250px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(0,0,0,0.3);
}

.modal-content.large {
    background: white;
    margin: auto;
    padding: 40px;
    width: 500px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.calendar {
    width: 80%;
    padding: 12px;
    font-size: 16px;
}

/* BUTTONS */
button {
    background: #2b6cb0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.upload-btn {
    background: #155b9c;
    color: #fff;
}

/* FOOTER */
footer {
    background: #2b6cb0;
    color: white;
    padding: 20px;
    text-align: center;
}

/* TOP GRID */
.top-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 20px;
    padding: 40px;
}

.tagline-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
}

.image-box img {
    width: 100%;
    border-radius: 15px;
}

.appointment-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
}

/* WHO WE ARE */
.who-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 40px;
    gap: 20px;
    align-items: center;
}

.who-image img {
    width: 100%;
    border-radius: 15px;
}

/* PURPOSE MISSION VISION */
.pmv-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 40px;
    gap: 20px;
}

.pmv-box {
    background: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

/* REVIEWS */
.reviews-section {
    padding: 40px;
    background: #eef3f9;
    text-align: center;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
}

/* FOOTER */
.footer {
    background: #2b6cb0;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 30px;
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 20px;
    padding: 40px;
    background: linear-gradient(to right, #eef3f9, #dce8f7);
}

.hero-text {
    background: white;
    padding: 40px;
    border-radius: 15px;
}

.hero-text h1 {
    font-size: 40px;
    color: #2b6cb0;
}

.hero-text h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    height: 100%;
    object-fit: cover;
}

/* WHO WE ARE BANNER */
.who-banner {
    background: url('https://images.unsplash.com/photo-1579154204601-01588f351e67');
    background-size: cover;
    background-position: center;
    height: 350px;
    position: relative;
}

.who-overlay {
    background: rgba(0,0,0,0.5);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px;
}

.who-overlay h2 {
    font-size: 36px;
}

.who-overlay p {
    font-size: 18px;
    width: 50%;
}

/* PURPOSE MISSION VISION */
.pmv-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 40px;
    gap: 20px;
    background: #eef3f9;
}

.pmv-box {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    font-size: 18px;
}

/* REVIEWS */
.reviews-section {
    padding: 40px;
    text-align: center;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

/* FOOTER */
.footer {
    background: #2b6cb0;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 30px;
}

/* BIG HERO */
.hero-big {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #2b6cb0;
    color: white;
    padding: 80px;
    align-items: center;
}

.hero-left h1 {
    font-size: 60px;
}

.hero-left h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.hero-right img {
    width: 100%;
    border-radius: 20px;
}

/* WHO WE ARE BIG */
.who-big {
    background: url('https://images.unsplash.com/photo-1579154204601-01588f351e67');
    background-size: cover;
    background-position: center;
    height: 400px;
    position: relative;
}

.who-content {
    background: rgba(0,0,0,0.6);
    color: white;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 80px;
}

.who-content h2 {
    font-size: 40px;
}

.who-content p {
    font-size: 20px;
    width: 50%;
}

/* PURPOSE MISSION VISION BIG */
.pmv-big {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 60px;
    gap: 20px;
    background: #eef3f9;
}

.pmv-card {
    background: #2b6cb0;
    color: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    font-size: 18px;
}

/* REVIEWS */
.reviews-section {
    padding: 60px;
    text-align: center;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.review-card img {
    width: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

/* FOOTER */
.footer {
    background: #2b6cb0;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 40px;
}

/* HERO GRID */
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    padding: 60px;
}

.hero-box {
    background: #2b6cb0;
    color: white;
    padding: 40px;
    border-radius: 20px;
}

.hero-box h1 {
    font-size: 48px;
}

.hero-box h2 {
    font-size: 26px;
}

.copy {
    margin: 20px 0;
    font-size: 16px;
}

.hero-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

/* WHO SECTION */
.who-section {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    padding: 60px;
    gap: 30px;
}

.who-text h2 {
    font-size: 36px;
}

.who-text p {
    font-size: 18px;
}

.who-image img {
    width: 100%;
    border-radius: 20px;
}

/* PMV */
.pmv-section {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 60px;
    gap: 20px;
}

.pmv-card {
    background: #2b6cb0;
    color: white;
    padding: 40px;
    border-radius: 20px;
    font-size: 18px;
}

/* REVIEWS */
.reviews-section {
    padding: 60px;
    text-align: center;
}

.reviews {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.review-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.review-card img {
    width: 60px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.review-btn {
    margin-top: 40px;
}

/* FOOTER */
.footer {
    background: #2b6cb0;
    color: white;
    display: flex;
    justify-content: space-around;
    padding: 40px;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #eaf4ff;
    color: #0d477e;
    box-shadow: none;
    line-height: 1;
    font-size: 18px;
    cursor: pointer;
}

.fasting {
    color: red;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.modal-content.large {
    background: white;
    margin: auto;
    padding: 40px;
    width: 500px;
    border-radius: 12px;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

/* PROFILE PAGE */
.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    padding: 40px;
}

.profile-left {
    display: grid;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 20px;
}

.profile-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.profile-right {
    display: flex;
    align-items: start;
}

.user-card {
    background: #2b6cb0;
    color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    width: 100%;
}

.user-icon {
    font-size: 100px;
    margin-bottom: 10px;
}

.appointment-item {
    background: #eef3f9;
    padding: 15px;
    border-radius: 10px;
    margin-top: 10px;
}

.status.pending {
    background: orange;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
}

.service-info {
    font-size: 11px;
    line-height: 1.4;
    color: #5f6d7a;
    margin: 0;
}

.promo-card > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.promo-card .price,
.service-card .price {
    margin-top: auto;
}

.modal-content.large {
    width: min(500px, calc(100% - 32px));
    max-height: 90vh;
    overflow-y: auto;
}

.calendar {
    border: 1px solid #c9d6e6;
    border-radius: 10px;
    box-sizing: border-box;
    background: white;
}

.modal-note {
    color: #5b6b7b;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    width: 80%;
    margin: 12px auto 8px;
    text-align: left;
    font-weight: 600;
    color: #243b53;
}

.appointment-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.appointment-item p {
    margin: 0;
}

.appointment-item .status {
    width: fit-content;
    margin-top: 6px;
}

button.secondary-btn,
.appointment-edit-btn {
    background: white;
    color: #2b6cb0;
    border: 2px solid #2b6cb0;
    border-radius: 20px;
}

.appointment-edit-btn {
    margin-top: 12px;
    align-self: flex-start;
}

.user-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    width: 100%;
}

button.action-btn.primary-btn {
    border: none;
    border-radius: 25px;
    padding: 12px 25px;
    cursor: pointer;
}

.logout-btn {
    background: white;
    color: #b42318;
    border: 2px solid #f3b3ab;
}

.logout-btn:hover {
    background: #fff4f2;
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-right {
        justify-content: center;
    }

    .calendar,
    .form-label {
        width: 100%;
    }
}

html {
    scroll-behavior: smooth;
}

body.home-page {
    --brand-blue: #0f4b8f;
    --brand-blue-dark: #082f59;
    --brand-blue-soft: #dceefe;
    --brand-ink: #18314f;
    --brand-sky: #f5fbff;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(167, 212, 255, 0.32), transparent 28%),
        radial-gradient(circle at 85% 18%, rgba(196, 232, 255, 0.46), transparent 22%),
        radial-gradient(circle at 50% 48%, rgba(181, 218, 252, 0.2), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 36%, #f4f9ff 62%, #f8fbff 100%);
    color: var(--brand-ink);
}

body.home-page a {
    text-decoration: none;
}

body.home-page .sticky-header.home-header {
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 28px;
    border-bottom: 1px solid rgba(15, 75, 143, 0.1);
    box-shadow: 0 14px 34px rgba(12, 57, 107, 0.08);
    backdrop-filter: blur(12px);
}

body.home-page .home-nav {
    max-width: 1520px;
    margin: 0 auto;
    gap: clamp(32px, 5vw, 76px);
}

body.home-page .home-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-blue-dark);
}

body.home-page .home-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 75, 143, 0.14);
}

body.home-page .home-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.home-page .home-brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.home-page .home-brand-subtitle {
    font-size: 0.82rem;
    color: #54779f;
}

body.home-page .home-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(34px, 4vw, 58px);
    margin: 0;
    padding: 0;
    margin-left: auto;
}

body.home-page .home-nav-links li {
    list-style: none;
}

body.home-page .home-nav-links a {
    position: relative;
    color: var(--brand-blue);
    font-size: 1.06rem;
    font-weight: 700;
    padding: 12px 0;
    transition: color 0.25s ease, transform 0.25s ease;
}

body.home-page .home-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #40a9ff, var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

body.home-page .home-nav-links a:hover,
body.home-page .home-nav-links a:focus-visible {
    color: #2a7fc3;
    transform: translateY(-1px);
}

body.home-page .home-nav-links a:hover::after,
body.home-page .home-nav-links a:focus-visible::after {
    transform: scaleX(1);
}

body.home-page .hero-grid.home-hero-grid {
    max-width: 1240px;
    margin: 28px auto 34px;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    padding: 72px;
    border-radius: 34px;
    background:
        linear-gradient(115deg, rgba(8, 47, 89, 0.82), rgba(15, 75, 143, 0.66)),
        url("https://images.unsplash.com/photo-1606206873764-fd15e242df52?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D") center/cover;
    box-shadow: 0 24px 70px rgba(10, 44, 82, 0.2);
    overflow: hidden;
}

body.home-page .hero-image-box {
    display: none;
}

body.home-page .hero-box.home-hero-box {
    max-width: 680px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: white;
}

body.home-page .hero-box h1 {
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.04em;
}

body.home-page .hero-box h2 {
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

body.home-page .copy {
    max-width: 610px;
    margin: 0 0 34px;
    font-size: 1.12rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

body.home-page .primary-btn.home-primary-btn,
body.home-page .hero-box .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 34px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-blue), #1761b4);
    font-size: 1.03rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 16px 34px rgba(13, 75, 143, 0.32);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body.home-page .primary-btn.home-primary-btn:hover,
body.home-page .hero-box .primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(13, 75, 143, 0.36);
}

body.home-page .home-story,
body.home-page .home-pmv,
body.home-page .accreditation-section,
body.home-page .home-reviews,
body.home-page .home-footer {
    max-width: 1240px;
    margin: 0 auto;
}

body.home-page .home-story {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: stretch;
    gap: 28px;
    padding: 24px 0 42px;
}

body.home-page .who-text,
body.home-page .home-story-card,
body.home-page .review-card,
body.home-page .accreditation-card {
    box-shadow: 0 16px 44px rgba(16, 55, 97, 0.08);
}

body.home-page .who-text {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(173, 210, 245, 0.55);
    border-radius: 30px;
    padding: 40px;
    height: 100%;
    box-sizing: border-box;
}

body.home-page .section-kicker {
    margin: 0 0 12px;
    color: #3f86c9;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

body.home-page .who-text h2,
body.home-page .section-heading h2,
body.home-page .home-reviews h2 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 4vw, 3.05rem);
    line-height: 1.12;
    color: var(--brand-blue-dark);
}

body.home-page .who-text p,
body.home-page .pmv-card p,
body.home-page .home-footer p,
body.home-page .review-card p {
    line-height: 1.8;
}

body.home-page .who-image {
    display: flex;
    height: 100%;
    min-width: 0;
}

body.home-page .home-story-image-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background:
        linear-gradient(165deg, rgba(255, 255, 255, 0.4), rgba(163, 210, 250, 0.22)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(7, 46, 90, 0.08));
    padding: 18px;
    border: 1px solid rgba(173, 210, 245, 0.5);
    box-sizing: border-box;
}

body.home-page .home-story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 24px;
}

body.home-page .lab-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    overflow: hidden;
    border-radius: 24px;
}

body.home-page .lab-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.55s ease;
}

body.home-page .lab-carousel-slide.is-active {
    opacity: 1;
    z-index: 1;
}

body.home-page .lab-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 42, 79, 0.66);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transform: translateY(-50%);
}

body.home-page .lab-carousel-prev { left: 30px; }
body.home-page .lab-carousel-next { right: 30px; }

body.home-page .lab-carousel-dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 3;
    display: flex;
    gap: 7px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(5, 42, 79, 0.48);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

body.home-page .lab-carousel-dots button {
    width: 8px;
    min-width: 8px;
    height: 8px;
    min-height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    cursor: pointer;
}

body.home-page .lab-carousel-dots button.is-active {
    width: 20px;
    min-width: 20px;
    border-radius: 999px;
    background: #fff;
}

@media (max-width: 640px) {
    body.home-page .lab-carousel-prev { left: 14px; }
    body.home-page .lab-carousel-next { right: 14px; }

    body.home-page .lab-carousel-arrow {
        width: 38px;
        min-width: 38px;
        height: 38px;
        min-height: 38px;
    }

    body.home-page .lab-carousel-dots {
        bottom: 12px;
        gap: 6px;
        padding: 5px 7px;
    }

    body.home-page .lab-carousel-dots button {
        width: 7px;
        min-width: 7px;
        height: 7px;
        min-height: 7px;
    }

    body.home-page .lab-carousel-dots button.is-active {
        width: 18px;
        min-width: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.home-page .lab-carousel-slide { transition: none; }
}

body.home-page .home-pmv {
    padding: 26px 0 56px;
    gap: 24px;
}

body.home-page .pmv-card {
    position: relative;
    background:
        linear-gradient(160deg, #0e4c91 0%, #0a3769 58%, #041e3b 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

body.home-page .pmv-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent 45%, rgba(0, 0, 0, 0.18));
    pointer-events: none;
}

body.home-page .pmv-card > * {
    position: relative;
    z-index: 1;
}

body.home-page .pmv-card h3,
body.home-page .pmv-card p,
body.home-page .pmv-card .section-kicker {
    color: white;
}

body.home-page .pmv-card .section-kicker {
    color: rgba(215, 236, 255, 0.88);
}

body.home-page .section-heading {
    text-align: center;
    margin-bottom: 28px;
}

body.home-page .accreditation-section {
    padding: 24px 0 60px;
}

body.home-page .accreditation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

body.home-page .accreditation-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(173, 210, 245, 0.55);
    border-radius: 26px;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home-page .accreditation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(18, 64, 114, 0.12);
}

body.home-page .accreditation-card img {
    width: 100%;
    max-width: 180px;
    max-height: 72px;
    object-fit: contain;
    filter: saturate(1.04);
}

body.home-page .home-reviews {
    position: relative;
    overflow: visible;
    padding: 18px 0 64px;
}

body.home-page .home-reviews > .section-kicker {
    display: block;
    text-align: center;
}

body.home-page .home-reviews .reviews {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 0;
}

body.home-page .review-empty {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(173, 210, 245, 0.5);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    color: #486988;
    text-align: center;
}

body.home-page .home-reviews .reviews > .review-card:nth-child(n + 4) {
    display: none;
}

body.home-page .review-card {
    width: auto;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(173, 210, 245, 0.5);
    text-align: left;
}

body.home-page .review-card h4 {
    margin: 8px 0 6px;
    font-size: 1.15rem;
    color: var(--brand-blue-dark);
}

body.home-page .review-stars {
    margin: 4px 0 0;
    color: #f2b233;
    letter-spacing: 0.14em;
    font-size: 0.96rem;
}

body.home-page .review-btn .secondary-btn {
    padding: 14px 26px;
    border-color: var(--brand-blue);
    color: var(--brand-blue);
    font-weight: 700;
}

body.home-page .doctor-availability-section {
    display: grid;
    grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 1240px;
    margin: 0 auto 24px;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(15, 75, 143, 0.09);
    box-shadow: 0 18px 36px rgba(15, 75, 143, 0.08);
}

body.home-page .doctor-availability-heading h2,
body.home-page .doctor-availability-heading .section-kicker {
    margin: 0;
}

body.home-page .doctor-availability-heading h2 {
    margin-top: 6px;
    color: var(--brand-blue-dark);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.2;
}

body.home-page .doctor-schedule-list {
    display: grid;
    gap: 10px;
}

body.home-page .doctor-schedule-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f5faff;
    border: 1px solid rgba(15, 75, 143, 0.08);
}

body.home-page .doctor-schedule-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e4f1ff;
    color: var(--brand-blue);
}

body.home-page .doctor-schedule-copy h3,
body.home-page .doctor-schedule-copy p,
body.home-page .doctor-schedule-time span,
body.home-page .doctor-schedule-time strong {
    margin: 0;
}

body.home-page .doctor-schedule-copy h3 {
    color: var(--brand-blue-dark);
    font-size: 0.98rem;
    line-height: 1.25;
}

body.home-page .doctor-schedule-copy p,
body.home-page .doctor-schedule-time span {
    color: #5b7898;
    font-size: 0.84rem;
}

body.home-page .doctor-schedule-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
    white-space: nowrap;
}

body.home-page .doctor-schedule-time strong {
    color: var(--brand-blue-dark);
    font-size: 0.9rem;
}

body.home-page .doctor-schedule-empty {
    margin: 0;
    color: #5b7898;
    font-size: 0.9rem;
}

body.home-page .home-footer {
    gap: 28px;
    align-items: stretch;
    margin-bottom: 42px;
    padding: 34px;
    border-radius: 32px;
    background:
        linear-gradient(155deg, #082f59 0%, #0e4a8d 56%, #1561b6 100%);
    box-shadow: 0 24px 54px rgba(11, 50, 95, 0.22);
}

body.home-page .home-footer-copy {
    flex: 0 1 38%;
}

body.home-page .home-footer h3,
body.home-page .home-footer p,
body.home-page .home-footer .section-kicker,
body.home-page .footer-map-caption {
    color: white;
}

body.home-page .home-footer .section-kicker {
    color: rgba(214, 235, 255, 0.86);
}

body.home-page .home-footer p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
}

@media (max-width: 640px) {
    body.home-page .doctor-availability-section {
        grid-template-columns: 1fr;
        margin-left: 10px;
        margin-right: 10px;
        padding: 20px;
    }

    body.home-page .doctor-schedule-item {
        grid-template-columns: 1fr;
    }

    body.home-page .doctor-schedule-time {
        align-items: flex-start;
        text-align: left;
        white-space: normal;
    }
}

body.home-page .footer-map-link {
    position: relative;
    flex: 1 1 62%;
    min-height: 320px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.home-page .footer-map-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 33, 66, 0.08), rgba(5, 27, 53, 0.42));
    transition: opacity 0.25s ease;
}

body.home-page .footer-map-link:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.18);
}

body.home-page .footer-map-link:hover::after {
    opacity: 0.82;
}

body.home-page .footer-map-image {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.home-page .footer-map-caption {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 1;
    padding: 12px 18px;
    border-radius: 999px;
    background: rgba(8, 47, 89, 0.78);
    font-weight: 700;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 0.75s ease, transform 0.75s ease;
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    body.home-page .hero-grid.home-hero-grid,
    body.home-page .home-story,
    body.home-page .home-pmv,
    body.home-page .accreditation-section,
    body.home-page .home-reviews,
    body.home-page .home-footer {
        margin-left: 20px;
        margin-right: 20px;
    }

    body.home-page .accreditation-grid,
    body.home-page .home-reviews .reviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.home-page .home-footer {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    body.home-page .sticky-header.home-header {
        padding: 12px 18px;
    }

    body.home-page .home-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    body.home-page .home-nav-links {
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    body.home-page .hero-grid.home-hero-grid {
        min-height: 520px;
        padding: 48px 28px;
        margin-top: 18px;
    }

    body.home-page .home-story,
    body.home-page .home-pmv {
        grid-template-columns: 1fr;
    }

    body.home-page .hero-box h1 {
        font-size: 2.7rem;
    }
}

@media (max-width: 640px) {
    body.home-page .hero-grid.home-hero-grid,
    body.home-page .home-story,
    body.home-page .home-pmv,
    body.home-page .accreditation-section,
    body.home-page .home-reviews,
    body.home-page .home-footer {
        margin-left: 14px;
        margin-right: 14px;
    }

    body.home-page .hero-grid.home-hero-grid {
        padding: 40px 22px;
        border-radius: 24px;
    }

    body.home-page .accreditation-grid,
    body.home-page .home-reviews .reviews {
        grid-template-columns: 1fr;
    }

    body.home-page .who-text,
    body.home-page .home-story-image-frame,
    body.home-page .pmv-card,
    body.home-page .review-card,
    body.home-page .accreditation-card,
    body.home-page .home-footer {
        border-radius: 22px;
    }

    body.home-page .home-brand {
        align-items: flex-start;
    }

    body.home-page .home-brand-title {
        font-size: 0.98rem;
    }

    body.home-page .hero-box h1 {
        font-size: 2.2rem;
    }

    body.home-page .copy {
        font-size: 1rem;
    }

    body.home-page .footer-map-link {
        min-height: 250px;
    }
}

body.services-page {
    --brand-blue: #0f4b8f;
    --brand-blue-dark: #082f59;
    --brand-blue-soft: #dceefe;
    --brand-ink: #18314f;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(167, 212, 255, 0.18), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(196, 232, 255, 0.28), transparent 20%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #f7fbff 100%);
    color: var(--brand-ink);
}

body.services-page .sticky-header.home-header {
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 28px;
    border-bottom: 1px solid rgba(15, 75, 143, 0.1);
    box-shadow: 0 14px 34px rgba(12, 57, 107, 0.08);
    backdrop-filter: blur(12px);
}

body.services-page .home-nav {
    max-width: 1520px;
    margin: 0 auto;
    gap: clamp(32px, 5vw, 76px);
}

body.services-page .home-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-blue-dark);
    text-decoration: none;
}

body.services-page .home-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 75, 143, 0.14);
}

body.services-page .home-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.services-page .home-brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.services-page .home-brand-subtitle {
    font-size: 0.82rem;
    color: #54779f;
}

body.services-page .home-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(34px, 4vw, 58px);
    margin: 0;
    padding: 0;
    margin-left: auto;
}

body.services-page .home-nav-links li {
    list-style: none;
}

body.services-page .home-nav-links a {
    position: relative;
    color: var(--brand-blue);
    font-size: 1.06rem;
    font-weight: 700;
    padding: 12px 0;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

body.services-page .home-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #40a9ff, var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

body.services-page .home-nav-links a:hover,
body.services-page .home-nav-links a:focus-visible {
    color: #2a7fc3;
    transform: translateY(-1px);
}

body.services-page .home-nav-links a:hover::after,
body.services-page .home-nav-links a:focus-visible::after {
    transform: scaleX(1);
}

body.services-page .section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 20px 24px;
}

body.services-page .section-title {
    color: var(--brand-blue-dark);
    font-size: clamp(1.9rem, 3vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}

body.services-page .card-container {
    gap: 22px;
}

body.services-page .promo-card,
body.services-page .service-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, #3f84c9 0%, #246db3 56%, #145998 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 16px 34px rgba(20, 73, 128, 0.14);
}

body.services-page .promo-card::before,
body.services-page .service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 46%, rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

body.services-page .promo-card > *,
body.services-page .service-card > * {
    position: relative;
    z-index: 1;
}

body.services-page .promo-card {
    width: 300px;
    min-height: 300px;
    height: auto;
}

body.services-page .service-card {
    width: 230px;
    min-height: 230px;
    height: auto;
    justify-content: flex-start;
    gap: 8px;
}

body.services-page .promo-card:hover,
body.services-page .service-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 22px 38px rgba(22, 82, 141, 0.18);
    background: linear-gradient(160deg, #5a9ae0 0%, #347cc2 58%, #1c67ac 100%);
}

body.services-page .promo-card h3,
body.services-page .service-card h3,
body.services-page .price {
    color: white;
}

body.services-page .promo-card h3,
body.services-page .service-card h3 {
    font-size: 1.28rem;
    line-height: 1.25;
}

body.services-page .includes,
body.services-page .service-info {
    color: rgba(241, 248, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.55;
}

body.services-page .icon {
    color: #f1f8ff;
}

body.services-page .price {
    font-size: 1.05rem;
}

body.services-page .doctor-schedule-section {
    padding-top: 34px;
    padding-bottom: 10px;
}

body.services-page .doctor-schedule-panel {
    display: grid;
    grid-template-columns: minmax(190px, 0.35fr) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 22px;
    border: 1px solid rgba(15, 75, 143, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 36px rgba(15, 75, 143, 0.08);
    backdrop-filter: blur(12px);
}

body.services-page .doctor-schedule-heading {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.services-page .doctor-schedule-heading .section-kicker {
    margin: 0;
    color: #2a7fc3;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.services-page .doctor-schedule-heading h2 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.2;
}

body.services-page .doctor-schedule-list {
    display: grid;
    gap: 10px;
}

body.services-page .doctor-schedule-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 16px;
    border: 1px solid rgba(15, 75, 143, 0.09);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(239, 247, 255, 0.86));
}

body.services-page .doctor-schedule-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #e7f3ff;
    color: var(--brand-blue);
}

body.services-page .doctor-schedule-copy h3,
body.services-page .doctor-schedule-copy p {
    margin: 0;
}

body.services-page .doctor-schedule-copy h3 {
    color: var(--brand-blue-dark);
    font-size: 1rem;
    line-height: 1.25;
}

body.services-page .doctor-schedule-copy p {
    color: #5b7898;
    font-size: 0.9rem;
}

body.services-page .doctor-schedule-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    color: #456989;
    font-size: 0.84rem;
    white-space: nowrap;
}

body.services-page .doctor-schedule-time strong {
    color: var(--brand-blue-dark);
    font-size: 0.95rem;
}

body.services-page .doctor-schedule-empty {
    margin: 0;
    color: #5b7898;
}

.slot-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 2px 0 18px;
    padding: 10px 14px;
    border: 1px solid rgba(32, 140, 111, 0.24);
    border-radius: 14px;
    background: rgba(233, 250, 245, 0.92);
    color: #14745f;
    font-size: 0.92rem;
    font-weight: 800;
}

.slot-status.is-full {
    border-color: rgba(190, 62, 62, 0.26);
    background: rgba(255, 240, 240, 0.95);
    color: #a53b3b;
}

@media (max-width: 900px) {
    body.services-page .sticky-header.home-header {
        padding: 12px 18px;
    }

    body.services-page .home-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    body.services-page .home-nav-links {
        flex-wrap: wrap;
        gap: 16px 22px;
    }

    body.services-page .doctor-schedule-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body.services-page .home-brand {
        align-items: flex-start;
    }

    body.services-page .home-brand-title {
        font-size: 0.98rem;
    }

    body.services-page .section {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.services-page .promo-card,
    body.services-page .service-card {
        width: min(100%, 340px);
    }

    body.services-page .doctor-schedule-panel {
        padding: 18px;
        border-radius: 16px;
    }

    body.services-page .doctor-schedule-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.services-page .doctor-schedule-time {
        grid-column: 2;
        align-items: flex-start;
        white-space: normal;
    }
}

body.profile-page {
    --brand-blue: #0f4b8f;
    --brand-blue-dark: #082f59;
    --profile-blue-soft: #eaf4ff;
    --profile-blue-mist: #d8eaff;
    --profile-blue-haze: #f4f9ff;
    --profile-blue-glow: #b9d6f5;
    font-family: "Manrope", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(185, 214, 245, 0.34), transparent 24%),
        radial-gradient(circle at 82% 16%, rgba(215, 234, 255, 0.42), transparent 22%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 48%, #f9fbff 100%);
    color: #193452;
}

body.profile-page .sticky-header.home-header {
    background: rgba(255, 255, 255, 0.94);
    padding: 10px 28px;
    border-bottom: 1px solid rgba(15, 75, 143, 0.1);
    box-shadow: 0 14px 34px rgba(12, 57, 107, 0.08);
    backdrop-filter: blur(12px);
}

body.profile-page .home-nav {
    max-width: 1520px;
    margin: 0 auto;
    gap: clamp(32px, 5vw, 76px);
}

body.profile-page .home-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--brand-blue-dark);
    text-decoration: none;
}

body.profile-page .home-brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 75, 143, 0.14);
}

body.profile-page .home-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.profile-page .home-brand-title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

body.profile-page .home-brand-subtitle {
    font-size: 0.82rem;
    color: #54779f;
}

body.profile-page .home-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(34px, 4vw, 58px);
    margin: 0;
    padding: 0;
    margin-left: auto;
}

body.profile-page .home-nav-links li {
    list-style: none;
}

body.profile-page .home-nav-links a {
    position: relative;
    color: var(--brand-blue);
    font-size: 1.06rem;
    font-weight: 700;
    padding: 12px 0;
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

body.profile-page .home-nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 3px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #40a9ff, var(--brand-blue));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

body.profile-page .home-nav-links a:hover,
body.profile-page .home-nav-links a:focus-visible {
    color: #2a7fc3;
    transform: translateY(-1px);
}

body.profile-page .home-nav-links a:hover::after,
body.profile-page .home-nav-links a:focus-visible::after {
    transform: scaleX(1);
}

body.profile-page .profile-dashboard {
    max-width: 1240px;
    margin: 28px auto 40px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    padding: 0 20px;
}

body.profile-page .profile-dashboard[hidden],
body.profile-page .profile-guest-gate[hidden] {
    display: none !important;
}

body.profile-page .profile-guest-gate {
    max-width: 1240px;
    margin: 32px auto 44px;
    padding: 0 20px;
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.profile-page .profile-guest-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 42px 40px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.92));
    border: 1px solid rgba(177, 213, 247, 0.55);
    border-radius: 30px;
    box-shadow: 0 18px 42px rgba(16, 55, 97, 0.09);
}

body.profile-page .profile-guest-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f67ad, #0f4b8f);
    color: white;
    font-size: 1.8rem;
    box-shadow: 0 16px 28px rgba(15, 75, 143, 0.2);
}

body.profile-page .profile-guest-card h1 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: var(--brand-blue-dark);
}

body.profile-page .profile-guest-card p:not(.section-kicker) {
    max-width: 620px;
    margin: 0 auto;
    color: #597699;
    line-height: 1.85;
}

body.profile-page .profile-guest-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}

body.profile-page .profile-guest-actions .primary-btn,
body.profile-page .profile-guest-actions .secondary-btn {
    min-width: 180px;
    text-align: center;
    text-decoration: none;
}

body.profile-page .profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.profile-page .profile-sidebar .profile-stats {
    grid-template-columns: 1fr;
    gap: 14px;
}

body.profile-page .profile-sidebar .profile-stat-card {
    padding: 18px 20px;
}

body.profile-page .profile-sidebar-card,
body.profile-page .profile-side-note,
body.profile-page .profile-banner,
body.profile-page .profile-stat-card,
body.profile-page .profile-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(177, 213, 247, 0.55);
    border-radius: 28px;
    box-shadow: 0 16px 40px rgba(16, 55, 97, 0.08);
}

body.profile-page .profile-sidebar-card {
    padding: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(234, 244, 255, 0.92));
}

body.profile-page .profile-avatar-wrap {
    position: relative;
    display: inline-flex;
    margin-bottom: 18px;
}

body.profile-page .profile-avatar {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #7eb7eb, #2e75bc 58%, #0f4b8f 100%);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(61, 101, 183, 0.24);
}

body.profile-page .profile-avatar-status {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1ed760;
    border: 4px solid white;
}

body.profile-page .profile-sidebar-card h1 {
    margin: 0 0 8px;
    font-size: 2rem;
    line-height: 1.05;
    color: var(--brand-blue-dark);
}

body.profile-page .section-kicker {
    margin: 0 0 10px;
    color: #5b8dc8;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

body.profile-page .profile-role {
    margin: 0 0 22px;
    color: #58759b;
    line-height: 1.7;
}

body.profile-page .profile-quick-meta {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

body.profile-page .profile-meta-chip {
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #e6f1ff);
    border: 1px solid rgba(188, 214, 244, 0.78);
}

body.profile-page .profile-meta-chip span,
body.profile-page .profile-detail-chip span,
body.profile-page .profile-stat-card span,
body.profile-page .appointment-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7291b6;
}

body.profile-page .profile-meta-chip strong {
    display: block;
    margin-top: 6px;
    color: #22466f;
    font-size: 0.98rem;
}

body.profile-page .profile-sidebar-actions {
    gap: 12px;
}

body.profile-page .profile-action-primary {
    border: none;
    padding: 14px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f67ad, #0f4b8f);
    box-shadow: 0 14px 28px rgba(15, 75, 143, 0.22);
}

body.profile-page .profile-side-note {
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(240, 248, 255, 0.98), rgba(225, 239, 255, 0.9));
}

body.profile-page .profile-side-note h3 {
    margin-top: 0;
    color: var(--brand-blue-dark);
}

body.profile-page .profile-side-note p {
    color: #54779f;
    line-height: 1.75;
}

body.profile-page .profile-side-note i {
    margin-right: 8px;
}

body.profile-page .profile-main {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

body.profile-page .profile-banner {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background: linear-gradient(135deg, #0d437e 0%, #0f4b8f 58%, #165a9f 100%);
}

body.profile-page .profile-banner::before,
body.profile-page .profile-banner::after {
    content: none;
}

body.profile-page .profile-banner-copy,
body.profile-page .profile-banner-tags {
    position: relative;
    z-index: 1;
}

body.profile-page .profile-banner h2 {
    margin: 8px 0 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    color: white;
    max-width: 760px;
}

body.profile-page .profile-banner p {
    max-width: 720px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

body.profile-page .profile-banner .section-kicker {
    color: rgba(255, 255, 255, 0.78);
}

body.profile-page .profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

body.profile-page .profile-stat-card {
    padding: 20px 22px;
}

body.profile-page .profile-stat-card span {
    font-size: 0.76rem;
}

body.profile-page .profile-stat-card:nth-child(1) {
    background: linear-gradient(135deg, #f7fbff, #e6f1ff);
}

body.profile-page .profile-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #edf6ff, #d9eaff);
}

body.profile-page .profile-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #f8fbff, #deeeff);
}

body.profile-page .profile-stat-card strong {
    display: block;
    margin-top: 8px;
    font-size: 1.85rem;
    color: #21456f;
}

body.profile-page .profile-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

body.profile-page .profile-card {
    padding: 28px;
}

body.profile-page .profile-card-lg {
    grid-column: span 2;
}

body.profile-page .profile-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}

body.profile-page .profile-card h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #1f3e68;
}

body.profile-page .profile-appointment-item {
    margin-top: 0;
    background: linear-gradient(135deg, #f7fbff, #eaf4ff);
    border: 1px solid rgba(190, 214, 244, 0.72);
    padding: 22px;
    gap: 16px;
}

body.profile-page .profile-appointment-top {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

body.profile-page .profile-appointment-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

body.profile-page .profile-appointment-top h4 {
    margin: 8px 0 0;
    font-size: 1.55rem;
    color: #1b416c;
}

body.profile-page .profile-appointment-grid,
body.profile-page .profile-detail-chip-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

body.profile-page .profile-detail-chip {
    padding: 16px;
    border-radius: 18px;
    background: white;
    border: 1px solid rgba(194, 217, 245, 0.68);
    box-shadow: 0 10px 18px rgba(32, 72, 119, 0.05);
}

body.profile-page .profile-detail-chip p {
    margin: 8px 0 0;
    color: #29496d;
    line-height: 1.6;
}

body.profile-page .profile-payment-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
}

body.profile-page .profile-payment-status.is-pending {
    background: #fff3cc;
    color: #795700;
}

body.profile-page .profile-payment-status.is-paid-counter {
    background: #d9f8e8;
    color: #087144;
}

body.profile-page .profile-payment-status.is-confirmed-online {
    background: #dcf1ff;
    color: #075d9c;
}

body.profile-page .profile-payment-action {
    margin-top: 9px;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: #0b69a8;
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(11, 105, 168, .18);
}
body.profile-page .profile-payment-action[hidden] { display: none !important; }

body.profile-page .profile-empty-state {
    min-height: 188px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f7fbff, #eaf4ff);
    color: #56708f;
}

body.profile-page .profile-empty-state i {
    font-size: 2rem;
    color: #4e7fb6;
    margin-bottom: 12px;
}

body.profile-page .profile-results-list {
    display: grid;
    gap: 14px;
}

body.profile-page .profile-result-item {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #f8fbff, #e8f2ff);
    border: 1px solid rgba(197, 218, 243, 0.65);
}

body.profile-page .profile-result-preview {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f4f8ff, #e4effd);
    border: 1px solid rgba(186, 210, 239, 0.82);
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #3c6ea7;
    font-size: 1.6rem;
}

body.profile-page .profile-result-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.profile-page .profile-result-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

body.profile-page .profile-result-copy small {
    color: #5f7690;
    line-height: 1.45;
}

body.profile-page .profile-result-copy strong {
    color: #21456f;
}

body.profile-page .profile-result-copy span {
    color: #58779a;
    line-height: 1.55;
    word-break: break-word;
}

body.profile-page .profile-result-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #1c67ad, #0f4b8f);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 22px rgba(15, 75, 143, 0.16);
}

body.profile-page .profile-result-open:hover,
body.profile-page .profile-result-open:focus-visible {
    background: linear-gradient(135deg, #2a75bc, #0b3e75);
}

body.profile-page .profile-history-list {
    display: grid;
    gap: 14px;
}

body.profile-page .profile-history-item {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fbff, #e8f2ff);
    border: 1px solid rgba(197, 218, 243, 0.65);
}

body.profile-page .profile-timeline-item {
    position: relative;
    padding-left: 44px;
}

body.profile-page .profile-timeline-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 20px;
    width: 12px;
    height: 12px;
    border: 3px solid #24a1a1;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 0 0 4px #e2f6f6;
}

body.profile-page .profile-timeline-item::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 38px;
    bottom: -18px;
    width: 2px;
    background: #cfe7f4;
}

body.profile-page .profile-timeline-item:last-child::after {
    display: none;
}

body.profile-page .profile-timeline-item small {
    display: block;
    margin-bottom: 5px;
    color: #1c8c8c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.profile-page .profile-history-item strong {
    color: #25486f;
}

body.profile-page .profile-history-item span {
    font-weight: 700;
    color: #4e7aa7;
}

body.profile-page .profile-history-item > div span {
    display: block;
    margin-top: 6px;
    font-weight: 600;
    color: #6a86a7;
}

body.profile-page .profile-history-item.is-empty {
    justify-content: center;
    text-align: center;
}

body.profile-page .profile-history-item.is-empty strong,
body.profile-page .profile-history-item.is-empty span {
    display: block;
}

body.profile-page .profile-queue-status,
body.profile-page .profile-notifications-list,
body.profile-page .profile-messages-list {
    display: grid;
    gap: 10px;
}

body.profile-page .queue-ticket {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid rgba(43, 108, 176, 0.16);
    border-radius: 16px;
    background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

body.profile-page .queue-ticket span {
    color: #1f5f99;
    font-size: 1.75rem;
    font-weight: 800;
}

body.profile-page .queue-ticket strong {
    color: #183a5c;
}

body.profile-page .queue-ticket p {
    margin: 0;
    color: #5d7089;
    line-height: 1.5;
}

body.profile-page .profile-notification-item {
    display: grid;
    gap: 5px;
    padding: 12px 14px;
    border: 1px solid rgba(146, 185, 232, 0.7);
    border-radius: 14px;
    background: #fbfdff;
}

body.profile-page .profile-notification-item.is-unread {
    border-color: rgba(43, 108, 176, 0.42);
    background: #eef6ff;
}

body.profile-page .profile-notification-item strong,
body.profile-page .profile-message-bubble strong {
    color: #163d63;
}

body.profile-page .profile-notification-item span,
body.profile-page .profile-notification-item small,
body.profile-page .profile-message-bubble span,
body.profile-page .profile-message-bubble small {
    color: #607590;
    line-height: 1.45;
}

body.profile-page .profile-messages-list {
    max-height: 260px;
    overflow-y: auto;
    padding-right: 4px;
}

body.profile-page .profile-message-bubble {
    display: grid;
    gap: 5px;
    max-width: 82%;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f3f8ff;
}

body.profile-page .profile-message-bubble.is-user {
    justify-self: end;
    background: #e7f2ff;
}

body.profile-page .profile-message-bubble.is-admin {
    justify-self: start;
    background: #f7f9fc;
}

body.profile-page .profile-message-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}

body.profile-page .compact-profile-btn {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.notification-bell,
.message-fab {
    position: relative;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(146, 185, 232, 0.85);
    background: #ffffff;
    color: #0f4b8f;
    box-shadow: 0 12px 26px rgba(15, 75, 143, 0.16);
}

.notification-bell {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    padding: 0;
    border-radius: 14px;
}

.message-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1400;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 999px;
    font-size: 1.35rem;
}

.user-message-drawer {
    position: fixed;
    right: 24px;
    bottom: 96px;
    z-index: 1450;
    width: min(380px, calc(100vw - 28px));
    height: min(680px, calc(100vh - 124px));
    max-height: min(680px, calc(100vh - 124px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    box-sizing: border-box;
    min-height: 0;
    overflow: hidden;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(146, 185, 232, 0.86);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 56px rgba(15, 75, 143, 0.24);
}

.user-notification-drawer {
    position: fixed;
    top: 78px;
    right: 24px;
    z-index: 1450;
    width: min(410px, calc(100vw - 28px));
    max-height: min(620px, calc(100vh - 104px));
    display: grid;
    grid-template-rows: auto auto minmax(160px, 1fr);
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(146, 185, 232, 0.86);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 26px 56px rgba(15, 75, 143, 0.24);
}

.user-message-drawer[hidden] {
    display: none !important;
}

.user-notification-drawer[hidden] {
    display: none !important;
}

.user-message-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.user-notification-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.user-message-drawer-header div {
    display: grid;
    gap: 2px;
}

.user-notification-drawer-header div {
    display: grid;
    gap: 2px;
}

.user-message-drawer-header span {
    color: #4f78a3;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-notification-drawer-header span {
    color: #4f78a3;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.user-message-drawer-header strong {
    color: #123c63;
    font-size: 1.05rem;
}

.user-notification-drawer-header strong {
    color: #123c63;
    font-size: 1.35rem;
}

.user-message-drawer-close {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: #eef6ff;
    color: #0f4b8f;
    font-size: 1rem;
    line-height: 1;
}

.user-notification-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-notification-filter {
    min-height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #f0f4f8;
    color: #224a72;
    font-weight: 800;
    box-shadow: none;
}

.user-notification-filter.is-active {
    background: #e4f0ff;
    color: #0f64c7;
}

.user-notification-drawer-list {
    display: grid;
    gap: 8px;
    overflow: auto;
    padding-right: 4px;
}

.user-notification-drawer-item,
.user-notification-empty {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 10px;
    border-radius: 12px;
    background: #ffffff;
}

.user-notification-drawer-item.is-unread {
    background: #eef6ff;
}

.user-notification-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #0f64c7;
}

.user-notification-drawer-item strong,
.user-notification-empty strong {
    display: block;
    color: #173f66;
    line-height: 1.25;
}

.user-notification-drawer-item p,
.user-notification-empty span {
    margin: 3px 0;
    color: #455f7b;
    line-height: 1.35;
}

.user-notification-drawer-item small {
    color: #0f64c7;
    font-weight: 800;
}

.user-notification-dot {
    width: 10px;
    height: 10px;
    margin-top: 17px;
    border-radius: 50%;
    background: #0f64c7;
}

.user-notification-empty {
    grid-template-columns: 1fr;
    padding: 16px;
}

.user-drawer-messages-list {
    min-height: 0;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.user-drawer-composer {
    margin-top: 0;
}

.user-message-drawer .user-drawer-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.user-message-drawer .user-drawer-composer input {
    min-width: 0;
    height: 48px;
    margin: 0;
    padding: 0 18px;
    border-radius: 999px;
}

.message-send-icon-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border-radius: 999px;
    background: transparent;
    color: #0f73e8;
    box-shadow: none;
    font-size: 1.25rem;
}

.message-send-icon-btn:hover,
.message-send-icon-btn:focus-visible {
    background: #eaf4ff;
    color: #075ec6;
    transform: none;
    box-shadow: none;
}

.notification-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d84d3f;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(216, 77, 63, 0.28);
}

body.profile-page .profile-card-pulse {
    animation: profileCardPulse 0.9s ease;
}

@keyframes profileCardPulse {
    0%,
    100% {
        box-shadow: 0 16px 32px rgba(15, 75, 143, 0.08);
    }
    45% {
        box-shadow: 0 0 0 4px rgba(43, 108, 176, 0.16), 0 18px 36px rgba(15, 75, 143, 0.14);
    }
}

body.profile-page .appointment-edit-btn {
    margin-top: 0;
    align-self: auto;
}

body.profile-page .profile-reschedule-btn {
    background: linear-gradient(135deg, #1c67ad, #0f4b8f);
    color: white;
    border: 1px solid rgba(15, 75, 143, 0.12);
    box-shadow: 0 12px 24px rgba(15, 75, 143, 0.18);
}

body.profile-page .profile-reschedule-btn:hover,
body.profile-page .profile-reschedule-btn:focus-visible {
    background: linear-gradient(135deg, #255fa0, #0b3e75);
    color: white;
    transform: translateY(-1px);
}

body.profile-page .profile-cancel-btn {
    background: white;
    color: #b54335;
    border: 1px solid rgba(181, 67, 53, 0.2);
    box-shadow: 0 10px 20px rgba(181, 67, 53, 0.08);
}

body.profile-page .profile-cancel-btn:hover,
body.profile-page .profile-cancel-btn:focus-visible {
    background: #fff3f0;
    color: #9f3226;
    transform: translateY(-1px);
}

body.profile-page .profile-appointment-item.appointment-cancelled {
    background: linear-gradient(135deg, #fff8f6, #fdf1ee);
    border-color: rgba(232, 195, 188, 0.8);
}

body.profile-page .profile-appointment-item.appointment-cancelled h4 {
    color: #a23a2f;
}

body.profile-page .profile-appointment-actions .appointment-edit-btn:disabled {
    opacity: 0.58;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

body.profile-page .status.pending {
    border-radius: 999px;
    padding: 7px 14px;
}

body.profile-page .modal-note {
    color: #5b6b7b;
    margin-bottom: 20px;
}

@media (max-width: 1020px) {
    body.profile-page .profile-dashboard {
        grid-template-columns: 1fr;
    }

    body.profile-page .profile-stats,
    body.profile-page .profile-detail-grid,
    body.profile-page .profile-appointment-grid,
    body.profile-page .profile-detail-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.profile-page .sticky-header.home-header {
        padding: 12px 18px;
    }

    body.profile-page .home-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    body.profile-page .home-nav-links {
        flex-wrap: wrap;
        gap: 16px 22px;
    }
}

@media (max-width: 640px) {
    body.profile-page .profile-guest-gate,
    body.profile-page .profile-dashboard {
        margin-top: 18px;
        padding: 0 14px 24px;
    }

    body.profile-page .profile-guest-gate {
        min-height: auto;
    }

    body.profile-page .profile-guest-card {
        padding: 34px 24px;
        border-radius: 24px;
    }

    body.profile-page .home-brand {
        align-items: flex-start;
    }

    body.profile-page .home-brand-title {
        font-size: 0.98rem;
    }

    body.profile-page .profile-banner,
    body.profile-page .profile-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-side-note,
    body.profile-page .profile-stat-card {
        border-radius: 22px;
    }

    body.profile-page .profile-stats,
    body.profile-page .profile-detail-grid,
    body.profile-page .profile-appointment-grid,
    body.profile-page .profile-detail-chip-grid {
        grid-template-columns: 1fr;
    }

    body.profile-page .profile-card-lg {
        grid-column: span 1;
    }

    body.profile-page .profile-card-header,
    body.profile-page .profile-appointment-top {
        flex-direction: column;
        align-items: flex-start;
    }

    body.profile-page .profile-result-item {
        grid-template-columns: 1fr;
        justify-items: flex-start;
    }

    body.profile-page .profile-result-open {
        min-width: 100%;
    }
}

.booking-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 280px;
    background: linear-gradient(135deg, #1c67ad, #0f4b8f);
    border-radius: 999px;
    color: white;
    box-shadow: 0 14px 28px rgba(15, 75, 143, 0.18);
}

.booking-upload-btn input {
    display: none;
}

.booking-attachment-preview {
    width: min(80%, 420px);
    margin: 18px auto 8px;
    padding: 14px 16px;
    border: 1px solid rgba(175, 204, 236, 0.8);
    border-radius: 18px;
    background: linear-gradient(135deg, #f7fbff, #eaf4ff);
    color: #2a4f78;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
}

.booking-attachment-name {
    flex: 1;
    font-weight: 600;
    word-break: break-word;
}

.booking-attachment-remove {
    padding: 10px 16px;
    border-radius: 999px;
    background: white;
    color: #0f4b8f;
    border: 1px solid rgba(15, 75, 143, 0.16);
    box-shadow: none;
}

.booking-attachment-remove:hover {
    background: #eef6ff;
    color: #0b3e75;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.dual-actions {
    flex-wrap: wrap;
}

.modal-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    text-align: left;
}

.modal-field span {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b8dc8;
}

.app-input,
.app-textarea,
.booking-modal-content .calendar,
.service-modal-content .calendar {
    width: 100%;
    padding: 15px 16px;
    border-radius: 18px;
    border: 1px solid rgba(177, 209, 242, 0.9);
    background: linear-gradient(135deg, #ffffff, #f5faff);
    box-sizing: border-box;
    font-size: 1rem;
    color: #21456f;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.app-input:focus,
.app-textarea:focus,
.booking-modal-content .calendar:focus,
.service-modal-content .calendar:focus {
    outline: none;
    border-color: #0f4b8f;
    box-shadow: 0 0 0 4px rgba(15, 75, 143, 0.12);
    transform: translateY(-1px);
}

.app-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: "Manrope", "Segoe UI", sans-serif;
}

.review-dialog {
    text-align: left;
}

.review-rating-group {
    display: grid;
    gap: 10px;
    margin: 8px 0 18px;
}

.review-rating-label {
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b8dc8;
}

.review-rating-picker {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

.review-star-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(177, 209, 242, 0.9);
    background: linear-gradient(135deg, #ffffff, #f5faff);
    color: #aec6e4;
    font-size: 0;
    line-height: 1;
    box-shadow: none;
}

.review-star-btn::before {
    content: "\2605";
    display: block;
    width: 100%;
    font-size: 1.35rem;
    line-height: 1;
    text-align: center;
    transform: translateY(-1px);
}

.review-star-btn:hover,
.review-star-btn:focus-visible {
    border-color: rgba(244, 182, 61, 0.56);
    background: #fff8ea;
    color: #f4b63d;
    transform: translateY(-1px);
}

.review-star-btn.is-active {
    border-color: rgba(244, 182, 61, 0.62);
    background: linear-gradient(135deg, #fff9ed, #fff1cf);
    color: #f4b63d;
}

.review-rating-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: #5d7ea3;
    font-size: 0.88rem;
}

.review-character-count {
    font-weight: 700;
    color: #0f4b8f;
}

.review-dialog .app-textarea {
    min-height: 132px;
}

.service-modal-content,
.booking-modal-content {
    width: min(640px, calc(100% - 28px));
    padding: 34px;
    border-radius: 30px;
    text-align: left;
    background:
        radial-gradient(circle at top right, rgba(191, 220, 255, 0.24), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.98));
    border: 1px solid rgba(182, 212, 243, 0.8);
    box-shadow: 0 28px 56px rgba(15, 75, 143, 0.18);
}

.service-modal-header,
.booking-modal-header {
    margin-bottom: 24px;
}

.service-modal-header h2,
.booking-modal-header h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    color: #082f59;
    line-height: 1.12;
}

.service-prep-note,
.booking-modal-header .modal-note {
    margin: 0;
    color: #345f8f;
    line-height: 1.7;
}

.service-prep-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(15, 75, 143, 0.09);
    color: #0f4b8f;
    font-size: 0.95rem;
    font-weight: 700;
}

.service-guidelines-grid,
.booking-form-grid {
    display: grid;
    gap: 18px;
}

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

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

.guideline-card {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(181, 213, 245, 0.75);
    box-shadow: 0 16px 32px rgba(15, 75, 143, 0.08);
}

.guideline-card-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #1c67ad, #0f4b8f);
    color: white;
    font-size: 1.2rem;
}

.guideline-card-icon.is-soft {
    background: linear-gradient(135deg, #4e8fd0, #2d6db3);
}

.guideline-card h3 {
    margin: 0 0 14px;
    font-size: 1.2rem;
    color: #143960;
}

.guideline-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #456685;
    line-height: 1.65;
}

.booking-upload-block {
    margin-top: 22px;
}

.booking-upload-btn {
    width: 100%;
    min-width: 0;
    padding: 18px 24px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.booking-attachment-preview {
    width: 100%;
    margin-top: 16px;
}

.app-overlay-modal {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(7, 29, 56, 0.34);
    backdrop-filter: blur(12px);
}

.app-dialog {
    position: relative;
    width: min(480px, calc(100% - 8px));
    padding: 34px 30px 28px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(195, 223, 255, 0.24), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f3f9ff 100%);
    border: 1px solid rgba(176, 208, 242, 0.82);
    box-shadow: 0 28px 60px rgba(8, 47, 89, 0.22);
    text-align: center;
}

.app-dialog h3 {
    margin: 0 0 10px;
    font-size: 1.85rem;
    color: #082f59;
}

.app-dialog p {
    margin: 0;
    line-height: 1.75;
    color: #486988;
    white-space: pre-line;
}

.app-dialog-copy {
    margin-bottom: 22px !important;
    white-space: normal !important;
}

.app-dialog-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1c67ad, #0f4b8f);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 16px 30px rgba(15, 75, 143, 0.18);
}

.app-dialog-icon.is-warning {
    background: linear-gradient(135deg, #4e8fd0, #1c67ad);
}

.app-dialog-btn {
    min-width: 140px;
}

.app-dialog-secondary {
    min-width: 140px;
    background: white;
    color: #0f4b8f;
    border: 1px solid rgba(15, 75, 143, 0.16);
}

.app-dialog-secondary:hover {
    background: #eef6ff;
    color: #0b3e75;
}

.app-dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(15, 75, 143, 0.08);
    color: #0f4b8f;
    font-size: 1rem;
    line-height: 1;
    box-shadow: none;
}

.app-dialog-close:hover {
    background: rgba(15, 75, 143, 0.16);
}

.profile-image-editor {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.profile-image-preview {
    width: 132px;
    height: 132px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #7eb7eb, #2e75bc 58%, #0f4b8f 100%);
    color: white;
    font-size: 2rem;
    font-weight: 800;
    overflow: hidden;
    box-shadow: 0 18px 32px rgba(61, 101, 183, 0.24);
}

.profile-image-preview img,
body.profile-page .profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-sizing: border-box;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 13px 18px;
    border-radius: 12px;
    background: #155b9c;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.profile-upload-btn:hover {
    background: #124d88;
}

.profile-image-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    opacity: 0;
    overflow: hidden;
}

.profile-image-file-input:focus-visible + .profile-image-file-name,
.profile-upload-btn:has(+ .profile-image-file-input:focus-visible) {
    outline: 3px solid #47a5fa;
    outline-offset: 3px;
}

.profile-image-file-name {
    color: #557496;
    overflow-wrap: anywhere;
}

.profile-image-file-name:empty {
    display: none;
}

body.profile-page .profile-avatar.has-image {
    padding: 0;
    overflow: hidden;
}

.review-avatar-image,
.review-avatar-fallback {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin-bottom: 14px;
}

.review-avatar-image {
    object-fit: cover;
    box-shadow: 0 14px 24px rgba(15, 75, 143, 0.14);
}

.review-avatar-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #8bc0ef, #2e75bc 58%, #0f4b8f 100%);
    color: white;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 14px 24px rgba(15, 75, 143, 0.14);
}

body.services-page .service-focus {
    display: inline-flex;
    align-items: center;
    margin: 2px 0 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(244, 249, 255, 0.96);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.services-page .promo-card,
body.services-page .service-card {
    padding: 24px;
}

body.services-page .promo-card > div {
    gap: 10px;
}

body.services-page .icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin: 0 0 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 1.5rem;
}

body.services-page [data-service-category="blood"] .icon {
    background: rgba(255, 255, 255, 0.15);
}

body.services-page [data-service-category="heart"] .icon {
    background: rgba(255, 226, 236, 0.14);
}

body.services-page [data-service-category="kidney"] .icon,
body.services-page [data-service-category="sample"] .icon {
    background: rgba(219, 244, 255, 0.14);
}

body.services-page [data-service-category="infection"] .icon,
body.services-page [data-service-category="immune"] .icon {
    background: rgba(224, 236, 255, 0.14);
}

body.services-page [data-service-category="sugar"] .icon,
body.services-page [data-service-category="chemistry"] .icon {
    background: rgba(225, 241, 255, 0.14);
}

body.services-page [data-service-category="liver"] .icon,
body.services-page [data-service-category="inflammation"] .icon,
body.services-page [data-service-category="hormone"] .icon {
    background: rgba(238, 245, 255, 0.16);
}

body.services-page .service-info {
    font-size: 0.93rem;
    line-height: 1.7;
}

@media (max-width: 900px) {
    .service-guidelines-grid,
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .service-modal-content,
    .booking-modal-content,
    .app-dialog {
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .booking-upload-btn {
        padding: 16px 18px;
    }
}

/* Review carousel and upload button refinements */
.booking-upload-btn {
    width: auto;
    min-width: 0;
    padding: 12px 20px;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(15, 75, 143, 0.14);
}

.booking-attachment-preview {
    width: min(100%, 420px);
    margin: 14px 0 8px;
}

body.home-page .review-carousel-footer {
    position: absolute;
    left: -18px;
    right: -18px;
    top: 52%;
    z-index: 3;
    display: block;
    margin: 0;
    pointer-events: none;
}

body.home-page .review-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    pointer-events: none;
}

body.home-page .review-nav-btn {
    width: 34px;
    height: 46px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--brand-blue);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: none;
    opacity: 0.58;
    pointer-events: auto;
}

body.home-page .review-nav-btn:hover,
body.home-page .review-nav-btn:focus-visible {
    background: rgba(15, 75, 143, 0.08);
    color: var(--brand-blue-dark);
    opacity: 1;
    transform: none;
}

body.home-page .review-nav-btn:disabled {
    background: transparent;
    color: #91afcf;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    opacity: 0.22;
}

@media (max-width: 640px) {
    .booking-upload-btn {
        padding: 11px 16px;
    }

    body.home-page .review-nav-btn {
        width: 30px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    body.home-page .sticky-header.home-header,
    body.services-page .sticky-header.home-header,
    body.profile-page .sticky-header.home-header {
        padding: 10px 14px;
    }

    body.home-page .home-nav,
    body.services-page .home-nav,
    body.profile-page .home-nav {
        gap: 14px;
        align-items: stretch;
    }

    body.home-page .home-brand,
    body.services-page .home-brand,
    body.profile-page .home-brand {
        width: 100%;
        min-width: 0;
        gap: 12px;
        align-items: center;
    }

    body.home-page .home-brand-copy,
    body.services-page .home-brand-copy,
    body.profile-page .home-brand-copy {
        min-width: 0;
    }

    body.home-page .home-brand-title,
    body.services-page .home-brand-title,
    body.profile-page .home-brand-title {
        line-height: 1.22;
        word-break: break-word;
    }

    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        width: 100%;
        justify-content: center;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(236, 245, 255, 0.92);
        border: 1px solid rgba(178, 210, 243, 0.62);
        box-sizing: border-box;
    }

    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        padding: 10px 12px;
        font-size: 0.95rem;
        line-height: 1.2;
    }

    body.home-page .hero-grid.home-hero-grid {
        min-height: auto;
        padding: 34px 20px;
        align-items: center;
    }

    body.home-page .hero-box.home-hero-box {
        max-width: none;
    }

    body.home-page .hero-box h1 {
        font-size: clamp(2rem, 9vw, 2.9rem);
    }

    body.home-page .hero-box h2 {
        margin-bottom: 18px;
        font-size: 0.9rem;
        letter-spacing: 0.14em;
    }

    body.home-page .copy {
        margin-bottom: 24px;
        font-size: 0.98rem;
        line-height: 1.72;
    }

    body.home-page .hero-box .primary-btn,
    body.home-page .review-btn .secondary-btn,
    body.profile-page .profile-guest-actions .primary-btn,
    body.profile-page .profile-guest-actions .secondary-btn {
        width: 100%;
        min-width: 0;
    }

    body.home-page .who-text {
        padding: 26px 22px;
    }

    body.home-page .home-story {
        gap: 18px;
    }

    body.home-page .home-story-image-frame {
        min-height: 320px;
        padding: 14px;
    }

    body.home-page .pmv-card {
        padding: 26px 22px;
    }

    body.home-page .accreditation-card {
        min-height: 120px;
        padding: 18px;
    }

    body.home-page .home-footer {
        padding: 24px 20px;
    }

    body.home-page .home-footer p {
        align-items: flex-start;
    }

    body.home-page .footer-map-link {
        min-height: 230px;
    }

    body.services-page .section {
        padding-left: 14px;
        padding-right: 14px;
    }

    body.services-page .section-title {
        margin-bottom: 20px;
        font-size: clamp(1.55rem, 7vw, 2.1rem);
    }

    body.services-page .card-container {
        gap: 16px;
    }

    body.services-page .promo-card,
    body.services-page .service-card {
        width: 100%;
        max-width: none;
        min-height: 0;
    }

    body.services-page .promo-card {
        min-height: 240px;
    }

    body.services-page .service-card {
        min-height: 200px;
    }

    body.services-page .promo-card h3,
    body.services-page .service-card h3 {
        font-size: 1.14rem;
    }

    body.services-page .includes,
    body.services-page .service-info {
        font-size: 0.92rem;
    }

    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-card {
        padding: 22px 18px;
    }

    body.profile-page .profile-sidebar-card h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    body.profile-page .profile-banner h2 {
        font-size: clamp(1.95rem, 9vw, 2.8rem);
    }

    body.profile-page .profile-banner p,
    body.profile-page .profile-role,
    body.profile-page .profile-detail-chip p {
        line-height: 1.65;
    }

    body.profile-page .profile-appointment-actions {
        width: 100%;
    }

    body.profile-page .profile-appointment-actions .appointment-edit-btn {
        width: 100%;
        justify-content: center;
    }

    .modal {
        padding: 16px;
        overflow-y: auto;
        box-sizing: border-box;
    }

    .modal-content.large {
        width: min(100%, 560px);
        margin: 20px auto;
        top: auto;
        transform: none;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }

    .service-modal-content,
    .booking-modal-content,
    .app-dialog {
        width: min(100%, 560px);
    }
}

@media (max-width: 520px) {
    body.home-page .home-brand-logo,
    body.services-page .home-brand-logo,
    body.profile-page .home-brand-logo {
        width: 46px;
        height: 46px;
        border-radius: 14px;
    }

    body.home-page .home-brand-title,
    body.services-page .home-brand-title,
    body.profile-page .home-brand-title {
        font-size: 0.94rem;
    }

    body.home-page .home-brand-subtitle,
    body.services-page .home-brand-subtitle,
    body.profile-page .home-brand-subtitle {
        font-size: 0.75rem;
    }

    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        gap: 6px;
        padding: 8px;
    }

    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        flex: 1 1 calc(33.333% - 6px);
        text-align: center;
        font-size: 0.9rem;
        padding: 9px 8px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.78);
    }

    body.home-page .home-nav-links a::after,
    body.services-page .home-nav-links a::after,
    body.profile-page .home-nav-links a::after {
        display: none;
    }

    body.home-page .hero-grid.home-hero-grid,
    body.home-page .home-story,
    body.home-page .home-pmv,
    body.home-page .accreditation-section,
    body.home-page .home-reviews,
    body.home-page .home-footer {
        margin-left: 12px;
        margin-right: 12px;
    }

    body.home-page .hero-grid.home-hero-grid {
        padding: 28px 16px;
        border-radius: 22px;
    }

    body.home-page .hero-box h1 {
        font-size: clamp(1.75rem, 10vw, 2.35rem);
    }

    body.home-page .who-text,
    body.home-page .pmv-card,
    body.home-page .review-card,
    body.home-page .accreditation-card,
    body.home-page .home-footer,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-stat-card,
    body.profile-page .profile-guest-card {
        border-radius: 20px;
    }

    body.home-page .home-story-image-frame {
        min-height: 260px;
    }

    body.home-page .accreditation-card img {
        max-width: 150px;
        max-height: 60px;
    }

    body.home-page .home-footer {
        padding: 20px 16px;
    }

    body.services-page .section {
        padding-top: 22px;
        padding-bottom: 18px;
    }

    body.services-page .promo-card,
    body.services-page .service-card {
        padding: 20px 18px;
    }

    body.profile-page .profile-dashboard,
    body.profile-page .profile-guest-gate {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.profile-page .profile-guest-card {
        padding: 28px 18px;
    }

    body.profile-page .profile-guest-card h1 {
        font-size: clamp(1.7rem, 10vw, 2.2rem);
    }

    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-card {
        padding: 18px 16px;
    }

    body.profile-page .profile-result-item {
        padding: 14px;
    }

    .service-modal-content,
    .booking-modal-content,
    .app-dialog,
    .modal-content.large {
        padding: 24px 16px 20px;
        border-radius: 20px;
    }

    .booking-upload-btn,
    .profile-upload-btn,
    .app-dialog-btn,
    .app-dialog-secondary,
    .modal-actions button {
        width: 100%;
        min-width: 0;
    }

    .modal-actions,
    .dual-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-attachment-preview {
        width: 100%;
        padding: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    html,
    body {
        overflow-x: hidden;
    }

    body.home-page .sticky-header.home-header,
    body.services-page .sticky-header.home-header,
    body.profile-page .sticky-header.home-header {
        padding: 8px 10px;
    }

    body.home-page .home-nav,
    body.services-page .home-nav,
    body.profile-page .home-nav {
        gap: 10px;
    }

    body.home-page .home-brand,
    body.services-page .home-brand,
    body.profile-page .home-brand {
        gap: 10px;
    }

    body.home-page .home-brand-title,
    body.services-page .home-brand-title,
    body.profile-page .home-brand-title {
        font-size: 0.88rem;
    }

    body.home-page .home-brand-subtitle,
    body.services-page .home-brand-subtitle,
    body.profile-page .home-brand-subtitle {
        font-size: 0.72rem;
    }

    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }

    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        font-size: 0.86rem;
        padding: 8px 6px;
        border-radius: 10px;
    }

    body.home-page .hero-grid.home-hero-grid,
    body.home-page .home-story,
    body.home-page .home-pmv,
    body.home-page .accreditation-section,
    body.home-page .home-reviews,
    body.home-page .home-footer,
    body.services-page .section,
    body.profile-page .profile-dashboard,
    body.profile-page .profile-guest-gate {
        margin-left: 10px;
        margin-right: 10px;
    }

    body.home-page .hero-grid.home-hero-grid {
        padding: 24px 14px;
        border-radius: 18px;
    }

    body.home-page .hero-box h1 {
        font-size: clamp(1.7rem, 10vw, 2.1rem);
    }

    body.home-page .hero-box h2 {
        font-size: 0.82rem;
    }

    body.home-page .copy,
    body.profile-page .profile-banner p,
    body.profile-page .profile-detail-chip p,
    body.profile-page .profile-guest-card p:not(.section-kicker) {
        font-size: 0.94rem;
        line-height: 1.65;
    }

    body.home-page .who-text,
    body.home-page .pmv-card,
    body.home-page .review-card,
    body.home-page .accreditation-card,
    body.home-page .home-footer,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-stat-card,
    body.profile-page .profile-guest-card {
        border-radius: 18px;
    }

    body.home-page .who-text,
    body.home-page .pmv-card,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-card,
    body.profile-page .profile-guest-card {
        padding: 18px 14px;
    }

    body.home-page .home-story-image-frame {
        min-height: 240px;
        padding: 10px;
    }

    body.home-page .reviews,
    body.profile-page .profile-stats,
    body.profile-page .profile-detail-grid,
    body.profile-page .profile-appointment-grid,
    .booking-form-grid {
        grid-template-columns: 1fr;
    }

    body.home-page .review-card,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-stat-card,
    body.profile-page .profile-guest-card {
        width: 100%;
        max-width: none;
    }

    body.home-page .home-footer {
        padding: 18px 14px;
    }

    body.home-page .footer-map-link {
        min-height: 200px;
    }

    body.profile-page .profile-banner h2,
    body.profile-page .profile-sidebar-card h1,
    body.profile-page .profile-guest-card h1 {
        font-size: clamp(1.55rem, 10vw, 2rem);
    }

    body.profile-page .profile-appointment-actions,
    body.profile-page .profile-guest-actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.profile-page .profile-appointment-actions .appointment-edit-btn,
    body.profile-page .profile-guest-actions .primary-btn,
    body.profile-page .profile-guest-actions .secondary-btn {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        display: flex;
        box-sizing: border-box;
        justify-content: center;
    }

    .service-modal-content,
    .booking-modal-content,
    .app-dialog,
    .modal-content.large {
        width: min(100%, 100vw - 20px);
        padding: 20px 14px 18px;
        border-radius: 18px;
    }

    .modal {
        padding: 10px;
    }
}

@media (max-width: 560px) {
    body.home-page .sticky-header.home-header,
    body.services-page .sticky-header.home-header,
    body.profile-page .sticky-header.home-header {
        padding: 8px 10px;
    }

    body.home-page .home-nav,
    body.services-page .home-nav,
    body.profile-page .home-nav {
        gap: 8px;
    }

    body.home-page .home-brand,
    body.services-page .home-brand,
    body.profile-page .home-brand {
        gap: 10px;
    }

    body.home-page .home-brand-logo,
    body.services-page .home-brand-logo,
    body.profile-page .home-brand-logo {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body.home-page .home-brand-title,
    body.services-page .home-brand-title,
    body.profile-page .home-brand-title {
        font-size: 0.86rem;
        line-height: 1.15;
    }

    body.home-page .home-brand-subtitle,
    body.services-page .home-brand-subtitle,
    body.profile-page .home-brand-subtitle {
        font-size: 0.67rem;
    }

    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        gap: 6px;
        padding: 6px;
        border-radius: 14px;
    }

    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        padding: 7px 6px;
        font-size: 0.82rem;
        border-radius: 10px;
    }

    body.home-page .hero-grid.home-hero-grid,
    body.home-page .home-story,
    body.home-page .home-pmv,
    body.home-page .accreditation-section,
    body.home-page .home-reviews,
    body.home-page .home-footer,
    body.services-page .section,
    body.profile-page .profile-dashboard,
    body.profile-page .profile-guest-gate {
        margin-left: 10px;
        margin-right: 10px;
    }

    body.home-page .hero-grid.home-hero-grid {
        padding: 20px 14px;
        border-radius: 18px;
    }

    body.home-page .hero-box h1 {
        font-size: clamp(1.6rem, 9.5vw, 2rem);
        line-height: 1.04;
    }

    body.home-page .hero-box h2 {
        margin-bottom: 12px;
        font-size: 0.74rem;
        letter-spacing: 0.12em;
    }

    body.home-page .copy {
        margin-bottom: 18px;
        font-size: 0.9rem;
        line-height: 1.58;
    }

    body.home-page .hero-box .primary-btn,
    body.home-page .review-btn .secondary-btn {
        width: auto;
        min-width: 0;
        padding: 12px 18px;
        font-size: 0.94rem;
    }

    body.home-page .who-text,
    body.home-page .pmv-card,
    body.home-page .review-card,
    body.home-page .accreditation-card,
    body.home-page .home-footer,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-stat-card,
    body.profile-page .profile-guest-card {
        border-radius: 18px;
    }

    body.home-page .who-text,
    body.home-page .pmv-card,
    body.home-page .review-card,
    body.home-page .accreditation-card,
    body.home-page .home-footer,
    body.services-page .promo-card,
    body.services-page .service-card,
    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-card,
    body.profile-page .profile-guest-card {
        padding: 16px 14px;
    }

    body.home-page .who-text p,
    body.home-page .pmv-card p,
    body.home-page .review-card p,
    body.home-page .home-footer p {
        font-size: 0.9rem;
        line-height: 1.58;
    }

    body.home-page .home-story-image-frame {
        min-height: 220px;
        padding: 8px;
    }

    body.home-page .footer-map-link {
        min-height: 180px;
    }

    body.home-page .review-nav-btn {
        width: 28px;
        height: 40px;
        font-size: 1.25rem;
    }

    body.services-page .section {
        padding: 16px 10px 12px;
    }

    body.services-page .section-title {
        margin-bottom: 14px;
        font-size: clamp(1.2rem, 7vw, 1.55rem);
    }

    body.services-page .card-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.services-page .section:first-of-type .card-container {
        grid-template-columns: 1fr;
    }

    body.services-page .promo-card,
    body.services-page .service-card {
        width: 100%;
        max-width: none;
        min-height: 0;
        padding: 14px 12px;
        gap: 6px;
        box-sizing: border-box;
    }

    body.services-page .promo-card {
        min-height: 188px;
    }

    body.services-page .service-card {
        min-height: 142px;
        justify-content: flex-start;
    }

    body.services-page .promo-card .icon,
    body.services-page .service-card .icon {
        margin-top: 0;
        font-size: 1.45rem;
    }

    body.services-page .promo-card:hover,
    body.services-page .service-card:hover,
    body.services-page .promo-card:focus-visible,
    body.services-page .service-card:focus-visible {
        transform: none;
        box-shadow: 0 16px 28px rgba(22, 82, 141, 0.14);
        background: linear-gradient(160deg, #3f84c9 0%, #246db3 56%, #145998 100%);
    }

    body.services-page .promo-card h3,
    body.services-page .service-card h3 {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    body.services-page .price {
        font-size: 0.9rem;
    }

    body.services-page .includes,
    body.services-page .service-info {
        font-size: 0.74rem;
        line-height: 1.38;
    }

    body.profile-page .profile-dashboard,
    body.profile-page .profile-guest-gate {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.profile-page .profile-sidebar-card,
    body.profile-page .profile-banner,
    body.profile-page .profile-card {
        padding: 16px 14px;
    }

    body.profile-page .profile-banner h2,
    body.profile-page .profile-sidebar-card h1,
    body.profile-page .profile-guest-card h1 {
        font-size: clamp(1.55rem, 9vw, 2rem);
        line-height: 1.08;
    }

    body.profile-page .profile-banner p,
    body.profile-page .profile-role,
    body.profile-page .profile-detail-chip p,
    body.profile-page .profile-guest-card p:not(.section-kicker) {
        font-size: 0.9rem;
        line-height: 1.58;
    }

    body.profile-page .profile-stats {
        gap: 10px;
    }

    body.profile-page .profile-stat-card {
        padding: 12px;
    }

    body.profile-page .profile-stat-card span {
        font-size: 0.72rem;
    }

    body.profile-page .profile-stat-card strong {
        font-size: 1.4rem;
    }

    body.profile-page .profile-empty-state {
        min-height: 132px;
        padding: 16px;
        border-radius: 18px;
    }

    body.profile-page .profile-empty-state i {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }

    body.profile-page .profile-results-list {
        gap: 10px;
    }

    body.profile-page .profile-result-item {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    body.profile-page .profile-result-preview {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        font-size: 1.2rem;
    }

    body.profile-page .profile-result-copy {
        gap: 4px;
    }

    body.profile-page .profile-result-copy strong {
        font-size: 0.96rem;
    }

    body.profile-page .profile-result-copy span {
        font-size: 0.82rem;
        line-height: 1.42;
    }

    body.profile-page .profile-result-open {
        grid-column: 1 / -1;
        justify-self: flex-start;
        min-width: 0;
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    .service-modal-content,
    .booking-modal-content,
    .app-dialog,
    .modal-content.large {
        width: min(100%, calc(100vw - 14px));
        max-height: calc(100vh - 10px);
        overflow-y: auto;
    }

    .service-modal-content,
    .booking-modal-content {
        padding: 18px 14px 16px;
        border-radius: 22px;
    }

    .service-modal-header,
    .booking-modal-header {
        margin-bottom: 16px;
    }

    .service-modal-header h2,
    .booking-modal-header h2 {
        margin: 6px 0 8px;
        font-size: clamp(1.45rem, 8vw, 1.95rem);
    }

    .service-prep-note,
    .booking-modal-header .modal-note {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .service-prep-note {
        padding: 10px 12px;
    }

    .service-guidelines-grid,
    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .guideline-card {
        padding: 14px 12px;
        border-radius: 18px;
    }

    .guideline-card-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 12px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .guideline-card h3 {
        margin: 0 0 10px;
        font-size: 1.02rem;
    }

    .guideline-list {
        gap: 8px;
        padding-left: 18px;
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .booking-upload-btn {
        padding: 12px 14px;
        font-size: 0.92rem;
    }

    .service-modal-content .modal-actions,
    .booking-modal-content .modal-actions {
        position: sticky;
        bottom: -4px;
        padding-top: 10px;
        background: linear-gradient(180deg, rgba(243, 249, 255, 0), rgba(243, 249, 255, 0.97) 36%, rgba(243, 249, 255, 0.99) 100%);
    }

    .modal-actions {
        margin-top: 16px;
    }

    .modal-actions button {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .close-btn {
        top: 10px;
        right: 12px;
        font-size: 1.5rem;
    }

    .app-dialog {
        padding: 24px 16px 18px;
        border-radius: 20px;
    }

    .app-dialog h3 {
        font-size: 1.45rem;
    }

    .app-dialog p {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .app-dialog-close {
        top: 12px;
        right: 12px;
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .review-rating-picker {
        gap: 6px;
    }

    .review-star-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .review-star-btn::before {
        font-size: 1.2rem;
    }

    .review-rating-meta {
        font-size: 0.82rem;
    }

    .review-dialog .app-textarea {
        min-height: 118px;
    }
}

/* Keep the support drawer readable and its composer anchored above the phone keyboard. */
body .user-message-drawer .user-drawer-messages-list,
body.profile-page .user-message-drawer .user-drawer-messages-list {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    align-content: start;
}

body .user-message-drawer .user-drawer-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    margin: 0;
    min-width: 0;
}

body .user-message-drawer .profile-message-bubble.is-user {
    background: #2469df;
    color: #fff;
}

body .user-message-drawer .profile-message-bubble.is-admin {
    background: #edf4fb;
    color: #153554;
}

body .user-message-drawer .profile-message-bubble span {
    color: inherit !important;
}

body.dark-mode .user-message-drawer .profile-message-bubble.is-user {
    background: #0e64af;
    color: #fff;
}

body.dark-mode .user-message-drawer .profile-message-bubble.is-admin {
    background: #112d48;
    color: #eef6ff;
}

body.dark-mode .app-dialog-close,
body.dark-mode .user-message-drawer-close,
body.dark-mode .close-btn {
    background: #345470;
    color: #f4f9ff;
}

body.dark-mode .profile-image-file-name {
    color: #c9ddf0;
}

@media (max-width: 390px) {
    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        font-size: 0.78rem;
        padding: 7px 4px;
    }

    body.home-page .hero-grid.home-hero-grid {
        padding: 18px 12px;
    }

    body.home-page .hero-box .primary-btn,
    body.home-page .review-btn .secondary-btn {
        width: 100%;
        justify-content: center;
    }

    body.services-page .card-container {
        gap: 8px;
    }

    body.services-page .section:first-of-type .card-container {
        grid-template-columns: 1fr;
    }

    body.services-page .promo-card {
        min-height: 176px;
    }

    body.services-page .service-card {
        min-height: 136px;
    }

    body.services-page .promo-card h3,
    body.services-page .service-card h3 {
        font-size: 0.84rem;
    }

    body.services-page .includes,
    body.services-page .service-info {
        font-size: 0.7rem;
    }

    body.profile-page .profile-guest-actions .primary-btn,
    body.profile-page .profile-guest-actions .secondary-btn {
        padding-left: 14px;
        padding-right: 14px;
    }
}
/* Dark mode */
.theme-toggle-btn {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(15, 75, 143, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f4b8f;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(15, 75, 143, 0.12);
}

.theme-toggle-btn i {
    display: block;
    width: 1em;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-left: clamp(18px, 2vw, 28px);
}

body.dark-mode,
body.dark-mode.home-page,
body.dark-mode.services-page,
body.dark-mode.profile-page {
    background: #091829;
    color: #d9e8f7;
}

body.dark-mode .sticky-header.home-header,
body.dark-mode .home-nav,
body.dark-mode .profile-sidebar-card,
body.dark-mode .profile-banner,
body.dark-mode .profile-card,
body.dark-mode .profile-stat-card,
body.dark-mode .profile-guest-card,
body.dark-mode .who-text,
body.dark-mode .pmv-card,
body.dark-mode .review-card,
body.dark-mode .accreditation-card,
body.dark-mode .home-footer,
body.dark-mode .promo-card,
body.dark-mode .service-card,
body.dark-mode .doctor-schedule-panel,
body.dark-mode .doctor-schedule-item,
body.dark-mode .service-modal-content,
body.dark-mode .booking-modal-content,
body.dark-mode .app-dialog,
body.dark-mode .user-message-drawer,
body.dark-mode .user-notification-drawer {
    background: #10243a;
    border-color: rgba(132, 179, 225, 0.28);
    color: #d9e8f7;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.28);
}

body.dark-mode .home-brand-title,
body.dark-mode .home-nav-links a,
body.dark-mode .profile-sidebar-card h1,
body.dark-mode .profile-card h3,
body.dark-mode .profile-banner h2,
body.dark-mode .profile-guest-card h1,
body.dark-mode .section-heading h2,
body.dark-mode .who-text h2,
body.dark-mode .home-reviews h2,
body.dark-mode .promo-card h3,
body.dark-mode .service-card h3,
body.dark-mode .doctor-schedule-copy h3,
body.dark-mode .service-modal-header h2,
body.dark-mode .booking-modal-header h2,
body.dark-mode .guideline-card h3,
body.dark-mode .profile-result-copy strong {
    color: #f3f8ff;
}

body.dark-mode .home-brand-subtitle,
body.dark-mode .copy,
body.dark-mode .who-text p,
body.dark-mode .pmv-card p,
body.dark-mode .review-card p,
body.dark-mode .home-footer p,
body.dark-mode .includes,
body.dark-mode .service-info,
body.dark-mode .doctor-schedule-copy p,
body.dark-mode .service-prep-note,
body.dark-mode .booking-modal-header .modal-note,
body.dark-mode .guideline-list,
body.dark-mode .profile-role,
body.dark-mode .profile-detail-chip p,
body.dark-mode .profile-empty-state,
body.dark-mode .profile-result-copy span,
body.dark-mode .user-notification-drawer-item p {
    color: #adc4dc;
}

body.dark-mode .profile-meta-chip,
body.dark-mode .profile-detail-chip,
body.dark-mode .profile-result-item,
body.dark-mode .profile-notification-item,
body.dark-mode .profile-message-bubble,
body.dark-mode .user-notification-drawer-item,
body.dark-mode .guideline-card,
body.dark-mode .calendar,
body.dark-mode .app-input {
    background: #0b1c2f;
    border-color: rgba(132, 179, 225, 0.25);
    color: #e8f2ff;
}

body.dark-mode .theme-toggle-btn {
    background: #17324f;
    border-color: rgba(145, 196, 246, 0.35);
    color: #ffe8a3;
    box-shadow: none;
}

body.dark-mode .notification-bell,
body.dark-mode .message-fab {
    background: #294966;
    border-color: rgba(145, 196, 246, 0.35);
    color: #f6fbff;
    box-shadow: none;
}

body.dark-mode .app-dialog h3,
body.dark-mode .user-message-drawer-header strong,
body.dark-mode .user-notification-drawer-header strong,
body.dark-mode .profile-messages-list strong,
body.dark-mode .user-notification-drawer-item strong {
    color: #f6fbff;
}

body.dark-mode .app-dialog p,
body.dark-mode .app-dialog-copy,
body.dark-mode .user-message-drawer-header span,
body.dark-mode .user-notification-drawer-header span,
body.dark-mode .profile-messages-list p,
body.dark-mode .profile-message-bubble p,
body.dark-mode .user-notification-drawer-item p,
body.dark-mode .user-notification-drawer-item small {
    color: #d3e4f5;
}

body.dark-mode .app-dialog-secondary,
body.dark-mode.profile-page .logout-btn {
    background: #eef6ff;
    border-color: #9cc9f3;
    color: #0f4b8f;
}

body.dark-mode .service-prep-note {
    background: rgba(145, 196, 246, 0.16);
    border: 1px solid rgba(162, 202, 240, 0.26);
    color: #dbeeff;
}

/* Dark mode contrast tune-up */
body.dark-mode,
body.dark-mode.home-page,
body.dark-mode.services-page,
body.dark-mode.profile-page {
    background: #14283d;
}

body.dark-mode .home-reviews,
body.dark-mode .home-story,
body.dark-mode .home-pmv,
body.dark-mode .accreditation-section,
body.dark-mode .services-page .section,
body.dark-mode.services-page .section {
    background: #1d3349;
}

body.dark-mode .sticky-header.home-header,
body.dark-mode .home-nav,
body.dark-mode .profile-sidebar-card,
body.dark-mode .profile-banner,
body.dark-mode .profile-card,
body.dark-mode .profile-stat-card,
body.dark-mode .profile-guest-card,
body.dark-mode .who-text,
body.dark-mode .pmv-card,
body.dark-mode .review-card,
body.dark-mode .accreditation-card,
body.dark-mode .home-footer,
body.dark-mode .promo-card,
body.dark-mode .service-card,
body.dark-mode .doctor-schedule-panel,
body.dark-mode .doctor-schedule-item,
body.dark-mode .service-modal-content,
body.dark-mode .booking-modal-content,
body.dark-mode .app-dialog,
body.dark-mode .user-message-drawer,
body.dark-mode .user-notification-drawer {
    background: #213a53;
    border-color: rgba(162, 202, 240, 0.32);
}

body.dark-mode .home-reviews h2,
body.dark-mode .home-reviews .section-kicker,
body.dark-mode .review-card h4,
body.dark-mode .review-stars,
body.dark-mode.services-page .section-title,
body.dark-mode.services-page .promo-card h3,
body.dark-mode.services-page .service-card h3,
body.dark-mode.services-page .service-modal-header h2,
body.dark-mode.services-page .booking-modal-header h2,
body.dark-mode.services-page .guideline-card h3,
body.dark-mode.services-page .price,
body.dark-mode.services-page .service-focus,
body.dark-mode.services-page .doctor-schedule-heading h2 {
    color: #f6fbff !important;
}

body.dark-mode .review-card p,
body.dark-mode.services-page .includes,
body.dark-mode.services-page .service-info,
body.dark-mode.services-page .service-prep-note,
body.dark-mode.services-page .booking-modal-header .modal-note,
body.dark-mode.services-page .guideline-list,
body.dark-mode.services-page .doctor-schedule-copy p {
    color: #d3e4f5 !important;
}

body.dark-mode.services-page .guideline-card {
    background: #263f59;
    border-color: rgba(162, 202, 240, 0.32);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

body.dark-mode .review-btn .secondary-btn,
body.dark-mode .home-reviews .secondary-btn {
    background: #eef6ff;
    border-color: #9cc9f3;
    color: #0f4b8f;
}

body.dark-mode .message-send-icon-btn {
    background: transparent;
    color: #8cc8ff;
}

body.dark-mode .message-send-icon-btn:hover,
body.dark-mode .message-send-icon-btn:focus-visible {
    background: #294966;
    color: #f4f9ff;
}

body.dark-mode .theme-toggle-btn {
    background: #294966;
}

body.dark-mode .notification-bell,
body.dark-mode .message-fab {
    background: #294966;
    border-color: rgba(162, 202, 240, 0.36);
    color: #f6fbff;
}

body.dark-mode.profile-page .profile-meta-chip,
body.dark-mode.profile-page .profile-detail-chip,
body.dark-mode.profile-page .profile-stat-card,
body.dark-mode.profile-page .profile-appointment-item,
body.dark-mode.profile-page .profile-history-item,
body.dark-mode.profile-page .profile-queue-status,
body.dark-mode.profile-page .profile-empty-state {
    background: #263f59 !important;
    border-color: rgba(162, 202, 240, 0.28) !important;
    color: #dcecff !important;
}

body.dark-mode.profile-page .profile-meta-chip strong,
body.dark-mode.profile-page .profile-stat-card strong,
body.dark-mode.profile-page .profile-detail-chip p,
body.dark-mode.profile-page .profile-appointment-item h4,
body.dark-mode.profile-page #appointmentService,
body.dark-mode.profile-page .profile-history-item strong,
body.dark-mode.profile-page .profile-queue-status strong {
    color: #f2f8ff !important;
}

body.dark-mode.profile-page .profile-meta-chip span,
body.dark-mode.profile-page .profile-stat-card span,
body.dark-mode.profile-page .profile-detail-chip span,
body.dark-mode.profile-page .profile-history-item span,
body.dark-mode.profile-page .profile-queue-status span {
    color: #a9c5df !important;
}

body.dark-mode.profile-page .profile-timeline-item small {
    color: #8bd7d7 !important;
}

body.dark-mode.profile-page .profile-timeline-item::before {
    background: #213a53;
    box-shadow: 0 0 0 4px rgba(139, 215, 215, 0.16);
}

body.dark-mode.profile-page .profile-timeline-item::after {
    background: rgba(162, 202, 240, 0.28);
}

body.dark-mode.profile-page .profile-sidebar-actions .secondary-btn,
body.dark-mode.profile-page .profile-appointment-actions .secondary-btn {
    background: #294966;
    border-color: rgba(162, 202, 240, 0.35);
    color: #e8f2ff;
}

body.dark-mode.profile-page .profile-sidebar-actions .logout-btn {
    background: #f8fbff;
    border-color: #b9d7f4;
    color: #9f1f17;
}

body.dark-mode.profile-page .profile-payment-status.is-pending {
    background: #4b401f;
    color: #fff2b7;
}

body.dark-mode.profile-page .profile-payment-status.is-paid-counter {
    background: #174d3a;
    color: #d6ffeb;
}

body.dark-mode.profile-page .profile-payment-status.is-confirmed-online {
    background: #174d76;
    color: #d8edff;
}

@media (max-width: 900px) {
    .home-nav-actions {
        width: 100%;
        justify-content: flex-end;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        margin-left: 0;
    }
}

/* Adviser update: optically center the user-facing theme icon */
.theme-toggle-btn {
    position: relative;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: auto;
    height: auto;
    line-height: 1;
    transform: translate(-50%, -50%);
}
.profile-arrival-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 16px 0 0;
    padding: 13px 15px;
    border: 1px solid #cfe3f4;
    border-radius: 14px;
    background: #f2f9ff;
    color: #345c82;
    font-size: .86rem;
    line-height: 1.55;
}
.profile-arrival-note i { margin-top: 3px; color: #1679be; }

/* Patient reviews redesign */
body.home-page .home-reviews {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    margin-top: 16px;
    margin-bottom: 58px;
    padding: 46px 42px 38px;
    border: 1px solid rgba(149, 195, 236, 0.44);
    border-radius: 36px;
    background:
        radial-gradient(circle at 92% 8%, rgba(117, 190, 248, 0.22), transparent 30%),
        linear-gradient(145deg, rgba(247, 252, 255, 0.98), rgba(229, 243, 255, 0.92));
    box-shadow: 0 26px 60px rgba(14, 67, 119, 0.1);
    text-align: left;
}

body.home-page .home-reviews::before,
body.home-page .home-reviews::after {
    content: "";
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}

body.home-page .home-reviews::before {
    top: -110px;
    right: -90px;
    width: 280px;
    height: 280px;
    border: 42px solid rgba(47, 133, 207, 0.07);
}

body.home-page .home-reviews::after {
    bottom: -130px;
    left: -120px;
    width: 260px;
    height: 260px;
    background: rgba(95, 171, 234, 0.08);
}

body.home-page .review-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

body.home-page .review-heading-copy {
    max-width: 720px;
}

body.home-page .home-reviews .review-heading-copy .section-kicker {
    margin: 0 0 10px;
    text-align: left;
}

body.home-page .home-reviews .review-heading-copy h2 {
    max-width: 680px;
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -0.035em;
}

body.home-page .review-section-intro {
    max-width: 650px;
    margin: 0;
    color: #4f6f8f;
    font-size: 1rem;
    line-height: 1.75;
}

body.home-page .review-score-card {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 190px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 36px rgba(13, 73, 130, 0.11);
    backdrop-filter: blur(12px);
}

body.home-page .review-score-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffd86b, #f2ad2e);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 10px 22px rgba(235, 167, 44, 0.26);
}

body.home-page .review-score-card div {
    display: grid;
}

body.home-page .review-score-card strong {
    color: var(--brand-blue-dark);
    font-size: 1.65rem;
    line-height: 1;
}

body.home-page .review-score-card span:last-child {
    margin-top: 6px;
    color: #607d99;
    font-size: 0.78rem;
    font-weight: 700;
}

body.home-page .review-carousel-footer {
    position: static;
    z-index: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 16px;
    pointer-events: auto;
}

body.home-page .review-list-label {
    display: grid;
    gap: 3px;
}

body.home-page .review-list-label strong {
    color: #173f67;
    font-size: 1rem;
}

body.home-page .review-list-label span {
    color: #6d879f;
    font-size: 0.8rem;
}

body.home-page .review-carousel-controls {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    pointer-events: auto;
}

body.home-page .review-nav-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(109, 162, 210, 0.38);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: #155894;
    font-size: 1.15rem;
    box-shadow: 0 8px 20px rgba(15, 75, 143, 0.08);
    opacity: 1;
    pointer-events: auto;
    transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.home-page .review-nav-btn:hover,
body.home-page .review-nav-btn:focus-visible {
    background: #155894;
    color: #fff;
    box-shadow: 0 10px 24px rgba(15, 75, 143, 0.22);
    transform: translateY(-2px);
}

body.home-page .review-nav-btn:disabled {
    border-color: rgba(141, 169, 195, 0.22);
    background: rgba(255, 255, 255, 0.46);
    color: #9eb1c3;
    box-shadow: none;
    opacity: 0.58;
    pointer-events: none;
}

body.home-page .home-reviews .reviews {
    display: flex;
    grid-template-columns: none;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    margin: 0;
    padding: 4px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

body.home-page .home-reviews .reviews::-webkit-scrollbar {
    display: none;
}

body.home-page .home-reviews .reviews > .review-card:nth-child(n + 4) {
    display: flex;
}

body.home-page .review-card {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: auto;
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    min-height: 292px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid rgba(145, 190, 229, 0.38);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 36px rgba(18, 70, 119, 0.08);
    scroll-snap-align: start;
    text-align: left;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

body.home-page .review-card:hover {
    border-color: rgba(77, 151, 215, 0.58);
    box-shadow: 0 22px 44px rgba(15, 75, 143, 0.14);
    transform: translateY(-4px);
}

body.home-page .review-card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

body.home-page .review-avatar-image,
body.home-page .review-avatar-fallback {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0;
    border: 3px solid rgba(255, 255, 255, 0.92);
    border-radius: 17px;
    box-shadow: 0 10px 22px rgba(15, 75, 143, 0.14);
}

body.home-page .review-avatar-fallback {
    font-size: 0.98rem;
}

body.home-page .reviewer-details {
    min-width: 0;
}

body.home-page .review-card .reviewer-details h4 {
    overflow: hidden;
    margin: 0 0 4px;
    color: #143f69;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.home-page .review-verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #5580a7;
    font-size: 0.72rem;
    font-weight: 700;
}

body.home-page .review-verified i {
    color: #2c94d3;
}

body.home-page .review-quote-mark {
    margin-left: auto;
    color: rgba(54, 132, 200, 0.16);
    font-family: Georgia, serif;
    font-size: 4.3rem;
    line-height: 0.7;
}

body.home-page .review-card .review-stars {
    margin: 22px 0 14px;
    color: #edae2f;
    font-size: 0.9rem;
    letter-spacing: 0.16em;
}

body.home-page .review-card .review-message {
    margin: 0;
    color: #365a7b;
    font-size: 0.96rem;
    line-height: 1.75;
}

body.home-page .review-date {
    display: block;
    margin-top: auto;
    padding-top: 20px;
    color: #8298ac;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.home-page .review-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 14px;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    background: linear-gradient(125deg, #0b477f, #1268aa 66%, #2387c7);
    box-shadow: 0 18px 34px rgba(12, 71, 126, 0.2);
}

body.home-page .review-cta-copy {
    display: grid;
    gap: 5px;
    color: #fff;
}

body.home-page .review-cta-copy span {
    color: #acd9fb;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

body.home-page .review-cta-copy strong {
    font-size: 1.02rem;
}

body.home-page .review-btn .secondary-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    background: #fff;
    color: #0f568f;
    box-shadow: 0 10px 24px rgba(3, 35, 67, 0.18);
}

body.home-page .review-btn .secondary-btn:hover,
body.home-page .review-btn .secondary-btn:focus-visible {
    background: #eaf6ff;
    color: #083e6d;
    transform: translateY(-2px);
}

@media (max-width: 1080px) {
    body.home-page .home-reviews .reviews {
        grid-template-columns: none;
    }

    body.home-page .review-card {
        flex-basis: calc((100% - 20px) / 2);
    }
}

@media (max-width: 720px) {
    body.home-page .home-reviews {
        padding: 30px 20px 24px;
        border-radius: 26px;
    }

    body.home-page .review-section-header {
        align-items: flex-start;
        margin-bottom: 24px;
    }

    body.home-page .review-score-card {
        min-width: 0;
        padding: 14px;
    }

    body.home-page .review-score-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    body.home-page .review-score-card strong {
        font-size: 1.35rem;
    }

    body.home-page .review-score-card span:last-child {
        display: none;
    }

    body.home-page .home-reviews .reviews {
        grid-template-columns: none;
    }

    body.home-page .review-card {
        flex-basis: min(88%, 360px);
        min-height: 280px;
        padding: 22px;
    }

    body.home-page .review-btn {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body.home-page .review-section-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 18px 12px;
    }

    body.home-page .review-heading-copy {
        grid-column: 1 / -1;
    }

    body.home-page .review-score-card {
        grid-column: 1 / -1;
        justify-self: start;
    }

    body.home-page .review-score-card span:last-child {
        display: block;
    }

    body.home-page .review-carousel-footer {
        align-items: flex-end;
    }

    body.home-page .review-nav-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body.home-page .home-reviews .reviews {
        grid-template-columns: none;
    }

    body.home-page .review-card {
        flex-basis: 92%;
    }

    body.home-page .review-btn .secondary-btn {
        width: 100%;
    }
}

body.dark-mode.home-page .home-reviews {
    border-color: rgba(128, 184, 232, 0.24);
    background:
        radial-gradient(circle at 92% 8%, rgba(55, 139, 209, 0.18), transparent 30%),
        linear-gradient(145deg, #1a334b, #183047);
}

body.dark-mode.home-page .review-section-intro,
body.dark-mode.home-page .review-list-label span,
body.dark-mode.home-page .review-verified,
body.dark-mode.home-page .review-date {
    color: #a9c3da !important;
}

body.dark-mode.home-page .review-score-card,
body.dark-mode.home-page .review-card,
body.dark-mode.home-page .review-nav-btn {
    border-color: rgba(146, 195, 236, 0.25);
    background: #213d56;
}

body.dark-mode.home-page .review-score-card strong,
body.dark-mode.home-page .review-list-label strong,
body.dark-mode.home-page .review-card .reviewer-details h4 {
    color: #f5fbff !important;
}

body.dark-mode.home-page .review-card .review-message {
    color: #d4e4f2 !important;
}

/* Image-led prototype used only for Affordable Packages */
body.services-page .affordable-packages {
    padding-top: 38px;
    padding-bottom: 42px;
}

body.services-page .affordable-packages .section-title {
    margin-bottom: 8px;
}

body.services-page .package-section-note {
    max-width: 620px;
    margin: 0 auto 28px;
    color: #66809a;
    font-size: 0.95rem;
    line-height: 1.65;
    text-align: center;
}

body.services-page .affordable-packages .card-container {
    align-items: stretch;
    gap: 24px;
}

body.services-page .affordable-packages .promo-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 340px;
    min-height: 500px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(135, 181, 222, 0.5);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 20px 44px rgba(17, 71, 122, 0.12);
    text-align: left;
}

body.services-page .affordable-packages .promo-card::before {
    display: none;
}

body.services-page .affordable-packages .promo-card:hover,
body.services-page .affordable-packages .promo-card:focus-visible {
    border-color: rgba(45, 128, 199, 0.65);
    background: #fff;
    box-shadow: 0 26px 52px rgba(17, 71, 122, 0.2);
    transform: translateY(-8px);
}

body.services-page .package-card-media {
    position: relative;
    flex: 0 0 180px;
    width: 100%;
    overflow: hidden;
    background: #dbeaf6;
}

body.services-page .package-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(5, 42, 77, 0.58));
    pointer-events: none;
}

body.services-page .package-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: transform 0.55s ease;
}

body.services-page .affordable-packages .promo-card:hover .package-card-media img,
body.services-page .affordable-packages .promo-card:focus-visible .package-card-media img {
    transform: scale(1.045);
}

body.services-page .package-test-count {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, 0.48);
    border-radius: 999px;
    background: rgba(6, 55, 97, 0.76);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

body.services-page .affordable-packages .package-card-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
    padding: 24px 24px 22px;
}

body.services-page .affordable-packages .promo-card .icon {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid #c8e0f4;
    border-radius: 15px;
    background: #eaf5ff;
    color: #1765a5;
    font-size: 1.1rem;
}

body.services-page .package-card-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-width: 0;
}

body.services-page .affordable-packages .promo-card h3 {
    margin: 1px 0 7px;
    color: #103e68;
    font-size: 1.28rem;
}

body.services-page .affordable-packages .service-focus {
    align-self: flex-start;
    margin: 0 0 12px;
    padding: 6px 10px;
    background: #eaf4fd;
    color: #2b6b9f;
    font-size: 0.67rem;
}

body.services-page .affordable-packages .includes {
    margin: 0 0 12px;
    color: #345b7d;
    font-size: 0.84rem;
    font-weight: 650;
    line-height: 1.55;
}

body.services-page .affordable-packages .service-info {
    margin: 0 0 16px;
    color: #688197;
    font-size: 0.82rem;
    line-height: 1.6;
}

body.services-page .affordable-packages .price {
    margin: auto 0 0;
    padding-top: 14px;
    border-top: 1px solid #dfebf5;
    color: #1266a8;
    font-size: 1.25rem;
    font-weight: 800;
}

@media (max-width: 760px) {
    body.services-page .affordable-packages .card-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    body.services-page .affordable-packages .promo-card {
        display: grid;
        grid-template-columns: minmax(125px, 0.42fr) minmax(0, 1fr);
        width: 100%;
        min-height: 250px;
        border-radius: 22px;
    }

    body.services-page .affordable-packages .package-card-media {
        height: 100%;
        min-height: 250px;
    }

    body.services-page .affordable-packages .package-card-content {
        padding: 20px 18px;
    }
}

@media (max-width: 480px) {
    body.services-page .affordable-packages .promo-card {
        display: flex;
        min-height: 0;
    }

    body.services-page .affordable-packages .package-card-media {
        flex-basis: 145px;
        min-height: 145px;
    }

    body.services-page .affordable-packages .package-card-content {
        padding: 18px 16px 20px;
    }
}

body.dark-mode.services-page .package-section-note {
    color: #b4cce1;
}

body.dark-mode.services-page .affordable-packages .promo-card,
body.dark-mode.services-page .affordable-packages .promo-card:hover,
body.dark-mode.services-page .affordable-packages .promo-card:focus-visible {
    border-color: rgba(138, 190, 232, 0.3);
    background: #213d56;
}

body.dark-mode.services-page .affordable-packages .promo-card h3 {
    color: #f4faff;
}

body.dark-mode.services-page .affordable-packages .includes {
    color: #d2e5f5;
}

body.dark-mode.services-page .affordable-packages .service-info {
    color: #afc7dc;
}

body.dark-mode.services-page .affordable-packages .price {
    border-color: rgba(159, 199, 233, 0.2);
    color: #8dcbff;
}

/* Service-category design study: deliberately different treatments for comparison. */
body.services-page .service-design-label {
    width: fit-content;
    margin: 0 auto 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8f3ff;
    color: #1768a9;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}
body.services-page .category-experiment {
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 34px;
    border: 1px solid rgba(21,89,151,.1);
    border-radius: 30px;
}
body.services-page .category-experiment .section-title { margin-bottom: 24px; }
body.services-page .category-experiment .category-heading > p:not(.service-design-label) {
    max-width: 650px;
    margin: -16px auto 24px;
    color: #607188;
    line-height: 1.65;
}
body.services-page .category-media {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* B — Hematology: split showcase with compact horizontal cards. */
body.services-page .hematology-category {
    background: linear-gradient(145deg,#fff 0%,#fff6f7 100%);
    box-shadow: 0 22px 55px rgba(130,36,53,.08);
}
body.services-page .hematology-category .category-heading { text-align: left; }
body.services-page .hematology-category .service-design-label,
body.services-page .hematology-category .category-heading > p:not(.service-design-label) { margin-left: 0; margin-right: 0; }
body.services-page .hematology-category .category-layout {
    display: grid;
    grid-template-columns: minmax(260px,.82fr) minmax(0,1.55fr);
    gap: 26px;
}
body.services-page .hematology-category .category-media {
    min-height: 410px;
    border-radius: 22px;
    background-image: linear-gradient(180deg,transparent 62%,rgba(91,18,37,.45)),url("assets/services/hematology-blood-cells.jpg");
}
body.services-page .hematology-category .card-container {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 14px;
}
body.services-page .hematology-category .service-card,
body.services-page .serology-category .service-card {
    width: auto;
    min-height: 110px;
    padding: 16px;
    display: grid;
    grid-template-columns: 46px minmax(0,1fr) auto;
    align-items: center;
    gap: 12px;
    border-radius: 17px;
    background: #fff;
    text-align: left;
}
body.services-page .hematology-category .service-card { border-color: #f0dce1; box-shadow: 0 10px 24px rgba(96,29,46,.07); }
body.services-page .hematology-category .service-card::before,
body.services-page .serology-category .service-card::before,
body.services-page .chemistry-category .service-card::before,
body.services-page .microscopy-category .service-card::before,
body.services-page .others-category .service-card::before { display: none; }
body.services-page .hematology-category .service-card .icon,
body.services-page .serology-category .service-card .icon {
    width: 46px;
    height: 46px;
    margin: 0;
    display: grid;
    place-items: center;
    border-radius: 14px;
}
body.services-page .hematology-category .service-card .icon { background: #fff0f3; color: #bd3153; }
body.services-page .hematology-category .service-card h3 { margin: 0; color: #4a2030; font-size: 1rem; }
body.services-page .hematology-category .service-card .price { margin: 0; color: #a12645; font-size: .92rem; }
body.services-page .hematology-category .service-card:hover { transform: translateY(-4px); background: #fff; border-color: #e8aabb; }

/* C — Clinical microscopy: editorial image strip with overlapping cards. */
body.services-page .microscopy-category {
    overflow: hidden;
    background: #123953;
    box-shadow: 0 25px 55px rgba(10,48,72,.17);
}
body.services-page .microscopy-category .section-title,
body.services-page .microscopy-category .category-heading > p:not(.service-design-label) { color: #fff; }
body.services-page .microscopy-category .service-design-label { background: rgba(124,231,222,.14); color: #9cf4ea; }
body.services-page .microscopy-category .category-media {
    min-height: 280px;
    border-radius: 22px;
    background-image: linear-gradient(90deg,rgba(6,36,54,.18),transparent),url("assets/services/microscopy-lab.jpg");
    background-position: center 42%;
}
body.services-page .microscopy-category .card-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 14px;
    margin: -54px 22px 0;
}
body.services-page .microscopy-category .service-card {
    width: auto;
    min-height: 176px;
    padding: 22px 16px;
    border-color: rgba(255,255,255,.55);
    border-radius: 18px;
    background: rgba(248,255,255,.94);
    box-shadow: 0 16px 30px rgba(2,26,39,.2);
    backdrop-filter: blur(12px);
}
body.services-page .microscopy-category .service-card .icon { color: #0d8b82; }
body.services-page .microscopy-category .service-card h3 { color: #12384d; font-size: 1.02rem; }
body.services-page .microscopy-category .service-card .price { color: #0a766f; }
body.services-page .microscopy-category .service-card:hover { transform: translateY(-7px); background: #fff; }

/* D — Serology: illustrated feature panel with scan-friendly rows. */
body.services-page .serology-category { background: linear-gradient(135deg,#f4f2ff,#edf6ff); }
body.services-page .serology-category .category-layout {
    display: grid;
    grid-template-columns: minmax(260px,.72fr) minmax(0,1.45fr);
    gap: 28px;
}
body.services-page .serology-category .category-heading {
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(145deg,#4d49a7,#2e6ba7);
    text-align: left;
}
body.services-page .serology-category .service-design-label,
body.services-page .serology-category .category-heading > p:not(.service-design-label) { margin-left: 0; margin-right: 0; }
body.services-page .serology-category .service-design-label { background: rgba(255,255,255,.14); color: #e8f2ff; }
body.services-page .serology-category .section-title,
body.services-page .serology-category .category-heading > p:not(.service-design-label) { color: #fff; }
body.services-page .serology-category .category-media {
    min-height: 180px;
    margin-top: 24px;
    border-radius: 18px;
    background-image: url("assets/services/serology-blood-testing.jpg");
    background-position: center 60%;
}
body.services-page .serology-category .card-container { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
body.services-page .serology-category .service-card { min-height: 88px; border-color: #dcdcf4; box-shadow: 0 8px 20px rgba(62,57,130,.07); }
body.services-page .serology-category .service-card .icon { border-radius: 50%; background: #eeedff; color: #5752b5; font-size: .95rem; }
body.services-page .serology-category .service-card h3 { margin: 0; color: #31345d; font-size: .98rem; }
body.services-page .serology-category .service-card .price { margin: 0; color: #425ca4; font-size: .9rem; }
body.services-page .serology-category .service-card:hover { transform: translateX(5px); background: #fff; }

/* E — Clinical chemistry: image-led diagnostic dashboard. */
body.services-page .chemistry-category { background: #eef5f8; }
body.services-page .chemistry-category .chemistry-heading-panel {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(320px,.9fr);
    min-height: 250px;
    overflow: hidden;
    border-radius: 24px;
    background: #123e57;
}
body.services-page .chemistry-category .category-heading { align-self: center; padding: 34px; text-align: left; }
body.services-page .chemistry-category .service-design-label,
body.services-page .chemistry-category .category-heading > p:not(.service-design-label) { margin-left: 0; margin-right: 0; }
body.services-page .chemistry-category .service-design-label { background: rgba(88,213,223,.13); color: #9cecf0; }
body.services-page .chemistry-category .section-title,
body.services-page .chemistry-category .category-heading > p:not(.service-design-label) { color: #fff; }
body.services-page .chemistry-category .category-media {
    min-height: 250px;
    background-image: linear-gradient(90deg,#123e57 0%,transparent 24%),url("assets/services/chemistry-analyzer.jpg");
}
body.services-page .chemistry-category .card-container {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 12px;
    margin-top: 18px;
}
body.services-page .chemistry-category .service-card {
    width: auto;
    min-height: 132px;
    padding: 17px;
    align-items: flex-start;
    border: 1px solid #d5e5eb;
    border-top: 4px solid #3bb6bd;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(22,71,91,.06);
    text-align: left;
}
body.services-page .chemistry-category .service-card .icon {
    width: 36px;
    height: 36px;
    margin: 0 0 9px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #e7f7f8;
    color: #16858d;
    font-size: .86rem;
}
body.services-page .chemistry-category .service-card h3 { margin: 0; color: #17384a; font-size: .95rem; }
body.services-page .chemistry-category .service-card .price { margin-top: auto; color: #167782; font-size: .9rem; }
body.services-page .chemistry-category .service-card:hover { transform: translateY(-5px); background: #fff; }

/* F — Other services: cinematic full-width feature. */
body.services-page .others-category { background: #111a24; border-color: #202e3d; }
body.services-page .others-category .section-title { color: #fff; }
body.services-page .others-category .service-design-label { background: rgba(95,220,129,.12); color: #8fe8a8; }
body.services-page .others-category .others-feature {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 24px;
    background: #070b10;
}
body.services-page .others-category .category-media {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg,rgba(2,7,11,.08),rgba(2,7,11,.88)),url("assets/services/ecg-monitor.jpg");
}
body.services-page .others-category .card-container {
    position: relative;
    z-index: 1;
    min-height: 330px;
    padding: 36px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
body.services-page .others-category .service-card {
    width: min(340px,100%);
    min-height: 230px;
    padding: 30px;
    border-color: rgba(255,255,255,.16);
    border-radius: 22px;
    background: rgba(13,24,33,.82);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
    backdrop-filter: blur(12px);
}
body.services-page .others-category .service-card .icon { color: #64dc86; }
body.services-page .others-category .service-card:hover { transform: translateY(-6px); background: rgba(17,34,44,.94); }

@media (max-width: 900px) {
    body.services-page .hematology-category .category-layout,
    body.services-page .serology-category .category-layout,
    body.services-page .chemistry-category .chemistry-heading-panel { grid-template-columns: minmax(0,1fr); }
    body.services-page .hematology-category .category-media { min-height: 270px; }
    body.services-page .serology-category .category-media { min-height: 220px; }
    body.services-page .chemistry-category .category-media { min-height: 220px; background-image: linear-gradient(180deg,#123e57,transparent 28%),url("assets/services/chemistry-analyzer.jpg"); }
    body.services-page .chemistry-category .card-container { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 650px) {
    body.services-page .category-experiment { margin: 22px auto; padding: 22px 14px; border-radius: 22px; }
    body.services-page .hematology-category .card-container,
    body.services-page .serology-category .card-container,
    body.services-page .chemistry-category .card-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.services-page .hematology-category .service-card,
    body.services-page .serology-category .service-card { min-height: 138px; padding: 14px 10px; display: flex; align-items: center; text-align: center; }
    body.services-page .microscopy-category .category-media { min-height: 230px; }
    body.services-page .microscopy-category .card-container { grid-template-columns: repeat(2,minmax(0,1fr)); margin: -38px 8px 0; }
    body.services-page .chemistry-category .category-heading,
    body.services-page .serology-category .category-heading { padding: 24px 20px; }
    body.services-page .chemistry-category .service-card { min-height: 130px; padding: 14px; }
    body.services-page .others-category .others-feature,
    body.services-page .others-category .card-container { min-height: 300px; }
    body.services-page .others-category .card-container { padding: 22px; justify-content: center; }
}

body.dark-mode.services-page .hematology-category,
body.dark-mode.services-page .serology-category,
body.dark-mode.services-page .chemistry-category { background: #172a3a; }
body.dark-mode.services-page .hematology-category .category-heading > p:not(.service-design-label) { color: #b8c9d8; }
body.dark-mode.services-page .hematology-category .service-card,
body.dark-mode.services-page .serology-category .service-card,
body.dark-mode.services-page .chemistry-category .service-card,
body.dark-mode.services-page .microscopy-category .service-card { border-color: #345166; background: #20384b; }
body.dark-mode.services-page .hematology-category .service-card h3,
body.dark-mode.services-page .serology-category .service-card h3,
body.dark-mode.services-page .chemistry-category .service-card h3,
body.dark-mode.services-page .microscopy-category .service-card h3 { color: #f2f8fc; }

/* Final services direction: one consistent photo-top card system. */
html:has(body.services-page),
body.services-page {
    max-width: 100%;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body.services-page {
    touch-action: pan-y pinch-zoom;
}

body.services-page .service-photo-section {
    --service-photo: url("assets/services/packages-blood-samples.jpg");
    margin: 0 auto;
    padding: 42px 20px 30px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.services-page .hematology-category {
    --service-photo: url("assets/services/hematology-blood-cells.jpg");
}

body.services-page .microscopy-category {
    --service-photo: url("assets/services/microscopy-lab.jpg");
}

body.services-page .serology-category {
    --service-photo: url("assets/services/serology-blood-testing.jpg");
}

body.services-page .chemistry-category {
    --service-photo: url("assets/services/chemistry-analyzer.jpg");
}

body.services-page .others-category {
    --service-photo: url("assets/services/ecg-monitor.jpg");
}

body.services-page .service-photo-section .category-heading {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    text-align: center;
}

body.services-page .service-photo-section .section-title {
    margin: 0 0 8px;
    color: #0f3e69;
}

body.services-page .service-photo-section .category-heading > p {
    max-width: 670px;
    margin: 0 auto 26px;
    color: #5a6e82;
    font-size: .96rem;
    line-height: 1.6;
}

body.services-page .service-photo-section .card-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    column-gap: 22px;
    row-gap: 34px;
    margin: 0;
}

body.services-page .service-photo-section .service-card {
    width: auto;
    min-width: 0;
    min-height: 410px;
    height: 100%;
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    overflow: hidden;
    border: 1px solid #d8e6f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(25, 82, 129, .1);
    color: #233b51;
    text-align: left;
    transform: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

body.services-page .service-photo-section .service-card::before {
    content: "";
    position: relative;
    inset: auto;
    z-index: 0;
    display: block;
    flex: 0 0 168px;
    width: calc(100% + 40px);
    height: 168px;
    margin: 0 -20px 8px;
    background-image: linear-gradient(180deg, transparent 62%, rgba(8, 42, 70, .22)), var(--service-photo);
    background-position: center;
    background-size: cover;
    pointer-events: none;
}

body.services-page .hematology-category .service-card::before {
    background-position: center 42%;
}

body.services-page .microscopy-category .service-card::before {
    background-position: center 38%;
}

body.services-page .chemistry-category .service-card::before {
    background-position: center 46%;
}

body.services-page .service-photo-section .service-card.has-service-atlas-image::before {
    background-image:
        linear-gradient(180deg, transparent 62%, rgba(8, 42, 70, .2)),
        url("assets/services/service-image-atlas-v1.png");
    background-position: center, var(--service-photo-x) var(--service-photo-y);
    /* Overscan each tile and center it precisely so outer atlas margins are cropped too. */
    background-size: cover, 640% 640%;
}

body.services-page .service-photo-section .service-card > * {
    position: relative;
    z-index: 1;
}

body.services-page .service-photo-section .service-card .icon {
    width: 42px;
    height: 42px;
    margin: 0 0 3px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eaf5ff;
    color: #1975b9;
    font-size: 1rem;
}

body.services-page .service-photo-section .service-card h3 {
    margin: 0;
    color: #173f65;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.3;
}

body.services-page .service-photo-section .service-card .service-focus {
    width: auto;
    max-width: 100%;
    margin: 1px 0 3px;
    padding: 5px 9px;
    border: 0;
    border-radius: 999px;
    background: #eaf4fd;
    color: #176aa8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    line-height: 1.25;
    opacity: 1;
    text-transform: uppercase;
    -webkit-text-fill-color: currentColor;
}

body.services-page .service-photo-section .service-card .service-info,
body.services-page .service-photo-section .service-card .includes {
    display: block;
    overflow: visible;
    margin: 3px 0;
    color: #536b80;
    font-size: .84rem;
    font-weight: 500;
    line-height: 1.5;
    opacity: 1;
    -webkit-line-clamp: initial;
    -webkit-text-fill-color: #536b80;
}

body.services-page .service-photo-section .service-card .price {
    width: 100%;
    margin: auto 0 0;
    padding-top: 12px;
    border-top: 1px solid #e7eef4;
    color: #1268a7;
    font-size: 1.02rem;
    font-weight: 800;
    opacity: 1;
    -webkit-text-fill-color: #1268a7;
}

body.services-page .service-photo-section .service-card:hover,
body.services-page .service-photo-section .service-card:focus-visible {
    border-color: #90c4e8;
    background: #fff;
    box-shadow: 0 19px 36px rgba(25, 82, 129, .16);
    transform: translateY(-5px);
}

body.services-page .service-photo-section .service-card:focus-visible {
    outline: 3px solid rgba(35, 137, 207, .24);
    outline-offset: 3px;
}

body.services-page .service-photo-section img,
body.services-page .package-card-media img {
    max-width: 100%;
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

@media (max-width: 860px) {
    body.services-page .service-photo-section .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 16px;
        row-gap: 26px;
    }

    body.services-page .service-photo-section .service-card {
        min-height: 390px;
    }
}

@media (max-width: 560px) {
    html:has(body.services-page),
    body.services-page {
        width: 100%;
        min-width: 0;
        overflow-x: clip;
        overscroll-behavior-x: none;
    }

    body.services-page .service-photo-section {
        width: 100%;
        padding: 30px 16px 20px;
    }

    body.services-page .service-photo-section .category-heading > p {
        margin-bottom: 20px;
        font-size: .88rem;
    }

    body.services-page .service-photo-section .card-container,
    body.services-page .service-photo-section:first-of-type .card-container {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 22px;
    }

    body.services-page .service-photo-section .service-card {
        width: 100%;
        min-height: 0;
        padding: 0 18px 18px;
        gap: 7px;
        border-radius: 18px;
        transform: none !important;
        transition: border-color .18s ease, box-shadow .18s ease;
    }

    body.services-page .service-photo-section .service-card::before {
        flex-basis: 158px;
        width: calc(100% + 36px);
        height: 158px;
        margin: 0 -18px 8px;
    }

    body.services-page .service-photo-section .service-card .icon {
        width: 40px;
        height: 40px;
        font-size: .95rem;
    }

    body.services-page .service-photo-section .service-card h3 {
        font-size: 1.02rem;
    }

    body.services-page .service-photo-section .service-card .service-info,
    body.services-page .service-photo-section .service-card .includes {
        display: block;
        overflow: visible;
        font-size: .82rem;
        line-height: 1.48;
        -webkit-line-clamp: initial;
    }

    body.services-page .affordable-packages .promo-card,
    body.services-page .affordable-packages .promo-card:hover,
    body.services-page .affordable-packages .promo-card:focus-visible {
        width: 100%;
        display: block;
        transform: none !important;
        touch-action: manipulation;
    }

    body.services-page .affordable-packages .package-card-media {
        width: 100%;
        min-height: 158px;
        height: 158px;
        flex-basis: auto;
    }

    body.services-page .affordable-packages .package-card-media img {
        transform: none !important;
    }
}

body.dark-mode.services-page .service-photo-section .section-title {
    color: #e9f5ff;
}

body.dark-mode.services-page .service-photo-section .category-heading > p {
    color: #b9ccdc;
}

body.dark-mode.services-page .service-photo-section .service-card,
body.dark-mode.services-page .service-photo-section .service-card:hover,
body.dark-mode.services-page .service-photo-section .service-card:focus-visible {
    border-color: #36566e;
    background: #203a4f;
}

body.dark-mode.services-page .service-photo-section .service-card h3 {
    color: #f1f8fd;
}

body.dark-mode.services-page .service-photo-section .service-card .service-info,
body.dark-mode.services-page .service-photo-section .service-card .includes {
    color: #c1d4e3;
    -webkit-text-fill-color: #c1d4e3;
}

body.dark-mode.services-page .service-photo-section .service-card .price {
    border-color: #38576d;
    color: #8dcbff;
    -webkit-text-fill-color: #8dcbff;
}

/* Compact homepage location panel */
body.home-page .home-footer {
    max-width: 1240px;
    box-sizing: border-box;
    gap: 24px;
    align-items: center;
    padding: 24px;
    border-radius: 26px;
}

body.home-page .home-footer-copy {
    flex: 0 1 42%;
}

body.home-page .home-footer h3 {
    margin: 8px 0 12px;
}

body.home-page .home-footer p {
    margin: 10px 0;
    line-height: 1.55;
}

body.home-page .footer-map-link {
    flex: 1 1 58%;
    width: 100%;
    height: 340px;
    min-height: 0;
    border-radius: 20px;
}

body.home-page .footer-map-image {
    width: 100%;
    height: 100%;
}

@media (max-width: 1080px) {
    body.home-page .home-footer {
        max-width: 760px;
        align-items: stretch;
    }

    body.home-page .footer-map-link {
        height: 300px;
    }
}

@media (max-width: 640px) {
    body.home-page .home-footer {
        padding: 18px 16px;
        border-radius: 20px;
    }

    body.home-page .footer-map-link {
        height: 210px;
    }
}

/* Final patient-facing mobile layout. Desktop styles remain unchanged. */
@media (max-width: 640px) {
    html,
    body:is(.home-page, .services-page, .profile-page) {
        width: 100%;
        min-width: 0;
        overflow-x: clip;
    }

    body.home-page .sticky-header.home-header,
    body.services-page .sticky-header.home-header,
    body.profile-page .sticky-header.home-header {
        padding: 8px 10px;
    }

    body.home-page .home-nav,
    body.services-page .home-nav,
    body.profile-page .home-nav {
        gap: 7px;
    }

    body.home-page .home-brand-logo,
    body.services-page .home-brand-logo,
    body.profile-page .home-brand-logo {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    body.home-page .home-brand-title,
    body.services-page .home-brand-title,
    body.profile-page .home-brand-title {
        font-size: .82rem;
        line-height: 1.15;
    }

    body.home-page .home-brand-subtitle,
    body.services-page .home-brand-subtitle,
    body.profile-page .home-brand-subtitle {
        font-size: .64rem;
    }

    body.home-page .home-nav-links,
    body.services-page .home-nav-links,
    body.profile-page .home-nav-links {
        gap: 4px;
        padding: 4px;
        border-radius: 13px;
    }

    body.home-page .home-nav-links a,
    body.services-page .home-nav-links a,
    body.profile-page .home-nav-links a {
        min-height: 40px;
        padding: 6px 4px;
        border-radius: 9px;
        font-size: .78rem;
    }

    body .home-nav-actions {
        gap: 4px;
    }

    body .home-nav-actions button,
    body .notification-bell,
    body .theme-toggle {
        width: 40px;
        height: 40px;
        min-height: 40px;
    }

    body.home-page .accreditation-section {
        padding-top: 18px;
        padding-bottom: 30px;
    }

    body.home-page .accreditation-section .section-heading {
        margin-bottom: 18px;
    }

    body.home-page .accreditation-section .section-heading h2 {
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.08;
    }

    body.home-page .accreditation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.home-page .accreditation-card {
        min-height: 92px;
        padding: 10px;
        border-radius: 15px;
    }

    body.home-page .accreditation-card img {
        max-width: 118px;
        max-height: 48px;
    }

    body.home-page .home-reviews {
        margin-left: 10px;
        margin-right: 10px;
        padding: 22px 14px 18px;
        overflow: hidden;
        border-radius: 22px;
    }

    body.home-page .review-section-header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px 10px;
        margin-bottom: 16px;
    }

    body.home-page .review-heading-copy {
        grid-column: 1 / -1;
    }

    body.home-page .home-reviews .review-heading-copy h2 {
        margin-bottom: 8px;
        font-size: clamp(1.7rem, 8vw, 2.05rem);
        line-height: 1.05;
    }

    body.home-page .review-section-intro {
        font-size: .86rem;
        line-height: 1.55;
    }

    body.home-page .review-score-card {
        grid-column: 1 / -1;
        justify-self: start;
        gap: 10px;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 16px;
    }

    body.home-page .review-score-icon {
        width: 38px;
        height: 38px;
        border-radius: 11px;
        font-size: 1rem;
    }

    body.home-page .review-score-card strong {
        font-size: 1.2rem;
    }

    body.home-page .review-score-card span:last-child {
        display: block;
        margin-top: 2px;
        font-size: .68rem;
    }

    body.home-page .review-carousel-footer {
        align-items: center;
        margin-bottom: 10px;
    }

    body.home-page .review-list-label strong {
        font-size: .88rem;
    }

    body.home-page .review-list-label span {
        font-size: .7rem;
    }

    body.home-page .review-nav-btn {
        width: 38px;
        height: 38px;
        min-height: 38px;
        border-radius: 11px;
        font-size: 1rem;
    }

    body.home-page .home-reviews .reviews {
        gap: 12px;
        padding: 2px 1px 12px;
    }

    body.home-page .review-card {
        flex-basis: 100%;
        min-height: 236px;
        padding: 16px 15px;
        border-radius: 18px;
    }

    body.home-page .review-avatar-image,
    body.home-page .review-avatar-fallback {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    body.home-page .review-card .review-stars {
        margin: 14px 0 10px;
        font-size: .82rem;
    }

    body.home-page .review-card .review-message {
        font-size: .86rem;
        line-height: 1.58;
    }

    body.home-page .review-date {
        padding-top: 14px;
    }

    body.home-page .review-btn {
        gap: 12px;
        margin-top: 8px;
        padding: 16px;
        border-radius: 18px;
    }

    body.home-page .review-cta-copy strong {
        font-size: .92rem;
        line-height: 1.35;
    }

    body.home-page .review-btn .secondary-btn {
        width: 100%;
        padding: 11px 14px;
    }

    body.services-page .service-photo-section {
        padding: 22px 10px 16px;
    }

    body.services-page .service-photo-section .category-heading > p {
        margin-bottom: 14px;
        font-size: .78rem;
        line-height: 1.45;
    }

    body.services-page section.service-photo-section .card-container,
    body.services-page section.service-photo-section:first-of-type .card-container,
    body.services-page section.affordable-packages .card-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    body.services-page .service-photo-section .service-card {
        min-height: 286px;
        padding: 0 10px 12px;
        gap: 4px;
        border-radius: 16px;
    }

    body.services-page .service-photo-section .service-card::before {
        flex-basis: 104px;
        width: calc(100% + 20px);
        height: 104px;
        margin: 0 -10px 6px;
    }

    body.services-page .service-photo-section .service-card .icon {
        width: 34px;
        height: 34px;
        margin-bottom: 2px;
        border-radius: 10px;
        font-size: .82rem;
    }

    body.services-page .service-photo-section .service-card h3 {
        font-size: .84rem;
        line-height: 1.22;
    }

    body.services-page .service-photo-section .service-card .service-focus {
        padding: 4px 6px;
        font-size: .54rem;
        letter-spacing: .035em;
    }

    body.services-page .service-photo-section .service-card .service-info,
    body.services-page .service-photo-section .service-card .includes {
        display: -webkit-box;
        overflow: hidden;
        margin: 2px 0;
        font-size: .66rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    body.services-page .service-photo-section .service-card .price {
        padding-top: 8px;
        font-size: .8rem;
    }

    body.services-page section.affordable-packages .promo-card,
    body.services-page section.affordable-packages .promo-card:hover,
    body.services-page section.affordable-packages .promo-card:focus-visible {
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-radius: 16px;
        transform: none !important;
    }

    body.services-page section.affordable-packages .package-card-media {
        width: 100%;
        min-height: 106px;
        height: 106px;
    }

    body.services-page section.affordable-packages .package-card-content {
        padding: 11px 10px 12px;
    }

    body.services-page section.affordable-packages .promo-card h3 {
        font-size: .86rem;
    }

    body.services-page section.affordable-packages .promo-card .includes,
    body.services-page section.affordable-packages .promo-card .service-info {
        display: -webkit-box;
        overflow: hidden;
        font-size: .66rem;
        line-height: 1.35;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    body.profile-page .profile-dashboard,
    body.profile-page .profile-guest-gate {
        margin-top: 12px;
        padding: 0 10px 20px;
    }

    body.profile-page .profile-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    body.profile-page .profile-stat-card {
        min-width: 0;
        padding: 10px 7px;
    }

    body.profile-page .profile-stat-card span {
        font-size: .64rem;
        overflow-wrap: anywhere;
    }

    body.profile-page .profile-sidebar-actions,
    body.profile-page .profile-appointment-actions,
    body.profile-page .profile-guest-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    body.profile-page .profile-sidebar-actions button,
    body.profile-page .profile-appointment-actions button,
    body.profile-page .profile-guest-actions a {
        width: 100%;
        min-width: 0;
    }

    html:has(body.services-page .modal[style*="display: block"]),
    body.services-page:has(.modal[style*="display: block"]) {
        overflow: hidden;
    }

    body.services-page .modal {
        overflow: hidden;
        overscroll-behavior: contain;
    }

    body.home-page .home-footer {
        max-width: none;
        padding: 18px 14px;
    }

    body.home-page .footer-map-link {
        height: 200px;
        min-height: 0;
    }
}

@media (max-width: 370px) {
    body.services-page .service-photo-section .service-card {
        min-height: 274px;
    }

    body.services-page .service-photo-section .service-card::before {
        flex-basis: 92px;
        height: 92px;
    }
}

/* Discount eligibility and booking choices */
body.profile-page .profile-discount-card { padding: 18px 24px; }
.profile-discount-summary { display:flex; align-items:center; justify-content:space-between; gap:18px; list-style:none; cursor:pointer; }
.profile-discount-summary::-webkit-details-marker { display:none; }
.profile-discount-summary-copy { display:grid; gap:3px; min-width:0; }
.profile-discount-summary-copy .section-kicker { margin:0; }
.profile-discount-summary-copy strong { color:#1f3e68; font-size:1.35rem; line-height:1.3; }
.profile-discount-summary-copy small { color:#607b98; font-size:.84rem; line-height:1.5; }
.profile-discount-summary > i { display:grid; place-items:center; flex:0 0 34px; width:34px; height:34px; border-radius:50%; background:#e8f3ff; color:#176aa8; transition:transform .2s ease; }
.profile-discount-card[open] .profile-discount-summary > i { transform:rotate(180deg); }
.profile-discount-summary:focus-visible { outline:3px solid #2687cf; outline-offset:5px; border-radius:8px; }
.profile-discount-content { display:grid; gap:16px; margin-top:18px; padding-top:18px; border-top:1px solid #d8e7f5; }
.profile-discount-card:not([open]) > .profile-discount-content { display:none; }
.profile-discount-intro { max-width: 720px; margin:0; color: #607b98; line-height: 1.65; }
.profile-discount-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.profile-discount-actions button { min-height: 44px; }
.profile-discount-member-list { display: grid; gap: 12px; }
.discount-member-empty, .discount-member-card { display: flex; align-items: center; gap: 15px; padding: 16px; border: 1px solid #d5e6f5; border-radius: 18px; background: linear-gradient(135deg, #f9fcff, #eff7ff); }
.discount-member-empty i, .discount-member-icon { width: 50px; height: 50px; display: grid; place-items: center; flex: 0 0 50px; border-radius: 15px; background: #dceeff; color: #1268a6; font-size: 1.2rem; }
.discount-member-empty div, .discount-member-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.discount-member-empty span, .discount-member-copy > span, .discount-member-copy small { color: #647f9d; line-height: 1.45; }
.discount-member-title { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.discount-member-title strong { color: #123f6b; font-size: 1.02rem; }
.discount-status { display: inline-flex; align-items: center; width: fit-content; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 800; }
.discount-status.is-pending { background: #fff1c5; color: #7c5900; }
.discount-status.is-verified { background: #d8f6e6; color: #087146; }
.discount-status.is-rejected, .discount-status.is-expired { background: #ffe0e0; color: #9c2f35; }
.discount-member-controls { display: flex; align-items: center; gap: 8px; }
.discount-member-controls button { min-height: 38px; padding: 8px 11px; }
.discount-remove-btn { border: 0; background: transparent; color: #a13d43; font: inherit; font-weight: 800; cursor: pointer; }
.profile-discount-note { display: flex; gap: 9px; margin:0; color: #6b829a; font-size: .78rem; line-height: 1.55; }
.discount-member-modal-content { position:relative; width:min(860px,100%); max-width:none; max-height:88vh; margin:0; padding:30px; overflow-x:hidden; overflow-y:auto; border:1px solid #d5e6f5; border-radius:24px; background:#fff; box-shadow:0 28px 70px rgba(8,47,89,.28); color:#173f63; }
#discountMemberModal { place-items:center; padding:16px; overflow:hidden; backdrop-filter:none; background:rgba(10,29,48,.68); }
.discount-member-modal-content .booking-modal-header { max-width:680px; margin:0 auto 22px; text-align:center; }
.discount-member-modal-content .booking-modal-header h2 { margin:7px 0 8px; color:#0b3f70; font-size:clamp(1.65rem,4vw,2.25rem); }
.discount-member-form { display: grid; gap: 18px; }
.discount-form-section { display: grid; gap: 16px; padding: 20px; border: 1px solid #d8e8f6; border-radius: 18px; background: #f7fbff; }
.discount-form-section-heading { display: flex; align-items: center; gap: 11px; }
.discount-form-section-heading > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; background: #1268a6; color: #fff; font-weight: 900; }
.discount-form-section-heading > div { display: grid; gap: 2px; }
.discount-form-section-heading strong { color: #123f6b; }
.discount-form-section-heading small { color: #6d849b; }
.discount-person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:16px; }
.discount-person-grid > .modal-field,
.discount-id-fields > .modal-field { min-width:0; margin:0; }
.discount-member-form .modal-field input,
.discount-member-form .modal-field select { box-sizing:border-box; display:block; width:100% !important; min-width:0; height:52px !important; min-height:52px !important; margin:0 !important; padding:0 14px !important; border:1px solid #bdd8ee; border-radius:13px; background:#fff; color:#234e73; font:inherit; line-height:1.2; outline:none; transition:border-color .18s ease,box-shadow .18s ease; }
.discount-member-form .modal-field input { box-sizing:border-box; display:block; width:100% !important; min-width:0; height:52px !important; min-height:52px !important; margin:0 !important; padding:0 14px !important; border:1px solid #bdd8ee; border-radius:13px; background:#fff; color:#234e73; font:inherit; line-height:52px; outline:none; transition:border-color .18s ease,box-shadow .18s ease; }
.discount-member-form .modal-field input[readonly] { background:#edf4fa; color:#4a6780; cursor:not-allowed; }
.discount-member-form .modal-field textarea { box-sizing:border-box; display:block; width:100% !important; min-width:0; min-height:96px; margin:0 !important; padding:13px 14px; border:1px solid #bdd8ee; border-radius:13px; background:#fff; color:#234e73; font:inherit; resize:vertical; outline:none; }
.discount-member-form .modal-field input:focus,
.discount-member-form .modal-field select:focus,
.discount-member-form .modal-field textarea:focus { border-color: #1774b4; box-shadow: 0 0 0 3px rgba(23,116,180,.12); }
.discount-address-field { grid-column: 1 / -1; }
.discount-address-field textarea { width: 100%; resize: vertical; }
.discount-benefit-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.discount-benefit-choices > label { position: relative; cursor: pointer; }
.discount-benefit-choices input { position: absolute; opacity: 0; }
.discount-benefit-choices label > span { min-height: 96px; display: grid; place-items: center; align-content: center; gap: 5px; padding: 14px; border: 1px solid #cfe1f2; border-radius: 15px; background: #fff; color: #365f82; text-align: center; transition: .18s ease; }
.discount-benefit-choices input:checked + span { border-color: #1774b4; background: #eaf6ff; box-shadow: 0 0 0 3px rgba(23,116,180,.12); color: #0d5d98; }
.discount-benefit-choices i { font-size: 1.2rem; }
.discount-benefit-choices small { color: #6c8399; }
.discount-insurance-fields { display: grid; gap: 12px; padding: 15px; border-radius: 15px; background: #eef7ff; }
.discount-insurance-fields[hidden], .discount-form-section [hidden] { display: none !important; }
.discount-insurance-fields p { margin: 0; color: #496b8d; font-weight: 800; }
.insurance-check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.insurance-check-grid label { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid #c8dff1; border-radius: 11px; background: #fff; color: #365f82; font-weight: 700; }
.insurance-check-grid input { width: auto; margin: 0; accent-color: #1268a6; }
.discount-document-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.discount-id-upload { display: grid; justify-items: stretch; gap: 9px; padding: 16px; border: 1px dashed #a9cae7; border-radius: 17px; background: #f7fbff; }
.discount-id-upload > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.discount-upload-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.discount-upload-actions .upload-btn { display:flex; box-sizing:border-box; width:100%; min-width:0; min-height:42px; margin:0; padding:8px 6px; align-items:center; justify-content:center; gap:5px; text-align:center; line-height:1.2; }
.discount-no-id-choice { display:flex; align-items:center; gap:10px; margin:14px 0 0; color:#315b80; font-weight:700; }
.discount-no-id-choice input { width:auto; margin:0; accent-color:#1268a6; }
.discount-no-id-help { margin:8px 0 12px; color:#577795; font-size:.84rem; line-height:1.5; }
#discountDocumentSection[hidden] { display:none !important; }
.discount-pwd-explanation { margin:12px 0; }
.discount-pwd-explanation textarea { width:100%; box-sizing:border-box; }
.discount-upload-actions button.upload-btn { width:100%; min-height:42px; margin:0; border:0; font:inherit; cursor:pointer; }
.discount-upload-actions .is-secondary { background: #fff; color: #1268a6; border: 1px solid #afd0e9; }
.discount-id-preview { width: 100%; padding: 12px 14px; border-radius: 12px; background: #fff; color: #496b8d; font-weight: 700; overflow-wrap: anywhere; }
.discount-id-upload small { color: #6d849b; }
.discount-upload-help { color: #6d849b; }
.discount-camera-modal { place-items:center; padding:18px; backdrop-filter:none; background:rgba(10,29,48,.76); }
.discount-camera-dialog { position:relative; width:min(720px,100%); padding:28px; border-radius:24px; background:#fff; box-shadow:0 30px 80px rgba(0,0,0,.35); text-align:center; }
.discount-camera-dialog h2 { margin:5px 0 8px; color:#0b3f70; }
.discount-camera-dialog > p { color:#587692; }
.discount-camera-frame { overflow:hidden; width:100%; aspect-ratio:4/3; margin:18px 0 10px; border:3px solid #156ba8; border-radius:18px; background:#10263a; }
.discount-camera-frame video,.discount-camera-frame canvas { width:100%; height:100%; object-fit:cover; }
.discount-camera-status { min-height:22px; margin:8px 0; font-weight:800; }
.discount-consent { display: flex; align-items: flex-start; gap: 10px; color: #365a7d; line-height: 1.5; }
.discount-consent input { margin-top: 4px; }
.booking-patient-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 12px 0 18px; }
.booking-patient-choice { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px; border: 1px solid #cfe1f2; border-radius: 15px; background: #fff; cursor: pointer; transition: .2s ease; }
.booking-patient-choice.is-selected { border-color: #1974b5; background: #edf7ff; box-shadow: 0 0 0 3px rgba(25,116,181,.1); }
.booking-patient-choice input { accent-color: #116ba9; }
.booking-person-fields .booking-patient-choice input[type="checkbox"] { appearance:none; box-sizing:border-box; display:grid; place-items:center; width:16px; min-width:16px; height:16px; padding:0; margin:0; flex:0 0 16px; border:1.5px solid #116ba9; border-radius:50%; background:#fff; cursor:pointer; }
.booking-person-fields .booking-patient-choice input[type="checkbox"]::before { content:""; width:8px; height:8px; border-radius:50%; background:#116ba9; transform:scale(0); }
.booking-person-fields .booking-patient-choice input[type="checkbox"]:checked::before { transform:scale(1); }
.booking-person-fields .booking-patient-choice input[type="checkbox"]:focus-visible { outline:3px solid #2687cf; outline-offset:3px; }
.booking-patient-choice > span:nth-of-type(1) { display: grid; gap: 3px; min-width: 0; flex: 1; }
.booking-patient-choice strong { color: #123f6c; }
.booking-patient-choice small { color: #66809a; line-height: 1.35; }
.booking-person-fields .booking-patient-options { margin:0; }
.booking-saved-patients-label { margin:4px 0 -7px; color:#204f78; font-size:.88rem; font-weight:800; }
.booking-manual-choice { justify-self:start; padding:8px 0; border:0; background:transparent; color:#0c659f; font:inherit; font-weight:800; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.booking-manual-choice:focus-visible { outline:3px solid #2687cf; outline-offset:3px; }
.booking-manual-patient-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.booking-discount-status { display: flex; align-items: flex-start; gap: 11px; margin: 15px 0; padding: 14px 16px; border: 1px solid #d5e4f2; border-radius: 15px; background: #f7fbff; }
.booking-discount-status > div { display: grid; gap: 3px; }
.booking-discount-status strong { color: #153f68; }
.booking-discount-status span { color: #617b95; font-size: .84rem; line-height: 1.45; }
.booking-discount-status.is-verified { border-color: #a9ddc3; background: #effbf5; }
.booking-discount-status.is-verified i { color: #138052; }
.booking-discount-status.is-pending, .booking-discount-status.is-rejected, .booking-discount-status.is-expired { border-color: #eed99e; background: #fffaf0; }
.booking-discount-choice { margin: 0 0 16px; }
.booking-payment-panel .booking-discount-choice { margin:0 0 16px; padding:0 0 16px; border:0; border-bottom:1px solid #d7e5f2; }
.booking-discount-choice small { color: #6b829a; line-height: 1.45; }
.booking-payment-breakdown { display: grid; gap: 7px; padding: 12px 14px; border-radius: 13px; background: rgba(255,255,255,.72); }
.booking-payment-breakdown span { display: flex; justify-content: space-between; gap: 18px; color: #466986; }
body.dark-mode .discount-member-empty, body.dark-mode .discount-member-card, body.dark-mode .discount-id-upload, body.dark-mode .discount-form-section, body.dark-mode .booking-patient-choice, body.dark-mode .booking-discount-status { background: #173a5a; border-color: #365b7a; }
body.dark-mode .discount-member-title strong, body.dark-mode .booking-patient-choice strong, body.dark-mode .booking-discount-status strong { color: #eff8ff; }
body.dark-mode .profile-discount-intro, body.dark-mode .discount-member-copy > span, body.dark-mode .discount-member-copy small, body.dark-mode .booking-patient-choice small, body.dark-mode .booking-discount-status span { color: #bfd1e2; }
@media (max-width: 760px) {
    body.profile-page .profile-discount-card { padding:16px 14px; }
    .profile-discount-actions, .discount-member-card { align-items: stretch; flex-direction: column; }
    .profile-discount-actions button, .discount-member-controls button { width: 100%; }
    .discount-member-controls { display: grid; grid-template-columns: 1fr 1fr; }
    .booking-patient-options, .booking-manual-patient-fields { grid-template-columns: 1fr; }
    .discount-person-grid, .discount-benefit-choices, .discount-document-grid, .insurance-check-grid { grid-template-columns: 1fr; }
    .booking-patient-choice { align-items: flex-start; }
    .discount-member-modal-content { width:calc(100% - 16px); max-height:94vh; padding:22px 14px; border-radius:20px; }
    .discount-form-section { padding:16px 12px; }
    .discount-upload-actions { grid-template-columns:1fr; }
    .discount-camera-dialog { padding:24px 14px; }
}

/* Keep every "book for other people" detail on its own clear row. */
.booking-person-fields .booking-manual-patient-fields { grid-template-columns:1fr !important; gap:14px; }
.booking-person-fields .booking-manual-patient-fields .modal-field { width:100%; }
.booking-person-fields .booking-manual-patient-fields input { width:100%; min-height:48px; }
.booking-person-fields legend,
.booking-person-fields > .modal-note,
.booking-person-fields .booking-discount-manage-link,
.booking-person-fields .booking-patient-choice span { text-align:center; }
.booking-person-fields .booking-patient-choice { justify-content:center; }
.booking-person-fields .booking-patient-choice > span:nth-of-type(1) { justify-items:center; }
.discount-id-fields { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.discount-id-preview { box-sizing:border-box; min-height:48px; display:flex; align-items:center; justify-content:center; text-align:center; }

/* Keep service labels readable against the dark mobile cards. */
body.dark-mode.services-page .service-focus,
body.dark-mode.services-page .service-photo-section .service-card .service-focus,
body.dark-mode.services-page .affordable-packages .promo-card .service-focus {
    background: #0d5d86;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
}

.booking-upload-block .booking-attachment-preview.is-attached {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.booking-attachment-view {
    padding: 10px 14px;
    border: 1px solid #1b6aa7;
    border-radius: 999px;
    background: #e5f3ff;
    color: #0b4d80;
    font-weight: 800;
    box-shadow: none;
}

body.dark-mode .booking-attachment-view {
    background: #154e75;
    border-color: #73b8ee;
    color: #f1f8ff;
}

@media (max-width: 560px) {
    .booking-upload-block .booking-attachment-preview.is-attached {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .booking-upload-block .booking-attachment-preview.is-attached .booking-attachment-name {
        grid-column: 1 / -1;
        text-align: center;
    }
    .booking-upload-block .booking-attachment-preview.is-attached button {
        width: 100%;
        min-width: 0;
        padding: 10px 6px;
    }
    body.dark-mode.services-page .service-photo-section .service-card .service-focus {
        font-size: .66rem;
        line-height: 1.3;
    }
    body.dark-mode.services-page .service-photo-section .service-card .service-info,
    body.dark-mode.services-page .service-photo-section .service-card .includes {
        font-size: .75rem;
        line-height: 1.4;
    }
}
