:root {
    /* Palette 02 — Old Money Barber. Lighter muted text preserves contrast. */
    --stone: #7a7a72;
    /* Overlay bases: ink tints surfaces, base shades them. The panels' light theme swaps both (owner.css). */
    --ink-rgb: 244, 239, 228;
    --base-rgb: 16, 28, 24;
    color-scheme: dark;
    --night: #101c18;
    --night-2: #24352d;
    --pole-red: #b9965b;
    --pole-blue: #24352d;
    --chalk: #f4efe4;
    --mist: #c2bfb5;

    --bg: var(--night);
    --bg-elevated: #24352d;
    --bg-card: rgba(var(--ink-rgb), 0.04);
    --border: rgba(var(--ink-rgb), 0.1);
    --border-strong: rgba(var(--ink-rgb), 0.2);
    --text: var(--chalk);
    --text-muted: var(--mist);
    --accent: var(--pole-red);
    --accent-gradient: linear-gradient(135deg, #c8ab78, #b9965b 60%, #b9965b);
    --accent-text: #101c18;
    --blue: #c2bfb5;
    --danger: #ff5a6e;
    --success: #3ddc84;

    --glass: rgba(var(--ink-rgb), 0.07);
    --glass-strong: rgba(36, 53, 45, 0.62);
    --glass-border: rgba(var(--ink-rgb), 0.16);
    --glass-blur: blur(22px) saturate(150%);
    --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 30px 60px -20px rgba(0, 0, 0, 0.55);

    --radius: 12px;
    --radius-lg: 22px;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
    --glow: 0 10px 30px -8px rgba(185, 150, 91, 0.6);

    /* Self-hosted in /vendor/fonts (declared in refine.css). */
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    --font-body: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}
/* Background lives on html only: an opaque body background would paint over the z-index:-1 page backdrop. */
html { background: var(--night); }

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}
body.modal-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.005em;
    line-height: 1;
    margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
h3, h4 { font-weight: 700; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--text-muted); }

:focus-visible { outline: 2px solid var(--chalk); outline-offset: 3px; border-radius: 6px; }

.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* ---------- Scene: the hero world behind every public page ---------- */
.scene {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--night);
}
.scene-fixed { position: fixed; }
/* Still frame (inner pages) and video (home, login) share one treatment. */
.scene::before {
    content: "";
    position: absolute;
    inset: -24px;
    background: url("/media/hero-poster.jpg") center 38% / cover no-repeat;
    filter: saturate(0.7) brightness(0.62) blur(3px);
}
.scene video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.78) contrast(1.05);
}
.scene:has(video)::before { display: none; }
/* Green tint, then the vignette that keeps text readable. */
.scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 70% at 50% 42%, rgba(16, 28, 24, 0.25) 0%, rgba(16, 28, 24, 0.62) 62%, rgba(16, 28, 24, 0.94) 100%),
        linear-gradient(180deg, rgba(16, 28, 24, 0.55) 0%, rgba(16, 28, 24, 0.2) 30%, rgba(16, 28, 24, 0.55) 72%, var(--night) 100%),
        rgba(42, 66, 55, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .scene video { display: none; }
    .scene:has(video)::before { display: block; }
}

/* ---------- Glass ---------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 28, 24, 0.55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}
/* Menu button and dropdown for phones in portrait; the wide header has its own links. */
.nav-toggle, .site-menu { display: none; }
@media (max-width: 760px) {
    .nav-toggle { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(var(--ink-rgb), .05); color: var(--text); cursor: pointer; }
    .nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
    .nav-toggle .x, .nav-toggle[aria-expanded="true"] .bars { display: none; }
    .nav-toggle[aria-expanded="true"] .x { display: block; }
    .site-menu:not([hidden]) {
        display: block; position: absolute; left: 0; right: 0; top: 100%; padding: 4px 16px 18px;
        background: #0c1612;
        border-bottom: 1px solid var(--border-strong); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .7);
    }
    .site-menu nav a { display: flex; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--border); font-size: 1.08rem; font-weight: 600; color: var(--text); text-decoration: none; }
    .site-menu nav a.active { color: var(--accent); }
    .site-menu-account { display: grid; gap: 10px; margin-top: 16px; }
    .site-menu-account .btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; }
}
/* On narrow phones the header keeps only the essential button; the rest is in the menu. */
/* "Entrar" lives in the menu on phones (the header keeps the sign-up button). */
@media (max-width: 760px) {
    .site-header .nav-links .login-trigger { display: none; }
}
@media (max-width: 349px) {
    .site-header .nav-links.logged #headerLogout { display: none; }
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}
.brand img { height: 32px; width: auto; }
.brand-accent { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; flex: 1; }
.site-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.active { color: var(--text); border-bottom-color: var(--accent); }

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

