:root {
    --bg: #f5eee3;
    --panel: rgba(255, 250, 243, 0.92);
    --ink: #19120d;
    --muted: #6f6256;
    --line: rgba(80, 58, 34, 0.14);
    --accent: #c08a53;
    --accent-dark: #7b4c24;
    --accent-soft: #f0dfcd;
    --brand-dark: #17110d;
    --success: #1f7a54;
    --danger: #b34f3f;
    --shadow: 0 22px 60px rgba(73, 47, 25, 0.10);
}

html, body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(192, 138, 83, 0.18), transparent 32%),
        linear-gradient(135deg, #f7f1e7 0%, #f2e6d8 52%, #eadbcc 100%);
    color: var(--ink);
    min-height: 100%;
}

body {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.page {
    min-height: 100vh;
    display: grid;
}

.page-authenticated {
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 24px;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(24, 18, 13, 0.98), rgba(52, 31, 17, 0.95)),
        radial-gradient(circle at top, rgba(192, 138, 83, 0.18), transparent 50%);
    color: #f8ecde;
}

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

.public-main-shell {
    width: 100%;
}

.brand-block {
    margin-bottom: 32px;
}

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

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #d28c57, #8c4620);
    color: white;
    font-weight: 800;
}

.brand-mark-image {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    padding: 0;
}

.brand-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-brand small {
    display: block;
    color: rgba(248, 236, 222, 0.72);
}

.nav-stack {
    display: grid;
    gap: 10px;
}

.nav-link {
    padding: 14px 16px;
    border-radius: 16px;
    color: rgba(248, 236, 222, 0.78);
}

.nav-link.active,
.nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.content-shell {
    padding: 24px;
}

.content-shell-public {
    padding: 24px;
}

.hero-shell,
.dashboard-shell {
    max-width: 1280px;
    margin: 0 auto;
}

.hero-card,
.dashboard-header,
.panel {
    background: var(--panel);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 22px 60px rgba(73, 47, 25, 0.10);
}

.hero-card {
    padding: 32px;
    border-radius: 32px;
}

