@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* CONTAINER */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px;
}

/* HEADER */
.header {
    background: #2563eb;
    color: #ffffff;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-size: 14px;
}

/* BOTÕES */
.btn {
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #2563eb;
    color: #ffffff;
}

.btn-dark {
    background: #ffffff;
    color: #2563eb;
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

/* GRID */
.grid {
    display: grid;
    gap: 20px;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

/* Grid dos cards de serviço da home/dashboard — 1 por linha no mobile */
.grid-stack-mobile {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
    .grid-stack-mobile {
        grid-template-columns: 1fr;
    }
}

/* CARD */
.card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* BADGE */
.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.badge-confirmed {
    background: #22c55e;
    color: white;
}

.badge-cancelled {
    background: #ef4444;
    color: white;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

/* SECTION */
.section {
    margin-top: 40px;
}

.section-title {
    font-size: 22px;
    margin-bottom: 20px;
}

/* TEXT */
.text-muted {
    color: #64748b;
}

/* FOOTER */
.footer {
    margin-top: 50px;
    padding: 20px;
    text-align: center;
    background: #2563eb;
    color: white;
}

.nav-actions {
  display: flex;
  gap: 10px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-modern:hover {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-1px);
}

.btn-modern:active {
    transform: translateY(0);
}

.card-agenda {
    position: relative;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid transparent;
    border-radius: 8px;
    padding: 14px;
}

.card-agenda.status-confirmed {
    border-left: 4px solid #22c55e;
}

.card-agenda.status-cancelled {
    border-left: 4px solid #ef4444;
}

.card-agenda.status-pending {
    border-left: 4px solid #facc15;
}

.badge.status-confirmed {
    background: #22c55e;
    color: white;
}

.badge.status-cancelled {
    background: #ef4444;
    color: white;
}

.badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge.status-completed {
    background: #2563eb;
    color: white;
}

.date-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.date-pill {
    flex: 1;
    min-width: 70px;
    text-align: center;
    padding: 8px 4px;
    border-radius: 16px;
    border: none;
    color: #94a3b8;
    text-decoration: none;
    cursor: pointer;
}

.date-pill:hover {
    background: #f8fafc;
}

.date-pill .dow {
    font-size: 11px;
}

.date-pill .dnum {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.date-pill.active {
    background: #eff6ff;
}

.date-pill.active .dow {
    color: #2563eb;
}

.date-pill.active .dnum {
    color: #2563eb;
    font-weight: bold;
}

.date-pill.active {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
    font-weight: 700;
}

.date-pill.active .dow {
    color: #fff;
    opacity: 0.85;
}

.date-pill.active .dnum {
    color: #fff;
}

.date-carousel-wrapper {
    margin-bottom: 20px;
}

.date-carousel-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    text-transform: capitalize;
    margin-bottom: 8px;
    padding: 4px 8px 4px 4px;
    border-radius: 6px;
    cursor: pointer;
}

.date-carousel-label:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.date-carousel-label .picker-icon {
    font-size: 14px;
}

.date-carousel-label input[type="date"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.date-carousel {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
}

.date-pill-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
    background: #f1f5f9;
    color: #94a3b8;
}


/* ── Serviços ── */
.services-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0 1rem;
}

.services-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

.count-badge {
    background: #1e293b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.services-col-headers {
    display: grid;
    grid-template-columns: 1fr 130px 130px 88px;
    gap: 0 12px;
    padding: 0 1.25rem 6px;
}

.services-col-headers span {
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.services-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.service-card {
    display: grid;
    grid-template-columns: 60px 1fr 130px 130px 88px;
    gap: 0 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    transition: border-color .15s, box-shadow .15s;
}

.service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-card input {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color .15s, background .15s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}

.service-card input:focus {
    background: #fff;
    border-color: #2563eb;
}

.service-card input::-webkit-inner-spin-button,
.service-card input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

.service-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.btn-save-inline {
    width: 36px;
    height: 36px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
}

.btn-save-inline:hover { background: #1d4ed8; }

.btn-remove {
    width: 36px;
    height: 36px;
    background: transparent;
    color: #cbd5e1;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
    flex-shrink: 0;
}

.btn-remove:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

.services-empty {
    text-align: center;
    color: #94a3b8;
    font-size: 0.95rem;
    padding: 2rem 0;
}

/* ── Novo serviço ── */
.new-service-section {
    border-top: 1.5px dashed #e2e8f0;
    padding-top: 1.5rem;
}

.new-service-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 0.75rem;
}

.service-card--new {
    border-style: dashed;
    border-color: #e2e8f0;
    background: #f8fafc;
}

.service-card--new:hover {
    border-color: #2563eb;
    background: #fff;
}

.btn-save {
    width: 100%;
    height: 36px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background .15s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    white-space: nowrap;
}

.btn-save:hover { background: #1d4ed8; }


/* ═══════════════════════════════════════════════════════
   PERFIL DA LOJA
   ═══════════════════════════════════════════════════════ */

.shop-profile-header {
    display: flex;
    align-items: center;
    padding: 1.5rem 0 1.25rem;
}

.shop-profile-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e293b;
}

/* ── Layout duas colunas ─────────────────────────────── */
.shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
    padding-bottom: 3rem;
}

/* ── Sidebar ─────────────────────────────────────────── */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Card do logo */
.shop-logo-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: center;
}

.shop-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.shop-logo-img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.shop-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.shop-logo-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.shop-logo-city {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 14px;
}

.shop-logo-form {
    display: flex;
    justify-content: center;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-upload:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

/* Cards de info (barbeiros / serviços) */
.shop-info-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.shop-info-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

/* Linha de barbeiro */
.barber-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.barber-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.barber-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.barber-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.barber-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.barber-spec {
    font-size: 0.75rem;
    color: #64748b;
}

/* Linha de serviço */
.service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
}

.service-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.service-row-name {
    font-size: 0.88rem;
    color: #1e293b;
}

.service-row-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    font-size: 0.75rem;
    color: #94a3b8;
}

.service-price {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2563eb;
}

.shop-empty {
    font-size: 0.85rem;
    color: #94a3b8;
    text-align: center;
    padding: 0.75rem 0;
}

/* ── Formulário principal ─────────────────────────────── */
.shop-form-card {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    padding: 1.75rem;
}
.shop-form-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.shop-field {
    margin-bottom: 1rem;
    flex: 1;
}

.shop-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px;
}

.shop-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}

.shop-input:focus {
    background: #fff;
    border-color: #2563eb;
}

.shop-textarea {
    height: auto;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.5;
}

/* Linha com múltiplos campos */
.shop-field-row {
    display: flex;
    gap: 12px;
}

.shop-field--sm {
    max-width: 100px;
    flex: 0 0 100px;
}

/* Footer do form */
.shop-form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.5rem;
}

.btn-save-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    height: 44px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

.btn-save-shop:hover {
    background: #1d4ed8;
}

/* ── Card de dia (agenda) ── */
.day-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
}

.day-card-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #64748b;
}

.day-card-times {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* ── Alertas ── */
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* ── Seleção de tipo (role) ── */
.role-select {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
}

.role-btn {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem 1rem;
    background: #94a3b8;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.15s;
}

.role-btn:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,0.25);
}

.role-btn input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.role-btn.active {
    background: #2563eb;
}

.role-btn:hover {
    background: #64748b;
}

.role-btn.active:hover {
    background: #2563eb;
}

/* ── Seleção de serviço ── */
.service-select-wrapper {
    margin-bottom: 1.5rem;
}

