/* ==========================================================================
   Javna stranica za zakazivanje.
   ==========================================================================

   Stil je do sada zivio u samim predloscima: 814 redova u booking/index,
   368 u layoutu, pa jos u svakom ekranu potvrde. Iste kartice su bile
   opisane po tri puta i razlicito, pa su i izgledale razlicito.

   Boje biznisa ulaze kao --biz-* varijable iz baze i koriste se na tacno tri
   mjesta: pozadina stranice, zaglavlje i naglasak (odabrano, glavno dugme).
   Sve ostalo je neutralno, jer sadrzaj stoji na bijelim karticama i mora se
   citati bez obzira koje boje vlasnik odabere.
   ========================================================================== */

:root {
    --pb-brand: #1B3FD1;
    --pb-brand-hover: #16349F;
    --pb-text: #111827;
    --pb-muted: #6b7280;
    --pb-muted-soft: #9ca3af;
    --pb-border: #e5e7eb;
    --pb-border-strong: #d1d5db;
    --pb-surface: #ffffff;
    --pb-soft: #f8fafc;
    --pb-soft-hover: #f1f5f9;

    --pb-ok: #059669;
    --pb-ok-soft: #ecfdf5;
    --pb-warn: #b45309;
    --pb-warn-soft: #fffbeb;
    --pb-danger: #dc2626;
    --pb-danger-soft: #fef2f2;

    --pb-radius: 10px;
    --pb-radius-lg: 16px;
    --pb-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .1);
    --pb-shadow-lg: 0 10px 30px rgba(16, 24, 40, .08);

    --pb-s1: 4px;
    --pb-s2: 8px;
    --pb-s3: 12px;
    --pb-s4: 16px;
    --pb-s5: 24px;
    --pb-s6: 32px;

    /* Nadjacava ih layout vrijednostima iz baze. */
    --biz-accent: var(--pb-brand);
    --biz-accent-hover: var(--pb-brand-hover);
    --biz-title: #ffffff;
    --biz-desc: #ffffff;
    --biz-contact: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pb-text);
    background: var(--biz-page-bg, var(--pb-soft));
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

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

.pb-sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

[x-cloak] { display: none !important; }

/* --- Okvir stranice ------------------------------------------------------ */

.pb-shell {
    max-width: 880px;
    margin: 0 auto;
    padding: var(--pb-s5) var(--pb-s4) var(--pb-s6);
}

.pb-card {
    background: var(--pb-surface);
    border-radius: var(--pb-radius-lg);
    box-shadow: var(--pb-shadow-lg);
    overflow: hidden;
}

.pb-body { padding: var(--pb-s5); }

@media (max-width: 640px) {
    .pb-shell { padding: var(--pb-s3) var(--pb-s3) var(--pb-s5); }
    .pb-body { padding: var(--pb-s4); }
}

/* --- Zaglavlje biznisa ---------------------------------------------------- */

.pb-header {
    background: linear-gradient(var(--biz-header-dir, 135deg), var(--biz-header-start, #1B3FD1), var(--biz-header-end, #16349F));
    padding: var(--pb-s6) var(--pb-s5);
    text-align: center;
    position: relative;
}

.pb-header-logo {
    width: 76px; height: 76px;
    margin: 0 auto var(--pb-s3);
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.pb-header-logo img { width: 100%; height: 100%; object-fit: cover; }
.pb-header-logo span { font-size: 1.75rem; font-weight: 700; color: var(--biz-title); }

.pb-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--biz-title);
    overflow-wrap: anywhere;
}

.pb-header-desc {
    margin-top: var(--pb-s2);
    font-size: .95rem;
    color: var(--biz-desc);
    opacity: .92;
    max-width: 52ch;
    margin-left: auto;
    margin-right: auto;
}

.pb-header-contact {
    margin-top: var(--pb-s3);
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: var(--pb-s2) var(--pb-s4);
    font-size: .85rem;
    color: var(--biz-contact);
    opacity: .9;
}
.pb-header-contact span, .pb-header-contact a {
    display: inline-flex; align-items: center; gap: 6px;
    color: inherit; text-decoration: none;
}
.pb-header-contact a:hover { text-decoration: underline; }
.pb-header-contact svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .85; }

