/* =========================================================
   DAINERE — design tokens
   Barbershop-plate palette: ink, brass, bone.
   ========================================================= */

:root {
    --ink: #14171f;
    --ink-2: #1c202b;
    --brass: #c9a15f;
    --brass-dim: #8b7245;
    --bone: #ede7da;
    --bone-dim: #a9a38f;
    --error: #e0685a;
    --success: #5fcf8a;
    --babekora-yellow: #fdce02;
    --babekora-white: #ffffff;

    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;

    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* =========================================================
   Reset / base — mobile-first, no accidental overflow
   ========================================================= */

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

/* App-wide: no browser "chrome" affordances on tap — no blue
   tap-highlight flash, no iOS long-press callout menu (share/copy),
   on any link, button, or other interactive element. */
html {
    -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
select,
textarea,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background: var(--ink);
    color: var(--bone);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    display: block;
}

/* =========================================================
   Screen shell — every screen fills the viewport, respects
   notches/home-indicator via safe-area insets.
   ========================================================= */

.screen {
    min-height: 100svh;
    min-height: 100vh; /* fallback for browsers without svh */
    display: flex;
    flex-direction: column;
    padding: calc(var(--space-3) + var(--safe-top)) calc(var(--space-3) + var(--safe-right))
        calc(var(--space-3) + var(--safe-bottom)) calc(var(--space-3) + var(--safe-left));
}

/* =========================================================
   Desktop / wide-viewport containment
   This is a mobile-first app — on wide screens it should look like a
   phone-width frame centered on the page, not stretch edge-to-edge.
   Applies to every screen automatically, since they all share .screen.
   ========================================================= */

@media (min-width: 481px) and (pointer: fine) {
    body {
        background: #0a0c11;
    }

    .screen {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.5);
        background: var(--ink);
    }
}

/* =========================================================
   Dainere home screen
   ========================================================= */

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-4);
    text-align: center;
}

.brand__tag {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--bone-dim);
}

/* =========================================================
   Topbar — hamburger menu (Dainere-level only)
   ========================================================= */

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--safe-top);
    gap: var(--space-2);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar-avatar {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--brass-dim);
    flex-shrink: 0;
}

.topbar-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (hover: hover) and (pointer: fine) {
    .topbar-avatar:hover {
        border-color: var(--brass);
    }
}

.brand-logo {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.brand-logo__line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 6.4vw, 1.8rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.letter-red {
    color: #e2483c;
}

.letter-yellow {
    color: #f4c430;
}

.letter-green {
    color: #7cb342;
}

.letter-blue {
    color: #3f6fd1;
}

.letter-orange {
    color: #f2994a;
}

.menu-wrapper {
    position: relative;
}

.menu-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(20, 23, 31, 0.4);
    border: 1px solid var(--brass-dim);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .menu-toggle:hover {
        border-color: var(--brass);
    }
}

.menu-toggle__bar {
    width: 18px;
    height: 2px;
    background: var(--bone);
    border-radius: 1px;
}

.menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: var(--ink-2);
    border: 1px solid var(--brass-dim);
    border-radius: 8px;
    overflow: hidden;
    display: none;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.menu-panel--open {
    display: block;
}

.menu-panel__item {
    display: block;
    padding: 12px 16px;
    color: var(--bone);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(237, 231, 218, 0.08);
}

.menu-panel__item:last-child {
    border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
    .menu-panel__item:hover {
        background: rgba(201, 161, 95, 0.08);
    }
}

.services {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-2);
    padding-top: var(--space-3);
    padding-bottom: var(--space-4);
}

/* The service-plate is the signature element: a raised, pressable button
   with the Dainere emblem pressed into the lower right corner. Navy is the
   default; --gold is the one primary action. No hover state, touch-first. */

.service-plate {
    --plate-shadow: #07090d;
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 3 / 1;
    border-radius: 14px;
    border: 2px solid var(--brass);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    text-align: left;
    color: var(--brass);
    background: linear-gradient(180deg, #2c3544 0%, #1c222d 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.12),
        inset 0 -3px 0 rgba(0, 0, 0, 0.4),
        0 6px 0 var(--plate-shadow),
        0 10px 18px rgba(0, 0, 0, 0.5);
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.service-plate::after {
    content: "";
    position: absolute;
    right: -18px;
    bottom: -26px;
    width: 34%;
    aspect-ratio: 225 / 232;
    background: currentColor;
    opacity: 0.14;
    transform: rotate(-8deg);
    pointer-events: none;
    -webkit-mask: url('../images/logo/dainere_emblem.svg') center / contain no-repeat;
    mask: url('../images/logo/dainere_emblem.svg') center / contain no-repeat;
}

a.service-plate:active {
    transform: translateY(4px);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.1),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 2px 0 var(--plate-shadow),
        0 4px 8px rgba(0, 0, 0, 0.45);
}

.service-plate--gold {
    --plate-shadow: #6f5428;
    color: #241c0d;
    border: 0;
    background: linear-gradient(180deg, #e6c98a 0%, #c9a15f 45%, #a98240 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.55),
        inset 0 -3px 0 rgba(90, 60, 15, 0.35),
        0 6px 0 var(--plate-shadow),
        0 10px 18px rgba(0, 0, 0, 0.45);
}

.service-plate--gold::after {
    opacity: 0.16;
}

a.service-plate--gold:active {
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        inset 0 -2px 0 rgba(90, 60, 15, 0.35),
        0 2px 0 var(--plate-shadow),
        0 4px 8px rgba(0, 0, 0, 0.4);
}

.service-plate__text {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-plate__title {
    font-family: var(--font-display);
    letter-spacing: 0.06em;
    font-size: clamp(1.5rem, 6.5vw, 1.9rem);
    line-height: 1;
}

.service-plate__hint {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    opacity: 0.8;
}

/* =========================================================
   M/KRO CANSÜP service screen
   ========================================================= */

.back-button {
    position: absolute;
    top: calc(var(--space-2) + var(--safe-top));
    left: calc(var(--space-2) + var(--safe-left));
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(20, 23, 31, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--bone);
    font-size: 0.85rem;
}

.back-button__arrow {
    font-size: 1rem;
}

/* Background hero — placeholder gradient stands in for the brand
   photo until one is chosen. No text is baked into the image itself. */

/* =========================================================
   Booking form (public/booking.php)
   ========================================================= */

.screen--booking {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.booking-header {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: var(--space-3);
}

.back-button--static {
    position: static;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    margin-bottom: var(--space-2);
    color: var(--bone-dim);
}

.booking-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--bone);
}

.booking-header__subtitle {
    font-size: 0.85rem;
    color: var(--brass);
    margin: 0;
    letter-spacing: 0.02em;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: var(--bone-dim);
    padding: 0;
}

.required-mark {
    color: var(--brass);
    margin-left: 2px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid rgba(237, 231, 218, 0.16);
    background: var(--ink-2);
    color: var(--bone);
    font-family: var(--font-body);
    font-size: 1rem;
    appearance: none;
    -webkit-appearance: none;
}

select.form-input {
    background-image: linear-gradient(45deg, transparent 50%, var(--bone-dim) 50%),
        linear-gradient(135deg, var(--bone-dim) 50%, transparent 50%);
    background-position: calc(100% - 20px) center, calc(100% - 14px) center;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
}

.form-input:focus,
.form-textarea:focus {
    outline: 2px solid var(--brass);
    outline-offset: 1px;
}

.form-input:disabled {
    opacity: 0.4;
    background: var(--ink);
}

.form-textarea {
    resize: vertical;
    min-height: 64px;
}

.form-hint {
    font-size: 0.75rem;
    color: var(--bone-dim);
    margin: 0;
}

.form-hint--center {
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.form-hint--center.form-hint--active {
    opacity: 1;
    color: var(--brass);
}

.form-subfield {
    margin-top: var(--space-1);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 0.95rem;
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brass);
}

/* An option this barber does not offer: greyed out, with a calm (not red) note. */
.radio-option--disabled { opacity: 0.45; cursor: not-allowed; }
.person-services { display: flex; flex-direction: column; gap: 6px; }
.person-service { display: flex; align-items: center; gap: 10px; }
.person-service__name { flex: 0 0 84px; color: var(--bone-dim); font-size: 0.9rem; }
.person-service__select { flex: 0 1 190px; min-width: 0; margin-left: auto; }
/* Counters and service choices are compact: they sit in a row or a list, not alone in a field. */
.client-counter select.form-input,
.person-service__select.form-input { padding: 6px 28px 6px 10px; height: 38px; font-size: 0.95rem; background-position: calc(100% - 16px) center, calc(100% - 10px) center; }
.person-service__name { font-size: 0.85rem; }
.service-note { color: #e0cfae; font-size: 0.85rem; margin: 4px 0 0; }

.submit-button {
    width: 100%;
    padding: 14px var(--space-2);
    border: none;
    border-radius: 4px;
    background: var(--brass);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.submit-button:active {
    background: var(--brass-dim);
}

/* =========================================================
   Form validation errors (login.php, register.php)
   ========================================================= */

.form-error {
    font-size: 0.75rem;
    color: var(--error);
    margin: 0;
}

.form-error--banner {
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: rgba(224, 104, 90, 0.12);
    border: 1px solid var(--error);
}

.form-input--invalid {
    border-color: var(--error);
}

/* =========================================================
   Auth screens (login.php, register.php)
   ========================================================= */

.screen--auth {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.auth-header {
    margin: var(--space-2) 0 var(--space-3);
}

.auth-header__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    letter-spacing: 0.05em;
    margin: 0;
    color: var(--bone);
}

.auth-switch {
    text-align: center;
    font-size: 0.85rem;
    color: var(--bone-dim);
}

.auth-switch__link {
    color: var(--brass);
    font-weight: 600;
}

/* =========================================================
   Autofill / reset row (booking.php, logged-in users only)
   ========================================================= */

.autofill-row {
    display: flex;
    gap: var(--space-1);
}

.autofill-button,
.reset-button {
    flex: 1;
    padding: 10px 12px;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.autofill-button {
    border: 1px solid var(--brass);
    background: transparent;
    color: var(--brass);
}

@media (hover: hover) and (pointer: fine) {
    .autofill-button:hover {
        background: rgba(201, 161, 95, 0.1);
    }
}

.reset-button {
    border: 1px solid rgba(237, 231, 218, 0.16);
    background: transparent;
    color: var(--bone-dim);
}

@media (hover: hover) and (pointer: fine) {
    .reset-button:hover {
        border-color: var(--bone-dim);
        color: var(--bone);
    }
}

/* =========================================================
   Splash / intro overlay (public/index.php)
   Shown every time the app loads — dismissed with swipe-up.
   ========================================================= */

.splash-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--brass);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    padding: calc(var(--space-3) + var(--safe-top)) var(--space-3) calc(var(--space-3) + var(--safe-bottom));
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Desktop: match the same 480px centered frame as .screen. Placed
   after the base rule above (not near .screen's own media query) so
   it correctly overrides `inset: 0` — same-specificity CSS rules are
   resolved by source order, and this needs to win. */
@media (min-width: 481px) and (pointer: fine) {
    .splash-overlay {
        left: 50%;
        right: auto;
        width: 480px;
        margin-left: -240px;
    }
}

.splash-overlay__content {
    text-align: center;
}

.splash-overlay__greeting {
    font-family: var(--font-display);
    font-size: clamp(2rem, 9vw, 2.75rem);
    letter-spacing: 0.04em;
    color: var(--ink);
    margin: 0 0 8px;
}

.splash-overlay__name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 11vw, 3.5rem);
    letter-spacing: 0.08em;
    color: var(--ink);
    margin: 0;
}

.splash-overlay__logo {
    display: block;
    width: auto;
    max-width: 82%;
    max-height: 38vh;
    margin: 8px auto 0;
    object-fit: contain;
}

.splash-overlay__tag {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--ink);
    opacity: 0.75;
    margin: 8px 0 0;
}

.splash-overlay__hint {
    position: absolute;
    bottom: calc(var(--space-4) + var(--safe-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none;
    border: none;
    padding: var(--space-1);
    cursor: pointer;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    outline: none;
}

.splash-overlay__hint:active {
    opacity: 0.6;
}

.splash-overlay__chevron {
    font-size: 1.5rem;
    line-height: 1;
    animation: splash-chevron-bounce 1.6s ease-in-out infinite;
}

.splash-overlay__hint-text {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    opacity: 0.85;
}

@keyframes splash-chevron-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* =========================================================
   Placeholder pages (profile.php, barbers.php, subscription.php)
   ========================================================= */

/* =========================================================
   About page (public/about.php)
   ========================================================= */

.screen--about {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.about-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 8vw, 2.25rem);
    letter-spacing: 0.05em;
    color: var(--bone);
    margin: var(--space-2) 0 var(--space-3);
}

.about-section {
    margin-bottom: var(--space-4);
}

.about-section__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid rgba(237, 231, 218, 0.14);
}

/* Use for graphics/logos that must never be cropped (e.g. a business
   card with a QR code and logo) — shows the full image, letterboxed
   on a matching dark background instead of covering-and-cutting. */
.about-section__image--contain {
    object-fit: contain;
    background: var(--ink-2);
}

.about-section__heading {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--brass);
    margin: var(--space-2) 0 var(--space-1);
}

.about-section__text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bone-dim);
    margin: 0;
}

