/* --- Sedule brand overrides for Radzen material-base theme --- */
:root {
    --rz-primary: #00897B;
    --rz-primary-light: #4DB6AC;
    --rz-primary-lighter: #B2DFDB;
    --rz-secondary: #FF8F00;
    --rz-secondary-light: #FFB74D;
    --rz-info: #1976D2;
    --rz-success: #388E3C;
    --rz-warning: #FFA000;
    --rz-danger: #D32F2F;
    --rz-base-background-color: #FAFAFA;
    --rz-body-background-color: #FAFAFA;
    --rz-border-radius: 8px;
    --rz-button-border-radius: 8px;
    --rz-card-border-radius: 8px;
    --rz-dialog-border-radius: 12px;
    --rz-body-font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

html, body {
    font-family: 'Inter', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
}

h1:focus:not(:focus-visible) {
    outline: none;
}

h1:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "Došlo k chybě."
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
    background: none;
    border: none;
    font-size: 1rem;
    padding: 0.25rem;
    line-height: 1;
}

#components-reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#components-reconnect-modal .components-reconnect-show,
#components-reconnect-modal .components-reconnect-failed,
#components-reconnect-modal .components-reconnect-rejected {
    display: none;
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 400px;
}

/* --- Admin layout --- */

.rz-header {
    background: var(--rz-primary) !important;
    color: #fff !important;
    height: 56px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    z-index: 100;
}

.admin-brand {
    color: #fff !important;
}

.admin-brand .brand-text {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-sidebar {
    width: 250px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
}

.admin-sidebar .rz-panel-menu {
    padding: 0.5rem 0;
}

.admin-sidebar .rz-navigation-item-active > .rz-navigation-item-link {
    background: var(--rz-primary-lighter);
    color: var(--rz-primary);
    font-weight: 500;
}

.user-email {
    font-size: 0.875rem;
    opacity: 0.9;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-boundary-content {
    max-width: 800px;
    margin: 2rem auto;
}

.error-boundary-public,
.error-boundary-auth {
    max-width: 500px;
    margin: 4rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff3f3;
    border: 1px solid #e0b4b4;
    border-radius: 8px;
    color: #333;
}

.error-boundary-public p,
.error-boundary-auth p {
    margin-bottom: 1rem;
}

.error-boundary-link,
.error-boundary-auth a {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: #00897B;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    min-height: 44px;
    line-height: 44px;
}

.admin-placeholder {
    padding: 2rem;
}

.admin-placeholder h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--rz-text-color, #212121);
    margin-bottom: 0.5rem;
}

.admin-placeholder p {
    color: #757575;
}

/* --- Onboarding wizard --- */

.onboarding-container {
    max-width: 640px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rz-primary);
    margin-bottom: 0.25rem;
}

.onboarding-header p {
    color: #757575;
    font-size: 1rem;
}

.onboarding-step {
    padding: 1rem 0;
}

.onboarding-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.working-hours-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.day-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
}

.day-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.day-times {
    display: flex;
    align-items: center;
}

.onboarding-color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-preview {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    flex-shrink: 0;
}

.onboarding-logo-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.onboarding-logo-img {
    max-width: 120px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    object-fit: contain;
}

.onboarding-logo-upload {
    display: flex;
    align-items: center;
}

.onboarding-booking-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.onboarding-done {
    text-align: center;
}

.onboarding-done-icon {
    margin-bottom: 0.5rem;
}

.onboarding-done h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.onboarding-summary {
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: 500;
    color: #757575;
}

.summary-value {
    font-weight: 500;
}

.auth-link-forgot {
    margin-top: 0.5rem;
}

/* --- Services page --- */

.services-page {
    padding: 1.5rem 2rem;
}

.services-category-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.services-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--rz-primary);
    margin: 0 0 0.5rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--rz-primary-lighter);
}

.services-grid .rz-datatable-thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #757575;
}

.service-inactive {
    text-decoration: line-through;
    opacity: 0.6;
}

/* --- Staff page --- */

.staff-page {
    padding: 1.5rem 2rem;
}

