.booking-admin-page {
    background: #f4f7fa;
    color: #29485f;
    min-height: calc(100vh - 64px);
    padding: 26px;
}

.booking-admin-heading {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.booking-eyebrow {
    color: #08758a;
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .1em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.booking-admin-heading h1 {
    color: #123c5c;
    font-size: 30px;
    font-weight: 850;
    letter-spacing: -.02em;
    margin: 0 0 5px;
}

.booking-admin-heading p {
    color: #6c8293;
    margin: 0;
}

.booking-admin-actions {
    display: flex;
    gap: 8px;
}

.booking-admin-message {
    box-shadow: 0 8px 24px rgba(30, 62, 84, .06);
    margin-bottom: 18px;
}

.booking-stat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.booking-stat-card {
    background: #fff;
    border: 1px solid #dfe8ee;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(27, 64, 91, .05);
    color: #476579;
    display: grid;
    min-height: 138px;
    padding: 20px;
    position: relative;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.booking-stat-card::after {
    background: var(--stat-color, #08758a);
    border-radius: 12px 0 0 12px;
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.booking-stat-card:hover {
    border-color: color-mix(in srgb, var(--stat-color, #08758a) 38%, #dfe8ee);
    box-shadow: 0 14px 34px rgba(27, 64, 91, .1);
    transform: translateY(-2px);
}

.booking-stat-card > span {
    align-items: center;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    text-transform: uppercase;
}

.booking-stat-card > span i {
    color: var(--stat-color, #08758a);
    font-size: 16px;
}

.booking-stat-card strong {
    color: #173f5d;
    font-size: 34px;
    font-weight: 850;
    line-height: 1;
    margin: 12px 0 6px;
}

.booking-stat-card small {
    color: #8293a0;
    font-size: 11px;
}

.booking-stat-card.is-total { --stat-color: #08758a; }
.booking-stat-card.is-pending { --stat-color: #d28a13; }
.booking-stat-card.is-confirmed { --stat-color: #1778ba; }
.booking-stat-card.is-completed { --stat-color: #16845a; }

.booking-admin-card {
    background: #fff;
    border: 1px solid #dee8ee;
    border-radius: 12px;
    box-shadow: 0 12px 34px rgba(29, 68, 96, .06);
    overflow: hidden;
}

.booking-admin-filters {
    align-items: center;
    border-bottom: 1px solid #e5edf2;
    display: grid;
    gap: 9px;
    grid-template-columns: minmax(280px, 1fr) 190px 175px auto auto;
    padding: 16px;
}

.booking-search-field {
    position: relative;
}

.booking-search-field i {
    color: #8294a2;
    left: 13px;
    position: absolute;
    top: 12px;
}

.booking-search-field input {
    padding-left: 38px;
}

.booking-clear-filter {
    font-size: 12px;
    white-space: nowrap;
}

.booking-table-summary {
    align-items: center;
    background: #fbfcfd;
    border-bottom: 1px solid #e7edf2;
    color: #657d8f;
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    padding: 10px 16px;
}

.booking-admin-table th {
    background: #f3f7fa;
    border-color: #e2eaf0;
    color: #61788a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    padding: 12px 14px;
    text-transform: uppercase;
    white-space: nowrap;
}

.booking-admin-table td {
    border-color: #e8eef2;
    color: #35536a;
    font-size: 13px;
    padding: 13px 14px;
    vertical-align: middle;
}

.booking-admin-table td > strong,
.booking-admin-table td > small,
.booking-admin-table td > a,
.booking-admin-table td > span {
    display: block;
}

.booking-admin-table td > a {
    color: #08758a;
    font-size: 12px;
    margin-top: 4px;
    text-decoration: none;
}

.booking-admin-table td > small {
    color: #8092a0;
    font-size: 11px;
    margin-top: 3px;
}

.booking-code-cell {
    align-items: center;
    display: flex;
    gap: 10px;
    min-width: 160px;
}

.booking-code-cell > span:last-child {
    display: grid;
}

.booking-code-cell strong {
    color: #143f5f;
    font-size: 13px;
}

.booking-code-cell small {
    color: #8496a3;
    font-size: 10px;
    margin-top: 2px;
}

.booking-code-icon {
    align-items: center;
    background: #e8f4f6;
    border-radius: 9px;
    color: #08758a;
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.booking-customer-name {
    color: #224963;
}

.booking-truncate {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-date,
.booking-time {
    white-space: nowrap;
}

.booking-date {
    color: #244d68;
    font-weight: 750;
}

.booking-time {
    color: #788c9b;
    font-size: 11px;
    margin-top: 4px;
}

.booking-date i,
.booking-time i {
    margin-right: 5px;
    width: 13px;
}

.booking-status-select {
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    min-width: 138px;
    padding-left: 11px;
}

.booking-status-select.status-pending { background-color: #fff5df; color: #986607; }
.booking-status-select.status-confirmed { background-color: #e5f2fb; color: #17679e; }
.booking-status-select.status-completed { background-color: #e5f6ee; color: #137246; }
.booking-status-select.status-canceled { background-color: #f3f4f5; color: #7b8790; }

.booking-empty {
    color: #8293a0 !important;
    height: 230px;
    text-align: center;
}

.booking-empty i,
.booking-empty strong,
.booking-empty span {
    display: block;
}

.booking-empty i {
    color: #a9bac5;
    font-size: 32px;
    margin-bottom: 12px;
}

.booking-empty strong {
    color: #536d80;
    font-size: 15px;
}

.booking-empty span {
    font-size: 12px;
    margin-top: 4px;
}

.booking-modal-backdrop {
    align-items: center;
    background: rgba(12, 34, 50, .64);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 1200;
}

.booking-modal {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 30px 90px rgba(5, 25, 40, .3);
    max-height: calc(100vh - 36px);
    max-width: 860px;
    overflow: auto;
    width: 100%;
}

.booking-modal > header {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid #e3ebf0;
    display: flex;
    justify-content: space-between;
    padding: 18px 22px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.booking-modal > header span {
    color: #08758a;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.booking-modal > header h2 {
    color: #173f5d;
    font-size: 21px;
    font-weight: 850;
    margin: 3px 0 0;
}

.booking-validation-summary {
    margin: 18px 22px 0;
}

.booking-validation-summary:empty {
    display: none;
}

.booking-editor-section {
    border-bottom: 1px solid #e7edf2;
    padding: 22px;
}

.booking-editor-section-title {
    align-items: center;
    display: flex;
    gap: 10px;
    margin-bottom: 17px;
}

.booking-editor-section-title > span {
    align-items: center;
    background: #e8f4f6;
    border-radius: 7px;
    color: #08758a;
    display: flex;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.booking-editor-section-title strong,
.booking-editor-section-title small {
    display: block;
}

.booking-editor-section-title strong {
    color: #234962;
    font-size: 14px;
}

.booking-editor-section-title small {
    color: #8093a0;
    font-size: 10px;
}

.booking-editor-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-editor-grid label {
    color: #506b7e;
    font-size: 12px;
    font-weight: 750;
}

.booking-editor-grid label em {
    color: #d73b42;
    font-style: normal;
}

.booking-editor-grid .form-control,
.booking-editor-grid .form-select {
    margin-top: 5px;
}

.booking-editor-grid .wide {
    grid-column: 1 / -1;
}

.booking-modal form > footer {
    background: #fbfcfd;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding: 15px 22px;
}

/* Customer booking portal */
.customer-booking-page {
    margin: 0 auto;
    max-width: 1220px;
    padding: 28px 24px 54px;
}

.customer-booking-hero {
    align-items: center;
    background: linear-gradient(125deg, #073f69, #08778b);
    border-radius: 20px;
    color: #fff;
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    margin-bottom: 22px;
    overflow: hidden;
    padding: 38px 42px;
    position: relative;
}

.customer-booking-hero::before,
.customer-booking-hero::after {
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    content: "";
    position: absolute;
}

.customer-booking-hero::before { height: 300px; right: -90px; top: -180px; width: 300px; }
.customer-booking-hero::after { bottom: -170px; height: 260px; right: 130px; width: 260px; }

.customer-booking-hero-copy,
.customer-booking-steps {
    position: relative;
    z-index: 1;
}

.customer-booking-hero .booking-eyebrow {
    color: #8ae1ec;
}

.customer-booking-hero h1 {
    color: #fff;
    font-size: clamp(30px, 3.3vw, 45px);
    font-weight: 850;
    letter-spacing: -.03em;
    line-height: 1.12;
    margin: 8px 0 13px;
}

.customer-booking-hero p {
    color: #d4edf2;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    max-width: 650px;
}

.customer-booking-steps {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.customer-booking-steps > div {
    align-items: center;
    display: flex;
    gap: 11px;
}

.customer-booking-steps span {
    align-items: center;
    background: #fff;
    border-radius: 50%;
    color: #08758a;
    display: flex;
    font-size: 11px;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.customer-booking-steps strong,
.customer-booking-steps small {
    display: block;
}

.customer-booking-steps strong { color: #fff; font-size: 12px; }
.customer-booking-steps small { color: #c6e4e9; font-size: 10px; margin-top: 2px; }

.customer-booking-layout {
    align-items: start;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
}

.customer-booking-card {
    background: #fff;
    border: 1px solid #dde7ed;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(21, 60, 86, .07);
    overflow: hidden;
}

.customer-booking-card > header {
    border-bottom: 1px solid #e4ebf0;
    padding: 21px 24px;
}

.customer-booking-card > header h2 {
    color: #173f5d;
    font-size: 20px;
    font-weight: 850;
    margin: 0 0 5px;
}

.customer-booking-card > header p {
    color: #758a99;
    font-size: 12px;
    margin: 0;
}

.customer-booking-form {
    padding: 24px;
}

.customer-booking-fields {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.customer-booking-fields label {
    color: #4b687b;
    font-size: 12px;
    font-weight: 750;
}

.customer-booking-fields label > span {
    color: #d73b42;
}

.customer-booking-fields .form-control,
.customer-booking-fields .form-select {
    border-color: #d6e2e9;
    border-radius: 8px;
    margin-top: 6px;
    min-height: 45px;
}

.customer-booking-fields .wide {
    grid-column: 1 / -1;
}

.booking-time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 7px;
}

.booking-time-slots button {
    background: #f4f8fa;
    border: 1px solid #d9e5eb;
    border-radius: 8px;
    color: #536f81;
    font-size: 12px;
    font-weight: 750;
    min-width: 66px;
    padding: 8px 10px;
}

.booking-time-slots button:hover,
.booking-time-slots button.active {
    background: #08758a;
    border-color: #08758a;
    color: #fff;
}

.customer-booking-submit {
    align-items: center;
    border-top: 1px solid #e5ecf1;
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin: 23px -24px -24px;
    padding: 17px 24px;
}

.customer-booking-submit small {
    color: #7b8f9d;
    line-height: 1.5;
    max-width: 430px;
}

.customer-booking-submit .btn {
    min-width: 175px;
}

.customer-booking-aside {
    display: grid;
    gap: 16px;
}

.booking-support-card {
    background: #edf7fa;
    border: 1px solid #d4e9ee;
    border-radius: 14px;
    padding: 21px;
}

.booking-support-card > i {
    color: #08758a;
    font-size: 25px;
    margin-bottom: 13px;
}

.booking-support-card h3 {
    color: #184760;
    font-size: 16px;
    font-weight: 850;
    margin: 0 0 7px;
}

.booking-support-card p {
    color: #668092;
    font-size: 12px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.booking-support-card a {
    color: #08758a;
    display: block;
    font-size: 12px;
    font-weight: 750;
    margin-top: 7px;
}

.customer-booking-history {
    background: #fff;
    border: 1px solid #dde7ed;
    border-radius: 14px;
    overflow: hidden;
}

.customer-booking-history > header {
    align-items: center;
    border-bottom: 1px solid #e5ebef;
    display: flex;
    justify-content: space-between;
    padding: 16px 18px;
}

.customer-booking-history h3 {
    color: #244b64;
    font-size: 14px;
    font-weight: 850;
    margin: 0;
}

.customer-booking-history header span {
    background: #e9f4f6;
    border-radius: 999px;
    color: #08758a;
    font-size: 10px;
    font-weight: 850;
    padding: 4px 8px;
}

.customer-booking-history-list {
    display: grid;
}

.customer-booking-history-item {
    border-bottom: 1px solid #ebf0f3;
    display: grid;
    gap: 4px;
    padding: 14px 18px;
}

.customer-booking-history-item:last-child { border-bottom: 0; }
.customer-booking-history-item > div { align-items: center; display: flex; justify-content: space-between; }
.customer-booking-history-item strong { color: #31536a; font-size: 12px; }
.customer-booking-history-item > span { color: #748a99; font-size: 11px; }
.customer-booking-history-item small { color: #08758a; font-size: 10px; font-weight: 750; }

.booking-status-pill {
    border-radius: 999px;
    font-size: 9px;
    font-weight: 850;
    padding: 4px 7px;
}

.booking-status-pill.status-pending { background: #fff3d9; color: #9b6800; }
.booking-status-pill.status-confirmed { background: #e3f1fa; color: #17699f; }
.booking-status-pill.status-completed { background: #e4f5ec; color: #167249; }
.booking-status-pill.status-canceled { background: #eef0f2; color: #75828b; }

.customer-booking-success {
    padding: 48px 30px;
    text-align: center;
}

.customer-booking-success-icon {
    align-items: center;
    background: #e5f6ee;
    border-radius: 50%;
    color: #16845a;
    display: flex;
    font-size: 28px;
    height: 72px;
    justify-content: center;
    margin: 0 auto 17px;
    width: 72px;
}

.customer-booking-success h2 {
    color: #19445f;
    font-size: 24px;
    font-weight: 850;
}

.customer-booking-success > p {
    color: #6d8291;
    margin: 8px auto 20px;
    max-width: 500px;
}

.customer-booking-ticket {
    background: #f4f8fa;
    border: 1px dashed #b9ccd7;
    border-radius: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, 1fr);
    margin: 0 auto 22px;
    max-width: 560px;
    padding: 17px;
}

.customer-booking-ticket span,
.customer-booking-ticket strong { display: block; }
.customer-booking-ticket span { color: #7b8e9b; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.customer-booking-ticket strong { color: #204b65; font-size: 13px; margin-top: 4px; }

@media (max-width: 1100px) {
    .booking-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .booking-admin-filters { grid-template-columns: 1fr 180px 170px auto; }
    .booking-clear-filter { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 850px) {
    .booking-admin-page { padding: 18px 12px; }
    .booking-admin-heading { align-items: flex-start; flex-direction: column; }
    .booking-admin-filters { grid-template-columns: 1fr 1fr; }
    .booking-search-field { grid-column: 1 / -1; }
    .customer-booking-hero,
    .customer-booking-layout { grid-template-columns: 1fr; }
    .customer-booking-hero { padding: 30px; }
    .customer-booking-steps { grid-template-columns: repeat(3, 1fr); }
    .customer-booking-steps > div { align-items: flex-start; }
}

@media (max-width: 580px) {
    .booking-stat-grid,
    .booking-admin-filters,
    .booking-editor-grid,
    .customer-booking-fields,
    .customer-booking-ticket { grid-template-columns: 1fr; }
    .booking-stat-card { min-height: 120px; }
    .booking-editor-grid .wide,
    .customer-booking-fields .wide { grid-column: auto; }
    .booking-admin-actions { width: 100%; }
    .booking-admin-actions .btn { flex: 1; }
    .customer-booking-page { padding: 16px 12px 40px; }
    .customer-booking-hero { border-radius: 14px; padding: 24px 20px; }
    .customer-booking-steps { grid-template-columns: 1fr; }
    .customer-booking-submit { align-items: stretch; flex-direction: column; }
    .customer-booking-submit .btn { width: 100%; }
}