.hero-copy {
    max-width: 640px;
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1:focus {
    outline: none;
}

h1, h2, h3 {
    font-weight: 800;
}

.booking-shell {
    display: grid;
    gap: 24px;
}

.stepper {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.step {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid transparent;
    color: var(--muted);
}

.step.active {
    border-color: rgba(166, 90, 42, 0.25);
    background: white;
    color: var(--ink);
}

.step span {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin-bottom: 8px;
    background: var(--accent-soft);
}

.booking-grid,
.dashboard-grid,
.confirmation-grid,
.stats-grid,
.chart-grid,
.donut-grid {
    display: grid;
    gap: 20px;
}

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

.dashboard-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 20px;
}

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

.stats-grid {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
}

.panel {
    border-radius: 28px;
    padding: 24px;
}

.field-label {
    display: block;
    margin: 16px 0 8px;
    font-weight: 700;
}

.form-control,
.form-select {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.form-control:focus,
.form-select:focus,
.btn:focus,
.slot-button:focus {
    border-color: rgba(166, 90, 42, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(166, 90, 42, 0.18);
}

.slots-header,
.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.slot-button,
.cta-button {
    border: none;
    border-radius: 18px;
    transition: 160ms ease;
}

.slot-button {
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--line);
    font-weight: 700;
}

.slot-button.selected,
.slot-button:hover {
    background: var(--accent);
    color: white;
}

.summary-card,
.list-card,
.stat-card,
.empty-state,
.confirmation-badge,
.chart-bar-wrap {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.summary-card {
    margin-top: 20px;
    padding: 18px;
}

.summary-row {
    padding: 8px 0;
    border-bottom: 1px solid rgba(56, 42, 28, 0.07);
}

.summary-row:last-child {
    border-bottom: none;
}

.cta-button {
    margin-top: 18px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    font-weight: 800;
}

.cta-button:disabled {
    opacity: 0.6;
}

.list-card,
.stat-card,
.empty-state {
    padding: 16px 18px;
    margin-top: 12px;
}

.list-card span,
.stat-card span {
    display: block;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 1.8rem;
}

.chart-grid {
    gap: 12px;
}

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head p,
.metric-card small,
.booking-reference-header p,
.booking-sidebar-head p,
.calendar-body p,
.booking-note,
.list-card small {
    color: var(--muted);
}

.chart-row {
    display: grid;
    grid-template-columns: 72px 1fr 52px;
    gap: 12px;
    align-items: center;
}

.chart-bar-wrap {
    overflow: hidden;
    min-height: 18px;
    padding: 4px;
}

.chart-bar {
    min-height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.chart-bar-revenue {
    background: linear-gradient(135deg, #132a46, #40648d);
}

.chart-bar-dark {
    background: linear-gradient(135deg, #2f251a, #5f4730);
}

.chart-bar-soft {
    background: linear-gradient(135deg, #d5a86d, #bf8b4f);
}

.donut-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 14px;
}

.metric-card {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.metric-card span,
.metric-card small {
    display: block;
}

.metric-card strong {
    display: block;
    margin: 8px 0 6px;
    font-size: 1.8rem;
    color: var(--ink);
}

.stats-grid-six {
    grid-template-columns: repeat(6, minmax(120px, 1fr));
}

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

.panel-span-2 {
    grid-column: span 2;
}

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

.admin-dashboard-header {
    align-items: stretch;
}

.booking-hero {
    padding: 10px 0 40px;
}

.booking-reference-shell {
    border-radius: 36px;
    padding: 30px;
}

.booking-reference-header {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 26px;
}

.booking-reference-header h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 0.98;
}

.booking-reference-grid {
    display: grid;
    grid-template-columns: minmax(290px, 330px) minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.booking-sidebar,
.booking-main,
.booking-summary-panel,
.calendar-shell,
.contact-shell {
    border-radius: 28px;
}

.booking-sidebar,
.booking-summary-panel {
    padding: 22px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
}

.booking-main {
    display: grid;
    gap: 18px;
}

.booking-sidebar-head {
    margin-bottom: 14px;
}

.booking-sidebar-head h2,
.calendar-body h2,
.booking-summary-panel h2 {
    margin: 0 0 8px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chip-button,
.chip-option {
    border-radius: 999px;
    border: 1px solid rgba(187, 139, 86, 0.28);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    transition: 160ms ease;
}

.chip-button {
    padding: 11px 16px;
    font-weight: 700;
}

.chip-button:hover,
.chip-button.selected {
    background: linear-gradient(135deg, #2f2418, #5f4226);
    border-color: rgba(47, 36, 24, 0.55);
    color: #fff6ed;
}

.chip-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    cursor: pointer;
}

.chip-option input {
    accent-color: var(--accent);
}

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

.service-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    text-align: left;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    transition: 180ms ease;
}

.service-card:hover,
.service-card.selected {
    transform: translateY(-1px);
    border-color: rgba(187, 139, 86, 0.45);
    box-shadow: 0 12px 24px rgba(79, 55, 29, 0.08);
}

.service-card span,
.service-meta span {
    display: block;
    color: var(--muted);
}

.service-meta {
    text-align: right;
    min-width: 88px;
}

.calendar-shell,
.contact-shell {
    padding: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
}

.calendar-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.calendar-toolbar strong {
    font-size: 1.15rem;
}

.calendar-nav {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.35rem;
}

.week-strip {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 22px;
}

.week-day-card {
    padding: 14px 10px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    text-align: center;
    transition: 160ms ease;
}

.week-day-card span,
.week-day-card small {
    display: block;
}

.week-day-card span,
.week-day-card small {
    color: var(--muted);
}

.week-day-card strong {
    display: block;
    font-size: 1.3rem;
    margin: 6px 0;
}

.week-day-card:hover:not(:disabled),
.week-day-card.selected {
    background: linear-gradient(135deg, rgba(187, 139, 86, 0.25), rgba(255, 255, 255, 0.96));
    border-color: rgba(187, 139, 86, 0.5);
}

.week-day-card.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.slot-grid-large {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
}

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

.booking-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.booking-submit {
    margin-top: 0;
    width: auto;
    min-width: 220px;
}

.booking-summary-panel {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 24px;
}

.booking-summary-card {
    margin-top: 0;
}

.summary-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(56, 42, 28, 0.08);
}

.summary-brand span {
    display: block;
    color: var(--muted);
}

.brand-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1d1813, #5d4224);
    color: white;
    font-weight: 800;
}

.booking-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px dashed rgba(187, 139, 86, 0.4);
}

.booking-flow-shell {
    max-width: 1520px;
    margin: 0 auto;
    padding: 8px 0 40px;
}

.booking-global-alert {
    margin-bottom: 18px;
}

.booking-step-shell {
    padding: 30px;
    border-radius: 30px;
}

.booking-step-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.booking-step-head h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
}

.booking-back-link {
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 22px;
    padding: 0;
}

.search-input-wrap {
    position: relative;
    min-width: 320px;
}

.search-input-wrap-wide {
    max-width: 860px;
    margin-bottom: 22px;
}

.search-input {
    padding-left: 48px;
}

.search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 1.25rem;
    pointer-events: none;
}

.catalog-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
}

.catalog-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 150px 180px;
    gap: 20px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(80, 58, 34, 0.10);
}

