:root {
    --red: #C49A4A;
    --red-dark: #9B7838;
    --black: #0B1D2A;
    --ink: #102030;
    --muted: #6f7480;
    --line: #e8e9ed;
    --soft: #f6f7f9;
    --white: #ffffff;
    --shadow: 0 24px 70px rgba(11, 29, 42, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--soft);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(196, 154, 74, 0.08), transparent 36%),
        linear-gradient(225deg, rgba(11, 29, 42, 0.06), transparent 34%),
        var(--soft);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.page-shell {
    width: min(100%, 1180px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px;
}

.auth-page {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(100%, 430px);
    padding: 30px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(232, 233, 237, 0.9);
    border-top: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.auth-card-wide {
    width: min(100%, 720px);
}

.brand-mark {
    display: grid;
    width: clamp(132px, 36vw, 176px);
    min-height: clamp(110px, 28vw, 150px);
    margin: 0 auto 26px;
    place-items: center;
}

.brand-mark img {
    display: block;
    width: auto;
    max-width: clamp(132px, 36vw, 176px);
    max-height: clamp(110px, 28vw, 150px);
    object-fit: contain;
}

.brand-mark--missing {
    width: clamp(132px, 36vw, 176px);
    height: clamp(110px, 28vw, 150px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--black), var(--red));
}

.brand-mark-small {
    width: clamp(112px, 24vw, 136px);
    min-height: clamp(68px, 18vw, 88px);
    margin: 0;
}

.brand-mark-small img {
    max-width: clamp(112px, 24vw, 136px);
    max-height: clamp(68px, 18vw, 88px);
    object-fit: contain;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0;
    color: var(--black);
    font-size: clamp(2rem, 8vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    color: var(--black);
    font-size: clamp(1.45rem, 5vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: 0;
}

h3 {
    margin: 6px 0 8px;
    color: var(--black);
    font-size: 1.22rem;
    letter-spacing: 0;
}

.muted {
    margin: 12px 0 22px;
    color: var(--muted);
}

form {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

label {
    color: var(--black);
    font-size: 0.9rem;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus {
    border-color: rgba(196, 154, 74, 0.65);
    box-shadow: 0 0 0 4px rgba(196, 154, 74, 0.1);
}

.login-form {
    gap: 14px;
}

.password-input-wrap {
    position: relative;
    display: grid;
}

.password-input-wrap input {
    padding-right: 56px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 7px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    color: var(--muted);
    background: #f7f7f9;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle-btn:hover,
.password-toggle-btn:focus {
    color: var(--red);
    border-color: rgba(196, 154, 74, 0.35);
    outline: none;
}

.password-toggle-btn svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

.login-options {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.checkbox-option {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 42px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fbfbfc;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}

.checkbox-option input {
    width: 18px;
    min-height: 18px;
    margin: 0;
    accent-color: var(--red);
}

.checkbox-option span {
    font-size: 0.92rem;
    font-weight: 800;
}

.security-note,
.forgot-password-placeholder {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.forgot-password-placeholder {
    text-align: center;
}

.logout-choice-form {
    gap: 10px;
}

.logout-choice-form .button {
    width: 100%;
}

textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
    resize: vertical;
    outline: none;
}

textarea:focus {
    border-color: rgba(196, 154, 74, 0.65);
    box-shadow: 0 0 0 4px rgba(196, 154, 74, 0.1);
}

.inline-action-form {
    display: inline-grid;
    margin: 0 6px 6px 0;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.span-all {
    grid-column: 1 / -1;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.button-primary {
    width: 100%;
    margin-top: 8px;
    color: var(--white);
    background: var(--red);
    box-shadow: 0 14px 28px rgba(196, 154, 74, 0.24);
}

.button-primary:hover {
    background: var(--red-dark);
}

.whatsapp-action {
    color: #ffffff;
    background: #25D366;
    border-color: #25D366;
}

.whatsapp-action:hover {
    color: #ffffff;
    background: #1fad55;
}

.button-ghost {
    color: var(--black);
    background: var(--white);
    border-color: var(--line);
}

.ai-preview-panel {
    border-top: 4px solid var(--black);
}

.ai-output-box {
    min-height: 260px;
    background: #fbfbfc;
    font-size: 0.96rem;
}

.soft-callout {
    margin: 16px 0;
    padding: 16px;
    background: #fff7f8;
    border: 1px solid rgba(196, 154, 74, 0.18);
    border-radius: var(--radius);
}

.soft-callout p {
    margin: 8px 0 0;
}

.alert {
    margin: 20px 0 4px;
    padding: 13px 14px;
    border-radius: var(--radius);
    font-weight: 700;
}

.alert p {
    margin: 0;
}

.alert p + p {
    margin-top: 6px;
}

.alert-error {
    color: #7f1020;
    background: #fff1f3;
    border: 1px solid #ffd0d8;
}

.alert-success {
    color: #155a32;
    background: #eefaf2;
    border: 1px solid #cdeed7;
}

.alert-info {
    color: #23262c;
    background: #f1f2f5;
    border: 1px solid var(--line);
}

.thecms-pwa-splash {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    gap: 22px;
    place-content: center;
    justify-items: center;
    background: #ffffff;
    opacity: 1;
    transition: opacity 260ms ease, transform 260ms ease;
}

.thecms-pwa-splash.is-leaving {
    opacity: 0;
    transform: scale(1.012);
    pointer-events: none;
}

.thecms-pwa-splash-mark {
    display: grid;
    place-items: center;
    width: clamp(220px, 42vw, 296px);
    height: clamp(220px, 42vw, 296px);
    padding: clamp(22px, 5vw, 32px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94)),
        #ffffff;
    border: 1px solid rgba(196, 154, 74, 0.16);
    border-radius: 42px;
    box-shadow: 0 24px 68px rgba(17, 17, 17, 0.13);
}

.thecms-pwa-splash-mark img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.thecms-pwa-splash span {
    display: block;
    width: 104px;
    height: 4px;
    overflow: hidden;
    background: #f0f0f2;
    border-radius: 999px;
}

.thecms-pwa-splash span::after {
    display: block;
    width: 46px;
    height: 100%;
    background: #C49A4A;
    border-radius: inherit;
    animation: thecms-splash-line 780ms ease-in-out infinite alternate;
    content: "";
}

@keyframes thecms-splash-line {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(58px);
    }
}

.pwa-install-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 12px;
    color: var(--white);
    background: var(--black);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pwa-install-banner span {
    font-weight: 800;
}

.pwa-install-banner button {
    width: auto;
    min-height: 40px;
    padding: 9px 12px;
    color: var(--white);
    background: var(--red);
    border: 0;
    border-radius: var(--radius);
    font-weight: 900;
    cursor: pointer;
}

.pwa-install-banner .pwa-dismiss {
    min-width: 40px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.dashboard-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 22px;
}

.dashboard-header {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 0 28px;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dashboard-brand h1 {
    font-size: clamp(1.45rem, 6vw, 2.6rem);
}

.dashboard-panel,
.checklist-panel,
.status-card {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(232, 233, 237, 0.92);
    border-radius: var(--radius);
    box-shadow: 0 16px 45px rgba(16, 17, 20, 0.08);
}

.dashboard-panel {
    padding: 28px;
    border-left: 4px solid var(--red);
}

.dashboard-grid {
    display: grid;
    gap: 16px;
    margin: 18px 0;
}

.status-card {
    position: relative;
    padding: 22px;
}

.booking-summary {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(232, 233, 237, 0.92);
}

.booking-hero-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 26px;
    margin-bottom: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #0B1D2A 0%, #102030 58%, #C49A4A 100%);
    border-radius: var(--radius);
    box-shadow: 0 20px 55px rgba(16, 17, 20, 0.16);
}

.booking-hero-card .eyebrow,
.booking-hero-card p,
.booking-hero-card h2 {
    color: #ffffff;
}

.booking-hero-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 14px;
    font-weight: 800;
    font-size: 1.25rem;
}

.booking-hero-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.booking-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.status-card.is-disabled {
    opacity: 0.56;
    background: #f3f4f6;
}

.status-dot {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22a35a;
    box-shadow: 0 0 0 6px rgba(34, 163, 90, 0.12);
}

.checklist-panel {
    padding: 24px;
}

.checklist {
    display: grid;
    gap: 10px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 30px;
    color: var(--ink);
    font-weight: 700;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: inset 0 0 0 4px var(--white);
}

@media (min-width: 700px) {
    .auth-card {
        padding: 38px;
    }

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

    .dashboard-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

    .button-ghost {
        min-width: 120px;
    }
}

.admin-app-shell {
    display: grid;
    min-height: 100vh;
    background: var(--soft);
}

.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 18px;
    background: var(--black);
    color: var(--white);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--white);
    font-weight: 900;
    text-decoration: none;
}

.admin-logo img {
    width: clamp(76px, 7vw, 96px);
    height: clamp(56px, 5.8vw, 68px);
    object-fit: contain;
    background: var(--white);
    border-radius: var(--radius);
    padding: 6px;
}

.admin-nav {
    display: grid;
    gap: 8px;
}

.admin-nav a {
    padding: 12px 14px;
    color: rgba(255, 255, 255, 0.78);
    border-radius: var(--radius);
    font-weight: 800;
    text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: var(--white);
    background: rgba(196, 154, 74, 0.92);
}

.admin-nav a.is-disabled {
    color: rgba(255, 255, 255, 0.42);
    cursor: not-allowed;
}

.admin-nav a.is-disabled:hover {
    background: transparent;
}

.admin-app-shell .button-primary {
    width: auto;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.admin-topbar h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
}

.admin-user {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.admin-content {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.admin-grid {
    display: grid;
    gap: 14px;
}

.metric-card,
.admin-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 35px rgba(16, 17, 20, 0.06);
}

.metric-card {
    padding: 20px;
}

.metric-card strong {
    display: block;
    color: var(--black);
    font-size: 2.25rem;
    line-height: 1;
}

.admin-panel {
    padding: 20px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
}

.quick-actions,
.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.copy-row {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
}

.copy-input {
    min-width: 260px;
}

.toast-message {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 36px));
    padding: 12px 14px;
    color: var(--white);
    background: var(--black);
    border-left: 4px solid var(--red);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
}

.toast-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.inline-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.inline-form select {
    min-width: 180px;
}

.quick-actions .button {
    min-width: 150px;
}

.admin-form {
    margin-top: 0;
}

.compact-filter-form {
    display: grid;
    gap: 16px;
}

.export-card {
    display: grid;
    gap: 10px;
    align-content: start;
}

.export-card form {
    margin-top: 8px;
}

.detail-list {
    display: grid;
    gap: 12px;
}

.detail-list > div {
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-list span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list strong {
    display: block;
    margin-top: 3px;
    color: var(--black);
    overflow-wrap: anywhere;
}

select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--black);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: inherit;
}

input[type="color"] {
    padding: 5px;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
}

.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.check-option input {
    width: 18px;
    min-height: 18px;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: capitalize;
}

.status-pill-active {
    color: #155a32;
    background: #e8f8ee;
}

.status-pill-inactive {
    color: #6a2630;
    background: #fff0f2;
}

.clinic-logo-preview {
    display: block;
    width: 120px;
    max-height: 86px;
    object-fit: contain;
    margin: 0 0 16px;
    padding: 8px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0 0 18px;
}

.detail-list div {
    padding: 12px;
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.detail-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 4px 0 0;
    color: var(--black);
    font-weight: 800;
}

.detail-list-compact {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.client-portal-shell {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 22px 18px 92px;
}

.client-hero,
.client-stage-card,
.client-priority-card,
.client-action-card,
.client-mini-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 44px rgba(16, 17, 20, 0.08);
}

.client-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 22px;
    border-top: 4px solid var(--red);
}

.client-hero.compact {
    align-items: center;
}

.client-brand-row,
.client-hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.client-hero-actions {
    justify-content: flex-start;
}

.client-clinic-logo {
    width: clamp(118px, 14vw, 148px);
    height: clamp(82px, 10vw, 104px);
    padding: 8px;
    object-fit: contain;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.client-stage-card,
.client-priority-card,
.client-action-card {
    padding: 20px;
}

.journey-stepper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.journey-step {
    min-height: 86px;
    padding: 12px;
    color: var(--muted);
    background: var(--soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.journey-step span {
    display: inline-grid;
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    place-items: center;
    color: var(--white);
    background: #aeb3bd;
    border-radius: 999px;
    font-weight: 900;
}

.journey-step.is-complete {
    color: var(--black);
    border-color: rgba(196, 154, 74, 0.28);
    background: #fff7f8;
}

.journey-step.is-complete span {
    background: var(--red);
}

.journey-step p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
}

.client-main-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.client-side-stack {
    display: grid;
    gap: 18px;
    align-content: start;
}

.client-action-card .button,
.client-mini-panel .button {
    width: 100%;
}

.client-mini-panel {
    margin-top: 16px;
    padding: 14px;
    background: var(--soft);
    box-shadow: none;
}

.client-bottom-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 16px 36px rgba(16, 17, 20, 0.14);
}

.client-bottom-nav a {
    display: grid;
    min-height: 42px;
    place-items: center;
    color: var(--black);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
}

.client-summary-grid {
    display: grid;
    gap: 14px;
}

.client-summary-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(16, 17, 20, 0.06);
}

.client-summary-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.client-summary-head h3 {
    margin: 0;
}

.summary-mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.summary-mini-list div {
    display: grid;
    gap: 2px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
}

.summary-mini-list dt {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.summary-mini-list dd {
    margin: 0;
    color: var(--black);
    font-weight: 800;
}

.phone-alert-card {
    border-color: rgba(196, 154, 74, 0.26);
    background: #fff8f9;
}

.alert-inline {
    margin: 0;
    padding: 10px 12px;
    color: #8f1021;
    background: #fff0f2;
    border: 1px solid rgba(196, 154, 74, 0.22);
    border-radius: var(--radius);
    font-weight: 800;
}

.comparison-grid {
    display: grid;
    gap: 16px;
}

.comparison-card {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(16, 17, 20, 0.06);
}

.comparison-card img,
.comparison-slider img {
    display: block;
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
}

.comparison-card img {
    aspect-ratio: 4 / 3;
}

.comparison-slider {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.comparison-slider img {
    aspect-ratio: 16 / 9;
}

.comparison-slider-overlay {
    position: absolute;
    inset: 0 0 0 50%;
    overflow: hidden;
    border-left: 3px solid var(--red);
}

.comparison-slider-overlay img {
    width: 200%;
    max-width: none;
    transform: translateX(-50%);
}

.comparison-range {
    width: 100%;
    margin-top: 14px;
    accent-color: var(--red);
}

.recovery-photo-grid {
    display: grid;
    gap: 14px;
}

.recovery-photo-card {
    padding: 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 28px rgba(16, 17, 20, 0.06);
}

.recovery-photo-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 12px;
    background: var(--soft);
}

.recovery-photo-card strong {
    display: block;
    color: var(--black);
    margin-bottom: 4px;
}

@media (max-width: 720px) {
    .pwa-install-banner {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
        flex-wrap: wrap;
    }

    .pwa-install-banner span {
        width: 100%;
    }

    .pwa-install-banner button {
        flex: 1;
    }

    .admin-table {
        min-width: 680px;
    }

    .admin-content,
    .admin-panel,
    .metric-card {
        border-radius: 8px;
    }

    .admin-sidebar {
        gap: 12px;
        padding: 14px;
    }

    .admin-logo img {
        width: clamp(68px, 18vw, 82px);
        height: clamp(50px, 13vw, 60px);
    }

    .admin-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 4px;
        scrollbar-width: thin;
    }

    .admin-nav a {
        min-width: max-content;
        white-space: nowrap;
    }

    .admin-topbar {
        padding: 18px;
    }

    .booking-hero-card {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .booking-hero-icon {
        width: 52px;
        height: 52px;
    }

    .booking-hero-button {
        width: 100%;
    }

    .booking-hero-actions {
        justify-content: stretch;
    }
}

@media (min-width: 900px) {
    .client-portal-shell {
        padding: 30px 28px 40px;
    }

    .client-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .client-main-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
    }

    .client-bottom-nav {
        display: none;
    }

    .admin-app-shell {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .admin-sidebar {
        position: sticky;
        top: 0;
        min-height: 100vh;
    }

    .admin-topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 26px 32px;
    }

    .admin-content {
        padding: 28px 32px;
    }

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

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

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

    .section-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

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

    .copy-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

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

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

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

body.admin-app-body {
    color: #171717;
    background: #f4f5f7;
}

body.admin-app-body .admin-mobile-header {
    position: sticky;
    top: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: auto clamp(54px, 14vw, 64px) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e8e8ec;
    box-shadow: 0 10px 28px rgba(16, 17, 20, 0.08);
}

body.admin-app-body .admin-mobile-header img {
    width: clamp(54px, 14vw, 64px);
    height: clamp(44px, 12vw, 52px);
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

body.admin-app-body .admin-mobile-header strong,
body.admin-app-body .admin-mobile-header span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.admin-app-body .admin-mobile-header span {
    margin-top: 2px;
    color: #686b73;
    font-size: 0.82rem;
    font-weight: 700;
}

body.admin-app-body .admin-menu-button {
    display: grid;
    gap: 5px;
    width: 44px;
    height: 44px;
    place-content: center;
    background: #0B1D2A;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
}

body.admin-app-body .admin-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: #ffffff;
    border-radius: 10px;
}

body.admin-app-body .admin-app-shell {
    display: block;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(227, 6, 19, 0.08), transparent 28%),
        #f4f5f7;
}

body.admin-app-body .admin-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    width: min(86vw, 312px);
    padding: 18px;
    overflow-y: auto;
    background: #0B1D2A;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.24);
    transform: translateX(-105%);
    transition: transform 180ms ease;
}