.label-short { display: none; }
@media (max-width: 760px) {
    .site-nav { display: none; }
    .nav-links .btn-ghost { display: none; }
    .nav-links .btn-primary { padding: 9px 16px; font-size: 0.85rem; }
    .label-long { display: none; }
    .label-short { display: inline; }
    .brand { font-size: 1.4rem; }
    .brand img { height: 28px; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.12s var(--ease-out), filter 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    color: var(--text);
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-primary { background: var(--accent-gradient); color: var(--accent-text); box-shadow: var(--glow); }
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost { background: rgba(var(--ink-rgb), 0.05); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--chalk); }

.btn-block { width: 100%; }
.btn-sm { padding: 7px 16px; font-size: 0.85rem; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }

/* ---------- Home hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0 120px;
    min-height: 78vh;
    display: flex;
    align-items: center;
}
.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}
.hero h1 {
    font-size: clamp(3.4rem, 8vw, 6.4rem);
    font-weight: 900;
    line-height: 0.92;
    letter-spacing: 0;
    margin: 0 0 24px;
    text-wrap: balance;
}
.hero p.lead {
    max-width: 30em;
    font-size: 1.12rem;
    color: rgba(var(--ink-rgb), 0.78);
    margin: 0 0 28px;
}

.search-window { padding: 28px; }
.search-window h2 { font-size: 1.9rem; margin-bottom: 18px; }
.search-window .field { margin-bottom: 14px; }
.search-window input { background: rgba(16, 28, 24, 0.45); }

@media (max-width: 880px) {
    .hero { padding: 56px 0 72px; min-height: 0; }
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .hero .btn-ghost { display: none; }
    .hero p.lead { margin-bottom: 0; }
}

/* ---------- Forms ---------- */
label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
input, select, textarea {
    width: 100%;
    background: rgba(16, 28, 24, 0.55);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #c2bfb5; }
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--pole-red);
    box-shadow: 0 0 0 4px rgba(185, 150, 91, 0.18);
}
input[type="checkbox"] { width: auto; accent-color: var(--pole-red); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }


