:root {
  --green: #1f9d55;
  --green-dark: #0b3d2e;
  --green-mid: #146c43;
  --green-soft: #e7f8ee;
  --ink: #10231b;
  --muted: #5d6f66;
  --line: #d7e6dc;
  --bg: #f3f7f4;
  --red: #dc2626;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(11, 61, 46, .06);
  --radius: 18px;
  font-family: "Poppins", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); letter-spacing: -0.01em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.due-bar { background: var(--red); color: #fff; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 8px 18px; font-size: 13px; }
.due-bar a { background: #fff; color: var(--red); border-radius: 999px; padding: 6px 12px; font-weight: 700; }
.topbar { height: 68px; background: linear-gradient(90deg, #0f766e, #0d9488 55%, #14b8a6); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 20; box-shadow: 0 8px 24px rgba(15, 118, 110, .18); }
.topbar .brand, .topbar .brand:hover { color: #fff; }
.topbar .muted { color: rgba(255,255,255,.88); font-weight: 600; }
.topbar .search { background: rgba(255,255,255,.16); border-color: transparent; }
.topbar .search input { color: #fff; }
.topbar .search input::placeholder { color: rgba(255,255,255,.72); }
.topbar .chip { background: rgba(255,255,255,.16); border-color: transparent; color: #fff; }
.topbar .chip.due { background: #fff; border-color: #fff; color: #b91c1c; }
.topbar .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.topbar .btn.ghost:hover { background: rgba(255,255,255,.16); }
.topbar .btn:not(.ghost):not(.danger) { background: #fff; color: #0f766e; box-shadow: none; }
.topbar .btn:not(.ghost):not(.danger):hover { background: #f0fdfa; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-dark); min-width: 140px; }
.brand-mark { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(145deg, #6ee7a8, #146c43 55%, #0b3d2e); color: #fff; display: grid; place-items: center; font-size: 14px; }
.brand-logo { height: 55px; width: auto; max-width: 180px; object-fit: contain; background: transparent; display: block; }
.logo-preview { display: flex; align-items: center; min-height: 68px; padding: 12px 16px; border-radius: 12px; background: linear-gradient(90deg, #0f766e, #0d9488 55%, #14b8a6); }
.logo-preview img { height: 40px; width: auto; max-width: 240px; object-fit: contain; }
.logo-preview-empty { color: rgba(255,255,255,.85); font-size: 13px; }
.icon-preview { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.icon-preview img { width: 32px; height: 32px; object-fit: contain; }
.icon-preview-empty { color: var(--muted); font-size: 12px; text-align: center; line-height: 1.2; }
.search { flex: 1; max-width: 420px; background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; padding: 0 12px; }
.search input { border: 0; background: transparent; width: 100%; padding: 9px 8px; outline: none; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.chip { border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.chip.due { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.shell { display: flex; min-height: calc(100vh - 64px); }
.sidebar { width: 248px; background: #fff; border-right: 1px solid var(--line); padding: 8px 10px 24px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow: auto; }
.nav-group { border-bottom: 1px solid #f1f5f9; }
.nav-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: transparent; border: 0; padding: 14px 8px; color: #334155; font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; }
.nav-toggle .chev { width: 7px; height: 7px; border-right: 1.6px solid #94a3b8; border-bottom: 1.6px solid #94a3b8; transform: rotate(-45deg); flex: none; margin-right: 4px; }
.nav-group.open .chev { transform: rotate(45deg); margin-top: -3px; }
.nav-sub { display: none; padding: 0 4px 8px 8px; }
.nav-group.open .nav-sub { display: block; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: #64748b; font-size: 13.5px; margin-bottom: 2px; }
.nav-toggle:hover, .nav-group.open > .nav-toggle { color: #0f766e; }
.nav-link:hover { background: #f0fdfa; color: #0f766e; }
.nav-link.active { background: #ccfbf1; color: #0f766e; font-weight: 700; box-shadow: inset 3px 0 0 #0f766e; }
.nav-link.active:hover { background: #99f6e4; }
.nav-link .pill { margin-left: auto; background: #fef3c7; color: #b45309; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 2px 6px; }
.nav-link.active .pill { background: rgba(255,255,255,.2); color: #fff; }
.nav-link .nav-count { margin-left: auto; background: #16a34a; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; min-width: 20px; padding: 2px 6px; text-align: center; }
.main { flex: 1; padding: 22px; min-width: 0; }
.page-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; margin-bottom: 16px; }
.page-head h1, .main > h1 { margin: 0; font-size: 28px; letter-spacing: -0.03em; color: var(--green-dark); font-weight: 700; }
.page-head p, .muted { color: var(--muted); margin: 4px 0 0; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1.4fr .8fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.hero { background: linear-gradient(90deg, #16a34a, #22c55e); color: #fff; border: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.hero span { display: block; opacity: .85; font-size: 12px; }
.hero strong { font-size: 18px; }
.stat strong { display: block; font-size: 28px; margin-top: 6px; }
.stat span { color: var(--muted); font-size: 13px; }
.btn { border: 0; background: linear-gradient(135deg, #3dce7a, #146c43 58%, #0b3d2e); color: #fff; border-radius: 12px; padding: 10px 16px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 10px 20px rgba(11, 61, 46, .18); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.danger { background: #fee2e2; color: #b91c1c; box-shadow: none; }
.wa-swal { font-family: Poppins, sans-serif; border-radius: var(--radius); padding: 1.6rem 1.4rem 1.3rem; }
.wa-swal .swal2-title { color: var(--green-dark); font-size: 22px; font-weight: 700; }
.wa-swal .swal2-html-container { color: var(--muted); font-size: 14px; }
.wa-swal .swal2-actions { gap: 10px; margin-top: 18px; }
.wa-swal .swal2-icon { margin-top: 8px; }
.btn.soft { background: var(--green-soft); color: var(--green-dark); }
a.btn { display: inline-flex; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #0b3d2e; font-weight: 700; padding: 14px 16px; background: linear-gradient(180deg, #f4fbf7, #e7f6ee); border-bottom: 1px solid #d5eadc; }
.table td { padding: 15px 16px; border-bottom: 1px solid #eef6f1; vertical-align: middle; color: #1c3328; }
.table tbody tr:hover td { background: #f6fbf8; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td:first-child { font-weight: 600; color: var(--green-dark); }
.table td:last-child { text-align: right; white-space: nowrap; }
.card:has(table) { padding: 0; overflow: hidden; }
.card:has(table) > h2, .card:has(table) > h3, .card:has(table) > .filters, .card:has(table) > form, .card:has(table) > div:first-child { padding: 16px 16px 0; }
.badge { border-radius: 999px; padding: 3px 8px; font-size: 11px; font-weight: 800; background: #f1f5f9; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.amber { background: #fef3c7; color: #92400e; }
.badge.red { background: #fee2e2; color: #991b1b; }
.alert { border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.alert.ok { background: #ecfdf3; color: #166534; }
.alert.bad { background: #fef2f2; color: #991b1b; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.secret-field { position: relative; display: flex; align-items: center; width: 100%; }
.secret-field input { width: 100%; min-width: 0; flex: 1; padding-right: 44px; }
.secret-field .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #146c43; cursor: pointer; padding: 4px; line-height: 0; display: grid; place-items: center; }
.field input, .field select, .field textarea, .filters input, .filters select, .composer input, .composer select, .block input, .block textarea, .block select { border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; background: #f7fbf8; }
.field input:focus, .field select:focus, .field textarea:focus, .filters input:focus, .filters select:focus { outline: 3px solid #c6f0d6; background: #fff; border-color: #7dcea0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters input, .filters select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; }
.lock { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.lock-art { width: 180px; height: 140px; margin: 0 auto 12px; background: radial-gradient(circle at 30% 40%, #86efac, #22c55e 55%, #bbf7d0); border-radius: 28px; position: relative; }
.lock-art:after { content: ""; position: absolute; width: 54px; height: 64px; border: 8px solid #facc15; border-radius: 12px; right: 28px; top: 36px; background: #fff; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.plan.current { border: 2px solid var(--green); }
.plan h3 { margin: 0 0 4px; }
.plan .price { font-size: 28px; font-weight: 800; }
.plan ul { list-style: none; padding: 0; margin: 12px 0 0; }
.plan li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 7px 0; }
.on { color: var(--green-dark); font-weight: 800; }
.off { color: #f87171; font-weight: 800; }
body:has(.chat) { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
body:has(.chat) .shell { flex: 1; min-height: 0; }
body:has(.chat) .main { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding: 12px 16px; }
body:has(.chat) .app-foot { display: none; }
.chat { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); flex: 1; min-height: 0; height: auto; overflow: hidden; padding: 0; }
.chat-list { border-right: 1px solid var(--line); overflow: auto; min-height: 0; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.chat-actions { display: flex; gap: 8px; flex: none; }
.chat-head > div { min-width: 0; }
.chat-back { display: none; }
.thread { display: flex; gap: 10px; padding: 12px; border-bottom: 1px solid #f1f5f9; }
.thread.active { background: #f0fdf4; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: #dcfce7; color: #166534; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.bubbles { padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f8fafc; flex: 1; min-height: 0; overflow: auto; }
.bubble { max-width: min(70%, 520px); padding: 8px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); overflow-wrap: anywhere; }
.bubble.out { margin-left: auto; background: #dcfce7; }
.chat-dock { flex: none; border-top: 1px solid var(--line); background: #fff; }
.chat-dock .alert { margin: 10px 12px 0; }
.chat-extra { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }
.composer { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border-top: 0; align-items: center; }
.composer input, .composer select { flex: 1 1 140px; min-width: 0; width: auto; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.composer select[name="mode"] { flex: 0 1 120px; }
.composer .btn { flex: none; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bars i { display: block; width: 14px; background: var(--green); border-radius: 6px 6px 0 0; }
.bars b { display: block; width: 14px; background: #93c5fd; border-radius: 6px 6px 0 0; margin-top: 2px; }
.tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 8px 2px 10px; color: var(--muted); font-weight: 700; }
.tabs a.active { color: var(--green-dark); border-bottom: 2px solid var(--green); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; overflow: auto; }
.kanban .col { background: linear-gradient(180deg, #e7f8ee, #fff 70px); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-height: 240px; }
.kanban .col > strong { display: block; color: var(--green-dark); margin-bottom: 10px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gallery-grid img, .ph { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; background: #e2e8f0; }
.auth-wrap, .market { min-height: 100vh; }
.auth-wrap { display: grid; place-items: center; background: linear-gradient(180deg, #ecfdf3, #f4f6f8); }
.auth-card { width: min(440px, 92vw); background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.market-hero { padding: 48px 8vw 24px; background: linear-gradient(180deg, #ecfdf3, #fff); }
.market-hero h1 { font-size: 46px; line-height: 1.1; margin: 0 0 12px; }
.lp { background: #f6f8fb; color: var(--ink); }
.lp-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 22px; height: 68px; padding: 0 6vw; background: linear-gradient(90deg, #0f766e, #0d9488 55%, #14b8a6); color: #fff; box-shadow: 0 8px 24px rgba(15, 118, 110, .18); }
.lp-nav .brand, .lp-nav .brand:hover { color: #fff; }
.lp-nav nav { display: flex; gap: 18px; font-weight: 600; font-size: 14px; }
.lp-nav nav a:hover { opacity: .8; }
.lp-nav-actions { margin-left: auto; display: flex; gap: 8px; }
.lp-nav .btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.lp-nav .btn.ghost:hover { background: rgba(255,255,255,.16); }
.lp-nav .btn:not(.ghost) { background: #fff; color: #0f766e; box-shadow: none; }
.lp-hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: center; padding: 64px 6vw 36px; background: radial-gradient(900px 420px at 15% -10%, #dcfce7, transparent 60%), linear-gradient(180deg, #f3fbf6, #f6f8fb 72%); }
.lp-kicker { color: #15803d; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
.lp h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; letter-spacing: -.045em; margin: 0; }
.lp h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; line-height: 1.15; margin: 0 0 22px; }
.lp-lead { font-size: 18px; line-height: 1.6; color: #475569; max-width: 620px; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.lp-points { list-style: none; padding: 0; margin: 0; color: #334155; }
.lp-points li { margin: 8px 0; padding-left: 22px; position: relative; }
.lp-points li:before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; }
.lp-stage { position: relative; }
.lp-window { background: #fff; border: 1px solid #e6edf5; border-radius: 22px; box-shadow: 0 30px 70px rgba(15,23,42,.12); overflow: hidden; }
.lp-window-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: #64748b; font-size: 13px; }
.lp-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #e2e8f0; }
.lp-window-bar span:first-child { background: #86efac; }
.lp-window-bar strong { margin-left: 8px; color: #0f172a; }
.lp-window-body { display: grid; grid-template-columns: 180px 1fr; min-height: 280px; }
.lp-window-body aside { border-right: 1px solid var(--line); padding: 8px; background: #f8fafc; }
.lp-window-body aside b { display: block; padding: 10px; border-radius: 12px; font-size: 13px; }
.lp-window-body aside b.on { background: #fff; box-shadow: var(--shadow); }
.lp-window-body small { display: block; color: #64748b; font-weight: 500; margin-top: 3px; }
.lp-window-body > div { padding: 16px; }
.lp-bubble { max-width: 86%; border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: 14px; line-height: 1.45; }
.lp-bubble.in { background: #f1f5f9; }
.lp-bubble.out { background: #dcfce7; margin-left: auto; }
.lp-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.lp-metrics div { background: #f8fafc; border-radius: 12px; padding: 10px; }
.lp-metrics span { display: block; color: #64748b; font-size: 12px; }
.lp-metrics strong { font-size: 20px; }
.lp-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 6vw; background: #0f172a; color: #fff; border-radius: 18px; overflow: hidden; }
.lp-strip div { padding: 18px 20px; }
.lp-strip span { display: block; color: #94a3b8; font-size: 13px; margin-top: 4px; }
.lp-section { padding: 72px 6vw 10px; }
.lp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-grid article, .lp-plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.lp-grid span { color: #16a34a; font-weight: 800; font-size: 13px; }
.lp-grid h3 { margin: 8px 0; }
.lp-grid p, .lp-steps span, .lp-faq p { color: #64748b; line-height: 1.55; }
.lp-steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.lp-steps li { background: #fff; border-radius: 20px; padding: 22px; border: 1px solid var(--line); }
.lp-steps strong, .lp-steps span { display: block; }
.lp-steps strong:before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #ecfdf3; color: #15803d; margin-bottom: 12px; }
.lp-toggle { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.lp-toggle button { border: 0; background: transparent; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; color: #64748b; }
.lp-toggle button.on { background: #0f172a; color: #fff; }
.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.lp-plan { display: flex; flex-direction: column; position: relative; }
.lp-plan.featured { border-color: #86efac; box-shadow: 0 18px 40px rgba(22,163,74,.15); }
.lp-plan em { position: absolute; top: 14px; right: 14px; background: #ecfdf3; color: #166534; font-style: normal; font-size: 11px; font-weight: 800; border-radius: 999px; padding: 4px 8px; }
.lp-plan .price { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.lp-plan .price span, .lp-year { color: #64748b; font-size: 14px; font-weight: 600; }
.lp-plan ul { list-style: none; padding: 0; margin: 8px 0 16px; flex: 1; }
.lp-plan li { font-size: 13px; margin: 8px 0; padding-left: 16px; position: relative; }
.lp-plan li:before { content: ""; position: absolute; left: 0; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.lp-plan .btn { justify-content: center; }
.lp-faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.lp-faq summary { font-weight: 700; cursor: pointer; }
.lp-close { margin: 56px 6vw 20px; background: linear-gradient(120deg, #14532d, #16a34a); color: #fff; border-radius: 24px; padding: 32px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.lp-close h2, .lp-close p { color: #fff; margin: 0; }
.lp-close p { opacity: .85; margin-top: 6px; }
.lp-close .btn { background: #fff; color: #14532d; box-shadow: none; }
.lp-foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 18px 28px; margin-top: 28px; padding: 28px 6vw 16px; background: linear-gradient(90deg, #0f766e, #0d9488 55%, #14b8a6); color: rgba(255,255,255,.9); }
.lp-foot .brand, .lp-foot .brand:hover { color: #fff; }
.lp-foot-brand p { margin: 8px 0 0; max-width: 280px; font-size: 13px; line-height: 1.5; }
.lp-foot strong { display: block; margin-bottom: 6px; font-size: 13px; }
.lp-foot a { display: block; margin: 5px 0; font-weight: 600; color: #fff; }
.lp-foot a:hover { opacity: .8; }
.lp-foot-copy { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.25); font-size: 12px; }
.legal-page { width: min(840px, calc(100% - 48px)); margin: 28px auto 48px; }
.legal-page h1 { margin: 0 0 14px; }
.legal-page section { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-top: 12px; }
.legal-page h2 { color: var(--green-dark); font-size: 18px; }
.legal-page p, .legal-page li { line-height: 1.65; }
.legal-page a { color: var(--green-mid); }
.app-foot, .auth-legal { display: flex; gap: 16px; color: var(--muted); font-size: 13px; font-weight: 600; }
.app-foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.auth-legal { justify-content: center; margin-top: 16px; }
@media (max-width: 1100px) {
  .lp-hero, .lp-grid, .lp-steps ol, .lp-plans, .lp-strip { grid-template-columns: 1fr 1fr; }
  .lp-nav nav { display: none; }
}
@media (max-width: 720px) {
  .lp-hero, .lp-grid, .lp-steps ol, .lp-plans, .lp-strip, .lp-window-body { grid-template-columns: 1fr; }
  .lp-close { flex-direction: column; align-items: flex-start; }
  .lp-nav { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
  .lp-foot { grid-template-columns: 1fr 1fr; }
  .lp-window-body aside { display: none; }
}
.pager { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.row-actions { display: flex; gap: 6px; }
.platform-app .shell { min-height: calc(100vh - 68px); align-items: stretch; }
.platform-app .sa-side { width: 256px; padding: 14px 12px 28px; position: sticky; top: 68px; height: calc(100vh - 68px); }
.platform-app .nav-label { color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; margin: 16px 12px 6px; }
.platform-app .nav-label:first-child { margin-top: 4px; }
.platform-app .sa-side .nav-link { gap: 10px; padding: 10px 12px; border-radius: 12px; color: #334155; font-size: 14px; font-weight: 600; }
.platform-app .sa-side .nav-link svg { width: 18px; height: 18px; fill: #94a3b8; flex: none; }
.platform-app .sa-side .nav-link:hover { background: #f8fafc; color: #0f172a; }
.platform-app .sa-side .nav-link.active { background: #ecfdf5; color: #0f766e; font-weight: 700; box-shadow: inset 3px 0 0 #0f766e; }
.platform-app .sa-side .nav-link.active svg { fill: #0f766e; }
.sa-top { height: 68px; background: linear-gradient(90deg, #0f766e, #0d9488 55%, #14b8a6); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; position: sticky; top: 0; z-index: 30; box-shadow: 0 8px 24px rgba(15, 118, 110, .18); }
.sa-top .brand, .sa-top .brand:hover { color: #fff; }
.sa-top .brand-mark { background: #fff; color: #128c7e; }
.sa-nav-right { display: flex; align-items: center; gap: 8px; }
.sa-menu { position: relative; }
.sa-icon-btn, .sa-user-btn { border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 999px; height: 40px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.sa-icon-btn { width: 40px; justify-content: center; position: relative; }
.sa-user-btn { padding: 0 10px 0 6px; }
.sa-icon-btn svg, .sa-user-btn svg { width: 18px; height: 18px; fill: currentColor; }
.sa-avatar { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: #0f766e; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.sa-user-name { font-weight: 600; font-size: 14px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sa-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; }
.sa-drop { position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 18px 40px rgba(15, 23, 42, .18); overflow: hidden; z-index: 40; }
.sa-drop[hidden] { display: none !important; }
.sa-drop-head { padding: 12px 14px; font-weight: 700; color: var(--green-dark); border-bottom: 1px solid var(--line); }
.sa-alert { display: block; padding: 10px 14px; border-bottom: 1px solid #f1f5f9; }
.sa-alert strong, .sa-alert span { display: block; }
.sa-alert strong { font-size: 13px; }
.sa-alert span { color: var(--muted); font-size: 12px; }
.sa-alert em { color: #94a3b8; font-style: normal; font-size: 11px; }
.sa-alert.unread { background: #f0fdf4; }
.sa-alert:hover { background: #f8fafc; }
.sa-empty { margin: 0; padding: 16px 14px; color: var(--muted); font-size: 13px; }
.sa-drop-all, .sa-user-menu a, .sa-user-menu button { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 12px 14px; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.sa-drop-all { text-align: center; color: #0f766e; border-top: 1px solid var(--line); }
.sa-user-menu { width: 220px; }
.sa-user-menu a:hover, .sa-user-menu button:hover, .sa-drop-all:hover { background: #f8fafc; }
@media (max-width: 720px) {
  .sa-user-name { display: none; }
  .sa-drop { width: min(320px, calc(100vw - 24px)); }
}
.sa-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.sa-stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
a.sa-stat:hover { border-color: #bbf7d0; }
.dash-hero { margin-bottom: 14px; }
.dash-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-metrics div { background: #f8fafc; border-radius: 12px; padding: 12px; }
.dash-metrics span { display: block; color: var(--muted); font-size: 12px; }
.dash-metrics strong { font-size: 18px; }
.dash-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; background: linear-gradient(135deg, #ecfdf3, #fff 55%); }
.dash-activity { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.dash-activity em { color: var(--muted); font-style: normal; font-size: 12px; }
.vn-banner { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.vn-banner.ok { background: #ecfdf3; border: 1px solid #bbf7d0; }
.vn-banner p { margin: 4px 0 0; }
.vn-methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.vn-method { position: relative; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px; cursor: pointer; }
.vn-method.active { border-color: #34d399; background: #ecfdf3; box-shadow: inset 0 0 0 1px #a7f3d0; }
.vn-method p { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
.vn-radio { width: 16px; height: 16px; border: 2px solid #cbd5e1; border-radius: 50%; display: inline-block; margin-bottom: 8px; }
.vn-method.active .vn-radio { border-color: #059669; background: radial-gradient(circle, #fff 35%, #059669 38%); }
.vn-beta { position: absolute; right: 10px; top: 10px; background: #f1f5f9; color: #64748b; border-radius: 999px; font-size: 10px; font-weight: 800; padding: 2px 6px; }
.vn-after { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 12px; }
.vn-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; }
.vn-soft { background: #ecfdf3; border-color: #bbf7d0; }
.vn-pin { background: #fffbeb; border-color: #fde68a; }
.builder { display: grid; grid-template-columns: 200px minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.palette { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); position: sticky; top: 84px; }
.palette button { width: 100%; text-align: left; border: 1px dashed #cbd5e1; background: #f8fafc; border-radius: 12px; padding: 10px 12px; margin-top: 8px; cursor: grab; font-weight: 700; color: #334155; }
.palette button:hover { border-color: #22c55e; background: #ecfdf3; }
.canvas { min-height: 220px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 16px; padding: 12px; }
.block { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: grab; }
.block.is-trigger { border-color: #86efac; background: #f0fdf4; }
.block-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.block-top button { border: 0; background: transparent; color: #b91c1c; cursor: pointer; font-weight: 700; }
.block input, .block textarea, .block select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-top: 6px; background: #f8fafc; }
.drop-hint { color: var(--muted); text-align: center; padding: 36px 12px; }
.preview-card { position: sticky; top: 84px; }
.mail-preview { background: #f8fafc; border-radius: 12px; padding: 16px; margin-top: 10px; min-height: 180px; }
.preview-field { margin-bottom: 10px; }
.preview-field input, .preview-field textarea, .preview-field select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #f8fafc; }
.checkline { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; }
@media (max-width: 1100px) { .builder { grid-template-columns: 1fr; } .palette, .preview-card { position: static; } }
@media (max-width: 1100px) { .vn-methods { grid-template-columns: 1fr 1fr; } }
.sa-stat .k { font-size: 12px; letter-spacing: .04em; color: #64748b; font-weight: 800; }
.sa-stat strong { display: block; font-size: 26px; margin: 4px 0; }
.sa-stat span { color: #94a3b8; font-size: 12px; }
.sa-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; }
.sa-ico.pink { background: #ec4899; }
.sa-ico.teal { background: #14b8a6; }
.sa-ico.green { background: #22c55e; }
.sa-ico.blue { background: #38bdf8; }
.plan-admin { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px; position: relative; }
.plan-admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.plan-admin h3 { margin: 0; }
.plan-admin .price { font-size: 28px; font-weight: 800; margin-top: 8px; }
.plan-admin ul { list-style: none; padding: 0; margin: 12px 0 0; }
.plan-admin li { display: flex; gap: 8px; font-size: 13px; margin: 6px 0; }
.kebab { position: relative; }
.kebab > button { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; padding: 0 6px; color: #475569; }
.kebab-menu { display: none; position: absolute; right: 0; top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 140px; z-index: 6; overflow: hidden; }
.kebab.open .kebab-menu { display: block; }
.kebab-menu a, .kebab-menu button { display: block; width: 100%; text-align: left; background: #fff; border: 0; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.kebab-menu a:hover, .kebab-menu button:hover { background: #f8fafc; }
.kebab-menu button { color: #b91c1c; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 14px; }
.switch-wrap { position: relative; width: 42px; height: 24px; flex: none; }
.switch-wrap input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch { position: absolute; inset: 0; background: #e2e8f0; border-radius: 999px; }
.switch:after { content: ""; position: absolute; width: 18px; height: 18px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: left .15s; }
.switch-wrap input:checked + .switch { background: #22c55e; }
.switch-wrap input:checked + .switch:after { left: 21px; }
.mode-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.mode-pick { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: #fff; }
.mode-pick input { margin: 0 8px 0 0; }
.mode-pick strong { display: inline; }
.mode-pick span { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.mode-pick:has(input:checked) { border-color: #16a34a; background: #f0fdf4; box-shadow: inset 0 0 0 1px #86efac; }
.set-tabs { display: flex; gap: 8px; margin-bottom: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; width: fit-content; box-shadow: var(--shadow); }
.set-tabs button { border: 0; background: transparent; color: var(--muted); font-weight: 700; border-radius: 10px; padding: 10px 16px; cursor: pointer; }
.set-tabs button.active { background: linear-gradient(180deg, #22c55e, #16a34a); color: #fff; box-shadow: 0 8px 16px rgba(22, 163, 74, .18); }
.set-panel { max-width: 720px; }
.tpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.tpl-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tpl-pills label { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; background: #fff; font-weight: 700; }
.tpl-pills input { display: none; }
.tpl-pills label:has(input:checked) { background: #ecfdf3; border-color: #22c55e; color: #166534; }
.hint { display: block; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; margin-top: 4px; }
.tpl-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.tpl-tools button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 10px; font-weight: 800; cursor: pointer; }
.tpl-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: #f8fafc; }
.wa-stage { position: sticky; top: 84px; }
.wa-phone { background: #efeae2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath fill='%23e6dfd4' d='M10 10h8v8h-8z'/%3E%3C/svg%3E"); border-radius: 18px; min-height: 460px; padding: 16px; }
.wa-bubble { background: #fff; border-radius: 10px; padding: 8px 10px 10px; max-width: 280px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-media { background: #d1d7db; color: #54656f; border-radius: 8px; height: 120px; display: grid; place-items: center; font-weight: 700; margin-bottom: 8px; }
.wa-media[hidden], .wa-cards[hidden] { display: none !important; }
.wa-cards { display: flex; gap: 8px; overflow: auto; margin-bottom: 8px; }
.wa-card { min-width: 120px; background: #f0f2f5; border-radius: 8px; padding: 28px 8px; text-align: center; font-size: 12px; }
.wa-btn { color: #0b8468; text-align: center; border-top: 1px solid #f1f5f9; padding: 8px 0 2px; font-weight: 700; }
@media (max-width: 1100px) { .tpl-layout { grid-template-columns: 1fr; } .wa-stage { position: static; } }
.dt-container { padding: 0 0 8px; }
.dt-container .dt-layout-row:first-child { padding: 12px 16px; }
.dt-container .dt-search input, .dt-container .dt-length select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #f7fbf8; }
.dt-container .dt-paging { padding: 8px 16px 4px; }
.dt-container .dt-paging .dt-paging-button { border-radius: 8px !important; }
.dt-container .dt-paging .dt-paging-button.current { background: linear-gradient(135deg, #1f9d55, #0b3d2e) !important; color: #fff !important; border: 0 !important; }
.label-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.label-card { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lead-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.lead-stats article { background: linear-gradient(145deg, #fff, #e7f8ee); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.lead-stats strong { display: block; font-size: 26px; color: var(--green-dark); }
@media (max-width: 900px) { .lead-stats { grid-template-columns: 1fr 1fr; } }
.platform-app .sidebar { display: block; }
@media (max-width: 1100px) {
  .grid-4, .plans, .hero, .sa-stats, .dash-metrics { grid-template-columns: 1fr 1fr; }
  .grid-2, .chat { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .chat-list { max-height: 34vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .chat.has-active .chat-list { display: none; }
  .chat-back { display: inline-flex; }
  .chat-pane { min-height: 0; }
}
@media (max-width: 800px) {
  .topbar { height: auto; flex-wrap: wrap; padding: 10px 12px; }
  .topbar .search { flex: 1 1 100%; max-width: none; order: 5; }
  .top-actions { flex-wrap: wrap; }
  body:has(.chat) .main { padding: 8px; }
  .bubble { max-width: 88%; }
  .composer { flex-direction: column; align-items: stretch; }
  .composer input, .composer select, .composer .btn { width: 100%; flex: none; }
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.builder.two-col { grid-template-columns: minmax(0, 1fr) 320px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.step-card .field { margin-bottom: 8px; }
.run-status { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 800; background: #f1f5f9; color: #475569; }
.run-status.done { background: #dcfce7; color: #166534; }
.run-status.failed { background: #fee2e2; color: #991b1b; }
.run-status.waiting { background: #fef9c3; color: #854d0e; }
.wf-phone { background: #0b141a; border-radius: 26px; padding: 14px; color: #111; }
.wf-screen { background: #fff; border-radius: 16px; padding: 14px; min-height: 360px; display: flex; flex-direction: column; gap: 10px; }
.wf-screen h4 { margin: 0; font-size: 18px; }
.wf-screen .wf-input { border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 10px; color: #64748b; font-size: 13px; }
.wf-screen .wf-btn { margin-top: auto; background: #059669; color: #fff; text-align: center; border-radius: 22px; padding: 10px; font-weight: 700; }
.wf-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.wf-tabs button { border: 1px solid var(--line); background: #f8fafc; border-radius: 999px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.wf-tabs button.active { background: #ecfdf3; border-color: #22c55e; color: #166534; }
