/* ==========================================================================
   Design system - inspirado em shadcn/ui
   ========================================================================== */
:root {
  --brand: #FFD000;
  --brand-600: #F2B900;
  --brand-50: #FFF9DB;
  --brand-fg: #18181B;

  --bg: #FAFAF9;
  --panel-bg: #F5F5F4;
  --card: #FFFFFF;
  --fg: #18181B;
  --fg-2: #3F3F46;
  --muted: #F4F4F5;
  --muted-2: #E9E9EB;
  --muted-fg: #71717A;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --ring: #2563EB;

  --info: #2563EB;   --info-bg: #EFF6FF;
  --success: #16A34A; --success-bg: #F0FDF4;
  --warning: #C2410C; --warning-bg: #FFF7ED;
  --danger: #DC2626; --danger-bg: #FEF2F2;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(24,24,27,.05);
  --shadow-sm: 0 1px 3px rgba(24,24,27,.07), 0 1px 2px rgba(24,24,27,.04);
  --shadow: 0 8px 24px -8px rgba(24,24,27,.14), 0 2px 6px rgba(24,24,27,.05);
  --shadow-lg: 0 24px 60px -18px rgba(24,24,27,.28);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sidebar-w: 264px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55;
  color: var(--fg); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
::selection { background: var(--brand); color: var(--brand-fg); }
[hidden] { display: none !important; }

.icon { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; }
.icon-sm svg.lucide, svg.lucide.icon-sm { width: 15px; height: 15px; }
.icon-lg svg.lucide, svg.lucide.icon-lg { width: 22px; height: 22px; }

/* ---------- Utilitarios ---------- */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; }
.flex { display: flex; } .inline-flex { display: inline-flex; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .justify-end { justify-content: flex-end; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; min-width: 0; } .flex-col { flex-direction: column; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.col-span-2 { grid-column: span 2; }
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:12px}.mt-4{margin-top:16px}.mt-6{margin-top:24px}.mt-8{margin-top:32px}
.mb-1{margin-bottom:4px}.mb-2{margin-bottom:8px}.mb-3{margin-bottom:12px}.mb-4{margin-bottom:16px}.mb-6{margin-bottom:24px}
.ml-auto { margin-left: auto; }
.text-sm { font-size: 13.5px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; } .text-xl { font-size: 20px; }
.text-muted { color: var(--muted-fg); } .text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-warning { color: var(--warning); }
.text-center { text-align: center; } .text-right { text-align: right; }
.font-medium { font-weight: 500; } .font-semibold { font-weight: 600; } .font-bold { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.nowrap { white-space: nowrap; }
.hide-mobile { } .show-mobile { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 13px; }

/* ---------- Botoes ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s, opacity .15s;
  background: var(--fg); color: #fff;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.25); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::before {
  content: ""; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite;
}
.btn-primary { background: var(--brand); color: var(--brand-fg); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--fg); color: #fff; } .btn-dark:hover { background: #27272A; }
.btn-blue { background: var(--info); color: #fff; } .btn-blue:hover { background: #1D4ED8; }
.btn-outline { background: var(--card); color: var(--fg); border-color: var(--border); box-shadow: var(--shadow-xs); }
.btn-outline:hover { background: var(--muted); }
.btn-ghost { background: transparent; color: var(--fg-2); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); }
.btn-danger { background: var(--danger); color: #fff; } .btn-danger:hover { background: #B91C1C; }
.btn-danger-ghost { background: transparent; color: var(--danger); } .btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { --h: 48px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-xl { --h: 56px; padding: 0 28px; font-size: 16px; border-radius: 14px; }
.btn-icon { width: var(--h); padding: 0; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }

/* ---------- Cards ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-body { padding: 22px; }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h3 { font-size: 16px; font-family: var(--font); font-weight: 650; letter-spacing: -.01em; }
.card-footer { padding: 14px 22px; border-top: 1px solid var(--border); background: #FCFCFC; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.card-muted { background: #FCFCFC; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.label { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.hint { font-size: 12.5px; color: var(--muted-fg); }
.field-error { font-size: 12.5px; color: var(--danger); display: none; }
.has-error .field-error { display: block; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.input, .select, .textarea {
  width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: var(--fg); outline: none; transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow-xs);
}
.textarea { height: auto; min-height: 110px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.input::placeholder, .textarea::placeholder { color: #A1A1AA; }
.input-sm { height: 36px; font-size: 14px; }
.input-lg { height: 52px; font-size: 16px; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > .icon, .input-group > svg.lucide { position: absolute; left: 13px; color: var(--muted-fg); pointer-events: none; }
.input-group > .input { padding-left: 40px; }
.input-group .input-suffix { position: absolute; right: 8px; }
.input-addon { display: flex; }
.input-addon .addon { display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--border); border-right: 0; border-radius: 10px 0 0 10px; background: var(--muted); color: var(--muted-fg); font-size: 14px; }
.input-addon .input { border-radius: 0 10px 10px 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 16px; }
.form-row-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.form-section { padding: 20px 0; border-top: 1px solid var(--border); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-section-title { font-size: 15px; font-weight: 650; font-family: var(--font); margin-bottom: 4px; }

/* Switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track { width: 40px; height: 22px; border-radius: 999px; background: var(--muted-2); position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked + .track { background: var(--fg); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.switch-row:last-child { border-bottom: 0; }

/* Checkbox / radio cards */
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--fg); }
.option-card {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1.5px solid var(--border); border-radius: 14px;
  background: var(--card); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; font-weight: 500;
}
.option-card:hover { border-color: var(--border-strong); }
.option-card input { display: none; }
.option-card .radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-strong); flex-shrink: 0; position: relative; }
.option-card .check-box { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border-strong); flex-shrink: 0; display: grid; place-items: center; }
.option-card.is-checked, .option-card:has(input:checked) { border-color: var(--fg); background: #FCFCFC; box-shadow: 0 0 0 3px rgba(24,24,27,.06); }
.option-card:has(input:checked) .radio-dot { border-color: var(--fg); }
.option-card:has(input:checked) .radio-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--fg); }
.option-card:has(input:checked) .check-box { background: var(--fg); border-color: var(--fg); }
.option-card:has(input:checked) .check-box::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); }
.option-grid { display: grid; gap: 10px; }