.about-section__text--placeholder {
    font-style: italic;
    opacity: 0.7;
}

/* =========================================================
   Subscription page (public/subscription.php)
   ========================================================= */

.screen--subscription {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.subscription-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: var(--space-2) 0 var(--space-2);
}

.subscription-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bone-dim);
    margin: 0 0 var(--space-3);
}

.subscription-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    border-radius: 8px;
    border: 1px solid var(--brass-dim);
    background: var(--ink-2);
    margin-bottom: var(--space-3);
}

.subscription-card__price {
    font-family: var(--font-display);
    font-size: clamp(2rem, 10vw, 2.75rem);
    letter-spacing: 0.03em;
    color: var(--brass);
}

.subscription-card__period {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--bone-dim);
    margin-left: 4px;
}

.subscription-card__trial {
    margin: 0;
    font-size: 0.9rem;
    color: var(--brass);
    text-align: center;
}

.subscription-card__button {
    width: 100%;
    max-width: 280px;
    padding: 12px var(--space-2);
    border: none;
    border-radius: 4px;
    background: var(--brass);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.subscription-card__button:active {
    background: var(--brass-dim);
}

.subscription-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.subscription-benefits li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--bone-dim);
}

.subscription-benefits li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brass);
}

/* =========================================================
   Profile page (public/profile.php)
   ========================================================= */

.screen--profile {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    margin: var(--space-3) 0 var(--space-3);
}

.profile-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: var(--bone);
    margin: 0;
}

.profile-avatar-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--brass);
    padding: 0;
    background: var(--ink-2);
    cursor: pointer;
}

/* View-only variant (barber_profile.php) — same look, not a button. */
.profile-avatar-static {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brass);
    background: var(--ink-2);
}

.profile-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
}

.profile-about {
    margin-bottom: var(--space-2);
}

.profile-about__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-1);
}

.profile-about__title,
.profile-reviews__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: 0;
}

.profile-about__text {
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: pre-line;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--bone-dim);
    margin: 0;
}

.edit-link {
    background: none;
    border: none;
    color: var(--brass);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.profile-reviews__summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-reviews__stars {
    font-size: 1.3rem;
    color: var(--brass);
    letter-spacing: 2px;
}

.profile-reviews__count {
    font-size: 0.85rem;
    color: var(--bone-dim);
}

/* =========================================================
   Modals (avatar editor, description editor)
   ========================================================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(10, 12, 17, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3);
}

.modal-overlay--under-splash { z-index: 90; }
.modal-overlay--under-splash .modal { max-height: 90vh; max-height: 90dvh; overflow-y: auto; }
.warning-reply { margin-top: 6px; }

.modal-overlay[hidden] {
    display: none;
}

.modal {
    width: 100%;
    max-width: 340px;
    background: var(--ink-2);
    border: 1px solid var(--brass-dim);
    border-radius: 8px;
    padding: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.modal__back {
    align-self: flex-start;
    color: var(--bone-dim, var(--bone));
    font-size: 0.9rem;
    text-decoration: none;
    padding: 4px 0;
}

.modal__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: 0;
    text-align: center;
}

.modal__actions {
    display: flex;
    gap: var(--space-1);
}

.modal__actions .submit-button,
.modal__actions .secondary-button {
    flex: 1;
}

.secondary-button {
    padding: 12px var(--space-2);
    border-radius: 4px;
    border: 1px solid rgba(237, 231, 218, 0.16);
    background: transparent;
    color: var(--bone);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.secondary-button--full {
    width: 100%;
}

a.secondary-button {
    display: block;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
    .secondary-button:hover {
        border-color: var(--bone-dim);
    }
}

/* Avatar crop/zoom editor */

.avatar-crop {
    width: 240px;
    height: 240px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    margin: 0 auto;
    border: 3px solid var(--brass);
    background: var(--ink);
    touch-action: none;
    cursor: grab;
    align-self: center;
}

.avatar-crop__image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    user-select: none;
    -webkit-user-drag: none;
}

#zoomRange {
    width: 100%;
    accent-color: var(--brass);
}

/* =========================================================
   Admin barber-visibility toggle (profile.php)
   ========================================================= */

.barber-toggle-section {
    margin-bottom: var(--space-3);
    padding: var(--space-2);
    border-radius: 8px;
    border: 1px solid var(--brass-dim);
    background: var(--ink-2);
}

.barber-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    cursor: pointer;
}

.barber-toggle__label {
    font-size: 0.9rem;
    color: var(--bone);
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch__track {
    position: absolute;
    inset: 0;
    background: rgba(237, 231, 218, 0.16);
    border-radius: 999px;
    transition: background-color 0.2s ease;
}

.switch__track::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: var(--bone);
    border-radius: 50%;
    transition: transform 0.2s ease;
}

.switch input:checked + .switch__track {
    background: var(--brass);
}

.switch input:checked + .switch__track::before {
    transform: translateX(20px);
    background: var(--ink);
}

