:root {
    --appt-primary: #0D93DC;
    --appt-primary-dark: #0878B5;
    --appt-ink: #101820;
    --appt-muted: #6d7883;
    --appt-line: #e4eaf0;
    --appt-soft: #f4f8fb;
    --appt-white: #ffffff;
    --appt-danger: #c63f4c;
    --appt-success: #16855b;
    --appt-radius: 18px;
    --appt-shadow: 0 16px 45px rgba(21, 46, 66, .08);
}

.appointments-page, .booking-body {
    font-family: "Myriad Arabic", Tahoma, Arial, sans-serif;
    color: var(--appt-ink);
}

.appointments-page { padding: 28px; background: #f7f9fb; min-height: 100vh; }
.appointments-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.appointments-heading h1 { margin: 4px 0 6px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; }
.appointments-heading p { margin: 0; color: var(--appt-muted); }
.eyebrow { color: var(--appt-primary); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.appointments-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 7px; margin-bottom: 20px; background: var(--appt-white); border: 1px solid var(--appt-line); border-radius: 15px; width: fit-content; }
.appointments-tabs a { color: #53606b; text-decoration: none; padding: 10px 16px; border-radius: 11px; font-weight: 700; }
.appointments-tabs a.active { background: var(--appt-ink); color: white; }

.btn-appt { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 800; cursor: pointer; background: white; color: var(--appt-ink); }
.btn-appt.primary { background: var(--appt-primary); color: white; }
.btn-appt.primary:hover { background: var(--appt-primary-dark); }
.btn-appt.ghost { border-color: var(--appt-line); }

.appt-alert { padding: 14px 17px; border-radius: 13px; margin: 0 0 18px; }
.appt-alert.success { color: #0f6847; background: #e9f8f1; border: 1px solid #bee9d5; }
.appt-alert.danger { color: #972c37; background: #fff0f1; border: 1px solid #f1c5ca; }
.appt-alert ul { margin: 8px 20px 0 0; }

.appt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.appt-stats article { background: var(--appt-white); border: 1px solid var(--appt-line); border-radius: var(--appt-radius); padding: 20px; box-shadow: 0 8px 26px rgba(22, 41, 57, .04); }
.appt-stats span { display: block; color: var(--appt-muted); margin-bottom: 10px; }
.appt-stats strong { font-size: 31px; font-weight: 800; }

.appt-panel { background: var(--appt-white); border: 1px solid var(--appt-line); border-radius: var(--appt-radius); box-shadow: 0 8px 28px rgba(24, 47, 65, .04); }
.appt-filters { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 12px; padding: 18px; margin-bottom: 18px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { color: #3f4a54; font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea, .inline-status input, .inline-status select { width: 100%; border: 1px solid #dce4ea; background: #fff; color: var(--appt-ink); border-radius: 11px; padding: 11px 12px; outline: none; transition: .18s ease; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--appt-primary); box-shadow: 0 0 0 3px rgba(13, 147, 220, .12); }
.field-help { min-height: 18px; color: var(--appt-primary-dark); }
.filter-actions, .form-actions { display: flex; gap: 9px; align-items: center; }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.appt-table { width: 100%; border-collapse: collapse; min-width: 1000px; }
.appt-table th { padding: 14px 16px; text-align: right; font-size: 12px; color: #6b7782; background: #f7f9fb; border-bottom: 1px solid var(--appt-line); white-space: nowrap; }
.appt-table td { padding: 15px 16px; border-bottom: 1px solid #edf1f4; vertical-align: top; }
.appt-table tr:last-child td { border-bottom: 0; }
.appt-table td small { display: block; margin-top: 5px; color: var(--appt-muted); }
.empty-state { text-align: center; color: var(--appt-muted); padding: 38px !important; }
.row-actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.icon-action { border: 0; background: #eef5f9; color: #245069; padding: 7px 10px; border-radius: 8px; text-decoration: none; font-size: 12px; cursor: pointer; white-space: nowrap; }
.icon-action.danger { color: var(--appt-danger); background: #fff0f2; }
.inline-status { margin-top: 10px; padding: 10px; background: #f7f9fb; border-radius: 10px; display: grid; gap: 7px; }
.inline-status[hidden] { display: none; }
.inline-status button { border: 0; background: var(--appt-primary); color: white; border-radius: 8px; padding: 8px; }
.status { display: inline-flex; align-items: center; justify-content: center; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-pending { color: #9a6500; background: #fff6d9; }
.status-confirmed { color: #086b9e; background: #e4f5ff; }
.status-arrived { color: #5f3ba4; background: #f0eaff; }
.status-completed { color: #11734d; background: #e7f8f0; }
.status-cancelled, .status-no_show { color: #a53440; background: #ffebee; }
.appt-pagination { padding: 15px; border-top: 1px solid var(--appt-line); }

.appt-form { padding: 24px; }
.appt-form.compact { padding: 20px; height: fit-content; }
.appt-form.compact > * + * { margin-top: 13px; }
.form-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; padding-bottom: 12px; margin: 0 0 17px; border-bottom: 1px solid var(--appt-line); }
.form-section-title:not(:first-child) { margin-top: 28px; }
.form-section-title strong { font-size: 18px; }
.form-section-title span { color: var(--appt-muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.span-4, .full { grid-column: 1 / -1; }
.form-actions { margin-top: 24px; }
.check-row { display: flex; align-items: center; gap: 9px; font-weight: 700; color: #45525d; }
.check-row input { width: 18px; height: 18px; accent-color: var(--appt-primary); }
.settings-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 18px; align-items: start; }

.booking-body { margin: 0; min-height: 100vh; background: #eef3f6; }
.booking-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .85fr) minmax(500px, 1.15fr); }
.booking-brand { position: relative; overflow: hidden; background: #111a22; color: white; padding: clamp(45px, 7vw, 110px); display: flex; flex-direction: column; justify-content: center; }
.booking-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border: 90px solid rgba(13, 147, 220, .14); border-radius: 50%; left: -210px; bottom: -210px; }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; background: var(--appt-primary); border-radius: 18px; font-size: 23px; font-weight: 900; margin-bottom: 14px; }
.booking-brand > span { color: #8ad4ff; font-weight: 800; }
.booking-brand h1 { margin: 22px 0 14px; font-size: clamp(36px, 5vw, 66px); line-height: 1.08; max-width: 540px; }
.booking-brand p { color: #b8c3cc; max-width: 580px; line-height: 1.9; font-size: 17px; }
.brand-points { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 25px; }
.brand-points span { border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 9px 13px; color: #dfe8ee; font-size: 13px; }
.booking-card { background: white; padding: clamp(28px, 6vw, 90px); display: flex; flex-direction: column; justify-content: center; }
.booking-card form { max-width: 760px; width: 100%; margin: 0 auto; }
.booking-card-head { max-width: 760px; width: 100%; margin: 0 auto 26px; display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--appt-line); padding-bottom: 17px; }
.booking-card-head span { color: var(--appt-primary); font-weight: 800; }
.booking-card-head strong { font-size: 24px; }
.booking-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.booking-submit { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--appt-primary); color: white; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; margin-top: 22px; font-size: 16px; font-weight: 900; cursor: pointer; text-decoration: none; }
.booking-submit:hover { background: var(--appt-primary-dark); }
.booking-submit b { font-size: 24px; }
.booking-note { text-align: center; color: var(--appt-muted); font-size: 13px; }

.success-page { display: grid; place-items: center; padding: 24px; }
.success-card { width: min(620px, 100%); background: white; border-radius: 28px; padding: clamp(28px, 6vw, 60px); box-shadow: var(--appt-shadow); text-align: center; }
.success-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: #e3f8ee; color: var(--appt-success); font-size: 34px; font-weight: 900; }
.success-card h1 { margin: 8px 0 10px; font-size: 36px; }
.success-card > p { color: var(--appt-muted); line-height: 1.8; }
.booking-number { margin: 25px 0; padding: 18px; border: 1px dashed var(--appt-primary); background: #f2faff; border-radius: 16px; }
.booking-number span { display: block; color: var(--appt-muted); }
.booking-number strong { display: block; margin-top: 7px; font-size: 26px; letter-spacing: .06em; }
.booking-summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--appt-line); border: 1px solid var(--appt-line); border-radius: 16px; overflow: hidden; text-align: right; }
.booking-summary div { background: white; padding: 15px; }
.booking-summary dt { color: var(--appt-muted); font-size: 12px; margin-bottom: 6px; }
.booking-summary dd { margin: 0; font-weight: 800; }
.as-link { justify-content: center; }

@media (max-width: 1100px) {
    .appt-filters { grid-template-columns: repeat(3, 1fr); }
    .appt-stats { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: repeat(2, 1fr); }
    .span-4 { grid-column: 1 / -1; }
    .booking-shell { grid-template-columns: 1fr; }
    .booking-brand { min-height: 420px; }
}

@media (max-width: 760px) {
    .appointments-page { padding: 16px; }
    .appointments-heading { align-items: flex-start; flex-direction: column; }
    .appt-filters, .appt-stats, .form-grid, .form-grid.two, .settings-layout, .booking-grid, .booking-summary { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .form-section-title { align-items: flex-start; flex-direction: column; }
    .booking-brand { padding: 40px 24px; min-height: auto; }
    .booking-card { padding: 30px 18px; }
    .booking-summary div { border-bottom: 1px solid var(--appt-line); }
}

/* Booking time cards — v1.1.0 */
.booking-tenant-name {
    max-width: 520px;
    font-size: 18px;
    line-height: 1.6;
}

.field select:disabled,
.field input:disabled {
    cursor: not-allowed;
    color: #89939c;
    background: #f6f8fa;
}

[data-team-field][hidden] {
    display: none !important;
}

.appointment-slots-field {
    margin-top: 2px;
}

.slots-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.slots-title-row > span {
    color: var(--appt-primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.appointment-slots {
    min-height: 158px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid #dce5eb;
    border-radius: 16px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9fb 100%);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.appointment-slots:focus {
    border-color: rgba(13, 147, 220, .65);
    box-shadow: 0 0 0 4px rgba(13, 147, 220, .10);
}

.appointment-slots.has-error {
    border-color: #d94c5a;
    background: #fffafb;
    box-shadow: 0 0 0 4px rgba(217, 76, 90, .09);
}

.slots-placeholder {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    color: var(--appt-muted);
}

.slots-placeholder-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 13px;
    color: var(--appt-primary-dark);
    background: #eaf6fd;
    font-size: 20px;
    font-weight: 900;
}

.slots-placeholder strong {
    color: #35424d;
    font-size: 15px;
}

.slots-placeholder small {
    max-width: 420px;
    line-height: 1.7;
}

.slot-period + .slot-period {
    margin-top: 18px;
    padding-top: 17px;
    border-top: 1px solid #e3e9ed;
}

.slot-period-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
    color: #4d5963;
    font-size: 12px;
    font-weight: 900;
}

.slot-period-title::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--appt-primary);
    box-shadow: 0 0 0 4px rgba(13, 147, 220, .10);
}

.slot-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 10px;
}

.appointment-slot-card {
    position: relative;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #dce5eb;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 13px rgba(22, 48, 66, .035);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.appointment-slot-card:hover {
    transform: translateY(-2px);
    border-color: rgba(13, 147, 220, .58);
    box-shadow: 0 9px 20px rgba(13, 147, 220, .10);
}

.appointment-slot-card:has(input:checked) {
    border-color: var(--appt-primary);
    background: #eef9ff;
    box-shadow: 0 0 0 3px rgba(13, 147, 220, .10), 0 9px 20px rgba(13, 147, 220, .10);
}

.appointment-slot-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.slot-clock-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--appt-primary-dark);
    background: #edf7fc;
    font-size: 21px;
    line-height: 1;
}

.appointment-slot-card:has(input:checked) .slot-clock-icon {
    color: #fff;
    background: var(--appt-primary);
}

.slot-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slot-card-content strong {
    color: #1d2a34;
    font-size: 14px;
    white-space: nowrap;
}

.slot-card-content small {
    color: #7a8791;
    font-size: 11px;
    white-space: nowrap;
}

.slot-card-check {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--appt-primary);
    font-size: 11px;
    font-weight: 900;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .16s ease, transform .16s ease;
}

.appointment-slot-card:has(input:checked) .slot-card-check {
    opacity: 1;
    transform: scale(1);
}

.slot-message {
    min-height: 19px;
    margin-top: 2px;
}

.slot-skeleton-grid {
    min-height: 120px;
    align-content: center;
}

.slot-skeleton {
    height: 76px;
    border-radius: 13px;
    background: linear-gradient(90deg, #edf2f5 25%, #f8fafb 50%, #edf2f5 75%);
    background-size: 220% 100%;
    animation: appointment-slot-loading 1.2s infinite linear;
}

@keyframes appointment-slot-loading {
    from { background-position: 100% 0; }
    to { background-position: -120% 0; }
}

@media (max-width: 760px) {
    .appointment-slots {
        padding: 14px;
    }

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

    .appointment-slot-card {
        min-height: 72px;
        padding: 10px;
    }
}

@media (max-width: 430px) {
    .slot-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* Public booking workflow — v1.2.0 */
.appt-alert.warning {
    color: #7b5700;
    background: #fff8df;
    border: 1px solid #f0d98e;
}

.booking-mode-tabs {
    max-width: 760px;
    width: 100%;
    margin: 0 auto 24px;
    padding: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    border: 1px solid var(--appt-line);
    border-radius: 15px;
    background: #f4f7f9;
}

.booking-mode-tab {
    min-height: 46px;
    padding: 8px 14px;
    border: 0;
    border-radius: 11px;
    color: #5f6b75;
    background: transparent;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.booking-mode-tab.is-active {
    color: #ffffff;
    background: var(--appt-ink);
    box-shadow: 0 8px 20px rgba(18, 26, 34, .14);
}

.booking-tab-panel {
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
}

.booking-tab-panel[hidden] {
    display: none !important;
}

.booking-submit:disabled,
.booking-lookup-control button:disabled {
    cursor: wait;
    opacity: .72;
}

.booking-submit.is-submitting {
    justify-content: center;
    gap: 12px;
}

.booking-submit-loader {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    border: 3px solid rgba(255, 255, 255, .38);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: booking-loader-spin .75s linear infinite;
}

.booking-submit-loader.small {
    width: 17px;
    height: 17px;
    border-width: 2px;
}

.booking-submit-loader[hidden] {
    display: none !important;
}

@keyframes booking-loader-spin {
    to { transform: rotate(360deg); }
}

.booking-lookup-intro {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid #dce7ed;
    border-radius: 16px;
    background: #f7fbfd;
}

.booking-lookup-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: var(--appt-primary);
    font-size: 25px;
    font-weight: 900;
}

.booking-lookup-intro strong {
    display: block;
    margin-bottom: 5px;
    font-size: 17px;
}

.booking-lookup-intro p {
    margin: 0;
    color: var(--appt-muted);
    line-height: 1.8;
}

.booking-lookup-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    gap: 10px;
}

.booking-lookup-control input {
    min-height: 50px;
}

.booking-lookup-control button {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    color: #ffffff;
    background: var(--appt-primary);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.booking-lookup-message {
    min-height: 24px;
    margin-top: 15px;
    padding: 0 2px;
    color: var(--appt-muted);
    font-size: 13px;
}

.booking-lookup-message.is-success { color: var(--appt-success); }
.booking-lookup-message.is-error { color: var(--appt-danger); }
.booking-lookup-message.is-empty { color: #966600; }

.booking-lookup-results {
    display: grid;
    gap: 14px;
    margin-top: 10px;
}

.booking-lookup-result {
    overflow: hidden;
    border: 1px solid #dce5eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(20, 45, 63, .06);
}

.booking-lookup-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid #e5ecef;
    background: #f8fbfc;
}

.lookup-booking-number span,
.booking-lookup-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--appt-muted);
    font-size: 11px;
}

.lookup-booking-number strong {
    color: var(--appt-primary-dark);
    font-size: 17px;
    letter-spacing: .03em;
}

.booking-lookup-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: #e7edf0;
}

.booking-lookup-summary > div {
    min-width: 0;
    padding: 14px 16px;
    background: #ffffff;
}

.booking-lookup-summary strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.booking-lookup-summary > div.is-wide {
    grid-column: span 2;
}

.booking-lookup-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-top: 1px solid #e7edf0;
}

.lookup-result-action,
.ticket-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid #d9e3e8;
    border-radius: 11px;
    color: var(--appt-ink);
    background: #ffffff;
    text-decoration: none;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.lookup-result-action.details,
.ticket-action.primary {
    color: #ffffff;
    border-color: var(--appt-primary);
    background: var(--appt-primary);
}

.lookup-result-action.download {
    color: #086b9e;
    border-color: #bee5f8;
    background: #edf8fe;
}

.lookup-result-action.directions {
    color: #176b43;
    border-color: #bfe6d1;
    background: #effaf4;
}

.success-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.success-secondary-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.success-secondary-actions a {
    color: var(--appt-primary-dark);
    font-weight: 800;
    text-decoration: none;
}

.appointment-ticket-page {
    min-height: 100vh;
    padding: 34px 18px;
    background: #eef3f6;
}

.appointment-ticket-shell {
    width: min(720px, 100%);
    margin: 0 auto;
}

.appointment-ticket {
    overflow: hidden;
    border: 1px solid #d8e3e9;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--appt-shadow);
}

.appointment-ticket-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    color: #ffffff;
    background: var(--appt-ink);
}

.appointment-ticket-brand {
    display: flex;
    align-items: center;
    gap: 13px;
}

.appointment-ticket-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: var(--appt-primary);
    font-size: 19px;
    font-weight: 900;
}

.appointment-ticket-brand small,
.appointment-ticket-brand strong {
    display: block;
}

.appointment-ticket-brand small {
    margin-bottom: 5px;
    color: #8ad4ff;
}

.appointment-ticket-brand strong { font-size: 18px; }

.appointment-ticket-number {
    padding: 22px;
    text-align: center;
    border-bottom: 1px dashed #cad7de;
    background: #f3faff;
}

.appointment-ticket-number span {
    display: block;
    margin-bottom: 7px;
    color: var(--appt-muted);
}

.appointment-ticket-number strong {
    color: var(--appt-primary-dark);
    font-size: 27px;
    letter-spacing: .05em;
}

.appointment-ticket-date {
    padding: 27px 20px;
    text-align: center;
}

.appointment-ticket-date span {
    display: block;
    color: var(--appt-muted);
}

.appointment-ticket-date strong {
    display: block;
    margin: 7px 0;
    font-size: 24px;
}

.appointment-ticket-date b {
    color: var(--appt-primary);
    font-size: 27px;
}

.appointment-ticket-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border-top: 1px solid #e2e9ed;
}

.appointment-ticket-details > div {
    padding: 17px 20px;
    border-bottom: 1px solid #e7edef;
}

.appointment-ticket-details > div:nth-child(odd) {
    border-left: 1px solid #e7edef;
}

.appointment-ticket-details dt {
    margin-bottom: 6px;
    color: var(--appt-muted);
    font-size: 11px;
}

.appointment-ticket-details dd {
    margin: 0;
    font-weight: 900;
}

.appointment-ticket-notes {
    padding: 18px 20px;
    border-top: 1px solid #e2e9ed;
}

.appointment-ticket-notes span {
    display: block;
    margin-bottom: 6px;
    color: var(--appt-muted);
    font-size: 11px;
}

.appointment-ticket-notes p {
    margin: 0;
    line-height: 1.8;
}

.appointment-ticket-footer {
    padding: 16px 20px;
    text-align: center;
    color: var(--appt-muted);
    background: #f7f9fa;
}

.ticket-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.ticket-action.light {
    color: #58656f;
    background: #f7f9fa;
}

@media (max-width: 760px) {
    .booking-mode-tabs,
    .success-actions,
    .booking-lookup-summary,
    .appointment-ticket-details {
        grid-template-columns: 1fr;
    }

    .booking-lookup-control {
        grid-template-columns: 1fr;
    }

    .booking-lookup-summary > div.is-wide {
        grid-column: auto;
    }

    .appointment-ticket-details > div:nth-child(odd) {
        border-left: 0;
    }

    .appointment-ticket-head {
        align-items: flex-start;
    }

    .ticket-actions .ticket-action {
        width: 100%;
    }
}

@media print {
    @page {
        size: A5 portrait;
        margin: 10mm;
    }

    body * {
        visibility: hidden !important;
    }

    .appointment-ticket-page,
    .appointment-ticket-page * {
        visibility: visible !important;
    }

    .appointment-ticket-page {
        position: absolute;
        inset: 0;
        min-height: 0;
        padding: 0;
        background: #ffffff;
    }

    .appointment-ticket-shell {
        width: 100%;
        margin: 0;
    }

    .appointment-ticket {
        border-radius: 16px;
        box-shadow: none;
        break-inside: avoid;
    }

    .ticket-screen-only,
    .ticket-actions {
        display: none !important;
    }
}

/* Professional custom dropdowns — public booking */
.modern-select {
    position: relative;
    width: 100%;
    isolation: isolate;
}

.modern-select-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.modern-select-trigger {
    width: 100%;
    min-height: 54px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 11px;
    padding: 7px 13px 7px 11px;
    border: 1px solid #d9e3ea;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--appt-ink);
    text-align: right;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    box-shadow: 0 3px 12px rgba(25, 54, 76, .035);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.modern-select-trigger:hover:not(:disabled) {
    border-color: #b9d9eb;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(13, 147, 220, .08);
}

.modern-select-trigger:focus-visible,
.modern-select.is-open .modern-select-trigger {
    border-color: var(--appt-primary);
    box-shadow: 0 0 0 4px rgba(13, 147, 220, .12), 0 8px 24px rgba(13, 147, 220, .10);
}

.modern-select.is-open .modern-select-trigger {
    transform: translateY(-1px);
}

.modern-select-trigger:disabled {
    cursor: not-allowed;
    color: #8a969f;
    background: #f5f7f9;
    border-color: #e3e8ec;
    box-shadow: none;
}

.modern-select-leading {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--appt-primary);
    background: rgba(13, 147, 220, .09);
    transition: background .18s ease, color .18s ease;
}

.modern-select-leading svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modern-select.is-open .modern-select-leading {
    color: #ffffff;
    background: var(--appt-primary);
}

.modern-select-value {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.modern-select-value strong {
    display: block;
    overflow: hidden;
    color: #17212a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modern-select-value small {
    color: #87939d;
    font-size: 11px;
    line-height: 1.2;
}

.modern-select-chevron {
    display: grid;
    place-items: center;
    color: #71808b;
    transition: transform .2s ease, color .2s ease;
}

.modern-select-chevron svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.modern-select.is-open .modern-select-chevron {
    color: var(--appt-primary);
    transform: rotate(180deg);
}

.modern-select-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    padding: 8px;
    border: 1px solid #dce6ed;
    border-radius: 16px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 22px 55px rgba(25, 47, 65, .17), 0 5px 14px rgba(25, 47, 65, .07);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(.985);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease, transform .16s ease;
    backdrop-filter: blur(14px);
}

.modern-select.is-open {
    z-index: 90;
}

.modern-select.is-open .modern-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.modern-select-search {
    position: relative;
    margin-bottom: 7px;
}

.modern-select-search svg {
    position: absolute;
    top: 50%;
    right: 13px;
    width: 17px;
    height: 17px;
    color: #82909b;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transform: translateY(-50%);
    pointer-events: none;
}

.modern-select-search input {
    width: 100%;
    height: 42px;
    padding: 0 39px 0 12px !important;
    border: 1px solid #e1e8ed !important;
    border-radius: 11px !important;
    background: #f7fafc !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 13px;
}

.modern-select-search input:focus {
    border-color: #a7d5ed !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(13, 147, 220, .09) !important;
}

.modern-select-options {
    max-height: 245px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #cbd8e0 transparent;
}

.modern-select-option {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #27343e;
    text-align: right;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: color .15s ease, background .15s ease, transform .15s ease;
}

.modern-select-option + .modern-select-option {
    margin-top: 3px;
}

.modern-select-option:hover,
.modern-select-option:focus-visible {
    color: #0878b5;
    background: #eff9ff;
    outline: none;
    transform: translateX(-2px);
}

.modern-select-option.is-selected {
    color: #0878b5;
    background: linear-gradient(90deg, #edf8ff 0%, #f7fcff 100%);
}

.modern-select-option-check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 1px solid #d8e3e9;
    border-radius: 7px;
    color: transparent;
    background: #ffffff;
    font-size: 13px;
    font-weight: 900;
}

.modern-select-option.is-selected .modern-select-option-check {
    color: #ffffff;
    border-color: var(--appt-primary);
    background: var(--appt-primary);
    box-shadow: 0 4px 10px rgba(13, 147, 220, .22);
}

.modern-select-empty {
    padding: 20px 12px;
    color: #7c8993;
    text-align: center;
    font-size: 13px;
}

.modern-select.is-invalid .modern-select-trigger {
    border-color: var(--appt-danger);
    box-shadow: 0 0 0 4px rgba(198, 63, 76, .09);
}

@media (max-width: 760px) {
    .modern-select-menu {
        border-radius: 14px;
    }

    .modern-select-options {
        max-height: 210px;
    }
}

/* Public booking date cards + simple dropdown options — v1.3.0 */
.dates-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.dates-title-row label {
    margin: 0;
}

.dates-title-row > span {
    color: var(--appt-primary);
    font-size: 11px;
    font-weight: 800;
}

.appointment-date-cards {
    width: 100%;
    min-height: 112px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
    border: 1px solid #dbe5eb;
    border-radius: 15px;
    background: #f8fbfd;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.appointment-date-cards:focus {
    border-color: rgba(13, 147, 220, .55);
    box-shadow: 0 0 0 4px rgba(13, 147, 220, .08);
}

.appointment-date-cards.has-error {
    border-color: var(--appt-danger);
    background: #fff9fa;
    box-shadow: 0 0 0 4px rgba(198, 63, 76, .07);
}

.dates-placeholder {
    grid-column: 1 / -1;
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #73818c;
    text-align: center;
}

.dates-placeholder-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: var(--appt-primary);
    background: rgba(13, 147, 220, .10);
    font-size: 19px;
    font-weight: 900;
}

.dates-placeholder strong {
    color: #26343e;
    font-size: 13px;
}

.dates-placeholder small {
    color: #81909a;
    font-size: 11px;
}

.appointment-date-card {
    position: relative;
    min-width: 0;
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    padding: 8px 5px;
    border: 1px solid #dce6ec;
    border-radius: 13px;
    background: #ffffff;
    color: #27343e;
    font-family: inherit;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 13px rgba(22, 48, 66, .035);
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, color .16s ease, background .16s ease;
}

.appointment-date-card:hover,
.appointment-date-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(13, 147, 220, .58);
    color: var(--appt-primary-dark);
    box-shadow: 0 9px 20px rgba(13, 147, 220, .10);
    outline: none;
}

.appointment-date-card.is-selected {
    border-color: var(--appt-primary);
    color: #ffffff;
    background: linear-gradient(145deg, var(--appt-primary) 0%, #087cb9 100%);
    box-shadow: 0 0 0 3px rgba(13, 147, 220, .10), 0 10px 22px rgba(13, 147, 220, .22);
}

.date-card-weekday {
    max-width: 100%;
    overflow: hidden;
    color: #6e7d88;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-card-day {
    font-size: 25px;
    font-weight: 900;
    line-height: 1.05;
}

.date-card-month {
    max-width: 100%;
    overflow: hidden;
    font-size: 11px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.date-card-availability {
    margin-top: 3px;
    padding: 2px 6px;
    border-radius: 999px;
    color: #0878b5;
    background: #edf8ff;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.appointment-date-card.is-selected .date-card-weekday,
.appointment-date-card.is-selected .date-card-month {
    color: rgba(255, 255, 255, .82);
}

.appointment-date-card.is-selected .date-card-availability {
    color: #ffffff;
    background: rgba(255, 255, 255, .18);
}

.date-card-skeleton {
    min-height: 96px;
    border-radius: 13px;
    background: linear-gradient(90deg, #edf2f5 25%, #f8fafb 50%, #edf2f5 75%);
    background-size: 220% 100%;
    animation: appointment-slot-loading 1.2s infinite linear;
}

.date-message {
    min-height: 19px;
    margin-top: 2px;
}

/* The public booking selectors are single-choice lists: no checkbox and no inner scrollbar. */
.booking-body .modern-select-menu {
    overflow: visible;
}

.booking-body .modern-select-options {
    max-height: none !important;
    overflow: visible !important;
    overscroll-behavior: auto;
}

.booking-body .modern-select-option {
    display: block;
    min-width: 0;
    overflow: hidden;
    padding: 11px 12px;
    text-overflow: ellipsis;
    white-space: normal;
}

.booking-body .modern-select-option-check {
    display: none !important;
}

@media (max-width: 900px) {
    .appointment-date-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .appointment-date-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 9px;
    }

    .appointment-date-card,
    .date-card-skeleton {
        min-height: 90px;
    }
}

/* Swift Fit booking landing page — v1.4.0 */
.bf-landing {
    --bf-purple: #17374a;
    --bf-purple-deep: #0f2430;
    --bf-purple-soft: #24495e;
    --bf-blue: #9faad9;
    --bf-blue-light: #dce2f7;
    --bf-pink: #4a9ccc;
    --bf-pink-light: #dfeff8;
    --bf-ink: #102531;
    --bf-muted: #756d7c;
    --bf-line: #e7eef2;
    --bf-surface: #f7fafb;
    min-height: 100vh;
    overflow: hidden;
    background: #fff;
    color: var(--bf-ink);
    font-family: "Myriad Arabic", Tahoma, Arial, sans-serif;
}

.bf-landing *,
.bf-landing *::before,
.bf-landing *::after {
    box-sizing: border-box;
}

.bf-landing a { color: inherit; }

.bf-landing-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 16% 12%, rgba(74, 156, 204, .25), transparent 28%),
        radial-gradient(circle at 84% 20%, rgba(159, 170, 217, .20), transparent 30%),
        linear-gradient(135deg, var(--bf-purple-deep) 0%, var(--bf-purple) 52%, #1c4359 100%);
}

.bf-landing-hero::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 50%;
    top: -280px;
    right: -160px;
    box-shadow: 0 0 0 90px rgba(255,255,255,.018), 0 0 0 180px rgba(255,255,255,.012);
}

.bf-landing-nav,
.bf-landing-hero-grid,
.bf-landing-section,
.bf-landing-stats,
.bf-landing-steps,
.bf-landing-footer {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.bf-landing-nav {
    position: relative;
    z-index: 5;
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.bf-landing-nav-logo {
    width: 175px;
    display: inline-flex;
    align-items: center;
}

.bf-landing-nav-logo img,
.bf-landing-footer img {
    display: block;
    width: 100%;
    height: auto;
}

.bf-landing-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.bf-landing-nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 800;
    transition: color .2s ease, transform .2s ease, background .2s ease;
}

.bf-landing-nav-links a:hover { color: #fff; }

.bf-landing-nav-links .bf-landing-nav-cta {
    padding: 11px 18px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(8px);
}

.bf-landing-nav-links .bf-landing-nav-cta:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.13);
}

.bf-landing-hero-grid {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    padding: 62px 0 112px;
}

.bf-landing-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--bf-blue-light);
    font-size: 14px;
    font-weight: 900;
}

.bf-landing-kicker::before {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 99px;
    background: var(--bf-pink);
}

.bf-landing-hero-copy h1 {
    margin: 24px 0 20px;
    max-width: 680px;
    font-size: clamp(48px, 6.6vw, 88px);
    line-height: .98;
    letter-spacing: -.035em;
    font-weight: 900;
}

.bf-landing-hero-copy h1 em {
    color: var(--bf-pink);
    font-style: normal;
}

.bf-landing-hero-copy > p {
    max-width: 640px;
    margin: 0;
    color: rgba(255,255,255,.70);
    font-size: 18px;
    line-height: 1.95;
}

.bf-landing-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.bf-landing-button {
    min-height: 55px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 0 24px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.bf-landing-button:hover { transform: translateY(-3px); }
.bf-landing-button.primary { color: #fff; background: var(--bf-pink); box-shadow: 0 16px 35px rgba(74, 156, 204,.25); }
.bf-landing-button.primary:hover { box-shadow: 0 20px 42px rgba(74, 156, 204,.36); }
.bf-landing-button.primary b { font-size: 24px; line-height: 1; }
.bf-landing-button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.bf-landing-button.secondary:hover { background: rgba(255,255,255,.11); }

.bf-landing-trust {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
    color: rgba(255,255,255,.64);
    font-size: 13px;
}

.bf-landing-trust span { display: inline-flex; align-items: center; gap: 7px; }
.bf-landing-trust i { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--bf-purple); background: var(--bf-blue); font-size: 11px; font-style: normal; font-weight: 900; }

.bf-landing-hero-art {
    position: relative;
    min-height: 500px;
    display: grid;
    place-items: center;
    gap: 22px;
}

.bf-landing-logo-stage {
    position: relative;
    width: min(520px, 100%);
    aspect-ratio: 1 / .84;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50% 50% 44% 56% / 44% 50% 50% 56%;
    background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 45px 90px rgba(4, 19, 27, .28);
    backdrop-filter: blur(8px);
    animation: bf-stage-float 6s ease-in-out infinite;
}

.bf-landing-logo-stage::before {
    content: "";
    position: absolute;
    inset: 9%;
    border: 1px dashed rgba(159,170,217,.30);
    border-radius: inherit;
}

.bf-landing-logo-stage img {
    position: relative;
    z-index: 2;
    width: 82%;
    height: auto;
    filter: drop-shadow(0 18px 28px rgba(5, 20, 28, .22));
}

.bf-orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.11);
}

.bf-orbit::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bf-pink);
    box-shadow: 0 0 22px rgba(74, 156, 204,.75);
}