/* Range */
input[type=range] { width: 100%; accent-color: var(--fg); }

/* OTP */
.otp { display: flex; gap: 10px; justify-content: center; position: relative; }
.otp .otp-real { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; cursor: text; z-index: 2; color: transparent; caret-color: transparent; }
.otp .otp-box {
  width: 50px; height: 58px; display: grid; place-items: center; font-size: 24px; font-weight: 700; border: 1.5px solid var(--border);
  border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; font-family: var(--font-display);
}
.otp .otp-box.is-filled { border-color: var(--border-strong); }
.otp .otp-box.is-active { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(24,24,27,.1); }
.otp .otp-box.is-active:empty::after { content: ""; width: 2px; height: 26px; background: var(--fg); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--muted); color: var(--fg-2); white-space: nowrap; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-brand { background: var(--brand); color: var(--brand-fg); }
.badge-dark { background: var(--fg); color: #fff; }
.badge-muted { background: var(--muted); color: var(--muted-fg); }
.badge-outline { background: transparent; border: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); font-size: 14px; font-weight: 500; color: var(--fg-2); transition: background .15s, border-color .15s; cursor: pointer; }
.chip:hover { background: var(--muted); border-color: var(--border-strong); color: var(--fg); }
.chip.is-active { background: var(--fg); color: #fff; border-color: var(--fg); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--muted); font-size: 11.5px; font-weight: 700; color: var(--fg-2); }
.count-brand { background: var(--brand); color: var(--brand-fg); }
.count-danger { background: var(--danger); color: #fff; }

/* Avatar */
.avatar { --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
  background: hsl(var(--h, 45) 70% 92%); color: hsl(var(--h, 45) 45% 30%); font-weight: 700; font-size: calc(var(--size) * .38); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { --size: 28px; } .avatar-sm { --size: 34px; } .avatar-lg { --size: 56px; } .avatar-xl { --size: 88px; } .avatar-2xl { --size: 120px; }

/* Estrelas */
.stars { display: inline-flex; gap: 1px; color: #E4E4E7; vertical-align: middle; }
.stars svg { width: 15px; height: 15px; }
.stars .on, .stars .half { color: #F5B700; fill: #F5B700; }
.stars.lg svg { width: 22px; height: 22px; }
.rating-input { display: inline-flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; color: #E4E4E7; transition: transform .1s; }
.rating-input label svg { width: 34px; height: 34px; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #F5B700; }
.rating-input label:hover svg, .rating-input label:hover ~ label svg, .rating-input input:checked ~ label svg { fill: #F5B700; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted-fg); padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #FCFCFC; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: #FAFAFA; }
.table .actions { text-align: right; white-space: nowrap; }
.cell-user { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cell-user .name { font-weight: 600; }
.cell-user .sub { font-size: 12.5px; color: var(--muted-fg); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--muted-fg); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; cursor: pointer; background: none; border-top: 0; border-left: 0; border-right: 0; }
.tab:hover { color: var(--fg); }
.tab.is-active { color: var(--fg); border-bottom-color: var(--fg); }
.segmented { display: inline-flex; padding: 4px; background: var(--muted); border-radius: 12px; gap: 2px; }
.segmented button, .segmented a { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted-fg); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.segmented .is-active { background: var(--card); color: var(--fg); box-shadow: var(--shadow-sm); }

/* ---------- Alerts / callouts ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.callout svg.lucide { margin-top: 2px; }
.callout-warning { background: #FFF8EB; border-color: #FDE7C2; color: #8A4B08; }
.callout-info { background: var(--info-bg); border-color: #DBEAFE; color: #1E40AF; }
.callout-success { background: var(--success-bg); border-color: #DCFCE7; color: #166534; }
.callout-danger { background: var(--danger-bg); border-color: #FEE2E2; color: #991B1B; }
.callout-brand { background: var(--brand-50); border-color: #FFEB8A; color: #5C4A00; }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--muted-fg); }
.empty .empty-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--muted); display: grid; place-items: center; margin: 0 auto 14px; color: var(--fg-2); }
.empty h4 { color: var(--fg); font-size: 16px; font-family: var(--font); margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--muted) 25%, #ECECEE 37%, var(--muted) 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- KPIs ---------- */
.kpi { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--muted); color: var(--fg-2); flex-shrink: 0; }
.kpi-label { font-size: 13px; color: var(--muted-fg); font-weight: 500; }
.kpi-value { font-size: 26px; font-weight: 750; font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.2; margin-top: 2px; }
.kpi-sub { font-size: 12.5px; color: var(--muted-fg); margin-top: 2px; }
.kpi-brand .kpi-icon { background: var(--brand); color: var(--brand-fg); }
.kpi-green .kpi-icon { background: var(--success-bg); color: var(--success); }
.kpi-blue .kpi-icon { background: var(--info-bg); color: var(--info); }
.kpi-orange .kpi-icon { background: var(--warning-bg); color: var(--warning); }

.progress { height: 8px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--fg); border-radius: inherit; transition: width .4s; }
.progress-brand > span { background: var(--brand); }
.progress-green > span { background: var(--success); }

/* ---------- Dropdown ---------- */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; opacity: 0; transform: translateY(-4px) scale(.98);
  pointer-events: none; transition: opacity .15s, transform .15s;
}
.dropdown.open .dropdown-menu { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-menu.left { right: auto; left: 0; }
.dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 14px; color: var(--fg-2); cursor: pointer; width: 100%; background: none; border: 0; text-align: left; }
.dropdown-item:hover { background: var(--muted); color: var(--fg); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--border); margin: 6px 0; }
.dropdown-label { padding: 8px 10px 4px; font-size: 12px; color: var(--muted-fg); font-weight: 600; }

/* ---------- Overlay: modal / sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(24,24,27,.45); backdrop-filter: blur(2px); z-index: 100; opacity: 0; transition: opacity .2s; }
.overlay.show { opacity: 1; }
.modal {
  position: fixed; left: 50%; top: 50%; z-index: 101; width: calc(100% - 32px); max-width: 480px; max-height: calc(100vh - 48px);
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .22s cubic-bezier(.2,.9,.3,1.2), opacity .18s;
}
.modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal-lg { max-width: 720px; } .modal-sm { max-width: 400px; } .modal-xl { max-width: 960px; }
.modal-header { padding: 22px 24px 0; display: flex; align-items: flex-start; gap: 14px; }
.modal-header h3 { font-size: 18px; font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.modal-header p { color: var(--muted-fg); font-size: 14px; margin-top: 4px; }
.modal-body { padding: 18px 24px; overflow-y: auto; }
.modal-footer { padding: 0 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-close, .sheet-close { margin-left: auto; width: 34px; height: 34px; border-radius: 9px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--muted-fg); flex-shrink: 0; }
.modal-close:hover, .sheet-close:hover { background: var(--muted); color: var(--fg); }
.modal-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--muted); }
.modal-icon.danger { background: var(--danger-bg); color: var(--danger); }
.modal-icon.warning { background: var(--warning-bg); color: var(--warning); }
.modal-icon.brand { background: var(--brand); color: var(--brand-fg); }
.modal-icon.success { background: var(--success-bg); color: var(--success); }

.sheet {
  position: fixed; top: 10px; right: 10px; bottom: 10px; z-index: 101; width: calc(100% - 20px); max-width: 560px;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(calc(100% + 20px)); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.sheet.show { transform: none; }
.sheet-lg { max-width: 760px; }
.sheet-header { padding: 22px 24px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; gap: 12px; }
.sheet-header h3 { font-size: 19px; font-family: var(--font); font-weight: 700; letter-spacing: -.01em; }
.sheet-header p { color: var(--muted-fg); font-size: 14px; margin-top: 4px; }
.sheet-body { padding: 22px 24px; overflow-y: auto; flex: 1; }
.sheet-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.sheet-footer .btn { flex: 1; }
.sheet-loading { display: grid; gap: 14px; padding: 24px; }
body.no-scroll { overflow: hidden; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; width: calc(100% - 40px); max-width: 380px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--fg); color: #fff;
  border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 14px; transform: translateY(12px) scale(.98); opacity: 0;
  transition: transform .25s cubic-bezier(.2,.9,.3,1.2), opacity .2s;
}
.toast.show { transform: none; opacity: 1; }
.toast .toast-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.toast .toast-icon svg { width: 14px; height: 14px; stroke-width: 3; }
.toast-success .toast-icon { background: #22C55E; } .toast-error .toast-icon { background: #EF4444; }
.toast-info .toast-icon { background: #3B82F6; } .toast-warning .toast-icon { background: #F59E0B; }
.toast .toast-title { font-weight: 650; }
.toast .toast-text { color: #D4D4D8; font-size: 13.5px; }
.toast button { margin-left: auto; background: none; border: 0; color: #A1A1AA; cursor: pointer; padding: 0; }

/* ==========================================================================
   SITE PUBLICO
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand-logo img { height: 26px; width: auto; }
.header-search { flex: 1; max-width: 620px; display: flex; align-items: center; height: 46px; background: var(--muted); border-radius: 999px; padding: 0 6px 0 16px; gap: 10px; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.header-search:focus-within { background: #fff; border-color: var(--border-strong); }
.header-search input { flex: 1; border: 0; background: none; outline: none; height: 100%; min-width: 0; }
.header-search .loc { display: flex; align-items: center; gap: 6px; color: var(--fg-2); font-size: 14px; padding-right: 12px; border-right: 1px solid var(--border-strong); white-space: nowrap; }
.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-strip { border-top: 1px solid var(--border); background: #fff; }
.nav-strip .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; height: 48px; align-items: center; }
.nav-strip .container::-webkit-scrollbar { display: none; }
.nav-strip a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--fg-2); white-space: nowrap; }
.nav-strip a:hover, .nav-strip a.is-active { background: var(--muted); color: var(--fg); }

.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #F3F3F1 0%, #EDEDEA 100%); padding: 64px 0 120px; }
.hero::after { content: ""; position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,0,.55), rgba(255,208,0,0) 65%); }
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 70px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.hero p.lead { font-size: 19px; color: var(--fg-2); margin-top: 18px; max-width: 560px; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .bubble { width: 300px; height: 300px; border-radius: 40% 60% 55% 45%/50% 45% 55% 50%; background: var(--fg); display: grid; place-items: center; box-shadow: var(--shadow-lg); animation: blob 9s ease-in-out infinite; }
.hero-art .bubble svg { width: 120px; height: 120px; color: var(--brand); stroke-width: 1.5; }
.hero-art .float { position: absolute; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; }
.hero-art .float.f1 { left: -10px; top: 30px; } .hero-art .float.f2 { right: -6px; bottom: 30px; }
@keyframes blob { 50% { border-radius: 55% 45% 45% 55%/45% 55% 45% 55%; } }

.search-panel { position: relative; z-index: 5; margin-top: -72px; }
.big-search { display: flex; align-items: center; background: #fff; border-radius: 999px; box-shadow: var(--shadow-lg); padding: 10px 10px 10px 28px; gap: 14px; border: 1px solid var(--border); }
.big-search .seg { display: flex; flex-direction: column; min-width: 0; }
.big-search .seg label { font-size: 12px; font-weight: 600; color: var(--muted-fg); }
.big-search .seg input { border: 0; outline: none; background: none; font-size: 16px; font-weight: 500; padding: 2px 0; min-width: 0; }
.big-search .seg.where { width: 170px; padding-right: 14px; border-right: 1px solid var(--border); }
.big-search .seg.what { flex: 1; }
.big-search .go { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--brand); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; transition: transform .15s, background .15s; }
.big-search .go:hover { background: var(--brand-600); transform: scale(1.04); }
.big-search .go svg { width: 24px; height: 24px; }
.suggest { position: absolute; left: 24px; right: 24px; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 30; display: none; max-height: 380px; overflow-y: auto; }
.suggest.show { display: block; }
.suggest a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; }
.suggest a:hover, .suggest a.is-hl { background: var(--muted); }
.suggest .s-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--muted); }
.popular { margin-top: 18px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.section-head p { color: var(--muted-fg); margin-top: 8px; font-size: 16px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; color: var(--fg-2); white-space: nowrap; }
.link-more:hover { color: var(--fg); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }

.svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.svc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.svc-card .thumb { aspect-ratio: 16/10; display: grid; place-items: center; position: relative; overflow: hidden; background: var(--c, #FFD000); }
.svc-card .thumb::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 15%, rgba(255,255,255,.55), transparent 55%), radial-gradient(circle at 85% 90%, rgba(0,0,0,.12), transparent 50%); }
.svc-card .thumb svg { width: 58px; height: 58px; stroke-width: 1.5; color: rgba(24,24,27,.85); position: relative; }
.svc-card .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-card .info { padding: 14px 16px 18px; }
.svc-card .info h4 { font-family: var(--font); font-size: 15.5px; font-weight: 650; letter-spacing: -.01em; }
.svc-card .info p { font-size: 13px; color: var(--muted-fg); margin-top: 3px; }

.group-tile { display: flex; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 18px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.group-tile:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.group-tile .gi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--c, var(--brand)); }
.group-tile .gi svg { width: 26px; height: 26px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step { padding: 24px; border-radius: 22px; background: #fff; border: 1px solid var(--border); }
.step .n { width: 34px; height: 34px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 18px; }
.step:nth-child(2) .n { background: var(--brand); }
.step h4 { font-family: var(--font); font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.step p { color: var(--muted-fg); font-size: 14.5px; }

.pro-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.pro-card .top { display: flex; gap: 12px; align-items: center; }
.pro-card .name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.verified { color: var(--info); display: inline-flex; }
.verified svg { width: 16px; height: 16px; }

.banner-strip { border-radius: 24px; padding: 34px 38px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; position: relative; overflow: hidden; background: var(--bgc, #2563EB); }
.banner-strip::after { content: ""; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.12); }
.banner-strip h3 { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.banner-strip p { opacity: .9; margin-top: 6px; max-width: 560px; }
.banner-strip img.bimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.banner-strip > * { position: relative; z-index: 1; }

.cta-pro { background: var(--fg); color: #fff; border-radius: 28px; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-pro h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.035em; }
.cta-pro p { color: #D4D4D8; margin-top: 12px; font-size: 17px; }
.cta-pro .stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cta-pro .stat { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 18px; }
.cta-pro .stat b { display: block; font-size: 28px; font-family: var(--font-display); color: var(--brand); }

.testimonial { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.testimonial blockquote { margin: 0; font-size: 15px; color: var(--fg-2); }

.site-footer { background: #111113; color: #A1A1AA; padding: 56px 0 28px; margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.site-footer h5 { color: #fff; font-size: 14px; margin: 0 0 14px; font-weight: 650; }
.site-footer a { display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-white { display: inline-flex; background: #fff; padding: 10px 14px; border-radius: 12px; }
.site-footer .logo-white img { height: 22px; }
.site-footer .bottom { border-top: 1px solid #27272A; margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; flex-wrap: wrap; }
.social { display: flex; gap: 8px; margin-top: 16px; }
.social a { width: 38px; height: 38px; border-radius: 10px; background: #1F1F23; display: grid; place-items: center; padding: 0; }

.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted-fg); flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--fg); }
.breadcrumb svg { width: 14px; height: 14px; }
.page-hero { padding: 36px 0 30px; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.04em; }
.cat-head { display: flex; gap: 20px; align-items: center; margin-top: 18px; }
.cat-head .ci { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: var(--c, var(--brand)); flex-shrink: 0; }
.cat-head .ci svg { width: 38px; height: 38px; }
.list-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 24px; }
.list-links a { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--border); font-weight: 500; }
.list-links a:hover { color: var(--info); }
.prose { font-size: 16px; line-height: 1.75; color: var(--fg-2); }
.prose h2 { font-size: 24px; margin: 28px 0 10px; color: var(--fg); }
.prose h3 { font-size: 19px; margin: 22px 0 8px; color: var(--fg); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose a { color: var(--info); text-decoration: underline; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--fg); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 520px; height: 520px; right: -200px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255,208,0,.45), transparent 65%); }
.auth-side h2 { font-size: 40px; font-weight: 800; letter-spacing: -.04em; max-width: 460px; }
.auth-side p { color: #A1A1AA; margin-top: 14px; max-width: 420px; font-size: 16px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; }
.auth-box { width: 100%; max-width: 420px; }
.auth-box h1 { font-size: 30px; font-weight: 800; letter-spacing: -.035em; }
.auth-box .sub { color: var(--muted-fg); margin-top: 6px; }
.method-list { display: grid; gap: 10px; }
.method { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; background: #fff; text-align: left; width: 100%; transition: border-color .15s, background .15s; }
.method:hover { border-color: var(--fg); background: #FCFCFC; }
.method .mi { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--muted); }
.method .mi.wa { background: #DCFCE7; color: #15803D; }
.method .mi.sms { background: var(--info-bg); color: var(--info); }
.method .mi.mail { background: var(--warning-bg); color: var(--warning); }
.method .mi.pass { background: var(--muted); }
.method b { display: block; font-size: 15px; }
.method small { color: var(--muted-fg); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted-fg); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.type-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-pick .option-card { flex-direction: column; align-items: flex-start; gap: 6px; }

/* ---------- Wizard de pedido ---------- */
.wizard { min-height: 100vh; display: flex; flex-direction: column; background: var(--panel-bg); }
.wizard-top { background: #fff; border-bottom: 1px solid var(--border); }
.wizard-top .bar { height: 64px; display: flex; align-items: center; gap: 14px; }
.wizard-progress { height: 4px; background: var(--muted); }
.wizard-progress span { display: block; height: 100%; background: var(--success); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.wizard-body { flex: 1; padding: 44px 0 140px; }
.wizard-step { display: none; animation: stepIn .35s cubic-bezier(.2,.8,.2,1); }
.wizard-step.is-active { display: block; }
.wizard-step h2 { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 8px; }
.wizard-step .q-help { color: var(--muted-fg); margin-bottom: 24px; font-size: 15.5px; }
.wizard-foot { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 20; }
.wizard-foot .bar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.secure-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--muted); border-radius: 12px; font-size: 13px; font-weight: 600; color: var(--fg-2); }
.secure-pill svg { color: var(--info); }
@keyframes stepIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.counter { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.counter button { width: 52px; height: 52px; border: 0; background: #fff; cursor: pointer; display: grid; place-items: center; }
.counter button:hover { background: var(--muted); }
.counter output { width: 64px; text-align: center; font-size: 22px; font-weight: 800; font-family: var(--font-display); }
.summary-list { display: grid; gap: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.summary-list div:last-child { border-bottom: 0; }
.summary-list dt, .summary-list span:first-child { color: var(--muted-fg); }
.summary-list dd, .summary-list span:last-child { margin: 0; font-weight: 600; text-align: right; }

/* ==========================================================================
   PAINEIS (admin / profissional / cliente)
   ========================================================================== */
.app-shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; background: var(--panel-bg); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); z-index: 70; }
.sidebar-head { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; }
.sidebar-head img { height: 22px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #A1A1AA; padding: 16px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--fg-2); transition: background .12s, color .12s; }
.nav-link svg { width: 18px; height: 18px; color: #8B8B93; }
.nav-link:hover { background: var(--muted); color: var(--fg); }
.nav-link.is-active { background: var(--brand-50); color: var(--fg); font-weight: 650; }
.nav-link.is-active svg { color: var(--fg); }
.nav-link .count { margin-left: auto; }
.sidebar-foot { padding: 12px; border-top: 1px solid var(--border); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; cursor: pointer; width: 100%; background: none; border: 0; text-align: left; }
.user-chip:hover { background: var(--muted); }
.user-chip .meta { min-width: 0; flex: 1; }
.user-chip .meta b { display: block; font-size: 14px; }
.user-chip .meta small { display: block; color: var(--muted-fg); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balance-card { margin: 4px 12px 8px; padding: 14px; border-radius: 14px; background: var(--fg); color: #fff; display: flex; align-items: center; gap: 12px; }
.balance-card .coin { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--fg); display: grid; place-items: center; }
.balance-card b { font-size: 20px; font-family: var(--font-display); display: block; line-height: 1.1; }
.balance-card small { color: #A1A1AA; font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 64px; display: flex; align-items: center; gap: 12px; padding: 0 28px; background: rgba(245,245,244,.86); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--border); }
.topbar .breadcrumb { font-size: 14px; }
.topbar .breadcrumb b { color: var(--fg); font-weight: 600; }
.content { padding: 8px 28px 48px; width: 100%; max-width: 1360px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 14px 0 24px; flex-wrap: wrap; }
.page-header h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.page-header p { color: var(--muted-fg); margin-top: 6px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .input-group { flex: 1; min-width: 200px; max-width: 360px; }
.pagination { display: flex; gap: 6px; align-items: center; justify-content: space-between; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted-fg); }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: #fff; display: grid; place-items: center; cursor: pointer; position: relative; color: var(--fg-2); }
.icon-btn:hover { background: var(--muted); }
.icon-btn .pip { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); border: 2px solid #fff; }
.notif-menu { width: 360px; max-height: 460px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 10px; border-radius: 10px; }
.notif:hover { background: var(--muted); }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; background: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.notif.unread .ni { background: var(--brand); }
.notif b { font-size: 13.5px; display: block; }
.notif small { color: var(--muted-fg); font-size: 12.5px; display: block; }

.lead-card { padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; cursor: pointer; }
.lead-card .li { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--c, var(--brand)); flex-shrink: 0; }
.lead-card h4 { font-family: var(--font); font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.lead-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted-fg); margin-top: 6px; }
.lead-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lead-meta svg { width: 14px; height: 14px; }
.lead-cost { text-align: right; flex-shrink: 0; }
.lead-cost b { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-family: var(--font-display); }
.coin-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); display: inline-grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--fg); border: 2px solid #F2B900; }
.qa { display: grid; gap: 10px; }
.qa div { padding: 12px 14px; background: var(--muted); border-radius: 12px; }
.qa small { display: block; color: var(--muted-fg); font-size: 12.5px; }
.qa b { font-weight: 600; font-size: 14.5px; }
.contact-box { border: 1.5px dashed var(--border-strong); border-radius: 16px; padding: 18px; }
.contact-box.locked { background: repeating-linear-gradient(-45deg, #FAFAFA, #FAFAFA 10px, #F4F4F5 10px, #F4F4F5 20px); }
.blur-text { filter: blur(5px); user-select: none; }

.pkg { padding: 22px; display: flex; flex-direction: column; gap: 14px; position: relative; cursor: pointer; border: 1.5px solid var(--border); }
.pkg:has(input:checked) { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(24,24,27,.08); }
.pkg input { display: none; }
.pkg .tag { position: absolute; top: -11px; left: 20px; }
.pkg .coins { font-size: 34px; font-weight: 800; font-family: var(--font-display); letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.pkg .price { font-size: 20px; font-weight: 700; }
.pix-box { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; }
.pix-box img { border: 1px solid var(--border); border-radius: 14px; padding: 8px; background: #fff; }

.course-card { overflow: hidden; display: flex; flex-direction: column; }
.course-cover { aspect-ratio: 16/8; display: grid; place-items: center; background: var(--c, #18181B); position: relative; overflow: hidden; color: #fff; }
.course-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-cover svg { width: 46px; height: 46px; stroke-width: 1.5; }
.course-cover::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 80% 0%, rgba(255,255,255,.25), transparent 60%); }
.player { aspect-ratio: 16/9; background: #0A0A0A; border-radius: 18px; overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; }
.lesson-list a { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; font-size: 14px; }
.lesson-list a:hover { background: var(--muted); }
.lesson-list a.is-active { background: var(--brand-50); font-weight: 600; }
.lesson-list .ln { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--muted); font-size: 12px; font-weight: 700; flex-shrink: 0; }
.lesson-list .done .ln { background: var(--success); color: #fff; }

.chat { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 78%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; white-space: pre-wrap; word-wrap: break-word; }
.msg small { display: block; font-size: 11.5px; margin-top: 6px; opacity: .7; }
.msg.me { align-self: flex-end; background: var(--fg); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: var(--muted); border-bottom-left-radius: 4px; }

.tree { display: grid; gap: 10px; }
.tree-group { border: 1px solid var(--border); border-radius: 16px; background: #fff; overflow: hidden; }
.tree-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tree-row:last-child { border-bottom: 0; }
.tree-row.lvl-1 { padding-left: 44px; background: #FCFCFC; }
.tree-row.lvl-2 { padding-left: 76px; }
.tree-row .ti { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--c, var(--muted)); flex-shrink: 0; }
.tree-row .actions { margin-left: auto; display: flex; gap: 4px; }

.chart-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 10px; }
.grid > * { min-width: 0; }
.chart-bars .bar:nth-child(even) small { visibility: hidden; }
.chart-bars .bar { min-width: 0; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart-bars .bar span { width: 100%; max-width: 34px; border-radius: 8px 8px 3px 3px; background: var(--fg); min-height: 3px; transition: height .5s; position: relative; }
.chart-bars .bar span:hover::after { content: attr(data-v); position: absolute; top: -26px; left: 50%; transform: translateX(-50%); background: var(--fg); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.chart-bars .bar small { font-size: 11px; color: var(--muted-fg); }
.chart-bars.brand .bar span { background: var(--brand); }

/* Docs da API */
.endpoint { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.endpoint + .endpoint { margin-top: 10px; }
.endpoint-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.endpoint-head:hover { background: #FCFCFC; }
.method-tag { display: inline-grid; place-items: center; min-width: 66px; height: 26px; border-radius: 7px; font-size: 12px; font-weight: 800; letter-spacing: .03em; color: #fff; }
.m-get { background: #2563EB; } .m-post { background: #16A34A; } .m-put { background: #D97706; } .m-delete { background: #DC2626; } .m-patch { background: #7C3AED; }
.endpoint-body { display: none; border-top: 1px solid var(--border); padding: 18px; background: #FCFCFC; }
.endpoint.open .endpoint-body { display: block; }
.code { background: #0F0F11; color: #E4E4E7; border-radius: 12px; padding: 14px 16px; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; line-height: 1.6; overflow: auto; white-space: pre; max-height: 420px; }
.code .k { color: #93C5FD; } .code .s { color: #86EFAC; } .code .n { color: #FCD34D; }

.editor-toolbar { display: flex; gap: 2px; padding: 6px; border: 1px solid var(--border); border-bottom: 0; border-radius: 10px 10px 0 0; background: #FCFCFC; flex-wrap: wrap; }
.editor-toolbar button { width: 32px; height: 32px; border: 0; background: none; border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.editor-toolbar button:hover { background: var(--muted); }
.editor { min-height: 260px; border: 1px solid var(--border); border-radius: 0 0 10px 10px; padding: 14px 16px; outline: none; background: #fff; }
.editor:focus { border-color: var(--ring); }

.img-upload { display: flex; gap: 14px; align-items: center; }
.img-upload .preview { width: 76px; height: 76px; border-radius: 14px; border: 1px dashed var(--border-strong); display: grid; place-items: center; background: var(--muted); overflow: hidden; flex-shrink: 0; }
.img-upload .preview img { width: 100%; height: 100%; object-fit: cover; }

.copy-field { display: flex; gap: 8px; }
.copy-field .input { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--muted); }
.integration-head { display: flex; gap: 14px; align-items: center; }
.integration-logo { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; }

.stepper { display: flex; gap: 8px; align-items: center; }
.stepper .s { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted-fg); }
.stepper .s .b { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 11px; }
.stepper .s.done .b { background: var(--info); border-color: var(--info); color: #fff; }
.stepper .s.active { color: var(--fg); } .stepper .s.active .b { border-color: var(--info); box-shadow: 0 0 0 4px #DBEAFE; }
.stepper .line { flex: 1; height: 2px; background: var(--border); min-width: 20px; }
.stepper .line.done { background: var(--info); }

.mobile-nav { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 284px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  body.sidebar-open .sidebar { transform: none; }
  body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 65; }
  .show-mobile { display: inline-flex !important; }
  .hide-mobile { display: none !important; }
  .topbar, .content { padding-left: 16px; padding-right: 16px; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .cta-pro { grid-template-columns: 1fr; padding: 32px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .list-links { grid-template-columns: 1fr 1fr; }
  .header-search { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .col-span-2 { grid-column: auto; }
  .steps { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 100px; }
  .big-search { border-radius: 22px; flex-wrap: wrap; padding: 14px; }
  .big-search .seg.where { width: 100%; border-right: 0; border-bottom: 1px solid var(--border); padding: 0 0 10px; }
  .big-search .go { width: 100%; height: 48px; border-radius: 14px; }
  .section { padding: 44px 0; }
  .list-links { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .banner-strip { flex-direction: column; align-items: flex-start; padding: 26px; }
  .pix-box { grid-template-columns: 1fr; }
  .toasts { right: 10px; bottom: 10px; width: calc(100% - 20px); }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; transform: translateY(100%); }
  .sheet.show { transform: none; }
  .otp input { width: 44px; height: 54px; }
  .page-header h1 { font-size: 24px; }
  .mobile-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--border); z-index: 45; height: 64px; }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--muted-fg); }
  .mobile-nav a.is-active { color: var(--fg); }
  .has-mobile-nav { padding-bottom: 64px; }
  .table th, .table td { padding: 12px; }
}

/* Grades de 2 colunas definidas inline empilham em telas medias */
@media (max-width: 1100px) {
  .content .grid[style*="grid-template-columns"], .section .grid[style*="grid-template-columns"], section .container.grid[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .content aside[style*="sticky"], section aside[style*="sticky"] { position: static !important; }
}
