* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: #1f2430;
    background: #f6f3fb;
}

body.modal-open {
    overflow: hidden;
}

a {
    color: #6b2fb3;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 48px;
}

.hero-card,
.panel {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(61, 43, 89, 0.08);
    padding: 24px;
}

.hero-card {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.hero-meta {
    display: grid;
    gap: 10px;
    min-width: 280px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #8b5dd2;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lead,
.muted {
    color: #66607a;
}

.small-text {
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 24px;
}

.booking-experience,
.services-showcase {
    margin-bottom: 28px;
}

.booking-experience {
    padding: 32px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    background:
        radial-gradient(circle at top left, rgba(255, 226, 239, 0.85), transparent 26%),
        radial-gradient(circle at top right, rgba(211, 182, 250, 0.45), transparent 30%),
        linear-gradient(180deg, #fffefe 0%, #fbf7ff 100%);
}

.booking-intro {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 28px;
}

.booking-title {
    margin-bottom: 10px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #261635;
}

.booking-lead {
    max-width: 760px;
    margin-bottom: 0;
}

.booking-highlight {
    display: grid;
    gap: 6px;
    min-width: 220px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(173, 130, 234, 0.18);
    box-shadow: 0 18px 34px rgba(99, 57, 145, 0.08);
}

.booking-highlight strong {
    color: #512f7d;
    font-size: 18px;
}

.booking-highlight span {
    color: #6a617a;
    font-size: 14px;
}

.booking-form-grid {
    display: grid;
    gap: 24px;
}

.booking-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.booking-launch h2 {
    margin-bottom: 8px;
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.booking-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 16, 40, 0.56);
    backdrop-filter: blur(8px);
}

.booking-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    padding: 26px;
    border-radius: 30px;
    border: 1px solid rgba(230, 220, 244, 0.9);
    background: #fbf7ff;
    box-shadow: 0 32px 70px rgba(38, 22, 53, 0.22);
}

.booking-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.booking-modal-header h2 {
    margin-bottom: 0;
}

.booking-modal .booking-experience {
    margin: 0;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stepper-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid rgba(219, 202, 244, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    color: #756b88;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stepper-item.is-active {
    border-color: rgba(125, 69, 209, 0.34);
    background: linear-gradient(180deg, #ffffff 0%, #f6eeff 100%);
    box-shadow: 0 16px 30px rgba(103, 62, 155, 0.12);
    transform: translateY(-2px);
}

.stepper-item.is-complete {
    border-color: rgba(99, 190, 142, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #eefaf3 100%);
}

.stepper-item strong,
.stepper-item span {
    display: block;
}

.stepper-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #f0e7ff;
    color: #6b2fb3;
    font-size: 16px;
    font-weight: 800;
}

.stepper-item.is-active .stepper-index {
    background: linear-gradient(135deg, #7d45d1, #d16ce5);
    color: #fff;
}

.stepper-item.is-complete .stepper-index {
    background: linear-gradient(135deg, #3bb273, #7bdca4);
    color: #fff;
}

.booking-global-feedback {
    margin-bottom: 20px;
}

.booking-global-feedback:empty {
    display: none;
}

.public-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px 22px;
    border-radius: 24px;
    border: 1px solid rgba(230, 220, 244, 0.9);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(14px);
}

.public-nav-brand {
    color: #261635;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
}

.public-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.public-nav-links a,
.mode-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(220, 205, 241, 0.95);
    background: rgba(255, 255, 255, 0.9);
    color: #5e3a82;
    text-decoration: none;
    font-weight: 700;
    transition: 160ms ease;
}

.public-nav-links a:hover,
.public-nav-links a.is-active,
.mode-chip:hover,
.mode-chip.is-active {
    background: linear-gradient(135deg, #7c4dff 0%, #d96baa 100%);
    color: #fff;
    border-color: transparent;
}

.account-portal {
    display: grid;
    gap: 18px;
    padding: 24px;
    margin-bottom: 22px;
    border-radius: 28px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    background: linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(250,246,255,0.88) 100%);
}

.account-portal-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.account-portal-title {
    margin-bottom: 6px;
    font-size: 28px;
    color: #261635;
}

.account-choice-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mode-chip {
    cursor: pointer;
    font-size: 14px;
}

.account-portal-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.95fr);
    gap: 20px;
}

.account-login-form,
.account-dashboard {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    background: rgba(255,255,255,0.84);
}

.account-dashboard-summary,
.account-bookings-list {
    display: grid;
    gap: 14px;
}

.account-summary-card,
.account-booking-card {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(230, 220, 244, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%);
}

.account-booking-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.account-booking-actions,
.account-booking-editor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.account-booking-editor {
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid rgba(230, 220, 244, 0.9);
}

.account-booking-editor label {
    display: grid;
    gap: 6px;
    min-width: 150px;
    flex: 1 1 150px;
}

.reschedule-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
}