body.admin-app-body.is-admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
}

body.admin-app-body .admin-sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    background: rgba(17, 17, 17, 0.46);
    border: 0;
}

body.admin-app-body.is-admin-sidebar-open .admin-sidebar-scrim {
    display: block;
}

body.admin-app-body .admin-logo {
    padding: 10px 6px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

body.admin-app-body .admin-logo img {
    width: clamp(86px, 22vw, 106px);
    height: clamp(58px, 15vw, 72px);
    object-fit: contain;
    background: #ffffff;
    border-radius: 12px;
    padding: 6px;
}

body.admin-app-body .admin-logo span {
    line-height: 1.2;
}

body.admin-app-body .admin-nav {
    display: grid;
    gap: 7px;
    overflow: visible;
    padding: 0;
}

body.admin-app-body .admin-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 11px 13px;
    color: rgba(255, 255, 255, 0.76);
    border: 1px solid transparent;
    border-radius: 12px;
    white-space: normal;
}

body.admin-app-body .admin-nav a:hover,
body.admin-app-body .admin-nav a.is-active {
    color: #ffffff;
    background: #C49A4A;
    border-color: rgba(255, 255, 255, 0.14);
}

body.admin-app-body .admin-main {
    min-width: 0;
}

body.admin-app-body .admin-topbar {
    display: grid;
    gap: 16px;
    margin: 16px 16px 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 16px 42px rgba(16, 17, 20, 0.07);
}