.pb-header-fav { position: absolute; top: var(--pb-s4); right: var(--pb-s4); }

@media (max-width: 640px) {
    .pb-header { padding: var(--pb-s5) var(--pb-s4); }
    .pb-header h1 { font-size: 1.3rem; }
    .pb-header-logo { width: 60px; height: 60px; }
}

/* --- Koraci --------------------------------------------------------------- */

.pb-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--pb-border);
    background: var(--pb-soft);
}

.pb-step {
    display: flex; align-items: center; justify-content: center; gap: var(--pb-s2);
    padding: var(--pb-s3) var(--pb-s2);
    font-size: .8rem;
    font-weight: 600;
    color: var(--pb-muted);
    border-bottom: 2px solid transparent;
    min-width: 0;
}
.pb-step-num {
    width: 22px; height: 22px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--pb-border);
    color: var(--pb-muted);
    font-size: .75rem;
}
.pb-step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-step.is-done .pb-step-num { background: var(--pb-ok); color: #fff; }
.pb-step.is-current {
    color: var(--pb-text);
    background: var(--pb-surface);
    border-bottom-color: var(--biz-accent);
}
.pb-step.is-current .pb-step-num { background: var(--biz-accent); color: #fff; }

@media (max-width: 640px) {
    .pb-step { flex-direction: column; gap: 2px; font-size: .68rem; padding: var(--pb-s2) 4px; }
    .pb-step-label { white-space: normal; text-align: center; line-height: 1.2; }
}

/* --- Tipografija odjeljka -------------------------------------------------- */

.pb-title { font-size: 1.05rem; font-weight: 700; }
.pb-subtitle { margin-top: 2px; font-size: .85rem; color: var(--pb-muted); }
.pb-section + .pb-section { margin-top: var(--pb-s5); }
.pb-muted { color: var(--pb-muted); }
.pb-small { font-size: .82rem; }

/* --- Kategorije i usluge --------------------------------------------------- */

.pb-groups { display: grid; gap: var(--pb-s2); margin-top: var(--pb-s4); }

.pb-group {
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
    background: var(--pb-surface);
}

.pb-group-head {
    width: 100%;
    display: flex; align-items: center; gap: var(--pb-s3);
    padding: var(--pb-s3) var(--pb-s4);
    background: var(--pb-surface);
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.pb-group-head:hover { background: var(--pb-soft); }
.pb-group-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pb-group-name { font-weight: 600; flex: 1; min-width: 0; }
.pb-group-count { font-size: .8rem; color: var(--pb-muted); }
.pb-group-chevron {
    width: 16px; height: 16px; flex-shrink: 0; color: var(--pb-muted);
    transition: transform .15s ease;
}
.pb-group.is-open .pb-group-chevron { transform: rotate(180deg); }
.pb-group-body { padding: 0 var(--pb-s3) var(--pb-s3); }

.pb-services { display: grid; gap: var(--pb-s2); }
.pb-services--flat { margin-top: var(--pb-s4); }

.pb-service { display: block; cursor: pointer; }
.pb-service input { position: absolute; opacity: 0; pointer-events: none; }

.pb-service-card {
    display: flex; align-items: flex-start; gap: var(--pb-s3);
    padding: var(--pb-s3) var(--pb-s4);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: var(--pb-surface);
    transition: border-color .12s, box-shadow .12s, background .12s;
}
.pb-service-card:hover { border-color: var(--pb-border-strong); background: var(--pb-soft); }
.pb-service input:checked + .pb-service-card {
    border-color: var(--biz-accent);
    box-shadow: 0 0 0 1px var(--biz-accent) inset;
    background: var(--pb-surface);
}
.pb-service input:focus-visible + .pb-service-card {
    outline: 2px solid var(--biz-accent);
    outline-offset: 2px;
}

.pb-service-main { flex: 1; min-width: 0; }
.pb-service-name { font-weight: 600; }
.pb-service-desc { margin-top: 2px; font-size: .85rem; color: var(--pb-muted); }
.pb-service-side { text-align: right; flex-shrink: 0; }
.pb-service-price { font-weight: 700; }
.pb-service-dur { font-size: .8rem; color: var(--pb-muted); white-space: nowrap; }

.pb-service-mark {
    width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px;
    border: 1.5px solid var(--pb-border-strong);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.pb-service input:checked + .pb-service-card .pb-service-mark {
    border-color: var(--biz-accent);
    background: var(--biz-accent);
    color: #fff;
}
.pb-service-mark svg { width: 11px; height: 11px; opacity: 0; }
.pb-service input:checked + .pb-service-card .pb-service-mark svg { opacity: 1; }

/* --- Polja ---------------------------------------------------------------- */

.pb-field { display: block; margin-top: var(--pb-s4); }
.pb-label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.pb-label .pb-req { color: var(--pb-danger); }
.pb-help { margin-top: 4px; font-size: .8rem; color: var(--pb-muted); }

.pb-input, .pb-select, .pb-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    background: var(--pb-surface);
    color: var(--pb-text);
    font: inherit;
    font-size: .95rem;
    transition: border-color .12s, box-shadow .12s;
}
.pb-textarea { resize: vertical; min-height: 84px; }
.pb-input:focus, .pb-select:focus, .pb-textarea:focus {
    outline: 0;
    border-color: var(--biz-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz-accent) 18%, transparent);
}
.pb-input.is-invalid, .pb-textarea.is-invalid { border-color: var(--pb-danger); }
.pb-error { margin-top: 4px; font-size: .8rem; color: var(--pb-danger); }

.pb-select {
    appearance: none; -webkit-appearance: none;
    padding-right: 36px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* --- Dugmad --------------------------------------------------------------- */

.pb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--pb-radius);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background .12s, border-color .12s, color .12s;
}
.pb-btn:focus-visible { outline: 2px solid var(--biz-accent); outline-offset: 2px; }
.pb-btn--primary { background: var(--biz-accent); color: #fff; }
.pb-btn--primary:hover { background: var(--biz-accent-hover); }
.pb-btn--ghost { background: var(--pb-surface); border-color: var(--pb-border-strong); color: var(--pb-text); }
.pb-btn--ghost:hover { background: var(--pb-soft); }
.pb-btn[disabled], .pb-btn.is-loading { opacity: .6; cursor: not-allowed; }
.pb-btn svg { width: 16px; height: 16px; }

.pb-actions {
    display: flex; align-items: center; gap: var(--pb-s2);
    margin-top: var(--pb-s5);
    padding-top: var(--pb-s4);
    border-top: 1px solid var(--pb-border);
}
.pb-actions--end { justify-content: flex-end; }
.pb-actions--split { justify-content: space-between; }

@media (max-width: 520px) {
    .pb-actions { flex-direction: column-reverse; align-items: stretch; }
    .pb-actions .pb-btn { width: 100%; }
}

/* --- Sazetak izbora -------------------------------------------------------- */

.pb-summary {
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--pb-s2) var(--pb-s4);
    padding: var(--pb-s3) var(--pb-s4);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: var(--pb-soft);
    font-size: .88rem;
}
.pb-summary-item { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.pb-summary-item svg { width: 15px; height: 15px; color: var(--pb-muted); flex-shrink: 0; }
.pb-summary strong { font-weight: 600; }

/* --- Kalendar -------------------------------------------------------------- */

.pb-calendar { margin-top: var(--pb-s4); }

.pb-cal-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: var(--pb-s3);
}
.pb-cal-month { font-weight: 700; font-size: 1rem; text-transform: capitalize; }
.pb-cal-nav {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    background: var(--pb-surface);
    color: var(--pb-text);
    cursor: pointer;
}
.pb-cal-nav:hover:not(:disabled) { background: var(--pb-soft); }
.pb-cal-nav:disabled { opacity: .4; cursor: not-allowed; }
.pb-cal-nav svg { width: 16px; height: 16px; }

.pb-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pb-cal-dow {
    text-align: center;
    font-size: .72rem;
    font-weight: 600;
    color: var(--pb-muted);
    padding-bottom: 4px;
}

.pb-cal-day {
    aspect-ratio: 1 / 1;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--pb-radius);
    font-size: .9rem;
    font-weight: 500;
    color: var(--pb-text);
    background: var(--pb-surface);
    cursor: pointer;
    transition: background .12s, border-color .12s;
}
.pb-cal-day.is-outside { color: var(--pb-muted-soft); pointer-events: none; opacity: .45; }
.pb-cal-day.is-open { border-color: var(--pb-border); }
.pb-cal-day.is-open:hover { background: var(--pb-soft-hover); border-color: var(--pb-border-strong); }
.pb-cal-day.is-today { font-weight: 700; box-shadow: inset 0 0 0 1px var(--biz-accent); }
/* Pokazivac na dan (:hover) nosi vecu tezinu od obicne klase, pa bi odabran
   dan pod pokazivacem posivio. Zato oba stanja u istom pravilu. */