.barber-toggle-section .form-hint {
    margin-top: 8px;
}

/* Barber switch waiting for the profile to be completed */
.barber-toggle--disabled { cursor: default; }
.barber-toggle--disabled .barber-toggle__label { opacity: .55; }
.switch input:disabled + .switch__track { opacity: .4; }

/* Red dot on the settings gear: name, city or address still missing */
.profile-settings-link { position: relative; }
.profile-settings-link__dot {
    position: absolute;
    top: 2px;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2483c;
    border: 2px solid var(--ink);
}

/* =========================================================
   Barbers list (public/barbers.php)
   ========================================================= */

.screen--barbers {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.barbers-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: var(--space-2) 0 var(--space-3);
}

.barbers-controls {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
}

.barbers-search,
.barbers-sort {
    width: 100%;
}

.barbers-filter-row {
    display: flex;
    gap: var(--space-1);
}

.barbers-filter-row .barbers-sort {
    flex: 1;
}
/* Fallback width of the "Rādīt" select; inside the filter row it shares the line with the sort select. */
.barbers-show {
    width: 100%;
}

.barbers-specific-city {
    width: 100%;
}

.barbers-empty {
    text-align: center;
    color: var(--bone-dim);
    font-size: 0.95rem;
    margin-top: var(--space-3);
}

.barbers-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.barber-card {
    border-radius: 8px;
    border: 1px solid rgba(237, 231, 218, 0.12);
    background: var(--ink-2);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .barber-card:hover {
        border-color: var(--brass-dim);
    }
}

.barber-card__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: var(--space-2) 8px;
}

.barber-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brass);
    flex-shrink: 0;
}

.barber-card__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.barber-card__name {
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: var(--bone);
}

.barber-card__rating {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    font-size: 1.1rem;
    white-space: nowrap;
    min-width: 0;
}

.barber-card__rating-text {
    font-size: 0.8rem;
    color: var(--bone-dim);
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   Fractional star rating (reused by barbers.php, barber_profile.php)
   ========================================================= */

.star-rating {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 1px;
    white-space: nowrap;
}

.star-rating__empty {
    color: rgba(237, 231, 218, 0.25);
}

.star-rating__filled {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: var(--brass);
}

/* =========================================================
   Barber profile — review list (public/barber_profile.php)
   ========================================================= */

.review-item {
    padding: var(--space-2) 0;
    border-bottom: 1px solid rgba(237, 231, 218, 0.1);
}

.review-item:last-child {
    border-bottom: none;
}

.review-item__header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.review-item__name {
    font-weight: 600;
    color: var(--bone);
    font-size: 0.9rem;
}

.review-item__date {
    font-size: 0.75rem;
    color: var(--bone-dim);
    margin-left: auto;
}

.review-item__comment {
    font-size: 0.85rem;
    color: var(--bone-dim);
    line-height: 1.5;
}

.reviews-more-toggle {
    color: var(--brass);
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: var(--space-1);
    display: inline-block;
}

.reviews-pagination {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-2);
    font-size: 0.85rem;
}

.reviews-pagination a {
    color: var(--brass);
}

/* =========================================================
   Barber price editor (profile.php)
   ========================================================= */

.price-section {
    margin-bottom: var(--space-3);
}

.price-section__title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    letter-spacing: 0.04em;
    font-weight: 400;
    color: var(--bone);
    margin: 0 0 var(--space-2);
}

.price-field__label {
    flex: 0 0 42%;
    font-size: 0.95rem;
    color: var(--bone);
}

.price-field__box {
    position: relative;
    flex: 1;
    min-width: 0;
}

.price-field__ghost {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 15px;
    display: flex;
    align-items: center;
    pointer-events: none;
    white-space: pre;
    font-family: var(--font-body);
    font-size: 1rem;
}

.price-field__typed {
    visibility: hidden;
}

.price-field__suffix {
    color: var(--bone-dim);
    opacity: 0.7;
}

.price-save-row {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-1);
}

#pricesSavedNote:not([hidden]) {
    margin-top: 6px;
}

/* =========================================================
   Barber public profile (public/barber_profile.php)
   ========================================================= */

.barber-profile__rating {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.4rem;
    white-space: nowrap;
}

.barber-profile__rating-number {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bone);
}

/* Price lines (vīrietis, sieviete, bērns, krāsošana stundā): barber list card and public profile. */
.barber-card__prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    width: max-content;
    font-size: 0.8rem;
}

.barber-profile__prices {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 160px;
    margin: 6px auto 0;
    font-size: 0.95rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    white-space: nowrap;
}

.price-line__label {
    color: var(--bone-dim);
}

.price-line__value {
    color: var(--brass);
    font-weight: 600;
}

.barber-profile__served {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--bone-dim);
    text-align: center;
}

.barber-profile__cta {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-bottom: var(--space-4);
}

/* =========================================================
   Barber service areas (profile.php)
   ========================================================= */

.service-areas-section {
    margin-bottom: var(--space-3);
}

.service-areas-add {
    display: flex;
    gap: var(--space-1);
    margin-bottom: var(--space-2);
}

/* Notice right under the input row (cancels the row's bottom margin), with room before the chips. */
#serviceAreasNotice {
    margin: calc(-1 * var(--space-2) + 4px) 0 var(--space-2);
}

.service-areas-add .form-input {
    flex: 1;
}

.service-areas-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-area-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 6px 6px 12px;
    border-radius: 999px;
    background: var(--ink-2);
    border: 1px solid var(--brass-dim);
    font-size: 0.85rem;
    color: var(--bone);
}

.service-area-chip__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background: rgba(237, 231, 218, 0.1);
    color: var(--bone-dim);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .service-area-chip__remove:hover {
        background: var(--error);
        color: #fff;
    }
}

/* Rīga in the places list: one row that opens to the areas, and those to the neighbourhoods. */
.riga-tree { flex: 1 1 100%; list-style: none; margin: 0; padding: 0; }
.riga-tree__children { list-style: none; margin: 6px 0 0 14px; padding: 0 0 0 10px; border-left: 1px solid var(--brass-dim); display: flex; flex-direction: column; gap: 6px; }
.riga-tree__children[hidden] { display: none; }
.riga-tree__district { margin: 0; padding: 0; }
.riga-tree__row { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border: 1px solid var(--brass-dim); border-radius: 999px; background: var(--ink-2); color: var(--bone); font-size: 0.85rem; }
.riga-tree__row--area { background: transparent; border-color: rgba(237, 231, 218, 0.16); }
.riga-tree__toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.riga-tree__name { flex: 0 1 auto; }
.riga-tree__row--area .riga-tree__name { flex: 1; }
.riga-tree__count { color: var(--bone-dim); font-size: 0.75rem; }
.riga-tree__caret { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--bone-dim); border-bottom: 2px solid var(--bone-dim); transform: rotate(45deg); transition: transform 0.15s; margin-right: 6px; }
.riga-tree--covered .riga-tree__row { border-color: #c4574f; color: #e0877f; }
.riga-tree--covered .riga-tree__children { border-left-color: #c4574f; }
.riga-tree__toggle[aria-expanded="true"] .riga-tree__caret { transform: rotate(-135deg); }

/* =========================================================
   Barber public profile — service areas (barber_profile.php)
   ========================================================= */

.barber-profile__areas {
    margin-bottom: var(--space-3);
}

.barber-profile__areas-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: 0 0 var(--space-1);
}

.service-area-chip--static {
    padding: 6px 12px;
}

/* =========================================================
   Booking confirmation (public/booking_confirmation.php)
   ========================================================= */

.confirmation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: var(--space-4);
    gap: var(--space-1);
}

.confirmation-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brass);
    color: var(--ink);
    font-size: 2rem;
    margin-bottom: var(--space-2);
}

.confirmation-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: 0;
}

.confirmation-text {
    font-size: 0.95rem;
    color: var(--bone-dim);
    margin: 0 0 var(--space-2);
}

.confirmation-details {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: var(--space-2);
    width: 100%;
    border-radius: 8px;
    background: var(--ink-2);
    border: 1px solid rgba(237, 231, 218, 0.12);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.confirmation-details li {
    font-size: 0.9rem;
    color: var(--bone-dim);
}

.confirmation-details strong {
    color: var(--bone);
}

.confirmation-cta {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
}

.periodFieldsContainer,
#periodFieldsContainer {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input--static {
    color: var(--bone-dim);
    background: var(--ink);
    cursor: default;
    display: flex;
    align-items: center;
}

/* =========================================================
   Booking calendar (Stage 10 — visual day availability)
   ========================================================= */

.calendar {
    border: 1px solid rgba(237, 231, 218, 0.16);
    border-radius: 8px;
    background: var(--ink-2);
    padding: var(--space-2);
}

.calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-1);
}

.calendar__nav {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--brass-dim);
    background: transparent;
    color: var(--bone);
    font-size: 1.1rem;
    cursor: pointer;
}

.calendar__nav:disabled {
    opacity: 0.3;
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .calendar__nav:not(:disabled):hover {
        border-color: var(--brass);
    }
}

.calendar__month-label {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.03em;
    color: var(--bone);
}

