:root {
  --black: #0A0A0A;
  --charcoal: #141414;
  --brown: #A78B71;
  --green: #6B705C;
  --text: #EAE7E1;
  --admin-bg: #F9FAFB;
  --line: rgba(0, 0, 0, .06);
  --danger: #E5484D;
  --ok: #16A34A;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { overflow-x: hidden; background: var(--black); -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button { cursor: pointer; }
input, select, textarea { font-size: 16px !important; }
.hidden { display: none !important; }

.loading-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: radial-gradient(circle at top, rgba(201,163,95,.10), transparent 28%), linear-gradient(180deg, #fffdf9 0%, #f7f3eb 50%, #f2ede4 100%); color: #30483a; gap: 16px; }
.brand-icon { width: 84px; height: 84px; border-radius: 28px; display: grid; place-items: center; background: linear-gradient(135deg, #325241 0%, #547160 100%); color: #f4d48c; font-size: 42px; box-shadow: 0 20px 50px rgba(49, 75, 61, .12); border: 1px solid rgba(201,163,95,.24); }

.client-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 38px 16px 56px; background: radial-gradient(circle at top center, rgba(201,163,95,.10), transparent 22%), radial-gradient(circle at right top, rgba(35,64,45,.05), transparent 18%), linear-gradient(180deg, #fffdf9 0%, #f7f3eb 48%, #f1ece3 100%); color: #26362c; overflow: hidden; }
.client-header { width: 100%; max-width: 560px; text-align: center; margin-bottom: 22px; }
.client-header h1 { margin: 8px 0 0; font-size: 28px; letter-spacing: .16em; font-weight: 300; text-transform: uppercase; font-style: italic; color: #1f3026; }
.client-header p { margin: 4px 0 0; font-size: 11px; letter-spacing: .42em; font-weight: 900; text-transform: uppercase; color: #a5803f; opacity: .96; }
.client-card { width: 100%; max-width: 500px; background: rgba(255,255,255,.98); border: 1px solid rgba(201,163,95,.14); border-radius: 32px; padding: 28px; box-shadow: 0 16px 38px rgba(31,59,45,.06); backdrop-filter: blur(8px); }
.section-title { text-align: center; text-transform: uppercase; letter-spacing: .14em; font-size: 18px; margin: 0 0 8px; color: #213328; }
.stack { display: grid; gap: 12px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.service-btn, .barber-btn { border: 1px solid rgba(52,80,61,.10); background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%); color: #223429; border-radius: 22px; padding: 20px; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; box-shadow: 0 8px 20px rgba(31,59,45,.04); }
.service-btn:active, .barber-btn:active, .primary-btn:active, .fab:active { transform: scale(.97); }
.service-btn { display: flex; justify-content: space-between; align-items: center; text-align: left; }
.service-btn strong { display: block; }
.service-btn small { display: block; margin-top: 4px; opacity: .45; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.service-price { color: #b3873d; font-weight: 950; font-style: italic; font-size: 20px; }
.barber-btn { min-height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.avatar { width: 62px; height: 62px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(135deg, #fffefb 0%, #f0f4ef 100%); border: 1px solid rgba(201,163,95,.14); color: #33513f; font-size: 26px; font-weight: 900; }
.back-btn { border: 0; background: transparent; color: #7a897f; text-transform: uppercase; font-size: 10px; font-weight: 900; letter-spacing: .14em; margin-bottom: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 9px; font-weight: 900; text-transform: uppercase; color: #919b93; letter-spacing: .14em; padding-left: 8px; }
.client-card input, .client-card select { width: 100%; border: 1px solid rgba(52,80,61,.12); background: #fffefb; color: #24352b; padding: 16px; border-radius: 16px; outline: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.client-card select option { color: #111; }
.primary-btn { width: 100%; border: 0; color: white; background: linear-gradient(135deg, #365846 0%, #587565 100%); padding: 18px; border-radius: 20px; font-size: 12px; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 14px 30px rgba(31,59,45,.14); }
.confirmed { text-align: center; padding: 44px 0; }
.confirmed-icon { width: 82px; height: 82px; border-radius: 999px; display: grid; place-items: center; background: rgba(53,88,70,.08); color: #3f614f; font-size: 44px; margin: 0 auto 22px; border: 1px solid rgba(201,163,95,.14); }
.admin-link { margin-top: 20px; border: 1px solid rgba(201,163,95,.16); background: rgba(255,255,255,.72); color: #617166; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 900; border-radius: 999px; padding: 12px 16px; box-shadow: 0 8px 20px rgba(31,59,45,.04); }
.admin-link:hover { background: rgba(255,255,255,.94); }
.muted-center { text-align: center; padding: 30px 0; color: #99a39c; font-style: italic; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; }

.admin-page { min-height: 100vh; background: var(--admin-bg); color: #171717; padding-bottom: 108px; }
.admin-header { position: sticky; top: 0; z-index: 20; background: white; padding: 42px 20px 22px; border-bottom: 1px solid #f0f0f0; text-align: center; }
.admin-header h1 { margin: 0; font-size: 18px; letter-spacing: .18em; text-transform: uppercase; font-style: italic; font-weight: 950; }
.admin-main { width: 100%; max-width: 860px; margin: 0 auto; padding: 22px 16px 132px; }
.card { background: white; border: 1px solid var(--line); border-radius: 34px; padding: 22px; box-shadow: 0 14px 36px rgba(0,0,0,.035); }
.metric-card { text-align: center; padding: 38px 24px; position: relative; overflow: hidden; }
.metric-card:before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; background: var(--green); }
.metric-label { margin: 0 0 8px; color: #9ca3af; font-size: 10px; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.metric-value { margin: 0; font-size: clamp(38px, 8vw, 54px); line-height: 1; letter-spacing: -.06em; font-weight: 950; }
.search-box { position: relative; margin-bottom: 18px; }
.search-box input { width: 100%; background: white; border: 1px solid #f0f0f0; border-radius: 24px; padding: 16px 16px 16px 46px; outline: none; box-shadow: 0 10px 30px rgba(0,0,0,.025); }
.search-box span { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: #c7c7c7; }
.row-list { display: grid; gap: 12px; }
.comanda-row, .history-row, .agenda-row, .customer-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: white; border: 1px solid #eee; border-radius: 28px; padding: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.03); }
.comanda-row { cursor: pointer; }
.row-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.badge { min-width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #f8fafc; border: 1px solid #eee; color: #b8b8b8; font-size: 10px; font-weight: 950; }
.row-title { margin: 0; font-size: 13px; font-weight: 950; text-transform: uppercase; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-subtitle { margin: 3px 0 0; font-size: 10px; color: #9ca3af; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.row-price { font-size: 18px; font-weight: 950; white-space: nowrap; }
.green-text { color: var(--ok); }
.tiny-heading { margin: 12px 8px; color: #9ca3af; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .18em; }
.icon-btn { border: 1px solid #eee; background: white; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; }
.delete-btn { border: 0; background: transparent; color: #cfcfcf; font-size: 20px; }
.delete-btn:hover { color: var(--danger); }
.menu-card { overflow: hidden; padding: 0; }
.menu-btn { width: 100%; border: 0; background: white; display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid #f0f0f0; text-align: left; font-weight: 950; text-transform: uppercase; font-size: 13px; }
.menu-btn:last-child { border-bottom: 0; }
.menu-btn.danger { color: var(--danger); background: rgba(229,72,77,.04); font-size: 10px; letter-spacing: .26em; }
.plan-pill { display: inline-block; background: rgba(107,112,92,.11); color: var(--green); padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 950; text-transform: uppercase; }
.assign-btn { border: 0; background: transparent; color: var(--brown); font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .13em; }

.bottom-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; align-items: center; background: white; border-top: 1px solid #eee; padding: 14px 6px calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -18px 60px rgba(0,0,0,.06); }
.nav-btn { border: 0; background: transparent; color: #c7c7c7; min-width: 60px; display: grid; gap: 5px; place-items: center; font-size: 20px; }
.nav-btn strong { font-size: 8px; text-transform: uppercase; letter-spacing: .04em; }
.nav-btn.active { color: #001F3F; }
.fab { position: fixed; bottom: calc(95px + env(safe-area-inset-bottom)); right: 20px; z-index: 45; width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; border: 0; background: var(--brown); color: white; font-size: 32px; box-shadow: 0 22px 45px rgba(167,139,113,.35); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,.62); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet-backdrop { align-items: flex-end; padding: 0; }
.modal { width: 100%; max-width: 470px; background: white; border-radius: 42px; padding: 30px; position: relative; max-height: 88vh; overflow-y: auto; box-shadow: 0 25px 90px rgba(0,0,0,.35); }
.sheet { border-radius: 44px 44px 0 0; max-width: 560px; padding-top: 22px; }
.handle { width: 54px; height: 6px; background: #eee; border-radius: 999px; margin: 0 auto 22px; }
.close-btn { position: absolute; top: 26px; right: 26px; border: 0; background: transparent; color: #bdbdbd; font-size: 28px; }
.modal-title { text-align: center; margin: 10px 40px 26px; color: #9ca3af; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .16em; }
.form { display: grid; gap: 13px; }
.form input, .form select { width: 100%; background: #f9fafb; border: 1px solid #eee; padding: 16px; border-radius: 18px; outline: 0; font-weight: 750; }
.form label { color: #9ca3af; font-size: 9px; font-weight: 950; text-transform: uppercase; letter-spacing: .12em; padding-left: 8px; }
.dark-btn { width: 100%; border: 0; background: #111; color: white; padding: 19px; border-radius: 24px; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .18em; }
.outline-btn { border: 1px solid #eee; background: #f8fafc; padding: 13px; border-radius: 16px; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; max-height: 190px; overflow-y: auto; }
.product-btn { border: 1px solid #eee; background: #f9fafb; border-radius: 16px; padding: 14px; display: flex; justify-content: space-between; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.summary-box { background: #f9fafb; border: 1px solid #eee; padding: 22px; border-radius: 28px; display: grid; gap: 12px; }
.summary-line { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #444; }
.total-line { border-top: 1px solid #e5e7eb; padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.total-line small { color: #9ca3af; font-size: 10px; font-weight: 950; text-transform: uppercase; letter-spacing: .14em; }
.total-line strong { font-size: 28px; font-weight: 950; font-style: italic; }
.plan-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(107,112,92,.11); border: 1px solid rgba(107,112,92,.22); border-radius: 24px; padding: 18px; }
.plan-box p { margin: 0; font-size: 10px; color: var(--green); font-weight: 950; text-transform: uppercase; letter-spacing: .13em; }
.plan-box strong { display: block; margin-top: 4px; font-size: 13px; color: #333; }
.use-plan-btn { border: 0; background: var(--green); color: white; border-radius: 14px; padding: 12px 15px; font-size: 10px; font-weight: 950; text-transform: uppercase; }
.toast { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 200; width: calc(100% - 32px); max-width: 520px; background: #111; color: white; padding: 14px 18px; border-radius: 18px; font-size: 13px; font-weight: 800; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }

@media (max-width: 430px) {
  .client-card { width: 100%; max-width: 500px; background: rgba(255,255,255,.98); border: 1px solid rgba(201,163,95,.14); border-radius: 32px; padding: 28px; box-shadow: 0 16px 38px rgba(31,59,45,.06); backdrop-filter: blur(8px); }
  .grid-2 { gap: 9px; }
  .modal { padding: 26px; border-radius: 34px; }
  .row-price { font-size: 15px; }
}

/* Ajustes para perfis: cliente, barbeiro, caixa e admin */
.booking-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(35,64,45,.04) 0%, rgba(201,163,95,.08) 100%); color: #5e7064; font-size: 13px; font-weight: 800; }
.booking-summary span { color:var(--brown); }
.booking-summary strong { color: #23372b; font-size: 14px; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(201,163,95,.26), transparent); margin: 8px 0 2px; }
.confirm-text { margin: 0 0 24px; color: #718076; line-height: 1.6; }
.muted-center.light { color:#9ca3af; opacity:.8; }
.admin-header { display:flex; justify-content:center; align-items:center; gap:16px; position:sticky; }
.admin-header > div { text-align:center; }
.admin-header p { margin:6px 0 0; color:#9ca3af; font-size:10px; font-weight:900; text-transform:uppercase; letter-spacing:.12em; }
.logout-small { position:absolute; right:14px; top:50%; transform:translateY(-50%); border:1px solid #eee; background:#fff; color:#777; border-radius:14px; padding:10px 12px; font-size:10px; font-weight:950; text-transform:uppercase; }
.grid-dashboard { display:grid; grid-template-columns:2fr 1fr; gap:12px; }
.small-metric { display:grid; align-content:center; text-align:center; min-height:150px; }
.small-value { margin:0; font-size:42px; font-weight:950; letter-spacing:-.04em; }
.light-avatar { width:48px !important; height:48px !important; background:#f9fafb !important; color:#c7c7c7 !important; border-color:#eee !important; font-size:22px !important; }
.row-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.status-pill { display:inline-block; margin-top:7px; border-radius:999px; padding:5px 8px; font-size:9px; font-weight:950; text-transform:uppercase; letter-spacing:.08em; background:#f1f5f9; color:#64748b; }
.status-scheduled { background:#eff6ff; color:#2563eb; }
.status-in_progress { background:#fff7ed; color:#ea580c; }
.status-completed { background:#ecfdf5; color:#16a34a; }
.status-cancelled { background:#fef2f2; color:#dc2626; }
.access-card { margin-top:14px; color:#444; line-height:1.55; }
.access-card h3 { margin:0 0 10px; text-transform:uppercase; font-size:12px; letter-spacing:.16em; }
.access-card p { margin:8px 0; font-size:13px; }
.big-title { color:#111 !important; font-size:22px !important; letter-spacing:-.02em !important; font-style:italic !important; }
@media (max-width: 640px) { .grid-dashboard { grid-template-columns:1fr; } .logout-small { position:static; transform:none; } .admin-header { justify-content:space-between; text-align:left; } .admin-header > div { text-align:left; } .agenda-row, .customer-row, .comanda-row { align-items:flex-start; } .row-actions { width:100%; justify-content:flex-end; } }

/* Saldos independentes por barbeiro */
.barber-stats-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr)); gap:12px; }
.barber-stat-card { display:grid; gap:14px; }
.barber-stat-head { display:flex; align-items:center; gap:12px; }
.stat-line { display:flex; align-items:center; justify-content:space-between; gap:12px; border-top:1px solid #f1f5f9; padding-top:12px; }
.stat-line span { color:#9ca3af; font-size:10px; font-weight:950; text-transform:uppercase; letter-spacing:.12em; }
.stat-line strong { font-size:18px; font-weight:950; color:#111; white-space:nowrap; }
.mini-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.modal-help { margin:2px 6px 0; color:#9ca3af; font-size:12px; line-height:1.5; font-weight:700; }
@media (max-width:640px){ .mini-actions{ width:100%; justify-content:flex-start; margin-top:10px; } }

.brand-logo-wrap { display:flex; justify-content:center; align-items:center; margin:0 auto 14px; }
.brand-logo { width:min(300px,78vw); max-width:100%; height:auto; display:block; object-fit:contain; filter: drop-shadow(0 10px 24px rgba(31,59,45,.08)); }
.small-logo { width:min(205px,58vw); }




  .small-logo { width:min(205px,58vw); }
  .client-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 38px 16px 56px; background: radial-gradient(circle at top center, rgba(201,163,95,.10), transparent 22%), radial-gradient(circle at right top, rgba(35,64,45,.05), transparent 18%), linear-gradient(180deg, #fffdf9 0%, #f7f3eb 48%, #f1ece3 100%); color: #26362c; overflow: hidden; }
  .client-page::after {
    background-position: center 155px;
    background-size: min(410px, 88vw);
    opacity: .024;
    filter: blur(2px);
  }
  .client-header h1 { font-size: 26px; }
  .client-header p { letter-spacing: .34em; }
  .client-lead { font-size: 13px; }
  .client-card { width: 100%; max-width: 500px; background: rgba(255,255,255,.98); border: 1px solid rgba(201,163,95,.14); border-radius: 32px; padding: 28px; box-shadow: 0 16px 38px rgba(31,59,45,.06); backdrop-filter: blur(8px); }


/* Fundo suave com logo transparente real */
.client-page::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('./logo-bg-soft.png?v=2.4.0');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: min(980px, 100vw);
  pointer-events: none;
  z-index: 0;
}
.client-card,
.client-header,
.admin-link {
  position: relative;
  z-index: 2;
}
@media (max-width: 640px) {
  .brand-logo { width: min(250px, 76vw); }
  .small-logo { width: min(178px, 54vw); }
  .client-page::after {
    background-size: min(620px, 110vw);
    background-position: center 20px;
  }
}


/* Consulta de agendamentos e opinião do cliente */
.lookup-card {
  margin-top: 18px;
}
.lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.lookup-row input,
.review-form textarea,
.review-form select {
  width: 100%;
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  color: #24352b;
  padding: 15px;
  border-radius: 16px;
  outline: 0;
  font-size: 16px;
}
.lookup-btn {
  border: 0;
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  color: white;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(31,59,45,.12);
}
.lookup-btn.full {
  width: 100%;
}
.lookup-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.lookup-appointment {
  border: 1px solid rgba(201,163,95,.16);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.lookup-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.lookup-head strong {
  color: #223429;
  font-size: 14px;
}
.lookup-head p {
  margin: 5px 0 0;
  color: #7b877f;
  font-size: 12px;
  line-height: 1.4;
}
.review-form {
  display: grid;
  gap: 9px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(201,163,95,.18);
}
.review-form label {
  color: #7b877f;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.review-form textarea {
  resize: vertical;
  min-height: 82px;
}
.review-saved {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(53,88,70,.08);
  color: #365846;
}
.review-saved strong {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.review-saved span {
  color: #b3873d;
  font-size: 17px;
}
.review-saved p {
  margin: 0;
  color: #617166;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .lookup-row {
    grid-template-columns: 1fr;
  }
  .lookup-btn {
    width: 100%;
  }
  .lookup-head {
    display: grid;
  }
}





/* Menu lateral recolhível no cliente */
.client-menu-toggle {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top));
  left: 18px;
  z-index: 120;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201,163,95,.20);
  background: rgba(255,255,255,.88);
  color: #365846;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(31,59,45,.10);
  backdrop-filter: blur(10px);
}
.client-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  background: rgba(18, 28, 22, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.client-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.client-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 140;
  width: min(330px, 86vw);
  padding: calc(18px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));
  background: rgba(255,253,249,.96);
  border-right: 1px solid rgba(201,163,95,.18);
  box-shadow: 24px 0 80px rgba(31,59,45,.18);
  transform: translateX(-105%);
  transition: transform .25s ease;
  backdrop-filter: blur(14px);
  overflow-y: auto;
}
.client-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.drawer-head img {
  width: 150px;
  height: auto;
  display: block;
}
.drawer-head button {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  background: rgba(53,88,70,.08);
  color: #365846;
  font-size: 26px;
  line-height: 1;
}
.drawer-menu {
  display: grid;
  gap: 10px;
}
.drawer-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid rgba(52,80,61,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  color: #223429;
  border-radius: 22px;
  padding: 15px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.drawer-item > span {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(53,88,70,.08);
  color: #365846;
  font-size: 18px;
  flex: 0 0 auto;
}
.drawer-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.drawer-item small {
  display: block;
  color: #7b877f;
  font-size: 11px;
  line-height: 1.35;
}
.drawer-item.active {
  border-color: rgba(179,135,61,.32);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,239,229,.98) 100%);
  box-shadow: 0 10px 24px rgba(31,59,45,.08);
}
.drawer-item.active > span {
  background: #365846;
  color: #fff;
}
.drawer-note {
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(53,88,70,.06);
  color: #617166;
}
.drawer-note strong {
  display: block;
  color: #355644;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 8px;
}
.drawer-note p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.lookup-card-panel {
  display: grid;
  gap: 0;
}
@media (max-width: 640px) {
  .client-menu-toggle {
    top: calc(12px + env(safe-area-inset-top));
    left: 12px;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 22px;
  }
  .drawer-head img {
    width: 138px;
  }
}


/* Topo somente com a logo */
.client-header .brand-logo-wrap {
  margin-bottom: 0;
}
.client-header {
  margin-bottom: 20px;
}
.client-header .brand-logo {
  width: min(310px, 80vw);
}
@media (max-width: 640px) {
  .client-header .brand-logo {
    width: min(260px, 78vw);
  }
}


/* Correção iPhone: campos dentro do card sem estourar largura */
.client-card,
.client-main-card,
.lookup-card-panel {
  overflow: hidden;
}
.client-card *,
.modal * {
  max-width: 100%;
}
.field,
.stack,
.grid-2 {
  min-width: 0;
}
.client-card input,
.client-card select,
.client-card textarea,
.modal input,
.modal select,
.modal textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
  box-sizing: border-box;
}
.client-card input[type="date"],
.client-card input[type="time"],
.client-card select,
.modal input[type="date"],
.modal input[type="time"],
.modal select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 52px;
  line-height: 1.2;
  padding-right: 14px;
}
#booking_date,
#booking_time,
#booking_client_name,
#booking_client_phone {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
@media (max-width: 640px) {
  .client-card {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    padding-left: 20px;
    padding-right: 20px;
  }
  .client-page {
    padding-left: 16px;
    padding-right: 16px;
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}


/* Foto do funcionário no agendamento */
.barber-photo {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(201,163,95,.28);
  box-shadow: 0 10px 24px rgba(31,59,45,.10);
  background: #f7f3eb;
}
.barber-btn .barber-photo {
  margin-bottom: 2px;
}
.modal input[type="file"],
.client-card input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(201,163,95,.35);
  background: #fffefb;
  color: #617166;
  padding: 14px;
  border-radius: 16px;
}


/* Cadastro externo de funcionário e aprovação do admin */
.staff-request-box {
  margin-top: 18px;
  border-top: 1px solid rgba(201,163,95,.18);
  padding-top: 14px;
}
.staff-request-box summary {
  cursor: pointer;
  color: #365846;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  text-align: center;
  list-style: none;
}
.staff-request-box summary::-webkit-details-marker {
  display: none;
}
.staff-request-form {
  margin-top: 14px;
}
.barber-photo {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  border: 2px solid rgba(201,163,95,.28);
  box-shadow: 0 10px 24px rgba(31,59,45,.10);
  background: #f7f3eb;
}
.barber-btn .barber-photo {
  margin-bottom: 2px;
}
.small-employee-photo {
  width: 52px;
  height: 52px;
}
.modal input[type="file"],
.client-card input[type="file"] {
  width: 100%;
  border: 1px dashed rgba(201,163,95,.35);
  background: #fffefb;
  color: #617166;
  padding: 14px;
  border-radius: 16px;
}
.approval-row {
  align-items: center;
}
.approval-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pending-badge {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #365846;
  color: white;
  font-size: 11px;
  margin-left: 6px;
}
@media (max-width: 640px) {
  .approval-row {
    display: grid;
    gap: 12px;
  }
  .approval-actions {
    justify-content: stretch;
  }
  .approval-actions button {
    flex: 1;
  }
}


/* Janela flutuante para cadastro externo de funcionário */
.soft-btn {
  width: 100%;
  border: 1px solid rgba(201,163,95,.18);
  background: linear-gradient(180deg, #fffefb 0%, #f8f4ec 100%);
  color: #365846;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(31,59,45,.05);
}
.register-float-backdrop {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: rgba(16, 24, 19, .44);
  backdrop-filter: blur(4px);
}
.register-float-window {
  position: fixed;
  z-index: 230;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 28px));
  max-height: min(86vh, 760px);
  overflow-y: auto;
  border-radius: 28px;
  border: 1px solid rgba(201,163,95,.18);
  background: rgba(255,253,249,.98);
  box-shadow: 0 28px 80px rgba(31,59,45,.22);
  padding: 22px;
}
.register-float-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.register-float-head h3 {
  margin: 0 0 6px;
  color: #223429;
  font-size: 22px;
}
.register-float-head p {
  margin: 0;
  color: #738279;
  font-size: 13px;
  line-height: 1.5;
}
.register-close-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  background: rgba(53,88,70,.08);
  color: #365846;
  font-size: 28px;
  line-height: 1;
}
@media (max-width: 640px) {
  .register-float-window {
    width: calc(100vw - 20px);
    padding: 18px;
    border-radius: 24px;
  }
  .register-float-head h3 {
    font-size: 19px;
  }
}


/* Visual premium da janela flutuante de cadastro */
.register-float-window {
  background:
    radial-gradient(circle at top left, rgba(201,163,95,.10), transparent 34%),
    linear-gradient(180deg, #fffdf8 0%, #f7f2e9 100%) !important;
  border: 1px solid rgba(201,163,95,.22) !important;
  border-radius: 34px !important;
  padding: 28px !important;
  box-shadow:
    0 32px 90px rgba(21, 36, 27, .26),
    inset 0 1px 0 rgba(255,255,255,.8) !important;
}

.register-float-head {
  margin-bottom: 22px !important;
}

.register-float-head h3 {
  font-size: 28px !important;
  line-height: 1.05 !important;
  color: #21382b !important;
  letter-spacing: -.03em !important;
}

.register-float-head p {
  max-width: 390px;
  color: #748076 !important;
  font-size: 15px !important;
}

.register-close-btn {
  width: 54px !important;
  height: 54px !important;
  border-radius: 20px !important;
  background: rgba(53,88,70,.09) !important;
  color: #365846 !important;
  font-size: 30px !important;
  transition: transform .15s ease, background .15s ease;
}

.register-close-btn:active {
  transform: scale(.95);
}

.floating-register-form {
  display: grid;
  gap: 14px;
}

.register-float-window .field {
  display: grid;
  gap: 7px;
}

.register-float-window .field label {
  padding-left: 10px;
  color: #879286 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
}

.register-float-window input[type="text"],
.register-float-window input[type="password"],
.register-float-window input[type="file"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(53,88,70,.14) !important;
  background: rgba(255,255,255,.82) !important;
  color: #21382b !important;
  border-radius: 18px !important;
  min-height: 56px;
  padding: 16px 18px !important;
  outline: none;
  font-size: 16px !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.75),
    0 8px 18px rgba(31,59,45,.035);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.register-float-window input::placeholder {
  color: #9aa39a !important;
}

.register-float-window input[type="text"]:focus,
.register-float-window input[type="password"]:focus,
.register-float-window input[type="file"]:focus {
  border-color: rgba(179,135,61,.45) !important;
  background: #fffefb !important;
  box-shadow:
    0 0 0 4px rgba(201,163,95,.13),
    0 10px 24px rgba(31,59,45,.06) !important;
}

.register-float-window input[type="file"] {
  cursor: pointer;
  padding: 10px !important;
  color: #65756a !important;
}

.register-float-window input[type="file"]::file-selector-button {
  border: 0;
  margin-right: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  color: white;
  padding: 12px 16px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.register-float-window .file-field small {
  padding-left: 10px;
  color: #8c978d;
  font-size: 12px;
  line-height: 1.4;
}

.register-float-window .primary-btn {
  margin-top: 4px;
  border-radius: 22px !important;
  min-height: 62px;
  background: linear-gradient(135deg, #365846 0%, #4f715d 100%) !important;
  box-shadow: 0 18px 42px rgba(54,88,70,.20) !important;
  letter-spacing: .16em !important;
}

.register-float-backdrop {
  background:
    radial-gradient(circle at center, rgba(201,163,95,.12), transparent 36%),
    rgba(16, 24, 19, .48) !important;
  backdrop-filter: blur(7px) !important;
}

@media (max-width: 640px) {
  .register-float-window {
    width: calc(100vw - 18px) !important;
    padding: 22px !important;
    border-radius: 28px !important;
  }

  .register-float-head {
    gap: 10px !important;
  }

  .register-float-head h3 {
    font-size: 23px !important;
  }

  .register-float-head p {
    font-size: 13px !important;
  }

  .register-close-btn {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
  }

  .register-float-window input[type="text"],
  .register-float-window input[type="password"],
  .register-float-window input[type="file"] {
    min-height: 54px;
    font-size: 16px !important;
  }

  .register-float-window input[type="file"]::file-selector-button {
    display: block;
    width: 100%;
    margin: 0 0 8px 0;
  }
}


/* Horários ocupados no agendamento */
.occupied-hint {
  display: block;
  margin-top: 7px;
  padding-left: 8px;
  color: #8c978d;
  font-size: 11px;
  line-height: 1.35;
}
.client-card select option:disabled {
  color: #999;
  background: #f2eee6;
}


/* Horário de funcionamento e disponibilidade do barbeiro */
.day-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.day-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  border-radius: 16px;
  padding: 12px 8px;
  color: #365846;
  font-size: 12px;
  font-weight: 900;
}
.day-check input {
  width: auto !important;
  min-height: auto !important;
}
.availability-card {
  margin-bottom: 14px;
}
.availability-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.availability-head h3 {
  margin: 0 0 6px;
  color: #223429;
}
.availability-head p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.45;
}
.availability-head input {
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  color: #24352b;
  border-radius: 16px;
  padding: 13px 14px;
  min-width: 160px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}
.slot-check {
  position: relative;
  display: block;
  cursor: pointer;
}
.slot-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slot-check span {
  display: grid;
  place-items: center;
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(52,80,61,.12);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  color: #617166;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 7px 18px rgba(31,59,45,.04);
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.slot-check input:checked + span,
.slot-check.active span {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  color: #fff;
  border-color: rgba(201,163,95,.26);
  box-shadow: 0 10px 24px rgba(31,59,45,.14);
}
.slot-check:active span {
  transform: scale(.97);
}
@media (max-width: 640px) {
  .day-check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .availability-head {
    display: grid;
  }
  .availability-head input {
    width: 100%;
  }
  .slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Fluxo de retiradas barbeiro -> caixa -> admin */
.withdrawal-card h3 {
  margin: 0 0 6px;
  color: #223429;
}
.withdrawal-card p {
  margin: 0 0 14px;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.withdrawal-card textarea,
.modal textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  color: #24352b;
  padding: 14px;
  border-radius: 16px;
  outline: 0;
  resize: vertical;
}
.withdrawal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(52,80,61,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.withdrawal-actions {
  gap: 8px;
  flex-wrap: wrap;
}
.withdrawal-pill {
  margin-top: 8px;
}
.status-withdrawal-pending_admin {
  border-color: rgba(201,163,95,.26);
}
.status-withdrawal-approved {
  border-color: rgba(53,88,70,.22);
}
.status-withdrawal-rejected {
  border-color: rgba(180,70,70,.20);
}
@media (max-width: 640px) {
  .withdrawal-row {
    display: grid;
  }
  .withdrawal-actions {
    justify-content: stretch;
  }
  .withdrawal-actions button {
    flex: 1;
  }
}


/* Relatórios por data */
.report-filter-card {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 16px;
  align-items: end;
}
.report-filter-card h3,
.report-section h3 {
  margin: 0 0 6px;
  color: #223429;
}
.report-filter-card p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.report-filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.report-filter-grid input {
  width: 100%;
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  color: #24352b;
  padding: 13px 14px;
  border-radius: 16px;
  outline: 0;
}
.report-section {
  overflow: hidden;
}
.report-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.report-table-head,
.report-table-row {
  display: grid;
  gap: 8px;
  align-items: center;
}
.report-table-head {
  color: #8c978d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
  padding: 0 10px;
}
.report-table-row {
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border: 1px solid rgba(52,80,61,.10);
  border-radius: 18px;
  padding: 14px 10px;
  color: #5d6e63;
  box-shadow: 0 7px 18px rgba(31,59,45,.035);
}
.report-table-row strong {
  color: #223429;
}
.report-barber-grid {
  grid-template-columns: 1.2fr .5fr .75fr .75fr .75fr .75fr .7fr .85fr;
}
.report-cashier-grid {
  grid-template-columns: 1.25fr .7fr 1fr .8fr .8fr .9fr;
}
.report-cash-session-grid {
  grid-template-columns: 1.1fr 1.1fr .85fr 1.1fr .9fr .7fr .75fr;
}
.report-cash-session-grid small {
  display: block;
  color: #8c978d;
  font-size: 10px;
  margin-top: 3px;
}
.cashier-cash-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.report-grid-inline {
  display: grid;
  gap: 8px;
  align-items: center;
}
.report-detail-row {
  display: block;
}
.report-item-detail {
  margin: 8px 0 0;
  color: #7b877f;
  font-size: 11px;
  line-height: 1.45;
}
.report-item-detail strong {
  color: #415244;
}
.dashboard-report-row {
  margin-bottom: 0;
}
.report-simple-grid {
  grid-template-columns: 1.4fr .7fr .9fr;
}
.report-note {
  text-align: center;
  color: #7b877f;
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 90px;
}
@media (max-width: 760px) {
  .report-filter-card {
    grid-template-columns: 1fr;
  }
  .report-filter-grid {
    grid-template-columns: 1fr;
  }
  .report-table-head {
    display: none;
  }
  .report-barber-grid,
  .report-cashier-grid,
  .report-cash-session-grid,
  .report-simple-grid {
    grid-template-columns: 1fr;
  }
  .report-table-row {
    gap: 6px;
  }
  .report-detail-row .report-grid-inline {
    gap: 6px;
  }
  .report-item-detail {
    font-size: 10px;
  }
  .report-table-row span,
  .report-table-row strong {
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }
  .report-barber-grid span:nth-child(2)::before { content: 'Cortes'; color: #8c978d; }
  .report-barber-grid span:nth-child(3)::before { content: 'Serviços'; color: #8c978d; }
  .report-barber-grid span:nth-child(4)::before { content: 'Comissão'; color: #8c978d; }
  .report-barber-grid span:nth-child(5)::before { content: 'Produtos'; color: #8c978d; }
  .report-barber-grid span:nth-child(6)::before { content: 'Efetivo'; color: #8c978d; }
  .report-barber-grid span:nth-child(7)::before { content: 'QR'; color: #8c978d; }
  .report-barber-grid strong:nth-child(8)::before { content: 'Total'; color: #8c978d; font-weight: 700; }
  .report-cashier-grid span:nth-child(2)::before { content: 'Comandas'; color: #8c978d; }
  .report-cashier-grid span:nth-child(3)::before { content: 'Venda direta'; color: #8c978d; }
  .report-cashier-grid span:nth-child(4)::before { content: 'Efetivo'; color: #8c978d; }
  .report-cashier-grid span:nth-child(5)::before { content: 'QR'; color: #8c978d; }
  .report-cashier-grid strong:nth-child(6)::before { content: 'Total'; color: #8c978d; font-weight: 700; }
  .report-cash-session-grid span:nth-child(2)::before { content: 'Aberto por'; color: #8c978d; }
  .report-cash-session-grid strong:nth-child(3)::before { content: 'Abertura'; color: #8c978d; font-weight: 700; }
  .report-cash-session-grid span:nth-child(4)::before { content: 'Fechado por'; color: #8c978d; }
  .report-cash-session-grid strong:nth-child(5)::before { content: 'Fechamento'; color: #8c978d; font-weight: 700; }
  .report-cash-session-grid span:nth-child(6)::before { content: 'Status'; color: #8c978d; }
  .report-cash-session-grid span:nth-child(7)::before { content: 'Ação'; color: #8c978d; }
  .report-simple-grid span:nth-child(2)::before { content: 'Quantidade'; color: #8c978d; }
  .report-simple-grid strong:nth-child(3)::before { content: 'Total'; color: #8c978d; font-weight: 700; }
}


/* Seleção de múltiplos serviços no agendamento */
.multi-service-btn {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 112px;
  column-gap: 14px;
  row-gap: 4px;
  align-items: center;
  width: 100%;
  min-height: 86px;
  text-align: left;
}
.multi-service-btn.active {
  border-color: rgba(179,135,61,.35);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(245,239,229,.98) 100%);
  box-shadow: 0 12px 28px rgba(31,59,45,.08);
}
.service-check {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(53,88,70,.08);
  color: #365846;
  font-weight: 950;
  flex: 0 0 auto;
  justify-self: start;
}
.service-info {
  min-width: 0;
  display: block;
  text-align: left;
  justify-self: stretch;
}
.multi-service-btn .service-info strong {
  display: block;
  margin: 0;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: normal;
}
.multi-service-btn .service-info small {
  display: block;
  margin-top: 6px;
  text-align: left;
}
.multi-service-btn .service-price {
  min-width: 102px;
  justify-self: end;
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
}
.multi-service-btn.active .service-check {
  background: #365846;
  color: white;
}
.selected-services-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(201,163,95,.22);
  background: rgba(255,253,249,.90);
  border-radius: 20px;
  padding: 15px 16px;
  color: #617166;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.selected-services-box span {
  font-size: 13px;
  font-weight: 800;
}
.selected-services-box strong {
  color: #365846;
  font-size: 18px;
}
@media (max-width: 640px) {
  .multi-service-btn {
    grid-template-columns: 40px minmax(0, 1fr) 92px;
    gap: 10px;
    min-height: 82px;
    padding: 16px 14px;
  }
  .service-check {
    width: 38px;
    height: 38px;
  }
  .multi-service-btn .service-price {
    min-width: 88px;
    font-size: 18px;
  }
}


/* Caixa: clientes e gerenciamento de planos */
.customer-plan-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}
.plan-manager-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.plan-manager-card h3 {
  margin: 0 0 6px;
  color: #223429;
}
.plan-manager-card p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.plan-row .badge {
  background: rgba(201,163,95,.15);
  color: #9a7433;
}
@media (max-width: 640px) {
  .customer-plan-actions {
    justify-items: stretch;
    text-align: left;
    width: 100%;
  }
  .customer-row {
    align-items: start;
  }
  .plan-manager-card {
    display: grid;
  }
}


/* Admin: gerenciamento de serviços */
.service-manager-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.service-manager-card h3 {
  margin: 0 0 6px;
  color: #223429;
}
.service-manager-card p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.service-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(52,80,61,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.service-manager-row.inactive {
  opacity: .68;
  filter: grayscale(.1);
}
.service-manager-row.inactive .badge {
  background: rgba(110,118,113,.10);
  color: #7b877f;
}
.service-manager-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .service-manager-card,
  .service-manager-row {
    display: grid;
  }
  .service-manager-actions {
    justify-content: stretch;
  }
  .service-manager-actions button {
    flex: 1;
  }
}


/* Admin: gerenciamento de funcionários e barbeiros */
.staff-manager-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.staff-manager-card h3 {
  margin: 0 0 6px;
  color: #223429;
}
.staff-manager-card p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.employee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(52,80,61,.10);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.employee-row.inactive {
  opacity: .65;
  filter: grayscale(.15);
}
.employee-actions {
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
@media (max-width: 640px) {
  .staff-manager-card,
  .employee-row {
    display: grid;
  }
  .employee-actions {
    justify-content: stretch;
  }
  .employee-actions button {
    flex: 1;
  }
}


/* Botão apagar definitivo */
.text-delete-btn {
  width: auto;
  min-width: 78px;
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 900;
}


/* Botão apagar comanda */
.danger-wide-btn {
  width: 100%;
  border: 1px solid rgba(180,70,70,.18);
  background: rgba(180,70,70,.08);
  color: #9b2f2f;
  border-radius: 18px;
  padding: 15px 16px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.danger-wide-btn:active {
  transform: scale(.98);
}


/* Agendamento profissional por dia da semana e hora */
.booking-schedule-panel {
  display: grid;
  gap: 16px;
}
.booking-block-title {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 2px;
}
.booking-block-title > span {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  color: white;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(31,59,45,.12);
}
.booking-block-title strong {
  display: block;
  color: #223429;
  font-size: 14px;
}
.booking-block-title small {
  display: block;
  color: #7b877f;
  font-size: 12px;
  margin-top: 2px;
}
.booking-days-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(76px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding: 3px 2px 7px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.booking-days-scroll::-webkit-scrollbar {
  height: 4px;
}
.booking-days-scroll::-webkit-scrollbar-thumb {
  background: rgba(53,88,70,.18);
  border-radius: 999px;
}
.booking-day-card {
  scroll-snap-align: start;
  min-height: 96px;
  border: 1px solid rgba(52,80,61,.12);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  color: #365846;
  border-radius: 22px;
  padding: 12px 10px;
  display: grid;
  place-items: center;
  gap: 3px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.booking-day-card span {
  color: #7b877f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.booking-day-card strong {
  font-size: 28px;
  line-height: 1;
  color: #223429;
}
.booking-day-card small {
  color: #9a7433;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.booking-day-card.active {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  border-color: rgba(201,163,95,.28);
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(31,59,45,.16);
}
.booking-day-card.active span,
.booking-day-card.active strong,
.booking-day-card.active small {
  color: white;
}
.booking-day-card.closed {
  opacity: .45;
  filter: grayscale(.2);
}
.booking-hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
}
.booking-hour-chip {
  min-height: 64px;
  border: 1px solid rgba(52,80,61,.12);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  color: #365846;
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.booking-hour-chip strong {
  font-size: 18px;
  color: #223429;
}
.booking-hour-chip span {
  font-size: 10px;
  color: #7b877f;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .10em;
}
.booking-hour-chip.active {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  border-color: rgba(201,163,95,.28);
  box-shadow: 0 14px 32px rgba(31,59,45,.16);
}
.booking-hour-chip.active strong,
.booking-hour-chip.active span {
  color: white;
}
.booking-hour-chip.disabled {
  opacity: .48;
  filter: grayscale(.2);
}
.booking-empty {
  grid-column: 1 / -1;
  padding: 18px 10px !important;
}
@media (max-width: 640px) {
  .booking-days-scroll {
    grid-auto-columns: 74px;
  }
  .booking-day-card {
    min-height: 88px;
    border-radius: 20px;
  }
  .booking-day-card strong {
    font-size: 24px;
  }
  .booking-hours-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .booking-hour-chip {
    min-height: 60px;
  }
}


/* Caixa: separar comandas abertas de agendamentos */
.agenda-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border: 1px solid rgba(52,80,61,.10);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(31,59,45,.035);
}
@media (max-width: 640px) {
  .agenda-detail-row {
    display: grid;
    align-items: start;
  }
}


.comanda-locked-card {
  margin: 0;
  box-shadow: none;
  background: rgba(53,88,70,.05);
}


/* Detalhe do barbeiro nos agendamentos do caixa */
.agenda-detail-row .row-subtitle strong {
  color: #365846;
}


/* Tela Caixa sem saldo geral */
.caixa-info-card {
  margin-bottom: 12px;
}
.caixa-comanda-row {
  border-color: rgba(201,163,95,.18);
}
.caixa-charge-box {
  display: grid;
  justify-items: end;
  gap: 4px;
}
.caixa-charge-box span {
  color: #8c978d;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.caixa-charge-box strong {
  color: #223429;
  font-size: 20px;
}
@media (max-width: 640px) {
  .caixa-charge-box {
    justify-items: start;
    width: 100%;
  }
}


/* Barbeiro: criar agendamento na própria agenda */
.barber-schedule-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.barber-schedule-action h3 {
  margin: 0 0 6px;
  color: #223429;
}
.barber-schedule-action p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .barber-schedule-action {
    display: grid;
  }
}


/* Barbeiro adiciona produtos sem cobrar */
.barber-summary-box .summary-line span:last-child {
  color: #365846;
  font-weight: 800;
}


/* Admin: clientes cadastrados, clientes com planos e WhatsApp */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 7px;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, .22);
  background: rgba(37, 211, 102, .10);
  color: #128C4A;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.admin-client-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(220px, .9fr) minmax(220px, 1fr);
  gap: 14px;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  border: 1px solid rgba(52,80,61,.10);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(31,59,45,.04);
}
.admin-client-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.admin-client-stats span {
  display: grid;
  place-items: center;
  gap: 3px;
  background: rgba(53,88,70,.06);
  border-radius: 16px;
  padding: 10px 8px;
}
.admin-client-stats strong {
  color: #223429;
  font-size: 22px;
  line-height: 1;
}
.admin-client-stats small {
  color: #7b877f;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
}
.admin-client-plan {
  display: grid;
  gap: 7px;
  justify-items: end;
  text-align: right;
}
.admin-client-plan .mini-actions {
  justify-content: flex-end;
  gap: 6px;
}
.muted-plan {
  background: rgba(120,120,120,.08) !important;
  color: #7b877f !important;
}
.plan-action-btn {
  width: 150px !important;
  min-width: 150px !important;
  max-width: 150px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 10px !important;
  border: 1px solid rgba(201,163,95,.22) !important;
  background: rgba(255,253,249,.92) !important;
  border-radius: 999px !important;
  color: #365846 !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  line-height: 1 !important;
  text-align: center !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 16px rgba(31,59,45,.05) !important;
}
@media (max-width: 900px) {
  .admin-client-row {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .admin-client-plan {
    justify-items: stretch;
    text-align: left;
  }
  .admin-client-plan .mini-actions {
    justify-content: stretch;
  }
  .admin-client-plan .mini-actions button,
  .admin-client-plan .mini-actions .whatsapp-btn {
    flex: 1;
  }
}

/* Botão flutuante: visível somente na Agenda para caixa/barbeiro */
.fab {
  z-index: 60;
}


/* Ajuste cards estatísticos dos clientes no admin */
.admin-client-stats {
  grid-template-columns: repeat(3, minmax(72px, 1fr)) !important;
  gap: 7px !important;
  min-width: 0 !important;
}

.admin-client-stats span {
  min-width: 0 !important;
  min-height: 64px !important;
  padding: 9px 5px !important;
  border-radius: 15px !important;
  overflow: hidden !important;
}

.admin-client-stats strong {
  font-size: 20px !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}

.admin-client-stats small {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 7.5px !important;
  letter-spacing: .03em !important;
  line-height: 1.15 !important;
  text-align: center !important;
}

/* Em telas médias, deixa os cards mais largos antes de quebrar */
@media (max-width: 1100px) {
  .admin-client-row {
    grid-template-columns: 1fr !important;
  }

  .admin-client-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* No celular, os nomes não saem do card */
@media (max-width: 640px) {
  .admin-client-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .admin-client-stats span {
    min-height: 58px !important;
    padding: 8px 4px !important;
  }

  .admin-client-stats strong {
    font-size: 18px !important;
  }

  .admin-client-stats small {
    font-size: 7px !important;
    letter-spacing: 0 !important;
  }
}


/* Barbeiro: seleção de múltiplos horários sem desmarcar antes de salvar */
.availability-unsaved {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(201,163,95,.12);
  color: #7a5b24;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.slot-check input:checked + span {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  color: #fff;
  border-color: rgba(201,163,95,.26);
  box-shadow: 0 10px 24px rgba(31,59,45,.14);
}


/* Barbeiro: menu organizado na agenda */
.barber-agenda-menu {
  overflow: hidden;
  padding: 0;
  margin-bottom: 14px;
}

.barber-agenda-menu .menu-btn {
  gap: 12px;
}

.menu-btn-main {
  display: grid;
  gap: 4px;
}

.menu-btn-main strong {
  color: #223429;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.menu-btn-main small {
  color: #7b877f;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

.barber-search-menu {
  display: grid;
  gap: 12px;
  padding: 20px 24px 24px;
  background: rgba(53,88,70,.035);
  border-top: 1px solid #f0f0f0;
}

.barber-search-menu input {
  width: 100%;
  border: 1px solid rgba(52,80,61,.12);
  background: #fffefb;
  color: #24352b;
  padding: 15px 16px;
  border-radius: 18px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

.barber-search-menu input:focus {
  border-color: rgba(179,135,61,.34);
  box-shadow: 0 0 0 4px rgba(201,163,95,.10);
}

@media (max-width: 640px) {
  .barber-search-menu {
    padding: 18px;
  }
}


/* Barbeiro: cancelar/alterar horários livres */
.availability-slot-grid {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}
.slot-toggle {
  min-height: 64px;
  border: 1px solid rgba(52,80,61,.12);
  background: linear-gradient(180deg, #ffffff 0%, #fcfaf6 100%);
  color: #617166;
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 8px;
  box-shadow: 0 7px 18px rgba(31,59,45,.04);
  transition: transform .12s ease, background .12s ease, color .12s ease, border-color .12s ease;
}
.slot-toggle strong {
  color: #223429;
  font-size: 17px;
  line-height: 1;
}
.slot-toggle span {
  color: #7b877f;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}
.slot-toggle.active {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
  border-color: rgba(201,163,95,.28);
  box-shadow: 0 12px 26px rgba(31,59,45,.15);
}
.slot-toggle.active strong,
.slot-toggle.active span {
  color: #fff;
}
.slot-toggle.occupied {
  outline: 2px solid rgba(201,163,95,.22);
}
.slot-toggle:active {
  transform: scale(.97);
}
.availability-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
@media (max-width: 640px) {
  .availability-slot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .availability-actions {
    grid-template-columns: 1fr;
  }
}


/* Proteção contra reset dos campos do cadastro */
.register-float-window .modal-help {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(53,88,70,.06);
  color: #617166;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}


/* Cadastro mobile: mantém campos ao escolher foto */
.file-field small {
  overflow-wrap: anywhere;
}

/* Correção visual da tela de agendamentos: nomes e horários sempre alinhados */
.agenda-row,
.agenda-detail-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 14px;
}

.agenda-row .row-left,
.agenda-detail-row .row-left {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.agenda-row .row-left > div:not(.badge),
.agenda-detail-row .row-left > div:not(.badge) {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.agenda-row .badge,
.agenda-detail-row .badge {
  width: 56px;
  min-width: 56px;
  height: 46px;
  flex: 0 0 56px;
  text-align: center;
}

.agenda-row .row-title,
.agenda-detail-row .row-title,
.agenda-row .row-subtitle,
.agenda-detail-row .row-subtitle {
  text-align: left;
}

.agenda-row .row-title,
.agenda-detail-row .row-title {
  display: block;
  max-width: 100%;
  line-height: 1.2;
}

.agenda-row .row-subtitle,
.agenda-detail-row .row-subtitle {
  line-height: 1.4;
  white-space: normal;
}

.agenda-row .status-pill,
.agenda-detail-row .status-pill {
  width: max-content;
  max-width: 100%;
}

.agenda-row .row-actions {
  width: auto;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .agenda-row,
  .agenda-detail-row {
    grid-template-columns: 1fr;
    align-items: start !important;
    gap: 12px;
    padding: 16px;
  }

  .agenda-row .row-left,
  .agenda-detail-row .row-left {
    align-items: flex-start;
  }

  .agenda-row .badge,
  .agenda-detail-row .badge {
    margin-top: 1px;
  }

  .agenda-row .row-actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 70px;
  }

  .agenda-row .row-actions .outline-btn,
  .agenda-row .row-actions .delete-btn {
    min-height: 38px;
  }
}

@media (max-width: 420px) {
  .agenda-row .row-left,
  .agenda-detail-row .row-left {
    gap: 10px;
  }

  .agenda-row .badge,
  .agenda-detail-row .badge {
    width: 52px;
    min-width: 52px;
    flex-basis: 52px;
    font-size: 9px;
  }

  .agenda-row .row-actions {
    padding-left: 62px;
  }
}

/* Ajustes caixa: produtos, planos, venda direta e pagamento */
.cashier-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}
.cashier-action-card {
  border: 1px solid #eee;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  text-align: left;
  box-shadow: 0 10px 28px rgba(0,0,0,.03);
  display: grid;
  gap: 6px;
}
.cashier-action-card strong {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  color: #172018;
}
.cashier-action-card small {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.cashier-scheduled-row,
.direct-sale-row,
.product-manager-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border: 1px solid #eee;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,.03);
}
.cashier-row-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.payment-box {
  display: grid;
  gap: 10px;
  background: #f9fafb;
  border: 1px solid #eee;
  border-radius: 24px;
  padding: 16px;
}
.payment-box .field select {
  width: 100%;
  background: #fff;
  border: 1px solid #eee;
  padding: 14px;
  border-radius: 16px;
  font-weight: 900;
  outline: 0;
}
.product-manager-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.product-manager-card h3 {
  margin: 0 0 6px;
  color: #223429;
}
.product-manager-card p {
  margin: 0;
  color: #7b877f;
  font-size: 13px;
  line-height: 1.5;
}
.direct-cut-menu-btn {
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
}

@media (max-width: 640px) {
  .cashier-action-grid {
    grid-template-columns: 1fr;
  }
  .cashier-scheduled-row,
  .direct-sale-row,
  .product-manager-row,
  .product-manager-card {
    display: grid;
    align-items: start;
  }
  .cashier-row-actions {
    justify-content: flex-start;
    padding-left: 62px;
  }
  .product-manager-card .mini-actions {
    width: 100%;
  }
}


/* Ajuste fino: caixa, confirmação de venda direta e planos no mobile */
.cashier-sale-confirm-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
  border-color: rgba(22, 163, 74, .16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fff9 100%);
}
.cashier-sale-confirm-card h3 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  color: #172018;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cashier-sale-confirm-card p {
  margin: 0;
  color: #7b877f;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}
.cashier-sale-confirm-card strong {
  font-size: 18px;
  font-weight: 950;
  color: #16A34A;
  white-space: nowrap;
}
.cashier-sale-confirm-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, .10);
  color: #16A34A;
  font-weight: 950;
  border: 1px solid rgba(22, 163, 74, .16);
}
.direct-sales-list .row-left > div:not(.badge),
.plans-page .row-left > div:not(.badge),
.product-manager-row .row-left > div:not(.badge) {
  min-width: 0;
}
.direct-sales-list .row-subtitle {
  line-height: 1.35;
}
.plans-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}
.plans-page .row-list {
  width: 100%;
  max-width: 100%;
}
.plan-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center !important;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.plan-row .row-left {
  min-width: 0;
  width: 100%;
}
.plan-row .row-title,
.plan-row .row-subtitle {
  max-width: 100%;
}
.plan-row .row-price {
  justify-self: end;
  text-align: right;
  min-width: 98px;
}
.plan-manager-card .dark-btn {
  white-space: nowrap;
}
@media (max-width: 640px) {
  .cashier-sale-confirm-card {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .cashier-sale-confirm-card strong {
    grid-column: 2;
    justify-self: start;
  }
  .direct-sale-row,
  .product-manager-row {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .direct-sale-row .row-price,
  .product-manager-row .row-price {
    justify-self: start;
    margin-left: 58px;
  }
  .plan-manager-card {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .plan-manager-card .dark-btn {
    width: 100%;
    min-width: 0;
  }
  .plan-row {
    grid-template-columns: 1fr;
    align-items: start !important;
    padding: 16px;
  }
  .plan-row .row-price {
    justify-self: start;
    text-align: left;
    min-width: 0;
    margin-left: 58px;
    font-size: 17px;
  }
  .plan-row .row-title {
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    line-height: 1.25;
  }
  .plans-page .row-subtitle {
    line-height: 1.35;
  }
}
@media (max-width: 380px) {
  .plan-row .row-price,
  .direct-sale-row .row-price,
  .product-manager-row .row-price {
    margin-left: 0;
  }
}


/* Confirmação de venda no caixa e edição de serviços da comanda */
.cashier-screen-notice {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  border-color: rgba(22, 163, 74, .20);
  background: linear-gradient(180deg, #ffffff 0%, #f6fff8 100%);
}
.cashier-screen-notice-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, .12);
  color: #16A34A;
  font-weight: 950;
  border: 1px solid rgba(22, 163, 74, .18);
}
.cashier-screen-notice h3 {
  margin: 0 0 4px;
  color: #172018;
  font-size: 15px;
  font-weight: 950;
}
.cashier-screen-notice p {
  margin: 0;
  color: #6f7d73;
  font-size: 12px;
  font-weight: 800;
}
.cashier-screen-notice strong {
  color: #16A34A;
  font-size: 18px;
  font-weight: 950;
  white-space: nowrap;
}
.notice-close-btn {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  background: rgba(22, 163, 74, .10);
  color: #15803D;
  font-size: 20px;
  font-weight: 950;
}
.service-summary-list {
  display: grid;
  gap: 8px;
}
.service-summary-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}
.service-summary-line span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-danger-btn {
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff1f2;
  color: #be123c;
  font-size: 11px;
  font-weight: 950;
}
.summary-help-text {
  margin: -2px 0 4px;
  color: #8c978d;
  font-size: 11px;
  line-height: 1.35;
}
@media (max-width: 640px) {
  .cashier-screen-notice {
    grid-template-columns: 46px minmax(0, 1fr) 34px;
  }
  .cashier-screen-notice strong {
    grid-column: 2 / 3;
    justify-self: start;
  }
  .notice-close-btn {
    grid-column: 3;
    grid-row: 1;
  }
  .service-summary-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .service-summary-line .mini-danger-btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Caixa: edição/cobrança de planos e controle de clientes com plano */
.plan-dashboard-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.danger-metric-card {
  border-color: rgba(220, 38, 38, .22) !important;
  background: rgba(254, 242, 242, .82) !important;
}
.danger-metric-card .small-value {
  color: #b91c1c;
}
.plan-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.plan-catalog-card {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.plan-card-top .badge,
.plan-catalog-card .badge {
  background: rgba(201,163,95,.15);
  color: #9a7433;
}
.plan-catalog-card h3 {
  margin: 0;
  font-size: 17px;
  color: #223429;
  overflow-wrap: anywhere;
}
.plan-catalog-card p {
  margin: 0;
  color: #7b877f;
  font-size: 12px;
  font-weight: 800;
}
.plan-catalog-card strong {
  font-size: 20px;
  color: #111827;
  font-weight: 950;
}
.compact-edit-btn {
  padding: 8px 11px !important;
  min-height: auto !important;
  font-size: 10px !important;
  white-space: nowrap;
}
.plan-alert-card {
  display: grid;
  gap: 10px;
  border-color: rgba(220, 38, 38, .16) !important;
  background: rgba(254, 242, 242, .7) !important;
}
.plan-alert-card h3 {
  margin: 0;
  color: #991b1b;
}
.plan-alert-card p {
  margin: 0;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.45;
}
.plan-alert-list {
  display: grid;
  gap: 8px;
}
.plan-alert-row {
  border: 1px solid rgba(220, 38, 38, .14);
  background: #fff;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
}
.plan-alert-row span {
  font-weight: 900;
  color: #2c2c2c;
  min-width: 0;
  overflow-wrap: anywhere;
}
.plan-alert-row strong {
  color: #b91c1c;
  white-space: nowrap;
  font-size: 12px;
}
.plan-clients-list {
  width: 100%;
  max-width: 100%;
}
.plan-client-row,
.client-plan-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: center !important;
  gap: 14px;
  width: 100%;
  max-width: 100%;
}
.plan-client-row .row-left,
.client-plan-row .row-left {
  min-width: 0;
}
.plan-mini-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}
.compact-plan-actions .plan-mini-actions {
  justify-content: flex-end;
}
.dark-mini-btn {
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 13px;
  padding: 9px 11px;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}
.plan-empty-pill {
  background: rgba(220, 38, 38, .10) !important;
  color: #b91c1c !important;
}
.plan-low-pill {
  background: rgba(245, 158, 11, .13) !important;
  color: #92400e !important;
}
.plan-payment-alert-card h3 {
  margin-bottom: 4px;
}
.plan-payment-alert-card p {
  margin: 0;
}
@media (max-width: 900px) {
  .plan-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .plan-dashboard-grid,
  .plan-card-grid {
    grid-template-columns: 1fr;
  }
  .plan-client-row,
  .client-plan-row {
    grid-template-columns: 1fr;
    align-items: start !important;
    padding: 16px;
  }
  .plan-client-row .customer-plan-actions,
  .client-plan-row .customer-plan-actions,
  .plan-mini-actions,
  .compact-plan-actions .plan-mini-actions {
    width: 100%;
    justify-items: stretch;
    justify-content: stretch;
    text-align: left;
  }
  .plan-mini-actions button,
  .plan-mini-actions .whatsapp-btn {
    width: 100%;
  }
  .plan-alert-row {
    display: grid;
  }
  .plan-alert-row strong {
    white-space: normal;
  }
}

.optional-label{font-size:.78em;font-weight:700;color:var(--muted,#8a8f98);margin-left:4px;text-transform:none;}

/* Caixa/Admin: correção de serviço da comanda */
.comanda-service-edit-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  background: rgba(248, 250, 252, .95) !important;
}
.comanda-service-edit-card h3 {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .10em;
  color: #111827;
}
.comanda-service-edit-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}
.comanda-service-edit-card .outline-btn {
  width: 100%;
}


/* Caixa: finalizar atendimento antes do pagamento */
.caixa-charge-box small {
  color: #8c978d;
  font-size: 11px;
  font-weight: 900;
}
.primary-mini-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  background: #223429;
  color: #fff;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(34,52,41,.16);
}
.primary-mini-btn:active {
  transform: translateY(1px);
}
.payment-locked-box h3 {
  margin: 0;
  color: #223429;
}
.payment-locked-box p {
  margin: 0;
  color: #6f7c73;
  font-size: 13px;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .caixa-charge-box .primary-mini-btn {
    width: 100%;
  }
}


.cashier-cash-open-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(31,59,45,.08);
}
.cashier-cash-open-card h3 {
  margin: 4px 0;
  color: #223429;
}
.cashier-cash-open-card p {
  margin: 0;
  color: #6f7d74;
  font-size: 12px;
  line-height: 1.45;
}
.cashier-cash-open-card.warning {
  background: linear-gradient(135deg, #fffaf0, #ffffff);
}
.cashier-cash-open-card.active {
  background: linear-gradient(135deg, #f0fff7, #ffffff);
}
@media (max-width: 620px) {
  .cashier-cash-open-card {
    align-items: stretch;
    flex-direction: column;
  }
  .cashier-cash-open-card .dark-btn {
    width: 100%;
  }
}


/* ===== Upgrade visual da área pública do cliente - v8.5.0 ===== */
html {
  scroll-behavior: smooth;
}
.client-home-page {
  padding: 104px 16px 56px;
}
.client-shell {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.client-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 160;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(12px + env(safe-area-inset-top)) 18px 12px;
  background: rgba(255, 253, 249, .84);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,163,95,.14);
  box-shadow: 0 10px 30px rgba(31,59,45,.06);
}
.client-topbar-brand {
  border: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
}
.client-topbar-brand img {
  width: 132px;
  height: auto;
  display: block;
}
.client-topbar-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.client-topbar-links button {
  border: 1px solid rgba(52,80,61,.10);
  background: rgba(255,255,255,.82);
  color: #284034;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(31,59,45,.04);
}
.client-topbar-links button:hover {
  background: #365846;
  color: #fff;
}
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  border: 1px solid rgba(201,163,95,.16);
  background: rgba(255,255,255,.48);
  box-shadow: 0 20px 60px rgba(31,59,45,.08);
}
.hero-carousel-track {
  display: flex;
  width: 300%;
  animation: heroSlideLoop 18s infinite;
}
.hero-slide {
  position: relative;
  flex: 0 0 33.333333%;
  width: 33.333333%;
  min-height: 430px;
  padding: 46px;
  display: flex;
  align-items: end;
  overflow: hidden;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(19,35,28,.74) 0%, rgba(19,35,28,.46) 38%, rgba(19,35,28,.14) 100%),
    radial-gradient(circle at 75% 18%, rgba(214,181,118,.34), transparent 28%),
    radial-gradient(circle at 90% 90%, rgba(88,117,101,.40), transparent 26%);
}
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .36;
  background-size: cover;
  background-position: center;
  mix-blend-mode: soft-light;
}
.hero-slide-one::after {
  background-image: url('./carousel-barberia-1.jpg?v=8.5.12');
  background-size: cover;
  background-position: center center;
  opacity: .88;
  mix-blend-mode: normal;
}
.hero-slide-two::after {
  background-image: url('./carousel-barberia-2.jpg?v=8.5.12');
  background-size: cover;
  background-position: center center;
  opacity: .88;
  mix-blend-mode: normal;
}
.hero-slide-three::after {
  background-image: url('./carousel-barberia-3.jpg?v=8.5.12');
  background-size: cover;
  background-position: center center;
  opacity: .88;
  mix-blend-mode: normal;
}
.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  color: #fffaf2;
}
.hero-slide-brand {
  max-width: 620px;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color: #f8ddb0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-slide h1,
.hero-slide h2 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 950;
}
.hero-slide p {
  margin: 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,250,242,.86);
}
.hero-logo-badge {
  width: fit-content;
  padding: 14px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 36px rgba(0,0,0,.12);
}
.hero-logo-badge img {
  display: block;
  width: min(260px, 52vw);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.18));
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hero-cta {
  border: 0;
  border-radius: 18px;
  padding: 15px 20px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-cta.primary {
  background: linear-gradient(135deg, #d7b16d 0%, #b3873d 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(179,135,61,.28);
}
.hero-cta.secondary {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
}
.hero-carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-carousel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  animation: heroDots 18s infinite;
}
.hero-carousel-dots span:nth-child(2) { animation-delay: 6s; }
.hero-carousel-dots span:nth-child(3) { animation-delay: 12s; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.hero-metric-card {
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(201,163,95,.16);
  background: rgba(255,255,255,.78);
  box-shadow: 0 14px 34px rgba(31,59,45,.05);
}
.hero-metric-card strong {
  display: block;
  color: #223429;
  font-size: 14px;
  margin-bottom: 6px;
}
.hero-metric-card span {
  color: #6f7b73;
  font-size: 12px;
  line-height: 1.55;
}
.client-section {
  margin-top: 28px;
  scroll-margin-top: 108px;
}
.section-card-head {
  max-width: 760px;
  margin: 0 auto 12px;
  text-align: center;
}
.section-card-head span {
  display: inline-block;
  margin-bottom: 8px;
  color: #9a7433;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.section-card-head h2 {
  margin: 0;
  color: #1f3026;
  font-size: clamp(26px, 3.3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section-card-head p {
  margin: 10px auto 0;
  color: #6c776f;
  max-width: 620px;
  font-size: 14px;
  line-height: 1.65;
}
.client-main-card,
.client-secondary-card,
.public-access-card {
  max-width: 880px;
  margin: 0 auto;
}
.public-access-card p {
  text-align: center;
}
.public-access-card .primary-btn {
  margin-top: 8px;
}
@keyframes heroSlideLoop {
  0%, 29% { transform: translateX(0); }
  33%, 62% { transform: translateX(-33.333333%); }
  66%, 95% { transform: translateX(-66.666666%); }
  100% { transform: translateX(0); }
}
@keyframes heroDots {
  0%, 29% { transform: scale(1.35); background: #f2d092; }
  33%, 100% { transform: scale(1); background: rgba(255,255,255,.35); }
}
@media (max-width: 860px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .hero-slide {
    min-height: 390px;
    padding: 32px 28px 38px;
  }
}
@media (max-width: 640px) {
  .client-home-page {
    padding-top: 132px;
  }
  .client-topbar {
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    flex-direction: column;
    align-items: stretch;
  }
  .client-topbar-brand {
    justify-content: center;
  }
  .client-topbar-brand img {
    width: 120px;
    margin: 0 auto;
  }
  .client-topbar-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .client-topbar-links::-webkit-scrollbar {
    display: none;
  }
  .client-topbar-links button {
    white-space: nowrap;
    padding: 10px 14px;
    font-size: 10px;
  }
  .hero-carousel {
    border-radius: 28px;
  }
  .hero-slide {
    min-height: 360px;
    padding: 24px 22px 30px;
    align-items: end;
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: 28px;
  }
  .hero-slide p {
    font-size: 13px;
    line-height: 1.6;
  }
  .hero-logo-badge {
    padding: 12px 14px;
    border-radius: 20px;
  }
  .hero-logo-badge img {
    width: min(220px, 58vw);
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-cta {
    width: 100%;
    justify-content: center;
  }
  .client-section {
    margin-top: 22px;
    scroll-margin-top: 116px;
  }
}

/* ===== Refinamento responsivo e visual mais escuro - v8.5.1 ===== */
body {
  background: #d8d0c1;
}
.client-home-page {
  padding: 108px 16px 54px;
  background:
    radial-gradient(circle at 20% 0%, rgba(201,163,95,.16), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(53,88,70,.14), transparent 32%),
    linear-gradient(180deg, #d8d0c1 0%, #cec4b1 46%, #c4b8a3 100%);
}
.client-home-page::after {
  opacity: .05;
  filter: blur(1px);
  background-position: center 72px;
}
.client-topbar {
  top: 14px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 1080px;
  border-radius: 24px;
  padding: 10px 12px;
  background: rgba(36, 52, 43, .92);
  border: 1px solid rgba(232,210,167,.18);
  box-shadow: 0 16px 42px rgba(31, 45, 36, .18);
}
.client-topbar-brand {
  min-width: 154px;
  border-radius: 18px;
  padding: 7px 10px;
  background: rgba(255,255,255,.92);
}
.client-topbar-brand img {
  width: 126px;
}
.client-topbar-links {
  gap: 8px;
}
.client-topbar-links button {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  color: #fff8ed;
  box-shadow: none;
  padding: 11px 15px;
}
.client-topbar-links button:hover {
  background: rgba(215,177,109,.96);
  color: #24342b;
}
.hero-carousel {
  border-radius: 34px;
  background: #26382f;
  border-color: rgba(232,210,167,.18);
  box-shadow: 0 22px 70px rgba(40, 54, 45, .22);
}
.hero-slide {
  min-height: 390px;
  padding: 42px 46px 58px;
}
.hero-slide::before {
  background:
    linear-gradient(110deg, rgba(20,32,27,.80) 0%, rgba(31,52,42,.56) 44%, rgba(39,58,48,.24) 100%),
    radial-gradient(circle at 78% 18%, rgba(214,181,118,.28), transparent 30%),
    radial-gradient(circle at 86% 90%, rgba(88,117,101,.36), transparent 28%);
}
.hero-slide::after {
  opacity: .30;
}
.hero-logo-badge {
  background: rgba(255,255,255,.92);
  border-color: rgba(232,210,167,.24);
}
.hero-logo-badge img {
  width: min(238px, 50vw);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.08));
}
.hero-kicker {
  margin-top: 16px;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.16);
}
.hero-carousel-dots {
  bottom: 20px;
  background: rgba(0,0,0,.16);
  padding: 8px 10px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.hero-carousel-dots span {
  width: 8px;
  height: 8px;
}
.hero-metrics {
  display: none;
}
.client-section {
  margin-top: 34px;
  scroll-margin-top: 112px;
}
.section-card-head h2 {
  color: #213229;
}
.section-card-head p {
  color: #516258;
}
.client-main-card,
.client-secondary-card,
.public-access-card {
  border-radius: 30px;
  background: rgba(255, 253, 247, .94);
  border-color: rgba(91, 115, 99, .18);
  box-shadow: 0 18px 52px rgba(48, 61, 51, .13);
}
.service-btn,
.barber-btn,
.booking-day-card,
.booking-hour-chip,
.lookup-appointment {
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe3 100%);
}
.primary-btn,
.lookup-btn {
  background: linear-gradient(135deg, #2f4c3d 0%, #496754 100%);
  box-shadow: 0 14px 30px rgba(47,76,61,.18);
}
.multi-service-btn.active,
.booking-day-card.active,
.booking-hour-chip.active {
  background: linear-gradient(135deg, #2f4c3d 0%, #496754 100%);
}
@media (min-width: 1024px) {
  .client-main-card,
  .client-secondary-card,
  .public-access-card {
    max-width: 780px;
  }
  .client-section {
    margin-top: 38px;
  }
}
@media (max-width: 760px) {
  .client-home-page {
    padding: 132px 12px 42px;
  }
  .client-topbar {
    top: 8px;
    width: calc(100% - 18px);
    border-radius: 22px;
    padding: 9px;
    gap: 8px;
  }
  .client-topbar-brand {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 7px 8px;
  }
  .client-topbar-brand img {
    width: 118px;
  }
  .client-topbar-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, max-content);
    gap: 7px;
    overflow-x: auto;
    justify-content: start;
    padding: 0 2px 2px;
  }
  .client-topbar-links button {
    padding: 10px 12px;
    font-size: 9px;
    letter-spacing: .08em;
  }
  .hero-carousel {
    border-radius: 26px;
  }
  .hero-slide {
    min-height: 360px;
    padding: 24px 20px 58px;
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: 26px;
    line-height: 1.08;
  }
  .hero-slide p {
    font-size: 13px;
  }
  .hero-logo-badge img {
    width: min(190px, 64vw);
  }
  .hero-kicker {
    margin-top: 12px;
    font-size: 9px;
    letter-spacing: .14em;
  }
  .hero-actions {
    margin-top: 16px;
  }
  .hero-cta {
    padding: 13px 15px;
  }
  .hero-carousel-dots {
    bottom: 14px;
  }
  .client-section {
    margin-top: 26px;
    scroll-margin-top: 138px;
  }
  .client-card {
    padding: 22px;
    border-radius: 26px;
  }
  .section-card-head h2 {
    font-size: 25px;
  }
  .section-card-head p {
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .client-home-page {
    padding-top: 136px;
  }
  .client-topbar-links button {
    padding: 9px 10px;
  }
  .hero-slide {
    min-height: 350px;
  }
  .hero-logo-badge img {
    width: min(172px, 62vw);
  }
  .hero-slide h1,
  .hero-slide h2 {
    font-size: 24px;
  }
  .hero-actions .hero-cta {
    width: 100%;
  }
}


/* ===== Ajuste solicitado: menu somente com opções, sem logo e sem ficar fixo ===== */
.client-home-page {
  padding-top: 22px !important;
}
.clean-options-topbar,
.client-topbar.clean-options-topbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  width: min(100%, 760px) !important;
  max-width: 760px !important;
  margin: 0 auto 18px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 8px 10px !important;
  border-radius: 18px !important;
  background: rgba(36, 52, 43, .94) !important;
  border: 1px solid rgba(232,210,167,.18) !important;
  box-shadow: 0 10px 26px rgba(31, 45, 36, .14) !important;
  backdrop-filter: blur(10px);
}
.clean-options-topbar .client-topbar-links {
  width: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  overflow: visible !important;
  padding: 0 !important;
}
.clean-options-topbar .client-topbar-links button {
  min-width: 0 !important;
  padding: 9px 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff8ed !important;
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: .10em !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}
.clean-options-topbar .client-topbar-links button:hover {
  background: rgba(215,177,109,.96) !important;
  color: #24342b !important;
}
.client-section {
  scroll-margin-top: 24px !important;
}
@media (max-width: 760px) {
  .client-home-page {
    padding-top: 12px !important;
  }
  .clean-options-topbar,
  .client-topbar.clean-options-topbar {
    width: 100% !important;
    margin-bottom: 14px !important;
    padding: 7px 8px !important;
    border-radius: 16px !important;
  }
  .clean-options-topbar .client-topbar-links {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .clean-options-topbar .client-topbar-links button {
    width: 100% !important;
    padding: 9px 6px !important;
    font-size: 9px !important;
    letter-spacing: .06em !important;
  }
}
@media (max-width: 360px) {
  .clean-options-topbar .client-topbar-links {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* ===== Ajuste solicitado: opções abaixo das fotos/carrossel ===== */
.clean-options-topbar,
.client-topbar.clean-options-topbar {
  margin: 16px auto 28px !important;
}
@media (max-width: 760px) {
  .clean-options-topbar,
  .client-topbar.clean-options-topbar {
    margin: 12px auto 22px !important;
  }
}


/* ===== Menu inferior fixo do cliente ===== */
.client-home-page {
  padding-bottom: calc(124px + env(safe-area-inset-bottom)) !important;
}
.client-bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 180;
  width: min(560px, calc(100% - 28px));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 26px;
  border: 1px solid rgba(232,210,167,.22);
  background: rgba(36, 52, 43, .96);
  box-shadow: 0 -18px 52px rgba(22, 34, 27, .22);
  backdrop-filter: blur(14px);
}
.client-bottom-nav-item {
  min-width: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: rgba(255,248,237,.82);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 5px;
  padding: 10px 7px;
  min-height: 68px;
  transition: background .15s ease, transform .15s ease, color .15s ease;
}
.client-bottom-nav-item:active {
  transform: scale(.96);
}
.client-bottom-nav-item:hover,
.client-bottom-nav-item:focus-visible {
  background: rgba(255,255,255,.08);
  color: #fff8ed;
  outline: none;
}
.bottom-nav-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255,255,255,.10);
  color: #f0cf8f;
  font-size: 18px;
  line-height: 1;
}
.client-bottom-nav-item strong {
  display: block;
  max-width: 100%;
  color: inherit;
  font-size: 9px;
  line-height: 1.12;
  font-weight: 950;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: normal;
}
@media (max-width: 480px) {
  .client-home-page {
    padding-bottom: calc(112px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav {
    width: calc(100% - 18px);
    bottom: calc(8px + env(safe-area-inset-bottom));
    border-radius: 22px;
    padding: 8px;
    gap: 6px;
  }
  .client-bottom-nav-item {
    min-height: 62px;
    padding: 8px 4px;
    border-radius: 17px;
  }
  .bottom-nav-icon {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
  .client-bottom-nav-item strong {
    font-size: 8px;
    letter-spacing: .04em;
  }
}

/* ===== Ajuste final: menus integrados na tela, sem flutuar ===== */
/* Menu de opções abaixo das fotos: mesmo fundo da página + faixa preta fina */
.clean-options-topbar,
.client-topbar.clean-options-topbar {
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto 26px !important;
  padding: 12px 0 10px !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid rgba(0,0,0,.82) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.clean-options-topbar .client-topbar-links {
  width: 100% !important;
  justify-content: center !important;
  gap: 10px !important;
}
.clean-options-topbar .client-topbar-links button {
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #24342b !important;
  box-shadow: none !important;
  font-size: 10px !important;
  letter-spacing: .12em !important;
}
.clean-options-topbar .client-topbar-links button:hover,
.clean-options-topbar .client-topbar-links button:focus-visible {
  background: transparent !important;
  color: #000 !important;
  text-decoration: underline;
  text-underline-offset: 5px;
  outline: none;
}

/* Menu inferior: agora é parte normal da tela, não fica fixo nem flutuante */
.client-home-page {
  padding-bottom: 56px !important;
}
.client-bottom-nav {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 1 !important;
  align-self: stretch !important;
  width: calc(100% + 32px) !important;
  max-width: none !important;
  margin: 34px -16px -56px !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 12px 10px calc(14px + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(0,0,0,.82) !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.client-bottom-nav-item {
  border-radius: 0 !important;
  background: transparent !important;
  color: #24342b !important;
  min-height: 64px !important;
  padding: 8px 4px !important;
}
.client-bottom-nav-item:hover,
.client-bottom-nav-item:focus-visible {
  background: rgba(0,0,0,.035) !important;
  color: #000 !important;
}
.bottom-nav-icon {
  background: transparent !important;
  color: #24342b !important;
  border-radius: 0 !important;
  width: 28px !important;
  height: 28px !important;
}
.client-bottom-nav-item strong {
  color: inherit !important;
}

@media (max-width: 760px) {
  .clean-options-topbar,
  .client-topbar.clean-options-topbar {
    width: 100% !important;
    margin: 0 auto 22px !important;
    padding: 10px 0 9px !important;
  }
  .clean-options-topbar .client-topbar-links {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0 !important;
  }
  .clean-options-topbar .client-topbar-links button {
    padding: 10px 4px !important;
    font-size: 9px !important;
  }
}
@media (max-width: 480px) {
  .client-home-page {
    padding-bottom: 50px !important;
  }
  .client-bottom-nav {
    width: calc(100% + 32px) !important;
    margin: 30px -16px -50px !important;
    padding: 10px 8px calc(12px + env(safe-area-inset-bottom)) !important;
    border-radius: 0 !important;
    gap: 0 !important;
  }
  .client-bottom-nav-item {
    min-height: 58px !important;
  }
  .client-bottom-nav-item strong {
    font-size: 8px !important;
    letter-spacing: .035em !important;
  }
}

/* ===== Ajuste v8.5.4: faixa abaixo das opções + menu inferior fixo integrado ===== */
.clean-options-topbar,
.client-topbar.clean-options-topbar {
  border-top: 0 !important;
  border-bottom: 1px solid rgba(0,0,0,.86) !important;
  padding: 10px 0 12px !important;
  margin: 0 auto 26px !important;
}

.clean-options-topbar .client-topbar-links {
  padding-bottom: 0 !important;
}

.client-home-page {
  padding-bottom: calc(102px + env(safe-area-inset-bottom)) !important;
}

.client-bottom-nav {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  transform: none !important;
  z-index: 180 !important;
  align-self: auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  padding: 9px 10px calc(10px + env(safe-area-inset-bottom)) !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(0,0,0,.16) !important;
  background: #fffdf9 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.client-bottom-nav-item {
  border-radius: 0 !important;
  background: transparent !important;
  color: #24342b !important;
  min-height: 62px !important;
  padding: 8px 4px !important;
}

.client-bottom-nav-item:hover,
.client-bottom-nav-item:focus-visible {
  background: rgba(36,52,43,.06) !important;
  color: #000 !important;
  outline: none !important;
}

.bottom-nav-icon {
  background: transparent !important;
  color: #24342b !important;
  border-radius: 0 !important;
  width: 28px !important;
  height: 28px !important;
}

.client-bottom-nav-item strong {
  color: inherit !important;
}

@media (max-width: 480px) {
  .client-home-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 8px calc(9px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav-item {
    min-height: 58px !important;
  }
}


/* ===== Ajuste v8.5.5: destacar mais as opções abaixo das fotos ===== */
.clean-options-topbar .client-topbar-links {
  gap: 14px !important;
}

.clean-options-topbar .client-topbar-links button {
  min-width: 122px !important;
  padding: 13px 18px !important;
  border: 1px solid rgba(36,52,43,.14) !important;
  border-radius: 14px !important;
  background: #fffefb !important;
  color: #1f2f26 !important;
  font-size: 11px !important;
  font-weight: 950 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  box-shadow: 0 10px 22px rgba(31,59,45,.08) !important;
}

.clean-options-topbar .client-topbar-links button:hover,
.clean-options-topbar .client-topbar-links button:focus-visible {
  background: #24342b !important;
  color: #fff8ed !important;
  text-decoration: none !important;
  box-shadow: 0 14px 28px rgba(31,59,45,.16) !important;
  transform: translateY(-1px);
}

.clean-options-topbar .client-topbar-links button:active {
  transform: scale(.98);
}

@media (max-width: 760px) {
  .clean-options-topbar .client-topbar-links {
    gap: 8px !important;
  }
  .clean-options-topbar .client-topbar-links button {
    min-width: 0 !important;
    width: 100% !important;
    padding: 12px 8px !important;
    font-size: 9px !important;
    border-radius: 12px !important;
  }
}


/* ===== Ajuste v8.5.6: menu inferior menor e verde como o banner ===== */
.client-home-page {
  padding-bottom: calc(74px + env(safe-area-inset-bottom)) !important;
}

.client-bottom-nav {
  min-height: 0 !important;
  padding: 5px 10px calc(6px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(240,207,143,.28) !important;
  background: linear-gradient(135deg, #24342b 0%, #365846 52%, #587565 100%) !important;
  box-shadow: 0 -8px 22px rgba(31,59,45,.16) !important;
}

.client-bottom-nav-item {
  min-height: 48px !important;
  padding: 5px 4px !important;
  gap: 2px !important;
  color: #fff8ed !important;
}

.client-bottom-nav-item:hover,
.client-bottom-nav-item:focus-visible {
  background: rgba(255,255,255,.10) !important;
  color: #fff8ed !important;
}

.bottom-nav-icon {
  width: 22px !important;
  height: 22px !important;
  color: #f0cf8f !important;
  font-size: 15px !important;
}

.client-bottom-nav-item strong {
  font-size: 7.5px !important;
  line-height: 1.05 !important;
  letter-spacing: .035em !important;
  color: inherit !important;
}

@media (max-width: 480px) {
  .client-home-page {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav {
    padding: 5px 8px calc(6px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav-item {
    min-height: 46px !important;
    padding: 4px 3px !important;
  }
  .bottom-nav-icon {
    width: 21px !important;
    height: 21px !important;
    font-size: 14px !important;
  }
  .client-bottom-nav-item strong {
    font-size: 7px !important;
  }
}


/* ===== Ajuste v8.5.7: opções simples + faixa verde na selecionada ===== */
.clean-options-topbar .client-topbar-links {
  gap: 18px !important;
}

.clean-options-topbar .client-topbar-links button {
  position: relative !important;
  min-width: 0 !important;
  width: auto !important;
  padding: 10px 12px 13px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #24342b !important;
  font-size: 10px !important;
  font-weight: 950 !important;
  letter-spacing: .12em !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  transform: none !important;
}

.clean-options-topbar .client-topbar-links button::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 4px;
  border-radius: 999px;
  background: transparent;
  transition: background .15s ease;
}

.clean-options-topbar .client-topbar-links button.active::after {
  background: linear-gradient(135deg, #365846 0%, #587565 100%);
}

.clean-options-topbar .client-topbar-links button:hover,
.clean-options-topbar .client-topbar-links button:focus-visible {
  background: transparent !important;
  color: #365846 !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transform: none !important;
  outline: none !important;
}

@media (max-width: 760px) {
  .clean-options-topbar .client-topbar-links {
    gap: 0 !important;
  }
  .clean-options-topbar .client-topbar-links button {
    width: 100% !important;
    padding: 10px 4px 13px !important;
    font-size: 9px !important;
    border-radius: 0 !important;
  }
}


/* ===== Ajuste v8.5.8: menu inferior ainda menor e verde ===== */
.client-home-page {
  padding-bottom: calc(66px + env(safe-area-inset-bottom)) !important;
}

.client-bottom-nav {
  min-height: 0 !important;
  padding: 4px 8px calc(5px + env(safe-area-inset-bottom)) !important;
  border-top: 1px solid rgba(240,207,143,.26) !important;
  background: linear-gradient(135deg, #24342b 0%, #365846 52%, #587565 100%) !important;
  box-shadow: 0 -6px 18px rgba(31,59,45,.14) !important;
}

.client-bottom-nav-item {
  min-height: 42px !important;
  padding: 4px 3px !important;
  gap: 1px !important;
  color: #fff8ed !important;
}

.client-bottom-nav-item:hover,
.client-bottom-nav-item:focus-visible {
  background: rgba(255,255,255,.08) !important;
  color: #fff8ed !important;
}

.bottom-nav-icon {
  width: 20px !important;
  height: 20px !important;
  color: #f0cf8f !important;
  font-size: 13px !important;
}

.client-bottom-nav-item strong {
  font-size: 7px !important;
  line-height: 1 !important;
  letter-spacing: .03em !important;
  color: inherit !important;
}

@media (max-width: 480px) {
  .client-home-page {
    padding-bottom: calc(62px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav {
    padding: 4px 6px calc(5px + env(safe-area-inset-bottom)) !important;
  }
  .client-bottom-nav-item {
    min-height: 40px !important;
  }
  .bottom-nav-icon {
    width: 19px !important;
    height: 19px !important;
    font-size: 12px !important;
  }
  .client-bottom-nav-item strong {
    font-size: 6.5px !important;
  }
}


/* ===== Ajuste v8.5.9: serviço selecionado sem pintar o card inteiro ===== */
.multi-service-btn.active {
  background: linear-gradient(180deg, #fffdf8 0%, #f5efe3 100%) !important;
  border-color: rgba(52,80,61,.12) !important;
  box-shadow: 0 8px 20px rgba(31,59,45,.04) !important;
  color: #223429 !important;
}

.multi-service-btn.active .service-info strong,
.multi-service-btn.active .service-info small,
.multi-service-btn.active .service-price {
  color: inherit !important;
}

.multi-service-btn.active .service-check {
  background: #fffefb !important;
  color: #b3873d !important;
  border: 2px solid #b3873d !important;
  box-shadow: 0 6px 14px rgba(179,135,61,.14) !important;
}

.multi-service-btn:not(.active) .service-check {
  background: rgba(53,88,70,.08) !important;
  color: #365846 !important;
  border: 1px solid rgba(53,88,70,.10) !important;
  box-shadow: none !important;
}


/* ===== Ajuste v8.5.10: Meus agendamentos como janela flutuante ===== */
.client-floating-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 10, 10, .46);
  backdrop-filter: blur(8px);
}

.client-floating-modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  overflow-y: auto;
  border-radius: 28px;
  background: #fffdf9;
  border: 1px solid rgba(201,163,95,.22);
  box-shadow: 0 24px 80px rgba(10,10,10,.24);
  padding: 24px;
}

.client-floating-modal .lookup-card-panel {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.client-floating-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(36,52,43,.08);
  color: #24342b;
  font-size: 24px;
  line-height: 1;
  font-weight: 500;
}

.client-floating-close:hover,
.client-floating-close:focus-visible {
  background: rgba(36,52,43,.14);
  outline: none;
}

.client-floating-modal .section-title {
  padding-right: 34px;
}

@media (max-width: 520px) {
  .client-floating-modal-backdrop {
    align-items: flex-end;
    padding: 10px;
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .client-floating-modal {
    width: 100%;
    max-height: 76vh;
    border-radius: 26px;
    padding: 20px;
  }
}


/* ===== Ajuste v8.5.11: equipe como janela flutuante ===== */
.client-team-panel {
  display: grid;
  gap: 16px;
}

.client-floating-modal .modal-card-head {
  margin-bottom: 0;
}

.client-team-modal .modal-team-card {
  margin-top: 0;
}

.client-team-modal .public-access-card {
  margin: 0 !important;
}

.client-team-modal .access-card h3.section-title {
  margin-top: 0;
}


/* ===== Ajuste v8.5.12: fotos reales en el carrusel ===== */
.hero-slide.hero-slide-photo::before {
  background:
    linear-gradient(180deg, rgba(14,22,18,.10) 0%, rgba(14,22,18,.24) 24%, rgba(8,12,10,.72) 100%),
    linear-gradient(100deg, rgba(14,22,18,.62) 0%, rgba(14,22,18,.18) 46%, rgba(14,22,18,.08) 100%);
}

.hero-slide-content-photo {
  max-width: 640px;
}

.hero-slide-content-photo h1,
.hero-slide-content-photo h2 {
  max-width: 700px;
  text-wrap: balance;
}

.hero-slide-content-photo p {
  max-width: 620px;
  color: rgba(255,250,242,.92);
}

.hero-metric-card strong,
.hero-metric-card span {
  text-align: center;
}


/* ===== Ajuste v8.5.13: legenda mínima no carrossel ===== */
.hero-slide-content-minimal {
  max-width: 380px;
}

.hero-slide-content-minimal .hero-kicker {
  padding: 7px 12px;
  font-size: 9px;
  letter-spacing: .16em;
}

.hero-slide-content-minimal h1,
.hero-slide-content-minimal h2 {
  margin: 12px 0 0;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.08;
  max-width: 360px;
}

.hero-slide-content-minimal p,
.hero-slide-content-minimal .hero-actions {
  display: none !important;
}

@media (max-width: 640px) {
  .hero-slide-content-minimal {
    max-width: 300px;
  }

  .hero-slide-content-minimal h1,
  .hero-slide-content-minimal h2 {
    font-size: 22px;
    max-width: 280px;
  }
}


/* ===== Ajuste v8.5.14: fotos nítidas + blur só na legenda ===== */
.hero-slide.hero-slide-photo::before {
  background:
    linear-gradient(180deg, rgba(10,16,13,.04) 0%, rgba(10,16,13,.10) 35%, rgba(10,16,13,.20) 100%),
    linear-gradient(100deg, rgba(10,16,13,.10) 0%, rgba(10,16,13,.05) 44%, rgba(10,16,13,.02) 100%) !important;
}

.hero-slide::after {
  opacity: 1 !important;
}

.hero-slide-content-minimal {
  max-width: 470px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background: rgba(9, 14, 12, .28);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px rgba(0,0,0,.14);
}

.hero-slide-content-minimal .hero-kicker {
  padding: 6px 11px;
  font-size: 8px;
  letter-spacing: .16em;
  background: rgba(255,255,255,.10);
}

.hero-slide-content-minimal h1,
.hero-slide-content-minimal h2 {
  margin: 10px 0 0;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.18;
  max-width: 430px;
}

@media (max-width: 640px) {
  .hero-slide-content-minimal {
    max-width: 320px;
    padding: 12px 14px 14px;
  }
  .hero-slide-content-minimal h1,
  .hero-slide-content-minimal h2 {
    font-size: 17px;
    max-width: 290px;
    line-height: 1.2;
  }
}


/* ===== Ajuste v8.5.15: legenda sem desfoque ===== */
.hero-slide-content-minimal {
  background: rgba(9, 14, 12, .34) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: 0 10px 24px rgba(0,0,0,.12) !important;
}


/* ===== Ajuste v8.5.16: legenda limpa, só texto sobre a foto ===== */
.hero-slide-content-minimal {
  max-width: 470px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

.hero-slide-content-minimal .hero-kicker {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #f8ddb0 !important;
  font-size: 8px !important;
  letter-spacing: .16em !important;
}

.hero-slide-content-minimal h1,
.hero-slide-content-minimal h2 {
  margin: 8px 0 0 !important;
  font-size: clamp(18px, 2.2vw, 24px) !important;
  line-height: 1.18 !important;
  max-width: 430px !important;
  color: #fffaf2 !important;
}

@media (max-width: 640px) {
  .hero-slide-content-minimal {
    max-width: 320px !important;
  }
  .hero-slide-content-minimal h1,
  .hero-slide-content-minimal h2 {
    font-size: 17px !important;
    max-width: 290px !important;
  }
}


/* ===== Ajuste v8.5.17: destacar somente a legenda amarela ===== */
.hero-slide-content-minimal {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.hero-slide-content-minimal .hero-kicker {
  display: inline-flex !important;
  width: fit-content !important;
  padding: 6px 10px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(248, 221, 176, .55) !important;
  background: rgba(248, 221, 176, .94) !important;
  color: #24342b !important;
  font-size: 8px !important;
  font-weight: 950 !important;
  letter-spacing: .15em !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.16) !important;
  text-shadow: none !important;
}

.hero-slide-content-minimal h1,
.hero-slide-content-minimal h2 {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #fffaf2 !important;
}

@media (max-width: 640px) {
  .hero-slide-content-minimal .hero-kicker {
    padding: 5px 9px !important;
    font-size: 7px !important;
  }
}