.pb-cal-day.is-selected,
.pb-cal-day.is-selected:hover {
    background: var(--biz-accent);
    border-color: var(--biz-accent);
    color: #fff;
}
.pb-cal-day.is-blocked {
    color: var(--pb-muted-soft);
    background: var(--pb-soft);
    cursor: not-allowed;
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}
.pb-cal-day:focus-visible { outline: 2px solid var(--biz-accent); outline-offset: 1px; }

.pb-cal-legend {
    display: flex; flex-wrap: wrap; gap: var(--pb-s3);
    margin-top: var(--pb-s3);
    font-size: .75rem;
    color: var(--pb-muted);
}
.pb-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pb-cal-legend i {
    width: 10px; height: 10px; border-radius: 3px; display: inline-block;
    border: 1px solid var(--pb-border-strong);
}
.pb-cal-legend .is-free { background: var(--pb-surface); }
.pb-cal-legend .is-taken { background: var(--pb-border-strong); border-color: var(--pb-muted-soft); }
.pb-cal-legend .is-pick { background: var(--biz-accent); border-color: var(--biz-accent); }

/* --- Termini --------------------------------------------------------------- */

.pb-slots { margin-top: var(--pb-s5); }
.pb-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: var(--pb-s2);
    margin-top: var(--pb-s3);
}