.staff-grid .rz-datatable-thead th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #757575;
}

.staff-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.staff-inactive {
    text-decoration: line-through;
    opacity: 0.6;
}

.staff-services-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem;
}

.staff-service-item {
    display: flex;
    align-items: center;
    padding: 0.25rem 0;
}

.working-hours-editor {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
}

/* --- Calendar page --- */

.calendar-page {
    padding: 1rem 1.5rem;
}

.calendar-appointment-content {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
    line-height: 1.3;
    overflow: hidden;
    padding: 1px 2px;
}

.calendar-appointment-service {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-appointment-client {
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive: collapse sidebar on small screens */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 240px;
        position: fixed;
        top: 56px;
        left: 0;
        bottom: 0;
        z-index: 200;
        box-shadow: 2px 0 8px rgba(0, 0, 0, 0.15);
    }

    .user-email {
        display: none;
    }

    .services-page,
    .staff-page {
        padding: 1rem;
    }

    .calendar-page {
        padding: 0.5rem;
    }

    .calendar-page .rz-stack {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .working-hours-row {
        flex-wrap: wrap;
    }

    .day-toggle {
        min-width: 120px;
    }
}

@media (min-width: 769px) {
    .sidebar-toggle {
        display: none;
    }
}

/* --- Auth layout responsive --- */

.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    padding: 1rem;
}

.auth-layout main {
    background: #fff;
    border-radius: var(--rz-card-border-radius, 8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-layout h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #424242;
    margin-bottom: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-button-border-radius, 8px);
    font-size: 0.95rem;
    font-family: inherit;
    color: #212121;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--rz-primary);
}

.auth-layout button[type="submit"] {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border: none;
    border-radius: var(--rz-button-border-radius, 8px);
    background: var(--rz-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
}

.auth-layout button[type="submit"]:hover {
    background: var(--rz-primary-light);
}

.error-summary {
    background: #ffebee;
    border: 1px solid #e53935;
    border-radius: var(--rz-border-radius, 8px);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #c62828;
    font-size: 0.9rem;
}

.error-summary p {
    margin: 0;
}

.auth-link {
    text-align: center;
    font-size: 0.9rem;
    color: #616161;
    margin-top: 0.75rem;
}

.auth-link a {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* --- Public booking: Studio hero --- */

.studio-hero {
    background: #fff;
    border-radius: var(--rz-card-border-radius, 8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.studio-hero-inner {
    display: flex;
    flex-direction: column;
}

.studio-hero-info {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.studio-hero-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.studio-hero-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.studio-hero-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.studio-hero-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212121;
    margin: 0;
    line-height: 1.3;
}

.studio-hero-detail {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #616161;
    font-size: 0.95rem;
    line-height: 1.5;
}

.studio-hero-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #757575;
}

.studio-hero-phone {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 500;
}

.studio-hero-phone:hover {
    text-decoration: underline;
}

.studio-hero-hours {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.studio-hero-hours-label {
    font-weight: 600;
    color: #424242;
}

.studio-hero-hours-grid {
    display: grid;
    grid-template-columns: auto auto;
    gap: 0.15rem 1rem;
    padding-left: 1.6rem;
    font-size: 0.9rem;
}

.studio-hero-hours-row {
    display: contents;
}

.studio-hero-day {
    color: #616161;
    font-weight: 500;
}

.studio-hero-time {
    color: #424242;
}

.studio-hero-visual {
    position: relative;
    width: 100%;
    min-height: 200px;
}

.studio-hero-photo {
    width: 100%;
    height: 100%;
    min-height: 200px;
    max-height: 320px;
    object-fit: cover;
    display: block;
}

.studio-hero-photo-placeholder {
    width: 100%;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
}

.studio-hero-placeholder-icon {
    width: 64px;
    height: 64px;
    color: #fff;
}

@media (min-width: 768px) {
    .studio-hero-inner {
        flex-direction: row;
    }

    .studio-hero-info {
        flex: 1;
        min-width: 0;
        padding: 2rem 2.5rem;
    }

    .studio-hero-visual {
        width: 40%;
        max-width: 400px;
        min-height: 280px;
    }

    .studio-hero-photo {
        min-height: 280px;
        max-height: none;
        height: 100%;
    }

    .studio-hero-photo-placeholder {
        min-height: 280px;
    }
}

/* --- Public layout --- */

.public-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
}

.public-main {
    flex: 1;
}

.public-footer {
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    color: #757575;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.public-footer-link {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 600;
}

.public-footer-link:hover {
    text-decoration: underline;
}

.public-footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.public-footer-legal {
    color: #757575;
    text-decoration: none;
    font-size: 0.8rem;
}

.public-footer-legal:hover {
    color: var(--rz-primary);
    text-decoration: underline;
}

.public-footer-legal:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

/* --- Legal pages --- */

.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.legal-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 0.25rem;
}

.legal-updated {
    font-size: 0.85rem;
    color: #9e9e9e;
    margin: 0 0 2rem;
}

.legal-section {
    margin-bottom: 1.5rem;
}

.legal-section h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #424242;
    margin: 0 0 0.5rem;
}

.legal-section p {
    font-size: 0.95rem;
    color: #616161;
    line-height: 1.6;
    margin: 0 0 0.5rem;
}

.legal-section ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    font-size: 0.95rem;
    color: #616161;
    line-height: 1.6;
    margin-bottom: 0.25rem;
}