.form-error, .form-success {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 0.92rem;
    margin-bottom: 16px;
    display: none;
}
.form-error { background: rgba(255, 90, 110, 0.12); border: 1px solid var(--danger); color: #ffb3bd; }
.form-success { background: rgba(61, 220, 132, 0.1); border: 1px solid var(--success); color: #a6f3c8; }
.form-error.visible, .form-success.visible { display: block; }

/* ---------- Sections ---------- */
main { flex: 1; position: relative; }
section { padding: 56px 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title h2 { margin: 0; }

/* ---------- Barbershop list ---------- */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
}
.shop-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.shop-card:hover { border-color: rgba(185, 150, 91, 0.55); transform: translateY(-3px); }
.shop-card .thumb {
    height: 132px;
    background:
        repeating-linear-gradient(-24deg, rgba(185, 150, 91, 0.14) 0 14px, transparent 14px 28px, rgba(122, 122, 114, 0.14) 28px 42px, transparent 42px 56px),
        var(--night-2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.shop-card .thumb img { height: 60px; width: 60px; object-fit: contain; }
.shop-card .body { padding: 16px 18px 18px; }
.shop-card h3 { font-size: 1.1rem; margin-bottom: 2px; }
.shop-card .city { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.shop-card .price-tag { color: var(--chalk); font-weight: 700; font-size: 0.92rem; }

.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-muted);
    border: 1px dashed var(--border-strong);
    border-radius: 18px;
}

/* ---------- Shop page ---------- */
.shop-cover {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: var(--night-2);
}
.shop-header { display: flex; align-items: center; gap: 20px; padding: 20px 0 0; flex-wrap: wrap; }
.shop-header .logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -64px;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 1;
}
.shop-header .logo-wrap img { height: 60px; width: 60px; object-fit: contain; }
.shop-header h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.shop-meta { color: var(--text-muted); font-size: 0.95rem; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag {
    background: rgba(var(--ink-rgb), 0.05);
    border: 1px solid var(--border-strong);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text);
}

.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.svc-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; flex: none; background: rgba(var(--ink-rgb), .08); }
.service-row .lead-media { display: flex; align-items: center; gap: 14px; min-width: 0; }
.service-row:hover { border-color: var(--border-strong); }
.service-row.selected { border-color: var(--pole-red); background: rgba(185, 150, 91, 0.08); }
.service-row .info h4 { margin: 0 0 2px; font-size: 1.02rem; }
.service-row .info .meta { color: var(--text-muted); font-size: 0.88rem; }
.service-row .price { font-weight: 700; white-space: nowrap; font-size: 1.05rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 14px; border: 1px solid var(--border); }
/* Shop comforts (parking, air conditioning...): chips on the shop page, small icons on the list card. */
.amenities { display: flex; flex-wrap: wrap; gap: 10px; }
.amenity { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 99px; border: 1px solid var(--border); background: rgba(var(--ink-rgb), 0.05); font-size: 0.92rem; color: var(--text); }
.amenity svg, .amenity-ic svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.amenity-icons { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.amenity-icons:empty { display: none; }
.amenity-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--ink-rgb), 0.07); border: 1px solid var(--border); }
.amenity-ic svg { width: 16px; height: 16px; }
.amenity-more { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* An Instagram post in the gallery takes two columns: its embed needs more room than a photo thumbnail. */
.gallery-grid .ig-tile, .gallery-grid .gal-item.ig { grid-column: span 2; }
.ig-tile { display: flex; flex-direction: column; gap: 6px; }
.ig-tile iframe { width: 100%; height: 470px; border: 1px solid var(--border); border-radius: 14px; background: rgba(var(--ink-rgb), 0.04); }
.ig-open { align-self: flex-start; font-size: 0.85rem; color: var(--accent); text-decoration: none; }
.ig-open:hover { text-decoration: underline; }

/* ---------- Booking / wizard ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.step-pill {
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(var(--ink-rgb), 0.05);
    border: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.step-pill.active { background: var(--chalk); color: var(--night); border-color: var(--chalk); font-weight: 700; }
.step-pill.done { border-color: rgba(61, 220, 132, 0.5); color: #a6f3c8; }

.date-picker { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; scrollbar-width: thin; }
.date-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(var(--ink-rgb), 0.05);
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    min-width: 66px;
    font-size: 0.88rem;
    transition: border-color 0.15s ease;
}
.date-chip:hover { border-color: var(--border-strong); }
.date-chip.selected { background: var(--chalk); color: var(--night); border-color: var(--chalk); font-weight: 700; }

.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot-btn {
    padding: 11px 6px;
    border-radius: 12px;
    background: rgba(var(--ink-rgb), 0.05);
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease;
}
.slot-btn:hover { border-color: var(--border-strong); }
.slot-btn.selected { background: var(--pole-red); border-color: var(--pole-red); color: var(--accent-text); font-weight: 700; }

.summary-box {
    background: rgba(16, 28, 24, 0.45);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 18px;
    margin: 0 0 20px;
}
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; color: var(--text-muted); font-size: 0.95rem; }
.summary-row strong { color: var(--text); text-align: right; }

/* ---------- Modal: opening a form blurs the world behind it ---------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(16, 28, 24, 0.4);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s ease, visibility 0.28s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.modal.open {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
}
.modal-window {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    background: var(--glass-strong);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    border-radius: var(--radius-lg);
    transform: translateY(18px) scale(0.97);
    transition: transform 0.35s var(--ease-out);
}
.modal.open .modal-window { transform: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.modal-head h2 { margin: 0; font-size: 2rem; }
.modal-close {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(var(--ink-rgb), 0.05);
    color: var(--text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover { border-color: var(--chalk); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
    .modal, .modal-window { transition: opacity 0.15s ease, visibility 0.15s ease; }
    .modal-window { transform: none; }
}

/* ---------- Owner panel ---------- */
.owner-shell { display: flex; min-height: calc(100vh - 68px); }
.owner-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: rgba(var(--ink-rgb), 0.02);
    border-right: 1px solid var(--border);
    padding: 24px 12px;
}
.owner-sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 4px;
}
.owner-sidebar a:hover { color: var(--text); background: rgba(var(--ink-rgb), 0.04); }
.owner-sidebar a.active { color: var(--text); background: rgba(185, 150, 91, 0.12); box-shadow: inset 3px 0 0 var(--pole-red); }
.owner-main { flex: 1; padding: 32px; min-width: 0; }
@media (max-width: 760px) {
    .owner-shell { flex-direction: column; }
    .owner-sidebar { width: 100%; display: flex; overflow-x: auto; gap: 4px; padding: 10px; border-right: none; border-bottom: 1px solid var(--border); }
    .owner-sidebar a { white-space: nowrap; margin: 0; }
    .owner-main { padding: 20px; }
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
th { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }

.status-badge { padding: 3px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.status-badge.confirmed { background: rgba(61, 220, 132, 0.12); color: #7ff0b2; }
.status-badge.pending { background: rgba(185, 150, 91, 0.16); color: #c8ab78; }
.status-badge.completed { background: rgba(194, 191, 181, 0.14); color: var(--mist); }
.status-badge.cancelled { background: rgba(255, 90, 110, 0.14); color: #ffb3bd; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 20px;
}
.card h3 { margin-bottom: 16px; }
.card.glass-card {
    background: var(--glass);
    border-color: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
}

.schedule-day { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.schedule-day .day-name { width: 90px; font-weight: 700; }
.schedule-day .times { display: flex; align-items: center; gap: 8px; flex: 1; flex-wrap: wrap; }
.schedule-day input[type="time"] { width: 120px; }
.schedule-day input[type="number"] { width: 76px; }

.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: auto; }
.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}


.muted { color: var(--text-muted); }
.text-center { text-align: center; }
.hidden { display: none !important; }
.rating { color: #c8ab78; font-weight: 700; }
.rating small { color: var(--text-muted); font-weight: 500; }
.stars-input { display: inline-flex; gap: 4px; }
.stars-input button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: rgba(var(--ink-rgb), .3); cursor: pointer; padding: 2px; }
.stars-input button.on { color: #c8ab78; }
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(var(--ink-rgb), 0.15);
    border-top-color: var(--pole-red);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Home hero video ---------- */
.home-hero { isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--night) url("/media/hero-poster.jpg") center / cover no-repeat; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.7) brightness(0.8) contrast(1.05); }
/* Green tint so the bright globe sits inside the palette. */
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: #2a4237; mix-blend-mode: color; opacity: 0.6; }
/* Vignette: dark on the text side and at the edges, fading into the page below. */
.hero-media::after {
    content: ""; position: absolute; inset: 0; z-index: 2;
    background:
        radial-gradient(ellipse 85% 75% at 62% 45%, transparent 20%, rgba(16, 28, 24, 0.42) 65%, rgba(16, 28, 24, 0.85) 100%),
        linear-gradient(90deg, rgba(16, 28, 24, 0.82) 0%, rgba(16, 28, 24, 0.42) 46%, rgba(16, 28, 24, 0.1) 100%),
        linear-gradient(180deg, rgba(16, 28, 24, 0.45) 0%, transparent 22%, transparent 62%, var(--bg) 100%);
}
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
@media (max-width: 880px) {
    .hero-media::after {
        background:
            radial-gradient(ellipse 110% 80% at 50% 45%, transparent 15%, rgba(16, 28, 24, 0.4) 70%, rgba(16, 28, 24, 0.8) 100%),
            linear-gradient(180deg, rgba(16, 28, 24, 0.55) 0%, rgba(16, 28, 24, 0.25) 50%, var(--bg) 100%);
    }
}

/* ======================================================================
   Refined pass — every page speaks the hero's language:
   display headlines, sans body, one glass surface, brass only
   for actions and selection.
   ====================================================================== */
h1, h2 { text-wrap: balance; letter-spacing: 0.005em; }
h1 { font-weight: 900; line-height: 0.95; }
p { text-wrap: pretty; }
::selection { background: rgba(185, 150, 91, 0.35); color: var(--chalk); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* One glass surface, the hero search window. */
.glass, .card.glass-card, .modal-window {
    background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.085), rgba(var(--ink-rgb), 0.035));
    border: 1px solid rgba(var(--ink-rgb), 0.14);
    box-shadow: inset 0 1px 0 rgba(var(--ink-rgb), 0.1), 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.modal-window { background: linear-gradient(160deg, rgba(36, 53, 45, 0.92), rgba(16, 28, 24, 0.92)); }
.card { border-radius: var(--radius-lg); }

/* Inputs: calmer until touched, brass ring on focus. */
input, select, textarea { background: rgba(16, 28, 24, 0.5); border-color: rgba(var(--ink-rgb), 0.14); }
input:hover, select:hover, textarea:hover { border-color: rgba(var(--ink-rgb), 0.26); }
input::placeholder, textarea::placeholder { color: rgba(194, 191, 181, 0.7); }
label { font-weight: 600; letter-spacing: 0.01em; }

/* Headings of content sections sit like the hero headline, smaller. */
main > section h2, .section-title h2 { font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 900; line-height: 0.95; }
.section-title { margin-bottom: 28px; }
section { padding: 72px 0; }

/* Selection states: brass, same as the primary action. */
.step-pill.active, .date-chip.selected {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--accent-text);
}
.step-pill.done { border-color: rgba(185, 150, 91, 0.45); color: #d8c29a; }
.date-chip, .slot-btn, .step-pill, .service-row { transition: border-color 0.15s ease, background 0.15s ease; }
.date-chip:hover, .slot-btn:hover, .svc-thumb { width: 96px; aspect-ratio: 4 / 3; border-radius: 12px; object-fit: cover; flex: none; background: rgba(var(--ink-rgb), .08); }
.service-row .lead-media { display: flex; align-items: center; gap: 14px; min-width: 0; }
.service-row:hover { border-color: rgba(185, 150, 91, 0.45); }

/* Buttons: pill, brass primary with a softer glow. */
.btn-primary { box-shadow: 0 10px 28px -12px rgba(185, 150, 91, 0.75); }
.btn-ghost { background: rgba(16, 28, 24, 0.35); border-color: rgba(var(--ink-rgb), 0.2); }
.btn-ghost:hover { border-color: rgba(185, 150, 91, 0.7); }

/* Header: quieter glass so the scene reads through. */
.site-header { background: rgba(16, 28, 24, 0.5); border-bottom-color: rgba(var(--ink-rgb), 0.08); }

/* Shop identity: one pattern for the list card, the shop page and the Vitrine preview. Banner on top, round photo in the corner, then the name. */
.shop-card { background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.06), rgba(var(--ink-rgb), 0.02)); border-color: rgba(var(--ink-rgb), 0.1); border-radius: 20px; display: block; }
.shop-card:hover { border-color: rgba(185, 150, 91, 0.6); }
.shop-card .thumb {
    position: relative; display: block; height: auto; aspect-ratio: 16 / 7; border-bottom: 0;
    background:
        radial-gradient(ellipse 70% 90% at 50% 100%, rgba(185, 150, 91, 0.22), transparent 70%),
        repeating-linear-gradient(-24deg, rgba(185, 150, 91, 0.10) 0 14px, transparent 14px 28px, rgba(122, 122, 114, 0.10) 28px 42px, transparent 42px 56px),
        linear-gradient(180deg, #24352d, #172620);
    background-size: cover; background-position: center;
}
.shop-card .thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 18, 15, 0.55)); pointer-events: none; }
.shop-card .body { position: relative; padding: 0 18px 18px; }
.shop-card .avatar {
    display: block; width: 64px; height: 64px; margin-top: -32px; margin-bottom: 10px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--night); background: var(--night-2); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4); position: relative; z-index: 1;
}
.shop-card .avatar[src$="/images/logo-white.png"] { object-fit: contain; padding: 14px; box-sizing: border-box; opacity: 0.85; }
.shop-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; line-height: 1; margin-bottom: 6px; }
.shop-card .price-tag { color: #d8c29a; }
.empty-state { border-style: solid; border-color: rgba(var(--ink-rgb), 0.12); background: rgba(var(--ink-rgb), 0.03); }

/* Shop page: banner (the shop's own, or the brand pattern until it uploads one), round photo overlapping its corner, then name and the booking button. */
.shop-cover {
    height: clamp(150px, 24vw, 330px); isolation: isolate;
    background:
        radial-gradient(ellipse 60% 120% at 50% 100%, rgba(185, 150, 91, 0.22), transparent 70%),
        repeating-linear-gradient(-24deg, rgba(185, 150, 91, 0.10) 0 14px, transparent 14px 28px, rgba(122, 122, 114, 0.10) 28px 42px, transparent 42px 56px),
        linear-gradient(180deg, #24352d, #172620);
    background-size: cover; background-position: center;
}
.shop-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--night) 100%); }
.shop-header {
    --av: 124px;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 24px; align-items: start; padding: 0; margin-top: calc(var(--av) / -2);
}
.shop-header .logo-wrap {
    width: var(--av); height: var(--av); margin: 0; padding: 0; border-radius: 50%; display: block; position: relative; z-index: 1;
    background: var(--night-2); border: 4px solid var(--night); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.shop-header .logo-wrap img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.shop-header .logo-wrap img[src$="/images/logo-white.png"] { object-fit: contain; padding: 22%; box-sizing: border-box; opacity: 0.85; }
.shop-header .shop-id { min-width: 0; padding-top: calc(var(--av) / 2 + 12px); }
.shop-header .shop-id h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1; margin-bottom: 6px; }
.shop-header > .btn { margin-top: calc(var(--av) / 2 + 14px); white-space: nowrap; }
@media (max-width: 640px) {
    .shop-header { --av: 96px; grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .shop-header .shop-id { padding-top: 12px; }
    .shop-header > .btn { margin-top: 16px; width: 100%; justify-content: center; }
}
.service-row { background: linear-gradient(160deg, rgba(var(--ink-rgb), 0.06), rgba(var(--ink-rgb), 0.025)); }
.service-row .price { color: #d8c29a; }

/* Footer */
.site-footer { border-top-color: rgba(var(--ink-rgb), 0.08); padding: 40px 0; background: rgba(10, 18, 15, 0.6); }
.site-footer .footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--chalk); }
.site-footer .footer-brand img { height: 26px; width: auto; }
/* Phones: everything in the footer is centred, and there is room under it so the floating "Instalar app" pill never covers the copyright. */
@media (max-width: 760px) {
    .site-footer .container { flex-direction: column; justify-content: center; text-align: center; gap: 14px; }
    .site-footer .footer-brand { justify-content: center; }
    .bk-can-install .site-footer { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Auth pages (login, create account): the hero layout ---------- */
.auth-screen {
    flex: 1;
    display: flex;
    align-items: center;
    padding: clamp(32px, 7vh, 88px) 0;
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
}
.auth-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: clamp(32px, 6vw, 88px);
    align-items: center;
}
.auth-copy h1 { font-size: clamp(3rem, 5.6vw, 5rem); margin: 0 0 20px; }
.auth-copy p { max-width: 30em; font-size: 1.1rem; color: rgba(var(--ink-rgb), 0.78); margin: 0; }
.auth-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); width: 100%; max-width: 480px; justify-self: end; }
.auth-card h2 { font-size: 2.1rem; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.auth-foot { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid rgba(var(--ink-rgb), 0.1); color: var(--text-muted); font-size: 0.92rem; text-align: center; }
.auth-foot a { color: #d8c29a; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(185, 150, 91, 0.5); text-underline-offset: 4px; }
.auth-foot a:hover { color: var(--chalk); }
.auth-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }

/* Input with a leading icon (login) */
.input-shell { position: relative; }
.input-shell > svg {
    position: absolute; left: 14px; top: 50%; width: 19px; height: 19px; transform: translateY(-50%);
    fill: none; stroke: #c8ab78; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none;
}
.input-shell input { padding-left: 44px; }
.input-shell .reveal {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-muted); cursor: pointer;
    display: grid; place-items: center;
}
.input-shell .reveal:hover { color: var(--chalk); }
.input-shell .reveal svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.input-shell.has-reveal input { padding-right: 48px; }