.pb-slot { display: block; cursor: pointer; }
.pb-slot input { position: absolute; opacity: 0; pointer-events: none; }
.pb-slot-face {
    display: block;
    padding: 10px 6px;
    text-align: center;
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    font-weight: 600;
    font-size: .95rem;
    background: var(--pb-surface);
    transition: background .12s, border-color .12s, color .12s;
}
.pb-slot-face:hover { background: var(--pb-soft); }
.pb-slot input:checked + .pb-slot-face {
    background: var(--biz-accent);
    border-color: var(--biz-accent);
    color: #fff;
}
.pb-slot input:focus-visible + .pb-slot-face { outline: 2px solid var(--biz-accent); outline-offset: 2px; }
.pb-slot.is-taken { cursor: not-allowed; }
.pb-slot.is-taken .pb-slot-face {
    background: var(--pb-soft);
    color: var(--pb-muted-soft);
    border-color: var(--pb-border);
    text-decoration: line-through;
    text-decoration-thickness: 1px;
}

/* --- Poruke ---------------------------------------------------------------- */

.pb-note {
    display: flex; align-items: flex-start; gap: var(--pb-s2);
    padding: var(--pb-s3) var(--pb-s4);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: var(--pb-soft);
    font-size: .88rem;
}
.pb-note svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; }
.pb-note--warn { background: var(--pb-warn-soft); border-color: #fde68a; color: var(--pb-warn); }
.pb-note--error { background: var(--pb-danger-soft); border-color: #fecaca; color: var(--pb-danger); }
.pb-note--ok { background: var(--pb-ok-soft); border-color: #a7f3d0; color: var(--pb-ok); }
.pb-note ul { margin: 0; padding-left: 1.1rem; }

.pb-toast {
    position: fixed; top: var(--pb-s4); right: var(--pb-s4); z-index: 1050;
    max-width: 380px;
    padding: var(--pb-s3) var(--pb-s4);
    border-radius: var(--pb-radius);
    background: var(--pb-surface);
    box-shadow: var(--pb-shadow-lg);
    border-left: 3px solid var(--pb-ok);
    font-size: .9rem;
    transition: opacity .3s, transform .3s;
}
.pb-toast--error { border-left-color: var(--pb-danger); }

/* --- Ucitavanje ------------------------------------------------------------ */

.pb-loading {
    display: flex; align-items: center; justify-content: center; gap: var(--pb-s2);
    padding: var(--pb-s5);
    color: var(--pb-muted);
    font-size: .88rem;
}
.pb-spinner {
    width: 16px; height: 16px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pb-spin .8s linear infinite;
}
.pb-btn .pb-spinner { border-color: #fff; border-top-color: transparent; }
@keyframes pb-spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .pb-spinner { animation-duration: 2s; }
    * { transition-duration: .01ms !important; }
}

/* --- Ishod: potvrda, istekao kod, otkazan termin --------------------------- */

.pb-hero { text-align: center; padding: var(--pb-s3) 0 var(--pb-s5); }
.pb-hero-mark {
    width: 56px; height: 56px;
    margin: 0 auto var(--pb-s3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--pb-soft);
    color: var(--pb-muted);
}
.pb-hero-mark svg { width: 28px; height: 28px; }
.pb-hero-mark--ok { background: var(--pb-ok-soft); color: var(--pb-ok); }
.pb-hero-mark--wait { background: var(--pb-warn-soft); color: var(--pb-warn); }
.pb-hero-mark--stop { background: var(--pb-danger-soft); color: var(--pb-danger); }
.pb-hero h1 { font-size: 1.3rem; font-weight: 700; }
.pb-hero p { margin-top: var(--pb-s2); color: var(--pb-muted); font-size: .92rem; }
.pb-hero p strong { color: var(--pb-text); }

/* --- Podaci u dva stupca --------------------------------------------------- */

.pb-facts {
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
}
.pb-facts + .pb-facts { margin-top: var(--pb-s3); }
.pb-facts-title {
    padding: var(--pb-s2) var(--pb-s4);
    background: var(--pb-soft);
    border-bottom: 1px solid var(--pb-border);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--pb-muted);
}
.pb-fact {
    display: flex; align-items: baseline; justify-content: space-between; gap: var(--pb-s4);
    padding: 10px var(--pb-s4);
    border-bottom: 1px solid var(--pb-border);
    font-size: .92rem;
}
.pb-fact:last-child { border-bottom: 0; }
.pb-fact dt { color: var(--pb-muted); flex-shrink: 0; }
.pb-fact dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.pb-pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--pb-soft);
    color: var(--pb-muted);
}
.pb-pill--ok { background: var(--pb-ok-soft); color: var(--pb-ok); }
.pb-pill--wait { background: var(--pb-warn-soft); color: var(--pb-warn); }
.pb-pill--stop { background: var(--pb-danger-soft); color: var(--pb-danger); }