.calendar__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.calendar__weekdays span {
    text-align: center;
    font-size: 0.7rem;
    color: var(--bone-dim);
}

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

.calendar__day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.85rem;
    font-family: var(--font-body);
}

.calendar__day--empty {
    visibility: hidden;
}

.calendar__day--available {
    color: var(--bone);
    background: rgba(237, 231, 218, 0.06);
    cursor: pointer;
}

@media (hover: hover) and (pointer: fine) {
    .calendar__day--available:hover {
        border-color: var(--brass);
    }
}

.calendar__day--unavailable {
    color: var(--bone-dim);
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar__day--selected {
    background: var(--brass);
    color: var(--ink);
    font-weight: 600;
}

.calendar__status {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--bone-dim);
    padding: var(--space-2) 0;
}

.calendar__legend {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
    padding-top: var(--space-1);
    border-top: 1px solid rgba(237, 231, 218, 0.08);
}

.calendar__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--bone-dim);
}

.calendar__legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.calendar__legend-dot--available {
    background: var(--bone-dim);
}

.calendar__legend-dot--unavailable {
    background: var(--ink-2);
    border: 1px solid rgba(237, 231, 218, 0.15);
}

/* =========================================================
   Barber schedule (public/schedule.php)
   ========================================================= */

.screen--schedule {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.schedule-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 7.5vw, 2.1rem);
    letter-spacing: 0.04em;
    color: var(--bone);
    margin: var(--space-2) 0 var(--space-3);
}

.schedule-day {
    margin-bottom: var(--space-3);
}

.schedule-day__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--brass);
    margin: 0 0 var(--space-1);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(237, 231, 218, 0.12);
}

/* =========================================================
   Mans grafiks — table view (public/my_schedule.php)
   ========================================================= */

.schedule-table-wrap {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(237, 231, 218, 0.12);
    margin-bottom: var(--space-1);
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ink-2);
    font-size: 0.8rem;
    white-space: nowrap;
}

.schedule-table th,
.schedule-table td {
    padding: 8px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(237, 231, 218, 0.08);
}

.schedule-table thead th {
    font-family: var(--font-display);
    letter-spacing: 0.03em;
    color: var(--brass);
    font-weight: 400;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(237, 231, 218, 0.2);
}

.schedule-table tbody tr:last-child td {
    border-bottom: none;
}

.schedule-table td {
    color: var(--bone-dim);
}

.schedule-table td a {
    color: var(--brass);
}

/* =========================================================
   Manas vizītes (public/my_bookings.php)
   ========================================================= */

.my-booking-card {
    padding: var(--space-2);
    border-radius: 8px;
    border: 1px solid rgba(237, 231, 218, 0.12);
    background: var(--ink-2);
    margin-bottom: var(--space-2);
}

.my-booking-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.my-booking-card__barber {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--bone);
}

.my-booking-card__day {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brass);
}

.my-booking-card__row {
    font-size: 0.85rem;
    color: var(--bone-dim);
    margin: 4px 0;
}

.my-booking-card__row strong {
    color: var(--bone);
}

.my-booking-card__actions {
    display: flex;
    gap: var(--space-1);
    margin-top: var(--space-2);
}

.my-booking-card__actions .secondary-button,
.my-booking-card__actions .submit-button {
    flex: 1;
}

/* =========================================================
   Sākt darbu — calendar day cells (public/start_work.php)
   ========================================================= */

.calendar__day {
    aspect-ratio: 1;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: var(--bone-dim);
    font-size: 0.85rem;
    cursor: default;
}

.calendar__day--empty {
    visibility: hidden;
}

.calendar__day--available {
    background: rgba(201, 138, 60, 0.18);
    color: var(--bone);
    cursor: pointer;
    font-weight: 600;
}

.calendar__day--available:hover {
    background: rgba(201, 138, 60, 0.3);
}

.calendar__day--unavailable {
    opacity: 0.4;
}

.calendar__day--selected {
    background: var(--brass);
    color: var(--ink);
}

.calendar__day--available:disabled {
    cursor: default;
    opacity: 0.7;
}

/* =========================================================
   Maršruts — route map (public/route.php)
   ========================================================= */

.route-city {
    font-family: var(--font-display);
    font-size: 1.3rem;
    letter-spacing: 0.03em;
    color: var(--brass);
    margin-bottom: var(--space-2);
}

.route-summary {
    margin-bottom: var(--space-2);
}

/* Booking form: shown under the barber field while "(Admin)" is chosen. Also the route-mode notice on day_cities.php. */
.admin-mode-notice,
.day-cities-notice {
    margin: 0 0 var(--space-2);
    padding: 10px 12px;
    border-left: 3px solid var(--brass);
    border-radius: 4px;
    background: rgba(201, 138, 60, 0.12);
    color: var(--bone);
    font-size: 0.85rem;
    line-height: 1.4;
}

.admin-mode-notice[hidden] {
    display: none;
}

/* "Ieteicamā braukšanas secība:" above the client list, set apart from the colour legend. */
.route-order-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--brass);
    margin: 28px 0 6px;
}

.route-order-title + .route-clients {
    margin-top: 0;
}

.route-summary__figures {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--bone);
}

.route-summary__figures[hidden],
.route-summary .secondary-button[hidden] {
    display: none;
}

.route-summary__note {
    margin: 4px 0 var(--space-1);
}

.route-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
}

.route-summary__actions .secondary-button {
    flex: 1 1 auto;
    text-align: center;
    text-decoration: none;
}

.route-map {
    width: 100%;
    height: 35vh;
    min-height: 220px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(237, 231, 218, 0.12);
}

.route-map-wrap {
    position: relative;
}

.route-map__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ink-2);
    border: 1px solid rgba(237, 231, 218, 0.25);
    color: var(--bone);
    font-size: 1.4rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.route-client-details {
    list-style: none;
    padding: 0;
    margin: var(--space-2) 0;
    font-size: 0.85rem;
    color: var(--bone-dim);
}

.route-client-details li {
    margin: 4px 0;
}

.route-client-details strong {
    color: var(--bone);
}

.route-client-details a {
    color: var(--brass);
}

.route-address-people {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.route-address-people__tab {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(237, 231, 218, 0.25);
    background: transparent;
    color: var(--bone-dim);
    font-size: 0.75rem;
    cursor: pointer;
}

.route-address-people__tab:hover {
    border-color: var(--brass);
    color: var(--brass);
}

.modal__actions--stacked {
    flex-direction: column;
}

.route-marker span {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    box-shadow: 0 0 0 2px rgba(237, 231, 218, 0.3);
}

.route-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 0.8rem;
    color: var(--bone-dim);
}

.route-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.route-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

.menu-panel__item--badge {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-panel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c0392b;
    display: inline-block;
}

/* Dot colors: shared by menu items and the burger-button dot */
.menu-panel__dot--red { background: #c0392b; }
.menu-panel__dot--green { background: #2ecc71; }
.menu-panel__dot--blue { background: #3498db; }

/* Dot in the corner of the burger button */
.menu-wrapper__dot {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid #14171f;
    pointer-events: none;
    z-index: 21;
}

.error-page {
    text-align: center;
    padding: var(--space-3) var(--space-2);
}

.error-page__icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-2);
}

.error-page__title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--brass);
    margin-bottom: var(--space-1);
}

.error-page__text {
    color: var(--bone-dim);
    margin-bottom: var(--space-3);
}

.secondary-button:disabled,
.submit-button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.form-fieldset--invalid {
    border: 1px solid #c0392b;
    border-radius: 6px;
    padding: var(--space-2);
}