.catalog-row:last-child {
    border-bottom: none;
}

.catalog-row.selected {
    background: rgba(187, 139, 86, 0.08);
}

.catalog-icon,
.employee-avatar,
.mini-avatar {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(96, 139, 222, 0.16), rgba(187, 139, 86, 0.18));
    color: #466ebd;
    font-size: 2rem;
    font-weight: 800;
}

.catalog-main strong,
.catalog-price strong {
    display: block;
    font-size: 1.15rem;
}

.catalog-main span,
.catalog-price span,
.employee-card span {
    color: var(--muted);
}

.catalog-link {
    margin-top: 12px;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--accent-dark);
    font-weight: 700;
    text-align: left;
}

.catalog-detail {
    margin: 10px 0 0;
    color: var(--muted);
}

.catalog-price {
    text-align: right;
}

.catalog-action {
    display: flex;
    justify-content: flex-end;
}

.catalog-cta {
    min-width: 150px;
    padding: 13px 18px;
    border-radius: 14px;
    border: 1px solid rgba(96, 139, 222, 0.42);
    color: #4b7de3;
    background: white;
    font-weight: 800;
}

.catalog-cta:hover {
    background: #4b7de3;
    color: white;
}

.branch-selector-block {
    margin-bottom: 20px;
}

.branch-selector-block h2 {
    margin: 0 0 14px;
}

.branch-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.branch-chip {
    min-width: 220px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    text-align: left;
    transition: 160ms ease;
}

.branch-chip strong,
.branch-chip span {
    display: block;
}

.branch-chip span {
    color: var(--muted);
    margin-top: 6px;
}

.branch-chip.selected,
.branch-chip:hover {
    border-color: rgba(75, 125, 227, 0.38);
    box-shadow: 0 10px 22px rgba(66, 105, 176, 0.10);
}

.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.employee-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 22px 20px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    text-align: center;
    min-height: 210px;
    transition: 160ms ease;
}

.employee-card strong {
    font-size: 1.2rem;
}

.employee-card.selected,
.employee-card:hover {
    transform: translateY(-2px);
    border-color: rgba(75, 125, 227, 0.35);
    box-shadow: 0 16px 28px rgba(43, 60, 88, 0.10);
}

.booking-schedule-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
    align-items: start;
}

.schedule-picker-shell {
    display: grid;
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 26px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.78);
}

.month-picker-card,
.slot-picker-card {
    padding: 24px;
}

.month-picker-card {
    border-right: 1px solid rgba(80, 58, 34, 0.10);
}

.month-picker-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.month-picker-head strong {
    font-size: 1.15rem;
    text-transform: capitalize;
}