.service-select {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.service-pill {
    flex: 0 0 84px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: border-color 0.15s, background 0.15s;
}

.service-pill:hover {
    border-color: #cbd5e1;
    background: #fff;
}

.service-pill-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.service-pill-meta {
    font-size: 0.7rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.service-pill.active {
    border-color: #2563eb;
    background: #eff6ff;
}

.service-pill.active .service-pill-name {
    color: #2563eb;
}

.service-pill.active .service-pill-meta {
    color: #2563eb;
}

/* ── Tabela de barbeiros ── */
.barbers-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.barbers-table th {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.barbers-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    color: #1e293b;
    vertical-align: middle;
}

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

.barbers-table td:nth-child(1),
.barbers-table td:nth-child(2),
.barbers-table td:nth-child(3) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.barbers-table-actions {
    white-space: nowrap;
    text-align: left;
    overflow: visible;
}

.barbers-table-actions .inline-form {
    display: inline-block;
    margin: 0;
}

.btn-edit-barber,
.btn-disable-barber,
.btn-enable-barber,
.btn-reset-password,
.btn-cancel {
    display: inline-block;
    width: 100px;
    text-align: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-edit-barber {
    margin-right: 6px;
    background-color: #eef2ff;
    color: #3730a3;
}

.btn-disable-barber {
    background-color: #fdeaea;
    color: #b91c1c;
}

.btn-enable-barber {
    background-color: #e6f7ed;
    color: #1a7f37;
}

.inline-form {
    display: inline-block;
    margin: 0;
}

/* ── Status (badges) ── */
.badge-active,
.badge-inactive {
    display: inline-block;
    min-width: 60px;
    text-align: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-active {
    background-color: #e6f7ed;
    color: #1a7f37;
}

.badge-inactive {
    background-color: #fdeaea;
    color: #b91c1c;
}

/* ── Botões de ação (editar/desabilitar/reset) ── */
.btn-edit-barber,
.btn-disable-barber,
.btn-enable-barber,
.btn-reset-password,
.btn-cancel {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    text-decoration: none;
    margin-left: 6px;
}

.btn-edit-barber {
    background-color: #eef2ff;
    color: #3730a3;
}

.btn-disable-barber {
    background-color: #fdeaea;
    color: #b91c1c;
}

.btn-enable-barber {
    background-color: #e6f7ed;
    color: #1a7f37;
}

.btn-reset-password {
    background-color: #fff7e6;
    color: #92620a;
}

.btn-cancel {
    background-color: #f3f4f6;
    color: #374151;
}

.shop-divider {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 24px 0;
}

.service-fields{
    display:none;
    margin-top:15px;
    margin-left:30px;
    gap:16px;
}

.service-fields.is-visible{
    display:flex;
}

.service-fields > div{
    flex:1;
}

.service-fields label{
    display:block;
    margin-bottom:5px;
    font-size:13px;
    font-weight:600;
    color:#475569;
}

.service-fields input{
    width:100%;
    height:38px;
    padding:0 12px;
    border:1px solid #dbe2ea;
    border-radius:8px;
    background:#f8fafc;
}


/* ─── Botão secundário (ex: "Serviços por barbeiro") ─────────────── */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
    color: #222;
}

/* ─── Lista de barbeiros (tela "Serviços por barbeiro") ──────────── */
.barber-service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.barber-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 10px;
}

.barber-service-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.barber-service-count {
    font-size: 13px;
    color: #777;
}

/* ─── Item de serviço (tela de vínculo barbeiro↔serviço) ─────────── */
.service-item-label{
    display:flex;
    align-items:flex-start;
    gap:10px;
    cursor:pointer;
}

.service-item-label input[type="checkbox"]{
    margin-top:3px;
    flex-shrink:0;
}

.service-item-label strong{
    display:block;
    font-size:15px;
    color:#1e293b;
}

.service-item-default{
    display:block;
    margin-top:3px;
    font-size:13px;
    color:#64748b;
}

.service-item-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-item-default {
    color: #777;
}

.service-fields {
    margin-top: 8px;
    margin-left: 26px;
    gap: 16px;
    display: none;
}

.service-fields.is-visible {
    display: flex;
}

.shop-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.shop-header-name {
    font-weight: 600;
}

.shop-header-change {
    font-size: 0.9rem;
    color: #555;
    text-decoration: underline;
}

/* Cabeçalho da página */
.page-header {
    margin-bottom: 24px;
}

.page-subtitle {
    color: #777;
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Barra de busca */
.shop-search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 28px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.shop-search-input-wrapper {
    flex: 1 1 260px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    border-radius: 8px;
    padding: 10px 14px;
}

.shop-search-icon {
    font-size: 0.9rem;
    opacity: 0.6;
}

.shop-search-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
}

.shop-search-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-search-primary,
.btn-search-secondary {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.btn-search-primary {
    background: #1a1a1a;
    color: #fff;
}

.btn-search-primary:hover {
    background: #333;
}

.btn-search-secondary {
    background: #f0f0f0;
    color: #333;
}

.btn-search-secondary:hover {
    background: #e2e2e2;
}

.btn-search-secondary:disabled {
    opacity: 0.6;
    cursor: default;
}

.btn-secondary {
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e2e2e2;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: default;
}

/* Cards de loja */
.shop-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.shop-card {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
}

.shop-card-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.shop-card-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
    min-width: 0;
}

.shop-card-info {
    min-width: 0; 
}

.shop-card .service-pill-meta {
    white-space: normal;     
    overflow: visible;
    text-overflow: unset;
}

.shop-card-distance {
    font-size: 0.8rem;
    color: #1a7f3c;
    font-weight: 500;
}

.shop-card-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border-radius: 8px;
    background: #f0f0f0;
    overflow: hidden;
}

.shop-card-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-card-address,
.shop-card-location {
    font-size: 0.7rem;
    color: #94a3b8;
    display: block;
}

/* ==========================================================================
   SECRETARIA
   ========================================================================== */

.secretary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.secretary-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.secretary-select,
.secretary-date {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

/* Timeline da agenda */
.secretary-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.timeline-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    border: 1px solid #e0e7ff;
    border-left: 4px solid #94a3b8;
    box-shadow: 0 1px 4px rgba(79, 70, 229, 0.06);
    transition: box-shadow .15s, transform .15s;
    position: relative;
}

.timeline-slot:hover {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.12);
    transform: translateY(-1px);
}

.timeline-slot.status-pending {
    border-left-color: #facc15;
}

.timeline-slot.status-confirmed {
    border-left-color: #22c55e;
}

.timeline-slot.status-completed {
    border-left-color: #2563eb;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.timeline-slot.status-cancelled {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, #f8fafc 0%, #fef2f2 100%);
    opacity: 0.85;
}

.timeline-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.timeline-time {
    font-weight: 600;
    min-width: 110px;
}

.timeline-busy {
    background: #fff4e5;
    border-color: #ffcf8f;
}

.timeline-free {
    background: #f4f9f4;
    border-color: #cfe8cf;
    color: #6b8f6b;
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.timeline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Tabelas (listagem de secretárias, painel do dia) */
.secretary-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}

.secretary-table th,
.secretary-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.secretary-table th {
    background: #fafafa;
    font-weight: 600;
}

.secretary-table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Painel do dia (dashboard) */
.secretary-dashboard-barber {
    margin-bottom: 20px;
}

.secretary-dashboard-barber h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* Modal de novo agendamento (dentro da agenda) */
#modal-novo-agendamento {
    margin-top: 20px;
}

#modal-novo-agendamento label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

#modal-novo-agendamento input,
#modal-novo-agendamento select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#resultado-busca-cliente {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 6px;
    max-height: 160px;
    overflow-y: auto;
}

#resultado-busca-cliente li {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
}

#resultado-busca-cliente li:hover {
    background: #f7f7f7;
}

#resultado-busca-cliente li:last-child {
    border-bottom: none;
}

.time-slot-selected {
    border-color: var(--primary, #1a1a1a);
    background-color: rgba(0, 0, 0, 0.06);
    font-weight: bold;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 8px 0;
    min-width: 160px;
    z-index: 20;
}

.nav-dropdown-menu a {
    display: block;
    padding: 8px 16px;
    color: #1e293b;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: #f1f5f9;
}

.nav-dropdown.nav-dropdown-open .nav-dropdown-menu {
    display: block;
}

/* Classe base de input (usada em login/registro) */
.input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 16px; /* evita zoom automático no iOS ao focar */
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    box-sizing: border-box;
}

.input:focus {
    background: #fff;
    border-color: #2563eb;
}

/* ===== Auth (login/registro) ===== */
.auth-wrapper {
    max-width: 420px;
    margin: 60px auto;
    padding: 0 20px;
}

.auth-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
}