.push-foreground-banner {
    position: fixed;
    top: env(safe-area-inset-top, 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    max-width: 90vw;
    background: var(--ink-2);
    border: 1px solid var(--brass-dim);
    border-radius: 8px;
    padding: var(--space-2);
    font-size: 0.85rem;
    color: var(--bone);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Leaflet's own panes/controls use z-index up to 1000 — this page's
   modals must sit above all of that, or they render invisibly behind
   the map while still blocking its clicks. */
.page--route .modal-overlay {
    z-index: 2000;
}

.phone-input-group {
    display: flex;
    gap: 6px;
}

.phone-input-group__plus {
    display: flex;
    align-items: center;
    color: var(--bone-dim);
    font-size: 1rem;
    padding-left: 4px;
}

.phone-input-group__code {
    width: 56px;
    flex-shrink: 0;
    text-align: center;
}

.phone-input-group__number {
    flex: 1;
}

/* =========================================================
   Index "Kļūt par frizieri" subtitle + "Mans abonements" info
   ========================================================= */

.subscription-info {
    list-style: none;
    padding: 0;
    margin: var(--space-1) 0;
    text-align: left;
    font-size: 0.9rem;
    color: var(--bone-dim);
}

.subscription-info li {
    padding: 4px 0;
}

/* ---- Account section, help line, legal ---- */
.account-section { margin: 32px 0 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 14px; align-items: stretch; }
.account-section__title { font-size: 1.1rem; margin: 0; }
.help-line { text-align: center; font-size: .9rem; opacity: .8; margin: 12px 0; }
.help-line a { color: inherit; font-weight: 600; text-decoration: underline; }
.legal-links { text-align: center; font-size: .85rem; opacity: .8; margin: 0; }
.legal-links a { color: inherit; text-decoration: underline; }
.danger-link { background: none; border: 0; color: #ff6b6b; font-size: .9rem; text-decoration: underline; padding: 8px; cursor: pointer; align-self: center; }
.submit-button--danger { background: #d9435a; }
.legal-text { font-size: .92rem; line-height: 1.55; padding-bottom: 32px; }
.legal-text h2 { font-size: 1.05rem; margin: 22px 0 6px; }
.legal-text ul { padding-left: 20px; }

button.reviews-more-toggle { background: none; border: 0; padding: 0; font-family: inherit; }
.reviews-extra[hidden] { display: none; }

.checkbox-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.4; }
.checkbox-row input { margin-top: 3px; flex: none; }
.legal-open { background: none; border: 0; padding: 0; color: var(--brass); text-decoration: underline; font: inherit; cursor: pointer; }
.modal--legal { max-height: 85vh; display: flex; flex-direction: column; }
.modal__scroll { overflow-y: auto; flex: 1; margin: 8px 0; }

.guest-code-box { margin: 20px 0; padding: 16px; border: 1px dashed var(--brass); border-radius: 12px; text-align: center; }
.guest-code-box__code { font-size: 2rem; letter-spacing: .3em; font-weight: 700; margin: 8px 0; cursor: pointer; user-select: all; -webkit-user-select: all; }

/* ---- Days off ---- */
.days-off-link { display: block; text-align: center; margin: 0; text-decoration: none; }
.profile-tools { display: flex; flex-direction: column; gap: 10px; margin: 0 0 var(--space-3); }
.days-off-list { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.days-off-options { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.calendar__day--off { background: rgba(217, 67, 90, 0.35) !important; color: var(--bone); }
.calendar__legend-dot--off { background: rgba(217, 67, 90, 0.6); }
.calendar__day--timeoff { background: rgba(217, 67, 90, 0.18); color: var(--bone-dim); cursor: not-allowed; opacity: .75; }

.review-item__comment { overflow-wrap: anywhere; word-break: break-word; }
.modal--scroll { max-height: 90vh; overflow-y: auto; }
.days-off-sep { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 4px 0; width: 100%; }
.checkbox-row--disabled { opacity: .4; }
.calendar__day--partial { background: rgba(217, 67, 90, 0.18) !important; box-shadow: inset 0 0 0 1px rgba(217, 67, 90, 0.6); }
.calendar__legend-dot--partial { background: rgba(217, 67, 90, 0.25); box-shadow: inset 0 0 0 1px rgba(217, 67, 90, 0.6); }

.holiday-toggle { margin: 12px 0 4px; }
.calendar__day--holiday { color: #ff6b6b !important; font-weight: 700; }
.calendar__legend-dot--holiday { background: transparent; box-shadow: inset 0 0 0 2px #ff6b6b; }

/* ---- Days off and city per day: spacing ---- */
.days-off-intro { margin: 0 0 var(--space-3); }
.holiday-box { margin: var(--space-3) 0 0; padding: var(--space-2) var(--space-3); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.holiday-box .form-hint { margin: 6px 0 0; }
.holiday-toggle { margin: 0; }
.day-cities-summary { font-size: 1.05rem; line-height: 1.5; color: var(--bone); margin: 12px 0 0; }
#dcCalendar { margin-bottom: 4px; }

/* ---- Route: client list under the map ---- */
.route-clients { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.route-client { display: flex; gap: 12px; padding: 12px; border: 1px solid rgba(237, 231, 218, 0.16); border-radius: 10px; background: var(--ink-2); cursor: pointer; }
.route-client__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; margin-top: 4px; box-shadow: 0 0 0 2px rgba(237, 231, 218, 0.3); }
.route-client__body { min-width: 0; flex: 1; }
.route-client__body p { margin: 0 0 4px; overflow-wrap: anywhere; }
.route-client__time { font-size: .75rem; color: var(--bone-dim); }
.route-client__address { font-weight: 600; }
.route-client__warn { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; background: rgba(217, 67, 90, .25); color: #ff8a9a; }
.route-client__parking { font-size: .85rem; color: var(--bone-dim); }
.route-client__label { opacity: .8; }
.route-client__person { font-size: .9rem; }
.route-client__phone { color: var(--brass); text-decoration: underline; }

/* ---- Reports, admin log, warnings ---- */

/* Red "!" report button: inside a review card (bottom-right date, button top-right)
   and, with --top, in the top-right corner of a barber page. */
.review-item { position: relative; min-height: 64px; }
/* Date in the bottom-right corner of the card, level with the last line of the text; the text keeps clear of it
   and the card grows with every extra line, so there is no empty strip under the comment. */
.review-item .review-item__date { position: absolute; bottom: calc(var(--space-2) + 3px); right: 0; margin: 0; }
.review-item__comment { margin: 0; padding-right: 84px; }
.review-report { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: #d9435a; color: #fff; font-weight: 700; font-size: .85rem; line-height: 24px; text-align: center; text-decoration: none; display: inline-block; cursor: pointer; padding: 0; }
.review-item .review-report { right: 0; }
.review-report--done { background: rgba(217, 67, 90, .3); cursor: default; }
.review-report--top { top: calc(var(--space-3) + var(--safe-top)); right: calc(var(--space-3) + var(--safe-right)); width: 30px; height: 30px; line-height: 30px; font-size: 1rem; z-index: 5; }
.screen--relative { position: relative; }

/* Report modals */
.report-reasons { display: flex; flex-direction: column; gap: 8px; }
.report-reason { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.warning-text { font-size: .95rem; line-height: 1.4; margin: 0; }

/* Profile: "Vērtējums" heading row with average rating */
.profile-reviews__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid rgba(237, 231, 218, .25); }

/* Admin log */
.admin-section { margin-top: 20px; }
.admin-section__title { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 10px; }
.admin-card { border: 1px solid rgba(237, 231, 218, .16); border-radius: 8px; padding: 12px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 6px; background: var(--ink-2); }
.admin-card__meta { font-size: .8rem; color: var(--bone-dim); }
.admin-card__reason { font-weight: 600; color: #ff8a9a; font-size: .9rem; }
.admin-card__text { margin: 0; font-size: .9rem; white-space: pre-wrap; word-break: break-word; }
.admin-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.admin-card__actions button { flex: 1; min-width: 120px; padding: 10px; font-size: .85rem; }
.admin-card--done { opacity: .7; }
.admin-empty { font-size: .9rem; color: var(--bone-dim); }

#barberBlockTop[hidden],
#barberBlockBottom[hidden] { display: none; }

.profile-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
}
.profile-topbar .back-button--static { margin-bottom: 0; }
.profile-settings-link {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--brass);
    text-decoration: none;
    padding: var(--space-1);
}
.settings-email {
    margin-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.admin-tabs { display: flex; gap: var(--space-1); margin-bottom: var(--space-2); }
.admin-tab {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: 1px solid var(--line, rgba(255,255,255,.15));
    border-radius: 8px;
    color: inherit;
    font: inherit;
}
.admin-tab.is-active { border-color: var(--brass); color: var(--brass); }
#tab-users .form-input, #tab-bookings .form-input { margin-bottom: var(--space-1); }
.admin-card--click { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.admin-subtitle { margin: var(--space-2) 0 var(--space-1); font-size: 1rem; color: var(--brass); }
.admin-row { margin: 0 0 8px; font-size: .9rem; word-break: break-word; }
.admin-row .admin-card__meta { display: block; }
.modal--scroll { max-height: 85vh; overflow-y: auto; }

#userModal [hidden] { display: none !important; }
.admin-modal-head {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: var(--space-2);
}
.admin-modal-head .modal__title {
    flex: 1 1 auto;
    margin: 0;
    text-align: left;
    font-size: 1.4rem;
    line-height: 1.1;
}
.admin-mini-btn {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid rgba(237, 231, 218, 0.16);
    border-radius: 4px;
    background: transparent;
    color: var(--bone);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
}
.admin-modal-actions {
    display: flex;
    gap: 8px;
    align-items: stretch;
    margin-top: var(--space-2);
}
.admin-modal-actions .secondary-button,
.admin-modal-actions .submit-button {
    height: 44px;
    padding: 0 12px;
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.15;
    box-sizing: border-box;
}
.admin-modal-actions .secondary-button { flex: 1 1 auto; }
.admin-modal-actions .submit-button { flex: 1 1 auto; }
.admin-modal-actions.has-grant .secondary-button { flex: 0 0 auto; }

/* ---- Pilsētas pa dienām: intro text spacing, bigger city label ---- */
.day-cities-intro { margin-bottom: 28px; line-height: 1.5; }
.day-cities-city-label { font-size: 1.15rem; margin-bottom: 10px; }

/* ---- Address problems (route + start_work) ---- */
.calendar__day--problem { position: relative; }
.calendar__day--problem::after {
    content: ''; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px;
    border-radius: 50%; background: #e0372b; box-shadow: 0 0 0 2px var(--ink-2);
}
.fix-address-card { margin-bottom: 16px; }
.calendar__legend-dot--problem { background: #e0372b; }
.submit-button--link { display: block; text-align: center; text-decoration: none; margin: 10px 0 8px; }

/* ---- City combobox (city_combobox.js) ---- */
.combobox { position: relative; }
.combobox[hidden] { display: none; }
.service-areas-add .combobox { flex: 1; min-width: 0; }
.combobox__input { width: 100%; padding-right: 44px; }
.combobox__toggle {
    position: absolute; top: 0; right: 0; bottom: 0; width: 44px; border: 0; background: transparent; cursor: pointer;
}
.combobox__toggle::after {
    content: ''; position: absolute; left: 50%; top: 50%; margin: -2px 0 0 -5px;
    border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--bone-dim);
}
.combobox__list {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50;
    margin: 0; padding: 0; list-style: none; max-height: 235px; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y;
    background: var(--ink-2); border: 1px solid var(--brass-dim); border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); -webkit-overflow-scrolling: touch;
}
.combobox__list[hidden] { display: none; }
.combobox__item { box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; min-height: 47px; line-height: 23px; padding: 12px 14px; overflow-wrap: anywhere; font-size: 1rem; color: var(--bone); cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.06); }
.combobox__item-sub { font-size: .8rem; line-height: 1.2; color: var(--bone-dim); }
.combobox__item:active { background: rgba(201, 138, 60, 0.25); }

/* ---- Route client popup: compact, scrolls instead of leaving the screen ---- */
.page--route .modal { gap: 6px; padding: 14px; max-height: 94vh; max-height: 94dvh; overflow-y: auto; }
.page--route .modal .route-client-details { margin: 2px 0; line-height: 1.35; }
.page--route .modal .route-client-details li { margin: 2px 0; }
.page--route .modal .modal__actions--stacked { gap: 6px; }
.page--route .modal .modal__actions--stacked button { padding: 11px; }
.page--route .modal .form-hint { margin: 0; }
.route-client-details__phone { display: inline-block; padding: 4px 2px; font-weight: 600; text-decoration: underline; }
.admin-card__repeat { display: inline-block; align-self: flex-start; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: rgba(224, 55, 43, .25); color: #ff8a9a; }
.admin-card__tel { color: var(--brass); text-decoration: underline; }
.admin-card__history summary { cursor: pointer; font-size: .8rem; color: var(--bone-dim); margin: 4px 0; }

/* ---- Textareas: no drag handle, they grow with the text (textarea_autogrow.js) ---- */
textarea, .form-textarea { resize: none; max-width: 100%; box-sizing: border-box; overflow-y: hidden; }
.my-booking-card__notice { margin: 6px 0; font-size: .8rem; color: var(--brass); }

/* ---- Booking: barber-first mode (locked fields) ---- */
.form-input--locked,
.form-input[data-locked] { opacity: .6; pointer-events: none; }
.link-button { background: none; border: 0; padding: 6px 0; margin-top: 4px; color: var(--brass); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.link-button[hidden] { display: none; }
.combobox__item--clear { color: var(--bone-dim); font-style: italic; }

/* ---- App feel: no link preview/callout on long press ---- */
a, img { -webkit-touch-callout: none; -webkit-user-drag: none; }

/* Babekora atsauce */
.babekora-credit { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 18px 0 8px; font-size: .75rem; color: var(--bone-dim); }
.babekora-credit__label { font-family: var(--font-body); font-size: 1.15rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2; }
.babekora-credit__link { display: inline-block; line-height: 1.2; font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.app-version { margin: 0 0 8px; text-align: center; font-size: .75rem; color: var(--bone-dim); opacity: .7; }
.babekora-credit__link .y { color: var(--babekora-yellow); }
.babekora-credit__link .w { color: var(--babekora-white); }
.babekora-credit__link:hover, .babekora-credit__link:focus-visible { filter: brightness(1.15); }

/* Tastatūra atvērta: vieta, lai lauku var pabīdīt uz augšu */
html.keyboard-open body { padding-bottom: 45vh; }
/* Bilde ir kvadrāts ar tukšām malām, tāpēc tās nogriež ar negatīvām malām (redzamā daļa ir 24 px augsta) */
.babekora-credit__mark { display: inline-block; vertical-align: middle; width: 46px; height: 46px; margin: -12px -6px -10px -15px; }

/* Abonementa lapa: "Ziņot par problēmu" apakšā pa kreisi */
.support-report-button { align-self: flex-start; margin-top: auto; padding: 10px 0 0; background: none; border: 0; color: var(--bone-dim); font-family: var(--font-body); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.screen--subscription .subscription-benefits { margin-bottom: var(--space-3); }

/* Veiksmīgi nosūtīta ziņojuma paziņojums (zaļš, labi redzams) */
.form-success-box { margin: 14px 0 0; padding: 12px; border: 1px solid var(--success); border-radius: 6px; background: rgba(95, 207, 138, .14); color: var(--success); font-size: .95rem; font-weight: 600; text-align: center; }

/* Administratora atbilde klientam (popup sākumlapā) */
.support-reply-text { margin: 10px 0; padding: 12px; border-left: 3px solid var(--brass); background: rgba(201, 161, 95, .1); border-radius: 4px; font-size: .95rem; overflow-wrap: anywhere; }

.subscription-intro--note { padding: 12px; border: 1px solid var(--brass); border-radius: 6px; background: rgba(201, 161, 95, .1); color: var(--bone); }

/* =========================================================
   Profile: "Visas pilsētas" and booking form client groups
   ========================================================= */

.client-counters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-1);
}

.client-counter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.client-counter__label {
    font-size: 0.8rem;
    color: var(--bone-dim);
}

.price-total {
    border: 1px solid var(--brass-dim);
    border-radius: 4px;
    padding: var(--space-2);
    text-align: center;
}

.price-total__main {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--brass);
}

.price-total__detail {
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--bone-dim);
}

/* Profile price options: tick box per client group, price field appears under it. */
.price-section__group {
    margin: var(--space-2) 0 4px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bone-dim);
}

.check-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.95rem;
}

.check-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brass);
}

.price-option__field {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-1) 28px;
}

.price-option__field .price-field__label {
    flex: 0 0 30%;
    color: var(--bone-dim);
}

.price-option--inline {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-option--inline .check-option {
    flex: 0 0 42%;
}

.price-option--inline .price-option__field {
    flex: 1;
    min-width: 0;
    margin: 0;
}

.price-option--inline .price-option__field .price-field__box {
    width: 100%;
}

.price-option__field[hidden] {
    display: none;
}

.price-save-row .secondary-button {
    width: 100%;
}

/* Prices of the chosen barber under the booking select: one line, cut off if the phone is narrow. */
.barber-prices-line {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--brass);
    display: grid;
    grid-template-rows: repeat(2, auto);
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    column-gap: 28px;
    row-gap: 2px;
}
.barber-prices-line[hidden] { display: none; }
.barber-prices-line span { white-space: nowrap; }

/* Booking form: address check */
.address-check-button { width: 100%; margin-top: 8px; }
.address-status { margin: 6px 0 0; font-size: .85rem; }
.address-status--error { font-weight: 600; }
.address-status--ok { color: var(--success); }
.address-status--warn { color: var(--brass); }
.address-check-button--required { color: var(--error); }
.address-status--error { color: var(--error); }

/* =========================================================
   Profile cards: every group of settings in its own thin brass frame (profile.php)
   ========================================================= */

.profile-card {
    margin: 0 0 var(--space-3);
    padding: var(--space-2);
    border: 1px solid var(--brass-dim);
    border-radius: 10px;
    background: var(--ink-2);
}
.profile-card .price-section__title { font-size: 1.4rem; }
.profile-card .profile-about__header { margin-bottom: var(--space-1); }
.profile-card__tools {
    margin: var(--space-2) 0 0;
    padding-top: var(--space-2);
    border-top: 1px solid rgba(237, 231, 218, .14);
}
.profile-card__tools[hidden] { display: none; }
.profile-tools-card[hidden] { display: none; }
.profile-tools-card .profile-tools { margin: 0; }
.account-section.profile-card { gap: 12px; }
.profile-card .profile-reviews__head { margin-top: 0; }

/* A place chosen by itself that a chosen group already covers: shown red, not used separately. */
.service-area-chip--covered { border-color: #c4574f; color: #e0877f; }
.service-area-chip--covered span { color: #e0877f; }
.service-areas-covered-hint { margin-top: var(--space-1); color: #e0877f; }

.route-mode-option {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-2);
    align-items: start;
    margin-bottom: var(--space-2);
    cursor: pointer;
}

.route-mode-option input { grid-row: 1 / span 2; margin-top: 4px; }

.route-mode-option__title { font-weight: 600; color: var(--bone); }

.route-mode-option__text { font-size: 0.85rem; color: var(--bone-dim); }

.route-mode-option--disabled { opacity: 0.5; cursor: default; }

/* Barber route popup: "Kavēšu" in the top corner, notice for imprecise addresses */
.page--route .modal { position: relative; }
.page--route #clientModalName { padding-top: 14px; }
.late-button { position: absolute; top: 8px; right: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--brass-dim); background: transparent; color: var(--brass); font-size: .8rem; font-weight: 600; cursor: pointer; }
.late-button:disabled { opacity: .5; cursor: default; }
.page--route .modal .route-client-details__warn { padding: 8px 10px; border-left: 3px solid #d9435a; background: rgba(217, 67, 90, .12); border-radius: 4px; color: #ff8a9a; font-size: .85rem; }
.late-notice { margin: 8px 0; padding: 10px 12px; border-left: 3px solid var(--brass); background: rgba(201, 161, 95, .1); border-radius: 4px; font-size: .9rem; }
#locationNoteField[hidden] { display: none; }
.route-legend { row-gap: 10px; column-gap: 16px; }
.route-legend + .form-error--banner { margin-top: 24px; }

/* Booking form: "mark your home" map */
.pin-map { width: 100%; height: 280px; border-radius: 8px; border: 1px solid var(--brass-dim); overflow: hidden; }
#pinPicker[hidden] { display: none; }

.day-cities-until [hidden] { display: none !important; }
.day-cities-until.is-disabled,
#dcDistanceWrap.is-disabled { opacity: 0.45; }
#dcNightNote { white-space: pre-line; }
.day-cities-addr-actions { display: flex; gap: 8px; }
.day-cities-addr-actions .address-check-button { flex: 1; width: auto; }
.day-cities-until.is-disabled .checkbox-row { cursor: not-allowed; }


/* =========================================================
   Meistara žurnāls (public/my_journal.php)
   ========================================================= */

.screen--journal {
    padding-bottom: calc(var(--space-4) + var(--safe-bottom));
}

.journal-section {
    margin-bottom: var(--space-2);
}

.journal-section__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--brass);
    margin: 0 0 var(--space-1);
}

.journal-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--bone);
    border-bottom: 1px solid rgba(237, 231, 218, 0.08);
}

.journal-item:last-child {
    border-bottom: none;
}

.journal-item__box {
    flex: none;
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: var(--brass);
}

.journal-item__box:checked + .journal-item__text {
    color: var(--bone-dim);
    text-decoration: line-through;
}

.journal-hint {
    margin-top: var(--space-1);
    text-align: center;
}

/* =========================================================
   Meistara piezīmes darba dienai (start_work.php, route.php)
   ========================================================= */

.day-note-open {
    padding: 8px 14px;
    border: 1px solid var(--brass);
    border-radius: 999px;
    background: none;
    color: var(--brass);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.day-note-time {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page--route .route-note {
    display: flex;
    padding: 10px 12px;
    border: 1px solid rgba(111, 177, 140, 0.55);
    border-left-width: 4px;
    border-radius: 10px;
    background: rgba(111, 177, 140, 0.12);
    cursor: pointer;
}

.route-note__body {
    min-width: 0;
    flex: 1;
}

.route-note__label {
    margin: 0 0 2px;
    font-size: 0.75rem;
    color: #8fd0a8;
}

.route-note__text {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.route-note__text--popup {
    text-align: center;
    font-size: 1.05rem;
}

/* Three compact buttons side by side (note popup: Atpakaļ, Rediģēt, Noņemt). */
.modal__actions--row3 {
    flex-wrap: nowrap;
    gap: 6px;
}

.modal__actions--row3 .submit-button,
.modal__actions--row3 .secondary-button {
    flex: 1 1 0;
    min-width: 0;
    padding: 11px 6px;
    font-size: 0.85rem;
    white-space: nowrap;
}

.shop-links {
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid var(--line, rgba(255, 255, 255, 0.12));
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.shop-links__title {
    margin: 0;
    font-family: var(--font-display, inherit);
    letter-spacing: 0.04em;
}

.shop-links__button {
    display: block;
    text-align: center;
    text-decoration: none;
}

.my-booking-card--reserved {
    background: rgba(224, 104, 90, 0.12);
    border-color: var(--error);
}

#settingsForm {
    gap: 14px;
}

#settingsForm .form-hint {
    margin: 0;
}

.form-field[hidden] {
    display: none;
}

.schedule-day--focus .schedule-day__title {
    color: var(--brass);
}

.my-booking-card__continue {
    display: block;
    text-align: center;
    text-decoration: none;
}


/* Dainere logo in the booking header: the dark logo file is used as a mask, so it takes any colour. */
.booking-header__logos {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
}

.booking-logo {
    display: block;
    width: 104px;
    aspect-ratio: 2280 / 1671;
    -webkit-mask: url('../images/logo/dainere_logo.png') center / contain no-repeat;
    mask: url('../images/logo/dainere_logo.png') center / contain no-repeat;
}

.booking-logo { background: var(--bone); }
.tm {
    font-size: 0.4em;
    line-height: 0;
    vertical-align: baseline;
    position: relative;
    top: -1.2em;
    letter-spacing: 0.02em;
    margin-left: 0.1em;
}

/* =========================================================
   Mans plānotājs, čats un "Sarakstīties" poga (planner.php, chat.php, barber_profile.php)
   ========================================================= */

/* ---------- Mans plānotājs ---------- */

.planner-section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--brass);
    margin: 0 0 var(--space-1);
}

.planner-section-title--next {
    margin-top: var(--space-3);
}

.planner-empty {
    margin: 0 0 var(--space-1);
    text-align: left;
}

.chat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.chat-list__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid rgba(237, 231, 218, 0.12);
    background: var(--ink-2);
    color: inherit;
    text-decoration: none;
}

.chat-list__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brass);
    flex: 0 0 56px;
}