/* --- Sestocifreni kod ------------------------------------------------------- */

.pb-code { display: flex; justify-content: center; gap: var(--pb-s2); margin: var(--pb-s4) 0; }
.pb-code input {
    width: 46px; height: 54px;
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    background: var(--pb-surface);
    font: inherit;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    color: var(--pb-text);
    -moz-appearance: textfield;
}
.pb-code input::-webkit-inner-spin-button, .pb-code input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pb-code input:focus {
    outline: 0;
    border-color: var(--biz-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--biz-accent) 18%, transparent);
}
.pb-code input.is-filled { border-color: var(--biz-accent); }

@media (max-width: 420px) {
    .pb-code { gap: 6px; }
    .pb-code input { width: 40px; height: 48px; font-size: 1.2rem; }
}

.pb-actions--center { justify-content: center; flex-wrap: wrap; }

.pb-code-timer { margin-top: var(--pb-s3); font-size: .88rem; color: var(--pb-muted); }
.pb-code-timer strong { font-variant-numeric: tabular-nums; color: var(--pb-text); }
.pb-code-timer.is-urgent strong { color: var(--pb-danger); }

.pb-map {
    margin-top: var(--pb-s3);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    overflow: hidden;
}
.pb-map iframe { display: block; border: 0; }
.pb-map a {
    display: block;
    padding: 10px;
    text-align: center;
    background: var(--pb-soft);
    border-top: 1px solid var(--pb-border);
    color: var(--biz-accent);
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
}
.pb-map a:hover { background: var(--pb-soft-hover); }

/* --- Ponuda naloga ispod potvrdenog termina -------------------------------- */