.auth-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-field {
    margin-bottom: 18px;
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.auth-field .input {
    width: 100%;
    box-sizing: border-box;
}

.auth-submit {
    width: 100%;
    font-weight: 600;
    margin-top: 6px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: #64748b;
}

.auth-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.auth-link:hover {
    text-decoration: underline;
}

.lunch-fields.is-hidden {
    display: none;
}

.report-filter-form { margin-bottom: 20px; }
.report-filter-row { display: flex; gap: 15px; align-items: flex-end; flex-wrap: wrap; }
.report-filter-row label { display: block; font-size: 0.85rem; margin-bottom: 4px; }
.report-filter-row input[type="date"],
.report-filter-row select { padding: 8px; border-radius: 6px; border: 1px solid #ccc; font-size: 0.95rem; font-family: 'Segoe UI', Tahoma, sans-serif; }

.report-summary-cards { display: flex; gap: 15px; margin: 20px 0; flex-wrap: wrap; }
.report-card { background: #f7f7f7; border-radius: 8px; padding: 15px 20px; flex: 1; min-width: 180px; }
.report-card-label { display: block; font-size: 0.85rem; color: #666; }
.report-card-value { display: block; font-size: 1.5rem; font-weight: bold; margin-top: 5px; }

.report-table { width: 100%; border-collapse: collapse; margin-bottom: 25px; }
.report-table th, .report-table td { padding: 10px; border-bottom: 1px solid #eee; text-align: left; }

/* MOBILE */
@media (max-width: 600px) {
    .service-select {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 10px;
    }

    .header-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero {
        padding: 32px 16px;
    }

    .hero h1 {
        font-size: 22px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 6px;
    }

    .grid {
        gap: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .section {
        margin-top: 28px;
    }
}

/* MENU HAMBÚRGUER (mobile) */
.menu-toggle-barberhen {
    display: none;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #ffffff;
    cursor: pointer;
    padding: 4px 8px;
}

@media (max-width: 768px) {
    .header-content {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }

    .logo {
        flex: 0 0 auto;
    }

    .menu-toggle-barberhen {
        display: block;
        flex: 0 0 auto;
        margin-left: 0;
        order: 2;
    }

    .header-actions {
        display: none;
        flex-direction: column;
        align-items: stretch;
        position: absolute;
        top: 100%;
        right: 0;
        width: 220px;
        background: #1d4ed8;
        padding: 12px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
        gap: 8px;
        margin-top: 8px;
        z-index: 30;
    }

    .header-actions.is-open {
        display: flex;
    }

    .header-actions .btn-modern {
        width: 100%;
        justify-content: center;
    }

    .header-actions form {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        width: 100%;
        padding: 0 0 0 12px;
    }
    
    .header-actions .user-name {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    }
    
    .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: #003366;
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
   }
   
   @media (max-width: 768px) {
        .shop-layout {
            grid-template-columns: 1fr;
        }
    
        .shop-field-row {
            flex-direction: column;
        }
    
        .shop-field--sm {
            max-width: 100%;
            flex: 1;
        }
    
        .shop-form-card {
            padding: 1.25rem;
        }
    
        .shop-profile-title {
            font-size: 1.2rem;
        }
    }
    
    .secretary-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
    }
    
    .secretary-table th,
    .secretary-table td {
        padding: 6px 4px;
        font-size: 11px;
        white-space: normal;
        word-break: break-word;
        text-align: left;
    }
    
    .secretary-table th:nth-child(1),
    .secretary-table td:nth-child(1) {
        width: 22%;
    }
    
    .secretary-table th:nth-child(2),
    .secretary-table td:nth-child(2) {
        width: 30%;
    }
    
    .secretary-table th:nth-child(3),
    .secretary-table td:nth-child(3) {
        width: 28%;
    }
    
    .secretary-table th:nth-child(4),
    .secretary-table td:nth-child(4) {
        width: 20%;
    }
    
    .table-scroll{
        overflow:visible;
    }

    .barbers-table,
    .barbers-table thead,
    .barbers-table tbody,
    .barbers-table tr,
    .barbers-table td{
        display:block;
        width:100%;
    }

    .barbers-table thead{
        display:none;
    }

    .barbers-table tr{
        background:#fff;
        border:1px solid #e2e8f0;
        border-radius:12px;
        padding:12px;
        margin-bottom:16px;
    }

    .barbers-table td{
        display:flex;
        justify-content:space-between;
        align-items:center;
        padding:8px 0;
        border:none;
        white-space:normal;
    }

    .barbers-table td::before{
        content:attr(data-label);
        font-weight:700;
        color:#64748b;
        margin-right:12px;
    }

   .barbers-table-actions{
        display:flex !important;
        justify-content:flex-end;
        align-items:center;
        gap:8px;
        flex-wrap:wrap;
    }
    
    .barbers-table-actions .inline-form{
        margin:0;
    }
    
    .btn-edit-barber,
    .btn-disable-barber,
    .btn-enable-barber{
        width:auto;
        min-width:95px;
        margin:0;
        padding:8px 12px;
    }
    }

/* ── Responsivo: Serviços ── */
@media (max-width: 600px) {
    .services-col-headers {
        display: none;
    }

    .service-card {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .service-card input[type="text"] {
        grid-column: 1 / -1;
    }

    .service-actions {
        grid-column: 2;
        justify-content: flex-end;
    }

    .services-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

.field-label-mobile {
    display: none;
}

@media (max-width: 600px) {
    .field-label-mobile {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: #94a3b8;
        text-transform: uppercase;
        margin-bottom: 2px;
    }
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-scroll table {
    width: auto;
    min-width: 100%;
}

@media (max-width:768px){

    .service-fields.is-visible{
        display:flex;
        flex-direction:column;
        margin-left:0;
        gap:12px;
    }

    .service-item-label{
        align-items:flex-start;
    }

    .btn-primary{
        width:100%;
        margin-top:20px;
    }

}

.service-pill-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 6px;
    border: 2px solid #eee;
}

.service-pill-avatar-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    background: #ddd;
    font-weight: bold;
    font-size: 16px;
    color: #555;
}

.profile-photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #eee;
}

.service-photo-preview {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #eee;
}

.service-field--photo {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.service-field--photo .service-photo-preview {
    width: 48px;
    height: 48px;
    display: block;
}

.service-field--photo .btn-upload-small {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 22px;
    height: 22px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #e2e8f0;
}

/* Quando ainda não há foto (linha de "novo serviço"), o botão
   volta a ser um botão normal com texto, em vez de badge sobre a foto */
.service-field--photo.no-photo {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-field--photo.no-photo .btn-upload-small {
    position: static;
    width: auto;
    height: auto;
    padding: 4px 8px;
    border-radius: 8px;
}

.btn-upload-small {
    padding: 4px 8px;
    font-size: 0.85rem;
}

/* ── Agenda (timeline) ── */
.agenda-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.agenda-row {
    display: flex;
    align-items: stretch;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .15s;
}

.agenda-row:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.agenda-time {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    font-size: 0.85rem;
    border-right: 1px solid #f1f5f9;
}

.agenda-content {
    flex: 1;
    padding: 14px 16px;
}

/* .agenda-row inteiro já é o "card" no desktop; o .card-agenda vira
   só uma faixa colorida de status à esquerda, como um accent */
   .agenda-row .card-agenda,
    .agenda-row .card-agenda.status-confirmed,
    .agenda-row .card-agenda.status-completed,
    .agenda-row .card-agenda.status-cancelled,
    .agenda-row .card-agenda.status-pending {
        border: none;
        border-left: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

.agenda-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.agenda-card-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.agenda-card-actions .btn {
    color: inherit;
}

.btn-confirm {
    color: #22c55e;
}

.btn-cancel-agenda {
    color: #ef4444;
}

.agenda-livre-label {
    color: #94a3b8;
}

.agenda-empty {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
}

/* Mobile: cada horário vira UM card único */
@media (max-width: 600px) {
    .agenda-timeline {
        border: none;
        background: transparent;
    }

    .agenda-row {
        display: flex;
        flex-direction: column;
        border: 1px solid #e2e8f0;
        border-left: 4px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 12px;
        background: #fff;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }

   /* essas classes (--confirmed etc.) nunca eram aplicadas no HTML —
   o accent de cor vem do status dentro do .card-agenda, então uso
   :has() pra pintar a borda do card externo com base nele */
    .agenda-row:has(.card-agenda.status-confirmed) { border-left-color: #22c55e; }
    .agenda-row:has(.card-agenda.status-completed) { border-left-color: #2563eb; }
    .agenda-row:has(.card-agenda.status-cancelled) { border-left-color: #ef4444; }
    .agenda-row:has(.card-agenda.status-pending)   { border-left-color: #facc15; }
    .agenda-row:has(.card-agenda.status-livre)     { border-left-color: #e2e8f0; }
    
    .agenda-time {
        width: 100%;
        padding: 8px 14px;
        background: #eef2f7;
        color: #64748b;
        font-size: 0.8rem;
        font-weight: 600;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .agenda-content {
        padding: 12px 14px;
    }
    
    /* o card interno some — a .agenda-row já é o card agora.
       Preciso da mesma especificidade das regras .status-* globais
       (fora do media query) pra realmente zerar a borda delas aqui. */
    .card-agenda,
    .card-agenda.status-confirmed,
    .card-agenda.status-completed,
    .card-agenda.status-cancelled,
    .card-agenda.status-pending {
        border: none;
        border-left: none;
        border-radius: 0;
        padding: 0;
        background: transparent;
        box-shadow: none;
    }

    .agenda-card-actions .btn {
        flex: 1;
        justify-content: center;
        text-align: center;
        padding: 10px;
    }
}

.report-chart-wrapper {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 25px;
    height: 300px;
}

.report-chart-wrapper canvas {
    max-height: 100%;
}

/* ── Superadmin: cards de gerenciamento de loja ── */
.shop-manage-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shop-manage-link {
    text-decoration: none;
    color: inherit;
}

.shop-manage-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: block;
}

.shop-manage-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

.shop-manage-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 4px;
}

.shop-manage-footer form {
    margin: 0;
}

.shop-manage-footer .btn-disable-barber,
.shop-manage-footer .btn-enable-barber {
    width: auto;
    padding: 6px 14px;
}

.shop-manage-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shop-manage-footer .btn-toggle-shop,
.shop-manage-toggles .btn-toggle-shop {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    color: #fff;
}

.shop-manage-footer .btn-toggle-shop.is-active,
.shop-manage-toggles .btn-toggle-shop.is-active {
    background-color: #b91c1c;
}

.shop-manage-footer .btn-toggle-shop.is-inactive,
.shop-manage-toggles .btn-toggle-shop.is-inactive {
    background-color: #1a7f37;
}

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

/* ── Grade de serviços (tela "Escolha o serviço") ── */
.service-select--services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.service-select--services .service-pill {
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .service-select--services {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 600px) {
    .service-select--services {
        grid-template-columns: 1fr;
    }

    .service-select--services .service-pill {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        text-align: left;
    }

    .service-select--services .service-pill-avatar,
    .service-select--services .service-pill-avatar-placeholder {
        margin: 0;
        flex-shrink: 0;
        width: 48px;
        height: 48px;
    }

    .service-select--services .service-pill-name,
    .service-select--services .service-pill-meta {
        display: block;
    }
}

/* ── Grade de horários disponíveis (tela agendar) ── */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.horarios-grid form {
    display: flex;
    margin: 0;
}

.horarios-grid .card.time-slot {
    border: 1.5px solid #e2e8f0;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    color: #1e293b;
    transition: border-color 0.15s, background 0.15s;
}

.horarios-grid .card.time-slot:hover {
    border-color: #93c5fd;
    background: #eff6ff;
}

.horarios-grid .time-slot-disabled {
    border: 1.5px solid #f1f5f9;
    background: #f8fafc;
    color: #cbd5e1;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .horarios-grid form,
    .horarios-grid .time-slot-disabled {
        flex-basis: calc(33.333% - 7px);
    }
}

/* ── Popup de clientes (agenda secretaria) ── */
#modal-clientes-loja {
    margin-top: 20px;
}

#modal-clientes-loja h2 {
    margin-bottom: 12px;
}

#modal-clientes-loja label {
    display: block;
    margin-top: 12px;
    margin-bottom: 4px;
    font-weight: 600;
}

#busca-cliente-loja,
#dados-cliente-novo input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
}

#clientes-loja-info {
    margin-top: 6px;
}

.secretary-client-empty {
    font-size: 13px;
    color: #94a3b8;
    padding: 8px 2px;
}

#lista-clientes-loja {
    list-style: none;
    margin: 10px 0 0;
    padding: 0;
    border: 1px solid #eee;
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
}

.secretary-client-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

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

li.secretary-client-item:hover {
    background: #eff6ff;
}

.secretary-client-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.secretary-client-contact {
    font-size: 0.8rem;
    color: #64748b;
}

/* Cliente selecionado (dentro do modal de novo agendamento) */
#cliente-selecionado-box {
    margin-top: 4px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Cadastro de novo cliente dentro do popup */
#dados-cliente-novo {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

/* ── Modais em popup (novo agendamento / selecionar cliente) ── */
#modal-novo-agendamento,
#modal-clientes-loja {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    /* box-shadow gigante = fundo escurecido cobrindo a tela inteira,
       sem precisar de uma div extra de overlay */
    box-shadow:
        0 0 0 9999px rgba(15, 23, 42, 0.55),
        0 20px 50px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
    #modal-novo-agendamento,
    #modal-clientes-loja {
        width: 92%;
        max-height: 90vh;
    }
}

/* ── Padroniza botões dentro dos modais (agendamento / seleção de cliente) ── */
#modal-novo-agendamento .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

#modal-novo-agendamento .modal-actions button,
#modal-clientes-loja .btn-confirmar-cliente {
    flex: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.btn-modal-cancel {
    width: 100%;
    height: 40px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

@media (max-width: 600px) {
    #modal-novo-agendamento .modal-actions {
        flex-direction: column;
    }

    #modal-novo-agendamento .modal-actions button,
    #modal-clientes-loja .btn-confirmar-cliente {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .timeline-slot {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .timeline-time {
        width: 100%;
        min-width: 0;
    }

    .timeline-info {
        min-width: 0;
        width: 100%;
    }

    .timeline-info span,
    .timeline-info strong {
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .timeline-actions {
        width: 100%;
    }

    .timeline-actions .btn-status {
        flex: 1;
    }
    
    .timeline-right {
    width: 100%;
    align-items: stretch;
    }
    
    .timeline-right .badge {
        align-self: flex-start;
    }
}

.acesso-facil-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.acesso-facil-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
}
.acesso-facil-box input {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    margin: 12px 0;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.acesso-facil-erro {
    color: #c0392b;
    min-height: 20px;
    font-size: 14px;
}
.acesso-facil-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.acesso-facil-login-link {
    display: block;
    text-align: center;
    margin-top: 12px;
}

/* ══════════════════════════════════════════════════════
   BOTTOM NAV (mobile, estilo app)
   ══════════════════════════════════════════════════════ */
.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
        padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 6px 2px;
        text-decoration: none;
        color: #94a3b8;
        font-size: 11px;
        font-weight: 600;
        border-radius: 8px;
    }

    .bottom-nav-item-icon {
        font-size: 20px;
        line-height: 1;
    }

    .bottom-nav-item.active {
        color: #2563eb;
    }

    /* dá espaço no fim da página pra barra fixa não cobrir conteúdo */
    body:has(.bottom-nav) main {
        padding-bottom: 72px;
    }
}

.shop-manage-toggles {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    row-gap: 8px;
    column-gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.shop-manage-label {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.shop-manage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.shop-manage-actions form {
    margin: 0;
}


.card-agenda {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* ── Lista "Meus Agendamentos" (tela do cliente) ── */
.agenda-cliente-list {
    display: grid;
    gap: 14px;
}

@media (max-width: 768px) {
    .agenda-cliente-list {
        background: #eef2f7;
        padding: 12px;
        border-radius: 12px;
    }

    .agenda-cliente-list .card-agenda {
        border: none;
        border-left: 4px solid #e2e8f0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
        padding-left: 18px;
    }

    .agenda-cliente-list .card-agenda.status-confirmed {
        border-left-color: #22c55e;
    }

    .agenda-cliente-list .card-agenda.status-cancelled {
        border-left-color: #ef4444;
    }

    .agenda-cliente-list .card-agenda.status-pending {
        border-left-color: #facc15;
    }
}

/* ── Agenda: setas na linha do mês/ano ── */

@media (max-width: 600px) {
    .date-pill {
        min-width: 40px;
        padding: 6px 2px;
    }

    .date-pill .dow {
        font-size: 10px;
    }

    .date-pill .dnum {
        font-size: 13px;
    }
}

/* ── Agenda: destaque do horário atual ── */
.agenda-row--time-current {
    box-shadow: 0 0 0 2px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.25);
}

.agenda-row--time-current .agenda-time {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 600px) {
    .agenda-row--time-current {
        border-left-color: #2563eb !important;
    }
}

.date-carousel-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.date-carousel-nav {
    display: flex;
    gap: 6px;
}

.nav-btn {
    font-size: 24px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dates-track {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.nav-btn {
    font-size: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    text-decoration: none;
}

.nav-btn:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.shop-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
}

.shop-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-header-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 19px;
}

.shop-header-label {
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.shop-header-name {
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
}

.shop-header-change {
    border: none;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

.shop-header-change:hover {
    background: #eff6ff;
    color: #2563eb;
}

/* ══════════════════════════════════════════════════════════
   AGENDAR — REDESIGN FUTURISTA (tema claro)
   Escopado em .agendar-futuristic para não afetar outras telas
   que reutilizam .shop-header-bar / .service-pill / .date-pill /
   .horarios-grid / .card.time-slot
   ══════════════════════════════════════════════════════════ */

.agendar-futuristic {
    position: relative;
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    padding: 28px 24px 40px;
    margin: -8px 0 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
}

/* grade tech sutil de fundo */
.agendar-futuristic::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    pointer-events: none;
}

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

/* ── Stepper ── */
.af-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.af-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.af-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.72rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    transition: all .2s;
}

.af-step.is-done .af-step-num {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.5);
}

.af-step.is-done { color: #334155; }

.af-step.is-active .af-step-num {
    background: #eff6ff;
    border-color: #2563eb;
    color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.af-step.is-active { color: #2563eb; }

.af-step-line {
    width: 28px;
    height: 1.5px;
    background: #e2e8f0;
}

/* ── Headers (Loja / Serviço) ── */
.agendar-futuristic .shop-header-bar {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid #e8edf5;
    box-shadow: none;
    margin-bottom: 10px;
}

.agendar-futuristic .shop-header-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
}

/* ── Section titles ── */
.agendar-futuristic .shop-form-section-title {
    color: #2563eb;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.agendar-futuristic .section-title {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Seleção de Barbeiro ── */
.agendar-futuristic .service-pill {
    background: #fff;
    border: 1.5px solid #e8edf5;
    transition: all .2s ease;
}

.agendar-futuristic .service-pill:hover {
    border-color: #93c5fd;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.agendar-futuristic .service-select {
    padding: 8px 6px 12px;
    margin: -8px -6px 0;
}

.agendar-futuristic .service-pill.active {
    border-color: transparent;
    background: linear-gradient(160deg, #eff6ff, #f5f3ff);
    box-shadow: 0 0 0 1.5px #2563eb, 0 10px 24px -10px rgba(37, 99, 235, 0.45);
}

.agendar-futuristic .service-select:not(.service-select--services):not(.shop-list) .service-pill {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    max-width: 96px;
}

.agendar-futuristic .service-pill-name,
.agendar-futuristic .service-pill-meta {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.agendar-futuristic .service-pill.active .service-pill-name,
.agendar-futuristic .service-pill.active .service-pill-meta {
    color: #2563eb;
}

.agendar-futuristic .service-pill.active .service-pill-avatar,
.agendar-futuristic .service-pill.active .service-pill-avatar-placeholder {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.agendar-futuristic .service-pill-avatar-placeholder {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
}

/* ── Carrossel de datas ── */
.agendar-futuristic .date-carousel-label:hover {
    background: #eff6ff;
    color: #2563eb;
}

.agendar-futuristic .date-carousel-label {
    text-transform: none;
}

.agendar-futuristic .date-carousel-label {
    min-width: 190px;
    justify-content: space-between;
}

.agendar-futuristic .nav-btn:hover {
    background: #eff6ff;
    color: #2563eb;
}

.agendar-futuristic .date-pill {
    background: #fff;
    border: 1.5px solid #e8edf5;
}

.agendar-futuristic .date-pill:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.agendar-futuristic .date-pill.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.45);
}

/* ── Grade de horários ── */
.agendar-futuristic .horarios-grid .card.time-slot {
    background: #fff;
    border: 1.5px solid #e8edf5;
    font-weight: 600;
    border-radius: 12px;
    transition: all .2s ease;
}

.agendar-futuristic .horarios-grid .card.time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.agendar-futuristic .horarios-grid .time-slot-disabled {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    color: #cbd5e1;
}

/* Responsivo */
@media (max-width: 600px) {
    .agendar-futuristic {
        padding: 20px 14px 32px;
        border-radius: 18px;
    }

    .af-stepper {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 2px;
    }

    .af-step {
        font-size: 0.68rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .af-step-line {
        width: 10px;
        flex-shrink: 0;
    }
}

.agendar-futuristic .date-carousel-picker-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.agendar-futuristic .date-carousel-label {
    min-width: 190px;
    justify-content: flex-start;
}

.agendar-futuristic .date-carousel-month-text {
    width: auto;
}

/* ── Grade de seleção de serviço ── */
.agendar-futuristic .service-select--services .service-pill {
    padding: 16px 12px;
    text-align: center;
}

.agendar-futuristic .service-pill-avatar-placeholder {
    font-size: 1.2rem;
}

.agendar-futuristic .service-pill-meta strong {
    color: #2563eb;
    font-weight: 700;
}

/* ── Barra de busca de loja ── */
.agendar-futuristic .page-subtitle {
    color: #64748b;
}

.agendar-futuristic .shop-search-bar {
    background: #fff;
    border: 1px solid #e8edf5;
    box-shadow: 0 8px 24px -16px rgba(37, 99, 235, 0.25);
    transition: box-shadow .2s, border-color .2s;
}

.agendar-futuristic .shop-search-bar:focus-within {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12), 0 8px 24px -16px rgba(37, 99, 235, 0.35);
}

.agendar-futuristic .shop-search-input-wrapper {
    background: #f8fafc;
}

.agendar-futuristic .shop-search-icon {
    color: #2563eb;
    opacity: 1;
}

.agendar-futuristic .btn-search-primary {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
}

.agendar-futuristic .btn-search-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.agendar-futuristic .btn-search-secondary {
    background: #eff6ff;
    color: #2563eb;
    font-weight: 600;
}

.agendar-futuristic .btn-search-secondary:hover {
    background: #dbeafe;
}

/* ── Cards de loja ── */
.agendar-futuristic .shop-card-icon {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
    font-size: 1.3rem;
}

.agendar-futuristic .shop-card-distance {
    color: #16a34a;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   HOME — REDESIGN FUTURISTA (tema claro)
   Escopado em .home-futuristic, mesma linha do .agendar-futuristic
   ══════════════════════════════════════════════════════════ */

.home-futuristic {
    position: relative;
}

.home-futuristic .hf-hero {
    position: relative;
    text-align: center;
    padding: 48px 24px 40px;
    margin: -8px 0 32px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
}

.home-futuristic .hf-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    pointer-events: none;
}

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

.home-futuristic .hf-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    margin-bottom: 14px;
}

.home-futuristic .hf-hero-icon,
.home-futuristic .hf-service-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
}

.home-futuristic .hf-hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 6px;
}

.home-futuristic .hf-hero-subtitle {
    color: #64748b;
    font-size: 0.95rem;
}

.home-futuristic .hf-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 6px 16px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 600;
}

.home-futuristic .btn-hf-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
    transition: transform .15s, box-shadow .15s;
}

.home-futuristic .btn-hf-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.6);
}

.home-futuristic .hf-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 18px;
}