.orbit-one { inset: -8%; animation: bf-orbit 14s linear infinite; }
.orbit-one::after { top: 14%; right: 10%; }
.orbit-two { inset: 6%; animation: bf-orbit 10s linear reverse infinite; }
.orbit-two::after { bottom: 8%; left: 17%; background: var(--bf-blue); box-shadow: 0 0 22px rgba(159,170,217,.75); }

.bf-floating-card {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(16, 37, 49, .82);
    box-shadow: 0 18px 46px rgba(5, 17, 24, .25);
    backdrop-filter: blur(14px);
}

.bf-floating-card-main {
    right: -24px;
    bottom: 30px;
    min-width: 240px;
    padding: 18px 20px;
    border-radius: 18px;
}

.bf-floating-card-main span,
.bf-floating-card-main small { display: block; color: rgba(255,255,255,.58); }
.bf-floating-card-main strong { display: block; margin: 5px 0 3px; color: #fff; font-size: 16px; }

.bf-floating-card-mini {
    left: -14px;
    top: 70px;
    min-width: 132px;
    padding: 16px;
    border-radius: 18px;
    text-align: center;
}

.bf-floating-card-mini b { display: block; color: var(--bf-pink); font-size: 30px; line-height: 1; }
.bf-floating-card-mini span { display: block; margin-top: 5px; color: rgba(255,255,255,.67); font-size: 12px; }


.bf-landing-stats {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-top: -48px;
    overflow: hidden;
    border: 1px solid var(--bf-line);
    border-radius: 22px;
    background: var(--bf-line);
    box-shadow: 0 20px 55px rgba(23, 55, 74, .09);
}

.bf-landing-stats article {
    min-height: 124px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.bf-landing-stats strong { color: var(--bf-purple); font-size: 34px; line-height: 1; }
.bf-landing-stats span { margin-top: 8px; color: var(--bf-muted); font-size: 13px; font-weight: 800; }

.bf-landing-section { padding: 105px 0 20px; }

.bf-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 36px;
}

.bf-section-heading > div > span {
    display: block;
    margin-bottom: 8px;
    color: var(--bf-pink);
    font-size: 13px;
    font-weight: 900;
}

.bf-section-heading h2 {
    margin: 0;
    color: var(--bf-purple);
    font-size: clamp(30px, 4.2vw, 52px);
    line-height: 1.15;
    font-weight: 900;
}

.bf-section-heading > p {
    max-width: 360px;
    margin: 0;
    color: var(--bf-muted);
    line-height: 1.8;
}

.bf-service-filter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bf-service-card,
.bf-service-filter-all {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--bf-line);
    border-radius: 24px;
    color: var(--bf-ink);
    text-align: right;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 12px 35px rgba(23, 55, 74,.045);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, color .22s ease, background .22s ease;
}

.bf-service-card::after,
.bf-service-filter-all::after {
    content: "";
    position: absolute;
    width: 130px;
    height: 130px;
    left: -60px;
    bottom: -70px;
    border-radius: 50%;
    background: var(--bf-pink-light);
    transition: transform .25s ease, opacity .25s ease;
    opacity: .7;
}

.bf-service-card:hover,
.bf-service-filter-all:hover,
.bf-service-card.is-active,
.bf-service-filter-all.is-active {
    transform: translateY(-5px);
    border-color: rgba(74, 156, 204,.38);
    color: #fff;
    background: var(--bf-purple);
    box-shadow: 0 22px 50px rgba(23, 55, 74,.16);
}

.bf-service-card:hover::after,
.bf-service-filter-all:hover::after,
.bf-service-card.is-active::after,
.bf-service-filter-all.is-active::after { transform: scale(1.35); opacity: .13; }

.bf-service-number {
    position: absolute;
    top: 18px;
    left: 20px;
    color: #9ac0d6;
    font-size: 12px;
    font-weight: 900;
}

.bf-service-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: 25px;
    border-radius: 14px;
    color: var(--bf-purple);
    background: var(--bf-blue-light);
    font-size: 20px;
    font-weight: 900;
    transition: color .2s ease, background .2s ease;
}