.pb-offer {
    margin-top: var(--pb-s5);
    padding: var(--pb-s4);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    background: var(--pb-soft);
}
.pb-offer .pb-input { background: var(--pb-surface); }

.pb-or {
    display: flex; align-items: center; gap: var(--pb-s3);
    margin: var(--pb-s4) 0 var(--pb-s3);
    font-size: .82rem;
    color: var(--pb-muted);
}
.pb-or::before, .pb-or::after { content: ''; flex: 1; height: 1px; background: var(--pb-border); }

/* ==========================================================================
   Portal klijenta: moji termini, omiljeni, profil.
   ==========================================================================
   Isti stil kao zakazivanje, jer je i publika ista. Portal je ranije nosio
   svojih 234 reda u layoutu i vlastite nazive klasa (.card, .muted), pa je bio
   peti dizajn u projektu.
   ========================================================================== */

/* Zaglavlje je ono sa sajta i dolazi iz landing.css; ovdje se samo pravi
   mjesta ispod njega, jer je fiksno. */
.pb-shell--portal { padding-top: calc(var(--header-h, 72px) + var(--pb-s6)); }

.pb-shell--wide { max-width: 1000px; }

.pb-portal-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--pb-s4);
    flex-wrap: wrap;
    margin-bottom: var(--pb-s5);
}

.pb-portal-title {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--pb-text);
}

.pb-portal-lead {
    margin-top: 6px;
    font-size: .95rem;
    color: var(--pb-muted);
    max-width: 62ch;
}

/* Kartice sa strane bi na ovoj sirini bile pretijesne, pa navigacija portala
   ide u traku iznad sadrzaja. */
.pb-tabs {
    display: flex;
    gap: var(--pb-s1);
    margin-bottom: var(--pb-s5);
    border-bottom: 1px solid var(--pb-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.pb-tabs::-webkit-scrollbar { display: none; }

.pb-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 14px;
    margin-bottom: -1px;
    border-bottom: 2px solid transparent;
    font-size: .92rem;
    font-weight: 600;
    color: var(--pb-muted);
    text-decoration: none;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
}

.pb-tabs a svg { width: 16px; height: 16px; }
.pb-tabs a:hover { color: var(--pb-text); }

.pb-tabs a.is-active {
    color: var(--pb-brand);
    border-bottom-color: var(--pb-brand);
}

.pb-h1 { font-size: 1.5rem; font-weight: 700; }
.pb-h2 {
    margin: var(--pb-s5) 0 var(--pb-s3);
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pb-muted);
}
.pb-h2:first-of-type { margin-top: 0; }

@media (max-width: 640px) {
    .pb-shell--portal { padding-top: calc(var(--header-h, 72px) + var(--pb-s4)); }
    .pb-portal-title { font-size: 1.4rem; }
}

.pb-panel {
    background: var(--pb-surface);
    border: 1px solid var(--pb-border);
    border-radius: var(--pb-radius);
    padding: var(--pb-s4);
}
.pb-panel + .pb-panel { margin-top: var(--pb-s3); }
.pb-panel--flush { padding: 0; overflow: hidden; }

.pb-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: var(--pb-s3); flex-wrap: wrap;
}
.pb-panel-name { font-size: 1.02rem; font-weight: 700; color: var(--pb-text); text-decoration: none; }
.pb-panel-name:hover { text-decoration: underline; }
.pb-panel-sub { margin-top: 2px; font-weight: 500; }

.pb-grid {
    margin-top: var(--pb-s3);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--pb-s2) var(--pb-s4);
    font-size: .92rem;
}
.pb-grid dt { font-size: .8rem; color: var(--pb-muted); }
.pb-grid dd { font-weight: 500; }

.pb-panel-foot {
    margin-top: var(--pb-s4);
    padding-top: var(--pb-s3);
    border-top: 1px solid var(--pb-border);
    display: flex; align-items: center; gap: var(--pb-s2);
    flex-wrap: wrap;
}