.chat-list__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.chat-list__name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
    color: var(--bone);
    overflow-wrap: anywhere;
}

.chat-list__preview {
    font-size: 0.85rem;
    color: var(--bone-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-list__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.chat-list__time {
    font-size: 0.7rem;
    color: var(--bone-dim);
}

.chat-list__badge {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #2ecc71;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- Saruna ---------- */
/* Lapa nerullējas pati: augša un ievadlauks stāv vietā, rullējas tikai ziņas.
   Augstumu (--chat-h) uzstāda chat_thread.js pēc redzamā laukuma, tāpēc ievadlauks
   vienmēr ir tieši virs tastatūras. */

html.keyboard-open body.page--chat {
    padding-bottom: 0;
}

body.page--chat {
    position: fixed;
    top: var(--chat-top, 0px);
    left: 0;
    width: 100%;
    height: var(--chat-h, 100dvh);
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.screen--chat {
    height: 100%;
    min-height: 0;
    padding: calc(var(--space-1) + var(--safe-top)) calc(var(--space-2) + var(--safe-right)) 0 calc(var(--space-2) + var(--safe-left));
    overflow: hidden;
}

.chat-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    position: static;
    flex-shrink: 0;
    padding: 0 0 var(--space-1);
    background: var(--ink);
    border-bottom: 1px solid rgba(237, 231, 218, 0.12);
}

.chat-top__back {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--bone-dim);
    text-decoration: none;
    padding: 8px 8px 8px 0;
}

.chat-top__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brass);
    flex: 0 0 40px;
}