body.admin-app-body .admin-topbar h1 {
    font-size: 1.65rem;
    line-height: 1.1;
}

body.admin-app-body .admin-page-title .muted {
    margin-top: 5px;
}

body.admin-app-body .admin-user {
    gap: 9px;
}

body.admin-app-body .admin-topbar-logo {
    width: clamp(58px, 8vw, 72px);
    height: clamp(46px, 6vw, 56px);
    object-fit: contain;
    padding: 4px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
}

body.admin-app-body .admin-content {
    padding: 16px;
}

body.admin-app-body .admin-dashboard-hero {
    display: grid;
    gap: 18px;
    padding: 22px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.96), rgba(39, 41, 48, 0.96)),
        #0B1D2A;
    border: 1px solid rgba(227, 6, 19, 0.22);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(16, 17, 20, 0.18);
}

body.admin-app-body .admin-dashboard-hero h2 {
    max-width: 760px;
    color: #ffffff;
    font-size: 1.8rem;
    line-height: 1.08;
}

body.admin-app-body .admin-dashboard-hero .muted {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.72);
}

body.admin-app-body .admin-hero-stat {
    display: grid;
    gap: 4px;
    align-content: center;
    justify-items: start;
    width: max-content;
    min-width: 160px;
    padding: 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
}

body.admin-app-body .admin-hero-stat span {
    font-size: 2.5rem;
    font-weight: 950;
    line-height: 1;
}