.home-futuristic .hf-section-subtitle {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin: 20px 0 10px;
}

.home-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

/* Cards de agendamento — reaproveita .card/.badge mas com acento futurista */
.home-futuristic .card {
    border: 1px solid #e8edf5;
    border-left: 4px solid #e2e8f0;
    transition: box-shadow .15s, transform .15s;
}

.home-futuristic .card:hover {
    box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.home-futuristic .card:has(.badge-confirmed) { border-left-color: #22c55e; }
.home-futuristic .card:has(.badge-cancelled) { border-left-color: #ef4444; }
.home-futuristic .card:has(.badge-pending)   { border-left-color: #facc15; }

/* Cards de serviço (home do cliente) */
.home-futuristic .hf-service-card {
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all .2s ease;
}

.home-futuristic .hf-service-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.home-futuristic .hf-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    margin-bottom: 10px;
}

.home-futuristic .hf-service-card h3 {
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 4px;
}

.home-futuristic .hf-service-card p {
    font-size: 0.82rem;
    color: #64748b;
}

@media (max-width: 600px) {
    .home-futuristic .hf-hero {
        padding: 32px 16px 28px;
        border-radius: 18px;
    }

    .home-futuristic .hf-hero-title {
        font-size: 1.4rem;
    }
}

.home-futuristic .hf-hero-icon,
.home-futuristic .hf-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
}

.home-futuristic .hf-hero-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
}

.home-futuristic .hf-service-icon {
    margin-bottom: 10px;
}

.home-futuristic .hf-hero-icon svg,
.home-futuristic .hf-service-icon svg {
    width: 22px;
    height: 22px;
}

.home-futuristic .hf-hero-icon svg {
    width: 26px;
    height: 26px;
}

/* ══════════════════════════════════════════════════════════
   HEADER / FOOTER / NAV — acabamento futurista
   ══════════════════════════════════════════════════════════ */

.header {
    background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #4f46e5);
    box-shadow: 0 4px 20px -8px rgba(37, 99, 235, 0.5);
}

.footer {
    background: linear-gradient(120deg, #1d4ed8, #2563eb 55%, #4f46e5);
}

/* Ícones dentro de botões/menus/links */
.btn-modern i,
.nav-dropdown-menu a i,
.user-name i {
    font-size: 15px;
    line-height: 1;
    vertical-align: -2px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* seta do dropdown menor e mais discreta */
.btn-modern .ti-chevron-down {
    font-size: 12px;
    opacity: 0.85;
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Bottom nav — ícone Tabler no lugar do emoji */
.bottom-nav-item-icon i {
    font-size: 20px;
    line-height: 1;
}

.bottom-nav-item {
    display: flex;
}

/* ══════════════════════════════════════════════════════════
   AGENDA DO DIA — REDESIGN FUTURISTA
   Escopado em .agenda-day-futuristic
   ══════════════════════════════════════════════════════════ */

.agenda-day-futuristic .hf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agenda-day-futuristic .date-carousel-wrapper {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.35);
}

.agenda-day-futuristic .date-carousel-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agenda-day-futuristic .nav-btn {
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.agenda-day-futuristic .nav-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.agenda-day-futuristic .date-pill.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.45);
}

/* Linhas da agenda com leve elevação e cantos mais suaves */
.agenda-day-futuristic .agenda-row {
    border-radius: 14px;
    border-color: #e8edf5;
    transition: box-shadow .15s, transform .15s;
}

.agenda-day-futuristic .agenda-row:hover {
    box-shadow: 0 10px 24px -16px rgba(37, 99, 235, 0.35);
}

.agenda-day-futuristic .agenda-row--time-current {
    box-shadow: 0 0 0 2px #2563eb, 0 8px 24px -12px rgba(37, 99, 235, 0.45);
}

/* Badge com ícone alinhado */
.agenda-day-futuristic .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agenda-day-futuristic .badge i {
    font-size: 12px;
}

/* Botões de ação com ícone alinhado */
.agenda-day-futuristic .agenda-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.agenda-day-futuristic .btn-confirm {
    background: #dcfce7;
    border-radius: 8px;
    padding: 6px 14px;
}

.agenda-day-futuristic .btn-cancel-agenda {
    background: #fef2f2;
    border-radius: 8px;
    padding: 6px 14px;
}

.agenda-day-futuristic .agenda-card-phone {
    display: flex;
    align-items: center;
    gap: 6px;
}

.agenda-day-futuristic .agenda-empty {
    background: #fff;
    border: 1px dashed #e2e8f0;
    border-radius: 14px;
}

/* ══════════════════════════════════════════════════════════
   PAINEL DA SECRETÁRIA — REDESIGN FUTURISTA
   Escopado em .secretary-dashboard-futuristic
   ══════════════════════════════════════════════════════════ */

.secretary-dashboard-futuristic .hf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.secretary-dashboard-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 16px 0;
}

.secretary-dashboard-futuristic .secretary-dashboard-barber {
    border: 1px solid #e8edf5;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.35);
    margin-bottom: 20px;
    transition: box-shadow .15s;
}

.secretary-dashboard-futuristic .secretary-dashboard-barber:hover {
    box-shadow: 0 14px 34px -18px rgba(37, 99, 235, 0.4);
}

.secretary-dashboard-futuristic .hf-barber-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.secretary-dashboard-futuristic .hf-barber-header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: #1e293b;
    margin: 0;
}

