:root {
    --ink: #17201d;
    --muted: #66706c;
    --paper: #f6f3ec;
    --surface: #ffffff;
    --line: #dedbd2;
    --brand: #173f35;
    --brand-soft: #e3eee9;
    --accent: #c47a3d;
    --accent-soft: #f8eadc;
    --ok: #18794e;
    --ok-soft: #ddf3e7;
    --warn: #9a6700;
    --warn-soft: #fff0c2;
    --danger: #b42318;
    --danger-soft: #fee4e2;
    --shadow: 0 20px 55px rgba(32, 44, 39, .09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(196, 122, 61, .12), transparent 30rem),
        var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

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

button, input, select, textarea { font: inherit; }

.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid rgba(222, 219, 210, .85);
    background: rgba(246, 243, 236, .9);
    backdrop-filter: blur(14px);
}

.nav {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; }

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: var(--brand);
    font-size: 18px;
}

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav-link:hover, .nav-link.active { color: var(--brand); background: var(--brand-soft); }

.page { padding: 38px 0 72px; }

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 46px;
    color: #fff;
    background: linear-gradient(125deg, #102f28, #1f5a4a);
    box-shadow: var(--shadow);
}

.hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border: 55px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.hero > * { position: relative; z-index: 1; }

.eyebrow {
    margin: 0 0 10px;
    color: #d9b18d;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero h1, .page-title {
    margin: 0;
    max-width: 780px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.hero p { max-width: 650px; margin: 18px 0 0; color: #d5e3de; font-size: 17px; }

.hero-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 28px; }

.hero-stat { padding-right: 20px; border-right: 1px solid rgba(255, 255, 255, .18); }
.hero-stat:last-child { border: 0; }
.hero-stat strong { display: block; font-size: 22px; }
.hero-stat span { color: #bfd0ca; font-size: 12px; }

.section { margin-top: 30px; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-head h2, .card h2 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.section-head p, .card > p { margin: 5px 0 0; color: var(--muted); }

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

.card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 35px rgba(37, 49, 44, .05);
}

.capster-card { position: relative; display: flex; gap: 15px; align-items: flex-start; }

.avatar {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 20px;
    font-weight: 850;
}

.capster-card h3 { margin: 3px 0 2px; font-size: 17px; }
.capster-card p { margin: 0; color: var(--muted); font-size: 13px; }
.capster-status { margin-top: 11px; display: flex; gap: 7px; flex-wrap: wrap; }

.promo-card {
    display: block;
    overflow: hidden;
    padding: 0;
    transition: transform .18s ease, box-shadow .18s ease;
}

.promo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.promo-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    object-fit: cover;
    color: #fff;
    background: linear-gradient(145deg, var(--brand), #2f7461);
    font-family: Georgia, serif;
    font-size: 28px;
    text-align: center;
}

.promo-body { padding: 18px; }
.promo-body h3 { margin: 9px 0 4px; font-size: 19px; }
.promo-body p { margin: 0; color: var(--muted); font-size: 13px; }

.price-card { display: flex; flex-direction: column; min-height: 210px; }
.price-card h3 { margin: 0 0 6px; font-size: 19px; }
.price-card p { margin: 0; color: var(--muted); font-size: 13px; }
.price-value { margin-top: auto; padding-top: 24px; color: var(--brand); font-family: Georgia, serif; font-size: 28px; font-weight: 800; }

.price-summary {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #faf9f5;
}

.price-line { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; }
.price-line-total { margin-top: 7px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 850; }
.price-discount { color: var(--ok); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-ok { color: var(--ok); background: var(--ok-soft); }
.badge-warn { color: var(--warn); background: var(--warn-soft); }
.badge-muted { color: #69736f; background: #eceeec; }
.badge-danger { color: var(--danger); background: var(--danger-soft); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }

label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 800; }

input, select, textarea {
    width: 100%;
    border: 1px solid #cbcfc9;
    border-radius: 12px;
    padding: 11px 13px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(23, 63, 53, .12);
}

textarea { min-height: 96px; resize: vertical; }
.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    border: 0;
    border-radius: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: #fff;
    background: var(--brand);
    font-weight: 800;
}

.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { color: var(--brand); background: var(--brand-soft); }
.btn-accent { background: var(--accent); }
.btn-danger { background: var(--danger); }
.btn-block { width: 100%; }
.btn-small { min-height: 34px; padding: 7px 11px; border-radius: 9px; font-size: 12px; }

.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.alert { margin-bottom: 18px; padding: 13px 15px; border-radius: 13px; font-size: 14px; }
.alert-success { color: var(--ok); background: var(--ok-soft); }
.alert-danger { color: var(--danger); background: var(--danger-soft); }
.alert ul { margin: 0; padding-left: 19px; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid #eceae4; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 20px; align-items: start; }
.sticky { position: sticky; top: 92px; }

.status-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 22px;
    border-radius: 18px;
    color: #fff;
    background: var(--brand);
}

.status-panel h2 { margin: 0 0 3px; font-size: 18px; }
.status-panel p { margin: 0; color: #cbdad5; font-size: 13px; }

.current-service { border-color: #e3b589; background: linear-gradient(145deg, #fff, #fff7ee); }
.current-service h3 { margin: 8px 0 3px; font-size: 25px; }

.queue-item {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #eceae4;
}
.queue-item:last-child { border: 0; padding-bottom: 0; }
.queue-item strong { display: block; }
.queue-item small { color: var(--muted); }

.empty { padding: 28px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.login-page { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 35px 0; }
.login-card { width: min(460px, 100%); }
.login-card h1 { margin: 0; font-family: Georgia, serif; font-size: 38px; letter-spacing: -.04em; }
.login-card > p { margin-bottom: 24px; }

.detail-list { display: grid; gap: 0; margin-top: 18px; }
.detail-row { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid #eceae4; }
.detail-row span { color: var(--muted); }
.detail-row:last-child { border: 0; }
.queue-number { color: var(--accent); font-family: Georgia, serif; font-size: 36px; font-weight: 800; }

.pagination { margin-top: 18px; }

@media (max-width: 820px) {
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; }
    .sticky { position: static; }
    .hero { padding: 34px 26px; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 22px, 1120px); }
    .nav { min-height: 64px; }
    .brand span:last-child { display: none; }
    .nav-link { padding: 8px; font-size: 12px; }
    .page { padding-top: 22px; }
    .hero { border-radius: 20px; padding: 30px 22px; }
    .hero h1 { font-size: 40px; }
    .grid-2, .grid-3, .form-grid { grid-template-columns: 1fr; }
    .field-full { grid-column: auto; }
    .card { padding: 19px; border-radius: 16px; }
    .section-head, .status-panel { align-items: flex-start; flex-direction: column; }
}

/* Book Barberku public experience */
.booking-site {
    --barber-brown: #7a4900;
    --barber-brown-dark: #4b2b04;
    --barber-cream: #f7f0e5;
    --barber-paper: #fffdf9;
    --barber-muted: #928c84;
    min-height: 100vh;
    color: #17120d;
    background: #160d08 url('/images/barbershop-interior.png') center / cover fixed no-repeat;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.booking-site::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .18) 44%, rgba(0, 0, 0, .38)),
        linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 38%, rgba(0, 0, 0, .38));
}

.booking-site-page { position: relative; z-index: 1; padding: 0; }
.immersive-shell { width: 100%; }
.barber-app { width: min(1460px, calc(100% - 48px)); min-height: 100vh; margin: 0 auto; padding: 34px 0 24px; }

.barber-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    color: #fff;
}

.barber-brand { font-size: clamp(24px, 3vw, 42px); letter-spacing: -.055em; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.barber-header-links { display: flex; align-items: center; gap: clamp(28px, 6vw, 100px); }
.barber-header-links button,
.barber-tab { border: 0; color: #fff; background: transparent; font: inherit; cursor: pointer; }
.barber-header-links button { padding: 10px 0; font-size: clamp(16px, 2vw, 29px); border-bottom: 2px solid transparent; }
.barber-header-links button:hover { border-color: #fff; }

.mobile-menu-button { display: none; width: 44px; height: 44px; padding: 11px; border: 1px solid rgba(255,255,255,.4); border-radius: 12px; background: rgba(0,0,0,.28); }
.mobile-menu-button span { display: block; height: 2px; margin: 4px 0; background: #fff; }

.barber-tabs {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(1080px, calc(100% - 80px));
    margin: 34px auto 0;
    padding: 8px 18px;
    border: 2px solid rgba(255, 255, 255, .78);
    border-radius: 999px;
    background: rgba(20, 12, 7, .34);
    box-shadow: 0 14px 40px rgba(0, 0, 0, .22);
    backdrop-filter: blur(12px);
}

.barber-tab { position: relative; min-height: 58px; padding: 10px 14px; font-size: clamp(13px, 1.45vw, 21px); white-space: nowrap; }
.tab-dot { display: inline-block; width: 0; height: 0; margin-right: 0; border-radius: 50%; background: #fff; vertical-align: -1px; transition: width .2s, height .2s, margin .2s, box-shadow .2s; }
.barber-tab.is-active .tab-dot { width: 13px; height: 13px; margin-right: 11px; box-shadow: 0 0 18px rgba(255,255,255,.85); }
.barber-tab:hover { color: #f5d39d; }

.barber-panels { position: relative; min-height: 640px; }
.barber-panel { display: none; padding: 72px 24px 52px; animation: barberPanelIn .45s ease both; }
.barber-panel.is-active { display: block; }
@keyframes barberPanelIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.panel-heading { color: #fff; text-align: center; margin-bottom: 30px; text-shadow: 0 2px 18px rgba(0,0,0,.65); }
.panel-heading span,
.booking-overline,
.modal-head span { color: #e5bb79; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.panel-heading h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: clamp(28px, 4vw, 50px); font-weight: 400; letter-spacing: -.035em; }

.service-showcase { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: clamp(22px, 4vw, 68px); width: min(1050px, 100%); margin: 0 auto; }
.service-ticket { position: relative; min-height: 460px; color: var(--barber-brown); filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .3)); }
.ticket-inner { position: absolute; inset: 20px 0; display: flex; flex-direction: column; padding: 45px 30px 30px; background: var(--barber-paper); text-align: center; }
.ticket-top, .ticket-bottom { position: absolute; left: 0; z-index: 2; width: 100%; height: 35px; background: radial-gradient(circle at 22px 0, transparent 21px, var(--barber-paper) 22px) 0 0 / 44px 35px repeat-x; }
.ticket-top { top: 0; transform: rotate(180deg); }
.ticket-bottom { bottom: 0; }
.ticket-kicker { margin: 0; font-size: 16px; }
.ticket-rule { margin: 20px 0 28px; border-top: 3px dashed currentColor; }
.ticket-inner h2 { margin: 0 0 24px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.08em; }
.ticket-inner > p:not(.ticket-kicker) { color: #765528; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 14px; line-height: 1.75; }
.ticket-action { width: 100%; margin-top: auto; border: 0; border-radius: 12px; padding: 13px; color: #fff; background: var(--barber-brown); cursor: pointer; font: inherit; }
.ticket-action:hover { background: var(--barber-brown-dark); }

.promo-showcase { display: grid; gap: 26px; width: min(920px, 100%); margin: 0 auto; }
.promo-ticket { display: grid; grid-template-columns: 180px 3px 1fr auto; align-items: center; gap: 28px; min-height: 190px; padding: 24px 30px; border-radius: 34px; background: var(--barber-paper); box-shadow: 0 20px 45px rgba(0,0,0,.3); }
.promo-discount { display: grid; text-align: center; }
.promo-discount strong { font-size: clamp(42px, 5vw, 68px); letter-spacing: -.08em; }
.promo-discount span { font-size: 18px; }
.promo-divider { height: 100%; border-left: 3px dashed var(--barber-brown); }
.promo-copy { min-width: 0; }
.promo-scope { display: inline-flex; padding: 7px 18px; border-radius: 999px; color: #fff; background: var(--barber-brown); font-size: 11px; }
.promo-copy h2 { margin: 14px 0 4px; font-size: clamp(22px, 3vw, 35px); font-weight: 500; line-height: 1.05; }
.promo-copy p { margin: 0; color: #aaa49e; font-size: 14px; }
.promo-claim { min-width: 128px; padding: 16px 18px; border: 0; border-radius: 18px; color: #fff; background: var(--barber-brown); cursor: pointer; font: inherit; }
.promo-claim:hover { background: var(--barber-brown-dark); }

.booking-panel { padding-top: 66px; }
.booking-card { width: min(1050px, 100%); margin: 0 auto; padding: clamp(26px, 5vw, 62px); border-radius: 34px; background: rgba(255, 253, 249, .98); box-shadow: 0 25px 70px rgba(0,0,0,.38); }
.booking-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.booking-card-head h1 { margin: 5px 0 0; font-family: Georgia, serif; font-size: clamp(30px, 4vw, 48px); font-weight: 400; letter-spacing: -.035em; }
.booking-step { color: #a28868; font-size: 12px; }
.booking-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 30px; }
.booking-field { min-width: 0; }
.booking-field label { margin-bottom: 9px; color: #21170d; font-size: 14px; }
.booking-field label span { color: var(--barber-muted); font-weight: 400; }
.booking-field input,
.booking-field select,
.booking-select-button { width: 100%; min-height: 58px; border: 1px solid transparent; border-radius: 14px; padding: 13px 18px; color: #28221c; background: #efede9; font: inherit; }
.booking-field input::placeholder { color: #aaa7a1; }
.booking-field input:focus,
.booking-field select:focus,
.booking-select-button:focus { border-color: var(--barber-brown); box-shadow: 0 0 0 3px rgba(122,73,0,.13); outline: none; }
.booking-select-button { display: flex; align-items: center; justify-content: space-between; cursor: pointer; text-align: left; }
.booking-select-button span:last-child { color: var(--barber-brown); font-size: 25px; }
.field-note { margin: 7px 5px 0; color: var(--barber-muted); font: 11px/1.45 ui-sans-serif, system-ui, sans-serif; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.booking-availability { margin: 25px 0 0; padding: 12px 15px; border-radius: 12px; color: #805500; background: #fff1c9; font-size: 12px; }
.booking-availability.is-available { color: #236a43; background: #e2f5e9; }
.booking-availability.is-unavailable { color: #a1261a; background: #fde8e5; }
.booking-total { display: grid; gap: 8px; margin-top: 28px; padding: 18px 20px; border: 1px solid #e4dfd8; border-radius: 15px; background: #faf8f4; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 13px; }
.booking-total > div { display: flex; justify-content: space-between; gap: 15px; }
.booking-total [hidden] { display: none; }
.booking-total-final { margin-top: 4px; padding-top: 10px; border-top: 1px solid #ddd7ce; font-size: 18px; }
.booking-submit { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-width: 245px; margin-top: 28px; padding: 17px 22px; border: 0; border-radius: 15px; color: #fff; background: var(--barber-brown); cursor: pointer; font: inherit; font-size: 17px; }
.booking-submit span { font-size: 24px; }
.booking-submit:hover { background: var(--barber-brown-dark); }
.booking-submit:disabled { cursor: not-allowed; opacity: .5; }

.capster-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; width: min(1080px, 100%); margin: 0 auto; }
.capster-profile-card { min-height: 330px; padding: 30px 20px; border-radius: 25px; background: var(--barber-paper); text-align: center; box-shadow: 0 20px 45px rgba(0,0,0,.28); }
.capster-avatar { display: grid; place-items: center; width: 126px; height: 126px; margin: 0 auto 23px; border: 15px solid #dedbd6; border-radius: 50%; color: #fff; background: var(--barber-brown); font-size: 42px; }
.capster-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.capster-profile-card h2 { margin: 0; font-size: 24px; font-weight: 500; }
.capster-profile-card p { margin: 7px 0 22px; color: #aaa5a0; font-size: 13px; }
.capster-pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; color: #716a63; background: #eeeae5; font-size: 10px; text-transform: uppercase; }
.capster-pill.is-free { color: #1d6d43; background: #e2f4e9; }
.capster-status-copy { display: block; margin-top: 10px; color: #aaa5a0; font: 10px/1.4 ui-sans-serif, system-ui, sans-serif; }

.barber-empty { width: 100%; padding: 34px; border: 1px solid rgba(255,255,255,.4); border-radius: 20px; color: #fff; background: rgba(0,0,0,.35); text-align: center; backdrop-filter: blur(10px); }
.barber-footer { padding: 22px 0 0; color: rgba(255,255,255,.64); font-size: 10px; text-align: center; }
.booking-notice { width: min(1050px, calc(100% - 48px)); margin: 28px auto -36px; padding: 15px 18px; border-radius: 14px; font: 13px/1.5 ui-sans-serif, system-ui, sans-serif; }
.booking-notice ul { margin: 6px 0 0; padding-left: 20px; }
.booking-notice-success { color: #184f34; background: #e3f5e9; }
.booking-notice-error { color: #8a2017; background: #fde8e5; }

.barber-modal[hidden] { display: none; }
.barber-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 26px; opacity: 0; transition: opacity .18s ease; }
.barber-modal.is-open { opacity: 1; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(12, 7, 3, .72); cursor: default; backdrop-filter: blur(8px); }
.modal-dialog { position: relative; width: min(820px, 100%); max-height: min(82vh, 850px); overflow: auto; padding: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: var(--barber-brown); box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: translateY(16px) scale(.98); transition: transform .18s ease; }
.barber-modal.is-open .modal-dialog { transform: none; }
.modal-dialog-wide { width: min(1000px, 100%); }
.modal-dialog-small { width: min(580px, 100%); background: var(--barber-paper); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; color: #fff; }
.modal-dialog-small .modal-head { color: #1d160f; }
.modal-head h2 { margin: 3px 0 0; font: 400 32px Georgia, serif; }
.modal-close { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: inherit; background: transparent; cursor: pointer; font-size: 27px; line-height: 1; }
.modal-dialog-small .modal-close { border-color: #d7d0c7; }
.modal-service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.modal-service-card { display: flex; flex-direction: column; min-height: 270px; padding: 28px 20px; border: 0; border-radius: 22px; color: var(--barber-brown); background: var(--barber-paper); cursor: pointer; font: inherit; text-align: left; }
.modal-service-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.2); }
.modal-service-card span { font-size: 16px; }
.modal-service-card strong { margin: 28px 0 18px; font-size: 27px; }
.modal-service-card small { margin-top: auto; color: #8d8173; font: 12px/1.55 ui-sans-serif, system-ui, sans-serif; }
.promo-none { width: 100%; margin-bottom: 12px; padding: 13px; border: 1px solid rgba(255,255,255,.4); border-radius: 13px; color: #fff; background: transparent; cursor: pointer; font: inherit; }
.modal-promo-list { display: grid; gap: 14px; }
.modal-promo-card { display: grid; grid-template-columns: 115px 1fr auto; align-items: center; gap: 20px; width: 100%; padding: 18px 20px; border: 0; border-radius: 20px; color: #17120d; background: var(--barber-paper); cursor: pointer; font: inherit; text-align: left; }
.modal-promo-card:hover { transform: translateX(3px); }
.modal-promo-value { padding-right: 18px; border-right: 2px dashed var(--barber-brown); font-size: 28px; text-align: center; }
.modal-promo-value small { display: block; font-size: 10px; }
.modal-promo-copy strong, .modal-promo-copy small { display: block; }
.modal-promo-copy small { margin-top: 5px; color: #aaa49e; font: 11px ui-sans-serif, system-ui, sans-serif; }
.modal-promo-action { padding: 10px 14px; border-radius: 10px; color: #fff; background: var(--barber-brown); font-size: 11px; }
.modal-promo-card.is-unavailable { cursor: not-allowed; opacity: .42; }
.info-modal-content { color: #51493f; font: 15px/1.75 ui-sans-serif, system-ui, sans-serif; }
.info-modal-content > p { margin: 0 0 22px; }
.info-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.info-stat-row span { padding: 17px; border-radius: 14px; background: #eee9e2; font-size: 12px; }
.info-stat-row strong { display: block; color: var(--barber-brown); font: 16px/1.3 "SFMono-Regular", Consolas, monospace; }
.info-hours { padding-top: 18px; border-top: 1px solid #ddd5cb; }
.info-map-link { display: inline-flex; padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--barber-brown); }
.modal-open { overflow: hidden; }

@media (max-width: 980px) {
    .barber-app { width: min(100% - 30px, 1460px); }
    .barber-tabs { width: min(100% - 24px, 900px); }
    .service-showcase { gap: 20px; }
    .capster-showcase { grid-template-columns: repeat(2, 1fr); }
    .promo-ticket { grid-template-columns: 130px 3px 1fr auto; gap: 18px; }
}

@media (max-width: 720px) {
    .booking-site { background-attachment: scroll; }
    .barber-app { width: calc(100% - 22px); padding-top: 14px; }
    .barber-header { min-height: 55px; padding: 0 5px; }
    .barber-brand { font-size: 24px; }
    .barber-header-links { display: none; }
    .mobile-menu-button { display: block; }
    .barber-tabs { position: fixed; top: 72px; right: 15px; z-index: 50; display: none; width: min(300px, calc(100% - 30px)); margin: 0; padding: 12px; border-radius: 22px; grid-template-columns: 1fr; background: rgba(35,20,9,.95); }
    .barber-tabs.is-open { display: grid; }
    .barber-tab { min-height: 48px; text-align: left; }
    .barber-panel { padding: 48px 3px 36px; }
    .panel-heading { margin-bottom: 22px; }
    .service-showcase { grid-template-columns: 1fr; width: min(360px, 100%); }
    .service-ticket { min-height: 410px; }
    .promo-ticket { grid-template-columns: 100px 2px 1fr; gap: 13px; min-height: 165px; padding: 18px; border-radius: 24px; }
    .promo-claim { grid-column: 1 / -1; width: 100%; min-width: 0; padding: 12px; }
    .promo-copy h2 { font-size: 19px; }
    .promo-copy p { font-size: 11px; }
    .promo-scope { padding: 5px 9px; font-size: 9px; }
    .booking-panel { padding-top: 45px; }
    .booking-card { padding: 27px 20px; border-radius: 24px; }
    .booking-card-head { margin-bottom: 28px; }
    .booking-step { display: none; }
    .booking-fields { grid-template-columns: 1fr; gap: 19px; }
    .booking-field input, .booking-field select, .booking-select-button { min-height: 54px; }
    .booking-submit { width: 100%; min-width: 0; }
    .capster-showcase { grid-template-columns: 1fr 1fr; gap: 13px; }
    .capster-profile-card { min-height: 260px; padding: 24px 12px; border-radius: 20px; }
    .capster-avatar { width: 90px; height: 90px; border-width: 11px; font-size: 30px; }
    .capster-profile-card h2 { font-size: 17px; }
    .barber-footer { padding-bottom: 10px; }
    .booking-notice { width: 100%; margin-top: 22px; margin-bottom: -24px; }
    .barber-modal { padding: 12px; }
    .modal-dialog { max-height: 90vh; padding: 23px 17px; border-radius: 23px; }
    .modal-service-grid { grid-template-columns: 1fr; }
    .modal-service-card { min-height: 170px; }
    .modal-promo-card { grid-template-columns: 76px 1fr; gap: 12px; padding: 14px; }
    .modal-promo-value { padding-right: 10px; font-size: 21px; }
    .modal-promo-action { grid-column: 1 / -1; text-align: center; }
    .info-stat-row { grid-template-columns: 1fr; }
}

@media (min-width: 981px) {
    .barber-app { width: min(1280px, calc(100% - 56px)); padding-top: 24px; }
    .barber-header { min-height: 54px; }
    .barber-brand { font-size: clamp(22px, 2.35vw, 34px); }
    .barber-header-links button { padding: 8px 0; font-size: clamp(15px, 1.55vw, 23px); }

    .barber-tabs { width: min(920px, calc(100% - 100px)); margin-top: 24px; padding: 5px 14px; }
    .barber-tab { min-height: 48px; padding: 8px 12px; font-size: clamp(12px, 1.15vw, 17px); }
    .barber-panel { padding: 50px 24px 42px; }
    .panel-heading { margin-bottom: 23px; }
    .panel-heading h1 { font-size: clamp(27px, 3vw, 40px); }

    .service-showcase { grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: clamp(20px, 3vw, 46px); width: min(880px, 100%); }
    .service-ticket { min-height: 390px; }
    .ticket-inner { padding: 35px 24px 24px; }
    .ticket-rule { margin: 17px 0 22px; }
    .ticket-inner h2 { margin-bottom: 18px; font-size: clamp(25px, 2.4vw, 34px); }
    .ticket-inner > p:not(.ticket-kicker) { font-size: 13px; }

    .promo-showcase { gap: 20px; width: min(800px, 100%); }
    .promo-ticket { grid-template-columns: 145px 3px 1fr auto; gap: 22px; min-height: 155px; padding: 20px 24px; border-radius: 28px; }
    .promo-discount strong { font-size: clamp(38px, 4vw, 55px); }
    .promo-copy h2 { margin-top: 11px; font-size: clamp(20px, 2.25vw, 29px); }
    .promo-copy p { font-size: 12px; }
    .promo-claim { min-width: 112px; padding: 13px 15px; }

    .booking-panel { padding-top: 46px; }
    .booking-card { width: min(900px, 100%); padding: clamp(25px, 3.5vw, 44px); border-radius: 28px; }
    .booking-card-head { margin-bottom: 29px; }
    .booking-card-head h1 { font-size: clamp(28px, 3vw, 39px); }
    .booking-fields { gap: 20px 24px; }
    .booking-field input,
    .booking-field select,
    .booking-select-button { min-height: 50px; padding: 11px 16px; }
    .booking-total { margin-top: 22px; padding: 14px 17px; font-size: 12px; }
    .booking-submit { min-width: 215px; margin-top: 22px; padding: 14px 19px; font-size: 15px; }

    .capster-showcase { gap: 24px; width: min(920px, 100%); }
    .capster-profile-card { min-height: 275px; padding: 25px 17px; border-radius: 22px; }
    .capster-avatar { width: 100px; height: 100px; margin-bottom: 18px; border-width: 12px; font-size: 34px; }
    .capster-profile-card h2 { font-size: 20px; }

    .modal-dialog { width: min(700px, 100%); max-height: min(82vh, 760px); padding: 28px; border-radius: 26px; }
    .modal-dialog-wide { width: min(850px, 100%); }
    .modal-dialog-small { width: min(520px, 100%); }
    .modal-service-card { min-height: 225px; padding: 23px 18px; border-radius: 19px; }
}