body.admin-app-body .admin-hero-stat strong {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

body.admin-app-body .admin-priority-grid {
    display: grid;
    gap: 12px;
}

body.admin-app-body .admin-priority-card {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: #171717;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(16, 17, 20, 0.06);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

body.admin-app-body .admin-priority-card:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 6, 19, 0.32);
    box-shadow: 0 20px 48px rgba(16, 17, 20, 0.1);
}

body.admin-app-body .admin-priority-card span {
    color: #686b73;
    font-weight: 900;
}

body.admin-app-body .admin-priority-card strong {
    color: #0B1D2A;
    font-size: 2rem;
    line-height: 1;
}

body.admin-app-body .admin-priority-card em {
    color: #686b73;
    font-style: normal;
    font-size: 0.9rem;
}

body.admin-app-body .admin-action-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(16, 17, 20, 0.05);
}

body.admin-app-body .admin-action-strip .button {
    min-width: 170px;
}

body.admin-app-body .admin-feature-panel {
    border-color: rgba(227, 6, 19, 0.16);
}

body.admin-app-body .admin-panel,
body.admin-app-body .metric-card {
    border-color: #e7e8ec;
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(16, 17, 20, 0.06);
}

body.admin-app-body .client-summary-grid {
    display: grid;
    gap: 14px;
}