.secretary-dashboard-futuristic .hf-barber-header .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secretary-dashboard-futuristic .secretary-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.secretary-dashboard-futuristic .secretary-table tr:hover td {
    background: #f8fafc;
}

.secretary-agenda-futuristic .timeline-slot:hover {
    box-shadow: 0 10px 24px -16px rgba(37, 99, 235, 0.35);
    transform: translateY(-1px);
}

.secretary-agenda-futuristic .timeline-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Grade de horários */
.secretary-agenda-futuristic .horarios-grid .card.time-slot {
    background: #fff;
    border: 1.5px solid #e8edf5;
    font-weight: 600;
    border-radius: 12px;
    transition: all .2s ease;
}

.secretary-agenda-futuristic .horarios-grid .card.time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.secretary-agenda-futuristic .horarios-grid .time-slot-disabled {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    color: #cbd5e1;
}

.secretary-agenda-futuristic .horarios-grid .time-slot-disabled small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Modais */
.secretary-agenda-futuristic .shop-form-card {
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.35);
}

.secretary-agenda-futuristic .modal-actions button,
.secretary-agenda-futuristic #btn-selecionar-cliente,
.secretary-agenda-futuristic #btn-toggle-novo-cliente,
.secretary-agenda-futuristic #btn-confirmar-novo-cliente {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secretary-agenda-futuristic .secretary-client-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ══════════════════════════════════════════════════════════
   AGENDA DA SECRETÁRIA — REDESIGN FUTURISTA
   Escopado em .secretary-agenda-futuristic
   ══════════════════════════════════════════════════════════ */

.secretary-agenda-futuristic {
    position: relative;
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        #ffffff;
}

.secretary-agenda-futuristic::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 60%);
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 60%);
    pointer-events: none;
}

.secretary-agenda-futuristic .hf-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.secretary-agenda-futuristic .hf-period-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-top: 24px;
    margin-bottom: 10px;
}

.secretary-agenda-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

/* Botão gradiente principal, reaproveitado nos modais desta tela */
.btn-hf-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
    transition: transform .15s, box-shadow .15s;
}

.btn-hf-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.6);
}

/* Botões de ação pequenos (Concluir / Cancelar) na timeline */
.btn-hf-sm {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
}

.btn-hf-sm-confirm {
    background: #dcfce7;
    color: #166534;
}

.btn-hf-sm-confirm:hover {
    background: #bbf7d0;
}

.btn-hf-sm-cancel {
    background: #fef2f2;
    color: #991b1b;
}

.btn-hf-sm-cancel:hover {
    background: #fee2e2;
}

/* Barra de filtros com o mesmo acabamento das outras telas */
.secretary-agenda-futuristic .secretary-filters {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.35);
}

.secretary-agenda-futuristic .secretary-select,
.secretary-agenda-futuristic .secretary-date {
    background: #f8fafc;
    border: 1.5px solid transparent;
    transition: border-color .15s, background .15s;
}

.secretary-agenda-futuristic .secretary-select:focus,
.secretary-agenda-futuristic .secretary-date:focus {
    background: #fff;
    border-color: #2563eb;
    outline: none;
}

/* Timeline do dia — reskin completo do card */
.secretary-agenda-futuristic .timeline-slot {
    background: #fff;
    border: 1px solid #e8edf5;
    border-left: 4px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.3);
    transition: box-shadow .15s, transform .15s;
}