.bf-service-card:hover .bf-service-icon,
.bf-service-filter-all:hover .bf-service-icon,
.bf-service-card.is-active .bf-service-icon,
.bf-service-filter-all.is-active .bf-service-icon { color: #fff; background: var(--bf-pink); }

.bf-service-card strong,
.bf-service-filter-all strong { position: relative; z-index: 2; display: block; font-size: 18px; }
.bf-service-card small,
.bf-service-filter-all small { position: relative; z-index: 2; display: block; margin-top: 8px; color: var(--bf-muted); }
.bf-service-card:hover small,
.bf-service-filter-all:hover small,
.bf-service-card.is-active small,
.bf-service-filter-all.is-active small { color: rgba(255,255,255,.65); }
.bf-service-card > i { position: absolute; z-index: 2; left: 22px; bottom: 21px; color: var(--bf-pink); font-size: 25px; font-style: normal; }

.bf-branches-section { padding-bottom: 110px; }

.bf-branches-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.bf-branch-card {
    position: relative;
    min-height: 245px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 20px;
    overflow: hidden;
    padding: 28px;
    border: 1px solid var(--bf-line);
    border-radius: 26px;
    text-decoration: none;
    background: linear-gradient(145deg, #fff 0%, #fafcfd 100%);
    box-shadow: 0 14px 40px rgba(23, 55, 74,.05);
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.bf-branch-card::after {
    content: "";
    position: absolute;
    width: 190px;
    height: 190px;
    left: -100px;
    bottom: -110px;
    border-radius: 50%;
    background: rgba(159,170,217,.14);
}

.bf-branch-card:hover {
    transform: translateY(-5px);
    border-color: rgba(74, 156, 204,.30);
    box-shadow: 0 24px 55px rgba(23, 55, 74,.12);
}

.bf-branch-card.is-hidden { display: none; }

.bf-branch-card-index {
    position: absolute;
    left: 24px;
    top: 20px;
    color: #a8c8db;
    font-size: 12px;
    font-weight: 900;
}

.bf-branch-mark {
    position: relative;
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(22, 57, 77, .10);
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--bf-purple), var(--bf-pink));
    box-shadow: 0 13px 27px rgba(22, 57, 77, .13);
    font-size: 20px;
    font-weight: 900;
}

.bf-branch-mark.has-image {
    padding: 7px;
    border-color: rgba(22, 57, 77, .08);
    background: linear-gradient(145deg, #fff, #f7fafc);
}

.bf-branch-mark img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 13px;
    object-fit: contain;
}

.bf-branch-mark-fallback {
    position: relative;
    z-index: 1;
}

.bf-branch-mark.has-image .bf-branch-mark-fallback {
    display: none;
}

.bf-branch-content { min-width: 0; padding-top: 2px; }
.bf-branch-label { color: var(--bf-pink); font-size: 12px; font-weight: 900; }
.bf-branch-content h3 { margin: 7px 0 15px; color: var(--bf-purple); font-size: 22px; line-height: 1.35; }

.bf-branch-services { display: flex; gap: 7px; flex-wrap: wrap; }
.bf-branch-services span { max-width: 180px; overflow: hidden; padding: 6px 10px; border-radius: 999px; color: #3c7494; background: #edf2f5; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

.bf-branch-action {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 3px;
    padding-top: 18px;
    border-top: 1px solid var(--bf-line);
}

.bf-branch-action > span { color: var(--bf-muted); font-size: 12px; }
.bf-branch-action > strong { display: inline-flex; align-items: center; gap: 12px; color: var(--bf-purple); font-size: 14px; }
.bf-branch-action b { color: var(--bf-pink); font-size: 22px; }

.bf-branches-empty {
    width: 100%;
    min-height: 260px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 35px;
    border: 1px dashed #c3dae7;
    border-radius: 24px;
    color: var(--bf-muted);
    text-align: center;
    background: var(--bf-surface);
}

.bf-branches-empty[hidden] { display: none !important; }
.bf-branches-empty.static { grid-column: 1 / -1; }
.bf-branches-empty > span { color: var(--bf-pink); font-size: 34px; }
.bf-branches-empty > strong { color: var(--bf-purple); font-size: 18px; }
.bf-branches-empty > p { margin: 0; }
.bf-branches-empty button { border: 0; border-radius: 12px; padding: 10px 16px; color: #fff; background: var(--bf-purple); cursor: pointer; font: inherit; font-weight: 800; }

.bf-landing-steps {
    padding: 90px 60px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 100%, rgba(74, 156, 204,.24), transparent 27%),
        linear-gradient(130deg, var(--bf-purple-deep), var(--bf-purple));
    box-shadow: 0 30px 70px rgba(23, 55, 74,.14);
}

.bf-section-heading.light h2 { color: #fff; }
.bf-section-heading.light > p { color: rgba(255,255,255,.62); }

.bf-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bf-steps-grid article { position: relative; min-height: 210px; padding: 26px; border: 1px solid rgba(255,255,255,.11); border-radius: 22px; background: rgba(255,255,255,.055); }
.bf-steps-grid b { display: block; margin-bottom: 38px; color: var(--bf-pink); font-size: 13px; }
.bf-steps-grid span { display: block; font-size: 19px; font-weight: 900; }
.bf-steps-grid p { margin: 10px 0 0; color: rgba(255,255,255,.61); line-height: 1.8; }

.bf-landing-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 0 55px;
    color: var(--bf-muted);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}

.bf-landing-footer > span {
    white-space: nowrap;
}


[data-landing-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

[data-landing-reveal].is-visible { opacity: 1; transform: translateY(0); }

@keyframes bf-stage-float {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes bf-orbit { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .bf-landing *, .bf-landing *::before, .bf-landing *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
    [data-landing-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
    .bf-landing-hero-grid { grid-template-columns: 1fr 420px; }
    .bf-service-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bf-landing-steps { width: min(1240px, calc(100% - 48px)); padding: 65px 34px; }
}

@media (max-width: 850px) {
    .bf-landing-hero { min-height: auto; }
    .bf-landing-nav-links a:not(.bf-landing-nav-cta) { display: none; }
    .bf-landing-hero-grid { grid-template-columns: 1fr; padding-top: 58px; text-align: center; }
    .bf-landing-hero-copy h1, .bf-landing-hero-copy > p { margin-inline: auto; }
    .bf-landing-kicker, .bf-landing-hero-actions, .bf-landing-trust { justify-content: center; }
    .bf-landing-hero-art { min-height: 430px; }
    .bf-landing-logo-stage { width: min(450px, 86vw); }
    .bf-section-heading { align-items: flex-start; flex-direction: column; }
    .bf-branches-grid { grid-template-columns: 1fr; }
    .bf-steps-grid { grid-template-columns: 1fr; }
    .bf-landing-footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 620px) {
    .bf-landing-nav,
    .bf-landing-hero-grid,
    .bf-landing-section,
    .bf-landing-stats,
    .bf-landing-steps,
    .bf-landing-footer { width: min(100% - 28px, 1240px); }

    .bf-landing-nav { min-height: 78px; }
    .bf-landing-nav-logo { width: 132px; }
    .bf-landing-nav-links .bf-landing-nav-cta { padding: 9px 13px; font-size: 12px; }
    .bf-landing-hero-grid { gap: 22px; padding: 48px 0 100px; }
    .bf-landing-hero-copy h1 { font-size: clamp(40px, 13vw, 60px); }
    .bf-landing-hero-copy > p { font-size: 15px; }
    .bf-landing-button { width: 100%; }
    .bf-landing-trust { gap: 12px; }
    .bf-landing-hero-art { min-height: 350px; }
    .bf-landing-stats { grid-template-columns: 1fr; margin-top: -34px; }
    .bf-landing-stats article { min-height: 92px; }
    .bf-landing-section { padding-top: 75px; }
    .bf-service-filter { grid-template-columns: 1fr; }
    .bf-service-card, .bf-service-filter-all { min-height: 165px; }
    .bf-branch-card { grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 22px; }
    .bf-branch-mark { width: 58px; height: 58px; border-radius: 17px; font-size: 17px; }
    .bf-branch-action { align-items: flex-start; flex-direction: column; }
    .bf-landing-steps { padding: 48px 20px; border-radius: 26px; }
}

/* Swift Fit compact landing layout — v1.4.3 */
.bf-landing-compact .bf-landing-hero {
    min-height: 720px;
}

.bf-landing-compact .bf-landing-hero-grid {
    min-height: 600px;
    padding-bottom: 72px;
}

.bf-landing-compact .bf-landing-steps-first {
    position: relative;
    z-index: 3;
    margin-top: 52px;
}

.bf-landing-compact .bf-branches-section-compact {
    padding-top: 92px;
    padding-bottom: 92px;
}

.bf-landing-compact .bf-branches-section-compact .bf-section-heading {
    margin-bottom: 30px;
}

.bf-landing-compact .bf-landing-footer {
    border-top: 1px solid var(--bf-line);
}

@media (max-width: 850px) {
    .bf-landing-compact .bf-landing-hero {
        min-height: auto;
    }

    .bf-landing-compact .bf-landing-steps-first {
        margin-top: 38px;
    }

    .bf-landing-compact .bf-branches-section-compact {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}

@media (max-width: 620px) {
    .bf-landing-compact .bf-landing-hero-grid {
        padding-bottom: 60px;
    }

    .bf-landing-compact .bf-landing-steps-first {
        margin-top: 28px;
    }

    .bf-landing-compact .bf-branches-section-compact {
        padding-top: 62px;
        padding-bottom: 58px;
    }
}


/* Swift Fit landing scrollbar and section controls — v1.4.3 */
html:has(.bf-landing-compact) {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a9ccc #e7edf1;
}

html:has(.bf-landing-compact)::-webkit-scrollbar {
    width: 13px;
}

html:has(.bf-landing-compact)::-webkit-scrollbar-track {
    background: #e7edf1;
    border-inline: 1px solid rgba(22, 57, 77, .08);
}

html:has(.bf-landing-compact)::-webkit-scrollbar-thumb {
    min-height: 70px;
    border: 3px solid #e7edf1;
    border-radius: 999px;
    background: linear-gradient(180deg, #4a9ccc, #16394d);
}

html:has(.bf-landing-compact)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #62afdc, #102b3a);
}

.bf-landing-footer a {
    color: var(--bf-purple);
    font-weight: 900;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

.bf-landing-footer a:hover {
    color: var(--bf-pink);
}

.bf-scroll-controls {
    position: fixed;
    z-index: 100;
    left: 22px;
    bottom: 24px;
    display: grid;
    gap: 8px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.30);
    border-radius: 18px;
    background: rgba(22, 57, 77, .88);
    box-shadow: 0 16px 38px rgba(23, 55, 74, .24);
    backdrop-filter: blur(12px);
}

.bf-scroll-controls button {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 13px;
    color: #fff;
    background: rgba(255,255,255,.09);
    cursor: pointer;
    font: inherit;
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.bf-scroll-controls button:hover:not(:disabled) {
    transform: translateY(-2px);
    background: var(--bf-pink);
}

.bf-scroll-controls button:focus-visible {
    outline: 3px solid rgba(159,170,217,.75);
    outline-offset: 2px;
}

.bf-scroll-controls button:disabled {
    opacity: .28;
    cursor: default;
}

.bf-scroll-controls span {
    font-size: 22px;
    font-weight: 900;
    line-height: 1;
}

@media (max-width: 620px) {
    .bf-scroll-controls {
        left: 12px;
        bottom: 14px;
        border-radius: 15px;
    }

    .bf-scroll-controls button {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .bf-landing-footer > span {
        white-space: normal;
        line-height: 1.9;
    }
}

@media print {
    .bf-scroll-controls {
        display: none !important;
    }
}

/* Swift Fit public booking page identity — v1.4.4 */
.booking-body {
    --booking-purple: #101820;
    --booking-purple-deep: #080D11;
    --booking-purple-soft: #17384A;
    --booking-pink: #0D93DC;
    --booking-pink-dark: #0878B5;
    --booking-pink-light: #E6F5FD;
    --booking-blue: #51B8EE;
    --booking-blue-light: #EAF7FD;
    --booking-surface: #F7FAFC;
    --booking-line: #DCE7ED;
    --booking-text: #101820;
    --booking-muted: #6D7883;
    --appt-primary: var(--booking-pink);
    --appt-primary-dark: var(--booking-pink-dark);
    --appt-ink: var(--booking-text);
    --appt-muted: var(--booking-muted);
    --appt-line: var(--booking-line);
    background: var(--booking-surface);
    color: var(--booking-text);
    scrollbar-color: var(--booking-pink) #e6edf1;
    scrollbar-width: thin;
}

.booking-body::-webkit-scrollbar {
    width: 11px;
}

.booking-body::-webkit-scrollbar-track {
    background: #e6edf1;
}

.booking-body::-webkit-scrollbar-thumb {
    border: 3px solid #e6edf1;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--booking-pink), var(--booking-purple));
}

.booking-body *,
.booking-body *::before,
.booking-body *::after {
    box-sizing: border-box;
}

.booking-body .booking-shell {
    min-height: 100vh;
    grid-template-columns: minmax(430px, .88fr) minmax(620px, 1.12fr);
    background: var(--booking-surface);
}

.booking-body .booking-brand {
    position: sticky;
    top: 0;
    isolation: isolate;
    height: 100vh;
    min-height: 680px;
    overflow: hidden;
    padding: clamp(42px, 5vw, 84px);
    justify-content: center;
    background:
        radial-gradient(circle at 78% 18%, rgba(74, 156, 204, .24), transparent 27%),
        radial-gradient(circle at 12% 88%, rgba(159, 170, 217, .20), transparent 30%),
        linear-gradient(145deg, var(--booking-purple-deep) 0%, var(--booking-purple) 58%, #1a3d52 100%);
    box-shadow: inset 1px 0 0 rgba(255,255,255,.07);
}

.booking-body .booking-brand::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    opacity: .42;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 76%, transparent);
}

.booking-body .booking-brand::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -230px;
    bottom: -250px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 75px rgba(255,255,255,.025),
        0 0 0 150px rgba(255,255,255,.018);
}

.booking-body .booking-back-link {
    position: absolute;
    z-index: 5;
    top: 32px;
    right: clamp(28px, 4vw, 62px);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: rgba(255,255,255,.72);
    text-decoration: none;
    background: rgba(255,255,255,.055);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.booking-body .booking-back-link:hover {
    color: #fff;
    background: rgba(255,255,255,.11);
    transform: translateY(-2px);
}

.booking-body .booking-back-link span {
    color: var(--booking-pink);
    font-size: 18px;
    line-height: 1;
}

.booking-body .booking-brand-content {
    position: relative;
    z-index: 3;
    width: min(100%, 640px);
    margin-inline: auto;
}

.booking-body .booking-brand-logo {
    width: min(285px, 72%);
    margin-bottom: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.booking-body .booking-brand-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.booking-body .booking-brand-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 11px;
    color: var(--booking-blue);
    font-size: 13px;
    font-weight: 900;
}

.booking-body .booking-brand-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: var(--booking-pink);
}

.booking-body .booking-tenant-name {
    display: block;
    max-width: 620px;
    color: #fff;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 900;
    line-height: 1.7;
}

.booking-body .booking-brand h1 {
    max-width: 640px;
    margin: 25px 0 18px;
    color: #fff;
    font-size: clamp(52px, 6.2vw, 88px);
    line-height: 1.08;
    letter-spacing: -.025em;
    font-weight: 900;
}

.booking-body .booking-brand h1 em {
    color: var(--booking-pink);
    font-style: normal;
}

.booking-body .booking-brand p {
    max-width: 620px;
    margin: 0;
    color: rgba(255,255,255,.67);
    font-size: 16px;
    line-height: 2;
}

.booking-body .brand-points {
    margin-top: 30px;
    gap: 9px;
}

.booking-body .brand-points span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.045);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.booking-body .brand-points i {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--booking-purple);
    background: var(--booking-blue);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
}

.booking-body .booking-brand-orbit {
    position: absolute;
    z-index: 0;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 50%;
    pointer-events: none;
}

.booking-body .booking-brand-orbit.orbit-large {
    width: 520px;
    height: 520px;
    left: -175px;
    top: -170px;
}

.booking-body .booking-brand-orbit.orbit-small {
    width: 330px;
    height: 330px;
    left: -70px;
    top: -75px;
    border-style: dashed;
}

.booking-body .booking-brand-dot {
    position: absolute;
    z-index: 1;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    pointer-events: none;
}

.booking-body .booking-brand-dot.dot-one {
    left: 18%;
    top: 18%;
    background: var(--booking-pink);
    box-shadow: 0 0 22px rgba(74, 156, 204,.75);
}

.booking-body .booking-brand-dot.dot-two {
    right: 13%;
    bottom: 17%;
    background: var(--booking-blue);
    box-shadow: 0 0 22px rgba(159,170,217,.68);
}

.booking-body .booking-card {
    position: relative;
    min-height: 100vh;
    justify-content: flex-start;
    overflow: hidden;
    padding: clamp(40px, 5vw, 76px) clamp(28px, 6vw, 92px);
    background:
        radial-gradient(circle at 8% 7%, rgba(74, 156, 204,.08), transparent 22%),
        radial-gradient(circle at 92% 88%, rgba(159,170,217,.12), transparent 26%),
        var(--booking-surface);
}

.booking-body .booking-card::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(23, 55, 74,.055);
    border-radius: 30px;
    pointer-events: none;
}

.booking-body .booking-card > * {
    position: relative;
    z-index: 1;
}

.booking-body .booking-card form,
.booking-body .booking-card-head,
.booking-body .booking-mode-tabs,
.booking-body .booking-tab-panel {
    max-width: 820px;
}

.booking-body .booking-card-head {
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom-color: var(--booking-line);
}

.booking-body .booking-card-head > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.booking-body .booking-card-head span {
    color: var(--booking-pink);
    font-size: 12px;
    font-weight: 900;
}

.booking-body .booking-card-head strong {
    color: var(--booking-purple);
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.25;
}

.booking-body .booking-card-head small {
    max-width: 330px;
    padding: 8px 12px;
    overflow: hidden;
    border-radius: 999px;
    color: var(--booking-purple);
    background: var(--booking-blue-light);
    font-size: 11px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-body .booking-mode-tabs {
    padding: 5px;
    border-color: var(--booking-line);
    border-radius: 16px;
    background: #ebf0f3;
    box-shadow: inset 0 1px 2px rgba(23, 55, 74,.04);
}

.booking-body .booking-mode-tab {
    min-height: 48px;
    border-radius: 12px;
    color: #75697b;
}

.booking-body .booking-mode-tab:hover:not(.is-active) {
    color: var(--booking-purple);
    background: rgba(255,255,255,.58);
}

.booking-body .booking-mode-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--booking-purple), var(--booking-purple-soft));
    box-shadow: 0 10px 24px rgba(23, 55, 74,.20);
}

.booking-body .booking-grid {
    gap: 18px;
}

.booking-body .field {
    gap: 8px;
}

.booking-body .field label,
.booking-body .dates-title-row label,
.booking-body .slots-title-row label {
    color: var(--booking-purple);
    font-size: 13px;
    font-weight: 900;
}

.booking-body .field input,
.booking-body .field select,
.booking-body .field textarea {
    min-height: 50px;
    border-color: #ccdfea;
    border-radius: 14px;
    color: var(--booking-text);
    background: rgba(255,255,255,.92);
    box-shadow: 0 5px 16px rgba(23, 55, 74,.025);
}

.booking-body .field textarea {
    min-height: 94px;
    resize: vertical;
}

.booking-body .field input:focus,
.booking-body .field select:focus,
.booking-body .field textarea:focus {
    border-color: rgba(74, 156, 204,.70);
    box-shadow: 0 0 0 4px rgba(74, 156, 204,.10);
}

.booking-body .modern-select-trigger {
    min-height: 54px;
    border-color: #ccdfea;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 5px 16px rgba(23, 55, 74,.028);
}

.booking-body .modern-select-trigger:hover:not(:disabled),
.booking-body .modern-select-trigger:focus-visible,
.booking-body .modern-select.is-open .modern-select-trigger {
    border-color: rgba(74, 156, 204,.66);
    box-shadow: 0 0 0 4px rgba(74, 156, 204,.09), 0 10px 24px rgba(23, 55, 74,.07);
}

.booking-body .modern-select-leading {
    color: var(--booking-purple);
    background: var(--booking-blue-light);
}

.booking-body .modern-select.is-open .modern-select-leading {
    color: #fff;
    background: var(--booking-pink);
}

.booking-body .modern-select-value strong {
    color: var(--booking-purple);
}

.booking-body .modern-select-menu {
    border-color: var(--booking-line);
    box-shadow: 0 18px 48px rgba(23, 55, 74,.16);
}

.booking-body .modern-select-option:hover,
.booking-body .modern-select-option:focus-visible,
.booking-body .modern-select-option.is-selected {
    color: var(--booking-purple);
    background: #eff5f8;
}

.booking-body .dates-title-row > span,
.booking-body .slots-title-row > span,
.booking-body .field-help {
    color: var(--booking-pink-dark);
}

.booking-body .appointment-date-cards {
    min-height: 124px;
    padding: 12px;
    border-color: #d0e2ec;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f3f7f9 100%);
    box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(23, 55, 74,.035);
}

.booking-body .appointment-date-cards:focus {
    border-color: rgba(74, 156, 204,.60);
    box-shadow: 0 0 0 4px rgba(74, 156, 204,.09);
}

.booking-body .appointment-date-card {
    min-height: 102px;
    border-color: #d1e2ec;
    border-radius: 15px;
    color: var(--booking-text);
    background: #fff;
    box-shadow: 0 5px 15px rgba(23, 55, 74,.04);
}

.booking-body .appointment-date-card:hover,
.booking-body .appointment-date-card:focus-visible {
    border-color: rgba(74, 156, 204,.58);
    color: var(--booking-purple);
    box-shadow: 0 11px 25px rgba(23, 55, 74,.10);
}

.booking-body .appointment-date-card.is-selected {
    border-color: var(--booking-pink);
    color: #fff;
    background: linear-gradient(145deg, var(--booking-purple) 0%, var(--booking-purple-soft) 58%, var(--booking-pink-dark) 100%);
    box-shadow: 0 0 0 3px rgba(74, 156, 204,.10), 0 14px 28px rgba(23, 55, 74,.22);
}

.booking-body .date-card-availability {
    color: var(--booking-pink-dark);
    background: var(--booking-pink-light);
}

.booking-body .dates-placeholder-icon,
.booking-body .slots-placeholder-icon {
    color: var(--booking-purple);
    background: var(--booking-blue-light);
}

.booking-body .appointment-slots {
    min-height: 166px;
    padding: 18px;
    border-color: #d0e2ec;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f3f7f9 100%);
    box-shadow: inset 0 1px 0 #fff, 0 8px 24px rgba(23, 55, 74,.035);
}

.booking-body .appointment-slots:focus {
    border-color: rgba(74, 156, 204,.60);
    box-shadow: 0 0 0 4px rgba(74, 156, 204,.09);
}

.booking-body .slot-period-title::before {
    background: var(--booking-pink);
    box-shadow: 0 0 0 4px rgba(74, 156, 204,.10);
}

.booking-body .appointment-slot-card {
    border-color: #d1e2ec;
    border-radius: 14px;
    box-shadow: 0 5px 15px rgba(23, 55, 74,.035);
}

.booking-body .appointment-slot-card:hover {
    border-color: rgba(74, 156, 204,.55);
    box-shadow: 0 10px 22px rgba(23, 55, 74,.09);
}

.booking-body .appointment-slot-card:has(input:checked) {
    border-color: var(--booking-pink);
    background: #f0f7fb;
    box-shadow: 0 0 0 3px rgba(74, 156, 204,.10), 0 10px 24px rgba(23, 55, 74,.10);
}

.booking-body .slot-clock-icon {
    color: var(--booking-purple);
    background: var(--booking-blue-light);
}

.booking-body .appointment-slot-card:has(input:checked) .slot-clock-icon,
.booking-body .slot-card-check {
    color: #fff;
    background: var(--booking-pink);
}

.booking-body .booking-submit {
    min-height: 58px;
    margin-top: 24px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--booking-purple), var(--booking-purple-soft) 58%, var(--booking-pink-dark));
    box-shadow: 0 14px 30px rgba(23, 55, 74,.20);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.booking-body .booking-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--booking-purple), var(--booking-purple-soft) 58%, var(--booking-pink));
    box-shadow: 0 18px 38px rgba(23, 55, 74,.27);
    transform: translateY(-2px);
}

.booking-body .booking-submit:disabled {
    opacity: .72;
    filter: saturate(.7);
}

.booking-body .booking-note {
    margin: 10px 0 0;
    color: #8a7e8f;
    font-size: 11px;
}

.booking-body .booking-lookup-intro {
    border-color: var(--booking-line);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff, #f3f7f9);
}

.booking-body .booking-lookup-icon {
    color: #fff;
    background: linear-gradient(135deg, var(--booking-purple), var(--booking-pink));
}

.booking-body .booking-lookup-control button {
    background: linear-gradient(135deg, var(--booking-purple), var(--booking-purple-soft));
}

.booking-body .booking-lookup-result {
    border-color: var(--booking-line);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(23, 55, 74,.055);
}

@media (max-width: 1100px) {
    .booking-body .booking-shell {
        grid-template-columns: 1fr;
    }

    .booking-body .booking-brand {
        position: relative;
        height: auto;
        min-height: 520px;
        padding: 96px 7vw 62px;
        text-align: center;
    }

    .booking-body .booking-brand-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .booking-body .booking-brand h1,
    .booking-body .booking-brand p {
        margin-inline: auto;
    }

    .booking-body .brand-points {
        justify-content: center;
    }

    .booking-body .booking-brand-logo {
        width: min(250px, 65vw);
    }

    .booking-body .booking-card {
        min-height: auto;
        padding-block: 62px;
    }
}

@media (max-width: 760px) {
    .booking-body .booking-brand {
        min-height: auto;
        padding: 88px 22px 48px;
    }

    .booking-body .booking-back-link {
        top: 22px;
        right: 20px;
    }

    .booking-body .booking-brand-logo {
        margin-bottom: 22px;
        border-radius: 18px;
    }

    .booking-body .booking-brand h1 {
        margin-top: 20px;
        font-size: clamp(42px, 14vw, 62px);
        line-height: 1.12;
        letter-spacing: -.015em;
    }

    .booking-body .booking-brand p {
        font-size: 14px;
    }

    .booking-body .brand-points {
        gap: 7px;
    }

    .booking-body .brand-points span {
        padding: 8px 10px;
        font-size: 11px;
    }

    .booking-body .booking-card {
        padding: 42px 16px;
    }

    .booking-body .booking-card::before {
        inset: 10px;
        border-radius: 22px;
    }

    .booking-body .booking-card-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .booking-body .booking-card-head small {
        max-width: 100%;
    }

    .booking-body .booking-grid {
        grid-template-columns: 1fr;
    }

    .booking-body .appointment-date-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .booking-body .booking-brand-logo {
        width: min(220px, 74vw);
    }

    .booking-body .booking-mode-tabs {
        gap: 4px;
    }

    .booking-body .booking-mode-tab {
        padding-inline: 8px;
        font-size: 12px;
    }

    .booking-body .appointment-date-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .booking-body .slot-cards-grid {
        grid-template-columns: 1fr;
    }
}


/* Swift Fit booking responsive visibility and page scrolling — v1.4.5 */
html:has(.booking-body) {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a9ccc #e7edf1;
}

html:has(.booking-body)::-webkit-scrollbar {
    width: 13px;
}

html:has(.booking-body)::-webkit-scrollbar-track {
    background: #e7edf1;
    border-inline: 1px solid rgba(22, 57, 77, .08);
}

html:has(.booking-body)::-webkit-scrollbar-thumb {
    min-height: 70px;
    border: 3px solid #e7edf1;
    border-radius: 999px;
    background: linear-gradient(180deg, #4a9ccc, #16394d);
}

html:has(.booking-body)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #62afdc, #102b3a);
}

.booking-body .booking-scroll-controls {
    left: 22px;
    right: auto;
}

@media (max-width: 1023px) {
    .booking-body .booking-shell {
        display: block;
        min-height: 100vh;
        grid-template-columns: none;
    }

    .booking-body .booking-brand {
        display: none !important;
    }

    .booking-body .booking-card {
        width: 100%;
        min-height: 100vh;
        padding: 48px clamp(18px, 5vw, 54px);
    }

    .booking-body .booking-card form,
    .booking-body .booking-card-head,
    .booking-body .booking-mode-tabs,
    .booking-body .booking-tab-panel {
        width: min(100%, 860px);
        max-width: 860px;
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    .booking-body .booking-scroll-controls {
        left: 12px;
        bottom: 14px;
    }
}

@media print {
    .booking-body .booking-scroll-controls {
        display: none !important;
    }
}


/* Swift Fit landing header and responsive hero — v1.4.6 */
.bf-landing-compact .bf-landing-nav {
    display: flex;
    justify-content: center;
}

.bf-landing-compact .bf-landing-nav-links {
    position: relative;
    width: 100%;
    min-height: 92px;
    justify-content: center;
    padding-inline: 180px;
}

.bf-landing-compact .bf-landing-nav-links .bf-landing-nav-cta {
    position: absolute;
    inset-inline-end: 0;
    min-width: 148px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-hero {
        min-height: auto;
    }

    .bf-landing-compact .bf-landing-hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 64px 0 112px;
        text-align: center;
    }

    .bf-landing-compact .bf-landing-hero-copy {
        max-width: 760px;
        margin-inline: auto;
    }

    .bf-landing-compact .bf-landing-hero-copy h1,
    .bf-landing-compact .bf-landing-hero-copy > p {
        margin-inline: auto;
    }

    .bf-landing-compact .bf-landing-kicker,
    .bf-landing-compact .bf-landing-hero-actions,
    .bf-landing-compact .bf-landing-trust {
        justify-content: center;
    }

    .bf-landing-compact .bf-landing-hero-art {
        display: none !important;
    }
}

@media (max-width: 850px) {
    .bf-landing-compact .bf-landing-nav {
        min-height: 76px;
    }

    .bf-landing-compact .bf-landing-nav-links {
        min-height: 76px;
        padding-inline: 0;
        justify-content: center;
    }

    .bf-landing-compact .bf-landing-nav-links a:not(.bf-landing-nav-cta) {
        display: none;
    }

    .bf-landing-compact .bf-landing-nav-links .bf-landing-nav-cta {
        position: static;
        min-width: 168px;
        padding: 11px 20px;
    }
}

@media (max-width: 620px) {
    .bf-landing-compact .bf-landing-nav {
        min-height: 70px;
    }

    .bf-landing-compact .bf-landing-nav-links {
        min-height: 70px;
    }

    .bf-landing-compact .bf-landing-hero-grid {
        padding: 48px 0 92px;
    }
}


/* Swift Fit compact landing header logo — v1.4.9 */
.bf-landing-compact .bf-landing-nav {
    position: relative;
}

.bf-landing-compact .bf-landing-nav-logo-small {
    position: absolute;
    z-index: 2;
    inset-inline-start: 0;
    width: 112px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 15px;
    background: rgba(255,255,255,.035);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.bf-landing-compact .bf-landing-nav-logo-small:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.20);
    background: rgba(255,255,255,.075);
}

.bf-landing-compact .bf-landing-nav-logo-small img {
    width: 100%;
    max-height: 48px;
    object-fit: contain;
}

.bf-landing-compact .bf-landing-nav-links {
    padding-inline: 150px 180px;
}

@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-nav-logo-small {
        display: none !important;
    }

    .bf-landing-compact .bf-landing-nav-links {
        padding-inline: 0;
    }
}


/* Hide booking method link below laptop width — v1.4.10 */
@media (max-width: 1023px) {
    .bf-landing-compact .bf-nav-booking-method {
        display: none !important;
    }

    .bf-landing-compact .bf-landing-nav-links {
        justify-content: center;
        gap: 18px;
    }
}

@media (max-width: 850px) {
    .bf-landing-compact .bf-landing-nav-links a:not(.bf-landing-nav-cta):not([href="#branches"]) {
        display: none !important;
    }

    .bf-landing-compact .bf-landing-nav-links a[href="#branches"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 9px 15px;
        border-radius: 999px;
        color: rgba(255,255,255,.82);
        background: rgba(255,255,255,.06);
    }
}


/* Swift Fit mobile landing simplification — v1.4.11 */
@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-steps-first,
    .bf-landing-compact .bf-scroll-controls {
        display: none !important;
    }

    .bf-landing-compact .bf-branches-section-compact {
        padding-top: 48px;
    }
}

@media (max-width: 620px) {
    .bf-landing-compact .bf-branches-section-compact {
        padding-top: 38px;
    }
}


/* Hide landing header and secondary booking-method button on mobile/tablet — v1.4.12 */
@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-nav {
        display: none !important;
    }

    .bf-landing-compact .bf-landing-hero-actions .bf-landing-button.secondary {
        display: none !important;
    }

    .bf-landing-compact .bf-landing-hero-grid {
        padding-top: 38px;
    }

    .bf-landing-compact .bf-landing-hero-actions {
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .bf-landing-compact .bf-landing-hero-grid {
        padding-top: 28px;
    }
}


/* Full-screen responsive hero with mobile app-style CTA — v1.4.13 */
.bf-mobile-hero-logo,
.bf-mobile-hero-cta {
    display: none;
}

@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-hero {
        min-height: 100vh;
        min-height: 100svh;
        display: flex;
        align-items: stretch;
        overflow: hidden;
    }

    .bf-landing-compact .bf-landing-hero::before {
        width: 430px;
        height: 430px;
        top: -210px;
        right: -180px;
    }

    .bf-landing-compact .bf-landing-hero-grid {
        width: min(100% - 34px, 760px);
        min-height: 100vh;
        min-height: 100svh;
        display: grid;
        align-items: center;
        padding: 118px 0 138px;
    }

    .bf-landing-compact .bf-landing-hero-copy {
        width: 100%;
        margin: 0 auto;
    }

    .bf-landing-compact .bf-landing-hero-actions {
        display: none !important;
    }

    .bf-mobile-hero-logo {
        position: absolute;
        z-index: 6;
        top: max(18px, env(safe-area-inset-top));
        right: 18px;
        width: 150px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .bf-mobile-hero-logo img {
        display: block;
        width: 100%;
        max-height: 74px;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(5, 20, 28,.16));
    }

    .bf-mobile-hero-cta {
        position: absolute;
        z-index: 8;
        right: 17px;
        left: 17px;
        bottom: max(20px, calc(env(safe-area-inset-bottom) + 14px));
        min-height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 18px;
        padding: 0 24px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 18px;
        color: #fff;
        text-decoration: none;
        background: linear-gradient(135deg, #4a9fd0, #2f7ca8);
        box-shadow: 0 18px 42px rgba(74, 156, 204,.34);
        font-size: 17px;
        font-weight: 900;
        transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    }

    .bf-mobile-hero-cta:active {
        transform: scale(.985);
        filter: brightness(.97);
        box-shadow: 0 12px 28px rgba(74, 156, 204,.26);
    }

    .bf-mobile-hero-cta b {
        font-size: 25px;
        line-height: 1;
    }
}

@media (max-width: 620px) {
    .bf-landing-compact .bf-landing-hero-grid {
        width: min(100% - 30px, 620px);
        padding: 112px 0 132px;
    }

    .bf-landing-compact .bf-landing-hero-copy h1 {
        font-size: clamp(43px, 14vw, 62px);
        line-height: 1.02;
    }

    .bf-landing-compact .bf-landing-hero-copy > p {
        max-width: 520px;
        font-size: 15px;
        line-height: 1.9;
    }

    .bf-landing-compact .bf-landing-trust {
        gap: 10px;
        margin-top: 24px;
        font-size: 12px;
    }

    .bf-mobile-hero-logo {
        top: max(15px, env(safe-area-inset-top));
        right: 15px;
        width: 138px;
    }

    .bf-mobile-hero-logo img {
        max-height: 68px;
    }

    .bf-mobile-hero-cta {
        right: 14px;
        left: 14px;
        min-height: 58px;
        border-radius: 17px;
    }
}

@media (max-height: 650px) and (max-width: 1023px) {
    .bf-landing-compact .bf-landing-hero-grid {
        align-items: start;
        padding-top: 100px;
        padding-bottom: 120px;
    }

    .bf-landing-compact .bf-landing-hero-copy h1 {
        margin-top: 16px;
        margin-bottom: 14px;
        font-size: clamp(38px, 10vw, 54px);
    }

    .bf-landing-compact .bf-landing-trust {
        margin-top: 18px;
    }
}


/* Booking mobile slot grid and hidden scroll controls — v1.4.16 */
@media (max-width: 1023px) {
    .booking-body .booking-scroll-controls {
        display: none !important;
    }
}