.chat-top__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    color: var(--bone);
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-thread {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-2) 0 var(--space-1);
}

.chat-thread__empty {
    text-align: center;
    margin: auto 0;
}

.chat-bubble {
    max-width: 80%;
    padding: 7px 11px 5px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-bubble--mine {
    align-self: flex-end;
    background: var(--brass);
    color: var(--ink);
    border-bottom-right-radius: 4px;
}

.chat-bubble--theirs {
    align-self: flex-start;
    background: var(--ink-2);
    border: 1px solid rgba(237, 231, 218, 0.12);
    color: var(--bone);
    border-bottom-left-radius: 4px;
}

.chat-bubble__text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.chat-bubble__time {
    font-size: 0.65rem;
    opacity: 0.65;
    align-self: flex-end;
    white-space: nowrap;
}

.chat-note {
    text-align: center;
    flex-shrink: 0;
    margin: 0 0 var(--space-1);
}

#chatError {
    flex-shrink: 0;
    margin: 0 0 6px;
}

.chat-form {
    position: static;
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    align-items: flex-end;
    padding: var(--space-1) 0 calc(var(--space-1) + var(--safe-bottom));
    background: var(--ink);
    border-top: 1px solid rgba(237, 231, 218, 0.12);
}

.chat-form[hidden] {
    display: none;
}

.chat-form__input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 140px;
    padding: 11px 16px;
    border-radius: 22px;
    border: 1px solid rgba(237, 231, 218, 0.16);
    background: var(--ink-2);
    color: var(--bone);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 20px;
    resize: none;
    appearance: none;
    -webkit-appearance: none;
}

.chat-form__input:focus {
    outline: 2px solid var(--brass);
    outline-offset: 1px;
}

.chat-form__send {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brass);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-form__send:disabled {
    opacity: 0.5;
}

/* ---------- "Sarakstīties" meistara profilā ---------- */

.barber-profile__actions {
    margin-bottom: calc(var(--space-4) - var(--space-1));
}

.barber-profile__actions .barber-profile__cta {
    margin-bottom: var(--space-1);
}

.barber-profile__chat:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.barber-profile__chat-hint {
    margin: 6px 0 0;
    text-align: center;
}

.planner-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    margin-bottom: var(--space-1);
}

.planner-section-head .planner-section-title {
    margin: 0;
}