.reschedule-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(27, 16, 40, 0.56);
    backdrop-filter: blur(8px);
}

.reschedule-dialog {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100vw - 28px));
    max-height: calc(100vh - 28px);
    margin: 14px auto;
    overflow: auto;
    padding: 26px;
    border-radius: 30px;
    border: 1px solid rgba(230, 220, 244, 0.9);
    background:
        radial-gradient(circle at top left, rgba(255, 226, 239, 0.82), transparent 26%),
        radial-gradient(circle at top right, rgba(211, 182, 250, 0.42), transparent 30%),
        linear-gradient(180deg, #fffefe 0%, #fbf7ff 100%);
    box-shadow: 0 32px 70px rgba(38, 22, 53, 0.22);
}

.reschedule-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.reschedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
}

.account-booking-status {
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1eafe;
    color: #6b2fb3;
    font-size: 12px;
    font-weight: 800;
}

.status-confirmed .account-booking-status {
    background: #ecfdf3;
    color: #027a48;
}

.status-cancelled .account-booking-status {
    background: #fef3f2;
    color: #b42318;
}

.status-completed .account-booking-status {
    background: #eef4ff;
    color: #1d4ed8;
}

.booking-step {
    display: none;
}

.booking-step.is-active {
    display: grid;
    gap: 24px;
}

.step-panel-card,
.confirmation-panel {
    display: grid;
    gap: 20px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 38px rgba(89, 47, 141, 0.06);
}

.step-panel-heading h3 {
    margin-bottom: 6px;
    font-size: 30px;
    color: #261635;
}

.step-panel-heading p {
    margin-bottom: 0;
}

.booking-config {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 20px;
}

.booking-config-card,
.slots-panel,
.details-panel {
    padding: 24px;
    border-radius: 24px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 38px rgba(89, 47, 141, 0.06);
}

.booking-date-card {
    align-self: stretch;
}

.booking-date-note {
    margin-bottom: 0;
}

.calendar-tip-card {
    display: grid;
    gap: 8px;
}

.field-note {
    display: block;
    margin-top: 6px;
    color: #7a6b8d;
    font-size: 12px;
}

.booking-edit-fields {
    display: grid;
    gap: 8px;
    min-width: 170px;
}

.booking-edit-fields input {
    width: 100%;
}

.account-option-card {
    display: grid;
    gap: 10px;
}

.account-fields[hidden] {
    display: none;
}

.stack {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d8d3e4;
    border-radius: 12px;
    background: #fff;
}

textarea {
    resize: vertical;
}

