﻿:root {
  color-scheme: dark;
  --primary: #7C3AED;
  --secondary: #2563EB;
  --accent: #38BDF8;
  --grad: linear-gradient(90deg, #7C3AED 0%, #5B5FFF 35%, #2563EB 70%, #38BDF8 100%);
  --bg: #0B0B0F;
  --bg-2: #111217;
  --sidebar: #0D0F14;
  --card: rgba(23, 24, 29, .86);
  --card-solid: #17181D;
  --border: #2B2D36;
  --border-soft: rgba(255,255,255,.08);
  --text: #FFFFFF;
  --text-2: #B8BDC9;
  --text-3: #8E94A6;
  --placeholder: #6B7280;
  --input: #14161B;
  --input-border: #2C3140;
  --success: #22C55E;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #38BDF8;
  --shadow: 0 24px 80px rgba(0,0,0,.38);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F7F8FC;
  --bg-2: #FFFFFF;
  --sidebar: #FFFFFF;
  --card: rgba(255,255,255,.92);
  --card-solid: #FFFFFF;
  --border: #DDE3EE;
  --border-soft: rgba(15,23,42,.10);
  --text: #101420;
  --text-2: #475467;
  --text-3: #667085;
  --placeholder: #98A2B3;
  --input: #FFFFFF;
  --input-border: #D0D5DD;
  --shadow: 0 20px 60px rgba(16,24,40,.12);
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
html { min-height: 100%; width: 100%; overflow-x: hidden; background: var(--bg); }
body {
  min-height: 100%; width: 100%; margin: 0; overflow-x: hidden; color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(124,58,237,.22), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(56,189,248,.16), transparent 32rem),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 18% -8%, rgba(124,58,237,.12), transparent 34rem),
    radial-gradient(circle at 90% 12%, rgba(56,189,248,.12), transparent 32rem),
    linear-gradient(180deg, #FFFFFF 0%, #F7F8FC 100%);
}
button, input, select, textarea { min-width: 0; font: inherit; }
button { border: 0; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(124,58,237,.38); outline-offset: 2px; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background:
  radial-gradient(circle at 25% 12%, rgba(124,58,237,.25), transparent 30rem),
  radial-gradient(circle at 82% 82%, rgba(37,99,235,.18), transparent 28rem), var(--bg); }
:root[data-theme="light"] .login { background:
  radial-gradient(circle at 25% 12%, rgba(124,58,237,.13), transparent 30rem),
  radial-gradient(circle at 82% 82%, rgba(37,99,235,.10), transparent 28rem), #F7F8FC; }
.login-card { width: min(100%, 440px); position: relative; overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-xl); background: rgba(17,18,23,.78); box-shadow: var(--shadow); padding: 30px; backdrop-filter: blur(18px); }
:root[data-theme="light"] .login-card { background: rgba(255,255,255,.94); border-color: rgba(15,23,42,.10); }
.login-card:before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.logo-pair { display: inline-block; line-height: 0; }
.logo-pair img { display: block; width: 100%; height: 100%; object-fit: contain; }
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
.login-logo-pair { display: block; width: min(340px, 82vw); height: 120px; margin: 0 auto 22px; filter: drop-shadow(0 18px 38px rgba(124,58,237,.18)); }
.login-card h1 { margin: 0; text-align: center; font-size: clamp(1.6rem, 4vw, 2.15rem); line-height: 1.05; letter-spacing: 0; }
.login-card p { margin: 10px 0 24px; text-align: center; color: var(--text-2); line-height: 1.5; }
.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field span { color: var(--text-2); font-size: .82rem; font-weight: 700; }
.input, .select { width: 100%; min-height: 48px; border: 1px solid var(--input-border); border-radius: var(--radius); background: var(--input); color: var(--text); padding: 11px 14px; transition: border-color .18s, box-shadow .18s, background .18s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--placeholder); }
.input:focus, .select:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124,58,237,.18); }
.btn { min-height: 44px; border-radius: var(--radius); padding: 10px 15px; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.primary { color: #fff; background: var(--grad); box-shadow: 0 12px 30px rgba(124,58,237,.28); }
.login-card .primary { width: 100%; margin-top: 4px; }
.ghost { color: var(--text); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
:root[data-theme="light"] .ghost { background: rgba(255,255,255,.8); }
.ghost:hover { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.5); }
.danger { background: var(--danger); color: #fff; border: 1px solid rgba(239,68,68,.42); }
.danger:hover { background: #dc2626; }
.inline-form { display: inline-flex; margin: 0; }
.theme-toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.04); padding: 3px; }
.theme-toggle button { min-height: 32px; border: 0; border-radius: 999px; background: transparent; color: var(--text-3); font-size: .78rem; font-weight: 900; padding: 6px 10px; cursor: pointer; }
.theme-toggle button.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(124,58,237,.22); }
.login-theme { position: fixed; top: 18px; right: 18px; z-index: 3; }
.top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-actions form { margin: 0; }
.app-shell { min-height: 100vh; max-width: 100%; min-width: 0; display: grid; grid-template-rows: auto auto 1fr; overflow-x: clip; }
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-width: 0; max-width: 100%; min-height: 84px; padding: 10px 18px; background: rgba(11,11,15,.82); border-bottom: 1px solid var(--border-soft); backdrop-filter: blur(18px); }
:root[data-theme="light"] .top { background: rgba(255,255,255,.86); }
.brand { display: flex; align-items: center; min-width: 0; gap: 12px; }
.brand-logo { width: clamp(182px, 24vw, 254px); height: 62px; filter: drop-shadow(0 10px 18px rgba(124,58,237,.22)); flex: 0 0 auto; }
.brand strong, .brand small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand strong { font-size: 1rem; letter-spacing: 0; }
.brand small { max-width: 56vw; color: var(--text-3); font-size: .82rem; }
.tabs { position: sticky; top: 84px; z-index: 9; display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 6px; min-width: 0; max-width: 100%; padding: 8px; border-bottom: 1px solid var(--border-soft); background: rgba(13,15,20,.78); backdrop-filter: blur(18px); }
:root[data-theme="light"] .tabs { background: rgba(255,255,255,.84); }
.tabs a { display: grid; place-items: center; min-width: 0; min-height: 44px; border-radius: var(--radius); color: var(--text-2); background: transparent; font-weight: 800; cursor: pointer; }
.tabs a.active { color: #fff; background: var(--grad); box-shadow: 0 10px 28px rgba(124,58,237,.18); }
.tabs a:not(.active):hover { background: rgba(124,58,237,.12); color: var(--text); }
.tabs a.disabled { opacity: .36; cursor: not-allowed; pointer-events: none; }
.content { width: 100%; max-width: 1180px; min-width: 0; margin: 0 auto; padding: 20px 14px 30px; overflow-x: clip; }
.alert { margin: 0 0 14px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; color: var(--text); background: var(--card); font-weight: 700; }
.alert.error { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.10); }
.alert.success { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.10); }
.page-head { display: grid; gap: 8px; margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: clamp(1.45rem, 4vw, 2.3rem); line-height: 1.05; }
.page-head p { margin: 0; color: var(--text-2); line-height: 1.5; }
.toolbar, .filter-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; margin-bottom: 12px; }
.toolbar > *, .filter-form > * { min-width: 0; }
.filter-form .btn { width: 100%; }
.monthbar { display: grid; grid-template-columns: 44px minmax(0,1fr) 44px; gap: 10px; margin-bottom: 12px; }
.monthbar .btn { display: grid; place-items: center; padding: 0; }
.monthbar strong { display: grid; place-items: center; min-width: 0; min-height: 44px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--text-2); text-transform: uppercase; letter-spacing: .08em; }
.agenda { min-width: 0; max-width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 18px 54px rgba(0,0,0,.24); backdrop-filter: blur(14px); }
:root[data-theme="light"] .agenda { box-shadow: 0 16px 46px rgba(16,24,40,.10); }
.day { display: grid; grid-template-columns: 44px minmax(0,1fr) 50px; min-width: 0; min-height: 72px; border-bottom: 1px solid var(--border-soft); }
.day:last-child { border-bottom: 0; }
.date { display: grid; align-content: start; justify-items: center; gap: 2px; padding-top: 12px; background: rgba(255,255,255,.03); border-right: 1px solid var(--border-soft); color: var(--text-3); text-transform: uppercase; }
:root[data-theme="light"] .date { background: rgba(15,23,42,.035); }
.date span { font-size: .62rem; font-weight: 900; }
.date strong { font-size: 1.08rem; color: var(--text-2); line-height: 1; }
.events { display: grid; gap: 8px; min-width: 0; max-width: 100%; padding: 10px 12px; }
.event { min-width: 0; max-width: 100%; border-left: 4px solid var(--warning); border-radius: 10px; background: rgba(255,255,255,.025); padding: 6px 8px 7px 10px; }
:root[data-theme="light"] .event { background: rgba(15,23,42,.035); }
.event.confirmado { border-color: var(--success); }
.event.cancelado { border-color: var(--danger); opacity: .8; }
.event.adiado { border-color: var(--warning); }
.event b { display: block; overflow: hidden; color: var(--text); font-size: .82rem; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.event small { display: block; margin-top: 2px; color: var(--text-3); font-size: .68rem; line-height: 1.35; overflow-wrap: anywhere; text-transform: uppercase; }
.event-action { display: inline-flex; align-items: center; min-height: 28px; margin-top: 6px; border: 1px solid rgba(124,58,237,.42); border-radius: 999px; padding: 4px 9px; color: var(--text); font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.event-action:hover { background: rgba(124,58,237,.15); }
.event-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.event-actions .event-action { margin-top: 0; background: rgba(255,255,255,.03); cursor: pointer; }
.event-actions .danger-link { border-color: rgba(239,68,68,.42); color: #fecaca; }
.event-actions .danger-link:hover { background: rgba(239,68,68,.14); }
.add { display: grid; place-items: center; border-left: 1px solid var(--border-soft); }
.add .btn { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 12px; }
.cards { display: grid; gap: 12px; }
.card, .kpi { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 18px 54px rgba(0,0,0,.18); padding: 16px; }
:root[data-theme="light"] .card, :root[data-theme="light"] .kpi { box-shadow: 0 14px 40px rgba(16,24,40,.08); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); }
.plan-usage { margin-bottom: 14px; }
.plan-usage .card { min-height: 116px; }
.limit-card { border-color: rgba(245,158,11,.44); background: linear-gradient(180deg, rgba(245,158,11,.12), var(--card)); }
.form-card { display: grid; gap: 12px; margin-bottom: 14px; }
.form-card h3 { margin: 0; }
.hint { margin: 6px 0 0; color: var(--text-3); font-size: .78rem; line-height: 1.45; }
.check-list { display: grid; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 10px; min-height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: rgba(255,255,255,.03); padding: 9px 11px; color: var(--text-2); font-weight: 800; }
:root[data-theme="light"] .check-item { background: rgba(15,23,42,.03); }
.check-item input { width: 18px; height: 18px; accent-color: var(--primary); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--text-3); font-size: .78rem; font-weight: 800; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.card-actions form { margin: 0; }
.card-actions .btn { min-height: 38px; padding: 8px 12px; }
.pill { border: 1px solid rgba(124,58,237,.42); border-radius: 999px; padding: 4px 9px; color: var(--text); background: rgba(124,58,237,.12); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.kpi span { display: block; color: var(--text-3); font-size: .74rem; font-weight: 900; text-transform: uppercase; }
.kpi strong { display: block; margin-top: 9px; font-size: clamp(1.25rem, 4vw, 1.8rem); }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.dashboard-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); padding: 14px; }
.dashboard-filters .field { margin: 0; }
.dashboard-search { grid-column: 1 / -1; }
.dashboard-filter-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.dashboard-filter-actions .btn { flex: 1; min-width: 120px; text-align: center; }
.dashboard-section { display: grid; gap: 14px; margin-top: 22px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; }
.section-title h2 { margin: 0; font-size: clamp(1.25rem, 3vw, 1.8rem); line-height: 1.08; }
.section-title span { color: var(--text-3); font-size: .84rem; font-weight: 800; text-align: right; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.dashboard-grid.compact .card { min-height: 0; }
.dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-label { display: block; margin-bottom: 8px; color: var(--text-3); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.card > strong { display: block; margin-bottom: 5px; font-size: clamp(1.15rem, 3vw, 1.6rem); line-height: 1.08; }
.ranking-card { display: grid; align-content: start; gap: 10px; }
.ranking-card h3, .artist-panel h3, .uf-map-card h3 { margin: 0 0 4px; }
.rank-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--border-soft); padding: 8px 0; color: var(--text-2); font-size: .86rem; }
.rank-row:last-child { border-bottom: 0; }
.rank-row span { min-width: 0; overflow-wrap: anywhere; }
.rank-row strong { flex: 0 0 auto; color: var(--text); font-size: .88rem; text-align: right; }
.uf-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.uf-chip { position: relative; display: flex; justify-content: space-between; gap: 8px; min-height: 42px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; font-weight: 900; }
.uf-chip:before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--size); background: linear-gradient(90deg, rgba(124,58,237,.28), rgba(56,189,248,.18)); pointer-events: none; }
.uf-chip span, .uf-chip strong { position: relative; z-index: 1; }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border-soft); padding: 12px; text-align: left; font-size: .86rem; vertical-align: top; }
.data-table th { color: var(--text-3); font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.data-table td { color: var(--text-2); }
.data-table tr:last-child td { border-bottom: 0; }
.artist-panel { display: grid; gap: 6px; }
.bar-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(110px, 1.4fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); }
.bar-row:last-child { border-bottom: 0; }
.bar-row span { color: var(--text-2); font-size: .86rem; }
.bar-row div { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.bar-row i { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
.bar-row strong { color: var(--text); font-size: .86rem; }
.modal-bg { position: fixed; inset: 0; z-index: 30; display: grid; place-items: end center; padding: 12px; background: rgba(0,0,0,.68); backdrop-filter: blur(8px); }
.modal { width: min(100%, 680px); max-height: 90vh; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--bg-2); box-shadow: var(--shadow); padding: 18px; }
.modal h2 { margin: 0 0 14px; }
.grid2 { display: grid; gap: 12px; }
.form-section { display: grid; gap: 12px; margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.modal h2 + .form-section { padding-top: 0; border-top: 0; }
.form-section h3 { margin: 0; color: var(--text); font-size: .76rem; font-weight: 950; letter-spacing: .12em; text-transform: uppercase; }
.form-section .field { margin-bottom: 0; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.toast { position: fixed; right: 14px; bottom: 18px; z-index: 60; max-width: min(420px, calc(100vw - 28px)); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card-solid); color: var(--text); padding: 12px 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .18s, transform .18s; }
.toast.show { opacity: 1; transform: translateY(0); }
@media (min-width: 760px) {
  .app-shell { grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .top { grid-column: 1 / -1; padding-inline: 22px; }
  .tabs { position: sticky; top: 84px; grid-row: 2; display: flex; min-height: calc(100vh - 84px); flex-direction: column; justify-content: flex-start; border-right: 1px solid var(--border-soft); border-bottom: 0; padding: 18px 12px; background: rgba(13,15,20,.86); }
  :root[data-theme="light"] .tabs { background: rgba(255,255,255,.88); }
  .tabs a { justify-content: flex-start; text-align: left; padding-inline: 15px; }
  .content { grid-column: 2; padding: 28px; }
  .toolbar { grid-template-columns: minmax(260px, 1fr) 160px; }
  .filter-form { grid-template-columns: minmax(220px,1fr) 120px 150px 110px 110px; }
  .grid2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .modal-bg { place-items: center; }
  .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-filter-actions { align-self: end; }
  .dashboard-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .dashboard-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dashboard-grid .wide { grid-column: span 2; }
  .uf-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .login-card { padding: 24px 20px; }
  .brand-logo { width: 162px; height: 52px; }
  .day { grid-template-columns: 38px minmax(0,1fr) 42px; }
  .content { padding-inline: 10px; }
  .top { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 10px; padding: 10px 12px; }
  .brand-logo { width: 162px; height: 52px; }
  .brand small { max-width: calc(100vw - 202px); }
  .top-actions { grid-column: 1 / -1; width: 100%; flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; }
  .top-actions .btn { min-height: 36px; border-radius: 12px; padding: 8px 12px; }
  .tabs { top: 116px; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .monthbar { grid-template-columns: 40px minmax(0,1fr) 40px; }
  .theme-toggle button { padding-inline: 8px; }
  .dashboard-head, .section-title { align-items: start; flex-direction: column; }
  .section-title span { text-align: left; }
  .dashboard-kpis { grid-template-columns: 1fr; }
  .uf-map { grid-template-columns: 1fr; }
}

/* Public sales page */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.sales-page {
  color: var(--text, #fff);
  min-height: 100vh;
  background: linear-gradient(180deg, #08090d 0%, #0b0d12 48%, #07110d 78%, #111217 100%);
}
:root[data-theme="light"] body.sales-page { background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 54%, #eefaf4 78%, #ffffff 100%); }
.sales-top { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 72px; padding: 12px clamp(14px, 3vw, 34px); border-bottom: 1px solid var(--border-soft); background: rgba(8,9,13,.88); backdrop-filter: blur(18px); }
:root[data-theme="light"] .sales-top { background: rgba(255,255,255,.9); }
.sales-logo { display: block; width: clamp(154px, 17vw, 218px); height: 52px; }
.sales-nav { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 24px); min-width: 0; }
.sales-nav a { color: var(--text-2); font-size: .9rem; font-weight: 800; }
.sales-nav a:hover { color: var(--text); }
.sales-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.sales-actions .btn { min-height: 38px; padding-inline: 14px; }
.sales-whatsapp { background: linear-gradient(90deg, #16a34a, #22c55e); box-shadow: 0 12px 28px rgba(34,197,94,.22); }
.sales-hero { width: min(100%, 930px); margin: 0 auto; padding: clamp(58px, 9vw, 112px) 18px 42px; text-align: center; }
.sales-kicker { margin: 0 0 16px; color: var(--accent); font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.sales-hero h1 { margin: 0; font-size: clamp(2.35rem, 6vw, 4.9rem); line-height: .98; letter-spacing: 0; }
.sales-hero h1 span { color: #ff7a1a; }
.sales-hero > p:last-child { width: min(100%, 740px); margin: 22px auto 0; color: var(--text-2); font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.62; }
.pricing-section { width: min(100%, 1280px); margin: 0 auto; padding: 10px 18px 92px; }
.billing-toggle { position: relative; display: flex; align-items: center; justify-content: center; width: max-content; max-width: 100%; margin: 0 auto 36px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.045); padding: 5px; }
:root[data-theme="light"] .billing-toggle { background: rgba(15,23,42,.05); }
.billing-toggle button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 92px; min-height: 38px; border-radius: 999px; background: transparent; color: var(--text-3); font-weight: 900; cursor: pointer; }
.billing-toggle button.active { background: var(--text); color: var(--bg); box-shadow: 0 10px 22px rgba(0,0,0,.22); }
.billing-toggle small { color: #ef4444; font-size: .66rem; font-weight: 900; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan-card { --plan-accent: var(--primary); position: relative; display: flex; min-height: 620px; flex-direction: column; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); background: rgba(23,24,29,.9); box-shadow: 0 22px 62px rgba(0,0,0,.2); padding: 28px 22px 22px; overflow: visible; }
:root[data-theme="light"] .plan-card { background: rgba(255,255,255,.96); box-shadow: 0 18px 50px rgba(16,24,40,.1); }
.plan-card:before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--plan-accent); opacity: .95; }
.plan-card.featured { border-color: color-mix(in srgb, var(--plan-accent) 60%, var(--border)); transform: translateY(-8px); }
.plan-green { --plan-accent: #22c55e; }
.plan-blue { --plan-accent: #1592ff; }
.plan-purple { --plan-accent: #a855f7; }
.plan-yellow { --plan-accent: #facc15; }
.popular-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; min-height: 26px; border-radius: 999px; background: #1592ff; color: #fff; padding: 5px 13px; font-size: .68rem; font-weight: 950; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 26px rgba(21,146,255,.32); }
.plan-head { display: grid; gap: 8px; min-height: 132px; }
.plan-head p { margin: 0; color: var(--text-3); font-size: .75rem; font-weight: 950; letter-spacing: .16em; text-transform: uppercase; }
.plan-head h3 { margin: 0; color: var(--text); font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1; letter-spacing: 0; }
.plan-head strong { display: block; color: var(--text); font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.05; font-weight: 950; }
.plan-head em { display: inline-flex; width: max-content; max-width: 100%; border: 1px solid rgba(21,146,255,.38); border-radius: 999px; background: rgba(21,146,255,.12); color: #38BDF8; padding: 4px 9px; font-size: .72rem; font-style: normal; font-weight: 950; text-transform: uppercase; }
.plan-head span { color: var(--text-3); font-size: .86rem; font-weight: 800; }
.plan-summary { min-height: 78px; margin: 0 0 18px; color: var(--text-2); line-height: 1.52; }
.plan-capacity { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.plan-capacity span { display: inline-flex; align-items: center; min-height: 28px; border: 1px solid color-mix(in srgb, var(--plan-accent) 42%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--plan-accent) 12%, transparent); color: var(--text); padding: 5px 10px; font-size: .78rem; font-weight: 900; }
.plan-card ul { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.plan-card li { position: relative; min-height: 22px; padding-left: 28px; color: var(--text-2); font-size: .9rem; line-height: 1.4; }
.plan-card li:before { content: "\2713"; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid color-mix(in srgb, var(--plan-accent) 65%, var(--border)); border-radius: 50%; color: var(--plan-accent); font-size: .72rem; font-weight: 950; }
.plan-card .btn { width: 100%; margin-top: auto; text-align: center; }
.benefits-section, .faq-section { width: min(100%, 1080px); margin: 0 auto; padding: 78px 18px; text-align: center; }
.benefits-section h2, .faq-section h2, .support-section h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: 0; }
.section-lead { width: min(100%, 660px); margin: 15px auto 0; color: var(--text-2); line-height: 1.6; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px 54px; margin-top: 58px; text-align: left; }
.benefit-grid article { min-width: 0; }
.benefit-grid span, .faq-icon, .support-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(56,189,248,.32); border-radius: 50%; background: rgba(56,189,248,.08); color: var(--accent); font-size: .78rem; font-weight: 950; }
.benefit-grid h3 { margin: 18px 0 9px; font-size: 1rem; }
.premium-benefits span { font-size: 1.12rem; letter-spacing: 0; }
.benefit-grid p { margin: 0; color: var(--text-2); line-height: 1.58; }
.faq-icon { margin: 0 auto 22px; border-radius: 16px; }
.faq-list { display: grid; gap: 12px; width: min(100%, 720px); margin: 42px auto 0; text-align: left; }
.faq-list details { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.045); overflow: hidden; }
:root[data-theme="light"] .faq-list details { background: rgba(255,255,255,.9); }
.faq-list summary { min-height: 58px; padding: 18px 22px; color: var(--text); font-weight: 900; cursor: pointer; }
.faq-list p { margin: 0; border-top: 1px solid var(--border-soft); padding: 0 22px 18px; color: var(--text-2); line-height: 1.6; }
.support-section { margin-top: 54px; border-top: 1px solid rgba(34,197,94,.12); border-bottom: 1px solid rgba(34,197,94,.12); background: linear-gradient(180deg, rgba(34,197,94,.08), rgba(34,197,94,.025)); padding: 86px 18px; text-align: center; }
.support-icon { width: 58px; height: 58px; margin: 0 auto 24px; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.14); color: #22c55e; }
.support-section p { width: min(100%, 610px); margin: 16px auto 24px; color: var(--text-2); line-height: 1.6; }
.support-button { display: inline-flex; align-items: center; justify-content: center; min-width: min(100%, 320px); background: #22c55e; color: #fff; box-shadow: 0 16px 34px rgba(34,197,94,.26); }
.support-button:hover { background: #16a34a; }
.support-section small { display: block; margin-top: 12px; color: var(--text-3); font-weight: 800; }
.sales-footer { display: grid; grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, .7fr)); gap: 34px; width: min(100%, 1120px); margin: 0 auto; padding: 64px 18px 72px; }
.footer-logo { display: block; width: 200px; height: 54px; margin-bottom: 16px; }
.sales-footer p { max-width: 340px; margin: 0 0 20px; color: var(--text-2); line-height: 1.6; }
.sales-footer h3 { margin: 0 0 16px; color: var(--text); font-size: .78rem; font-weight: 950; letter-spacing: .14em; text-transform: uppercase; }
.sales-footer a:not(.btn) { display: block; margin: 0 0 12px; color: var(--text-2); font-weight: 800; }
.sales-footer a:not(.btn):hover { color: var(--text); }
.login-links { display: grid; gap: 8px; margin-top: 16px; text-align: center; }
.login-links a { color: var(--accent); font-weight: 900; }
.checkout-card { width: min(100%, 520px); }
.signup-page { place-items: start center; padding-block: 18px; }
.signup-card { width: min(100%, 620px); }
.signup-card form { display: grid; gap: 0; }
.signup-card .login-logo-pair { margin-bottom: 14px; }
.signup-plan { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 16px; }
.signup-plan div { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.04); padding: 12px; }
:root[data-theme="light"] .signup-plan div { background: rgba(15,23,42,.03); }
.signup-plan span { display: block; color: var(--text-3); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.signup-plan strong { display: block; margin-top: 5px; color: var(--text); font-size: 1rem; }
.signup-passwords { gap: 0; }
.terms-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 16px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.04); padding: 12px; color: var(--text-2); font-size: .88rem; font-weight: 800; line-height: 1.45; text-align: left; }
:root[data-theme="light"] .terms-check { background: rgba(15,23,42,.03); }
.terms-check input { width: 20px; height: 20px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--primary); }
.terms-check a { color: var(--accent); font-weight: 950; text-decoration: underline; text-underline-offset: 3px; }
.payment-redirect { display: grid; gap: 14px; margin-top: 16px; text-align: center; }
.payment-redirect h2 { margin: 0; font-size: 1.35rem; }
.payment-redirect p { margin: 0; }
.payment-redirect .primary { width: 100%; }
.owner-shell { min-height: 100vh; }
.owner-content { max-width: 1380px; }
.owner-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.owner-tabs a { display: inline-flex; align-items: center; min-height: 40px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255,255,255,.04); color: var(--text-2); padding: 8px 13px; font-size: .82rem; font-weight: 900; }
.owner-tabs a:hover { border-color: rgba(124,58,237,.5); background: rgba(124,58,237,.12); color: var(--text); }
.owner-kpis { margin-bottom: 18px; }
.owner-filters { grid-template-columns: minmax(0, 1fr); }
.owner-table-wrap { border-radius: var(--radius); }
.owner-table td strong { color: var(--text); }
.owner-table td span { color: var(--text-3); font-size: .78rem; font-weight: 800; }
.status-pill { display: inline-flex; align-items: center; min-height: 26px; border-radius: 999px; padding: 4px 9px; color: var(--text); font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.status-pill.ok { background: rgba(34,197,94,.16); color: #86efac; }
.status-pill.bad { background: rgba(239,68,68,.16); color: #fecaca; }
.owner-actions-card { display: grid; gap: 14px; }
.owner-actions-card h3 { margin: 0; }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.owner-actions.slim { margin-top: 14px; }
.owner-actions form { margin: 0; }
.owner-inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.owner-inline-form .input, .owner-inline-form .select { min-width: min(100%, 160px); }
.owner-actions .btn, .owner-table .btn { min-height: 38px; padding: 8px 12px; }
.gateway-card { display: grid; align-content: start; gap: 12px; }
.gateway-card h3 { margin: 0; }
.gateway-form { display: grid; gap: 10px; }
.gateway-form .field { margin: 0; }
.gateway-form .primary { width: 100%; }
.gateway-clear-form { margin: 0; }
.gateway-clear-form .danger { width: 100%; }
.plan-admin-form .grid2 { gap: 10px; }
.plan-list-panel { display: grid; align-content: start; gap: 12px; }
.compact-title { margin-bottom: 0; }
.existing-plan-list { display: grid; gap: 12px; }
.existing-plan-card { display: grid; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); box-shadow: 0 14px 38px rgba(0,0,0,.14); padding: 16px; }
:root[data-theme="light"] .existing-plan-card { box-shadow: 0 12px 32px rgba(16,24,40,.08); }
.existing-plan-card h3 { margin: 0; color: var(--text); font-size: 1.05rem; }
.existing-plan-card p { margin: 3px 0 0; color: var(--text-3); font-size: .78rem; font-weight: 850; }
.existing-plan-values { display: flex; flex-wrap: wrap; gap: 8px; }
.existing-plan-values span { display: inline-flex; min-height: 28px; align-items: center; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); padding: 5px 10px; font-size: .78rem; font-weight: 900; }
.existing-plan-card .btn { width: 100%; justify-content: center; }
.plan-checks { display: grid; gap: 8px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.035); padding: 12px; }
:root[data-theme="light"] .plan-checks { background: rgba(15,23,42,.03); }
.plan-checks label { display: flex; gap: 9px; align-items: center; color: var(--text-2); font-size: .86rem; font-weight: 850; }
.plan-checks input { width: 17px; height: 17px; accent-color: var(--primary); flex: 0 0 auto; }
.gateway-status-list { display: grid; gap: 10px; }
.gateway-status-list div { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.035); padding: 12px; }
:root[data-theme="light"] .gateway-status-list div { background: rgba(15,23,42,.03); }
.gateway-status-list span { display: block; color: var(--text-3); font-size: .72rem; font-weight: 950; text-transform: uppercase; }
.gateway-status-list strong { display: block; margin-top: 5px; color: var(--text); }
.gateway-status-list small { display: block; margin-top: 4px; color: var(--text-3); overflow-wrap: anywhere; font-weight: 800; }
.legal-body { background: var(--bg); }
.legal-page { width: min(100%, 980px); margin: 0 auto; padding: clamp(22px, 4vw, 48px) 16px 80px; }
.legal-content { border: 1px solid var(--border); border-radius: var(--radius-xl); background: var(--card); box-shadow: var(--shadow); padding: clamp(20px, 5vw, 42px); }
.legal-content h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.04; }
.legal-content h2 { margin: 28px 0 10px; color: var(--text); font-size: clamp(1.1rem, 3vw, 1.45rem); line-height: 1.16; }
.legal-content p, .legal-content li { color: var(--text-2); line-height: 1.7; }
.legal-content ul { display: grid; gap: 6px; margin: 10px 0 0; padding-left: 20px; }
.billing-lock { display: grid; gap: 16px; width: min(100%, 680px); margin: 0 auto; border: 1px solid rgba(239,68,68,.36); border-radius: var(--radius-xl); background: linear-gradient(180deg, rgba(239,68,68,.12), rgba(23,24,29,.88)); box-shadow: var(--shadow); padding: clamp(20px, 5vw, 34px); text-align: center; }
:root[data-theme="light"] .billing-lock { background: linear-gradient(180deg, rgba(239,68,68,.08), rgba(255,255,255,.96)); }
.billing-lock-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: rgba(239,68,68,.16); color: var(--danger); font-size: 1.5rem; font-weight: 950; }
.billing-lock h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; }
.billing-lock p { margin: 0; color: var(--text-2); line-height: 1.58; }
.billing-lock-grid { display: grid; gap: 10px; margin: 4px 0; text-align: left; }
.billing-lock-grid div { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.04); padding: 12px; }
:root[data-theme="light"] .billing-lock-grid div { background: rgba(15,23,42,.03); }
.billing-lock-grid span { display: block; color: var(--text-3); font-size: .72rem; font-weight: 900; text-transform: uppercase; }
.billing-lock-grid strong { display: block; margin-top: 5px; color: var(--text); }
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-card.featured { transform: none; }
}
@media (max-width: 840px) {
  .sales-top { grid-template-columns: 1fr; gap: 10px; justify-items: center; }
  .sales-nav { order: 3; width: 100%; overflow-x: auto; justify-content: flex-start; padding-bottom: 4px; }
  .sales-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
  .sales-hero { padding-top: 44px; }
  .benefit-grid, .sales-footer { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .plan-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: auto; }
  .plan-head, .plan-summary { min-height: 0; }
  .sales-nav a { white-space: nowrap; }
  .billing-toggle { width: 100%; }
  .billing-toggle button { flex: 1; min-width: 0; }
}
@media (min-width: 560px) {
  .signup-plan { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .signup-passwords { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