@media (max-width: 880px) {
    .auth-screen { align-items: flex-start; min-height: 0; padding: 28px 0 40px; }
    .auth-grid { grid-template-columns: 1fr; gap: 22px; }
    .auth-copy h1 { font-size: 2.7rem; margin-bottom: 10px; }
    .auth-copy p { font-size: 1rem; }
    .auth-card { justify-self: stretch; max-width: none; }
    section { padding: 52px 0; }
}



/* Search and login share the same position in the home hero. */
.hero-login-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.hero-login-heading h2 { margin: 0; }
.hero-login-back { flex-shrink: 0; border: 0; padding: 10px 0 10px 8px; background: transparent; color: #d8c29a; font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.hero-login-form p.muted { margin: 0 0 18px; font-size: .95rem; }
.hero-login-form input { font-size: 16px; min-height: 46px; }
.hero-login-form .input-shell input { padding-left: 14px; }
.hero-login-form .auth-foot { margin-top: 16px; padding-top: 14px; font-size: .85rem; }
/* Login window: centred over a dimmed, blurred page. */
.login-overlay { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 16px; }
.login-overlay[hidden] { display: none; }
/* The window slides in from the right and stops in the middle; the page behind blurs and darkens gradually.
   Closing, it carries on out to the left. */
.login-overlay-back { position: absolute; inset: 0; background: rgba(6, 12, 10, 0); -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); transition: background .6s ease, backdrop-filter .6s ease, -webkit-backdrop-filter .6s ease; }
.login-overlay .hero-login-form { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; margin: 0; transform: translateX(calc(50vw + 100%)); transition: transform .55s cubic-bezier(.22, 1, .36, 1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.login-overlay.open .login-overlay-back { background: rgba(6, 12, 10, .72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.login-overlay.open .hero-login-form { transform: none; }
.login-overlay.closing .hero-login-form { transform: translateX(calc(-50vw - 100%)); transition-timing-function: cubic-bezier(.64, 0, .78, 0); transition-duration: .4s; }
.login-overlay.closing .login-overlay-back { transition-duration: .4s; }
.login-overlay .hero-login-back { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text); text-decoration: none; }
.login-overlay .hero-login-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
html.login-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .login-overlay-back, .login-overlay .hero-login-form { transition: none; } }
@media (max-width: 760px) {
    .site-header .container { flex-wrap: nowrap; gap: 8px; height: auto; min-height: 68px; padding-top: 8px; padding-bottom: 8px; }
    .site-header .brand { min-width: 0; }
    .nav-links { margin-left: auto; flex-wrap: nowrap; gap: 6px; min-width: 0; }
    .nav-links .login-trigger { display: inline-flex; padding: 8px 12px; font-size: .8rem; }
    .nav-links .btn-primary { padding: 8px 12px; font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 540px) {
    .site-header .container { min-height: 60px; padding-left: 12px; padding-right: 12px; }
    .site-header .brand { font-size: clamp(1rem, 4.5vw, 1.2rem); gap: 4px; }
    .site-header .brand img { height: 22px; }
    .site-header .nav-links { flex-direction: row; align-items: center; justify-content: flex-end; gap: 5px; }
    .site-header .nav-links .btn { min-height: 40px; padding: 8px; font-size: .7rem; line-height: 1.15; white-space: nowrap; }
}
/* Logged in: "Meu painel" and "Sair" stay on the phone header (the outline buttons are hidden for guests to save room),
   and the "Olá, nome" line gives way to them. */
@media (max-width: 760px) {
    .nav-links.logged .btn-ghost { display: inline-flex; }
    .nav-links.logged .hello { display: none; }
}
@media (max-width: 340px) {
    .site-header .container { padding-left: 10px; padding-right: 10px; }
    .site-header .brand { font-size: 1rem; }
}

/* Mobile home: a compact video introduction followed by the access/search section. */
#homeControlsSlot { display: none; }
.home-controls { min-width: 0; }
.mobile-home-actions, .mobile-home-section { display: none; }
@media (max-width: 760px) {
    .home-page .site-header .nav-links { display: flex; }
    .home-page .site-header .container { min-height: 60px; }
    .home-page .home-hero { min-height: 0; padding: 38px 0 42px; }
    .home-page .hero-grid { display: block; }
    .home-page .home-hero h1 { font-size: clamp(2.6rem, 10.5vw, 3.6rem); line-height: 1; margin-bottom: 18px; }
    .home-page .home-hero p.lead { font-size: 1rem; line-height: 1.55; margin-bottom: 0; }
    .home-page .home-hero .btn-ghost { display: none; }
    .mobile-home-section { display: block; padding: 24px 0 36px; background: var(--night); border-top: 1px solid var(--border); }
    .mobile-home-actions { display: none; }
    .mobile-home-actions .btn { min-height: 44px; padding: 10px 14px; font-size: .85rem; }
    .mobile-home-actions .btn-primary { flex: 1; }
    .mobile-home-section .search-window { padding: 22px; }
    .mobile-home-section .search-window h2 { font-size: 1.8rem; }
    .mobile-home-section input { font-size: 16px; }
    .home-controls { scroll-margin-top: 76px; }
}

/* ---------- Home hero layout (moved here when the old map stylesheet was removed) ---------- */
.home-hero { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); padding: clamp(28px, 6vh, 72px) 0; }
.home-hero h1 { font-size: clamp(2.8rem, 5.4vw, 4.8rem); }
.home-hero .hero-grid { gap: 40px; }
@media (max-width: 880px) {
  .home-hero { padding:28px 0 22px; }
  .home-hero .hero-grid { gap:20px; }
  .home-hero h1 { font-size:2.7rem; margin-bottom:12px; }
  .home-hero p.lead { font-size:1rem; }
  .home-hero .search-window { padding:18px; }
}

@media (max-width: 1100px) { .signup-trigger { display: none; } }

/* ---- accessibility */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: #c8ab78; color: #101c18; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid #c8ab78; outline-offset: 3px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---- native dropdown lists match the site */
select { color-scheme: dark; }
select option, select optgroup { background: #172620; color: #f4efe4; }
select option:checked { background: #b9965b; color: #101c18; }

/* ---- styled confirm + toasts */
.ui-confirm { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; padding: 16px; background: rgba(6, 12, 10, .72); backdrop-filter: blur(3px); opacity: 0; transition: opacity .15s ease; }
.ui-confirm.open { opacity: 1; }
.ui-confirm-box { width: min(400px, 100%); background: linear-gradient(160deg, #1d2e27, #131f1a); border: 1px solid rgba(var(--ink-rgb), .12); border-radius: 22px; padding: 26px 24px 20px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transform: translateY(8px) scale(.98); transition: transform .15s ease; }
.ui-confirm.open .ui-confirm-box { transform: none; }
.ui-confirm-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(229, 83, 83, .12); border: 1px solid rgba(229, 83, 83, .35); }
.ui-confirm-icon svg { width: 26px; height: 26px; stroke: #ef6b6b; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ui-confirm-box h3 { margin: 0 0 6px; font-size: 1.35rem; }
.ui-confirm-box p { margin: 0 0 20px; color: rgba(var(--ink-rgb), .7); font-size: .95rem; line-height: 1.5; }
.ui-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-danger-solid { background: #d64545; color: #fff; border: 0; }
.btn-danger-solid:hover { background: #e25555; }
#uiToasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.ui-toast { background: #1d2e27; color: #f4efe4; border: 1px solid rgba(200, 171, 120, .45); border-radius: 14px; padding: 11px 18px; font-size: .92rem; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; max-width: min(92vw, 460px); text-align: center; }
.ui-toast.in { opacity: 1; transform: none; }
.ui-toast.error { border-color: rgba(229, 83, 83, .6); }

/* "Entrar com o Google" (setupGoogleSignIn in partials.js): a divider and Google's own button, only when configured. */
.google-signin { margin-top: 16px; }
.google-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; color: var(--text-muted); font-size: .85rem; }
.google-or::before, .google-or::after { content: ""; flex: 1; height: 1px; background: rgba(var(--ink-rgb), .14); }
.google-btn { display: flex; justify-content: center; min-height: 44px; color-scheme: light; }
.google-signin.busy { opacity: .55; pointer-events: none; }

/* QR code window (opened by [data-share-app]): bottom sheet on phones, dialog on desktop. */
.footer-share { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong, rgba(244, 239, 228, .22)); background: transparent; color: var(--text); border-radius: 99px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.footer-share:hover { border-color: var(--accent); color: var(--accent); }
.footer-share svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal a:hover { color: var(--chalk); text-decoration: underline; text-underline-offset: 2px; }
.share-back { position: fixed; inset: 0; z-index: 1600; background: rgba(6, 12, 10, .6); opacity: 0; transition: opacity .2s ease; }
.share-back.open { opacity: 1; }
.share-modal {
    position: fixed; z-index: 1610; left: 50%; top: 50%; width: min(440px, calc(100vw - 24px)); max-height: 92vh; overflow-y: auto;
    padding: 26px 22px 22px; border-radius: 24px; background: var(--sheet-bg, #16241e); color: var(--text);
    border: 1px solid var(--border-strong, rgba(244, 239, 228, .22)); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7);
    transform: translate(-50%, -46%); opacity: 0; transition: transform .22s ease, opacity .22s ease;
}
.share-modal.open { transform: translate(-50%, -50%); opacity: 1; }
.share-close { position: absolute; top: 10px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-strong, rgba(244, 239, 228, .22)); background: transparent; color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.share-modal .share-qr { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.share-modal .share-qr h2 { font-size: 1.7rem; margin-bottom: 6px; }
.share-modal .share-qr p { margin-left: auto; margin-right: auto; }
.share-modal .share-qr-code { order: -1; width: min(230px, 62vw); }
.share-modal .share-qr-actions { justify-content: center; }
@media (max-width: 640px) {
    .share-modal { top: auto; bottom: 0; left: 0; width: 100%; max-height: 88vh; border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: calc(22px + env(safe-area-inset-bottom)); transform: translateY(100%); }
    .share-modal.open { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .share-modal, .share-back { transition: none; } }

/* Home: "Tem uma barbearia?" block. Buttons keep a gap between them; on phones the block is centred. */
.owner-cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
    .owner-cta { text-align: center; }
    .owner-cta p { margin-left: auto; margin-right: auto; }
    .owner-cta-buttons { flex-direction: column; align-items: center; }
}

/* Share section with a QR code (renderShare in partials.js): copy and buttons on the left, the code on the right. */
.share-section { padding: 8px 0 56px; }
.share-qr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 48px); align-items: center; max-width: 820px; margin: 0 auto; padding: clamp(22px, 3.4vw, 36px); border-radius: var(--radius-lg); }
.share-qr h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.share-qr p { margin: 0 0 18px; color: rgba(var(--ink-rgb), .78); max-width: 30em; }
.share-qr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-qr-link { margin-top: 14px; color: var(--text-muted); font-size: .85rem; word-break: break-all; }
.share-qr-code { width: 200px; padding: 10px; border-radius: 20px; background: #fff; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, .7); }
.share-qr-code svg { display: block; width: 100%; height: auto; border-radius: 12px; }
@media (max-width: 640px) {
    .share-qr { grid-template-columns: 1fr; justify-items: start; }
    .share-qr-code { order: -1; width: min(220px, 70vw); justify-self: center; }
}

/* Install-as-app card (partials.js). Panels raise it above their bottom tab bar (owner.css). */
.bk-install {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 900;
    max-width: 460px; margin: 0 auto; padding: 14px; border-radius: 20px;
    display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center;
    background: var(--sheet-bg, #16241e); color: var(--text); border: 1px solid var(--border-strong, rgba(244, 239, 228, .22));
    box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .6);
    opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .25s ease;
}
.bk-install.open { opacity: 1; transform: none; }
.bk-install img { width: 48px; height: 48px; border-radius: 12px; background: #fff; }
.bk-install-text strong { display: block; }
.bk-install-text span { color: var(--text-muted); font-size: .88rem; line-height: 1.35; }
.bk-install-actions { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .bk-install { transition: none; transform: none; } }

/* "Instalar app" button: brass pill with a light sweep and a soft pulse. It only shows while the app is not installed
   (partials.js sets .bk-can-install on <html>); any [data-install-app] element is wired by partials.js. */
.install-btn {
    display: none; position: relative; overflow: hidden; isolation: isolate; flex: none; white-space: nowrap;
    align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 99px; padding: 10px 18px;
    background: var(--accent-gradient); color: var(--accent-text); font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer;
    box-shadow: 0 0 0 0 rgba(200, 171, 120, .55), 0 6px 18px -8px rgba(185, 150, 91, .8);
    animation: bk-pulse 2.8s ease-out infinite;
    transition: transform .15s ease, filter .15s ease;
}
.bk-can-install .install-btn { display: inline-flex; }
.install-btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%);
    transform: translateX(-130%); animation: bk-shine 3.6s ease-in-out infinite;
}
.install-btn:hover { filter: brightness(1.06); }
.install-btn:active { transform: scale(.96); }
.install-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.install-btn svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; animation: bk-nudge 2.8s ease-in-out infinite; }
@keyframes bk-shine { 0%, 45% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes bk-pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 171, 120, .5), 0 6px 18px -8px rgba(185, 150, 91, .8); } 70%, 100% { box-shadow: 0 0 0 12px rgba(200, 171, 120, 0), 0 6px 18px -8px rgba(185, 150, 91, .8); } }
@keyframes bk-nudge { 0%, 60%, 100% { transform: translateY(0); } 72% { transform: translateY(2px); } 84% { transform: translateY(-1px); } }
@media (prefers-reduced-motion: reduce) { .install-btn, .install-btn svg { animation: none; } .install-btn::after { display: none; } }
/* The small floating pill, centred at the bottom of every page and only slightly see-through (text stays crisp:
   the transparency is in the background, not the element). Panels lift it above their tab bar (owner.css). */
.install-fab {
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 800; transform: translateX(-50%);
    padding: 7px 14px 7px 12px; font-size: .76rem; gap: 6px;
    background: linear-gradient(135deg, rgba(200, 171, 120, .9), rgba(185, 150, 91, .9));
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.install-fab:hover { filter: none; }
.install-fab:active { transform: translateX(-50%) scale(.96); }
.install-fab svg { width: 15px; height: 15px; }
body.modal-open .install-fab, body:has(.bk-install) .install-fab { display: none !important; }
body:has(#uiToasts .ui-toast) .install-fab { opacity: 0; pointer-events: none; } /* a notice takes its spot for a moment */
@media (min-width: 901px) { .install-fab { display: none !important; } }
html.login-open .install-fab, html.login-open .bk-install { display: none !important; }

.review-reply { display: block; margin-top: 4px; padding: 8px 12px; border-left: 3px solid var(--accent); background: rgba(var(--ink-rgb), .04); border-radius: 0 10px 10px 0; font-size: .92rem; }

/* Phones: dialog buttons share the row evenly (a single one spans it). */
@media (max-width: 640px) {
    .modal-actions .btn { flex: 1 1 0; justify-content: center; min-width: 0; }
}

/* "Receber avisos no celular" card (renderPushCard): public pages and panels. */
.push-card { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border-strong); border-radius: 16px; background: rgba(var(--ink-rgb), .04); margin: 0 0 18px; text-align: left; }
.push-card.is-on { border-color: rgba(92, 170, 120, .45); }
.push-card .pc-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(185, 150, 91, .16); color: var(--accent); flex: none; }
.push-card .pc-ic svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.push-card .pc-tx { flex: 1; min-width: 0; }
.push-card .pc-tx strong { display: block; font-size: .98rem; }
.push-card .pc-tx span { display: block; color: var(--text-muted); font-size: .88rem; line-height: 1.4; margin-top: 2px; }
.push-card .pc-ac { display: flex; gap: 8px; flex: none; }
.push-card .pc-ac:empty { display: none; }
@media (max-width: 640px) {
    .push-card { flex-wrap: wrap; }
    .push-card .pc-ac { width: 100%; }
    .push-card .pc-ac .btn { flex: 1 1 0; justify-content: center; }
}