/* --- Booking page layout --- */

.booking-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem;
    padding-bottom: 5rem;
}

.booking-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    gap: 1rem;
    color: #757575;
}

.booking-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--rz-primary);
    border-radius: 50%;
    animation: booking-spin 0.8s linear infinite;
}

@keyframes booking-spin {
    to { transform: rotate(360deg); }
}

.booking-not-found {
    text-align: center;
    padding: 4rem 1rem;
    color: #616161;
}

.booking-not-found h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #424242;
    margin-bottom: 0.5rem;
}

.booking-sections {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.booking-section {
    background: #fff;
    border-radius: var(--rz-card-border-radius, 8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.booking-section--visible {
    opacity: 1;
    pointer-events: auto;
}

.booking-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
}

.booking-section-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--rz-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.booking-section--visible .booking-section-number {
    background: var(--rz-primary);
}

.booking-section:not(.booking-section--visible) .booking-section-number {
    background: #bdbdbd;
}

.booking-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: #212121;
}

.booking-section-content {
    padding: 1.25rem;
}

.booking-section-placeholder {
    color: #757575;
    font-style: italic;
    text-align: center;
    padding: 2rem 0;
}

.booking-next-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    margin-top: 1rem;
    border: none;
    border-radius: var(--rz-button-border-radius, 8px);
    background: var(--rz-primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.booking-next-btn:hover:not(:disabled) {
    background: var(--rz-primary-light);
}

.booking-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Sticky bottom bar --- */

.booking-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-bottom-bar--visible {
    transform: translateY(0);
}

.booking-bottom-bar-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.booking-bottom-bar-summary {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.booking-bottom-bar-text {
    font-size: 0.85rem;
    color: #616161;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-bottom-bar-price {
    font-weight: 700;
    color: #212121;
    font-size: 1rem;
}

.booking-bottom-bar-reserve {
    flex-shrink: 0;
    padding: 0.625rem 1.5rem;
    border: none;
    border-radius: var(--rz-button-border-radius, 8px);
    background: var(--rz-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.booking-bottom-bar-reserve:hover:not(:disabled) {
    background: var(--rz-primary-light);
}

.booking-bottom-bar-reserve:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Service categories --- */

.service-category {
    margin-bottom: 1rem;
}

.service-category:last-of-type {
    margin-bottom: 0;
}

.service-category-title {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #757575;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- Service card --- */

.service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-card-border-radius, 8px);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card--selected {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 1px var(--rz-primary);
    background: #f8f5ff;
}

.service-card-info {
    flex: 1;
    min-width: 0;
}

.service-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: #212121;
}

.service-card-description {
    font-size: 0.85rem;
    color: #616161;
    margin: 0.25rem 0 0;
    line-height: 1.4;
}

.service-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.375rem;
    font-size: 0.85rem;
    color: #757575;
}

.service-card-duration::before {
    content: "⏱ ";
}

.service-card-price {
    font-weight: 600;
    color: #424242;
}

.service-card-toggle {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    border: 2px solid var(--rz-primary);
    border-radius: var(--rz-button-border-radius, 8px);
    background: transparent;
    color: var(--rz-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.service-card-toggle:hover {
    background: var(--rz-primary);
    color: #fff;
}

.service-card-toggle--selected {
    background: var(--rz-primary);
    color: #fff;
    border-color: var(--rz-primary);
}

.service-card-toggle--selected:hover {
    background: transparent;
    color: var(--rz-primary);
}

/* --- Staff picker --- */

.staff-picker {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.staff-picker-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    color: #212121;
}

.staff-picker-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.staff-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-card-border-radius, 8px);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.staff-card--selected {
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 1px var(--rz-primary);
    background: #f8f5ff;
}

.staff-card-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #616161;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.staff-card--selected .staff-card-avatar {
    background: var(--rz-primary);
    color: #fff;
}

.staff-card-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #212121;
}

.staff-card-toggle {
    flex-shrink: 0;
    padding: 0.375rem 0.75rem;
    border: 2px solid var(--rz-primary);
    border-radius: var(--rz-button-border-radius, 8px);
    background: transparent;
    color: var(--rz-primary);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
    margin-left: auto;
}

.staff-card-toggle:hover {
    background: var(--rz-primary);
    color: #fff;
}

.staff-card-toggle--selected {
    background: var(--rz-primary);
    color: #fff;
}

.staff-card-toggle--selected:hover {
    background: transparent;
    color: var(--rz-primary);
}

/* --- Booking collision alert --- */

.booking-collision-alert {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: var(--rz-card-border-radius, 8px);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #e65100;
    font-size: 0.9rem;
}

.booking-collision-alert p {
    margin: 0;
}

/* --- Booking confirmation --- */

.confirmation-page {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.confirmation-success {
    text-align: center;
    margin-bottom: 1.5rem;
}

.confirmation-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4caf50;
    color: #fff;
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.confirmation-success h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212121;
    margin: 0 0 0.5rem;
}

.confirmation-subtitle {
    font-size: 1rem;
    color: #757575;
    margin: 0;
}

.confirmation-card {
    background: #fff;
    border-radius: var(--rz-card-border-radius, 8px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.confirmation-detail {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.confirmation-detail:last-child {
    border-bottom: none;
}

.confirmation-label {
    font-size: 0.9rem;
    color: #757575;
}

.confirmation-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212121;
    text-align: right;
}

.confirmation-price {
    color: var(--rz-primary);
}

.confirmation-cancel-info {
    font-size: 0.85rem;
    color: #757575;
    text-align: center;
    margin: 0 0 1.5rem;
}

.confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.confirmation-btn {
    display: block;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--rz-button-border-radius, 8px);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.confirmation-btn--calendar {
    background: var(--rz-primary);
    color: #fff;
}

.confirmation-btn--calendar:hover {
    background: var(--rz-primary-light);
}

.confirmation-btn--new {
    background: transparent;
    border: 2px solid var(--rz-primary);
    color: var(--rz-primary);
}

.confirmation-btn--new:hover {
    background: var(--rz-primary);
    color: #fff;
}

.confirmation-btn--ics {
    background: transparent;
    border: 2px solid #616161;
    color: #616161;
}

.confirmation-btn--ics:hover {
    background: #616161;
    color: #fff;
}

.confirmation-btn--cancel {
    background: transparent;
    border: 2px solid #e53935;
    color: #e53935;
}

.confirmation-btn--cancel:hover {
    background: #e53935;
    color: #fff;
}

.confirmation-btn--cta {
    background: #43a047;
    color: #fff;
}

.confirmation-btn--cta:hover {
    background: #388e3c;
    color: #fff;
}

.booking-bottom-bar-reserve--loading {
    opacity: 0.7;
    cursor: wait;
}

/* --- Contact form --- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #424242;
}

.contact-form-input {
    padding: 0.625rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-button-border-radius, 8px);
    font-size: 0.95rem;
    font-family: inherit;
    color: #212121;
    background: #fff;
    transition: border-color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form-input:focus {
    outline: none;
    border-color: var(--rz-primary);
}

.contact-form-input--error {
    border-color: #e53935;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form-phone {
    display: flex;
    gap: 0.5rem;
}

.contact-form-country {
    flex-shrink: 0;
    width: 120px;
    padding: 0.625rem 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-button-border-radius, 8px);
    font-size: 0.9rem;
    font-family: inherit;
    color: #212121;
    background: #fff;
    cursor: pointer;
}

.contact-form-country:focus {
    outline: none;
    border-color: var(--rz-primary);
}

.contact-form-phone-input {
    flex: 1;
}

.contact-form-consent {
    margin-top: 0.5rem;
}

.contact-form-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #616161;
    cursor: pointer;
}

.contact-form-checkbox {
    margin-top: 0.25rem;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--rz-primary);
}

.contact-form-link {
    color: var(--rz-primary);
    text-decoration: none;
}

.contact-form-link:hover {
    text-decoration: underline;
}

.contact-form-error {
    font-size: 0.8rem;
    color: #e53935;
}

@media (max-width: 479px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }

    .contact-form-country {
        width: 100px;
    }
}

/* --- Time slot picker --- */

.timeslot-day {
    margin-bottom: 1.25rem;
}

.timeslot-day:last-of-type {
    margin-bottom: 0;
}

.timeslot-day-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #424242;
    margin: 0 0 0.5rem;
    padding-bottom: 0.375rem;
    border-bottom: 1px solid #f0f0f0;
}

.timeslot-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.time-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: var(--rz-button-border-radius, 8px);
    background: #fff;
    color: #424242;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    line-height: 1;
}

.time-chip:hover {
    border-color: var(--rz-primary);
    color: var(--rz-primary);
}

.time-chip--selected {
    border-color: var(--rz-primary);
    background: var(--rz-primary);
    color: #fff;
    box-shadow: 0 0 0 1px var(--rz-primary);
}

.time-chip--selected:hover {
    background: var(--rz-primary-light);
    border-color: var(--rz-primary-light);
}

.timeslot-empty {
    color: #757575;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.timeslot-all-empty {
    text-align: center;
    padding: 1.5rem 0;
    color: #757575;
}

.timeslot-all-empty p {
    margin: 0 0 0.5rem;
}

.timeslot-show-more {
    display: block;
    width: 100%;
    padding: 0.625rem 1rem;
    margin-top: 1rem;
    border: 2px solid var(--rz-primary);
    border-radius: var(--rz-button-border-radius, 8px);
    background: transparent;
    color: var(--rz-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    font-family: inherit;
}

.timeslot-show-more:hover {
    background: var(--rz-primary);
    color: #fff;
}

.timeslot-contact-cta {
    text-align: center;
    padding: 0.5rem 0;
}

.timeslot-contact-cta p {
    margin: 0 0 0.5rem;
    color: #616161;
}

.timeslot-phone-link {
    color: var(--rz-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeslot-phone-link:hover {
    text-decoration: underline;
}

@media (max-width: 479px) {
    .booking-bottom-bar-inner {
        padding: 0.5rem 0.75rem;
    }

    .booking-bottom-bar-text {
        font-size: 0.8rem;
    }

    .booking-bottom-bar-price {
        font-size: 0.85rem;
    }

    .booking-bottom-bar-reserve {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 768px) {
    .booking-page {
        padding: 2rem 1rem;
        padding-bottom: 5rem;
    }

    .booking-bottom-bar-inner {
        padding: 1rem;
    }

    .booking-bottom-bar-summary {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }

    .time-chip {
        min-width: 70px;
    }
}

/* ==================== Watermark ==================== */

.studio-hero-watermark {
    text-align: center;
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border-top: 1px solid #e0e0e0;
    font-size: 0.8rem;
    color: #888;
}

.studio-hero-watermark a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.studio-hero-watermark a:hover {
    color: #555;
    text-decoration: underline;
}

.studio-hero-watermark strong {
    color: #666;
}

/* ==================== Trial Banner ==================== */

.trial-banner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0.75rem;
    border-radius: var(--rz-border-radius);
    background: var(--rz-info-lighter);
    color: var(--rz-info-darker);
    font-size: 0.85rem;
    font-weight: 500;
}

.trial-banner--urgent {
    background: var(--rz-warning-lighter);
    color: var(--rz-warning-darker);
}

.trial-banner-icon {
    font-size: 1.1rem;
}

/* ==================== Subscription Page ==================== */

.subscription-usage-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.subscription-usage-label {
    flex: 1;
    min-width: 120px;
}

.subscription-usage-value {
    font-weight: 600;
    min-width: 60px;
    text-align: right;
}

.subscription-usage-row .rz-progressbar {
    width: 100%;
}

.subscription-feature-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==================== Settings Tabs (5-04) ==================== */

.settings-tab-content {
    max-width: 800px;
    padding: 1rem 0;
}

.settings-logo-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.settings-logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--rz-border-radius);
    border: 1px solid var(--rz-base-200);
}

.settings-logo-upload {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* ==================== Focus visible & keyboard navigation ==================== */

.service-card-toggle:focus-visible,
.staff-card-toggle:focus-visible,
.time-chip:focus-visible,
.timeslot-show-more:focus-visible,
.booking-next-btn:focus-visible,
.booking-bottom-bar-reserve:focus-visible,
.confirmation-btn:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.contact-form-input:focus-visible {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 1px var(--rz-primary);
}

.contact-form-checkbox:focus-visible {
    outline: 2px solid var(--rz-primary);
    outline-offset: 2px;
}

.contact-form-country:focus-visible {
    outline: none;
    border-color: var(--rz-primary);
    box-shadow: 0 0 0 1px var(--rz-primary);
}

/* ==================== Touch targets — min 44px ==================== */

.service-card-toggle {
    min-height: 44px;
    min-width: 44px;
}

.staff-card-toggle {
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.875rem;
}

.time-chip {
    min-height: 44px;
}

.booking-next-btn {
    min-height: 44px;
}

.booking-bottom-bar-reserve {
    min-height: 44px;
}

.timeslot-show-more {
    min-height: 44px;
}

.confirmation-btn {
    min-height: 44px;
}

.contact-form-checkbox {
    width: 20px;
    height: 20px;
}

.contact-form-checkbox-label {
    min-height: 44px;
    padding: 0.25rem 0;
}

/* ==================== DataGrid responsive overflow ==================== */

@media (max-width: 768px) {
    .services-grid,
    .staff-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .services-grid .rz-datatable,
    .staff-grid .rz-datatable {
        min-width: 600px;
    }

    .rz-dialog-wrapper .rz-dialog {
        width: 95vw !important;
        max-width: 95vw !important;
    }

    .onboarding-actions {
        flex-wrap: wrap;
    }
}

/* ==================== Skip to content link ==================== */

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--rz-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    z-index: 9999;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ==================== Screen reader only ==================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== Platform admin ==================== */

.platform-tenants-grid .rz-data-row {
    cursor: pointer;
}

.platform-tenants-grid .rz-data-row:hover {
    background-color: color-mix(in srgb, var(--rz-primary) 8%, transparent);
}

.platform-tenants-grid .rz-datatable-selectable .rz-state-highlight,
.platform-tenants-grid .rz-datatable-selectable .rz-state-highlight > td {
    background-color: color-mix(in srgb, var(--rz-primary) 16%, transparent);
}

.platform-tenants-grid th.platform-col-clients,
.platform-tenants-grid td.platform-col-clients {
    text-align: center;
}

.platform-tenants-grid td.platform-col-clients .rz-cell-data {
    justify-content: center;
}