.secretary-agenda-futuristic .timeline-slot:hover {
    box-shadow: 0 12px 28px -16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.secretary-agenda-futuristic .timeline-slot.status-pending   { border-left-color: #facc15; }
.secretary-agenda-futuristic .timeline-slot.status-confirmed { border-left-color: #22c55e; }
.secretary-agenda-futuristic .timeline-slot.status-completed { border-left-color: #2563eb; }
.secretary-agenda-futuristic .timeline-slot.status-cancelled { border-left-color: #ef4444; opacity: 0.85; }

.secretary-agenda-futuristic .timeline-right .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: capitalize;
}

.secretary-agenda-futuristic .timeline-right .badge i {
    font-size: 12px;
}

.secretary-agenda-futuristic .timeline-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.secretary-agenda-futuristic .agenda-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secretary-agenda-futuristic .btn-confirm {
    background: #dcfce7;
    border-radius: 8px;
    padding: 6px 14px;
}

.secretary-agenda-futuristic .btn-cancel-agenda {
    background: #fef2f2;
    border-radius: 8px;
    padding: 6px 14px;
}

.secretary-agenda-futuristic .agenda-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secretary-agenda-futuristic .btn-complete {
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 8px;
    padding: 6px 14px;
}

.secretary-agenda-futuristic .btn-cancel-agenda {
    background: #fef2f2;
    border-radius: 8px;
    padding: 6px 14px;
}

/* Grade de horários */
.secretary-agenda-futuristic .horarios-grid .card.time-slot {
    background: #fff;
    border: 1.5px solid #e8edf5;
    font-weight: 600;
    border-radius: 12px;
    transition: all .2s ease;
}

.secretary-agenda-futuristic .horarios-grid .card.time-slot:hover {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.secretary-agenda-futuristic .horarios-grid .time-slot-disabled {
    background: #f8fafc;
    border: 1.5px solid #f1f5f9;
    color: #cbd5e1;
}

.secretary-agenda-futuristic .horarios-grid .time-slot-disabled small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.secretary-agenda-futuristic .date-carousel-wrapper {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.35);
    margin-top: 16px;
}

.secretary-agenda-futuristic .date-carousel-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.secretary-agenda-futuristic .nav-btn {
    background: #f8fafc;
    border: 1px solid #e8edf5;
}

.secretary-agenda-futuristic .nav-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #2563eb;
}

.secretary-agenda-futuristic .date-pill.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-color: transparent;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.45);
}

/* Modais */
.secretary-agenda-futuristic .shop-form-card {
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.35);
}

.secretary-agenda-futuristic .modal-actions button,
.secretary-agenda-futuristic #btn-selecionar-cliente,
.secretary-agenda-futuristic #btn-toggle-novo-cliente {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.secretary-agenda-futuristic .secretary-client-contact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 600px) {
    .agendar-futuristic {
        padding: 20px 14px 32px;
        border-radius: 18px;
    }

    .af-stepper {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .af-step {
        font-size: 0.68rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .af-step-label {
        display: none;
    }

    .af-step.is-active .af-step-label {
        display: inline;
        margin-left: 4px;
    }

    .af-step-line {
        flex: 1 1 auto;
        min-width: 6px;
        width: auto;
    }
}

/* ══════════════════════════════════════════════════════════
   CLIENTES — REDESIGN FUTURISTA
   Escopado em .clients-futuristic
   ══════════════════════════════════════════════════════════ */

.clients-futuristic {
    position: relative;
}

.clients-futuristic .cf-header {
    margin-bottom: 16px;
}

.clients-futuristic .shop-header-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.clients-futuristic .cf-filters {
    margin-bottom: 16px;
}

.clients-futuristic .cf-table-card {
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
    border: 1px solid #e8edf5;
    padding: 0;
    overflow: hidden;
}

.clients-futuristic .cf-table-card .table-scroll {
    padding: 6px;
}

.clients-futuristic .cf-table thead th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e8edf5;
}

.clients-futuristic .cf-table tbody tr {
    transition: background .15s;
}

.clients-futuristic .cf-table tbody tr:hover {
    background: #f8fafc;
}

.clients-futuristic .cf-client-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.clients-futuristic .cf-avatar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.5);
}

.clients-futuristic .cf-client-name {
    font-weight: 600;
    color: #1e293b;
}

.clients-futuristic .cf-invite-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

.clients-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
}

.clients-futuristic .hf-empty i {
    font-size: 28px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.clients-futuristic .btn-edit-barber i,
.clients-futuristic .btn-disable-barber i,
.clients-futuristic .btn-enable-barber i {
    margin-right: 4px;
}

/* Toggle "Apenas ativos" estilo pill switch */
.clients-futuristic .cf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 0 6px;
    white-space: nowrap;
}

.clients-futuristic .cf-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.clients-futuristic .cf-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background .15s;
    flex-shrink: 0;
}

.clients-futuristic .cf-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform .15s;
}

.clients-futuristic .cf-toggle input:checked + .cf-toggle-slider {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.clients-futuristic .cf-toggle input:checked + .cf-toggle-slider::before {
    transform: translateX(16px);
}

.clients-futuristic .cf-toggle-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

@media (max-width: 768px) {
    .clients-futuristic .cf-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .clients-futuristic .cf-toggle {
        justify-content: flex-start;
        padding: 4px 2px;
    }

    .clients-futuristic .shop-search-actions {
        width: 100%;
    }

    .clients-futuristic .shop-search-actions .btn-search-primary,
    .clients-futuristic .shop-search-actions .btn-search-secondary {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .clients-futuristic .shop-search-input-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
    }

    .clients-futuristic .shop-search-bar {
        padding: 10px;
    }
}

/* ══════════════════════════════════════════════════════════
   PERFIL DA LOJA — REDESIGN FUTURISTA
   Escopado em .shop-profile-futuristic
   ══════════════════════════════════════════════════════════ */

.shop-profile-futuristic .spf-header {
    margin-bottom: 16px;
}

.shop-profile-futuristic .shop-logo-card,
.shop-profile-futuristic .shop-info-card,
.shop-profile-futuristic .shop-form-card {
    border: 1px solid #e8edf5;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.35);
    transition: box-shadow .15s;
}

.shop-profile-futuristic .shop-logo-card:hover,
.shop-profile-futuristic .shop-info-card:hover {
    box-shadow: 0 14px 34px -18px rgba(37, 99, 235, 0.4);
}

.shop-profile-futuristic .shop-logo-img {
    border-color: #dbeafe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.shop-profile-futuristic .shop-logo-placeholder {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
}

.shop-profile-futuristic .btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
}

.shop-profile-futuristic .btn-upload:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.shop-profile-futuristic .shop-info-card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.shop-profile-futuristic .shop-info-card-title span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shop-profile-futuristic .barber-avatar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.5);
}

.shop-profile-futuristic .shop-form-section-title {
    color: #2563eb;
    letter-spacing: 0.1em;
}

.shop-profile-futuristic .shop-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.shop-profile-futuristic .shop-form-footer {
    justify-content: flex-end;
}

.shop-profile-futuristic .btn-hf-primary {
    padding: 0 26px;
    height: 44px;
    border-radius: 999px;
}

/* Card de acesso fácil com leve destaque próprio */
.shop-profile-futuristic .spf-easy-access {
    background: linear-gradient(160deg, #ffffff, #f8fbff);
    border-color: #dbeafe;
}

.shop-profile-futuristic .spf-easy-access #easy-token-link {
    font-size: 0.8rem;
    color: #475569;
}

.shop-profile-futuristic .spf-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.shop-profile-futuristic .shop-info-card form button.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    justify-content: center;
}

.agenda-day-futuristic .adf-header {
    margin-bottom: 16px;
}

.secretary-agenda-futuristic .saf-header {
    margin-bottom: 16px;
}

.secretary-dashboard-futuristic .sdf-header {
    margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════════
   SERVIÇOS — REDESIGN FUTURISTA
   Escopado em .services-futuristic
   ══════════════════════════════════════════════════════════ */

.services-futuristic .svf-header {
    margin-bottom: 20px;
}

.services-futuristic .shop-header-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-futuristic .service-card {
    border: 1px solid #e8edf5;
    box-shadow: 0 6px 18px -14px rgba(37, 99, 235, 0.3);
    transition: border-color .15s, box-shadow .15s;
}

.services-futuristic .service-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.35);
}

.services-futuristic .service-card--new {
    box-shadow: none;
}

.services-futuristic .service-card--new:hover {
    box-shadow: 0 10px 24px -14px rgba(37, 99, 235, 0.25);
}

.services-futuristic .service-card input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.services-futuristic .btn-save-inline,
.services-futuristic .btn-save {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.5);
}

.services-futuristic .btn-save-inline:hover,
.services-futuristic .btn-save:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
}

.services-futuristic .btn-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.services-futuristic .btn-remove:hover {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

.services-futuristic .btn-upload-small {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.services-futuristic .new-service-title {
    display: flex;
    align-items: center;
    gap: 6px;
}

.services-futuristic .services-empty {
    text-align: center;
}

.services-futuristic .services-empty i {
    font-size: 28px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.services-futuristic .count-badge {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* ══════════════════════════════════════════════════════════
   MEUS HORÁRIOS — REDESIGN FUTURISTA
   Escopado em .horarios-futuristic
   ══════════════════════════════════════════════════════════ */

.horarios-futuristic .hrf-header {
    margin-bottom: 20px;
}

.horarios-futuristic .hrf-day-card {
    border: 1px solid #e8edf5;
    box-shadow: 0 10px 26px -20px rgba(37, 99, 235, 0.35);
    transition: box-shadow .15s, border-color .15s;
}

.horarios-futuristic .hrf-day-card:hover {
    border-color: #dbeafe;
    box-shadow: 0 12px 28px -16px rgba(37, 99, 235, 0.4);
}

.horarios-futuristic .day-card-title {
    color: #1e293b;
}

.horarios-futuristic .shop-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.horarios-futuristic .btn-hf-primary {
    padding: 0 26px;
    height: 44px;
    border-radius: 999px;
}

.horarios-futuristic .shop-form-footer {
    justify-content: flex-end;
    border-top: none;
    padding-top: 1.5rem;
}

/* Toggle "Trabalhar" / "Tem horário de almoço" como pill switch */
.horarios-futuristic .hrf-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.horarios-futuristic .hrf-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.horarios-futuristic .hrf-toggle-slider {
    position: relative;
    width: 34px;
    height: 19px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background .15s;
    flex-shrink: 0;
}

.horarios-futuristic .hrf-toggle-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.25);
    transition: transform .15s;
}

.horarios-futuristic .hrf-toggle input:checked + .hrf-toggle-slider {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.horarios-futuristic .hrf-toggle input:checked + .hrf-toggle-slider::before {
    transform: translateX(15px);
}

.horarios-futuristic .hrf-toggle span:last-child {
    font-size: 0.85rem;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ══════════════════════════════════════════════════════════
   BARBEIROS — REDESIGN FUTURISTA
   Escopado em .barbers-futuristic
   ══════════════════════════════════════════════════════════ */

.barbers-futuristic .bf-header {
    margin-bottom: 16px;
}

.barbers-futuristic .shop-header-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.barbers-futuristic .bf-table-card {
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
    border: 1px solid #e8edf5;
    padding: 0;
    overflow: hidden;
}

.barbers-futuristic .bf-table-card .table-scroll {
    padding: 6px;
}

.barbers-futuristic .bf-table thead th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e8edf5;
}

.barbers-futuristic .bf-table tbody tr {
    transition: background .15s;
}

.barbers-futuristic .bf-table tbody tr:hover {
    background: #f8fafc;
}

.barbers-futuristic .bf-barber-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.barbers-futuristic .bf-avatar {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.5);
}

.barbers-futuristic .bf-barber-name {
    font-weight: 600;
    color: #1e293b;
}

.barbers-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
}

.barbers-futuristic .hf-empty i {
    font-size: 28px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.barbers-futuristic .btn-edit-barber i,
.barbers-futuristic .btn-disable-barber i,
.barbers-futuristic .btn-enable-barber i {
    margin-right: 4px;
}

/* ══════════════════════════════════════════════════════════
   MEUS AGENDAMENTOS (CLIENTE) — REDESIGN FUTURISTA
   Escopado em .agenda-cliente-futuristic
   ══════════════════════════════════════════════════════════ */

.agenda-cliente-futuristic .acf-header {
    margin-bottom: 16px;
}

.agenda-cliente-futuristic .card-agenda {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    transition: box-shadow .15s, transform .15s;
}

.agenda-cliente-futuristic .card-agenda:hover {
    box-shadow: 0 12px 28px -16px rgba(37, 99, 235, 0.35);
    transform: translateY(-2px);
}

.agenda-cliente-futuristic .card-agenda p {
    margin-top: 6px;
    color: #475569;
    font-size: 0.88rem;
}

.agenda-cliente-futuristic .badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.agenda-cliente-futuristic .badge i {
    font-size: 12px;
}

.agenda-cliente-futuristic .agenda-card-actions {
    margin-top: 14px;
}

.agenda-cliente-futuristic .btn-cancel-agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    color: #991b1b;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

.agenda-cliente-futuristic .btn-cancel-agenda:hover {
    background: #fee2e2;
}

.agenda-cliente-futuristic .acf-cancelled-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.85rem;
}

.agenda-cliente-futuristic .hf-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
}

