/* ============================================================
   BARBERPRO — TELA DE AGENDAMENTO (CLIENTE)
   ============================================================ */

.booking-page {
    --bk-primary: var(--shop-primary, #1C1C1E);
    --bk-accent: var(--shop-accent, #D4AF37);
    --bk-bg: var(--shop-bg, #F8F7F4);
    --bk-text: var(--shop-text, #1C1C1E);
    --bk-muted: #8E8E93;
    --bk-card: #FFFFFF;
    --bk-border: #E5E5EA;
    --bk-radius: 14px;
    --bk-shadow: 0 4px 16px rgba(0,0,0,0.06);
    min-height: 100vh;
    background: var(--bk-bg);
    color: var(--bk-text);
    font-family: 'Inter', system-ui, sans-serif;
}

/* Top bar (substitui hero) */
.bk-top {
    background: #1C1C1E;
    color: #fff;
    padding: 14px 20px;
}
.bk-top-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.bk-top .bk-back {
    color: rgba(255,255,255,0.65);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.bk-top .bk-back:hover { color: #E8C547; }
.bk-top-shop {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.bk-top-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.15);
}
.bk-top-shop h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
}
.bk-top-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.bk-top-meta i { color: #D4AF37; margin-right: 3px; }
.bk-top .bk-user-bar {
    margin-left: auto;
}

/* Hero legado (mantido se usado) */
.bk-hero {
    background: #1C1C1E;
    color: #fff;
    padding: 20px 24px 36px;
    position: relative;
    overflow: hidden;
}
.bk-hero--cover {
    background-image: var(--bk-cover);
    background-size: cover;
    background-position: center;
    min-height: 160px;
    padding-bottom: 36px;
}
.bk-hero-overlay {
    display: none;
}
.bk-hero--cover .bk-hero-overlay {
    display: block;
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(12,10,8,calc(var(--bk-overlay, 0.55) * 1.1)) 0%, rgba(12,10,8,calc(var(--bk-overlay, 0.55) * 0.85)) 100%);
    pointer-events: none;
}
.bk-hero--cover::after { display: none; }
.bk-hero::after {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(212,175,55,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.bk-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.bk-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}
.bk-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-left: auto;
}
.bk-hero-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 10px;
}
.bk-hero-logo {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    overflow: hidden;
    border: 3px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.bk-hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.bk-hero-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--bk-accent);
    margin-top: 6px;
}
.bk-hero-rating i { font-size: 13px; }
.bk-user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 999px;
    padding: 4px 6px 4px 12px;
    backdrop-filter: blur(8px);
}
.bk-user-bar.hidden { display: none !important; }
.bk-user-chip {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bk-user-edit {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(212,175,55,0.2);
    color: var(--bk-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.bk-user-edit:hover { background: rgba(212,175,55,0.35); }
.bk-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.bk-back:hover { color: var(--bk-accent); }
.bk-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(212,175,55,0.15);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--bk-accent);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.bk-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.bk-hero-desc {
    color: rgba(255,255,255,0.65);
    font-size: 15px;
    max-width: 520px;
    line-height: 1.6;
}
.bk-hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.bk-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}
.bk-hero-meta i { color: var(--bk-accent); }

/* Layout */
.bk-layout {
    max-width: 1100px;
    margin: 20px auto 60px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}

/* Stepper */
.bk-stepper-wrap {
    margin-bottom: 16px;
    background: var(--bk-card);
    border-radius: var(--bk-radius);
    padding: 16px 14px 12px;
    box-shadow: var(--bk-shadow);
    border: 1px solid var(--bk-border);
}
.bk-stepper-track {
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 999px;
    margin-bottom: 20px;
    overflow: hidden;
}
.bk-stepper-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--bk-accent), #AA8A2A);
    border-radius: 999px;
    transition: width 0.45s cubic-bezier(0.25,0.8,0.25,1);
}
.bk-stepper {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    position: relative;
}
.bk-step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-width: 0;
    position: relative;
}
.bk-step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bk-bg);
    border: 2px solid var(--bk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--bk-muted);
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}
.bk-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--bk-muted);
    line-height: 1.2;
    transition: color 0.3s;
    max-width: 72px;
}
.bk-step-item.active .bk-step-circle {
    background: #1C1C1E;
    border-color: #1C1C1E;
    color: #E8C547;
    box-shadow: none;
    transform: none;
}
.bk-step-item.active .bk-step-label {
    color: var(--bk-text);
    font-weight: 700;
}
.bk-step-item.done .bk-step-circle {
    background: rgba(212,175,55,0.12);
    border-color: var(--bk-accent);
    color: var(--bk-accent);
}
.bk-step-item.done .bk-step-label { color: var(--bk-accent); }

/* Cabeçalho de cada step */
.bk-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bk-border);
}
.bk-step-header-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 1px solid rgba(212,175,55,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--bk-accent);
    flex-shrink: 0;
}
.bk-step-header .bk-card-sub { margin-bottom: 0; }

/* Card principal */
.bk-card {
    background: var(--bk-card);
    border-radius: var(--bk-radius);
    padding: 22px 20px;
    box-shadow: var(--bk-shadow);
    border: 1px solid var(--bk-border);
}
.bk-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}
.bk-card-sub {
    color: var(--bk-muted);
    font-size: 13px;
    margin-bottom: 18px;
}