.planner-toggle {
    position: relative;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--brass-dim);
    background: transparent;
    color: var(--bone-dim);
    cursor: pointer;
}

.planner-toggle::before,
.planner-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    margin: -1px 0 0 -7px;
    border-radius: 1px;
    background: currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.planner-toggle::after {
    transform: rotate(-45deg);
}

/* Hidden state: the X turns into a plus. */
.planner-toggle--closed::before {
    transform: rotate(0deg);
}

.planner-toggle--closed::after {
    transform: rotate(90deg);
}

#contactsList[hidden] {
    display: none;
}

.chat-top__actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.chat-icon-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--brass);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-icon-btn--danger {
    background: var(--error);
}

.chat-visit {
    list-style: none;
    margin: 0;
    padding: 0 0 var(--space-1);
    border-bottom: 1px solid rgba(237, 231, 218, 0.12);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.9rem;
    color: var(--bone-dim);
}

.chat-visit:last-of-type {
    border-bottom: none;
}

.chat-visit strong {
    color: var(--bone);
}

.chat-visit__day {
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    color: var(--brass);
}

.submit-button--danger {
    background: var(--error);
    color: var(--ink);
}

#chatVisitModal .modal {
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
}

/* =========================================================
   Mans žurnāls pa vizītēm (my_journal.php, journal_visit.php)
   ========================================================= */

.journal-list-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    color: var(--brass);
    margin: var(--space-3) 0 var(--space-1);
}

.journal-empty {
    margin: 0 0 var(--space-1);
}

.journal-visit-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-1);
    color: inherit;
}

.journal-visit-card__time {
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.03em;
    color: var(--bone);
}

.journal-visit-card__line {
    font-size: 0.9rem;
    color: var(--bone);
}

.journal-visit-card__line--dim {
    font-size: 0.8rem;
    color: var(--bone-dim);
}

.journal-visit-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 var(--space-2);
    color: var(--bone-dim);
    font-size: 0.9rem;
}

.journal-visit-info__main {
    color: var(--bone);
}

.journal-person {
    margin-top: var(--space-2);
}

.journal-person__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-1);
    cursor: pointer;
    list-style: none;
}

.journal-person__summary::-webkit-details-marker {
    display: none;
}

.journal-person__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.04em;
    color: var(--brass);
}

.journal-person__count {
    font-size: 0.85rem;
    color: var(--bone-dim);
}

.journal-person[open] .journal-person__summary {
    margin-bottom: var(--space-1);
}

.journal-item__time {
    margin-left: auto;
    padding-left: 8px;
    font-size: 0.8rem;
    color: var(--bone-dim);
    flex-shrink: 0;
}

.journal-person .journal-section__title {
    font-size: 1.05rem;
    color: var(--bone);
}

.journal-visit-card {
    position: relative;
}

.journal-visit-card--live {
    border-color: var(--error);
}

.journal-visit-card__live {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--error);
}

.journal-visit-card__live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error);
}

.route-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-1);
}

.route-journal-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--brass);
    color: var(--brass);
    font-size: 0.85rem;
    font-weight: 600;
}

.route-journal-btn--live::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--error);
}

.route-topbar {
    margin-bottom: var(--space-2);
    align-items: center;
}

.route-topbar__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.route-topbar {
    align-items: flex-start;
}

.route-topbar .back-button--static {
    margin-bottom: 0;
}

.barbers-filter-row .barbers-show {
    flex: 1.4;
    width: auto;
    min-width: 0;
}

.barbers-clear {
    align-self: flex-start;
    padding: 4px 0;
    border: none;
    background: none;
    color: var(--brass);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}


/* Room between the legend of the services list and its first row. */
#servicesFieldset > legend { margin-bottom: 12px; }

/* =========================================================
   Compact fields: the same smaller input, select and button size everywhere
   ========================================================= */
input.form-input,
select.form-input { height: 38px; padding: 0 12px; font-size: 0.95rem; }
select.form-input { padding-right: 30px; }
input.form-input.combobox__input { padding-right: 44px; }
.form-textarea { padding: 8px 12px; font-size: 0.95rem; }
.booking-form { gap: 14px; }
.form-field { gap: 4px; }
.submit-button { padding: 11px var(--space-2); }
.secondary-button { padding: 9px 14px; }
.price-field__ghost { left: 13px; font-size: 0.95rem; }

/* Barber list card: always the same size, however many prices the barber has (up to five lines), also on narrow phones. */
.barber-card__link { height: 88px; padding: 6px 8px; gap: 8px; box-sizing: border-box; }
.barber-card__avatar { width: 46px; height: 46px; }
.barber-card__info { gap: 2px; overflow: hidden; }
.barber-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.95rem; line-height: 1.1; }
.barber-card__rating { font-size: 0.8rem; max-width: 100%; overflow: hidden; }
.barber-card__rating-text { font-size: 0.72rem; }
.barber-card__prices { width: 106px; gap: 1px; font-size: 0.7rem; line-height: 1.2; }
.barber-card__prices .price-line { gap: 4px; }
@media (max-width: 340px) {
    .barber-card__rating { font-size: 0.68rem; }
    .barber-card__prices { width: 98px; font-size: 0.66rem; }
}

/* "Mans grafiks": how many people the day has, next to the date. */
.schedule-day__people { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--bone-dim); margin-left: 6px; }

/* A barber found for Rīga who does not serve some of its neighbourhoods. */
.barber-card__note { margin: 0; padding: 0 10px 8px; font-size: 0.75rem; color: #e0cfae; }

/* =========================================================
   Tight vertical spacing: small gaps between the top, the back link, the title and the content, on every page
   ========================================================= */
.screen { padding-top: calc(var(--space-2) + var(--safe-top)); }
.back-button--static { margin-bottom: 6px; }
.schedule-title,
.about-title,
.barbers-title,
.subscription-title { margin: 4px 0 var(--space-2); }
.profile-topbar,
.route-topbar { margin-bottom: 6px; }
.schedule-day__title { margin-bottom: 6px; }
.route-topbar__actions { gap: 6px; }

/* "Žurnāls" and "+ Piezīme": the same size and weight. */
.route-journal-btn,
.day-note-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.2;
}

/* More room between the back link and the title, little between the title and what follows. */
.schedule-title,
.about-title,
.barbers-title,
.subscription-title { margin: 14px 0 8px; }
.schedule-title + .services { padding-top: 0; }
.route-topbar ~ .schedule-title { margin: 6px 0 4px; }
.route-city { margin-bottom: var(--space-1); }
.route-city { margin-top: 0; }

/* Day page: the two buttons stand in the right corner beside the title, so the date sits right under "Atpakaļ". */
.page--route .screen { position: relative; }
.route-topbar__actions {
    position: absolute;
    top: calc(var(--space-2) + var(--safe-top));
    right: calc(var(--space-3) + var(--safe-right));
}
.route-topbar ~ .schedule-title { margin: 14px 0 4px; }

/* Mans žurnāls: tighter gaps around the section titles. */
.journal-list-title { margin: 10px 0 6px; }
.schedule-title + .journal-list-title { margin-top: 0; }

/* Sarakste: less room before the "Čats" title, both with the contacts list open and collapsed. */
.planner-section-title--next { margin-top: 8px; }
.planner-section-head { margin-bottom: 6px; }

/* Admin logs: no extra paragraph margins around the empty-list messages. */
.admin-empty { margin: 0; }
.admin-section { margin-top: 14px; }
.admin-section__title { margin-bottom: 6px; }

/* =========================================================
   Profile: one title style for every section (the one "Konts" has), tighter gaps
   ========================================================= */
.profile-about__title,
.profile-reviews__title,
.price-section__title,
.profile-card .price-section__title,
.account-section__title,
.barber-toggle__label,
.service-areas-section > .form-label,
.route-mode-section > .form-label {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
    color: var(--bone);
}
.service-areas-section > .form-label,
.route-mode-section > .form-label { display: block; margin: 0 0 var(--space-1); }
.price-section__title { margin-bottom: 4px; }

/* Gaps: half of what they were. */
.profile-header { gap: 4px; margin: var(--space-1) 0 var(--space-2); }
.profile-card,
.barber-toggle-section,
.profile-about,
.price-section,
.service-areas-section { margin-bottom: var(--space-1); }
.account-section { margin: var(--space-2) 0 var(--space-1); }

/* Home: the tagline sits closer to the top bar and is a bit larger. */
.brand { margin-top: 8px; }
.brand__tag { font-size: 0.95rem; }
.brand + .services { padding-top: var(--space-2); }

/* Booking form: the consent line above the submit button. */
.booking-legal-note { text-align: center; font-size: 0.8rem; line-height: 1.4; margin: 0; }

/* Shown inside a frame on the Dainere website (embed.js): no "Atpakaļ", the site has its own navigation */
html.is-embedded .back-button,
html.is-embedded .auth-switch--account { display: none; }
/* In the frame the form fills the whole width: no dark side strips, no phone-width column, dark scrollbar */
html.is-embedded { color-scheme: dark; }
html.is-embedded body { background: var(--ink); }
html.is-embedded .screen { max-width: none; margin: 0; box-shadow: none; }