.agenda-cliente-futuristic .hf-empty i {
    font-size: 28px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.agenda-cliente-futuristic .agenda-card-header {
    align-items: flex-start;
}

.agenda-cliente-futuristic .acf-datetime {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.agenda-cliente-futuristic .acf-datetime strong {
    font-size: 16px;
    color: #1e293b;
}

.agenda-cliente-futuristic .acf-time {
    font-size: 0.85rem;
    font-weight: 500;
    color: #64748b;
}

.agenda-cliente-futuristic .acf-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

.agenda-cliente-futuristic .acf-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agenda-cliente-futuristic .acf-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94a3b8;
}

.agenda-cliente-futuristic .acf-info-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
}

.agenda-cliente-futuristic .acf-price {
    color: #2563eb;
}

/* ══════════════════════════════════════════════════════════
   MEUS DADOS (CLIENTE) — REDESIGN FUTURISTA
   Escopado em .client-profile-futuristic
   ══════════════════════════════════════════════════════════ */

.client-profile-futuristic .cpf-header {
    margin-bottom: 20px;
}

.client-profile-futuristic .shop-form-card {
    border: 1px solid #e8edf5;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.35);
}

.client-profile-futuristic .cpf-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.client-profile-futuristic .cpf-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbeafe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.client-profile-futuristic .cpf-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
}

.client-profile-futuristic .btn-upload {
    transition: all .15s;
}

.client-profile-futuristic .btn-upload:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.client-profile-futuristic .shop-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.client-profile-futuristic .shop-form-section-title {
    color: #2563eb;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.client-profile-futuristic .shop-form-footer {
    justify-content: flex-end;
}

.client-profile-futuristic .btn-hf-primary {
    padding: 0 26px;
    height: 44px;
    border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════
   SECRETÁRIAS — REDESIGN FUTURISTA
   Escopado em .secretaries-futuristic
   ══════════════════════════════════════════════════════════ */

.secretaries-futuristic .sf-header {
    margin-bottom: 16px;
}

.secretaries-futuristic .sf-table-card {
    background: #fff;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 6px;
    overflow: hidden;
}

.secretaries-futuristic .sf-table thead th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e8edf5;
}

.secretaries-futuristic .sf-table tbody tr {
    transition: background .15s;
}

.secretaries-futuristic .sf-table tbody tr:hover {
    background: #f8fafc;
}

.secretaries-futuristic .sf-name-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.secretaries-futuristic .sf-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px -4px rgba(37, 99, 235, 0.5);
}

.secretaries-futuristic .sf-name {
    font-weight: 600;
    color: #1e293b;
}

.secretaries-futuristic .hf-empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px 0;
}

.secretaries-futuristic .hf-empty i {
    font-size: 28px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.secretaries-futuristic .btn-edit-barber i,
.secretaries-futuristic .btn-disable-barber i,
.secretaries-futuristic .btn-enable-barber i {
    margin-right: 4px;
}

/* ══════════════════════════════════════════════════════════
   MEUS DADOS (BARBEIRO) — REDESIGN FUTURISTA
   Escopado em .barber-profile-futuristic
   ══════════════════════════════════════════════════════════ */

.barber-profile-futuristic .bpf-header {
    margin-bottom: 16px;
}

.barber-profile-futuristic .shop-form-card {
    border: 1px solid #e8edf5;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.35);
}

.barber-profile-futuristic .bpf-photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 1.5rem;
}

.barber-profile-futuristic .bpf-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #dbeafe;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.barber-profile-futuristic .bpf-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.5);
    flex-shrink: 0;
}

.barber-profile-futuristic .btn-upload {
    transition: all .15s;
}

.barber-profile-futuristic .btn-upload:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff6ff;
}

.barber-profile-futuristic .shop-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.barber-profile-futuristic .shop-form-section-title {
    color: #2563eb;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

.barber-profile-futuristic .shop-form-footer {
    justify-content: flex-end;
}

.barber-profile-futuristic .btn-hf-primary {
    padding: 0 26px;
    height: 44px;
    border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════
   RELATÓRIO DE FATURAMENTO — REDESIGN FUTURISTA
   Escopado em .reports-futuristic
   ══════════════════════════════════════════════════════════ */

.reports-futuristic .rf-header {
    margin-bottom: 16px;
}

.reports-futuristic .rf-filter-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.3);
}

.reports-futuristic .rf-filter-field {
    margin-bottom: 0;
    min-width: 150px;
}

.reports-futuristic .shop-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.reports-futuristic .rf-filter-btn {
    display: flex;
    align-items: flex-end;
}

.reports-futuristic .btn-hf-primary {
    height: 38px;
    padding: 0 18px;
}

.reports-futuristic .rf-summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.reports-futuristic .rf-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 10px 26px -20px rgba(37, 99, 235, 0.35);
    transition: box-shadow .15s, transform .15s;
}

.reports-futuristic .rf-summary-card:hover {
    box-shadow: 0 14px 30px -16px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

.reports-futuristic .rf-summary-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
}

.reports-futuristic .rf-summary-label {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.reports-futuristic .rf-summary-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 2px;
}

.reports-futuristic .rf-chart-card,
.reports-futuristic .rf-table-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.3);
    margin-bottom: 28px;
}

.reports-futuristic .rf-chart-card {
    padding: 16px;
    height: 300px;
}

.reports-futuristic .rf-chart-card canvas {
    max-height: 100%;
}

.reports-futuristic .rf-table-card {
    padding: 6px;
    overflow: hidden;
}

.reports-futuristic .report-table thead th {
    background: #f8fafc;
    border-bottom: 1.5px solid #e8edf5;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.reports-futuristic .report-table tbody tr {
    transition: background .15s;
}

.reports-futuristic .report-table tbody tr:hover {
    background: #f8fafc;
}

.reports-futuristic .hf-empty {
    text-align: center;
    color: #94a3b8;
    padding: 40px 0;
    margin-bottom: 28px;
}