/* Steps */
.bk-step { display: none; animation: bkFadeIn 0.4s ease; }
.bk-step.active { display: block; }
@keyframes bkFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

/* Lista barbeiros — grid premium */
.bk-barbers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bk-barber-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 14px;
    background: var(--bk-bg);
    border: 1.5px solid var(--bk-border);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    overflow: hidden;
}
.bk-barber-card::before { display: none; }
.bk-barber-card:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(212,175,55,0.45);
}
.bk-barber-card.selected {
    border-color: #D4AF37;
    background: rgba(212,175,55,0.08);
    box-shadow: none;
}
.bk-barber-card.selected::before { opacity: 0; }
.bk-barber-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1C1C1E;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    box-shadow: none;
    border: none;
}
.bk-barber-info { flex: 1; min-width: 0; width: auto; }
.bk-barber-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 2px;
    color: var(--bk-text);
}
.bk-barber-spec {
    font-size: 12px;
    color: var(--bk-muted);
    line-height: 1.4;
    margin-bottom: 0;
    min-height: 0;
}
.bk-barber-badge { display: none; }
.bk-barber-check {
    position: static;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--bk-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: transparent;
    flex-shrink: 0;
    transition: all 0.2s;
}
.bk-barber-card.selected .bk-barber-check {
    background: #D4AF37;
    border-color: #D4AF37;
    color: #1C1C1E;
}

/* Grid legado (fallback) */
.bk-barbers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

/* Serviços */
.bk-services-list { display: flex; flex-direction: column; gap: 12px; }
.bk-service-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--bk-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.25,0.8,0.25,1);
    position: relative;
}
.bk-service-card:hover {
    border-color: rgba(212,175,55,0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.07);
}
.bk-service-card.selected {
    border-color: var(--bk-accent);
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.03));
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.bk-service-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.bk-service-meta { font-size: 13px; color: var(--bk-muted); }
.bk-service-price {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--bk-accent);
    white-space: nowrap;
}

/* Horários */
.bk-date-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--bk-border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bk-bg);
    margin-bottom: 20px;
}
.bk-date-input:focus {
    outline: none;
    border-color: var(--bk-accent);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.15);
}
.bk-times-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}
.bk-time-slot {
    padding: 13px 8px;
    text-align: center;
    border: 1.5px solid var(--bk-border);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25,0.8,0.25,1);
    background: var(--bk-bg);
}
.bk-time-slot:hover {
    border-color: var(--bk-accent);
    color: var(--bk-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212,175,55,0.15);
}
.bk-time-slot.selected {
    background: linear-gradient(135deg, var(--bk-accent), #AA8A2A);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px rgba(212,175,55,0.35);
    transform: translateY(-2px);
}

/* Resumo lateral */
.bk-summary {
    position: sticky;
    top: 20px;
}
.bk-summary-card {
    background: #fff;
    border-radius: var(--bk-radius);
    padding: 18px;
    box-shadow: var(--bk-shadow);
    border: 1px solid var(--bk-border);
}
.bk-summary-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--bk-border);
}
.bk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--bk-border);
}
.bk-summary-row:last-child { border-bottom: none; }
.bk-summary-row span:first-child { color: var(--bk-muted); }
.bk-summary-row span:last-child { font-weight: 600; text-align: right; }
.bk-summary-total span:last-child {
    font-size: 1.15rem;
    color: var(--bk-accent);
    font-family: 'Poppins', sans-serif;
}
.bk-summary-divider {
    height: 1px;
    background: var(--bk-border);
    margin: 8px 0;
}
.bk-summary-hint {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed var(--bk-border);
    font-size: 12px;
    color: var(--bk-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.bk-summary-hint i { color: var(--bk-accent); }
.bk-perfil-modal { max-width: 420px; width: 100%; }
.bk-perfil-body { padding: 20px 24px 24px; }
.bk-perfil-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--bk-muted);
    text-decoration: none;
}
.bk-perfil-link:hover { color: var(--bk-accent); }
.bk-summary-empty { color: var(--bk-muted); font-size: 13px; text-align: center; padding: 20px 0; }

/* Formulário confirmação */
.bk-profile-strip {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--bk-primary), #2a2a2e);
    border-radius: 14px;
    color: #fff;
    margin-bottom: 22px;
}
.bk-profile-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--bk-accent);
    color: var(--bk-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.bk-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-profile-edit-btn {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s;
}
.bk-profile-edit-btn:hover { background: rgba(212,175,55,0.25); }
.bk-form-group { margin-bottom: 16px; }
.bk-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bk-text);
}
.bk-form-group input,
.bk-form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--bk-border);
    border-radius: 12px;
    font-size: 15px;
    background: var(--bk-bg);
    font-family: inherit;
}
.bk-form-group input:focus,
.bk-form-group textarea:focus {
    outline: none;
    border-color: var(--bk-accent);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

/* Botões navegação */
.bk-nav-btns {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}
.bk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    font-family: inherit;
}
.bk-btn-primary {
    flex: 1;
    background: linear-gradient(135deg, var(--bk-accent), #AA8A2A);
    color: #1C1C1E;
    box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.bk-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.4); }