.pb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pb-table th {
    padding: 10px var(--pb-s4);
    background: var(--pb-soft);
    border-bottom: 1px solid var(--pb-border);
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--pb-muted);
}
.pb-table td { padding: 10px var(--pb-s4); border-bottom: 1px solid var(--pb-border); }
.pb-table tr:last-child td { border-bottom: 0; }
.pb-table a { color: var(--pb-brand); font-weight: 600; text-decoration: none; }
.pb-table a:hover { text-decoration: underline; }
.pb-scroll { overflow-x: auto; }

.pb-empty { text-align: center; padding: var(--pb-s6) var(--pb-s4); }
.pb-empty p { color: var(--pb-muted); margin-bottom: var(--pb-s3); }

.pb-pagination { margin-top: var(--pb-s3); font-size: .9rem; }
.pb-pagination svg { width: 16px; height: 16px; display: inline; }

/* --- Portal: trazenje biznisa za omiljene ---------------------------------- */

.pb-find {
    display: flex;
    gap: var(--pb-s2);
    align-items: stretch;
    flex-wrap: wrap;
    margin-bottom: var(--pb-s5);
}

.pb-find-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 260px;
}

.pb-find-field svg {
    position: absolute;
    left: 12px;
    width: 16px;
    height: 16px;
    color: var(--pb-muted-soft);
    pointer-events: none;
}

.pb-find-field input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid var(--pb-border-strong);
    border-radius: var(--pb-radius);
    font: inherit;
    font-size: .95rem;
    color: var(--pb-text);
    background: var(--pb-surface);
}

.pb-find-field input:focus {
    outline: none;
    border-color: var(--pb-brand);
    box-shadow: 0 0 0 3px rgba(27, 63, 209, .12);
}

/* --- Portal: kartica termina ---------------------------------------------- */

.pb-appt {
    display: flex;
    gap: var(--pb-s5);
    align-items: flex-start;
}

/* Datum se cita prvi, pa stoji izdvojen sa strane umjesto u redu teksta */
.pb-appt-date {
    flex: 0 0 auto;
    width: 74px;
    padding: var(--pb-s3) 0;
    border-radius: var(--pb-radius);
    background: var(--pb-soft);
    text-align: center;
    line-height: 1.2;
}

.pb-appt-day {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--pb-text);
}

.pb-appt-month {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--pb-muted);
}

.pb-appt-time {
    display: block;
    margin-top: 4px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--pb-brand);
}

.pb-appt-body { flex: 1 1 auto; min-width: 0; }

/* Srce ide na desnu stranu podnozja, odvojeno od radnji nad terminom */
.pb-appt-fav { margin-left: auto; }

.pb-btn.is-saved { color: var(--pb-danger); border-color: var(--pb-danger); }

.pb-linkbtn {
    border: 0;
    background: none;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    color: var(--pb-muted-soft);
    cursor: pointer;
    padding: 4px;
}

.pb-linkbtn:hover { color: var(--pb-danger); }
.pb-linkbtn.is-saved { color: var(--pb-danger); }

@media (max-width: 640px) {
    .pb-appt { gap: var(--pb-s3); }
    .pb-appt-date { width: 58px; padding: var(--pb-s2) 0; }
    .pb-appt-day { font-size: 1.25rem; }
    .pb-appt-fav { margin-left: 0; }
}

.pb-footer {
    max-width: 1000px;
    margin: var(--pb-s6) auto 0;
    padding: var(--pb-s4);
    text-align: center;
    font-size: .82rem;
    color: var(--pb-muted);
}
.pb-footer a { color: inherit; text-decoration: none; }
.pb-footer a:hover { text-decoration: underline; }

.pb-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--pb-s3);
}
.pb-cards .pb-panel + .pb-panel { margin-top: 0; }

.pb-fav { display: flex; flex-direction: column; gap: var(--pb-s3); }
.pb-fav-head { display: flex; align-items: center; gap: var(--pb-s3); }
.pb-fav-logo {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--pb-border);
    background: var(--pb-surface);
}
.pb-fav-logo--letter {
    display: flex; align-items: center; justify-content: center;
    background: var(--pb-soft);
    color: var(--pb-brand);
    font-weight: 700;
    font-size: 1.2rem;
    border: 0;
}
.pb-fav-foot { display: flex; gap: var(--pb-s2); margin-top: auto; }

.pb-btn--danger { background: var(--pb-danger); color: #fff; }
.pb-btn--danger:hover { background: #b91c1c; }