@media (max-width: 760px) {
    .booking-body .slot-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .booking-body .appointment-slot-card {
        min-width: 0;
        min-height: 92px;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        padding: 10px 6px;
        text-align: center;
    }

    .booking-body .slot-clock-icon {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
        border-radius: 9px;
        font-size: 18px;
    }

    .booking-body .slot-card-content {
        align-items: center;
        gap: 2px;
    }

    .booking-body .slot-card-content strong {
        max-width: 100%;
        overflow: hidden;
        font-size: 13px;
        text-overflow: ellipsis;
    }

    .booking-body .slot-card-content small {
        max-width: 100%;
        overflow: hidden;
        font-size: 10px;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .booking-body .slot-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile landing menu and booking return link — v1.4.17 */
.bf-mobile-menu-toggle,
.bf-mobile-menu,
.bf-mobile-menu-backdrop,
.booking-mobile-back-link {
    display: none;
}

@media (max-width: 1023px) {
    body.bf-mobile-menu-open {
        overflow: hidden;
    }

    .bf-mobile-menu-toggle {
        position: absolute;
        z-index: 14;
        top: max(18px, env(safe-area-inset-top));
        left: 18px;
        width: 48px;
        height: 48px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 15px;
        color: #fff;
        background: rgba(255,255,255,.08);
        box-shadow: 0 12px 30px rgba(5, 20, 28,.20);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        cursor: pointer;
        transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }

    .bf-mobile-menu-toggle:active {
        transform: scale(.96);
    }

    .bf-mobile-menu-toggle span {
        width: 21px;
        height: 2px;
        display: block;
        border-radius: 99px;
        background: #fff;
        transition: transform .25s ease, opacity .2s ease;
    }

    .bf-mobile-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .bf-mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .bf-mobile-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .bf-mobile-menu-backdrop {
        position: fixed;
        z-index: 998;
        inset: 0;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(7, 20, 27, .56);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: opacity .25s ease, visibility .25s ease;
    }

    .bf-mobile-menu {
        position: fixed;
        z-index: 999;
        top: 0;
        bottom: 0;
        right: 0;
        width: min(86vw, 360px);
        display: flex;
        flex-direction: column;
        padding: max(24px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
        color: #fff;
        background:
            radial-gradient(circle at 100% 0, rgba(74, 156, 204,.22), transparent 34%),
            linear-gradient(160deg, #142f3f 0%, #0f2430 100%);
        box-shadow: -24px 0 65px rgba(5, 20, 28, .34);
        visibility: hidden;
        opacity: 0;
        transform: translateX(104%);
        transition: transform .3s ease, opacity .25s ease, visibility .3s ease;
    }

    .bf-landing.is-mobile-menu-open .bf-mobile-menu-backdrop {
        visibility: visible;
        opacity: 1;
    }

    .bf-landing.is-mobile-menu-open .bf-mobile-menu {
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .bf-mobile-menu-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .bf-mobile-menu-head strong {
        font-size: 20px;
        font-weight: 900;
    }

    .bf-mobile-menu-head button {
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 13px;
        color: #fff;
        background: rgba(255,255,255,.07);
        font: inherit;
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .bf-mobile-menu-links {
        padding-top: 24px;
    }

    .bf-mobile-login-link {
        min-height: 82px;
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr) auto;
        align-items: center;
        gap: 14px;
        padding: 14px;
        border: 1px solid rgba(255,255,255,.13);
        border-radius: 18px;
        color: #fff;
        text-decoration: none;
        background: rgba(255,255,255,.065);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
        transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }

    .bf-mobile-login-link:active {
        transform: scale(.985);
    }

    .bf-mobile-login-icon {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 15px;
        color: #fff;
        background: linear-gradient(135deg, #4a9fd0, #2f7ca8);
        font-size: 22px;
        font-weight: 900;
    }

    .bf-mobile-login-link > span:nth-child(2) {
        min-width: 0;
    }

    .bf-mobile-login-link strong,
    .bf-mobile-login-link small {
        display: block;
    }

    .bf-mobile-login-link strong {
        font-size: 16px;
        font-weight: 900;
    }

    .bf-mobile-login-link small {
        margin-top: 5px;
        color: rgba(255,255,255,.62);
        font-size: 12px;
    }

    .bf-mobile-login-link b {
        color: #a3c5d9;
        font-size: 22px;
    }

    .booking-body .booking-mobile-back-link {
        width: min(100%, 860px);
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        margin: 0 auto 18px;
        padding: 0 16px;
        border: 1px solid rgba(22, 57, 77,.13);
        border-radius: 14px;
        color: #16394d;
        text-decoration: none;
        background: #f7fafc;
        font-size: 13px;
        font-weight: 900;
        transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .booking-body .booking-mobile-back-link:active {
        transform: scale(.99);
    }

    .booking-body .booking-mobile-back-link span {
        width: 28px;
        height: 28px;
        display: grid;
        place-items: center;
        border-radius: 9px;
        color: #fff;
        background: linear-gradient(135deg, #16394d, #488ab1);
        font-size: 17px;
    }
}

@media (max-width: 620px) {
    .bf-mobile-menu-toggle {
        top: max(15px, env(safe-area-inset-top));
        left: 15px;
        width: 45px;
        height: 45px;
        border-radius: 14px;
    }

    .booking-body .booking-mobile-back-link {
        min-height: 46px;
        margin-bottom: 14px;
        padding-inline: 13px;
    }
}

@media print {
    .bf-mobile-menu-toggle,
    .bf-mobile-menu,
    .bf-mobile-menu-backdrop,
    .booking-mobile-back-link {
        display: none !important;
    }
}


/* Appointment ticket & success redesign v1.4.18 */
.success-page-pro {
    background:
        radial-gradient(circle at top right, rgba(94, 168, 211, .12), transparent 26%),
        linear-gradient(180deg, #f3f7fa 0%, #f4f6f8 100%);
}

.success-card-pro {
    width: min(760px, 100%);
    padding: clamp(26px, 4vw, 42px);
    text-align: right;
    border: 1px solid #dfeaf1;
    box-shadow: 0 28px 80px rgba(24, 56, 75, .12);
}

.success-card-pro-head {
    text-align: center;
}

.success-card-badge {
    width: 78px;
    height: 78px;
    margin: 0 auto 16px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #4fa4d6 0%, #356581 100%);
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 16px 38px rgba(49, 107, 140, .24);
}

.success-card-pro h1 {
    margin: 8px 0 12px;
    font-size: clamp(34px, 4vw, 44px);
    color: #112836;
}

.success-card-pro > p,
.success-card-pro-head > p {
    color: #417c9e;
    line-height: 1.9;
    max-width: 560px;
    margin: 0 auto;
}

.success-pass-preview {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid #dfeaf1;
    border-radius: 24px;
    background: #fff;
}

.success-pass-preview > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    color: #fff;
    background: linear-gradient(135deg, #112836 0%, #244c63 100%);
}

.success-pass-preview > header small,
.success-pass-preview > header strong {
    display: block;
}

.success-pass-preview > header small {
    margin-bottom: 4px;
    color: #a8d6f1;
}

.success-pass-preview > header strong {
    font-size: 24px;
    letter-spacing: .05em;
}

.success-pass-main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
    background: #f8fbfd;
    border-bottom: 1px dashed #dfeaf1;
}

.success-pass-main > div {
    padding: 14px 16px;
    text-align: center;
    border: 1px solid #dfecf3;
    border-radius: 18px;
    background: #fff;
}

.success-pass-main span {
    display: block;
    margin-bottom: 7px;
    color: #498cb2;
    font-size: 12px;
}

.success-pass-main strong {
    color: #112836;
    font-size: 20px;
}

.success-pass-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: #e7eff4;
}

.success-pass-grid div {
    padding: 16px 18px;
    background: #fff;
}

.success-pass-grid dt {
    margin-bottom: 6px;
    color: #4b8fb6;
    font-size: 12px;
}

.success-pass-grid dd {
    margin: 0;
    color: #112835;
    font-weight: 800;
    line-height: 1.8;
}

.success-actions-pro {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.appointment-ticket-shell--pro {
    width: min(860px, 100%);
}

.appointment-pass {
    overflow: hidden;
    border: 1px solid #dfeaf1;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(19, 47, 63, .12);
}

.appointment-pass-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 26px;
    color: #fff;
    background: linear-gradient(135deg, #112836 0%, #254d64 100%);
}

.appointment-pass-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.appointment-pass-logo {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.06);
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.appointment-pass-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.appointment-pass-brand-copy small,
.appointment-pass-brand-copy strong {
    display: block;
}

.appointment-pass-brand-copy small {
    margin-bottom: 6px;
    color: #a7d6f2;
}

.appointment-pass-brand-copy strong {
    font-size: 22px;
    line-height: 1.7;
}

.appointment-pass-head-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.appointment-pass-chip {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-weight: 800;
}

.appointment-pass-subchip {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.9);
    font-size: 12px;
}

.appointment-pass-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.05fr);
    align-items: stretch;
    gap: 0;
    padding: 20px 22px;
    background: #f8fbfd;
    border-bottom: 1px dashed #d9e8f0;
}

.appointment-pass-hero-divider {
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, #dfeaf1 16%, #dfeaf1 84%, transparent 100%);
}

.appointment-pass-number-block,
.appointment-pass-schedule {
    padding: 8px 18px;
    text-align: center;
}

.appointment-pass-number-block span,
.appointment-pass-schedule span {
    display: block;
    color: #4687ac;
    font-size: 12px;
}

.appointment-pass-number-block strong {
    display: block;
    margin-top: 10px;
    color: #4393c1;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: .05em;
}

.appointment-pass-schedule strong {
    display: block;
    margin: 8px 0 6px;
    color: #112835;
    font-size: clamp(24px, 2.9vw, 32px);
}

.appointment-pass-schedule b {
    display: block;
    color: #21465c;
    font-size: 18px;
}

.appointment-pass-schedule b em {
    color: #5aa9d6;
    font-style: normal;
    margin: 0 6px;
}

.appointment-pass-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 22px 0;
}

.appointment-pass-highlights article {
    padding: 14px 16px;
    border: 1px solid #e4eef4;
    border-radius: 18px;
    background: #fff;
}

.appointment-pass-highlights span,
.appointment-pass-details span,
.appointment-pass-note span {
    display: block;
    margin-bottom: 6px;
    color: #4889af;
    font-size: 12px;
}

.appointment-pass-highlights strong,
.appointment-pass-details strong {
    color: #102734;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.8;
}

.appointment-pass-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px 22px;
}

.appointment-pass-details > div {
    padding: 16px 18px;
    border: 1px solid #e4eef4;
    border-radius: 18px;
    background: #fff;
}

.appointment-pass-note {
    margin: 0 22px 18px;
    padding: 16px 18px;
    border: 1px solid #e4eef4;
    border-radius: 18px;
    background: #f8fbfd;
}

.appointment-pass-note p {
    margin: 0;
    color: #1c4359;
    line-height: 1.9;
}

.appointment-pass-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 22px 22px;
    border-top: 1px dashed #d9e8f0;
    background: #fff;
}

.appointment-pass-foot strong {
    display: block;
    margin-bottom: 6px;
    color: #112836;
}

.appointment-pass-foot p {
    margin: 0;
    color: #4687ac;
    line-height: 1.8;
}

.appointment-pass-foot-tag {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    padding: 12px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #edf4f8 0%, #e6f1f7 100%);
    color: #3f7c9f;
    font-weight: 900;
}

.ticket-actions--pro {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ticket-action.ghost {
    background: transparent;
    border: 1px solid #cbdfea;
    color: #356683;
}

@media (max-width: 860px) {
    .success-pass-main,
    .success-pass-grid,
    .success-actions-pro,
    .appointment-pass-highlights,
    .appointment-pass-details,
    .ticket-actions--pro {
        grid-template-columns: 1fr;
    }

    .appointment-pass-hero {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .appointment-pass-hero-divider {
        display: none;
    }

    .appointment-pass-head,
    .appointment-pass-foot,
    .success-pass-preview > header {
        flex-direction: column;
        align-items: stretch;
    }

    .appointment-pass-head-side {
        align-items: flex-start;
    }
}

@media print {
    .appointment-pass {
        border-radius: 18px;
        box-shadow: none;
    }
}


/* Appointment ticket compact corrections v1.4.19 */
.success-secondary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.success-secondary-actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #d2e3ed;
    border-radius: 14px;
    color: #214960;
    background: #f6fafc;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.success-secondary-actions a:hover {
    transform: translateY(-2px);
    border-color: #5a9ec5;
    background: #edf5f9;
}

@media (min-width: 641px) and (max-width: 860px) {
    .success-pass-main,
    .success-pass-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .success-actions-pro {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .appointment-pass-highlights {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .appointment-pass-hero {
        grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1.05fr);
        gap: 0;
    }

    .appointment-pass-hero-divider {
        display: block;
    }

    .appointment-pass-head,
    .appointment-pass-foot,
    .success-pass-preview > header {
        flex-direction: row;
        align-items: center;
    }

    .appointment-pass-head-side {
        align-items: flex-end;
    }
}

@media (max-width: 640px) {
    .appointment-ticket-page {
        padding: 16px 10px;
    }

    .appointment-pass {
        border-radius: 22px;
    }

    .appointment-pass-head {
        padding: 18px;
    }

    .appointment-pass-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
        border-radius: 18px;
    }

    .appointment-pass-brand-copy strong {
        font-size: 18px;
    }

    .appointment-pass-number-block strong {
        font-size: 23px;
    }

    .appointment-pass-highlights,
    .appointment-pass-details,
    .success-pass-main,
    .success-pass-grid,
    .success-actions-pro,
    .ticket-actions--pro,
    .success-secondary-actions {
        grid-template-columns: 1fr;
    }

    .appointment-pass-foot-tag {
        min-width: 100%;
    }
}


/* Compact print ticket v1.4.20 */
.appointment-print-card {
    display: none;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 14mm;
    }

    html,
    body {
        width: 100%;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    body * {
        visibility: hidden !important;
    }

    .appointment-ticket-page,
    .appointment-ticket-page * {
        visibility: visible !important;
    }

    .appointment-ticket-page {
        position: static !important;
        inset: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
    }

    .appointment-ticket-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

    .appointment-pass,
    .ticket-actions,
    .ticket-screen-only {
        display: none !important;
    }

    .appointment-print-card {
        width: 112mm;
        display: block !important;
        margin: 10mm auto 0;
        overflow: hidden;
        border: 1px solid #c6dbe8;
        border-radius: 5mm;
        background: #ffffff;
        color: #102734;
        box-shadow: none !important;
        break-inside: avoid;
        page-break-inside: avoid;
        font-family: Arial, Tahoma, sans-serif;
    }

    .appointment-print-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8mm;
        padding: 6mm 7mm;
        color: #ffffff;
        background: #143142 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .appointment-print-card-head span,
    .appointment-print-card-head strong {
        display: block;
    }

    .appointment-print-card-head span {
        margin-bottom: 1.5mm;
        color: #a0d3f0;
        font-size: 9pt;
    }

    .appointment-print-card-head strong {
        font-size: 14pt;
        line-height: 1.5;
    }

    .appointment-print-card-head b {
        padding: 2.2mm 4mm;
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 999px;
        background: #1d445a !important;
        color: #ffffff;
        font-size: 9pt;
        white-space: nowrap;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .appointment-print-card-primary {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3mm;
        padding: 5mm 6mm;
        border-bottom: 1px dashed #ccdfea;
        background: #f7fbfd !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .appointment-print-card-primary > div {
        padding: 4mm;
        border: 1px solid #dae6ed;
        border-radius: 3mm;
        text-align: center;
        background: #ffffff !important;
    }

    .appointment-print-card-primary span,
    .appointment-print-card-table span,
    .appointment-print-card-note span {
        display: block;
        margin-bottom: 1.5mm;
        color: #488bb2;
        font-size: 8.5pt;
    }

    .appointment-print-card-primary strong {
        display: block;
        color: #3c8bb8;
        font-size: 13pt;
        line-height: 1.5;
    }

    .appointment-print-card-primary small {
        display: block;
        margin-top: 1.2mm;
        color: #26485c;
        font-size: 9pt;
        font-weight: 700;
    }

    .appointment-print-card-table {
        width: 100%;
        border-collapse: collapse;
    }

    .appointment-print-card-table td {
        width: 50%;
        padding: 4mm 5mm;
        vertical-align: top;
        border-bottom: 1px solid #e6eef2;
    }

    .appointment-print-card-table td:first-child {
        border-left: 1px solid #e6eef2;
    }

    .appointment-print-card-table strong {
        display: block;
        color: #102734;
        font-size: 10pt;
        line-height: 1.7;
    }

    .appointment-print-card-note {
        padding: 4mm 5mm;
        border-bottom: 1px solid #e6eef2;
    }

    .appointment-print-card-note p {
        margin: 0;
        color: #294e64;
        font-size: 9pt;
        line-height: 1.7;
    }

    .appointment-print-card footer {
        padding: 4mm 6mm;
        text-align: center;
        color: #3f7899;
        background: #f7fbfd !important;
        font-size: 8.5pt;
        line-height: 1.8;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}


/* Landing account access and hero cleanup — v1.4.22 */
.bf-landing-compact .bf-landing-nav-links .bf-landing-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255,255,255,.055);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.bf-landing-compact .bf-landing-nav-links .bf-landing-auth-link:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 182, 229,.48);
    background: rgba(74, 156, 204,.16);
}

.bf-landing-compact .bf-landing-hero-copy h1 {
    margin-top: 0;
}

@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-nav-links .bf-landing-auth-link {
        display: none !important;
    }
}


/* Landing desktop account action placement — v1.4.23 */
.bf-landing-compact .bf-landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bf-landing-compact .bf-landing-nav-logo-small {
    position: static;
    inset: auto;
    flex: 0 0 112px;
}

.bf-landing-compact .bf-landing-nav-links {
    position: static;
    width: auto;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding-inline: 20px;
}

.bf-landing-compact .bf-landing-nav-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta {
    position: static;
    inset: auto;
    min-width: 148px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    color: #fff;
    background: rgba(255,255,255,.075);
    text-align: center;
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.13);
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 16px;
    border: 1px solid rgba(100, 182, 229,.34);
    border-radius: 999px;
    color: #fff;
    background: rgba(74, 156, 204,.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link:hover {
    transform: translateY(-2px);
    border-color: rgba(100, 182, 229,.6);
    background: rgba(74, 156, 204,.22);
}

.bf-landing-auth-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: #b3dcf4;
}

.bf-landing-auth-icon svg,
.bf-mobile-login-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 1180px) {
    .bf-landing-compact .bf-landing-nav {
        gap: 14px;
    }

    .bf-landing-compact .bf-landing-nav-links {
        gap: 20px;
        padding-inline: 8px;
    }

    .bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta {
        min-width: 132px;
        padding-inline: 16px;
    }

    .bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link {
        padding-inline: 13px;
    }
}

@media (max-width: 1023px) {
    .bf-landing-compact .bf-landing-nav-actions,
    .bf-landing-compact .bf-landing-nav-links .bf-landing-auth-link {
        display: none !important;
    }
}


/* Header action polish — v1.4.24 */
.bf-landing-compact .bf-landing-nav-actions a,
.bf-landing-compact .bf-landing-nav-actions a:hover,
.bf-landing-compact .bf-landing-nav-actions a:focus,
.bf-landing-compact .bf-landing-nav-actions a:visited {
    text-decoration: none !important;
}



/* Account icon parity — v1.4.25 */
@media (max-width: 1023px) {
    .bf-mobile-login-icon {
        color: #b3dcf4;
        background: rgba(74, 156, 204, .14);
        border: 1px solid rgba(100, 182, 229, .30);
        box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    }

    .bf-mobile-login-icon svg {
        width: 24px;
        height: 24px;
        display: block !important;
    }
}


/* Smooth desktop header actions — v1.4.26 */
.bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta,
.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link {
    will-change: transform, background-color, border-color, box-shadow;
    transition:
        transform .32s cubic-bezier(.22, 1, .36, 1),
        background-color .32s ease,
        border-color .32s ease,
        box-shadow .32s ease,
        color .32s ease;
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-icon {
    transition:
        transform .32s cubic-bezier(.22, 1, .36, 1),
        color .32s ease;
}

@media (hover: hover) and (pointer: fine) {
    .bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,.34);
        background: rgba(255,255,255,.115);
        box-shadow: 0 8px 22px rgba(4, 15, 21, .12), inset 0 1px 0 rgba(255,255,255,.08);
    }

    .bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link:hover {
        transform: translateY(-1px);
        border-color: rgba(100, 182, 229,.5);
        background: rgba(74, 156, 204,.19);
        box-shadow: 0 8px 22px rgba(4, 15, 21, .12), inset 0 1px 0 rgba(255,255,255,.08);
    }

    .bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link:hover .bf-landing-auth-icon {
        transform: translateX(-2px) scale(1.03);
        color: #d8edf9;
    }
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta:active,
.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link:active {
    transform: translateY(0) scale(.985);
    transition-duration: .12s;
}

.bf-landing-compact .bf-landing-nav-actions .bf-landing-nav-cta:focus-visible,
.bf-landing-compact .bf-landing-nav-actions .bf-landing-auth-link:focus-visible {
    outline: 3px solid rgba(179, 220, 244,.22);
    outline-offset: 3px;
}


/* Public booking without service/trainer selection — v1.4.27 */
.booking-assignment-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px 17px;
    border: 1px solid rgba(67, 149, 197, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(244, 249, 252, .96), rgba(240, 246, 250, .82));
}

.booking-assignment-note > span {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #53a3d1, #2c5973);
    font-weight: 900;
}

.booking-assignment-note strong,
.booking-assignment-note small {
    display: block;
}

.booking-assignment-note strong {
    color: #142f3e;
    font-size: 14px;
}

.booking-assignment-note small {
    margin-top: 4px;
    color: #4687ad;
    line-height: 1.7;
}


/* Ticket header without logo — v1.4.28 */
.appointment-pass-brand {
    min-width: 0;
}

.appointment-pass-brand-copy {
    min-width: 0;
}

.appointment-pass-brand-copy strong {
    overflow-wrap: anywhere;
}

.appointment-pass-highlights:has(article:only-child) {
    grid-template-columns: 1fr;
}

@supports not selector(:has(*)) {
    .appointment-pass-highlights {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}


/* Booking hero cleanup v1.4.30 */
.booking-body .booking-tenant-name { display: none; }


/* ==========================================================================\n   Swift Fit Appointments Admin Dashboard v1.5.0\n   ========================================================================== */
.appointments-admin-v2 {
    --admin-purple: #101820;
    --admin-purple-dark: #080D11;
    --admin-magenta: #0D93DC;
    --admin-magenta-soft: #EAF7FD;
    --admin-lavender: #F3F8FB;
    --admin-border: #DCE7ED;
    --admin-text: #101820;
    --admin-muted: #6D7883;
    padding: 30px;
    background:
        radial-gradient(circle at 92% 3%, rgba(65, 152, 202, .09), transparent 22%),
        linear-gradient(180deg, #f9fbfc 0%, #f7f8fa 100%);
}

.appointments-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 18px;
    padding: 28px 30px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(circle at 10% 20%, rgba(78, 163, 213, .24), transparent 28%),
        linear-gradient(135deg, var(--admin-purple-dark) 0%, var(--admin-purple) 70%, #234f68 100%);
    box-shadow: 0 22px 55px rgba(21, 55, 75, .15);
}

.appointments-admin-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    left: -90px;
    bottom: -165px;
    border: 58px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

.appointments-admin-hero-copy,
.appointments-admin-hero-actions { position: relative; z-index: 1; }

.appointments-admin-tenant {
    display: inline-flex;
    margin-bottom: 8px;
    color: #a7d6f1;
    font-size: 13px;
    font-weight: 900;
}

.appointments-admin-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.2;
    font-weight: 900;
}

.appointments-admin-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255,255,255,.72);
    line-height: 1.8;
}

.appointments-admin-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.appointments-admin-v2 .btn-appt {
    gap: 9px;
    min-height: 46px;
    border-radius: 14px;
    transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.appointments-admin-v2 .btn-appt svg,
.appointments-admin-v2 .icon-action svg,
.appointments-tabs-pro svg,
.assignment-alert-pro svg,
.appt-stats-pro svg,
.input-with-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.appointments-admin-v2 .btn-appt:hover { transform: translateY(-1px); }

.btn-appt.primary-pro {
    color: #fff;
    background: linear-gradient(135deg, #4ba0d2 0%, #327da8 100%);
    box-shadow: 0 12px 26px rgba(62, 147, 196, .23);
}

.btn-appt.primary-pro:hover { box-shadow: 0 16px 32px rgba(62, 147, 196, .3); }

.btn-appt.secondary-pro {
    color: #fff;
    border-color: rgba(255,255,255,.16);
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(8px);
}

.btn-appt.secondary-pro:hover { background: rgba(255,255,255,.14); }
.btn-appt.ghost-pro { border-color: var(--admin-border); color: #356581; background: #fff; }
.btn-appt.ghost-pro:hover { border-color: #b9d3e2; background: #f7fafc; }

.appointments-tabs-pro {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    margin-bottom: 18px;
    border-color: var(--admin-border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 54, 72, .045);
}

.appointments-tabs-pro a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 9px 14px;
    color: #3b7190;
    border-radius: 13px;
    transition: .2s ease;
}

.appointments-tabs-pro a:hover { color: var(--admin-purple); background: #f5f9fb; }
.appointments-tabs-pro a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--admin-purple-dark), var(--admin-purple));
    box-shadow: 0 9px 22px rgba(22, 57, 77, .18);
}

.assignment-alert-pro {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid #cfe5f1;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9fcfe 0%, #f1f9fd 100%);
}

.assignment-alert-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #3888b6;
    background: #dfeff8;
}