body.admin-app-body .client-summary-card {
    background: #ffffff;
    border: 1px solid #e7e8ec;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(16, 17, 20, 0.05);
}

body.admin-app-body .card-actions {
    align-items: center;
}

body.admin-app-body .whatsapp-action {
    color: #ffffff;
    background: #128c4a;
    border-color: #128c4a;
}

body.admin-app-body .whatsapp-action:hover {
    background: #0f7d41;
    border-color: #0f7d41;
}

body.admin-app-body .admin-profile-panel {
    max-width: 980px;
}

body.admin-app-body .admin-form-grid {
    display: grid;
    gap: 16px;
}

body.admin-app-body .admin-form label {
    display: grid;
    gap: 7px;
    color: #171717;
    font-weight: 850;
}

body.admin-app-body .admin-form input,
body.admin-app-body .admin-form select,
body.admin-app-body .admin-form textarea {
    min-height: 48px;
    padding: 12px 14px;
    color: #171717;
    background: #ffffff;
    border: 1px solid #dedfe5;
    border-radius: 12px;
    font: inherit;
}

body.admin-app-body .admin-form input:focus,
body.admin-app-body .admin-form select:focus,
body.admin-app-body .admin-form textarea:focus {
    outline: 3px solid rgba(227, 6, 19, 0.14);
    border-color: rgba(227, 6, 19, 0.55);
}