.two-column,
.three-column {
    display: grid;
    gap: 16px;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span {
    grid-column: 1 / -1;
}

.sr-date-picker {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto;
    gap: 8px;
    position: relative;
}

.sr-date-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.sr-date-display {
    font-variant-numeric: tabular-nums;
}

.primary-button,
.ghost-button {
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 700;
}

.primary-button {
    background: linear-gradient(135deg, #7d45d1, #b05ce1);
    color: #fff;
}

.ghost-button {
    background: #efe7fb;
    color: #6b2fb3;
}

.danger-button {
    color: #b42318;
    background: #fee4e2;
}

.small-button {
    padding: 8px 10px;
    font-size: 13px;
}

.slot-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.calendar-panel {
    display: grid;
    gap: 18px;
    padding: 30px;
    border: 1px solid rgba(198, 175, 235, 0.6);
    border-radius: 32px;
    background:
        radial-gradient(circle at top left, rgba(255, 221, 234, 0.75), transparent 22%),
        radial-gradient(circle at top right, rgba(176, 92, 225, 0.16), transparent 30%),
        linear-gradient(180deg, #fffefe 0%, #faf7ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 50px rgba(79, 48, 119, 0.09);
    overflow: hidden;
    position: relative;
}

.calendar-panel-ornate::before {
    content: '';
    position: absolute;
    inset: -40% auto auto -10%;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
    pointer-events: none;
}

.calendar-glow {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    filter: blur(16px);
    opacity: 0.45;
    pointer-events: none;
}

.calendar-glow-left {
    top: -40px;
    left: -20px;
    background: rgba(255, 170, 205, 0.36);
}

.calendar-glow-right {
    right: -20px;
    bottom: -20px;
    background: rgba(162, 128, 255, 0.24);
}

.calendar-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.calendar-title {
    margin-bottom: 6px;
    font-size: 30px;
    line-height: 1.1;
}

.calendar-subtitle {
    max-width: 760px;
    margin-bottom: 0;
}

.calendar-selected-date {
    min-width: 270px;
    padding: 18px 18px;
    border: 1px solid rgba(125, 69, 209, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 16px 30px rgba(95, 58, 143, 0.1);
    color: #512f7d;
    font-size: 15px;
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-toolbar,
.calendar-weekdays,
.calendar-legend {
    display: grid;
    gap: 10px;
    align-items: center;
}

.calendar-toolbar {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 12px 0 4px;
}

.calendar-toolbar strong {
    text-align: center;
    text-transform: capitalize;
    font-size: 28px;
    letter-spacing: -0.02em;
    color: #2f2147;
}

.calendar-nav-button {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(125, 69, 209, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.85);
    color: #6b2fb3;
    font-size: 26px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(89, 47, 141, 0.08);
}

.calendar-nav-button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.calendar-weekdays,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 14px;
}

.calendar-weekdays span {
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #66607a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.calendar-grid p {
    grid-column: 1 / -1;
    margin: 0;
}

.calendar-spacer {
    min-height: 1px;
}

.calendar-day {
    display: grid;
    gap: 10px;
    min-height: 154px;
    padding: 18px 18px 16px;
    border: 1px solid rgba(204, 185, 238, 0.8);
    border-radius: 26px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaff 100%);
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    box-shadow: 0 14px 26px rgba(87, 54, 128, 0.06);
    position: relative;
    overflow: hidden;
}

.calendar-day:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: rgba(125, 69, 209, 0.38);
    box-shadow: 0 18px 32px rgba(87, 54, 128, 0.14);
}

.calendar-day-shine {
    position: absolute;
    inset: 0 auto auto -40%;
    width: 80px;
    height: 170%;
    transform: rotate(24deg);
    background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.2s ease, left 0.35s ease;
}

.calendar-day:hover:not(:disabled) .calendar-day-shine {
    left: 120%;
    opacity: 1;
}

.calendar-day:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.calendar-day.is-available {
    border-color: rgba(173, 130, 234, 0.44);
    background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
}

.calendar-day.is-unavailable {
    background: linear-gradient(180deg, #f7f4fb 0%, #f1edf7 100%);
    color: #7f778f;
}

.calendar-day.is-selected {
    border-color: #7d45d1;
    background: linear-gradient(180deg, #f5eeff 0%, #ede2ff 100%);
    box-shadow: inset 0 0 0 1px #7d45d1, 0 18px 34px rgba(97, 51, 151, 0.18);
}

.calendar-day-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.calendar-day-number {
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    color: #2f2147;
}

.calendar-today-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(125, 69, 209, 0.12);
    color: #6b2fb3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calendar-day-status {
    width: 52px;
    height: 6px;
    border-radius: 999px;
}

.calendar-day-status.is-open {
    background: linear-gradient(90deg, #7d45d1, #ca71f8);
}

.calendar-day-status.is-closed {
    background: #d1c8e1;
}

.calendar-day-meta {
    font-size: 15px;
    color: #5d5672;
    font-weight: 600;
}

.calendar-legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 13px;
    color: #66607a;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 999px;
}

.legend-available {
    background: #b794f4;
}

.legend-selected {
    background: #7d45d1;
}

.legend-unavailable {
    background: #d8d3e4;
}

.slot-button {
    display: grid;
    gap: 6px;
    align-items: center;
    justify-items: center;
    min-height: 72px;
    padding: 16px 18px;
    border: 1px solid rgba(173, 130, 234, 0.3);
    background: linear-gradient(180deg, #ffffff 0%, #faf6ff 100%);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    color: #3b2958;
    box-shadow: 0 10px 22px rgba(93, 58, 142, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.slot-button:hover {
    transform: translateY(-1px);
    border-color: rgba(125, 69, 209, 0.42);
    box-shadow: 0 14px 28px rgba(93, 58, 142, 0.12);
}

.slot-button.active {
    background: linear-gradient(135deg, #7d45d1, #b05ce1);
    color: #fff;
    border-color: #7d45d1;
    box-shadow: 0 16px 30px rgba(125, 69, 209, 0.28);
}

.slot-time {
    font-size: 18px;
}

.slot-time-range {
    display: flex;
    gap: 8px;
    align-items: center;
}

.slot-capacity {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.8;
}

.slot-separator {
    opacity: 0.7;
}

.slots-panel {
    display: grid;
    gap: 14px;
}

.slots-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
}

.selection-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.details-panel {
    display: grid;
    gap: 18px;
}

.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.confirmation-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.confirmation-card {
    display: grid;
    gap: 8px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(230, 220, 244, 0.95);
    background: linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%);
    box-shadow: 0 14px 28px rgba(79, 48, 119, 0.05);
}

.confirmation-card-accent {
    border-color: rgba(125, 69, 209, 0.24);
    background: linear-gradient(180deg, #fff9fd 0%, #f6edff 100%);
}

.confirmation-card-full {
    grid-column: 1 / -1;
}

.confirmation-label {
    color: #8b5dd2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.slot-team {
    font-size: 12px;
    color: #7a688c;
    line-height: 1.5;
}

.secondary-cta-panel {
    text-align: left;
}

[hidden] {
    display: none !important;
}

/* Server-rendered pages in the standalone PHP version use these compatibility classes. */
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.narrow { width: min(520px, calc(100% - 32px)); margin: 8vh auto 0; }
.site-header { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 26px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.site-header nav, .row, .inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand { color: #6b2fb3; font-size: 20px; font-weight: 800; }
.card { margin-bottom: 24px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(61, 43, 89, .08); }
.form-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.booking-layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.flash { padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: #ecfdf3; color: #027a48; }
.flash.error { background: #fef3f2; color: #b42318; }
.inline button, .card button, .site-header button { border: 0; border-radius: 12px; padding: 12px 16px; background: linear-gradient(135deg, #7d45d1, #b05ce1); color: #fff; cursor: pointer; font-weight: 700; }
button.secondary { background: #efe7fb; color: #6b2fb3; }
button.danger { background: #fee4e2; color: #b42318; }
.slots { display: flex; flex-wrap: wrap; gap: 10px; }
.slots span { padding: 10px 14px; border-radius: 14px; background: #f4edff; color: #5d2fa1; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; border-bottom: 1px solid #eee8f8; text-align: left; vertical-align: top; }
.card > table { display: block; overflow-x: auto; }

@media (max-width: 820px) {
    .form-grid, .dashboard-grid, .booking-layout { grid-template-columns: 1fr; }
    .site-header { align-items: flex-start; flex-direction: column; }
}

.details-panel-header h3 {
    margin-bottom: 6px;
    font-size: 28px;
    color: #261635;
}

.details-panel-header p {
    margin-bottom: 0;
}

.booking-submit-button {
    min-height: 58px;
    font-size: 16px;
}

.services-showcase {
    padding: 28px;
}

.services-showcase-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.services-showcase-header h2 {
    margin-bottom: 0;
    font-size: 32px;
    color: #261635;
}

.summary-box,
.feedback {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8f5fd;
    min-height: 48px;
}

.summary-box {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.feedback.success {
    background: #ecfdf3;
    color: #027a48;
}

.feedback.error,
.error-text {
    background: #fef3f2;
    color: #b42318;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 22px;
    border: 1px solid rgba(229, 220, 243, 0.9);
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fcf8ff 100%);
    box-shadow: 0 14px 28px rgba(79, 48, 119, 0.05);
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.admin-link {
    margin-top: 20px;
}

.admin-shell .content-grid {
    grid-template-columns: 1fr;
}

.admin-header,
.admin-toolbar,
.button-row,
.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.checkbox-row {
    justify-content: flex-start;
}

.checkbox-row input {
    width: auto;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    background: #f4edff;
    color: #5d2fa1;
    font-weight: 700;
}

.admin-nav-link.is-active {
    background: linear-gradient(135deg, #7d45d1, #b05ce1);
    color: #fff;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.admin-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.admin-section-heading h2 {
    margin-bottom: 0;
}

.service-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.service-picker-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e9def9;
    border-radius: 16px;
    background: #fbf8ff;
}

.service-picker-item input {
    width: auto;
}

.employee-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 999px;
    background: var(--employee-color, #7d45d1);
}

.compact-form {
    margin-bottom: 20px;
}

.table-shell {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eee8f8;
    text-align: left;
    vertical-align: top;
}

.action-cell {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.bookings-panel {
    margin-bottom: 40px;
}

.panel-soft {
    background: #fcf9ff;
}

.admin-customer-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.35fr);
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 18px;
    border: 1px solid #eadffd;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(110, 84, 153, 0.08);
}

.stat-card-accent {
    background: linear-gradient(135deg, rgba(125, 69, 209, 0.12), rgba(255, 255, 255, 0.95));
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #875fb8;
}

.is-selected-row {
    background: rgba(125, 69, 209, 0.06);
}

@media (max-width: 1180px) {
    .admin-customer-layout {
        grid-template-columns: 1fr;
    }

    .booking-launch {
        align-items: stretch;
        flex-direction: column;
    }

    .booking-modal-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        padding: 16px;
        border-radius: 22px;
    }

    .public-nav,
    .account-portal-grid,
    .booking-config,
    .reschedule-layout,
    .selection-stage {
        grid-template-columns: 1fr;
    }

    .service-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .confirmation-summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .stepper,
    .two-column,
    .three-column,
    .hero-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .action-cell,
    .admin-header,
    .admin-toolbar,
    .button-row,
    .public-nav,
    .calendar-panel-header,
    .slots-panel-header,
    .booking-intro,
    .services-showcase-header,
    .account-portal-header,
    .admin-section-heading {
        flex-direction: column;
        align-items: stretch;
    }

    .summary-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-experience,
    .services-showcase,
    .calendar-panel,
    .booking-config-card,
    .slots-panel,
    .details-panel,
    .step-panel-card,
    .confirmation-panel,
    .reschedule-dialog {
        padding: 20px;
    }

    .booking-config,
    .selection-stage,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 8px;
    }

    .calendar-day {
        min-height: 96px;
        padding: 12px 10px;
        border-radius: 18px;
    }

    .calendar-day-number {
        font-size: 22px;
    }

    .calendar-day-meta,
    .calendar-weekdays span,
    .calendar-legend {
        font-size: 11px;
    }

    .calendar-legend {
        grid-template-columns: 1fr;
    }

    .calendar-title {
        font-size: 26px;
    }

    .calendar-toolbar strong {
        font-size: 18px;
    }

    .calendar-selected-date {
        min-width: 100%;
        font-size: 13px;
        padding: 14px 16px;
    }

    .calendar-nav-button {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        font-size: 20px;
    }

    .slot-list {
        grid-template-columns: 1fr;
    }

    .slot-button {
        min-height: 60px;
        font-size: 15px;
    }

    .details-panel-header h3,
    .services-showcase-header h2 {
        font-size: 24px;
    }

    .booking-title {
        font-size: 30px;
    }

    .booking-highlight {
        min-width: 100%;
    }

    .step-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .stepper-item {
        padding: 14px 16px;
    }
}

/* Unified standalone application pages */
.theme-admin {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 4%, rgba(255, 220, 236, 0.72), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(190, 157, 244, 0.32), transparent 28%),
        #f7f3fb;
}

.admin-shell {
    display: grid;
    gap: 22px;
}

.admin-header {
    padding: 30px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(211, 182, 250, 0.42), transparent 34%),
        linear-gradient(135deg, #fff 0%, #fff8fc 52%, #f7efff 100%);
    box-shadow: 0 22px 48px rgba(61, 43, 89, 0.1);
}

.admin-header h1 {
    margin-bottom: 8px;
    color: #261635;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.03em;
}

.admin-header .lead {
    max-width: 680px;
    margin-bottom: 0;
}

.admin-header-actions a {
    padding: 11px 15px;
    border: 1px solid rgba(125, 69, 209, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    color: #60369f;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(79, 48, 119, 0.06);
}

.admin-toolbar {
    position: sticky;
    top: 10px;
    z-index: 20;
    padding: 12px;
    border: 1px solid rgba(225, 213, 243, 0.88);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(61, 43, 89, 0.08);
    backdrop-filter: blur(14px);
}

.card {
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(225, 213, 243, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px rgba(61, 43, 89, 0.08);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #7d45d1, #d16ce5, #f0a7c2);
    opacity: 0.72;
}

.card h2 {
    margin-bottom: 20px;
    color: #2f2147;
    font-size: 26px;
}

.form-grid {
    align-items: end;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid > button {
    min-height: 48px;
}

fieldset {
    min-width: 0;
    padding: 16px;
    border: 1px solid #e8def6;
    border-radius: 16px;
    background: #fcf9ff;
}

legend {
    padding: 0 8px;
    color: #60369f;
    font-weight: 800;
}

.check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 0;
}

.check input {
    width: 18px;
    height: 18px;
    accent-color: #7d45d1;
}

.card table {
    min-width: 720px;
}

.card > table {
    width: 100%;
    overflow-x: auto;
}

.card th {
    padding: 13px 12px;
    color: #766a88;
    background: #faf7ff;
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.card td {
    padding: 15px 12px;
}

.card tbody tr {
    transition: background 0.18s ease;
}

.card tbody tr:hover {
    background: #fdf9ff;
}

.card tbody tr:last-child td {
    border-bottom: 0;
}

.card .inline {
    flex-wrap: nowrap;
}

.card .inline select,
.card .inline input {
    min-width: 130px;
}

.card button {
    box-shadow: 0 10px 20px rgba(107, 47, 179, 0.15);
}

.card button.danger {
    box-shadow: none;
}

.login-panel {
    width: min(520px, 100%);
    margin-inline: auto;
}

.theme-public .panel,
.theme-admin .panel {
    border: 1px solid rgba(225, 213, 243, 0.9);
}

@media (max-width: 820px) {
    .admin-header {
        padding: 22px;
    }

    .admin-header-actions,
    .admin-nav {
        width: 100%;
    }

    .admin-header-actions a,
    .admin-nav-link {
        text-align: center;
    }

    .admin-toolbar {
        position: static;
    }

    .card {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .card .inline {
        align-items: stretch;
        flex-direction: column;
    }

    .card .inline select,
    .card .inline input,
    .card .inline button {
        width: 100%;
    }
}