.reports-futuristic .hf-empty i {
    font-size: 28px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .reports-futuristic .report-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-futuristic .rf-filter-field {
        min-width: 0;
    }

    .reports-futuristic .btn-hf-primary {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════
   SERVIÇOS DO BARBEIRO (VÍNCULO) — REDESIGN FUTURISTA
   Escopado em .barber-service-edit-futuristic
   ══════════════════════════════════════════════════════════ */

.barber-service-edit-futuristic .bsef-header {
    margin-bottom: 16px;
}

.barber-service-edit-futuristic .shop-form-card {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.barber-service-edit-futuristic .bsef-service-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.barber-service-edit-futuristic .bsef-service-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color .15s, box-shadow .15s;
}

.barber-service-edit-futuristic .bsef-service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 18px -14px rgba(37, 99, 235, 0.3);
}

.barber-service-edit-futuristic .bsef-service-card.is-assigned {
    border-color: #93c5fd;
    background: #f8fbff;
    box-shadow: 0 10px 24px -18px rgba(37, 99, 235, 0.35);
}

.barber-service-edit-futuristic .service-item-label strong {
    color: #1e293b;
}

.barber-service-edit-futuristic .service-item-default {
    color: #94a3b8;
}

.barber-service-edit-futuristic .service-fields {
    padding-top: 12px;
    margin-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.barber-service-edit-futuristic .service-fields input {
    transition: border-color .15s, background .15s;
}

.barber-service-edit-futuristic .service-fields input:focus {
    background: #fff;
    border-color: #2563eb;
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.barber-service-edit-futuristic .shop-form-footer {
    gap: 10px;
    border-top: none;
    padding-top: 0;
}

.barber-service-edit-futuristic .btn-hf-primary {
    padding: 0 26px;
    height: 44px;
    border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════
   FUNCIONALIDADES — PÁGINA APRESENTATIVA
   Escopado em .features-futuristic
   ══════════════════════════════════════════════════════════ */

.features-futuristic .ff-hero {
    position: relative;
    text-align: center;
    padding: 48px 24px 40px;
    margin: -8px 0 32px;
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        #ffffff;
    border: 1px solid #e8edf5;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
}

.features-futuristic .ff-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    pointer-events: none;
}

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

.features-futuristic .ff-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
    margin-bottom: 14px;
}

.features-futuristic .ff-hero-title {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(90deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.features-futuristic .ff-hero-subtitle {
    color: #64748b;
    font-size: 0.98rem;
    max-width: 520px;
    margin: 0 auto;
}

.features-futuristic .ff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
    padding-bottom: 40px;
}

.features-futuristic .ff-card {
    background: #fff;
    border: 1.5px solid #e8edf5;
    border-radius: 16px;
    padding: 26px 22px;
    text-align: center;
    transition: all .2s ease;
}

.features-futuristic .ff-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 14px 30px -16px rgba(37, 99, 235, 0.35);
    transform: translateY(-3px);
}

.features-futuristic .ff-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 1.4rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
    margin: 0 auto 14px;
}

.features-futuristic .ff-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.features-futuristic .ff-card p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .features-futuristic .ff-hero {
        padding: 32px 16px 28px;
        border-radius: 18px;
    }

    .features-futuristic .ff-hero-title {
        font-size: 1.4rem;
    }

    .features-futuristic .ff-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════════════════
   LOGIN / AUTH — REDESIGN FUTURISTA
   Escopado em .auth-futuristic para não afetar telas que ainda
   usam .auth-wrapper/.auth-card sem esse wrapper (registro, senha)
   ══════════════════════════════════════════════════════════ */

.auth-futuristic {
    position: relative;
    min-height: calc(100vh - 260px);
    display: flex;
    align-items: center;
}

.auth-futuristic .auth-wrapper {
    max-width: 440px;
    margin: 32px auto;
    padding: 0 20px;
    width: 100%;
}

.auth-futuristic .auth-card {
    position: relative;
    background:
        radial-gradient(900px 400px at 0% -10%, rgba(37, 99, 235, 0.10), transparent 60%),
        radial-gradient(700px 400px at 100% 0%, rgba(124, 58, 237, 0.08), transparent 55%),
        #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    padding: 40px 32px;
    overflow: hidden;
    box-shadow: 0 20px 45px -25px rgba(37, 99, 235, 0.25);
}

.auth-futuristic .auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at top, black 0%, transparent 70%);
    pointer-events: none;
}

.auth-futuristic .auth-card > * {
    position: relative;
    z-index: 1;
}

.auth-futuristic .auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.12));
    color: #2563eb;
    margin: 0 auto 14px;
}

.auth-futuristic .auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(90deg, #1e293b, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 6px;
}

.auth-futuristic .auth-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.auth-futuristic .auth-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.auth-futuristic .input {
    background: #f8fafc;
    border: 1.5px solid transparent;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

.auth-futuristic .input:focus {
    background: #fff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-futuristic .auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auth-futuristic .auth-remember label {
    margin: 0;
    font-weight: 500;
    font-size: 0.88rem;
    color: #475569;
}

.auth-futuristic .auth-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 10px;
    height: 46px;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(37, 99, 235, 0.5);
    transition: transform .15s, box-shadow .15s;
}

.auth-futuristic .auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px -8px rgba(37, 99, 235, 0.6);
}

.auth-futuristic .auth-link {
    color: #2563eb;
}

.auth-futuristic .auth-forgot {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
}

.auth-futuristic .alert-error,
.auth-futuristic .alert-success {
    border-radius: 14px;
}

@media (max-width: 600px) {
    .auth-futuristic .auth-card {
        padding: 32px 22px;
        border-radius: 18px;
    }

    .auth-futuristic .auth-title {
        font-size: 1.35rem;
    }
}

/* ── Correção: badge de status quebrando palavra no Painel da Secretária (mobile) ── */
@media (max-width: 768px) {
    .secretary-table .badge {
        display: inline-block;
        white-space: nowrap;
        word-break: normal;
    }

    .secretary-table th:nth-child(4),
    .secretary-table td:nth-child(4) {
        width: 24%;
    }

    .secretary-table th:nth-child(2),
    .secretary-table td:nth-child(2) {
        width: 26%;
    }
}

.secretary-dashboard-futuristic .secretary-table th {
    background: #f8fafc;
    color: #64748b;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cf-table {
    table-layout: fixed;
    width: 100%;
}

.cf-email-cell {
    min-width: 0;
    max-width: 0;
}

.cf-email-text {
    display: block;
    width: 100%;
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cf-email-cell .cf-invite-badge {
    display: inline-flex;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bsf-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}
.bsf-info {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.barber-service-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.barber-service-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   QUEM SOMOS — REDESIGN FUTURISTA
   Reaproveita o wrapper .features-futuristic (ff-hero/ff-grid/ff-card)
   ══════════════════════════════════════════════════════════ */

.about-story-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 16px;
    padding: 28px 26px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px -20px rgba(37, 99, 235, 0.3);
}

.about-story-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.about-story-card p {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.about-story-card p:last-child {
    margin-bottom: 0;
}

.about-values-grid {
    padding-bottom: 40px;
}

@media (max-width: 600px) {
    .about-story-card {
        padding: 20px 18px;
        border-radius: 14px;
    }

    .about-story-title {
        font-size: 1.05rem;
    }
}

/* Visão panorâmica do barbeiro */
.panoramic-toggle-link {
    margin-left: auto;
}

.panoramic-grid-wrapper {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    overflow-x: auto;
}

.panoramic-hours-col {
    position: relative;
    width: 56px;
    flex-shrink: 0;
}

.panoramic-hour-mark {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

.panoramic-day-col {
    position: relative;
    flex: 1;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    min-width: 260px;
}

.panoramic-grid-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px solid #eee;
}

.panoramic-now-line {
    position: absolute;
    left: 0;
    right: 0;
    border-top: 2px solid #e53935;
    z-index: 5;
}

.panoramic-now-line::before {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e53935;
}

.panoramic-block {
    position: absolute;
    left: 6px;
    right: 6px;
    border-radius: 6px;
    padding: 6px 8px;
    overflow: hidden;
    border-left: 4px solid transparent;
    font-size: 12px;
    line-height: 1.3;
}

.panoramic-block-time {
    font-weight: 600;
}

.panoramic-block-service {
    font-weight: 500;
}

.panoramic-block-client {
    opacity: 0.8;
}

.panoramic-block.status-pending {
    background: #fff8e1;
    border-left-color: #f9a825;
}

.panoramic-block.status-confirmed {
    background: #e3f2fd;
    border-left-color: #1976d2;
}

.panoramic-block.status-completed {
    background: #e8f5e9;
    border-left-color: #43a047;
}

/* ══════════════════════════════════════════════════════════
   HEADER — REDESIGN MODERNO (sticky, estilo Booksy/Trinks)
   ══════════════════════════════════════════════════════════ */

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eef2f7;
    box-shadow: none;
    color: #1e293b;
    transition: box-shadow .2s ease;
}

.header.is-scrolled {
    box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.25);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo a,
.logo > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1e293b;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 16px;
    box-shadow: 0 6px 16px -6px rgba(37, 99, 235, 0.6);
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-modern {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 600;
    color: #475569;
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.btn-modern:hover {
    background: #eff6ff;
    border-color: transparent;
    color: #2563eb;
    transform: none;
}

.btn-modern:active {
    transform: none;
}

.btn-modern.is-active {
    background: #eff6ff;
    color: #2563eb;
}

/* CTA de "Entrar" pro visitante */
.btn-modern.btn-modern--cta {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 6px 16px -8px rgba(37, 99, 235, 0.55);
}

.btn-modern.btn-modern--cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #6d28d9);
    color: #fff;
}

.user-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: #334155;
    padding: 5px 14px 5px 6px;
    border-radius: 999px;
    background: #f8fafc;
    margin: 0 2px;
}

.user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.header-actions form {
    display: inline-flex;
}

.menu-toggle-barberhen {
    color: #1e293b;
}

/* Dropdowns (Agenda / Configurações) — só ajusta o toggle,
   o .nav-dropdown-menu já é branco e combina */
.nav-dropdown-menu {
    border: 1px solid #eef2f7;
}

/* MOBILE */
@media (max-width: 768px) {
    .header-actions {
        display: none;               /* ← ADICIONE ESTA LINHA */
        background: #ffffff;
        border: 1px solid #eef2f7;
        box-shadow: 0 16px 34px -14px rgba(15, 23, 42, 0.22);
    }

    .header-actions.is-open {        /* ← E ESTE BLOCO NOVO */
        display: flex;
    }

    .header-actions .btn-modern {
        justify-content: flex-start;
        color: #334155;
    }

    .header-actions .btn-modern:hover,
    .header-actions .btn-modern.is-active {
        background: #eff6ff;
        color: #2563eb;
    }

    .header-actions .btn-modern.btn-modern--cta {
        color: #fff;
        justify-content: center;
    }

    .header-actions .user-name {
        justify-content: center;
        width: 100%;
    }

    .nav-dropdown-menu a:hover {
        background: #eff6ff;
        color: #2563eb;
    }
}

/* Correção: toggles de dropdown (Agenda / Configurações) e
   nome do usuário no menu mobile */
@media (max-width: 768px) {
    .header-actions .nav-dropdown {
        display: block;
        width: 100%;
    }

    .header-actions .nav-dropdown > .btn-modern {
        display: flex;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        border-radius: 10px;
    }

    /* empurra só o chevron pra ponta direita, sem esticar o resto */
    .header-actions .nav-dropdown > .btn-modern .ti-chevron-down {
        margin-left: auto;
    }

    .header-actions .nav-dropdown-menu a {
        padding-left: 40px;
    }

    .header-actions .nav-dropdown-menu {
        margin-top: 4px;
    }

    /* nome do usuário alinhado com o resto do menu, não centralizado */
        .header-actions .user-name {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
    }

}

.btn-cancel-shop {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    height: 44px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

.btn-cancel-shop:hover {
    background: #e5e7eb;
}

.shop-form-footer {
    justify-content: space-between;
}