body.admin-app-body .admin-form input:disabled {
    color: #6f727a;
    background: #f2f3f5;
}

body.admin-app-body .helper-text {
    color: #6f727a;
    font-size: 0.84rem;
    font-weight: 650;
}

body.admin-app-body .form-divider {
    height: 1px;
    margin: 22px 0;
    background: #e7e8ec;
}

body.admin-app-body .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 720px) {
    body.admin-app-body .admin-table {
        min-width: 0;
        border: 0;
    }

    body.admin-app-body .admin-table thead {
        display: none;
    }

    body.admin-app-body .admin-table,
    body.admin-app-body .admin-table tbody,
    body.admin-app-body .admin-table tr,
    body.admin-app-body .admin-table td {
        display: block;
        width: 100%;
    }

    body.admin-app-body .admin-table tr {
        padding: 12px;
        margin-bottom: 12px;
        background: #ffffff;
        border: 1px solid #e7e8ec;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(16, 17, 20, 0.05);
    }

    body.admin-app-body .admin-table td {
        padding: 8px 0;
        border: 0;
    }

    body.admin-app-body .admin-table td + td {
        border-top: 1px solid #eeeeee;
    }

    body.admin-app-body .table-wrap {
        overflow: visible;
    }

    body.admin-app-body .button,
    body.admin-app-body .inline-action-form,
    body.admin-app-body .inline-action-form .button {
        width: 100%;
    }

    body.admin-app-body .card-actions,
    body.admin-app-body .quick-actions,
    body.admin-app-body .table-actions {
        align-items: stretch;
    }

    body.admin-app-body .admin-action-strip .button {
        min-width: 0;
    }

    body.admin-app-body .form-actions .button {
        width: 100%;
    }
}