.month-weekdays,
.month-day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.month-weekdays {
    margin-bottom: 14px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.month-day {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 999px;
    border: none;
    background: rgba(80, 58, 34, 0.06);
    font-weight: 700;
    color: var(--ink);
}

.month-day.outside {
    opacity: 0.45;
}

.month-day.selected,
.month-day:hover:not(:disabled) {
    background: #5c8ef0;
    color: white;
}

.month-day.disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.slot-picker-card h2 {
    margin: 0 0 8px;
}

.slot-picker-card p {
    margin-bottom: 22px;
    color: var(--muted);
}

.booking-summary-side {
    border-radius: 30px;
    padding: 28px;
    position: sticky;
    top: 24px;
}

.booking-summary-side h2 {
    margin: 0 0 24px;
    font-size: 2.2rem;
}

.summary-section {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(80, 58, 34, 0.08);
}

.summary-section:last-of-type {
    border-bottom: none;
}

.summary-icon-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    font-size: 1.2rem;
}

.summary-service-icon {
    color: #466ebd;
}

.summary-total-row {
    margin-top: 8px;
    padding-top: 18px;
    border-top: 1px solid rgba(80, 58, 34, 0.12);
}

.summary-form {
    display: grid;
    gap: 4px;
    margin-top: 20px;
}

.summary-submit {
    margin-top: 20px;
}

.schedule-shell {
    margin-top: 18px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
}

.schedule-grid {
    display: grid;
    gap: 0;
}

.schedule-hours {
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.82);
}

.schedule-head {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    font-weight: 800;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
}

.schedule-hour {
    height: 60px;
    padding: 8px 10px;
    font-size: 0.85rem;
    color: var(--muted);
    border-bottom: 1px solid rgba(80, 58, 34, 0.08);
}

.schedule-column {
    min-width: 0;
    border-right: 1px solid rgba(80, 58, 34, 0.08);
}

.schedule-column:last-child {
    border-right: none;
}

.schedule-track {
    position: relative;
    min-height: 240px;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 59px,
            rgba(80, 58, 34, 0.08) 59px,
            rgba(80, 58, 34, 0.08) 60px
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.82));
}

.schedule-line {
    display: none;
}

.schedule-entry {
    position: absolute;
    left: 10px;
    right: 10px;
    padding: 10px 12px;
    border-radius: 18px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(20, 15, 10, 0.14);
    overflow: hidden;
}

.schedule-entry strong,
.schedule-entry span {
    display: block;
    line-height: 1.2;
}

.schedule-entry span {
    font-size: 0.82rem;
    opacity: 0.92;
}