.bk-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.bk-btn-ghost {
    background: var(--bk-bg);
    color: var(--bk-text);
    border: 1.5px solid var(--bk-border);
}

/* Sucesso */
.bk-success {
    text-align: center;
    padding: 20px 0;
}
.bk-success-icon {
    width: 88px; height: 88px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bk-accent), #AA8A2A);
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; color: #fff;
    animation: bkPop 0.5s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes bkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}
.bk-stars { display: flex; gap: 8px; justify-content: center; margin: 20px 0; }
.bk-stars .star {
    font-size: 36px; cursor: pointer;
    color: #E5E5EA; transition: all 0.2s;
}
.bk-stars .star.active, .bk-stars .star:hover { color: var(--bk-accent); transform: scale(1.1); }

/* Empty */
.bk-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--bk-muted);
}
.bk-empty i { font-size: 48px; opacity: 0.35; margin-bottom: 16px; display: block; }

/* Auth modal */
.bk-auth-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    z-index: 8000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.bk-auth-overlay.hidden { display: none; }
.bk-auth-box {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
    animation: bkFadeIn 0.35s ease;
}
.bk-auth-tabs {
    display: flex;
    background: #F2F2F7;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
}
.bk-auth-tab {
    flex: 1; padding: 10px;
    text-align: center; cursor: pointer;
    font-weight: 600; font-size: 14px;
    color: var(--bk-muted);
    border-radius: 10px;
    transition: all 0.2s;
}
.bk-auth-tab.active { background: #fff; color: var(--bk-text); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.bk-auth-panel { display: none; }
.bk-auth-panel.active { display: block; }
.bk-skip { text-align: center; margin-top: 16px; font-size: 13px; color: var(--bk-muted); }
.bk-skip a { color: var(--bk-accent); cursor: pointer; font-weight: 600; }

/* Chat FAB */
.bk-chat-fab {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bk-accent), #AA8A2A);
    color: #fff;
    border: none;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(212,175,55,0.4);
    z-index: 10050;
    transition: transform 0.2s;
}
.bk-chat-fab:hover { transform: scale(1.08); }
.bk-chat-panel {
    position: fixed;
    bottom: 92px; right: 24px;
    width: 340px; max-height: 420px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    z-index: 10051;
    overflow: hidden;
    border: 1px solid var(--bk-border);
}
.bk-chat-panel.bk-chat-open { display: flex; }
.bk-chat-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.bk-chat-head {
    background: linear-gradient(135deg, var(--bk-primary), #2a2a2e);
    color: #fff;
    padding: 14px 18px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600;
}
.bk-chat-body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.bk-chat-login-hint {
    padding: 20px 16px;
    text-align: center;
    background: var(--bk-bg);
    border-bottom: 1px solid var(--bk-border);
}
.bk-chat-login-hint i { font-size: 28px; color: var(--bk-muted); margin-bottom: 8px; display: block; }
.bk-chat-login-hint p { font-size: 13px; color: var(--bk-muted); margin-bottom: 12px; }
.bk-chat-msg { padding: 10px 14px; border-radius: 12px; max-width: 85%; font-size: 14px; line-height: 1.45; }
.bk-chat-msg.sent { background: var(--bk-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bk-chat-msg.recv { background: #F2F2F7; align-self: flex-start; border-bottom-left-radius: 4px; }
.bk-chat-msg-time { font-size: 10px; opacity: 0.65; margin-top: 4px; display: block; }
.bk-chat-foot { padding: 12px; border-top: 1px solid var(--bk-border); display: flex; gap: 8px; }
.bk-chat-foot input { flex: 1; padding: 10px 14px; border: 1px solid var(--bk-border); border-radius: 10px; font-size: 14px; }

/* Página agendar (lista barbearias) */
.agendar-page { min-height: 100vh; background: var(--bg, #F8F7F4); font-family: 'Inter', system-ui, sans-serif; }

.ag-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.65);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}
.ag-back-link:hover { color: #D4AF37; }

.agendar-hero {
    background: linear-gradient(135deg, #1C1C1E 0%, #2a2a2e 60%, #1a1a1c 100%);
    color: #fff;
    padding: clamp(40px, 8vw, 72px) 24px clamp(56px, 10vw, 88px);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.agendar-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.agendar-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 5vw, 2.8rem);
    margin-bottom: 12px;
    position: relative;
    letter-spacing: -0.02em;
}
.agendar-hero p {
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0 auto;
    font-size: clamp(14px, 2.5vw, 16px);
    position: relative;
    line-height: 1.6;
}

/* Gate — escolha de perfil (BarberPro) */
.agendar-page--gate {
    background: #121214;
    color: #F5F5F7;
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
}

.ag-gate {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ag-gate-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(212, 175, 55, 0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(212, 175, 55, 0.08), transparent 40%),
        linear-gradient(180deg, #161618 0%, #0d0d0f 100%);
    pointer-events: none;
}

.ag-gate-home {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    margin: 20px 20px 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.ag-gate-home:hover { color: #D4AF37; }

.ag-flash {
    position: relative;
    z-index: 2;
    width: min(560px, calc(100% - 40px));
    margin: 16px auto 0;
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    line-height: 1.45;
}
.ag-flash--error {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.35);
    color: #ffb3bc;
}
.ag-flash--success {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.35);
    color: #b8f0c8;
}
.ag-flash i { margin-top: 2px; flex-shrink: 0; }

.ag-gate-stage {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.ag-gate-stage--home {
    gap: 24px;
    align-items: stretch;
    text-align: center;
}

.ag-gate-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.ag-gate-mark {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(145deg, #1C1C1E, #0a0a0c);
    border: 1px solid rgba(212, 175, 55, 0.45);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.ag-gate-mark .bp-brand-logo {
    width: 100% !important;
    height: 100% !important;
}

.ag-gate-title {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.03em;
    color: #fff;
}

.ag-gate-lead {
    margin: 0;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
}

.ag-role-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.ag-role-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: left;
}
.ag-role-card:hover {
    border-color: rgba(212, 175, 55, 0.55);
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}
.ag-role-card--client:hover { box-shadow: 0 8px 32px rgba(212, 175, 55, 0.12); }
.ag-role-card--shop:hover { box-shadow: 0 8px 32px rgba(212, 175, 55, 0.08); }

.ag-role-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #C9A227, #E8C547);
    color: #1C1C1E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ag-role-icon--shop {
    background: linear-gradient(135deg, #2a2a2e, #1C1C1E);
    color: #D4AF37;
    border: 1px solid rgba(212, 175, 55, 0.35);
}
.ag-role-body { flex: 1; min-width: 0; }
.ag-role-body h2 {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
}
.ag-role-body p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.4;
}
.ag-role-arrow {
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    flex-shrink: 0;
    transition: color 0.2s, transform 0.2s;
}
.ag-role-card:hover .ag-role-arrow {
    color: #D4AF37;
    transform: translateX(3px);
}

.ag-gate-hint {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ag-gate-legal-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: inherit;
    margin-top: 4px;
}
.ag-gate-legal-btn:hover { color: #D4AF37; }

.ag-gate--auth .ag-gate-stage {
    max-width: 460px;
}

/* Card claro sobre fundo escuro — legível */
.ag-gate--auth .ag-auth-box {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    color: #1C1C1E;
}

.ag-gate--auth .ag-auth-head h2 {
    color: #1C1C1E;
    font-size: 1.35rem;
    line-height: 1.35;
    margin: 0 0 6px;
}

.ag-gate--auth .ag-auth-head p {
    color: #636366;
    font-size: 14px;
    line-height: 1.55;
}

.ag-gate--auth .ag-auth-back {
    color: #636366;
    background: #F2F2F7;
    border-color: #E5E5EA;
}

.ag-gate--auth .ag-auth-back:hover {
    color: #1C1C1E;
    border-color: #C9A227;
}

.ag-gate--auth .bk-auth-tabs {
    background: #F2F2F7;
    margin-bottom: 28px;
}

.ag-gate--auth .bk-auth-tab {
    color: #636366;
    font-size: 15px;
    padding: 12px 10px;
    text-decoration: none;
}

.ag-gate--auth .bk-auth-tab.active {
    color: #1C1C1E;
    background: #fff;
}

.ag-gate--auth .bk-form-group {
    margin-bottom: 20px;
}

.ag-gate--auth .bk-form-group label {
    color: #1C1C1E;
    font-size: 14px;
    margin-bottom: 8px;
}

.ag-gate--auth .bk-form-group input {
    background: #fff;
    border: 1.5px solid #E5E5EA;
    color: #1C1C1E;
    font-size: 16px;
    padding: 14px 16px;
    line-height: 1.4;
}

.ag-gate--auth .bk-form-group input::placeholder {
    color: #AEAEB2;
}

.ag-gate--auth .bk-form-group input:focus {
    border-color: #C9A227;
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.ag-gate--auth .pw-toggle {
    color: #636366;
}

.ag-gate--auth .lgpd-check,
.ag-gate--auth .lgpd-check span {
    color: #48484A;
    font-size: 13px;
    line-height: 1.55;
}

.ag-auth-foot {
    margin: 16px 0 0;
    text-align: center;
    font-size: 14px;
}

.ag-auth-foot a {
    color: #9A7B1A;
    text-decoration: none;
    font-weight: 600;
}

.ag-auth-foot a:hover {
    text-decoration: underline;
}

.ag-auth-note {
    margin: 14px 0 0;
    font-size: 13px;
    color: #636366;
    text-align: center;
    line-height: 1.55;
}

.ag-legal-inline {
    background: none;
    border: none;
    padding: 0;
    color: #C9A227;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ag-legal-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ag-legal-modal.open { display: flex; }
.ag-legal-dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(80vh, 520px);
    overflow-y: auto;
    background: #fff;
    color: #1C1C1E;
    border-radius: 16px;
    padding: 28px 24px 24px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.2);
}
.ag-legal-dialog h2 {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 16px;
}
.ag-legal-dialog h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 6px;
}
.ag-legal-dialog section + section { margin-top: 16px; }
.ag-legal-dialog p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #636366;
}
.ag-legal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #F2F2F7;
    color: #1C1C1E;
    cursor: pointer;
}

@media (max-width: 520px) {
    .ag-role-grid { grid-template-columns: 1fr; }
}

/* Auth box (login/cadastro) */
.ag-btn-full { width: 100%; margin-top: 8px; }
.ag-auth-box .pw-field input { padding-right: 44px; }
.ag-auth-box .lgpd-check { margin: 14px 0 6px; font-size: 12px; }
.ag-auth-box .lgpd-check a { color: #D4AF37; }

.ag-auth-box {
    background: #fff;
    border-radius: 16px;
    padding: clamp(22px, 4vw, 32px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid var(--border, #E5E5EA);
}
.ag-auth-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}
.ag-auth-back {
    width: 40px; height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border, #E5E5EA);
    background: #F8F7F4;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 14px;
    color: #1C1C1E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.ag-auth-head h2 {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.ag-auth-head p { font-size: 13px; color: #8E8E93; margin: 0; }
.ag-auth-panel { display: none; }
.ag-auth-panel.active { display: block; }

.ag-shops-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto 16px;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
}

/* Lista de barbearias — limpa */
.agendar-page--shops {
    background: var(--bg, #F8F7F4);
    color: var(--ink, #1C1C1E);
    font-family: var(--font-body, 'Inter', system-ui, sans-serif);
    min-height: 100vh;
}

.ag-shops {
    position: relative;
    min-height: 100vh;
}

.ag-shops-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
    max-width: 1040px;
    margin: 0 auto;
}

.ag-shops .ag-gate-home {
    margin: 0;
    color: #8E8E93;
}
.ag-shops .ag-gate-home:hover { color: #C9A227; }

.ag-shops .ag-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border, #E5E5EA);
    border-radius: 999px;
    padding: 5px 10px 5px 5px;
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 500;
}
.ag-shops .ag-chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #C9A227, #E8C547);
    color: #1C1C1E;
    font-size: 11px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ag-shops .ag-user-config {
    color: #8E8E93;
    padding: 4px;
}
.ag-shops .ag-user-config:hover { color: #C9A227; }
.ag-shops .ag-logout-inline button { color: #8E8E93; }
.ag-shops .ag-logout-inline button:hover { color: #C9A227; }

.ag-shops-intro {
    margin-bottom: 20px;
}
.ag-shops-intro h1 {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1C1C1E;
}
.ag-shops-lead {
    margin: 0;
    font-size: 14px;
    color: #8E8E93;
}

.ag-shops-body {
    max-width: 1040px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.ag-shops-toolbar { margin-bottom: 8px; }
.ag-shops-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}
.ag-shops-search-wrap {
    position: relative;
    flex: 1;
    margin-bottom: 0;
}
.ag-shops-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #8E8E93;
    font-size: 14px;
    pointer-events: none;
}
.ag-shops-search {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid var(--border, #E5E5EA);
    border-radius: 12px;
    font-size: 14px;
    background: #fff;
    color: #1C1C1E;
    font-family: inherit;
}
.ag-shops-search:focus {
    outline: none;
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
}
.ag-search-submit {
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    background: linear-gradient(135deg, #E8C547, #C9A227);
    color: #1C1C1E;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.ag-shops-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.ag-filter-btn {
    border: 1px solid var(--border, #E5E5EA);
    background: #fff;
    color: #636366;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
}
.ag-filter-btn:hover,
.ag-filter-btn.active {
    border-color: rgba(212,175,55,0.45);
    background: rgba(212,175,55,0.1);
    color: #1C1C1E;
}

.ag-shops-count {
    margin: 16px 0 12px;
    font-size: 13px;
    color: #8E8E93;
}

.ag-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 14px;
}
.ag-shop-card {
    background: #fff;
    border-radius: 14px;
    padding: 0;
    border: 1px solid var(--border, #E5E5EA);
    transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    position: relative;
    overflow: hidden;
}
.ag-shop-cover {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #1C1C1E;
    position: relative;
}
.ag-shop-rating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.ag-shop-rating i { color: #FFD60A; font-size: 10px; }
.ag-shop-rating small { font-weight: 500; opacity: 0.85; }
.ag-shop-open-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #34C759;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 999px;
}
.ag-shop-card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ag-shop-card:hover {
    border-color: rgba(212,175,55,0.45);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ag-shop-card-head {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    margin-top: -30px;
    position: relative;
    z-index: 1;
}
.ag-shop-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D4AF37;
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.ag-shop-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ag-shop-name {
    font-family: var(--font-head, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 4px;
    color: #1C1C1E;
}
.ag-shop-desc {
    font-size: 13px;
    color: #8E8E93;
    line-height: 1.45;
    margin: 0 0 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ag-shop-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #8E8E93;
    margin-bottom: 4px;
}
.ag-shop-meta i { color: #D4AF37; font-size: 11px; }
.ag-shop-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #F2F2F7;
}
.ag-shop-cta {
    font-size: 13px;
    font-weight: 700;
    color: #C9A227;
}
.ag-shop-arrow {
    color: #8E8E93;
    font-size: 12px;
}

.ag-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}
.ag-pager-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border, #E5E5EA);
    background: #fff;
    color: #1C1C1E;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.ag-pager-btn:hover { border-color: rgba(212,175,55,0.45); color: #C9A227; }
.ag-pager-btn.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}
.ag-pager-info {
    font-size: 13px;
    color: #8E8E93;
    font-weight: 600;
}

.ag-shops-empty {
    background: #fff !important;
    border: 1px solid var(--border, #E5E5EA);
    color: #636366;
}
.ag-shops-empty h3 { color: #1C1C1E; }

.ag-conta-wrap { max-width: 860px; margin: 0 auto; }
.ag-conta-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8E8E93;
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 16px;
}
.ag-conta-back:hover { color: #C9A227; }
.ag-conta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 14px;
}
.ag-conta-card {
    background: #fff;
    color: #1C1C1E;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--border, #E5E5EA);
}
.ag-conta-card h3 {
    font-size: 1rem;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-conta-card > p {
    font-size: 13px;
    color: #8E8E93;
    margin: 0 0 16px;
}
.ag-conta-portal {
    text-align: center;
    margin-top: 20px;
}
.ag-conta-portal a {
    color: #8E8E93;
    font-size: 13px;
}
.ag-conta-portal a:hover { color: #C9A227; }

@media (max-width: 640px) {
    .ag-shops-search-row { flex-direction: column; }
    .ag-search-submit { padding: 12px 18px; }
    .ag-shops .ag-user-name { display: none; }
}

/* Legado — hero antigo */
.ag-shops-hero {
    position: relative;
    padding: clamp(28px, 5vw, 48px) 24px clamp(72px, 12vw, 104px);
    text-align: center;
    overflow: hidden;
    background: #1C1C1E;
}
.ag-shops-hero-bg { display: none; }
.ag-shops-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}
.ag-shops-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    text-align: left;
    gap: 12px;
    flex-wrap: wrap;
}
.ag-shops-topbar .ag-back-link { margin-bottom: 0; }

.ag-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(28,28,30,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #D4AF37;
}

.ag-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}
.ag-chip-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #D4AF37;
    color: #1C1C1E;
    font-size: 11px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.ag-user-chip button {
    background: none; border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer; font-size: 16px;
    margin-left: 4px;
}
.ag-chip-guest { display: inline-flex; align-items: center; gap: 6px; }

.agendar-grid-wrap {
    max-width: 960px;
    margin: -40px auto 60px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.ag-empty-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.agendar-search {
    width: 100%;
    padding: 16px 20px 16px 48px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    margin-bottom: 24px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%238E8E93' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") 16px center / 20px no-repeat;
}
.agendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}
.agendar-shop-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}
.agendar-shop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    border-color: var(--shop-accent, rgba(212,175,55,0.5));
}
.agendar-shop-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1C1C1E, var(--shop-accent, #D4AF37));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 24px;
    margin-bottom: 16px;
}
.agendar-shop-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.agendar-shop-desc { font-size: 13px; color: #8E8E93; margin-bottom: 12px; line-height: 1.5; flex: 1; }
.agendar-shop-addr { font-size: 12px; color: #8E8E93; margin-bottom: 12px; }
.agendar-shop-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--shop-accent, #D4AF37);
    font-weight: 600;
    font-size: 14px;
    margin-top: auto;
}

@media (max-width: 900px) {
    .bk-layout { grid-template-columns: 1fr; margin-top: 16px; }
    .bk-summary { position: static; order: -1; }
    .bk-stepper-wrap { padding: 16px 12px 14px; }
    .bk-step-circle { width: 36px; height: 36px; font-size: 14px; }
    .bk-step-label { font-size: 9px; max-width: 56px; }
    .bk-step-header { gap: 12px; }
    .bk-step-header-icon { width: 44px; height: 44px; font-size: 18px; }
    .bk-barber-card { padding: 14px; gap: 12px; }
    .bk-barber-avatar { width: 52px; height: 52px; font-size: 18px; }
    .bk-barber-name { font-size: 15px; }
    .bk-chat-panel { width: calc(100% - 32px); right: 16px; left: 16px; bottom: 80px; }
    .bk-hero { padding: 24px 16px 40px; }
    .bk-hero h1 { font-size: 1.65rem; }
    .bk-hero-meta { gap: 12px; }
    .bk-card { padding: 20px 16px; border-radius: 16px; }
    .bk-barbers-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
    .bk-barber-card { padding: 18px 12px; }
    .bk-barber-avatar { width: 60px; height: 60px; font-size: 20px; }
    .bk-times-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
    .bk-nav-btns { flex-direction: column-reverse; }
    .bk-btn { width: 100%; }
    .agendar-grid-wrap { margin-top: -32px; padding: 0 16px; }
    .agendar-grid { grid-template-columns: 1fr; }
    .ag-shops-topbar { flex-direction: column; align-items: stretch; }
    .ag-shops-topbar .ag-user-chip { align-self: flex-end; }
    .ag-shops-body { margin-top: -40px; padding: 0 16px; }
    .ag-shops-grid { grid-template-columns: 1fr; }
    .ag-shops-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* Temas de design */
.booking-page.tema-moderno .bk-hero::after {
    background: radial-gradient(circle, rgba(59,130,246,0.3) 0%, transparent 70%);
}
.booking-page.tema-minimalista .bk-hero {
    background: linear-gradient(135deg, var(--bk-primary) 0%, #3f3f46 100%);
}
.booking-page.tema-premium .bk-hero::after {
    background: radial-gradient(circle, rgba(201,162,39,0.35) 0%, transparent 70%);
}
.booking-page.tema-noturno {
    --bk-card: #1e1e1e;
    --bk-border: rgba(255,255,255,0.1);
}
.booking-page.tema-noturno .bk-card { background: var(--bk-card); }

/* ============================================================
   SÍMBOLOS DOURADOS — agendamento BarberPro
   Ícones não herdam azul/cor custom da barbearia
   ============================================================ */
.booking-page,
.agendar-page {
    --bp-gold: #D4AF37;
    --bp-gold-dark: #C9A227;
    --bp-gold-light: #E8C547;
    --bp-gold-muted: #AA8A2A;
}

.booking-page .bk-hero-badge {
    color: var(--bp-gold);
    background: rgba(212, 175, 55, 0.15);
    border-color: rgba(212, 175, 55, 0.35);
}
.booking-page .bk-hero-meta i,
.booking-page .bk-summary-title i,
.booking-page .bk-step-header-icon,
.booking-page .bk-step-header-icon i {
    color: var(--bp-gold);
}
.booking-page .bk-back:hover { color: var(--bp-gold); }
.booking-page .bk-stepper-fill {
    background: linear-gradient(90deg, var(--bp-gold), var(--bp-gold-muted));
}
.booking-page .bk-step-item.active .bk-step-circle {
    background: linear-gradient(135deg, var(--bp-gold-dark), var(--bp-gold-light));
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}
.booking-page .bk-step-item.done .bk-step-circle {
    border-color: var(--bp-gold);
    color: var(--bp-gold);
}
.booking-page .bk-step-item.done .bk-step-label { color: var(--bp-gold-muted); }
.booking-page .bk-barber-card.selected { border-color: var(--bp-gold); }
.booking-page .bk-barber-card::before { background: var(--bp-gold); }
.booking-page .bk-barber-avatar {
    background: linear-gradient(135deg, var(--bk-primary), var(--bp-gold));
}
.booking-page .bk-barber-badge { color: var(--bp-gold-muted); }
.booking-page .bk-barber-card.selected .bk-barber-check {
    background: var(--bp-gold);
    border-color: var(--bp-gold);
}
.booking-page .bk-success-icon,
.booking-page .bk-chat-fab {
    background: linear-gradient(135deg, var(--bp-gold-dark), var(--bp-gold-light));
}
.booking-page .bk-stars .star.active,
.booking-page .bk-stars .star:hover { color: var(--bp-gold); }
.booking-page .bk-auth-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bp-gold-dark), var(--bp-gold-light));
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

.agendar-page .agendar-shop-icon {
    background: linear-gradient(135deg, #1C1C1E, var(--bp-gold));
}
.agendar-page .agendar-shop-btn,
.agendar-page .agendar-shop-btn i,
.agendar-page .agendar-shop-addr i {
    color: var(--bp-gold-muted);
}
.agendar-page .agendar-shop-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
}
@media (max-width: 480px) {
    .bk-step-label { display: none; }
    .bk-step-item { gap: 0; }
    .bk-service-card { flex-direction: column; align-items: flex-start; gap: 10px; }
    .bk-service-price { font-size: 1.1rem; }
    .bk-profile-strip { flex-wrap: wrap; }
    .bk-chat-fab { bottom: 16px; right: 16px; width: 52px; height: 52px; }
    .ag-auth-box { padding: 20px 16px; border-radius: 18px; }
}

/* /agendar — fluxo PHP */
.ag-flash {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: min(92vw, 480px);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    animation: bkFadeIn 0.3s ease;
}
.ag-flash--success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.ag-flash--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
a.bk-auth-tab,
a.ag-filter-btn,
a.ag-auth-back {
    text-decoration: none;
    display: inline-flex;
}
a.bk-auth-tab { display: block; }
.ag-logout-inline {
    display: inline;
    margin: 0;
    padding: 0;
}
.ag-logout-inline button {
    background: none;
    border: none;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
    padding: 0 0 0 6px;
    line-height: 1;
    opacity: 0.75;
}
.ag-logout-inline button:hover { opacity: 1; }
.ag-shops-toolbar form,
.ag-shops-toolbar {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.ag-search-submit {
    align-self: flex-start;
    margin-top: 12px;
    padding: 10px 20px;
    font-size: 14px;
}
.ag-auth-form.ag-auth-panel.active { display: block; }

.ag-user-config {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 6px;
    border-radius: 8px;
    color: inherit;
    opacity: 0.85;
    transition: opacity 0.2s, background 0.2s;
}
.ag-user-config:hover {
    opacity: 1;
    background: rgba(255,255,255,0.15);
}
.ag-conta-wrap { max-width: 960px; margin: 0 auto; }
.ag-conta-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #636366;
    text-decoration: none;
    margin-bottom: 20px;
}
.ag-conta-back:hover { color: #1C1C1E; }
.ag-conta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.ag-conta-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.ag-conta-card h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.ag-conta-card h3 i { color: #D4AF37; }
.ag-conta-card > p {
    font-size: 13px;
    color: #8E8E93;
    margin-bottom: 18px;
}
.ag-conta-portal {
    margin-top: 24px;
    text-align: center;
    font-size: 14px;
}
.ag-conta-portal a {
    color: #AA8A2A;
    font-weight: 600;
    text-decoration: none;
}
.ag-conta-portal a:hover { text-decoration: underline; }

/* === Booking page refresh === */
.booking-page {
    background: linear-gradient(180deg, var(--bk-bg) 0%, #e8e5df 100%);
}
.bk-auth-overlay {
    backdrop-filter: blur(12px);
    background: rgba(28, 28, 30, 0.72) !important;
}
.bk-auth-box {
    border-radius: 24px !important;
    box-shadow: 0 32px 80px rgba(0,0,0,0.35) !important;
    max-width: 420px;
    width: calc(100% - 32px);
}
.bk-hero--cover { min-height: 240px; }
.bk-hero h1 { text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.bk-summary-card {
    background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
    border-radius: 18px;
    padding: 22px;
    border: 1px solid var(--bk-border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
    position: sticky;
    top: 16px;
}
.bk-card {
    border-radius: 22px;
    padding: clamp(20px, 4vw, 32px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}
.bk-stepper-wrap {
    border-radius: 18px;
    margin-bottom: 20px;
}
.bk-barber-card,
.bk-service-card {
    border-radius: 12px;
}
.bk-mobile-summary {
    display: none;
    grid-column: 1 / -1;
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    border: 1px solid var(--bk-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    margin-bottom: 4px;
    gap: 12px;
}
.bk-mobile-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}
.bk-mobile-summary-row span { color: var(--bk-muted); }
.bk-mobile-summary-row strong { color: var(--bk-text); }
@media (max-width: 900px) {
    .bk-mobile-summary { display: grid; }
    .bk-summary { display: none; }
    .bk-layout { margin-top: 16px; padding-bottom: 88px; }
    .bk-step-label { display: none; }
    .bk-stepper { gap: 0; }
}
@media (max-width: 480px) {
    .bk-chat-fab { bottom: 16px; right: 16px; }
    .bk-step-circle { width: 32px; height: 32px; font-size: 12px; }
}

/* Skeleton loading */
@keyframes bk-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.bk-skeleton {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: bk-shimmer 1.2s ease-in-out infinite;
    border-radius: 10px;
}
.bk-skeleton--avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.bk-skeleton--line { height: 14px; margin-bottom: 8px; }
.bk-skeleton--line.short { width: 60%; }
.bk-skeleton-wrap { padding: 40px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bk-skeleton-card { display: flex; gap: 14px; padding: 16px; border: 1px solid var(--bk-border); border-radius: var(--bk-radius); margin-bottom: 10px; }

/* Summary timeline */
.bk-summary-timeline { display: flex; flex-direction: column; gap: 0; margin: 8px 0; }
.bk-tl-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-left: 2px solid var(--bk-border); margin-left: 15px; padding-left: 18px;
    position: relative; opacity: 0.55; transition: opacity 0.25s;
}
.bk-tl-item:last-child { border-left-color: transparent; }
.bk-tl-item--done { opacity: 1; }
.bk-tl-item--done .bk-tl-icon { background: var(--bk-accent); color: #1C1C1E; }
.bk-tl-icon {
    position: absolute; left: -16px; top: 10px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--bk-border); color: var(--bk-muted);
    display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.bk-tl-label { display: block; font-size: 11px; color: var(--bk-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.bk-tl-value { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.bk-tl-avatar {
    width: 28px; height: 28px; border-radius: 50%; overflow: hidden;
    background: var(--bk-primary); color: #fff; font-size: 11px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bk-tl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bk-tl-avatar.hidden { display: none; }

/* Step slide-in */
.bk-step--enter { animation: bk-slide-in 0.35s ease-out; }
@keyframes bk-slide-in {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Barber badges & occupied slots */
.bk-barber-badge {
    display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 600;
    padding: 2px 8px; border-radius: 999px; background: rgba(255,59,48,0.12); color: #c62828;
}
.bk-time-slot.disabled {
    opacity: 0.45; pointer-events: none; text-decoration: line-through;
    background: #f0f0f0; border-style: dashed;
}
.bk-time-slot small { display: block; font-size: 9px; font-weight: 500; opacity: 0.7; }

/* Offline modal */
.bk-offline-modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 24px;
}
.bk-offline-modal.hidden { display: none; }
.bk-offline-dialog {
    background: #fff; border-radius: 20px; padding: 32px 28px; max-width: 380px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.bk-offline-icon {
    width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%;
    background: rgba(255,59,48,0.1); color: #c62828; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.bk-offline-dialog h3 { margin: 0 0 8px; font-size: 1.15rem; }
.bk-offline-dialog p { color: var(--bk-muted); font-size: 14px; line-height: 1.5; margin: 0 0 20px; }
.bk-offline-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bk-offline-actions .bk-btn-ghost {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bk-hero-title { font-family: var(--bk-font, Poppins, sans-serif); font-size: 1.5rem; margin: 0; color: #fff; }
.bk-hero-desc { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,0.75); max-width: 480px; }