@media (min-width: 760px) {
    body.admin-app-body .admin-priority-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.admin-app-body .client-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 980px) {
    body.admin-app-body .admin-mobile-header {
        display: none;
    }

    body.admin-app-body .admin-app-shell {
        display: grid;
        grid-template-columns: 268px minmax(0, 1fr);
    }

    body.admin-app-body .admin-sidebar {
        position: sticky;
        top: 0;
        z-index: 1;
        width: auto;
        min-height: 100vh;
        transform: none;
        box-shadow: none;
    }

    body.admin-app-body .admin-sidebar-scrim {
        display: none;
    }

    body.admin-app-body .admin-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        margin: 24px 28px 0;
        padding: 22px 24px;
    }

    body.admin-app-body .admin-content {
        padding: 24px 28px 36px;
    }

    body.admin-app-body .admin-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 28px;
    }

    body.admin-app-body .admin-dashboard-hero h2 {
        font-size: 2.15rem;
    }

    body.admin-app-body .admin-priority-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1240px) {
    body.admin-app-body .client-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.thecms-install-card {
    position: fixed;
    top: 50%;
    right: 22px;
    z-index: 90;
    display: grid;
    grid-template-columns: clamp(70px, 18vw, 86px) minmax(0, 1fr);
    gap: 14px;
    width: min(390px, calc(100vw - 36px));
    padding: 18px;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(255, 239, 241, 0.94)),
        var(--white);
    border: 1px solid rgba(196, 154, 74, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(16, 17, 20, 0.18);
    opacity: 0;
    transform: translate(24px, -50%) scale(0.98);
    transition: opacity 220ms ease, transform 220ms ease;
}

.thecms-install-card[hidden] {
    display: none;
}

.thecms-install-card.is-visible {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.thecms-install-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}

.thecms-install-icon {
    display: grid;
    width: clamp(70px, 18vw, 86px);
    height: clamp(70px, 18vw, 86px);
    place-items: center;
    background: var(--white);
    border: 1px solid rgba(196, 154, 74, 0.13);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(16, 17, 20, 0.1);
}

.thecms-install-icon img {
    display: block;
    width: clamp(56px, 14vw, 68px);
    height: clamp(56px, 14vw, 68px);
    object-fit: contain;
}

.thecms-install-copy {
    padding-right: 24px;
}

.thecms-install-copy h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.thecms-install-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.thecms-install-copy .eyebrow {
    margin-bottom: 6px;
    color: var(--red);
}

.thecms-install-ios {
    margin-top: 10px !important;
    color: var(--red) !important;
    font-weight: 900;
}

.thecms-install-actions {
    display: flex;
    grid-column: 1 / -1;
    gap: 10px;
}

.thecms-install-actions .button {
    flex: 1;
    min-height: 44px;
}

.thecms-pwa-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10001;
    max-width: min(380px, calc(100vw - 40px));
    padding: 13px 16px;
    color: var(--white);
    background: var(--black);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.thecms-pwa-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.thecms-pwa-toast.error {
    background: var(--red);
}

.notification-optin-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    background:
        linear-gradient(135deg, rgba(17, 17, 17, 0.95), rgba(44, 44, 50, 0.95)),
        var(--black);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    color: var(--white);
    box-shadow: 0 20px 60px rgba(16, 17, 20, 0.18);
}

.notification-optin-card[hidden] {
    display: none;
}

.notification-optin-card h2,
.notification-optin-card p {
    margin: 0;
}

.notification-optin-card p {
    color: rgba(255, 255, 255, 0.74);
}

.notification-optin-card .button {
    width: fit-content;
    min-width: 190px;
}

@media (max-width: 720px) {
    .thecms-install-card {
        top: auto;
        right: 12px;
        bottom: 84px;
        left: 12px;
        width: auto;
        transform: translateY(24px) scale(0.98);
    }

    .thecms-install-card.is-visible {
        transform: translateY(0) scale(1);
    }

    .thecms-install-actions {
        flex-direction: column;
    }

    .notification-optin-card .button {
        width: 100%;
    }
}