.schedule-entry-reservation {
    background: linear-gradient(180deg, #2d2419, #5d4327);
}

.schedule-entry-break {
    background: linear-gradient(180deg, #9f7a48, #c89d63);
}

.schedule-entry-block {
    background: linear-gradient(180deg, #8c3d34, #b96554);
}

.schedule-entry-dayoff {
    background: linear-gradient(180deg, #6d6d6d, #8b8b8b);
}

.schedule-entry-completed {
    background: linear-gradient(180deg, #1f7a54, #249264);
}

.schedule-entry-noshow {
    background: linear-gradient(180deg, #8c3d34, #a14739);
}

.alert-danger {
    color: #721c24;
    background: rgba(179, 79, 63, 0.12);
    border-color: rgba(179, 79, 63, 0.25);
}

.alert-success {
    color: #0f5132;
    background: rgba(25, 135, 84, 0.14);
    border-color: rgba(25, 135, 84, 0.25);
}

.confirmation-shell {
    text-align: center;
}

.confirmation-badge {
    display: inline-block;
    padding: 10px 16px;
    color: var(--success);
    font-weight: 800;
    margin-bottom: 16px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: #b32121;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

@media (max-width: 980px) {
    .page {
        grid-template-columns: 1fr;
    }

    .sidebar {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .booking-grid,
    .dashboard-grid,
    .stats-grid,
    .stepper {
        grid-template-columns: 1fr;
    }

    .dashboard-header {
        flex-direction: column;
    }
}

@media (max-width: 1240px) {
    .booking-reference-grid,
    .dashboard-grid-admin,
    .booking-schedule-layout {
        grid-template-columns: 1fr;
    }

    .panel-span-2 {
        grid-column: auto;
    }

    .booking-summary-panel {
        position: static;
    }

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

    .booking-summary-side {
        position: static;
    }
}

@media (max-width: 900px) {
    .booking-reference-header,
    .booking-actions,
    .booking-step-head {
        flex-direction: column;
        align-items: stretch;
    }

    .week-strip,
    .contact-grid,
    .metric-grid,
    .stats-grid-six,
    .schedule-picker-shell {
        grid-template-columns: 1fr;
    }

    .booking-reference-shell,
    .hero-card,
    .panel,
    .dashboard-header {
        border-radius: 24px;
        padding: 20px;
    }

    .schedule-grid {
        overflow-x: auto;
    }

    .catalog-row {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .catalog-action,
    .catalog-price {
        justify-content: flex-start;
        text-align: left;
    }

    .search-input-wrap {
        min-width: 0;
        width: 100%;
    }

    .month-picker-card {
        border-right: none;
        border-bottom: 1px solid rgba(80, 58, 34, 0.10);
    }
}

/* Brand and public booking overrides */
.brand-booking-shell {
    display: grid;
    gap: 24px;
}

.booking-brand-hero {
    position: relative;
    min-height: 360px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.booking-brand-copy {
    max-width: 720px;
    padding: 44px;
    color: #fff6ed;
}

.booking-brand-topline {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 22px;
}

.booking-brand-topline h1 {
    margin: 4px 0 0;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    line-height: 0.95;
}

.booking-brand-logo {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    object-fit: cover;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 246, 237, 0.22);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.booking-stage-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.booking-stage {
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(80, 58, 34, 0.10);
}

.booking-stage span,
.booking-stage strong,
.booking-stage small {
    display: block;
}

.booking-stage span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(192, 138, 83, 0.14);
    margin-bottom: 12px;
    font-weight: 800;
}

.booking-stage small {
    margin-top: 8px;
    color: var(--muted);
}

.booking-stage.active {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(192, 138, 83, 0.32);
    box-shadow: 0 14px 32px rgba(73, 47, 25, 0.08);
}

.selector-block {
    margin-top: 28px;
}

.selector-head {
    margin-bottom: 14px;
}

.selector-head h3 {
    margin: 0 0 4px;
}

.selector-head p {
    margin: 0;
    color: var(--muted);
}

.branch-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.branch-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    width: 100%;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    text-align: left;
    transition: 160ms ease;
}

.branch-card:hover,
.branch-card.selected {
    transform: translateY(-2px);
    border-color: rgba(192, 138, 83, 0.40);
    box-shadow: 0 16px 28px rgba(43, 60, 88, 0.10);
}

.branch-card-media,
.branch-card-fallback,
.employee-photo {
    width: 88px;
    height: 88px;
    border-radius: 24px;
}

.branch-card-media {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84);
}

.branch-card-media img,
.employee-photo,
.summary-photo,
.mini-photo,
.media-preview-image,
.list-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-card-fallback,
.media-avatar-large {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #2d2218, #7b4c24);
    color: #fff6ed;
    font-weight: 800;
}

.branch-card-copy strong,
.branch-card-copy span,
.branch-card-copy small {
    display: block;
}

.branch-card-copy span,
.branch-card-copy small {
    color: var(--muted);
}

.employee-photo {
    box-shadow: 0 12px 22px rgba(20, 15, 10, 0.12);
}

.booking-summary-headline h2 {
    margin: 6px 0 0;
    font-size: 2rem;
}

.summary-photo,
.mini-photo {
    border-radius: 22px;
    flex: 0 0 auto;
}

.summary-photo {
    width: 64px;
    height: 64px;
}

.mini-photo {
    width: 60px;
    height: 60px;
}

.brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.media-field {
    margin-bottom: 20px;
}

.media-picker {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
}

.media-preview-image,
.media-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 28px;
}

.media-picker-copy {
    display: grid;
    gap: 10px;
}

.media-picker-copy small {
    color: var(--muted);
}

.list-card-rich {
    padding: 18px;
}

.list-card-inline {
    display: flex;
    gap: 14px;
    align-items: center;
}

.list-card-image {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    flex: 0 0 auto;
}

@media (max-width: 980px) {
    .page-authenticated {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .booking-stage-row,
    .media-picker {
        grid-template-columns: 1fr;
    }

    .booking-brand-copy {
        padding: 24px;
    }

    .booking-brand-topline {
        flex-direction: column;
        align-items: flex-start;
    }
}

.login-shell {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    padding: 32px 20px 48px;
}

.login-card {
    width: min(100%, 460px);
    background: rgba(255, 252, 247, 0.94);
    border: 1px solid rgba(80, 58, 34, 0.10);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(73, 47, 25, 0.14);
}

.login-visual {
    position: relative;
    min-height: 300px;
    background-size: cover;
    background-position: center;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.00), rgba(255, 248, 239, 0.38));
}

.login-visual-badge {
    position: absolute;
    left: 22px;
    top: 20px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.login-visual-avatar {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    z-index: 1;
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(23, 17, 13, 0.94), rgba(123, 76, 36, 0.92));
    color: #fff6ed;
    font-size: 2.25rem;
    font-weight: 800;
    box-shadow: 0 18px 32px rgba(31, 23, 16, 0.22);
    border: 4px solid rgba(255, 252, 247, 0.9);
}

.login-content {
    padding: 28px 26px 30px;
}

.login-content h1 {
    margin: 8px 0 10px;
}

.login-copy {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 18px;
}

.login-form .cta-button {
    margin-top: 22px;
}

.booking-card {
    background: rgba(255, 252, 247, 0.94);
    border: 1px solid rgba(80, 58, 34, 0.10);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(73, 47, 25, 0.14);
}

.booking-card-large {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.booking-visual {
    position: relative;
    min-height: 260px;
    background-size: cover;
    background-position: center;
}

.booking-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 248, 239, 0.00), rgba(255, 248, 239, 0.32));
}

.booking-visual-badge {
    position: absolute;
    left: 22px;
    top: 20px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 248, 239, 0.86);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-visual-copy {
    position: absolute;
    left: 26px;
    bottom: 26px;
    z-index: 1;
    max-width: 520px;
    color: #fff8f0;
}

.booking-visual-copy h1 {
    margin: 8px 0 8px;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    line-height: 0.95;
}

.booking-visual-copy p {
    margin: 0;
    color: rgba(255, 248, 240, 0.9);
}

.booking-card-body {
    padding: 28px 26px 30px;
    display: grid;
    gap: 22px;
}

.booking-step-panel {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-card .panel {
    box-shadow: none;
}

@media (max-width: 900px) {
    .booking-card-body {
        padding: 22px 18px 22px;
    }

    .booking-visual {
        min-height: 220px;
    }

    .booking-visual-copy {
        left: 18px;
        right: 18px;
        bottom: 18px;
    }

    .booking-step-panel {
        padding: 22px;
    }

    .booking-step-head {
        gap: 18px;
        margin-bottom: 20px;
    }

    .search-input-wrap {
        min-width: 0;
        width: 100%;
    }

    .catalog-row {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .catalog-price,
    .catalog-action {
        grid-column: 2;
    }

    .catalog-action {
        justify-content: flex-start;
    }

    .catalog-cta {
        min-width: 0;
        width: 100%;
    }

    .catalog-icon {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 1.55rem;
    }

    .branch-card-grid,
    .employee-grid {
        gap: 14px;
    }

    .branch-card {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 14px;
        padding: 14px;
        border-radius: 20px;
    }

    .branch-card-fallback {
        width: 68px;
        height: 68px;
        border-radius: 18px;
        font-size: 1rem;
    }

    .employee-card {
        min-height: 0;
        padding: 18px 14px;
        border-radius: 20px;
    }

    .employee-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 1.3rem;
    }

    .booking-schedule-layout {
        gap: 18px;
    }

    .schedule-picker-shell {
        gap: 14px;
    }

    .slot-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .slot-button {
        padding: 12px 12px;
        min-height: 52px;
        border-radius: 16px;
        font-size: 1rem;
    }

    .month-picker-card,
    .slot-picker-card {
        padding: 18px;
    }

    .month-day-grid {
        gap: 8px;
    }

    .month-day {
        min-height: 40px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .booking-summary-side {
        padding: 22px;
    }

    .summary-card.booking-summary-card {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .content-shell-public {
        padding: 12px;
    }

    .booking-flow-shell {
        padding: 0 0 20px;
    }

    .booking-card {
        border-radius: 22px;
    }

    .booking-visual {
        min-height: 176px;
    }

    .booking-visual-copy {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .booking-visual-copy h1 {
        font-size: clamp(1.85rem, 8vw, 2.4rem);
    }

    .booking-card-body {
        padding: 16px 14px 18px;
        gap: 16px;
    }

    .booking-stage-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .booking-stage {
        padding: 12px 10px;
        border-radius: 18px;
    }

    .booking-stage span {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .booking-stage strong {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .booking-stage small {
        margin-top: 4px;
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .booking-step-panel {
        padding: 16px;
        border-radius: 18px;
    }

    .booking-step-head {
        margin-bottom: 16px;
    }

    .booking-step-head h2,
    .booking-summary-headline h2,
    .slot-picker-card h3 {
        font-size: 1.85rem;
        line-height: 1.05;
    }

    .booking-step-head p,
    .selector-head p,
    .slot-picker-card p,
    .booking-note {
        font-size: 0.92rem;
        line-height: 1.5;
    }

    .booking-back-link {
        margin-bottom: 14px;
        font-size: 0.98rem;
    }

    .search-input-icon {
        left: 14px;
        font-size: 1.05rem;
    }

    .search-input {
        padding-left: 42px;
    }

    .catalog-row {
        grid-template-columns: 52px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 12px;
    }

    .catalog-icon {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        font-size: 1.2rem;
    }

    .catalog-main strong,
    .catalog-price strong {
        font-size: 1rem;
    }

    .catalog-main span,
    .catalog-price span,
    .catalog-link,
    .employee-card span,
    .branch-card-copy span,
    .branch-card-copy small {
        font-size: 0.9rem;
    }

    .catalog-price {
        display: flex;
        align-items: baseline;
        gap: 8px;
        text-align: left;
    }

    .catalog-cta {
        padding: 11px 14px;
        border-radius: 12px;
        font-size: 0.95rem;
    }

    .selector-block {
        margin-top: 20px;
    }

    .branch-card-grid,
    .employee-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .branch-card {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .branch-card-fallback {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 0.92rem;
    }

    .employee-card {
        gap: 10px;
        padding: 14px 12px;
        border-radius: 18px;
        text-align: left;
    }

    .employee-avatar {
        width: 54px;
        height: 54px;
        border-radius: 16px;
        font-size: 1.05rem;
    }

    .schedule-picker-shell {
        grid-template-columns: 1fr;
    }

    .month-picker-card,
    .slot-picker-card {
        padding: 14px;
        border-radius: 18px;
    }

    .month-picker-head {
        margin-bottom: 14px;
    }

    .month-weekdays {
        gap: 6px;
        margin-bottom: 10px;
        font-size: 0.8rem;
    }

    .month-day-grid {
        gap: 6px;
    }

    .month-day {
        min-height: 36px;
        border-radius: 12px;
        font-size: 0.88rem;
    }

    .slot-grid-large {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .slot-button {
        min-height: 46px;
        padding: 10px 8px;
        border-radius: 14px;
        font-size: 0.98rem;
    }

    .booking-summary-side {
        padding: 16px;
        border-radius: 18px;
    }

    .summary-brand,
    .summary-section {
        gap: 12px;
    }

    .brand-avatar,
    .mini-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 0.95rem;
    }

    .summary-form {
        gap: 10px;
    }

    .field-label {
        margin: 12px 0 6px;
        font-size: 0.92rem;
    }

    .form-control,
    .form-select {
        min-height: 46px;
        border-radius: 14px;
    }

    .summary-submit {
        margin-top: 14px;
    }
}

@media (max-width: 420px) {
    .booking-card-body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .booking-step-panel,
    .booking-summary-side,
    .month-picker-card,
    .slot-picker-card {
        padding: 12px;
    }

    .booking-stage {
        padding: 10px 8px;
    }

    .booking-stage strong {
        font-size: 0.82rem;
    }

    .booking-stage small {
        font-size: 0.7rem;
    }

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