.assignment-alert-pro strong,
.assignment-alert-pro span { display: block; }
.assignment-alert-pro strong { margin-bottom: 4px; color: #20485f; }
.assignment-alert-pro span { color: #4789af; font-size: 13px; }
.assignment-alert-pro > a {
    padding: 9px 14px;
    border-radius: 11px;
    color: #fff;
    background: #327da8;
    text-decoration: none;
    font-weight: 800;
}

.appt-stats-pro {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.appt-stats-pro article {
    min-height: 138px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    border-color: var(--admin-border);
    border-radius: 20px;
    box-shadow: 0 12px 34px rgba(23, 54, 72, .055);
}

.appt-stats-pro article::after {
    content: "";
    position: absolute;
    width: 90px;
    height: 90px;
    left: -35px;
    bottom: -45px;
    border-radius: 50%;
    background: currentColor;
    opacity: .035;
}

.appt-stats-pro .stat-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 14px;
}

.appt-stats-pro article > div > span {
    margin: 0 0 5px;
    color: #3f799a;
    font-size: 13px;
}

.appt-stats-pro article strong {
    display: block;
    color: var(--admin-text);
    font-size: 34px;
    line-height: 1.1;
}

.appt-stats-pro article small { display: block; margin-top: 8px; color: #998c9e; font-size: 11px; }
.stat-today .stat-icon { color: #3c7393; background: #e6f0f5; }
.stat-pending .stat-icon { color: #a06d00; background: #fff3d4; }
.stat-confirmed .stat-icon { color: #19785b; background: #e6f5ee; }
.stat-unassigned .stat-icon { color: #3787b5; background: #e4f1f9; }
.stat-completed .stat-icon { color: #356ca8; background: #e9f2fb; }

.filters-panel-pro { margin-bottom: 18px; border-color: var(--admin-border); border-radius: 22px; overflow: hidden; }
.filters-panel-head,
.table-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e7eef2;
    background: #fbfcfd;
}

.filters-panel-head span,
.filters-panel-head strong,
.table-panel-head span,
.table-panel-head strong { display: block; }
.filters-panel-head > div > span,
.table-panel-head > div > span { margin-bottom: 4px; color: #3a87b4; font-size: 12px; font-weight: 900; }
.filters-panel-head strong,
.table-panel-head strong { color: var(--admin-text); font-size: 18px; }
.active-filter-count {
    padding: 7px 11px;
    border-radius: 999px;
    color: #33769d !important;
    background: #e7f2f8;
    font-size: 11px !important;
}

.appt-filters-pro {
    grid-template-columns: minmax(250px, 1.6fr) repeat(6, minmax(135px, 1fr));
    padding: 18px 20px 20px;
    margin: 0;
    background: #fff;
}

.appointments-admin-v2 .field label { color: #305d77; }
.appointments-admin-v2 .field input,
.appointments-admin-v2 .field select,
.appointments-admin-v2 .field textarea,
.appointments-admin-v2 .inline-status input,
.appointments-admin-v2 .inline-status select {
    min-height: 46px;
    border-color: #d3e3ed;
    border-radius: 13px;
    background: #fff;
}

.appointments-admin-v2 .field input:focus,
.appointments-admin-v2 .field select:focus,
.appointments-admin-v2 .field textarea:focus {
    border-color: #5898bd;
    box-shadow: 0 0 0 4px rgba(73, 147, 190, .10);
}

.search-field-pro { grid-column: span 2; }
.input-with-icon { position: relative; }
.input-with-icon svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #72a7c6;
    pointer-events: none;
}
.input-with-icon input { padding-right: 44px !important; }
.filter-actions-pro { grid-column: 1 / -1; justify-content: flex-start; padding-top: 4px; }

.table-panel-pro { border-color: var(--admin-border); border-radius: 22px; overflow: hidden; }
.table-panel-head small { color: #93869a; }
.appt-table-pro { min-width: 1180px; }
.appt-table-pro th {
    padding: 15px 18px;
    color: #796c80;
    background: #f7fafb;
    border-color: #e3ebf0;
    font-size: 11px;
    letter-spacing: .02em;
}
.appt-table-pro td {
    padding: 17px 18px;
    border-color: #e9eff2;
    vertical-align: middle;
}
.appt-table-pro tbody tr { transition: background .18s ease, box-shadow .18s ease; }
.appt-table-pro tbody tr:hover { background: #fafcfd; }
.appt-table-pro .needs-assignment-row { background: #fbfdfe; }
.appt-table-pro .needs-assignment-row:hover { background: #f7fbfe; }

.booking-number-pro {
    display: inline-flex;
    padding: 8px 11px;
    border-radius: 10px;
    color: #275a78;
    background: #eaf2f7;
    font-weight: 900;
    direction: ltr;
}

.customer-cell-pro { display: flex; align-items: center; gap: 11px; }
.customer-avatar-pro {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, #244e67, #4595c4);
    font-weight: 900;
}
.customer-cell-pro strong,
.customer-cell-pro small { display: block; }
.customer-cell-pro small { margin-top: 4px !important; direction: ltr; text-align: right; }

.assignment-needed-cell {
    min-width: 150px;
    padding: 10px 12px;
    border: 1px solid #cfe4f0;
    border-radius: 13px;
    background: #f6fbfe;
}
.assignment-needed-cell span,
.assignment-needed-cell small,
.assignment-needed-cell a { display: block; }
.assignment-needed-cell span { color: #327ba5; font-weight: 900; }
.assignment-needed-cell small { margin: 3px 0 7px !important; color: #5594b9; }
.assignment-needed-cell a { color: #285e7e; font-size: 12px; font-weight: 900; text-decoration: none; }
.assignment-cell-pro strong,
.assignment-cell-pro small,
.schedule-cell-pro strong,
.schedule-cell-pro small { display: block; }
.assignment-cell-pro small,
.schedule-cell-pro small { margin-top: 5px !important; }
.schedule-cell-pro strong { white-space: nowrap; }

.source-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}
.source-public { color: #34637e; background: #eaf2f6; }
.source-admin { color: #356078; background: #eaf3f8; }

.row-actions-pro { flex-wrap: nowrap; }
.row-actions-pro .icon-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    padding: 7px 9px;
    border-radius: 10px;
    transition: .18s ease;
}
.row-actions-pro .icon-action svg { width: 15px; height: 15px; }
.row-actions-pro .icon-action:hover { transform: translateY(-1px); }
.edit-action { color: #285b78; background: #e9f1f6; }
.status-action { color: #315d77; background: #ebf3f7; }

.inline-status-pro {
    min-width: 230px;
    padding: 13px;
    border: 1px solid #dce6eb;
    background: #fafcfd;
    box-shadow: 0 12px 28px rgba(23, 54, 72, .08);
}
.inline-status-pro strong { color: #294e64; font-size: 12px; }
.inline-status-pro button {
    min-height: 38px;
    background: linear-gradient(135deg, #234f68, #327ba5);
}

.empty-state-pro { padding: 58px 20px !important; }
.empty-state-pro span,
.empty-state-pro strong,
.empty-state-pro a { display: block; }
.empty-state-pro span { color: #4993be; font-size: 13px; }
.empty-state-pro strong { margin: 8px 0 12px; color: #294e64; font-size: 18px; }
.empty-state-pro a { color: #2f698b; font-weight: 900; text-decoration: none; }

.appointments-admin-v2 .appt-pagination { border-color: #e6edf1; background: #fbfcfd; }

@media (max-width: 1400px) {
    .appt-stats-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .appt-filters-pro { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .search-field-pro { grid-column: span 2; }
}

@media (max-width: 980px) {
    .appointments-admin-v2 { padding: 20px; }
    .appointments-admin-hero { align-items: flex-start; flex-direction: column; }
    .appointments-admin-hero-actions { width: 100%; }
    .appointments-admin-hero-actions .btn-appt { flex: 1; }
    .appointments-tabs-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appt-stats-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .appt-filters-pro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-field-pro { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .appointments-admin-v2 { padding: 14px; }
    .appointments-admin-hero { padding: 23px 20px; border-radius: 20px; }
    .appointments-admin-hero h1 { font-size: 29px; }
    .appointments-admin-hero-actions { flex-direction: column; }
    .appointments-admin-hero-actions .btn-appt { width: 100%; }
    .appointments-tabs-pro { grid-template-columns: 1fr 1fr; gap: 6px; }
    .appointments-tabs-pro a { padding-inline: 8px; font-size: 12px; }
    .assignment-alert-pro { grid-template-columns: auto 1fr; }
    .assignment-alert-pro > a { grid-column: 1 / -1; text-align: center; }
    .appt-stats-pro { grid-template-columns: 1fr; }
    .appt-stats-pro article { min-height: 112px; }
    .appt-filters-pro { grid-template-columns: 1fr; }
    .search-field-pro,
    .filter-actions-pro { grid-column: 1; }
    .filter-actions-pro { flex-direction: column; }
    .filter-actions-pro .btn-appt { width: 100%; }
    .filters-panel-head,
    .table-panel-head { align-items: flex-start; flex-direction: column; }
    .table-scroll { overflow: visible; }
    .appt-table-pro,
    .appt-table-pro tbody,
    .appt-table-pro tr,
    .appt-table-pro td { display: block; width: 100%; min-width: 0; }
    .appt-table-pro thead { display: none; }
    .appt-table-pro tbody { padding: 12px; }
    .appt-table-pro tbody tr {
        margin-bottom: 12px;
        padding: 14px;
        border: 1px solid #dfeaf0;
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 9px 24px rgba(23, 54, 71, .05);
    }
    .appt-table-pro td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
        align-items: center;
        padding: 11px 0;
        border-bottom: 1px solid #ebf0f3;
    }
    .appt-table-pro td:last-child { border-bottom: 0; }
    .appt-table-pro td::before {
        content: attr(data-label);
        color: #84758b;
        font-size: 11px;
        font-weight: 800;
    }
    .row-actions-pro { flex-wrap: wrap; }
    .inline-status-pro { min-width: 0; grid-column: 1 / -1; }
    .appt-pagination { overflow-x: auto; }
}

/* =========================================================
   Swift Fit appointments dashboard — unified admin v1.6.0
   ========================================================= */
.appointments-admin-v3 {
    --admin-purple: #101820;
    --admin-purple-dark: #080D11;
    --admin-pink: #0D93DC;
    --admin-pink-soft: #EAF7FD;
    --admin-bg: #F5F8FA;
    --admin-card: #FFFFFF;
    --admin-text: #101820;
    --admin-muted: #6D7883;
    --admin-border: #DCE7ED;
    min-height: 100vh;
    padding: 26px;
    background:
        radial-gradient(circle at 2% 0%, rgba(68, 152, 201, .07), transparent 22%),
        linear-gradient(180deg, #f9fbfc 0%, #f3f7f9 100%);
}

.appointments-admin-v3 svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.appointments-admin-v3 .appointments-admin-hero {
    margin-bottom: 18px;
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 115%, rgba(76, 166, 218, .23), transparent 35%),
        linear-gradient(135deg, #102735 0%, #204960 100%);
    box-shadow: 0 24px 60px rgba(23, 55, 73, .15);
}

.appointments-admin-v3 .appointments-admin-hero--compact {
    min-height: 176px;
    padding: 30px 34px;
}

.appointments-admin-v3 .appointments-admin-hero h1 {
    margin: 7px 0 8px;
    color: #fff;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.25;
}

.appointments-admin-v3 .appointments-admin-hero p {
    max-width: 780px;
    color: rgba(255, 255, 255, .7);
    line-height: 1.9;
}

.appointments-admin-v3 .appointments-admin-tenant {
    color: #9bd2f2;
}

.appointments-admin-nav-shell {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.appointments-admin-nav-shell .appointments-tabs-pro {
    flex: 1 1 auto;
    width: auto;
    max-width: 800px;
    margin: 0;
}

.appointments-dashboard-back {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid #c4dae7;
    border-radius: 17px;
    color: #2a536a;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 56, 74, .055);
    text-decoration: none;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.appointments-dashboard-back:hover {
    transform: translateY(-1px);
    border-color: #96bdd4;
    background: #f9fcfd;
    box-shadow: 0 15px 34px rgba(34, 75, 99, .1);
}

.appointments-dashboard-back svg {
    width: 21px;
    height: 21px;
    color: #4390bd;
}

.appointments-admin-v3 .appointments-tabs-pro {
    border-color: var(--admin-border);
    border-radius: 18px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 10px 28px rgba(23, 55, 74, .045);
}

.appointments-admin-v3 .appointments-tabs-pro a {
    min-height: 44px;
    gap: 8px;
    border-radius: 13px;
}

.appointments-admin-v3 .appointments-tabs-pro a.active {
    background: linear-gradient(135deg, #1d445b 0%, #2e617f 100%);
    box-shadow: 0 9px 22px rgba(27, 68, 91, .18);
}

.appointments-admin-v3 .appt-panel {
    border-color: var(--admin-border);
    border-radius: 24px;
    box-shadow: 0 16px 45px rgba(22, 52, 70, .055);
}

/* Professional admin inputs */
.appointments-admin-v3 .field {
    gap: 8px;
}

.appointments-admin-v3 .field label {
    color: #2e5972;
    font-size: 12px;
    font-weight: 900;
}

.appointments-admin-v3 .field input,
.appointments-admin-v3 .field textarea,
.appointments-admin-v3 .inline-status input {
    min-height: 52px;
    border: 1px solid #d3e3ed;
    border-radius: 15px;
    color: #112937;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.appointments-admin-v3 .field textarea {
    min-height: 116px;
    line-height: 1.8;
    resize: vertical;
}

.appointments-admin-v3 .field input:hover,
.appointments-admin-v3 .field textarea:hover {
    border-color: #bdd6e4;
}

.appointments-admin-v3 .field input:focus,
.appointments-admin-v3 .field textarea:focus {
    border-color: #5697bd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 146, 191, .09);
}

.admin-input-wrap {
    position: relative;
}

.admin-input-wrap > svg {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 15px;
    width: 19px;
    height: 19px;
    transform: translateY(-50%);
    color: #77aac7;
    pointer-events: none;
}

.admin-input-wrap > input {
    padding-right: 46px !important;
}

/* Modern selects in dashboard */
.appointments-admin-v3 .modern-select {
    z-index: 10;
}

.appointments-admin-v3 .modern-select.is-open {
    z-index: 120;
}

.appointments-admin-v3 .modern-select-trigger {
    min-height: 54px;
    padding: 6px 9px 6px 12px;
    border: 1px solid #d3e3ed;
    border-radius: 15px;
    background: #fff;
    box-shadow: none;
}

.appointments-admin-v3 .modern-select-trigger:hover:not(:disabled) {
    border-color: #b5d1e1;
    background: #fcfdfe;
}

.appointments-admin-v3 .modern-select-trigger:focus-visible,
.appointments-admin-v3 .modern-select.is-open .modern-select-trigger {
    border-color: #5697bd;
    box-shadow: 0 0 0 4px rgba(67, 146, 191, .09);
}

.appointments-admin-v3 .modern-select-leading {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 12px;
    color: #2f607d;
    background: #eaf2f7;
}

.appointments-admin-v3 .modern-select-leading svg {
    width: 20px;
    height: 20px;
}

.appointments-admin-v3 .modern-select-value strong {
    color: #122a37;
    font-size: 13px;
}

.appointments-admin-v3 .modern-select-value small {
    margin-top: 2px;
    color: #69a1c2;
    font-size: 10px;
}

.appointments-admin-v3 .modern-select-chevron {
    color: #4e90b6;
}

.appointments-admin-v3 .modern-select-menu {
    top: calc(100% + 8px);
    max-height: 330px;
    padding: 8px;
    border: 1px solid #c8dde9;
    border-radius: 17px;
    background: rgba(255,255,255,.99);
    box-shadow: 0 22px 60px rgba(20, 48, 65, .18);
}

.appointments-admin-v3 .modern-select-search {
    margin-bottom: 7px;
    border-color: #dfeaf0;
    border-radius: 12px;
    background: #f8fbfc;
}

.appointments-admin-v3 .modern-select-option {
    min-height: 43px;
    border-radius: 11px;
    color: #2a5167;
}

.appointments-admin-v3 .modern-select-option:hover,
.appointments-admin-v3 .modern-select-option:focus-visible {
    background: #f1f7fa;
    color: #255672;
}

.appointments-admin-v3 .modern-select-option.is-selected {
    color: #fff;
    background: linear-gradient(135deg, #214e68 0%, #3779a0 100%);
}

.appointments-admin-v3 .inline-status-pro .modern-select-trigger {
    min-height: 43px;
}

.appointments-admin-v3 .inline-status-pro .modern-select-leading {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}

/* Appointment editor */
.appointment-editor-pro {
    padding: 0;
    overflow: visible;
}

.appointment-editor-intro {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 20px 24px;
    border-bottom: 1px solid #e5edf1;
    border-radius: 24px 24px 0 0;
    background: #fafcfd;
}

.appointment-editor-icon,
.admin-settings-icon,
.admin-row-icon {
    display: grid;
    place-items: center;
    color: #2d607e;
    background: #e7f0f5;
}

.appointment-editor-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
}

.appointment-editor-intro span,
.appointment-editor-intro strong {
    display: block;
}

.appointment-editor-intro span {
    margin-bottom: 4px;
    color: #3d89b5;
    font-size: 11px;
    font-weight: 900;
}

.appointment-editor-intro strong {
    color: #132e3e;
    font-size: 18px;
}

.form-section-pro {
    padding: 24px;
    border-bottom: 1px solid #e8eef2;
}

.form-section-title-pro {
    margin: 0 0 20px !important;
    padding: 0 0 14px;
    border-bottom: 1px dashed #dbe5ea;
}

.form-section-title-pro > div {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section-title-pro > div > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #24506a, #4390bd);
    font-size: 11px;
    font-weight: 900;
}

.form-section-title-pro strong,
.form-section-title-pro small {
    display: block;
}

.form-section-title-pro strong {
    color: #143040;
    font-size: 17px;
}

.form-section-title-pro small {
    margin-top: 4px;
    color: #8e7e95;
}

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

.form-actions-pro {
    padding: 20px 24px 24px;
    margin: 0;
}

/* Unified settings pages */
.admin-settings-layout-v3 {
    display: grid;
    grid-template-columns: minmax(310px, 390px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.admin-settings-form-v3 {
    position: sticky;
    top: 18px;
    padding: 22px;
    overflow: visible;
}

.admin-settings-form-v3 > * + * {
    margin-top: 15px;
}

.admin-settings-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5edf1;
}

.admin-settings-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 15px;
}

.admin-settings-card-head small,
.admin-settings-card-head strong {
    display: block;
}

.admin-settings-card-head small {
    margin-bottom: 4px;
    color: #3c87b3;
    font-size: 11px;
    font-weight: 900;
}

.admin-settings-card-head strong {
    color: #132c3b;
    font-size: 18px;
}

.admin-mini-grid {
    gap: 12px;
}

.admin-toggle-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid #dfeaf0;
    border-radius: 15px;
    background: #f9fcfd;
    cursor: pointer;
}

.admin-toggle-row > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-toggle-ui {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #c3dae7;
    transition: background .2s ease;
}

.admin-toggle-ui::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 7px rgba(15, 36, 49, .2);
    transition: transform .2s ease;
}

.admin-toggle-row > input:checked + .admin-toggle-ui {
    background: linear-gradient(135deg, #275875, #4797c6);
}

.admin-toggle-row > input:checked + .admin-toggle-ui::after {
    transform: translateX(-18px);
}

.admin-toggle-row strong,
.admin-toggle-row small {
    display: block;
}

.admin-toggle-row strong {
    color: #193c50;
    font-size: 13px;
}

.admin-toggle-row small {
    margin-top: 3px;
    color: #8f8095;
    line-height: 1.6;
}

.admin-list-panel-v3 {
    overflow: hidden;
}

.admin-list-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    border-bottom: 1px solid #e5edf1;
    background: #fafcfd;
}

.admin-list-panel-head span,
.admin-list-panel-head strong {
    display: block;
}

.admin-list-panel-head span {
    margin-bottom: 4px;
    color: #3b88b4;
    font-size: 11px;
    font-weight: 900;
}

.admin-list-panel-head strong {
    color: #132c3b;
    font-size: 18px;
}

.admin-list-panel-head small {
    color: #918397;
}

.admin-table-v3 {
    min-width: 850px;
}

.admin-table-v3 th {
    color: #427ea1;
    background: #f7fafb;
    border-color: #e3ebef;
}

.admin-table-v3 td {
    padding: 17px 16px;
    vertical-align: middle;
    border-color: #e8eef2;
}

.admin-table-v3 tbody tr {
    transition: background .18s ease;
}

.admin-table-v3 tbody tr:hover {
    background: #fafcfd;
}

.admin-primary-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.admin-row-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
}

.admin-row-icon svg {
    width: 18px;
    height: 18px;
}

.admin-row-icon.danger-soft {
    color: #ad4050;
    background: #fff0f2;
}

.admin-primary-cell strong,
.admin-primary-cell small {
    display: block;
}

.admin-primary-cell strong {
    color: #142f3f;
}

.admin-primary-cell small {
    margin-top: 4px !important;
}

.admin-value-chip {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    color: #2b5c78;
    background: #eaf2f7;
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.admin-row-actions {
    flex-wrap: nowrap;
}

.admin-row-actions .icon-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    border-radius: 10px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.admin-row-actions .icon-action svg {
    width: 15px;
    height: 15px;
}

.admin-row-actions .icon-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 7px 16px rgba(21, 50, 67, .08);
}

@media (max-width: 1180px) {
    .admin-settings-layout-v3 {
        grid-template-columns: 1fr;
    }

    .admin-settings-form-v3 {
        position: static;
    }

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

    .appointments-admin-nav-shell {
        align-items: stretch;
        flex-direction: column;
    }

    .appointments-admin-nav-shell .appointments-tabs-pro {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .appointments-admin-v3 {
        padding: 13px;
    }

    .appointments-admin-v3 .appointments-admin-hero--compact {
        min-height: 0;
        padding: 23px 20px;
        border-radius: 21px;
    }

    .appointments-dashboard-back {
        width: 100%;
        min-height: 50px;
    }

    .appointments-admin-nav-shell .appointments-tabs-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid,
    .admin-mini-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid .span-2,
    .admin-form-grid .span-4 {
        grid-column: 1;
    }

    .form-section-pro {
        padding: 19px 16px;
    }

    .form-actions-pro {
        padding: 17px 16px 20px;
        flex-direction: column;
    }

    .form-actions-pro .btn-appt {
        width: 100%;
    }

    .admin-list-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-table-v3,
    .admin-table-v3 tbody,
    .admin-table-v3 tr,
    .admin-table-v3 td {
        display: block;
        width: 100%;
        min-width: 0;
    }

    .admin-table-v3 thead {
        display: none;
    }

    .admin-table-v3 tbody {
        padding: 11px;
    }

    .admin-table-v3 tbody tr {
        margin-bottom: 11px;
        padding: 13px;
        border: 1px solid #dfeaf0;
        border-radius: 17px;
        background: #fff;
        box-shadow: 0 8px 22px rgba(23, 54, 71, .05);
    }

    .admin-table-v3 td {
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #ebf0f3;
    }

    .admin-table-v3 td:last-child {
        border-bottom: 0;
    }

    .admin-table-v3 td::before {
        content: attr(data-label);
        color: #88778e;
        font-size: 11px;
        font-weight: 900;
    }

    .admin-row-actions {
        flex-wrap: wrap;
    }
}

.appointments-admin-v3 .filters-panel-pro { overflow: visible; }
.appointments-admin-v3 .filters-panel-pro .filters-panel-head { border-radius: 22px 22px 0 0; }


/* Admin filter bar alignment v1.6.1 */
@media (min-width: 1201px) {
    .appointments-admin-v3 .appt-filters-pro {
        display: grid;
        grid-template-columns:
            minmax(0, 1.75fr)
            minmax(0, .95fr)
            minmax(0, .95fr)
            minmax(0, 1.08fr)
            minmax(0, 1.08fr)
            minmax(0, 1.08fr)
            minmax(0, 1.12fr)
            minmax(0, 1.18fr);
        align-items: end;
        gap: 12px;
    }

    .appointments-admin-v3 .appt-filters-pro > .field,
    .appointments-admin-v3 .filter-actions-pro {
        min-width: 0;
        grid-column: auto;
    }

    .appointments-admin-v3 .search-field-pro {
        grid-column: auto;
    }

    .appointments-admin-v3 .filter-actions-pro {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        justify-content: flex-end;
        gap: 7px;
        padding: 0;
    }

    .appointments-admin-v3 .filter-actions-label {
        display: block;
        min-height: 17px;
        color: #305d77;
        font-size: 12px;
        font-weight: 800;
        line-height: 1.4;
    }

    .appointments-admin-v3 .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .appointments-admin-v3 .filter-actions-buttons .btn-appt {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding-inline: 8px;
        justify-content: center;
        white-space: nowrap;
        font-size: 12px;
    }

    .appointments-admin-v3 .appt-filters-pro .field > label {
        min-height: 17px;
        margin-bottom: 7px;
        line-height: 1.4;
    }

    .appointments-admin-v3 .appt-filters-pro .modern-select,
    .appointments-admin-v3 .appt-filters-pro .input-with-icon,
    .appointments-admin-v3 .appt-filters-pro input,
    .appointments-admin-v3 .appt-filters-pro select {
        width: 100%;
        min-width: 0;
    }
}

@media (min-width: 1201px) and (max-width: 1450px) {
    .appointments-admin-v3 .appt-filters-pro {
        gap: 9px;
        padding-inline: 14px;
    }

    .appointments-admin-v3 .filter-actions-buttons {
        gap: 6px;
    }

    .appointments-admin-v3 .filter-actions-buttons .btn-appt {
        padding-inline: 5px;
        font-size: 11px;
    }
}

@media (max-width: 1200px) and (min-width: 721px) {
    .appointments-admin-v3 .appt-filters-pro {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .appointments-admin-v3 .search-field-pro {
        grid-column: span 2;
    }

    .appointments-admin-v3 .filter-actions-pro {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .appointments-admin-v3 .filter-actions-label {
        display: block;
        color: #305d77;
        font-size: 12px;
        font-weight: 800;
    }

    .appointments-admin-v3 .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .appointments-admin-v3 .filter-actions-buttons .btn-appt {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }
}

@media (max-width: 720px) {
    .appointments-admin-v3 .filter-actions-pro {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .appointments-admin-v3 .filter-actions-label {
        display: block;
        color: #305d77;
        font-size: 12px;
        font-weight: 800;
    }

    .appointments-admin-v3 .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .appointments-admin-v3 .filter-actions-buttons .btn-appt {
        width: 100%;
        min-height: 46px;
        justify-content: center;
    }
}


/* Admin appointment editor fixes v1.6.2 */
.appointments-admin-v3 .appointment-details-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
}

.appointments-admin-v3 .appointment-details-grid > .field {
    min-width: 0;
}

.appointments-admin-v3 .appointment-details-grid .modern-select-trigger,
.appointments-admin-v3 .appointment-details-grid .admin-input-wrap > input {
    min-height: 54px;
    height: 54px;
}

/* Keep dashboard dropdowns compact and scrollable inside their own panel. */
.appointments-admin-v3 .modern-select-menu {
    max-height: min(330px, calc(100vh - 150px));
    overflow: hidden;
}

.appointments-admin-v3 .modern-select-options {
    max-height: min(245px, calc(100vh - 245px)) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5697bd #edf3f7;
}

.appointments-admin-v3 .modern-select-options::-webkit-scrollbar {
    width: 7px;
}

.appointments-admin-v3 .modern-select-options::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf3f7;
}

.appointments-admin-v3 .modern-select-options::-webkit-scrollbar-thumb {
    border: 2px solid #edf3f7;
    border-radius: 999px;
    background: linear-gradient(180deg, #5697bd, #2a5b78);
}

/* Use only the custom calendar icon in dashboard date fields. */
.appointments-admin-v3 .admin-input-wrap > input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.appointments-admin-v3 .admin-input-wrap > input[type="date"] {
    position: relative;
    padding-left: 14px !important;
}

@media (max-width: 1180px) {
    .appointments-admin-v3 .appointment-details-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .appointments-admin-v3 .appointment-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Appointments dashboard AJAX experience — v1.7.0 */
[data-appointments-ajax-root] {
    position: relative;
    min-height: 320px;
}

.appointments-ajax-loading {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    background: rgba(252, 253, 254, .58);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
}

[data-appointments-ajax-root].is-ajax-loading > .appointments-ajax-loading {
    opacity: 1;
    visibility: visible;
}

.appointments-ajax-loading[hidden] {
    display: none;
}

.appointments-ajax-loading strong {
    color: #183b4f;
    font-size: 14px;
    font-weight: 800;
}

.appointments-ajax-spinner,
.appointments-button-spinner {
    width: 34px;
    height: 34px;
    display: inline-block;
    border: 3px solid rgba(59, 140, 187, .18);
    border-top-color: #3c8ebd;
    border-radius: 50%;
    animation: appointmentsAjaxSpin .72s linear infinite;
}

.appointments-button-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255,255,255,.3);
    border-top-color: #fff;
}

@keyframes appointmentsAjaxSpin {
    to { transform: rotate(360deg); }
}

.appointments-toast-stack {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 100000;
    width: min(390px, calc(100vw - 32px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.appointments-toast {
    display: grid;
    grid-template-columns: 34px 1fr 30px;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid #dfeaf0;
    border-radius: 16px;
    background: rgba(255,255,255,.97);
    box-shadow: 0 18px 50px rgba(21, 50, 66, .16);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: auto;
    transition: opacity .24s ease, transform .24s ease;
    direction: rtl;
}

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

.appointments-toast-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(135deg, #2b607f, #429bcf);
    font-size: 17px;
    font-weight: 900;
}

.appointments-toast.is-error .appointments-toast-icon {
    background: linear-gradient(135deg, #b92e51, #e65f76);
}

.appointments-toast-message {
    color: #142f3f;
    line-height: 1.7;
    font-weight: 700;
}

.appointments-toast button {
    border: 0;
    background: transparent;
    color: #5394b9;
    font-size: 22px;
    cursor: pointer;
}

.appointments-ajax-errors {
    margin-bottom: 18px;
}

.appointments-field-error {
    display: block;
    margin-top: 7px;
    color: #bd315a;
    font-size: 12px;
    font-weight: 700;
}

.appointments-page input.is-invalid,
.appointments-page textarea.is-invalid,
.appointments-page select.is-invalid,
.appointments-page .modern-select.is-invalid .modern-select-trigger {
    border-color: #d64a70 !important;
    box-shadow: 0 0 0 3px rgba(214, 74, 112, .10) !important;
}

.appointments-page button.is-submitting,
.appointments-page .btn-appt.is-submitting {
    cursor: wait;
    opacity: .82;
}

.appointments-page button.is-submitting,
.appointments-page .btn-appt.is-submitting {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

@media (max-width: 640px) {
    .appointments-toast-stack {
        top: 14px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .appointments-ajax-loading,
    .appointments-toast {
        transition: none;
    }

    .appointments-ajax-spinner,
    .appointments-button-spinner {
        animation-duration: 1.3s;
    }
}


/* Compact appointment records and dashboard scrollbar — v1.7.1 */
html:has(.appointments-page) {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #4a9ccc #e7edf1;
}

html:has(.appointments-page)::-webkit-scrollbar {
    width: 13px;
}

html:has(.appointments-page)::-webkit-scrollbar-track {
    background: #e7edf1;
    border-inline: 1px solid rgba(22, 57, 77, .08);
}

html:has(.appointments-page)::-webkit-scrollbar-thumb {
    min-height: 70px;
    border: 3px solid #e7edf1;
    border-radius: 999px;
    background: linear-gradient(180deg, #4a9ccc, #16394d);
}

html:has(.appointments-page)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #62afdc, #102b3a);
}

.appointments-scroll-controls {
    left: 22px;
    right: auto;
}

.appointments-admin-v3 .table-panel-head {
    padding-block: 14px;
}

.appointments-admin-v3 .appt-table-pro th {
    padding: 10px 12px;
    font-size: 10px;
}

.appointments-admin-v3 .appt-table-pro td {
    padding: 9px 12px;
    line-height: 1.35;
}

.appointments-admin-v3 .booking-number-pro {
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 13px;
}

.appointments-admin-v3 .customer-cell-pro {
    gap: 8px;
}

.appointments-admin-v3 .customer-avatar-pro {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 10px;
    font-size: 13px;
}

.appointments-admin-v3 .customer-cell-pro strong,
.appointments-admin-v3 .assignment-cell-pro strong,
.appointments-admin-v3 .schedule-cell-pro strong {
    font-size: 13px;
}

.appointments-admin-v3 .customer-cell-pro small,
.appointments-admin-v3 .assignment-cell-pro small,
.appointments-admin-v3 .schedule-cell-pro small {
    margin-top: 2px !important;
    font-size: 11px;
}

.appointments-admin-v3 .assignment-needed-cell {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.appointments-admin-v3 .assignment-needed-cell span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #f2f9fd;
    color: #327ba5;
    font-size: 11px;
}

.appointments-admin-v3 .assignment-needed-cell small {
    display: none;
}

.appointments-admin-v3 .assignment-needed-cell a {
    display: inline-block;
    margin-top: 4px;
    font-size: 11px;
}

.appointments-admin-v3 .source-badge,
.appointments-admin-v3 .status {
    padding: 5px 8px;
    font-size: 10px;
}

.appointments-admin-v3 .row-actions-pro {
    gap: 5px;
}

.appointments-admin-v3 .row-actions-pro .icon-action {
    min-height: 30px;
    padding: 5px 7px;
    border-radius: 8px;
    font-size: 11px;
}

.appointments-admin-v3 .row-actions-pro .icon-action svg {
    width: 13px;
    height: 13px;
}

@media (max-width: 1023px) {
    .appointments-scroll-controls {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .appointments-admin-v3 .appt-table-pro tbody tr {
        padding: 10px 12px;
    }

    .appointments-admin-v3 .appt-table-pro td {
        padding: 8px 0;
    }
}


/* Inline status confirmation & assignment v1.7.3 */
.inline-status-pro.status-confirmation-form {
    width: min(760px, calc(100vw - 48px));
    max-width: none;
    padding: 20px;
    border: 1px solid #d9e7ef;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(25, 59, 78, .16);
}

.status-form-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #d9e7ef;
}

.status-form-head strong,
.status-form-head small {
    display: block;
}

.status-form-head strong {
    color: #142f3f;
    font-size: 17px;
}

.status-form-head small {
    margin-top: 5px;
    color: #4e90b6;
    line-height: 1.7;
}

.status-form-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid #d9e7ef;
    border-radius: 11px;
    background: #f7fafc;
    color: #346581;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.status-form-close:hover {
    transform: translateY(-1px);
    background: #e8f2f7;
    color: #3584b2;
}

.status-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.status-confirmation-form .field {
    min-width: 0;
}

.status-confirmation-form .modern-select-trigger,
.status-confirmation-form input,
.status-confirmation-form select {
    min-height: 52px;
}

.status-cancel-reason {
    margin-top: 12px;
}

.status-form-note {
    margin-top: 12px;
    padding: 11px 13px;
    border: 1px solid #c7e2f1;
    border-radius: 13px;
    background: #f7fbfe;
    color: #2e7ba7;
    font-size: 13px;
    line-height: 1.7;
}

.status-confirm-button {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #2e6382 0%, #3b91c3 100%);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(45, 108, 145, .2);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.status-confirm-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(45, 108, 145, .26);
    filter: brightness(1.03);
}

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

    .inline-status-pro.status-confirmation-form {
        width: min(100%, calc(100vw - 28px));
    }
}


/* Appointments monthly calendar — v1.8.0 */
.appointments-tabs-pro {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.appointments-admin-nav-shell .appointments-tabs-pro {
    max-width: 980px;
}

.appointments-admin-hero--calendar {
    background:
        radial-gradient(circle at 12% 20%, rgba(91, 180, 232, .22), transparent 24%),
        linear-gradient(135deg, #112d3d 0%, #20485f 100%);
}

.calendar-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.calendar-stat-grid article {
    padding: 18px 20px;
    border: 1px solid #dfeaf0;
    border-radius: 20px;
    background: linear-gradient(180deg, #fff 0%, #f9fcfd 100%);
    box-shadow: 0 12px 34px rgba(25, 59, 78, .05);
}

.calendar-stat-grid span {
    display: block;
    margin-bottom: 8px;
    color: #488ab1;
    font-size: 13px;
}

.calendar-stat-grid strong {
    display: block;
    color: #132e3e;
    font-size: 30px;
}

.calendar-filter-panel {
    padding: 18px;
    margin-bottom: 18px;
}

.calendar-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(220px, .9fr);
    gap: 12px;
    align-items: end;
}

.calendar-filter-form .field {
    min-width: 0;
}

.calendar-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.calendar-filter-actions .btn-appt {
    width: 100%;
    min-height: 52px;
}

.appointment-calendar-panel {
    overflow: hidden;
    padding: 0;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 170px;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid #e3ebf0;
    background: linear-gradient(180deg, #fff 0%, #fafcfd 100%);
}

.calendar-nav-button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid #cddfea;
    border-radius: 14px;
    color: #2a536b;
    background: #fff;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.calendar-nav-button:hover {
    transform: translateY(-1px);
    border-color: #9bc0d6;
    box-shadow: 0 10px 24px rgba(29, 68, 91, .09);
}

.calendar-nav-button span {
    color: #469aca;
    font-size: 20px;
}

.calendar-current-month {
    text-align: center;
}

.calendar-current-month span,
.calendar-current-month strong {
    display: block;
}

.calendar-current-month span {
    margin-bottom: 3px;
    color: #8a788f;
    font-size: 12px;
}

.calendar-current-month strong {
    color: #122b39;
    font-size: 23px;
}

.calendar-current-month a {
    display: inline-flex;
    margin-top: 5px;
    color: #3d8ebd;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.appointment-calendar-desktop {
    overflow-x: auto;
}

.calendar-weekdays,
.calendar-month-grid {
    min-width: 1120px;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays {
    border-bottom: 1px solid #e3ebf0;
    background: #f6f9fb;
}

.calendar-weekdays span {
    padding: 12px 8px;
    text-align: center;
    color: #386c8a;
    font-size: 12px;
    font-weight: 900;
    border-left: 1px solid #e3ebf0;
}

.calendar-weekdays span:last-child {
    border-left: 0;
}

.calendar-day {
    min-height: 168px;
    padding: 10px;
    border-left: 1px solid #e6edf1;
    border-bottom: 1px solid #e6edf1;
    background: #fff;
}

.calendar-day:nth-child(7n) {
    border-left: 0;
}

.calendar-day.is-outside {
    background: #f8fafb;
    opacity: .58;
}

.calendar-day.is-today {
    box-shadow: inset 0 0 0 2px #4a9ecf;
    background: #fbfdfe;
}

.calendar-day > header {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.calendar-day > header a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #173648;
    text-decoration: none;
}

.calendar-day > header a > span {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 900;
}

.calendar-day.is-today > header a > span {
    color: #fff;
    background: linear-gradient(135deg, #2a5f7d, #469ed1);
}

.calendar-day > header small {
    color: #4092c2;
    font-size: 10px;
    font-weight: 900;
}

.calendar-day > header b {
    min-width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #2d5e7a;
    background: #e8f0f5;
    font-size: 11px;
}

.calendar-day-events {
    display: grid;
    gap: 6px;
}

.calendar-event {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "time name"
        "time meta";
    column-gap: 7px;
    padding: 8px 9px;
    border: 1px solid #dfeaf0;
    border-radius: 12px;
    color: #193c51;
    background: #f8fbfd;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.calendar-event:hover {
    transform: translateY(-1px);
    border-color: #a8c8db;
    box-shadow: 0 8px 18px rgba(28, 65, 87, .08);
}

.calendar-event::before {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    bottom: 8px;
    width: 3px;
    border-radius: 99px;
    background: #4380a4;
}

.calendar-event.status-pending::before { background: #e2ad32; }
.calendar-event.status-confirmed::before { background: #308fc6; }
.calendar-event.status-arrived::before { background: #7d62c8; }
.calendar-event.status-completed::before { background: #49a876; }
.calendar-event.status-cancelled::before,
.calendar-event.status-no_show::before { background: #d75b65; }
.calendar-event.needs-assignment { background: #f9fcfe; border-color: #c9e1ef; }

.calendar-event-time {
    grid-area: time;
    align-self: center;
    color: #3e7a9c;
    font-size: 11px;
    font-weight: 900;
}

.calendar-event strong {
    grid-area: name;
    overflow: hidden;
    color: #132e3e;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event small {
    grid-area: meta;
    overflow: hidden;
    color: #4e90b7;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-more-link {
    display: inline-flex;
    justify-content: center;
    padding: 5px 8px;
    color: #3a7ba1;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.appointment-calendar-mobile {
    display: none;
}

.calendar-agenda-day {
    overflow: hidden;
    border: 1px solid #dfeaf0;
    border-radius: 18px;
    background: #fff;
}

.calendar-agenda-day > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f6f9fb;
    border-bottom: 1px solid #e4ecf1;
}

.calendar-agenda-day > header span,
.calendar-agenda-day > header strong {
    display: block;
}

.calendar-agenda-day > header span {
    margin-bottom: 3px;
    color: #3d8fbf;
    font-size: 11px;
}

.calendar-agenda-day > header strong {
    color: #122c3b;
}

.calendar-agenda-day > header b {
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #245069, #3b88b5);
}

.calendar-agenda-events {
    display: grid;
}

.calendar-agenda-event {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid #e8eff3;
}

.calendar-agenda-event:last-child {
    border-bottom: 0;
}

.calendar-agenda-time {
    color: #3d799c;
    font-weight: 900;
}

.calendar-agenda-event strong,
.calendar-agenda-event small {
    display: block;
}

.calendar-agenda-event strong {
    margin-bottom: 4px;
    color: #122c3b;
}

.calendar-agenda-event small {
    color: #4b8fb6;
    font-size: 11px;
}

.calendar-empty-state {
    padding: 42px 20px;
    text-align: center;
}

.calendar-empty-state span,
.calendar-empty-state strong {
    display: block;
}

.calendar-empty-state span {
    margin-bottom: 6px;
    color: #3e92c2;
    font-weight: 900;
}

.calendar-empty-state strong {
    color: #193b4f;
    font-size: 18px;
}

.calendar-empty-state a {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    background: #2d607d;
    text-decoration: none;
    font-weight: 900;
}

@media (max-width: 1180px) {
    .calendar-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-filter-actions {
        grid-column: span 2;
    }
}

@media (max-width: 900px) {
    .appointment-calendar-desktop {
        display: none;
    }

    .appointment-calendar-mobile {
        display: grid;
        gap: 12px;
        padding: 14px;
    }

    .calendar-toolbar {
        grid-template-columns: 1fr 1.3fr 1fr;
        padding: 14px;
    }

    .calendar-nav-button {
        padding-inline: 10px;
    }

    .calendar-nav-button strong {
        display: none;
    }
}

@media (max-width: 760px) {
    .appointments-tabs-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-stat-grid,
    .calendar-filter-form {
        grid-template-columns: 1fr;
    }

    .calendar-filter-actions {
        grid-column: auto;
    }

    .calendar-toolbar {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        gap: 8px;
    }

    .calendar-nav-button {
        min-height: 44px;
        padding: 0;
    }

    .calendar-current-month strong {
        font-size: 18px;
    }

    .calendar-agenda-event {
        grid-template-columns: 66px minmax(0, 1fr);
    }

    .calendar-agenda-event > .status {
        grid-column: 1 / -1;
        justify-self: start;
    }
}


/* Appointment status modal — v1.8.1 */
.appointment-status-modal {
    width: min(860px, calc(100vw - 36px));
    max-width: 860px;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 26px;
    background: transparent;
    color: inherit;
    box-shadow: 0 30px 90px rgba(13, 36, 49, .28);
}

.appointment-status-modal::backdrop {
    background: rgba(10, 25, 34, .58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.appointment-status-modal-form {
    width: 100%;
    padding: 24px;
    overflow: visible;
    border: 1px solid #d9e7ef;
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(67, 152, 202, .08), transparent 30%),
        #ffffff;
}

.appointment-status-modal .status-form-head {
    margin-bottom: 20px;
    padding-bottom: 17px;
}

.appointment-status-modal .status-modal-eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #3f8fbd;
    font-size: 11px;
    font-weight: 900;
}

.appointment-status-modal .status-form-head strong {
    font-size: 20px;
}

.appointment-status-modal .status-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.appointment-status-modal .field label {
    margin-bottom: 7px;
    color: #1a3d52;
    font-size: 12px;
    font-weight: 900;
}

/* Use the same dashboard dropdown sizing and appearance inside the modal. */
.appointments-admin-v3 .appointment-status-modal .modern-select-trigger {
    min-height: 54px;
    padding: 6px 9px 6px 12px;
}

.appointments-admin-v3 .appointment-status-modal .modern-select-leading {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
}

.appointments-admin-v3 .appointment-status-modal .modern-select-menu {
    z-index: 50;
    max-height: min(310px, calc(100vh - 180px));
}

.appointments-admin-v3 .appointment-status-modal .modern-select-options {
    max-height: min(225px, calc(100vh - 275px)) !important;
}

.appointment-status-modal .status-cancel-reason input {
    min-height: 52px;
    border: 1px solid #d3e3ed;
    border-radius: 15px;
    background: #fff;
}

.appointment-status-modal .status-modal-actions {
    display: grid;
    grid-template-columns: minmax(140px, .35fr) minmax(220px, 1fr);
    gap: 12px;
    margin-top: 18px;
}

.appointment-status-modal .status-confirm-button,
.appointment-status-modal .status-modal-cancel {
    min-height: 50px;
    margin: 0;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.appointment-status-modal .status-modal-cancel {
    border: 1px solid #cfe1ec;
    background: #f8fbfc;
    color: #32617c;
}

.appointment-status-modal .status-modal-cancel:hover {
    transform: translateY(-1px);
    background: #edf4f8;
}

@media (max-width: 780px) {
    .appointment-status-modal {
        width: min(100% - 20px, 620px);
        max-height: calc(100svh - 20px);
        overflow-y: auto;
        border-radius: 22px;
    }

    .appointment-status-modal-form {
        padding: 18px;
        border-radius: 22px;
    }

    .appointment-status-modal .status-form-grid,
    .appointment-status-modal .status-modal-actions {
        grid-template-columns: 1fr;
    }
}


/* Calendar cards and filters aligned with appointments list — v1.8.2 */
.appointments-calendar-page .calendar-stats-pro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.appointments-calendar-page .calendar-stats-pro article {
    min-height: 138px;
}

.appointments-calendar-page .calendar-filters-panel-pro {
    margin-bottom: 18px;
    overflow: visible;
}

.appointments-calendar-page .calendar-filters-panel-pro .filters-panel-head {
    border-radius: 22px 22px 0 0;
}

.appointments-calendar-page .calendar-filters-pro {
    margin: 0;
    background: #fff;
}

@media (min-width: 1201px) {
    .appointments-calendar-page .calendar-filters-pro {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr)
            minmax(0, 1fr);
        gap: 12px;
        align-items: end;
        padding: 18px 20px 20px;
    }

    .appointments-calendar-page .calendar-filters-pro > .field,
    .appointments-calendar-page .calendar-filter-actions-pro {
        grid-column: auto;
        min-width: 0;
    }

    .appointments-calendar-page .calendar-filter-actions-pro {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        justify-content: flex-end;
        gap: 7px;
        padding: 0;
    }

    .appointments-calendar-page .calendar-filter-actions-pro .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .appointments-calendar-page .calendar-filter-actions-pro .btn-appt {
        width: 100%;
        min-width: 0;
        min-height: 46px;
        padding-inline: 8px;
        justify-content: center;
        white-space: nowrap;
        font-size: 12px;
    }

    .appointments-calendar-page .calendar-filters-pro .field > label {
        min-height: 17px;
        margin-bottom: 7px;
        line-height: 1.4;
    }

    .appointments-calendar-page .calendar-filters-pro .modern-select,
    .appointments-calendar-page .calendar-filters-pro input,
    .appointments-calendar-page .calendar-filters-pro select {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 1200px) and (min-width: 721px) {
    .appointments-calendar-page .calendar-stats-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appointments-calendar-page .calendar-filters-pro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appointments-calendar-page .calendar-filter-actions-pro {
        grid-column: span 2;
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .appointments-calendar-page .calendar-filter-actions-pro .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}

@media (max-width: 720px) {
    .appointments-calendar-page .calendar-stats-pro,
    .appointments-calendar-page .calendar-filters-pro {
        grid-template-columns: 1fr;
    }

    .appointments-calendar-page .calendar-stats-pro article {
        min-height: 112px;
    }

    .appointments-calendar-page .calendar-filter-actions-pro {
        grid-column: auto;
    }

    .appointments-calendar-page .calendar-filter-actions-pro .filter-actions-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }
}


/* Calendar appointment edit modal — v1.8.4 */
.calendar-event,
.calendar-agenda-event {
    cursor: pointer;
}

.calendar-edit-modal {
    width: min(980px, calc(100vw - 30px));
    max-width: 980px;
    max-height: calc(100svh - 30px);
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 28px;
    background: transparent;
    color: inherit;
    box-shadow: 0 32px 100px rgba(12, 35, 48, .32);
}

.calendar-edit-modal::backdrop {
    background: rgba(10, 27, 37, .6);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}

.calendar-edit-modal-card {
    overflow: visible;
    border: 1px solid #d9e7ef;
    border-radius: 28px;
    background:
        radial-gradient(circle at top left, rgba(67, 152, 202, .08), transparent 32%),
        #fff;
}

.calendar-edit-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
    border-bottom: 1px dashed #d8e5ed;
}

.calendar-edit-modal-head span,
.calendar-edit-modal-head strong {
    display: block;
}

.calendar-edit-modal-head span {
    margin-bottom: 4px;
    color: #3f8fbd;
    font-size: 11px;
    font-weight: 900;
}

.calendar-edit-modal-head strong {
    color: #142f3f;
    font-size: 22px;
}

.calendar-edit-modal-head button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    border: 1px solid #d8e4eb;
    border-radius: 13px;
    background: #f8fbfc;
    color: #32617c;
    font-size: 24px;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.calendar-edit-modal-head button:hover {
    transform: translateY(-1px);
    background: #e9f2f7;
    color: #327ba6;
}

.calendar-edit-modal-body {
    padding: 20px 24px 24px;
    overflow: visible;
}

.calendar-edit-loading {
    min-height: 210px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #3d7595;
}

.calendar-edit-loading span {
    width: 34px;
    height: 34px;
    border: 3px solid #d9e7ef;
    border-top-color: #3f8fbd;
    border-radius: 50%;
    animation: appointments-spin .8s linear infinite;
}

.calendar-edit-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-edit-summary > div {
    padding: 12px 14px;
    border: 1px solid #dfeaf0;
    border-radius: 15px;
    background: #f8fbfd;
}

.calendar-edit-summary span,
.calendar-edit-summary strong {
    display: block;
}

.calendar-edit-summary span {
    margin-bottom: 4px;
    color: #4e90b6;
    font-size: 11px;
}

.calendar-edit-summary strong {
    color: #193b4f;
    font-size: 15px;
}

.calendar-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.calendar-edit-grid .span-2 {
    grid-column: span 2;
}

.calendar-edit-grid .span-4 {
    grid-column: 1 / -1;
}

.calendar-edit-form .field label {
    margin-bottom: 7px;
    color: #1a3d52;
    font-size: 12px;
    font-weight: 900;
}

.calendar-edit-form .modern-select-trigger,
.calendar-edit-form .admin-input-wrap,
.calendar-edit-form input,
.calendar-edit-form textarea {
    min-height: 54px;
}

.calendar-edit-form textarea {
    min-height: 88px;
}

.calendar-edit-form .modern-select-menu {
    z-index: 80;
    max-height: min(300px, calc(100vh - 190px));
}

.calendar-edit-form .modern-select-options {
    max-height: min(210px, calc(100vh - 285px)) !important;
}

.calendar-edit-actions {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(130px, .32fr);
    gap: 12px;
    margin-top: 18px;
}

.calendar-edit-actions .btn-appt {
    min-height: 50px;
    justify-content: center;
}

html.has-calendar-edit-modal {
    overflow: hidden;
}

@media (max-width: 900px) {
    .calendar-edit-modal {
        width: min(100% - 20px, 760px);
        max-height: calc(100svh - 20px);
        overflow-y: auto;
        border-radius: 22px;
    }

    .calendar-edit-modal-card {
        border-radius: 22px;
    }

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

    .calendar-edit-grid .span-4 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .calendar-edit-modal-head,
    .calendar-edit-modal-body {
        padding-inline: 16px;
    }

    .calendar-edit-grid,
    .calendar-edit-summary,
    .calendar-edit-actions {
        grid-template-columns: 1fr;
    }

    .calendar-edit-grid .span-2,
    .calendar-edit-grid .span-4 {
        grid-column: auto;
    }
}


/* Explicit modal closing and action order — v1.8.6 */
.status-modal-actions,
.calendar-edit-actions {
    direction: ltr;
    grid-template-columns: minmax(140px, .35fr) minmax(220px, 1fr);
    grid-template-areas: "cancel save";
}

.status-modal-actions > *,
.calendar-edit-actions > * {
    direction: rtl;
}

.status-modal-actions .status-modal-cancel,
.calendar-edit-actions [data-calendar-edit-close] {
    grid-area: cancel;
}

.status-modal-actions .status-confirm-button,
.calendar-edit-actions .primary-pro {
    grid-area: save;
}

@media (max-width: 620px) {
    .status-modal-actions,
    .calendar-edit-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "save"
            "cancel";
    }
}

/* Calendar month/day view switcher — v1.9.0 */
.calendar-toolbar {
    grid-template-columns: 150px minmax(260px, 1fr) auto 150px;
}

.calendar-view-switcher {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(92px, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid #d2e3ed;
    border-radius: 15px;
    background: #f2f7fa;
}

.calendar-view-switcher a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 11px;
    color: #3c7393;
    text-decoration: none;
    font-size: 12px;
    font-weight: 900;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.calendar-view-switcher a:hover {
    color: #2d607d;
    background: #fff;
}

.calendar-view-switcher a.is-active {
    color: #fff;
    background: linear-gradient(135deg, #29556e 0%, #3e8ebd 100%);
    box-shadow: 0 8px 20px rgba(39, 85, 111, .18);
}

.calendar-view-switcher svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.calendar-agenda-day-open {
    margin-inline-start: auto;
    padding: 7px 10px;
    border: 1px solid #cfe1eb;
    border-radius: 10px;
    color: #366c8b;
    background: #fff;
    text-decoration: none;
    font-size: 10px;
    font-weight: 900;
}

.appointment-day-view {
    background: #fff;
}

.day-view-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    border-bottom: 1px solid #e5edf1;
    background: linear-gradient(180deg, #fff 0%, #f9fcfd 100%);
}

.day-view-summary > div:first-child span,
.day-view-summary > div:first-child strong {
    display: block;
}

.day-view-summary > div:first-child span {
    margin-bottom: 4px;
    color: #3f8fbd;
    font-size: 12px;
    font-weight: 900;
}

.day-view-summary > div:first-child strong {
    color: #132e3d;
    font-size: 21px;
}

.day-view-summary-count {
    min-width: 84px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid #dfeaf0;
    border-radius: 14px;
    background: #f6f9fb;
}

.day-view-summary-count strong {
    color: #346c8c;
    font-size: 21px;
}

.day-view-summary-count span {
    color: #4584a8;
    font-size: 11px;
    font-weight: 800;
}

.day-timeline {
    position: relative;
    padding: 14px 22px 26px;
}

.day-time-row {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 82px;
}

.day-time-row time {
    padding-top: 8px;
    padding-left: 16px;
    color: #427ea1;
    text-align: left;
    font-size: 12px;
    font-weight: 900;
    direction: rtl;
}

.day-time-track {
    position: relative;
    min-width: 0;
    padding: 0 24px 14px 0;
    border-top: 1px solid #e7edf1;
}

.day-time-track::before {
    content: "";
    position: absolute;
    top: 0;
    right: 4px;
    bottom: -1px;
    width: 1px;
    background: #dfeaf0;
}

.day-time-dot {
    position: absolute;
    top: -5px;
    right: 0;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #bfd7e5;
    box-shadow: 0 0 0 1px #bfd7e5;
}

.day-time-row.has-events .day-time-dot {
    background: #3f8fbd;
    box-shadow: 0 0 0 1px #3f8fbd, 0 0 0 5px rgba(63, 143, 189, .09);
}

.day-time-events {
    min-height: 64px;
    display: grid;
    gap: 8px;
    padding-top: 8px;
}

.day-time-empty {
    align-self: start;
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 9px;
    color: #72a7c6;
    background: #f8fafb;
    font-size: 10px;
}

.day-timeline-event {
    position: relative;
    display: grid;
    grid-template-columns: 126px minmax(160px, 1fr) minmax(170px, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 64px;
    padding: 11px 14px;
    overflow: hidden;
    border: 1px solid #dfeaf0;
    border-radius: 14px;
    color: inherit;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(23, 54, 71, .04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.day-timeline-event:hover {
    transform: translateY(-1px);
    border-color: #a8c8db;
    box-shadow: 0 12px 26px rgba(26, 63, 84, .08);
}

.day-timeline-event::before {
    content: "";
    position: absolute;
    top: 9px;
    right: 0;
    bottom: 9px;
    width: 4px;
    border-radius: 99px;
    background: #4380a4;
}

.day-timeline-event.status-pending::before { background: #e2ad32; }
.day-timeline-event.status-confirmed::before { background: #308fc6; }
.day-timeline-event.status-arrived::before { background: #7d62c8; }
.day-timeline-event.status-completed::before { background: #49a876; }
.day-timeline-event.status-cancelled::before,
.day-timeline-event.status-no_show::before { background: #d75b65; }
.day-timeline-event.needs-assignment { background: #fafdfe; border-color: #cbe2ef; }

.day-event-time strong,
.day-event-time span,
.day-event-customer strong,
.day-event-customer span,
.day-event-assignment strong,
.day-event-assignment span {
    display: block;
}

.day-event-time strong {
    margin-bottom: 3px;
    color: #346d8e;
    font-size: 13px;
}

.day-event-time span,
.day-event-customer span,
.day-event-assignment span {
    color: #8c7a92;
    font-size: 10px;
}

.day-event-customer strong,
.day-event-assignment strong {
    margin-bottom: 3px;
    color: #142f3e;
    font-size: 12px;
}

.day-timeline-event.needs-assignment .day-event-assignment strong {
    color: #3d8ab7;
}

@media (max-width: 1180px) {
    .calendar-toolbar {
        grid-template-columns: 52px minmax(220px, 1fr) auto 52px;
    }

    .calendar-nav-button {
        padding: 0;
    }

    .calendar-nav-button strong {
        display: none;
    }

    .day-timeline-event {
        grid-template-columns: 110px minmax(150px, 1fr) minmax(150px, 1fr) auto;
        gap: 10px;
    }
}

@media (max-width: 900px) {
    .calendar-toolbar {
        grid-template-columns: 46px minmax(0, 1fr) 46px;
        grid-template-areas:
            "prev title next"
            "switch switch switch";
    }

    .calendar-toolbar > .calendar-nav-button:first-child { grid-area: prev; }
    .calendar-toolbar > .calendar-current-month { grid-area: title; }
    .calendar-toolbar > .calendar-view-switcher { grid-area: switch; justify-self: center; }
    .calendar-toolbar > .calendar-nav-button:last-child { grid-area: next; }

    .day-view-summary {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .day-view-summary .btn-appt {
        grid-column: 1 / -1;
        width: 100%;
    }

    .day-time-row {
        grid-template-columns: 74px minmax(0, 1fr);
    }

    .day-timeline-event {
        grid-template-columns: 100px minmax(0, 1fr) auto;
        grid-template-areas:
            "time customer status"
            "assignment assignment status";
    }

    .day-event-time { grid-area: time; }
    .day-event-customer { grid-area: customer; }
    .day-event-assignment { grid-area: assignment; }
    .day-timeline-event > .status { grid-area: status; }
}

@media (max-width: 600px) {
    .calendar-view-switcher {
        width: 100%;
    }

    .calendar-view-switcher a {
        min-width: 0;
    }

    .day-view-summary {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .day-view-summary-count {
        justify-self: center;
    }

    .day-timeline {
        padding: 12px 10px 20px;
    }

    .day-time-row {
        grid-template-columns: 60px minmax(0, 1fr);
        min-height: 74px;
    }

    .day-time-row time {
        padding-left: 8px;
        font-size: 10px;
    }

    .day-time-track {
        padding-right: 18px;
    }

    .day-timeline-event {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "customer status"
            "time status"
            "assignment assignment";
        gap: 7px 10px;
        padding: 10px 12px;
    }

    .day-event-time strong,
    .day-event-time span {
        display: inline;
        margin-left: 5px;
    }
}


/* Home training card v2.0.1 */
.bf-home-training-card {
    border-color: rgba(63, 150, 200,.22);
    background: linear-gradient(145deg, #fff 0%, #f8fbfd 100%);
}

.bf-home-training-card::after {
    background: rgba(63, 150, 200,.08);
}

.bf-home-training-mark {
    color: #fff;
    background: linear-gradient(135deg, #234f68 0%, #3f96c8 100%);
}

.bf-home-training-mark svg {
    width: 34px;
    height: 34px;
}

.bf-home-training-card .bf-branch-action > span {
    color: #4a8eb5;
}

.training-type-badge { display:inline-flex; padding:6px 10px; border-radius:999px; font-size:11px; font-weight:800; background:#eaf3f8; color:#2c5a75; }


/* Unified booking cards redesign v2.0.2 */
.bf-branches-section-compact {
    overflow: hidden;
}

.bf-branches-section-compact .bf-section-heading {
    margin-bottom: 28px;
}

.bf-branches-grid {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #4592bf #eaf1f5;
}

.bf-branches-grid::-webkit-scrollbar {
    height: 8px;
}

.bf-branches-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #eaf1f5;
}

.bf-branches-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, #234f68, #4599ca);
}

.bf-branch-card {
    position: relative;
    flex: 1 0 300px;
    min-width: 300px;
    max-width: 430px;
    min-height: 205px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 22px;
    border: 1px solid rgba(29, 69, 92, .10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(23, 55, 74, .06);
    scroll-snap-align: start;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.bf-branch-card::after {
    width: 120px;
    height: 120px;
    left: -70px;
    bottom: -74px;
    background: rgba(74, 141, 180, .055);
}

.bf-branch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(66, 150, 198, .28);
    box-shadow: 0 20px 42px rgba(23, 55, 74, .11);
}

.bf-branch-card-index {
    top: 18px;
    left: 20px;
    color: #94bcd3;
    font-size: 11px;
}

.bf-branch-mark {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    margin-bottom: 16px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(22, 57, 77, .12);
}

.bf-branch-mark img {
    border-radius: 11px;
}

.bf-home-training-mark svg {
    width: 28px;
    height: 28px;
}

.bf-branch-content {
    flex: 1 1 auto;
    padding: 0;
}

.bf-branch-label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #3a708f;
    background: #edf4f8;
    font-size: 10px;
    font-weight: 900;
}

.bf-branch-content h3 {
    margin: 12px 0 13px;
    color: #132c3b;
    font-size: 21px;
    line-height: 1.35;
}

.bf-branch-services {
    gap: 6px;
}

.bf-branch-services span {
    max-width: 150px;
    padding: 5px 9px;
    color: #3d7494;
    background: #f2f5f7;
    font-size: 10px;
}

.bf-branch-action {
    margin-top: 18px;
    padding-top: 15px;
    border-top-color: #e5edf1;
}

.bf-branch-action > span {
    color: #8f8195;
    font-size: 11px;
}

.bf-branch-action > strong {
    gap: 8px;
    color: #193b4e;
    font-size: 13px;
    transition: color .2s ease, transform .2s ease;
}

.bf-branch-card:hover .bf-branch-action > strong {
    color: #3f8fbd;
    transform: translateX(-2px);
}

.bf-branch-action b {
    font-size: 19px;
}

.bf-home-training-card {
    border-color: rgba(66, 150, 198, .18);
    background: linear-gradient(155deg, #fff 0%, #f8fbfd 100%);
}

.bf-home-training-card .bf-branch-label {
    color: #34759b;
    background: #eaf3f9;
}

.bf-branches-empty.static {
    flex: 1 0 100%;
    min-width: 100%;
}

@media (min-width: 1280px) {
    .bf-branches-grid:has(.bf-branch-card:nth-child(1):last-child) .bf-branch-card {
        max-width: 460px;
    }

    .bf-branches-grid:has(.bf-branch-card:nth-child(2):last-child) .bf-branch-card,
    .bf-branches-grid:has(.bf-branch-card:nth-child(3):last-child) .bf-branch-card,
    .bf-branches-grid:has(.bf-branch-card:nth-child(4):last-child) .bf-branch-card {
        flex-basis: 0;
        max-width: none;
    }
}

@media (max-width: 900px) {
    .bf-branches-grid {
        margin-inline: -6px;
        padding-inline: 6px;
    }

    .bf-branch-card {
        flex-basis: min(76vw, 340px);
        min-width: min(76vw, 340px);
        max-width: min(76vw, 340px);
    }
}

@media (max-width: 560px) {
    .bf-branches-section-compact .bf-section-heading h2 {
        font-size: 30px;
    }

    .bf-branch-card {
        flex-basis: 86vw;
        min-width: 86vw;
        max-width: 86vw;
        min-height: 195px;
        padding: 20px;
    }
}


/* Home training icon white background v2.0.3 */
.bf-home-training-mark {
    color: #2d6b8f;
    background: #ffffff;
    border: 1px solid rgba(29, 69, 92, .10);
    box-shadow: 0 10px 24px rgba(22, 57, 77, .12);
}

.bf-home-training-mark svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
}


/* Home training Google Maps modal picker v2.1.1 */
.home-location-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 1px solid rgba(58, 131, 174, .18);
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}
.home-location-summary-copy {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.home-location-summary-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #2d607d;
    background: #eaf2f6;
    font-size: 22px;
    font-weight: 900;
}
.home-location-summary label,
.home-location-summary strong,
.home-location-summary small { display: block; }
.home-location-summary strong {
    margin: 5px 0 3px;
    max-width: 560px;
    overflow: hidden;
    color: #132c3b;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-location-summary small { color: #85758e; line-height: 1.6; }
.home-location-open,
.home-location-current,
.home-location-confirm,
.home-location-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.home-location-open,
.home-location-confirm {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #2b5c78 0%, #3c91c3 100%);
    box-shadow: 0 12px 28px rgba(43, 92, 120, .18);
}
.home-location-open:hover,
.home-location-confirm:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(43, 92, 120,.24); }
.home-location-confirm:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.home-location-current,
.home-location-cancel {
    border: 1px solid rgba(58, 131, 174, .18);
    color: #2b5c78;
    background: #fff;
}
.home-location-current:hover,
.home-location-cancel:hover { transform: translateY(-1px); border-color: rgba(58, 131, 174,.38); box-shadow: 0 10px 24px rgba(29, 69, 92,.08); }
.home-location-current:disabled { opacity: .6; cursor: wait; }
.home-location-modal {
    position: fixed;
    inset: 0;
    z-index: 120000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(12, 28, 38, .58);
    backdrop-filter: blur(8px);
}
.home-location-modal[hidden] { display: none !important; }
.home-location-modal-dialog {
    width: min(920px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 1px solid rgba(58, 131, 174, .16);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(13, 31, 42, .28);
}
.home-location-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 18px;
    border-bottom: 1px solid #e4edf2;
}
.home-location-modal-head span { color: #3c91c3; font-size: 12px; font-weight: 900; }
.home-location-modal-head h3 { margin: 5px 0 6px; color: #122c3b; font-size: 25px; }
.home-location-modal-head p { margin: 0; color: #84758d; line-height: 1.7; }
.home-location-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(58, 131, 174, .18);
    border-radius: 13px;
    color: #2d607d;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
}
.home-location-modal-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px 24px 12px;
}
.home-location-search-wrap { width: 100%; min-width: 0; }
.home-location-search-wrap gmp-place-autocomplete {
    display: block;
    width: 100%;
    min-height: 50px;
    direction: rtl;
    font-family: inherit;
    color-scheme: light;
}
.home-location-map-wrap {
    position: relative;
    width: calc(100% - 48px);
    height: min(470px, 52vh);
    margin: 0 24px;
}
.home-location-map {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(29, 69, 92,.10);
    border-radius: 18px;
    background: #eef3f6;
}
.home-location-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 6;
    width: 46px;
    height: 58px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    filter: drop-shadow(0 7px 9px rgba(18, 45, 61, .22));
}
.home-location-center-pin-shape {
    position: absolute;
    left: 50%;
    bottom: 7px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: linear-gradient(135deg, #2b5c78 0%, #3c91c3 100%);
    transform: translateX(-50%) rotate(-45deg);
    box-shadow: 0 7px 18px rgba(43, 92, 120, .28);
}
.home-location-center-pin-shape i {
    width: 11px;
    height: 11px;
    display: block;
    border-radius: 50%;
    background: #fff;
}
.home-location-center-pin-shadow {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 22px;
    height: 7px;
    border-radius: 50%;
    background: rgba(21, 49, 65, .24);
    transform: translateX(-50%);
    filter: blur(2px);
}
.home-location-status {
    margin: 12px 24px 0;
    padding: 11px 13px;
    border-radius: 12px;
    color: #4687ac;
    background: #f1f5f8;
    line-height: 1.7;
}
.home-location-status.is-selected { color: #1d445a; background: #e8f0f5; }
.home-location-modal-actions {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 12px;
    padding: 18px 24px 24px;
}
.home-location-modal-open { overflow: hidden; }
.pac-container {
    z-index: 130000 !important;
    border: 1px solid rgba(58, 131, 174,.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 44px rgba(21, 50, 67,.16) !important;
    font-family: inherit !important;
    direction: rtl !important;
}
.pac-item { padding: 10px 12px !important; cursor: pointer !important; }
.pac-item:hover { background: #f4f8fb !important; }
@media (max-width: 760px) {
    .home-location-summary { align-items: stretch; flex-direction: column; }
    .home-location-open { width: 100%; }
    .home-location-modal { padding: 12px; }
    .home-location-modal-dialog { max-height: calc(100svh - 24px); border-radius: 22px; }
    .home-location-modal-head { padding: 18px; }
    .home-location-modal-head h3 { font-size: 21px; }
    .home-location-modal-tools { grid-template-columns: 1fr; padding: 14px 16px 10px; }
    .home-location-current { width: 100%; }
    .home-location-map-wrap { width: calc(100% - 32px); height: 360px; margin: 0 16px; }
    .home-location-map { width: 100%; height: 100%; margin: 0; }
    .home-location-status { margin: 10px 16px 0; }
    .home-location-modal-actions { grid-template-columns: 1fr; padding: 14px 16px 18px; }
    .home-location-cancel { order: 2; }
}



/* Google Places API (New) autocomplete v2.1.4 */
.home-location-search-wrap gmp-place-autocomplete {
    --gmpx-color-primary: #2f739b;
    --gmpx-color-surface: #ffffff;
    --gmpx-color-on-surface: #122c3b;
    --gmpx-font-family-base: inherit;
    border: 1px solid rgba(58, 131, 174, .22);
    border-radius: 14px;
    overflow: visible;
}


/* Compact home location summary v2.1.6 */
.home-location-summary {
    min-height: 74px;
    padding: 10px 12px;
    gap: 12px;
    border-radius: 16px;
}

.home-location-summary-copy {
    gap: 10px;
    flex: 1 1 auto;
}

.home-location-summary-icon {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
    font-size: 18px;
}

.home-location-summary label {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.home-location-summary strong {
    margin: 2px 0 0;
    max-width: 520px;
    font-size: 13px;
    line-height: 1.5;
}

.home-location-summary small {
    display: none;
}

.home-location-open {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 12px;
    white-space: nowrap;
    font-size: 13px;
}

@media (max-width: 760px) {
    .home-location-summary {
        min-height: 68px;
        flex-direction: row;
        align-items: center;
        padding: 9px 10px;
        gap: 10px;
    }

    .home-location-summary-copy {
        min-width: 0;
    }

    .home-location-summary-copy > div {
        min-width: 0;
    }

    .home-location-summary strong {
        max-width: none;
    }

    .home-location-open {
        width: auto;
        flex: 0 0 auto;
        min-height: 38px;
        padding-inline: 13px;
    }
}

@media (max-width: 480px) {
    .home-location-summary-icon {
        display: none;
    }

    .home-location-summary {
        gap: 8px;
    }

    .home-location-open {
        padding-inline: 11px;
        font-size: 12px;
    }
}

/* Remove the visit-location summary card while keeping the map picker button v2.1.7 */
.home-location-summary.home-location-action {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-location-action .home-location-open {
    width: 100%;
}

/* Selected location state v2.1.8 */
.home-location-open.is-selected {
    background: linear-gradient(135deg, #177a50 0%, #2fa66f 100%);
    box-shadow: 0 12px 28px rgba(23, 122, 80, .20);
}

.home-location-open.is-selected:hover {
    box-shadow: 0 16px 32px rgba(23, 122, 80, .28);
}



/* Home booking field arrangement v2.1.13 */
.home-location-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(0, 2fr);
    grid-template-areas: "action district address";
    gap: 18px;
    align-items: end;
}

.home-location-action {
    grid-area: action;
    min-width: 0;
    align-self: end;
}

.home-location-address-field {
    grid-area: address;
    min-width: 0;
}

.home-location-district-field {
    grid-area: district;
    min-width: 0;
}

.home-location-address-field input[readonly] {
    color: #294e64;
    background: #f7fafb;
    cursor: default;
}

.home-location-notes-field textarea {
    min-height: 86px;
}

@media (max-width: 760px) {
    .home-location-fields {
        grid-template-columns: 1fr;
        grid-template-areas:
            "action"
            "district"
            "address";
        gap: 14px;
    }
}


/* Location picker alignment v2.1.11 */
.booking-body .home-location-action .home-location-open {
    min-height: 50px;
    height: 50px;
    padding-block: 0;
    border-radius: 14px;
}

.home-location-modal-actions {
    direction: ltr;
    grid-template-columns: 180px minmax(0, 1fr);
    grid-template-areas: "cancel confirm";
}

.home-location-cancel {
    grid-area: cancel;
    direction: rtl;
}

.home-location-confirm {
    grid-area: confirm;
    direction: rtl;
}

@media (max-width: 760px) {
    .booking-body .home-location-action .home-location-open {
        min-height: 50px;
        height: 50px;
    }

    .home-location-modal-actions {
        grid-template-columns: 1fr;
        grid-template-areas:
            "confirm"
            "cancel";
    }
}

/* Booking validation and Saudi mobile mask - v2.1.15 */
.booking-body .booking-validation-message {
    width: 100%;
    margin-top: 18px;
    padding: 13px 16px;
    border: 1px solid #efbcc6;
    border-radius: 14px;
    color: #9f263c;
    background: #fff2f5;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.7;
    text-align: center;
    box-shadow: 0 8px 22px rgba(159, 38, 60, .07);
}

.booking-body .booking-validation-message[hidden] {
    display: none !important;
}

.booking-body .field input.is-invalid {
    border-color: #d94c5a;
    background: #fffafb;
    box-shadow: 0 0 0 4px rgba(217, 76, 90, .09);
}

.booking-body .mobile-format-message {
    display: block;
    min-height: 18px;
    color: #4687ac;
    font-size: 11px;
    font-weight: 700;
}

.booking-body .mobile-format-message.is-error {
    color: #b62f45;
    font-weight: 900;
}

/* Ordered booking validation - v2.1.16 */
.booking-body .home-location-open.is-invalid {
    border-color: #d94c5a;
    background: #fffafb;
    color: #b62f45;
    box-shadow: 0 0 0 4px rgba(217, 76, 90, .09);
}

/* Success booking type and home location details - v2.1.17 */
.success-pass-identity {
    min-width: 0;
}

.success-pass-preview > header .success-pass-branch-name {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.success-pass-grid .success-pass-grid-wide {
    grid-column: 1 / -1;
}

.success-training-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.4;
}

.success-training-type.is-home {
    color: #18704e;
    background: #e8f8f0;
    border: 1px solid #bde8d4;
}

.success-training-type.is-branch {
    color: #2f5a73;
    background: #ebf3f8;
    border: 1px solid #c8dce8;
}

.success-location-details dd {
    overflow-wrap: anywhere;
}

.success-google-directions {
    width: fit-content;
    max-width: 100%;
    min-height: 42px;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid #bedfd1;
    border-radius: 12px;
    color: #176b4b;
    background: #eefaf4;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.success-google-directions:hover {
    transform: translateY(-2px);
    border-color: #7ec6a8;
    color: #12593e;
    background: #e4f7ed;
}

.success-google-directions span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 640px) {
    .success-pass-preview > header .success-pass-branch-name {
        font-size: 13px;
    }

    .success-google-directions {
        width: 100%;
    }
}

/* Ticket booking type and home location details - v2.1.18 */
.appointment-pass-highlights {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.appointment-pass-location {
    margin: 0 22px 18px;
    padding: 16px 18px;
    border: 1px solid #dcece5;
    border-radius: 18px;
    background: #f4fbf7;
}

.appointment-pass-location-grid {
    display: grid;
    grid-template-columns: minmax(150px, .7fr) minmax(0, 1.8fr);
    gap: 12px;
}

.appointment-pass-location-grid > div {
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid #d9ebe2;
    border-radius: 14px;
    background: #fff;
}

.appointment-pass-location-grid span {
    display: block;
    margin-bottom: 6px;
    color: #6c8177;
    font-size: 12px;
}

.appointment-pass-location-grid strong {
    display: block;
    color: #213a30;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.appointment-pass-directions {
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    border: 1px solid #a9d8c4;
    border-radius: 13px;
    color: #176b4b;
    background: #fff;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.appointment-pass-directions:hover {
    transform: translateY(-2px);
    border-color: #68bc98;
    color: #12593e;
    background: #eaf8f1;
}

.appointment-pass-directions span {
    font-size: 18px;
    line-height: 1;
}

@media (max-width: 640px) {
    .appointment-pass-location {
        margin-inline: 18px;
        padding: 14px;
    }

    .appointment-pass-location-grid {
        grid-template-columns: 1fr;
    }

    .appointment-pass-directions {
        width: 100%;
    }
}

@media print {
    .appointment-print-card-location {
        padding: 4mm 5mm;
        border-bottom: 1px solid #e6eef2;
        background: #f8fcfa !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .appointment-print-card-location span,
    .appointment-print-card-location strong,
    .appointment-print-card-location a {
        display: block;
    }

    .appointment-print-card-location span {
        margin-bottom: 1.5mm;
        color: #6e8178;
        font-size: 8.5pt;
    }

    .appointment-print-card-location strong {
        color: #20372e;
        font-size: 9.5pt;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .appointment-print-card-location a {
        width: fit-content;
        margin-top: 2mm;
        color: #176b4b;
        font-size: 8.5pt;
        font-weight: 700;
        text-decoration: underline;
    }
}


/* =========================================================
   v2.1.20 - Dashboard booking type and visit location
   ========================================================= */
.dashboard-booking-location {
    display: flex;
    min-width: 210px;
    max-width: 320px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.dashboard-training-type-badge,
.calendar-training-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid rgba(25, 64, 87, .13);
    border-radius: 999px;
    background: rgba(25, 64, 87, .07);
    color: #194057;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    padding: 6px 9px;
}

.dashboard-booking-location.is-home .dashboard-training-type-badge,
.calendar-training-type.is-home {
    border-color: rgba(55, 146, 198, .2);
    background: rgba(55, 146, 198, .1);
    color: #2774a0;
}

.dashboard-booking-location > strong {
    color: #0f232e;
    font-size: 13px;
    line-height: 1.55;
}

.dashboard-booking-location > small {
    display: -webkit-box;
    overflow: hidden;
    color: #75677a;
    font-size: 11px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dashboard-booking-location > a,
.calendar-edit-location > a,
.admin-location-directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #27709b;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-booking-location > a:hover,
.calendar-edit-location > a:hover,
.admin-location-directions:hover {
    text-decoration: underline;
}

.calendar-event .calendar-training-type {
    margin-top: 3px;
    padding: 4px 7px;
    font-size: 9px;
}

.calendar-agenda-event .calendar-training-type,
.day-timeline-event .calendar-training-type {
    margin: 2px 0 5px;
}

.calendar-edit-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-edit-location {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 18px;
    border: 1px solid #dce6ec;
    border-radius: 16px;
    background: #f8fbfc;
    padding: 14px 16px;
}

.calendar-edit-location > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.calendar-edit-location span {
    color: #8b7a8e;
    font-size: 11px;
    font-weight: 700;
}

.calendar-edit-location strong {
    color: #122a37;
    font-size: 14px;
}

.calendar-edit-location small {
    overflow-wrap: anywhere;
    color: #77687a;
    font-size: 11px;
    line-height: 1.6;
}

.admin-home-location-section[hidden] {
    display: none !important;
}

.admin-home-location-grid {
    align-items: end;
}

.admin-home-location-grid input[dir="ltr"] {
    text-align: left;
}

.admin-location-directions {
    width: fit-content;
    margin-top: 14px;
    border: 1px solid rgba(39, 112, 155, .18);
    border-radius: 12px;
    background: rgba(39, 112, 155, .06);
    padding: 10px 13px;
}

.admin-location-directions svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 1100px) {
    .calendar-edit-summary {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .dashboard-booking-location {
        max-width: none;
    }

    .calendar-edit-summary {
        grid-template-columns: 1fr;
    }

    .calendar-edit-location {
        align-items: stretch;
        flex-direction: column;
    }

    .calendar-edit-location > a,
    .admin-location-directions {
        justify-content: center;
        width: 100%;
    }
}

/* Tenant selector — dashboard is controlled by the selected tenant, not the logged-in user's tenant. */
.appointments-tenant-selector {
    display: grid;
    gap: 6px;
    min-width: 230px;
    padding: 9px 12px;
    border: 1px solid rgba(22, 57, 77, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 22px rgba(22, 57, 77, 0.07);
}

.appointments-tenant-selector label {
    margin: 0;
    color: #3c7494;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.appointments-tenant-selector select {
    width: 100%;
    min-height: 36px;
    padding: 5px 10px;
    border: 0;
    border-radius: 9px;
    background: #f3f7fa;
    color: #112d3d;
    font: inherit;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.appointments-tenant-selector select:focus {
    box-shadow: 0 0 0 3px rgba(54, 138, 186, 0.14);
}

@media (max-width: 900px) {
    .appointments-admin-hero-actions .appointments-tenant-selector {
        width: 100%;
        min-width: 0;
    }
}

/* Tenant checkbox filter inside dashboard filters — v2.1.22 */
.tenant-checkbox-filter-field {
    position: relative;
    min-width: 0;
}

.tenant-checkbox-filter {
    position: relative;
    width: 100%;
}

.tenant-checkbox-filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid #d3e3ed;
    border-radius: 13px;
    color: #274c61;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-align: right;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.tenant-checkbox-filter-trigger:hover {
    border-color: #99bfd5;
    background: #fbfdfe;
}

.tenant-checkbox-filter.is-open .tenant-checkbox-filter-trigger {
    border-color: #5898bd;
    box-shadow: 0 0 0 4px rgba(73, 147, 190, .10);
}

.tenant-checkbox-filter-trigger > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tenant-checkbox-filter-trigger svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    transition: transform .18s ease;
}

.tenant-checkbox-filter.is-open .tenant-checkbox-filter-trigger svg {
    transform: rotate(180deg);
}

.tenant-checkbox-filter-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    width: max(100%, 300px);
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid #dde6ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(22, 57, 77, .16);
}

.tenant-checkbox-filter-search {
    position: relative;
    margin-bottom: 10px;
}

.tenant-checkbox-filter-search svg {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 17px;
    height: 17px;
    transform: translateY(-50%);
    fill: none;
    stroke: #669fc0;
    stroke-width: 1.8;
    pointer-events: none;
}

.appointments-admin-v3 .tenant-checkbox-filter-search input {
    min-height: 40px;
    padding: 8px 38px 8px 10px !important;
    border-radius: 11px;
    font-size: 12px;
}

.tenant-checkbox-options {
    display: grid;
    gap: 5px;
    max-height: 230px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-left: 3px;
}

.tenant-checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 11px;
    color: #2c546b;
    font-size: 13px;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.tenant-checkbox-option:hover {
    color: #28698e;
    background: #f1f7fb;
}

.tenant-checkbox-option-all {
    margin-bottom: 7px;
    border: 1px solid #dce9f0;
    background: #f9fcfe;
}

.tenant-checkbox-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tenant-checkbox-mark {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #accbdd;
    border-radius: 5px;
    background: #fff;
    transition: border-color .15s ease, background .15s ease;
}

.tenant-checkbox-option input:checked + .tenant-checkbox-mark {
    border-color: #2f739b;
    background: #2f739b;
}

.tenant-checkbox-option input:checked + .tenant-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.tenant-checkbox-filter-empty {
    padding: 14px 8px 5px;
    color: #98889d;
    font-size: 12px;
    text-align: center;
}

.calendar-tenant-name {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 3px 7px;
    border-radius: 999px;
    color: #386b88;
    background: #edf2f5;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 1201px) {
    .appointments-admin-v3 .appt-filters-pro {
        grid-template-columns:
            minmax(0, 1.18fr)
            minmax(0, 1.65fr)
            minmax(0, .92fr)
            minmax(0, .92fr)
            minmax(0, 1.02fr)
            minmax(0, 1.06fr)
            minmax(0, 1.02fr)
            minmax(0, 1.08fr)
            minmax(0, 1.08fr);
    }

    .appointments-calendar-page .calendar-filters-pro {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .tenant-checkbox-filter-menu {
        position: fixed;
        z-index: 1500;
        top: 50%;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        transform: translateY(-50%);
        max-height: calc(100vh - 40px);
        overflow: auto;
    }

    .tenant-checkbox-options {
        max-height: 45vh;
    }
}

/* Tenant filters inside services, schedules and blocked-times pages — v2.1.23 */
.settings-tenant-filters-panel {
    margin-bottom: 18px;
}

@media (min-width: 721px) {
    .appointments-admin-v3 .settings-tenant-filters-pro {
        grid-template-columns: minmax(280px, 420px) minmax(220px, 280px);
        justify-content: start;
        align-items: end;
    }

    .appointments-admin-v3 .settings-tenant-filters-pro > .field,
    .appointments-admin-v3 .settings-tenant-filters-pro .filter-actions-pro {
        grid-column: auto;
        min-width: 0;
    }

    .appointments-admin-v3 .settings-tenant-filters-pro .filter-actions-pro {
        align-self: stretch;
    }
}

@media (max-width: 720px) {
    .appointments-admin-v3 .settings-tenant-filters-pro {
        grid-template-columns: 1fr;
    }

    .appointments-admin-v3 .settings-tenant-filters-pro .filter-actions-pro {
        grid-column: 1;
    }
}

/* Unified dashboard filter controls — v2.1.25 */
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-trigger,
.appointments-admin-v3 .appt-filters-pro .modern-select-trigger,
.appointments-admin-v3 .appt-filters-pro .field > input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    height: 46px;
    border: 1px solid #d3e3ed;
    border-radius: 13px;
    color: #274c61;
    background: #fff;
    box-shadow: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
}

.appointments-admin-v3 .appt-filters-pro .field > input {
    padding: 10px 13px;
}

.appointments-admin-v3 .appt-filters-pro .input-with-icon input {
    min-height: 46px;
    height: 46px;
    border-radius: 13px;
    color: #274c61;
    font-size: 13px;
    font-weight: 800;
}

.appointments-admin-v3 .appt-filters-pro .field > input:hover,
.appointments-admin-v3 .appt-filters-pro .input-with-icon input:hover,
.appointments-admin-v3 .appt-filters-pro .modern-select-trigger:hover:not(:disabled) {
    border-color: #99bfd5;
    background: #fbfdfe;
}

.appointments-admin-v3 .appt-filters-pro .field > input:focus,
.appointments-admin-v3 .appt-filters-pro .input-with-icon input:focus,
.appointments-admin-v3 .appt-filters-pro .modern-select-trigger:focus-visible,
.appointments-admin-v3 .appt-filters-pro .modern-select.is-open .modern-select-trigger {
    border-color: #5898bd;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(73, 147, 190, .10);
}

.appointments-admin-v3 .appt-filters-pro .modern-select-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 18px;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    text-align: right;
    transform: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-leading,
.appointments-admin-v3 .appt-filters-pro .modern-select-value small {
    display: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-value {
    display: block;
    min-width: 0;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-value strong {
    display: block;
    overflow: hidden;
    color: #274c61;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-chevron {
    width: 18px;
    height: 18px;
    color: #274c61;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-chevron svg {
    width: 18px;
    height: 18px;
}

.appointments-admin-v3 .appt-filters-pro .field > label,
.appointments-admin-v3 .appt-filters-pro .filter-actions-label {
    min-height: 17px;
    margin-bottom: 7px;
    color: #305d77;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

@media (min-width: 1201px) {
    .appointments-admin-v3 .appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .appointments-admin-v3 .appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) .search-field-pro {
        grid-column: auto;
    }
}

/* Exact dropdown unification with tenant filter — v2.1.26 */
.appointments-admin-v3 .appt-filters-pro .modern-select-menu,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-menu {
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    width: max(100%, 300px);
    max-width: min(360px, calc(100vw - 32px));
    max-height: 330px;
    padding: 12px;
    border: 1px solid #dde6ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(22, 57, 77, .16);
    backdrop-filter: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-search,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-search {
    position: relative;
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-search svg,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-search svg {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 17px;
    height: 17px;
    color: #669fc0;
    stroke: currentColor;
    transform: translateY(-50%);
}

.appointments-admin-v3 .appt-filters-pro .modern-select-search input,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-search input {
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 8px 38px 8px 10px !important;
    border: 1px solid #d3e3ed !important;
    border-radius: 11px !important;
    color: #2c546b;
    background: #fff !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-search input:hover,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-search input:hover {
    border-color: #99bfd5 !important;
    background: #fbfdfe !important;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-search input:focus,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-search input:focus {
    border-color: #5898bd !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(73, 147, 190, .10) !important;
    outline: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-options,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-options {
    display: grid;
    gap: 5px;
    max-height: 230px !important;
    padding: 0 0 0 3px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #5898bd #edf3f7;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-options::-webkit-scrollbar,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-options::-webkit-scrollbar {
    width: 7px;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-options::-webkit-scrollbar-track,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-options::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #edf3f7;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-options::-webkit-scrollbar-thumb,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-options::-webkit-scrollbar-thumb {
    border: 2px solid #edf3f7;
    border-radius: 999px;
    background: #5898bd;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    color: #2c546b;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
    transform: none;
    transition: background .15s ease, color .15s ease;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option:hover,
.appointments-admin-v3 .appt-filters-pro .modern-select-option:focus-visible,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option:hover {
    color: #28698e;
    background: #f1f7fb;
    outline: none;
    transform: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option.is-selected {
    color: #2c546b;
    background: transparent;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option.is-selected:hover,
.appointments-admin-v3 .appt-filters-pro .modern-select-option.is-selected:focus-visible {
    color: #28698e;
    background: #f1f7fb;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option-check,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1.5px solid #accbdd;
    border-radius: 5px;
    color: transparent;
    background: #fff;
    box-shadow: none;
    font-size: 0;
    transition: border-color .15s ease, background .15s ease;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option.is-selected .modern-select-option-check,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option input:checked + .tenant-checkbox-mark {
    border-color: #2f739b;
    color: transparent;
    background: #2f739b;
    box-shadow: none;
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option.is-selected .modern-select-option-check::after,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option input:checked + .tenant-checkbox-mark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.appointments-admin-v3 .appt-filters-pro .modern-select-option > span:last-child,
.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.appointments-admin-v3 .appt-filters-pro .tenant-checkbox-option-all {
    margin: 0 0 2px;
    border: 1px solid #dce9f0;
    background: #f9fcfe;
}

@media (max-width: 720px) {
    .appointments-admin-v3 .appt-filters-pro .modern-select-menu,
    .appointments-admin-v3 .appt-filters-pro .tenant-checkbox-filter-menu {
        position: fixed;
        z-index: 1500;
        top: 50%;
        right: 16px;
        left: 16px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 40px);
        overflow: auto;
        transform: translateY(-50%);
    }

    .appointments-admin-v3 .appt-filters-pro .modern-select.is-open .modern-select-menu {
        transform: translateY(-50%);
    }
}

/* Multi-select dashboard filters — v2.1.27 */
.appointments-admin-v3 .appt-filters-pro .modern-select.is-multiple .modern-select-option:first-child {
    margin: 0 0 2px;
    border: 1px solid #dce9f0;
    background: #f9fcfe;
}

.appointments-admin-v3 .appt-filters-pro .modern-select.is-multiple .modern-select-option:first-child:hover,
.appointments-admin-v3 .appt-filters-pro .modern-select.is-multiple .modern-select-option:first-child:focus-visible {
    color: #28698e;
    background: #f1f7fb;
}

/* Dashboard filters: maximum six controls per row — v2.1.28 */
@media (min-width: 1201px) {
    .appointments-admin-v3 .appt-filters-pro {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: end;
    }

    .appointments-admin-v3 .appt-filters-pro > .field,
    .appointments-admin-v3 .appt-filters-pro > .filter-actions-pro,
    .appointments-admin-v3 .appt-filters-pro > .search-field-pro {
        min-width: 0;
        grid-column: auto;
    }

    .appointments-admin-v3 .appt-filters-pro > .filter-actions-pro {
        grid-column: span 2;
    }

    .appointments-admin-v3 .appt-filters-pro > .filter-actions-pro .filter-actions-buttons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }
}


/* Enforce a maximum of six dashboard filters per desktop row — v2.1.29 */
@media (min-width: 1201px) {
    .appointments-admin-v3 form.appt-filters.appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        grid-auto-flow: row;
        align-items: end;
    }

    .appointments-admin-v3 form.appt-filters.appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) > .field,
    .appointments-admin-v3 form.appt-filters.appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) > .search-field-pro {
        min-width: 0;
        grid-column: auto;
    }

    .appointments-admin-v3 form.appt-filters.appt-filters-pro:not(.calendar-filters-pro):not(.settings-tenant-filters-pro) > .filter-actions-pro {
        min-width: 0;
        grid-column: span 2;
    }
}

/* Filter action buttons occupy one filter control — v2.1.30 */
.appointments-admin-v3 .appt-filters-pro > .filter-actions-pro,
.appointments-admin-v3 .appt-filters-pro > .calendar-filter-actions-pro,
.appointments-admin-v3 .settings-tenant-filters-pro > .filter-actions-pro {
    grid-column: auto !important;
    align-self: end;
    min-width: 0;
    padding: 0;
}

.appointments-admin-v3 .appt-filters-pro > .filter-actions-pro .filter-actions-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.appointments-admin-v3 .appt-filters-pro > .filter-actions-pro .filter-actions-buttons .btn-appt {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding-inline: 8px;
    justify-content: center;
    white-space: nowrap;
}


/* Compact dashboard navigation actions — v2.1.32 */
.appointments-admin-nav-tools {
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.appointments-admin-nav-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.appointments-nav-action {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 58px;
    padding: 0 17px;
    border: 1px solid #c4dae7;
    border-radius: 17px;
    color: #2a536a;
    background: #fff;
    box-shadow: 0 10px 28px rgba(24, 56, 74, .055);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.appointments-nav-action:hover {
    transform: translateY(-1px);
    border-color: #96bdd4;
    color: #2a536a;
    background: #f9fcfd;
    box-shadow: 0 15px 34px rgba(34, 75, 99, .1);
}

.appointments-nav-action.is-primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #4ba0d2 0%, #327da8 100%);
    box-shadow: 0 12px 26px rgba(62, 147, 196, .23);
}

.appointments-nav-action.is-primary:hover {
    color: #fff;
    background: linear-gradient(135deg, #4ba0d2 0%, #327da8 100%);
    box-shadow: 0 16px 32px rgba(62, 147, 196, .3);
}

.appointments-nav-action svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    color: #4390bd;
}

.appointments-nav-action.is-primary svg {
    color: #fff;
}

@media (max-width: 1180px) {
    .appointments-admin-nav-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .appointments-admin-nav-actions {
        flex: 1 1 auto;
        flex-wrap: wrap;
    }

    .appointments-nav-action {
        flex: 1 1 170px;
    }

    .appointments-dashboard-back {
        flex: 1 1 210px;
    }
}

@media (max-width: 760px) {
    .appointments-admin-nav-tools {
        display: grid;
        grid-template-columns: 1fr;
    }

    .appointments-admin-nav-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .appointments-admin-nav-actions:has(.appointments-nav-action:only-child) {
        grid-template-columns: 1fr;
    }

    .appointments-nav-action,
    .appointments-dashboard-back {
        width: 100%;
        min-height: 50px;
        padding-inline: 12px;
    }
}

@media (max-width: 480px) {
    .appointments-admin-nav-actions {
        grid-template-columns: 1fr;
    }
}

/* Swift Fit tenant 4 brand lock — v2.2.0 */
.appointments-brand-logo {
    flex: 0 0 176px;
    min-height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 7px 12px;
    border: 1px solid #DCE7ED;
    border-radius: 17px;
    background: #FFFFFF;
    box-shadow: 0 10px 28px rgba(16, 24, 32, .06);
    color: #101820;
    text-decoration: none;
}

.appointments-brand-logo img {
    width: 78px;
    max-height: 42px;
    object-fit: contain;
}

.appointments-brand-logo span,
.appointments-brand-logo strong,
.appointments-brand-logo small {
    display: block;
}

.appointments-brand-logo strong {
    font-size: 13px;
    line-height: 1.2;
}

.appointments-brand-logo small {
    margin-top: 4px;
    color: #6D7883;
    font-size: 10px;
    white-space: nowrap;
}

.appointments-brand-logo:hover {
    border-color: #8CCFED;
    box-shadow: 0 14px 32px rgba(13, 147, 220, .13);
    transform: translateY(-1px);
}

/* Keep the logo readable on all dark Swift Fit surfaces. */
.bf-landing-nav-logo img,
.bf-mobile-hero-logo img,
.booking-brand-logo img,
.bf-landing-logo-stage img {
    object-fit: contain;
}

@media (max-width: 1180px) {
    .appointments-admin-nav-shell {
        flex-wrap: wrap;
    }

    .appointments-brand-logo {
        flex-basis: 160px;
    }

    .appointments-admin-nav-shell .appointments-tabs-pro {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .appointments-brand-logo {
        width: 100%;
        flex: 1 1 100%;
    }
}
