:root {
  --bg: #f4f4f4;
  --panel: #ffffff;
  --ink: #151515;
  --muted: #707070;
  --line: #e1e1e1;
  --dark: #070707;
  --dark-2: #151515;
  --green: #ff2d2d;
  --green-deep: #b80000;
  --green-soft: #ffe8e8;
  --blue: #d80000;
  --amber: #ff5555;
  --red: #e00000;
  --purple: #8c0000;
  --shadow: 0 18px 45px rgba(0,0,0, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "DM Sans", sans-serif; min-height: 100vh; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 5px; color: var(--green-deep); font-size: 11px; font-weight: 800; letter-spacing: .15em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, .sidebar-brand strong { font-family: "Space Grotesk", sans-serif; }

.login-screen { min-height: 100vh; display: grid; place-items: center; overflow: hidden; position: relative; color: #ffffff; background: radial-gradient(circle at 18% 22%, #3a0b0b 0, #160707 29%, #050505 68%); padding: 32px; }
.login-glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; }
.glow-one { width: 420px; height: 420px; background: #ff2d2d; top: -240px; right: 10%; }
.glow-two { width: 360px; height: 360px; background: #8d0000; bottom: -250px; left: 5%; }
.login-screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom, black, transparent); }
.login-shell { position: relative; z-index: 1; width: min(1050px, 100%); display: grid; grid-template-columns: 1.1fr .85fr; gap: 90px; align-items: center; }
.login-brand { display: flex; gap: 22px; align-items: flex-start; }
.login-brand h1 { font-size: clamp(42px, 6vw, 72px); line-height: .95; margin: 12px 0 20px; letter-spacing: -.05em; }
.login-brand p:last-child { max-width: 470px; color: #b7b7b7; font-size: 18px; line-height: 1.6; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: none; border-radius: 13px; background: var(--green); color: #ffffff; box-shadow: 0 0 30px rgba(255,45,45,.2); font-family: "Space Grotesk"; font-weight: 800; font-size: 21px; }
.brand-mark-large { width: 68px; height: 68px; border-radius: 21px; font-size: 34px; transform: rotate(-7deg); }
.brand-mark-large span { transform: rotate(7deg); }
.login-card { background: rgba(255,255,255,.97); color: var(--ink); border-radius: 26px; padding: 36px; box-shadow: 0 30px 100px rgba(0,0,0,.34); display: flex; flex-direction: column; gap: 20px; }
.login-card h2 { margin: 20px 0 7px; font-size: 28px; }
.login-card p { color: var(--muted); }
.login-card label, .wizard-step label { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 13px; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; color: var(--ink); padding: 13px 14px; outline: none; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--green-deep); box-shadow: 0 0 0 4px rgba(255,45,45,.11); background: white; }
textarea { resize: vertical; line-height: 1.5; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.icon-button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); }
.login-card small { text-align: center; color: #9a9a9a; }
.form-error { color: var(--red) !important; background: #fff0f0; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

.status-pill { display: inline-flex; align-items: center; width: fit-content; gap: 8px; padding: 6px 10px; border-radius: 999px; background: var(--green-soft); color: #a70000; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.status-pill i, .connection-chip i, .sidebar-account small i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(255,45,45,.13); }
.button { border: 0; border-radius: 11px; padding: 11px 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 13px; transition: transform .18s, box-shadow .18s, background .18s; text-decoration: none; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #ffffff; background: var(--green); box-shadow: 0 8px 24px rgba(255,45,45,.19); }
.button.primary:hover { background: #ff5555; box-shadow: 0 10px 28px rgba(255,45,45,.28); }
.button.secondary { color: var(--ink); background: #f1f1f1; border: 1px solid var(--line); }
.button.light { background: white; color: #111111; }
.button.ghost-light { color: white; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.07); }
.button.danger-outline { color: var(--red); border: 1px solid #f2caca; background: #fff8f8; }
.button.wide { width: 100%; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; width: 240px; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 24px 15px; background: var(--dark); color: white; border-right: 1px solid rgba(255,255,255,.06); }
.sidebar::after { content: ""; position: absolute; width: 180px; height: 180px; background: rgba(255,45,45,.08); filter: blur(70px); bottom: 60px; left: -60px; pointer-events: none; }
.sidebar-brand { padding: 0 9px 28px; display: flex; gap: 12px; align-items: center; }
.sidebar-brand strong { font-size: 18px; display: block; }
.sidebar-brand small { color: #858585; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.main-nav { display: flex; flex-direction: column; gap: 5px; }
.nav-section-label { padding: 14px 13px 3px; color: #666666; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.nav-item { width: 100%; border: 0; color: #a5a5a5; background: transparent; border-radius: 11px; padding: 12px 13px; display: flex; align-items: center; gap: 12px; text-align: left; font-size: 13px; font-weight: 700; transition: .18s; }
.nav-item:hover { color: white; background: rgba(255,255,255,.04); }
.nav-item.active { color: white; background: rgba(255,45,45,.11); }
.nav-item.active .nav-icon { color: var(--green); }
.nav-icon { width: 20px; font-size: 18px; }
.nav-item b { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; color: #ffffff; background: var(--green); font-size: 10px; }
.sidebar-account { z-index: 1; margin-top: auto; border-top: 1px solid rgba(255,255,255,.07); padding: 18px 7px 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ff2d2d, #a00000); color: #ffffff; font-weight: 800; font-size: 12px; }
.avatar.large { width: 64px; height: 64px; font-size: 20px; }
.sidebar-account strong { display: block; font-size: 12px; }
.sidebar-account small { display: flex; gap: 7px; align-items: center; color: #929292; font-size: 10px; margin-top: 3px; }
.sidebar-account small i { width: 6px; height: 6px; }
.more-button { border: 0; color: #8b8b8b; background: transparent; font-size: 18px; }

.main-content { margin-left: 240px; min-height: 100vh; }
.topbar { height: 88px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgba(255,255,255,.83); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.connection-chip { display: flex; align-items: center; gap: 8px; background: var(--green-soft); color: #a40000; border-radius: 999px; padding: 8px 12px; font-size: 11px; font-weight: 800; }
.connection-chip.offline { background: #f0f2f1; color: #7d7d7d; }
.connection-chip.offline i { background: #aaaaaa; box-shadow: none; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 22px; }
.page { display: none; padding: 28px 34px 50px; max-width: 1480px; margin: auto; }
.page.active { display: block; animation: page-in .25s ease; }
.module-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.module-heading h2 { margin: 0 0 3px; font-size: 22px; }
.module-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.platform-badge { flex: none; padding: 9px 11px; color: #ffffff; background: #0a0a0a; border-left: 4px solid var(--green); border-radius: 8px; font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.warning-banner { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 18px; padding: 14px 16px; color: #ffffff; background: #111111; border-left: 4px solid var(--green); border-radius: 12px; font-size: 11px; line-height: 1.5; }
.warning-banner strong { flex: none; color: #ff5c5c; }
.warning-banner.compact { margin: 0; }
@keyframes page-in { from { opacity: 0; transform: translateY(4px); } }

.hero-card { min-height: 280px; position: relative; overflow: hidden; display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; padding: 38px 42px; color: white; border-radius: 24px; background: radial-gradient(circle at 80% 20%, #540b0b, transparent 38%), linear-gradient(120deg, #080808, #210707); box-shadow: var(--shadow); }
.hero-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent 40%, black); }
.hero-card > div { position: relative; z-index: 1; }
.hero-label { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.hero-card h2 { font-size: clamp(31px, 4vw, 50px); line-height: 1.04; margin: 12px 0 15px; letter-spacing: -.05em; }
.hero-card h2 em { color: var(--green); font-style: normal; }
.hero-card p { color: #c8c8c8; max-width: 570px; line-height: 1.6; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.hero-visual { min-height: 220px; }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.orbit-one { width: 220px; height: 120px; top: 45px; right: 10px; transform: rotate(-17deg); }
.orbit-two { width: 260px; height: 160px; top: 20px; right: -10px; transform: rotate(26deg); }
.coin, .telegram-plane { position: absolute; display: grid; place-items: center; border-radius: 50%; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.coin-main { width: 98px; height: 98px; right: 72px; top: 56px; color: #ffffff; background: linear-gradient(145deg, #f00000, #9a0000); border: 5px solid #ff5b5b; font-size: 45px; font-weight: 800; transform: rotate(9deg); }
.coin-small { width: 52px; height: 52px; top: 10px; right: 15px; color: white; background: #b70000; font-weight: 800; }
.telegram-plane { width: 48px; height: 48px; right: 10px; bottom: 20px; color: white; background: var(--blue); transform: rotate(-20deg); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-top: 18px; }
.stats-grid.compact { grid-template-columns: repeat(3, 1fr); }
.stat-card { min-width: 0; display: flex; gap: 14px; align-items: center; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 7px 20px rgba(0,0,0,.035); }
.stat-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; font-size: 20px; font-weight: 800; }
.stat-icon.green { color: #b80000; background: var(--green-soft); }.stat-icon.blue { color: #c00000; background: #ffe8e8; }.stat-icon.amber { color: #b30000; background: #fff0f0; }.stat-icon.purple { color: #8c0000; background: #f3e5e5; }
.stat-card p { color: var(--muted); font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.stat-card strong { display: block; font-family: "Space Grotesk"; font-size: 25px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card span { color: #999999; font-size: 10px; }
.status-text { font-size: 19px !important; }
.dashboard-grid { display: grid; grid-template-columns: 1.5fr .7fr; gap: 18px; margin-top: 18px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 26px rgba(0,0,0,.035); }
.recent-panel, .health-panel, .table-panel { padding: 23px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-header h3 { margin: 0; font-size: 18px; }
.text-button { border: 0; padding: 4px; color: var(--green-deep); font-weight: 800; font-size: 12px; background: transparent; }
.activity-list { display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid #ededed; }
.activity-item:first-child { border-top: 0; }
.activity-status { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--green-soft); color: var(--green-deep); }
.activity-status.error { background: #fff0f0; color: var(--red); }.activity-status.blocked { background: #fff0f0; color: #b30000; }
.activity-item strong { display: block; font-size: 12px; }.activity-item span, .activity-item time { color: var(--muted); font-size: 10px; }.activity-item time { white-space: nowrap; }
.empty-state { text-align: center; padding: 36px 20px; color: var(--muted); }.empty-state b { display: block; color: var(--ink); margin-bottom: 5px; }
.live-dot { color: var(--green-deep); background: var(--green-soft); border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.health-ring { width: 170px; height: 170px; position: relative; margin: 8px auto 15px; }
.health-ring svg { transform: rotate(-90deg); }.health-ring circle { fill: none; stroke-width: 8; }.ring-bg { stroke: #eeeeee; }.ring-value { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 0; transition: .5s; }
.health-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }.health-ring strong { font-family: "Space Grotesk"; font-size: 29px; }.health-ring span { color: var(--muted); font-size: 10px; }
.health-items > div { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #ededed; padding: 10px 0; font-size: 11px; }.health-items span { display: flex; align-items: center; gap: 8px; color: var(--muted); }.health-items b { font-size: 10px; }.green-dot, .health-items i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.health-items i.offline { background: #aaaaaa; }

.page-tools { display: flex; gap: 10px; margin-bottom: 18px; }.search-box { flex: 1; position: relative; color: #9a9a9a; }.search-box input { padding-left: 39px; background: white; }.search-box { display: flex; align-items: center; }.search-box > :first-child { position: absolute; left: 14px; z-index: 1; }.page-tools select { width: auto; min-width: 145px; background: white; }
.automations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.automation-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 17px; transition: .2s; }.automation-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.automation-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }.automation-top h3 { font-size: 17px; margin-bottom: 5px; }.automation-top p { color: var(--muted); font-size: 11px; }.automation-route { margin: 17px 0; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; background: #f7f7f7; border-radius: 13px; padding: 12px; }.route-node { min-width: 0; }.route-node small { color: var(--muted); font-size: 9px; display: block; }.route-node strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }.automation-route > span { color: var(--green-deep); }.automation-users { display: flex; flex-wrap: wrap; gap: 6px; min-height: 25px; }.user-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; background: #f2f2f2; color: #5e5e5e; font-size: 9px; font-weight: 700; }.automation-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 15px; margin-top: 15px; border-top: 1px solid #ededed; }.automation-metrics { display: flex; gap: 13px; color: var(--muted); font-size: 10px; }.card-actions { display: flex; gap: 5px; }.small-action { border: 1px solid var(--line); border-radius: 8px; background: white; width: 31px; height: 31px; color: #6a6a6a; }.small-action.delete:hover { color: var(--red); border-color: #f1c5c5; }.state-badge { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 900; background: var(--green-soft); color: var(--green-deep); }.state-badge.paused { background: #f0f2f1; color: #777777; }

.connect-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }.connect-card { min-height: 460px; padding: 42px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: radial-gradient(circle at 90% 5%, rgba(255,45,45,.17), transparent 37%), white; }.connect-card h2 { font-size: 34px; margin: 12px 0; }.connect-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.65; max-width: 530px; }.connect-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 19px; color: white; background: linear-gradient(145deg, #ff5656, #a00000); font-size: 30px; transform: rotate(-8deg); box-shadow: 0 15px 35px rgba(180,0,0,.25); }.security-note { display: flex; gap: 12px; align-items: flex-start; margin-top: 32px; padding: 14px; background: #f6f6f6; border-radius: 13px; color: var(--green-deep); }.security-note p { margin: 0; color: var(--muted); font-size: 11px; }.security-note strong { display: block; color: var(--ink); margin-bottom: 3px; }.steps-card { padding: 35px; }.steps-card h3 { font-size: 22px; }.steps-card ol { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; }.steps-card li { display: flex; gap: 13px; padding: 17px 0; border-top: 1px solid #ededed; }.steps-card li b { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--green-soft); color: var(--green-deep); }.steps-card li strong, .steps-card li span { display: block; }.steps-card li strong { font-size: 12px; }.steps-card li span { color: var(--muted); font-size: 10px; margin-top: 3px; }.account-card { padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }.account-main { display: flex; align-items: center; gap: 17px; }.account-main h2 { margin: 7px 0 2px; }.account-main p { color: var(--muted); margin: 0; }.chat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.chat-row { border: 1px solid var(--line); border-radius: 13px; padding: 13px; display: flex; gap: 10px; align-items: center; }.chat-row .avatar { background: #ffe8e8; color: var(--blue); }.chat-row strong { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 170px; }.chat-row small { color: var(--muted); font-size: 9px; }.chat-flags { margin-left: auto; color: var(--green-deep); font-size: 10px; }

.table-panel { overflow: hidden; }.table-wrap { overflow-x: auto; }table { border-collapse: collapse; width: 100%; }th { text-align: left; color: var(--muted); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; padding: 11px; border-bottom: 1px solid var(--line); }td { padding: 13px 11px; font-size: 11px; border-bottom: 1px solid #ededed; }tbody tr:last-child td { border-bottom: 0; }.table-status { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 800; }.table-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }.table-status.error i { background: var(--red); }.table-status.blocked i { background: var(--amber); }.route-cell span { display: block; max-width: 210px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.route-cell small { color: var(--green-deep); }

.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }.settings-card { padding: 27px; }.settings-card.full { grid-column: 1 / -1; }.settings-card h3 { margin-bottom: 10px; }.settings-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; font-size: 12px; }.settings-card code { background: #f2f2f2; border-radius: 7px; padding: 3px 6px; }.config-status { display: flex; gap: 9px; align-items: center; background: #f6f6f6; border-radius: 11px; padding: 12px; margin: 18px 0; font-size: 11px; }.config-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }.config-status.ok i { background: var(--green); }.code-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }.architecture { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 25px; }.architecture > div { border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; }.architecture b { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); }.architecture strong { font-size: 12px; }.architecture span { color: var(--muted); font-size: 10px; }

.modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0, .72); backdrop-filter: blur(5px); }.modal-dialog { z-index: 1; width: min(600px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: white; border-radius: 22px; box-shadow: 0 35px 100px rgba(0,0,0,.35); }.wide-modal { width: min(880px, 100%); }.modal-header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; padding: 24px 27px 18px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }.modal-header h2 { margin: 0; }.close-button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #f2f2f2; color: #666666; font-size: 23px; }.wizard-progress { display: flex; align-items: center; justify-content: center; padding: 18px 25px; border-bottom: 1px solid var(--line); }.wizard-progress button { border: 0; background: transparent; color: #999999; display: flex; align-items: center; gap: 6px; padding: 0; font-size: 10px; font-weight: 700; }.wizard-progress b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #eeeeee; }.wizard-progress button.active { color: var(--ink); }.wizard-progress button.active b, .wizard-progress button.complete b { color: #ffffff; background: var(--green); }.wizard-progress i { width: 45px; height: 1px; background: var(--line); margin: 0 9px; }.wizard-step { display: none; padding: 26px 28px 15px; min-height: 405px; }.wizard-step.active { display: block; animation: page-in .2s; }.step-copy { margin-bottom: 22px; }.step-copy > span { color: var(--green-deep); font-size: 9px; font-weight: 900; letter-spacing: .1em; }.step-copy h3 { margin: 5px 0; font-size: 21px; }.step-copy p { color: var(--muted); font-size: 11px; }.wizard-step label { margin-bottom: 16px; }.wizard-step label small, .field-hint { color: var(--muted); font-weight: 400; font-size: 10px; }.select-search { position: relative; }.select-search input { background: white; }.option-list { max-height: 220px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--line); border-radius: 12px; }.option-row { width: 100%; border: 0; border-bottom: 1px solid #ededed; padding: 11px 12px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: white; text-align: left; }.option-row:last-child { border-bottom: 0; }.option-row:hover, .option-row.selected { background: var(--green-soft); }.option-row strong, .option-row small { display: block; }.option-row strong { font-size: 11px; }.option-row small { color: var(--muted); font-size: 9px; }.option-row .avatar { width: 31px; height: 31px; }.option-flag { color: var(--green-deep); font-size: 9px; font-weight: 800; }.option-empty { padding: 25px; color: var(--muted); text-align: center; font-size: 11px; }.selected-chips { min-height: 38px; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }.selected-chips .user-chip button { border: 0; background: transparent; color: var(--muted); padding: 0 0 0 3px; }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.segmented { display: inline-flex; padding: 3px; background: #eeeeee; border-radius: 10px; margin-bottom: 16px; }.segmented button { border: 0; border-radius: 8px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; }.segmented button.active { background: white; color: var(--ink); box-shadow: 0 3px 8px rgba(0,0,0,.06); }.info-banner { padding: 13px; background: #fff0f0; color: #8b2424; border-radius: 11px; font-size: 11px; line-height: 1.5; }.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 18px; }.toggle-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; flex-direction: row !important; align-items: center; cursor: pointer; }.toggle-card input { display: none; }.toggle-card > span { width: 32px; height: 18px; border-radius: 999px; background: #cccccc; position: relative; flex: none; }.toggle-card > span::after { content: ""; width: 14px; height: 14px; position: absolute; left: 2px; top: 2px; border-radius: 50%; background: white; transition: .2s; }.toggle-card input:checked + span { background: var(--green); }.toggle-card input:checked + span::after { left: 16px; }.toggle-card strong, .toggle-card small { display: block; }.toggle-card small { color: var(--muted); font-size: 9px; font-weight: 400; }.replace-section { border-top: 1px solid var(--line); padding-top: 14px; }.section-row { display: flex; justify-content: space-between; align-items: center; }.section-row strong, .section-row small { display: block; }.section-row small { color: var(--muted); font-size: 9px; }.replacement-row { display: grid; grid-template-columns: 1fr auto 1fr auto; gap: 8px; align-items: center; margin-top: 10px; }.replacement-row button { border: 0; color: var(--red); background: transparent; }.modal-footer { position: sticky; bottom: 0; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; padding: 17px 27px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }

.qr-dialog { width: min(470px, 100%); position: relative; overflow: hidden; }.qr-close { position: absolute; right: 15px; top: 15px; z-index: 2; }.qr-state { min-height: 430px; padding: 43px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.qr-state h2, .qr-state h3 { margin: 18px 0 8px; }.qr-state p, .qr-state small { color: var(--muted); }.qr-frame { padding: 13px; background: white; border: 1px solid var(--line); border-radius: 17px; margin: 18px 0 10px; box-shadow: var(--shadow); }.qr-frame img { width: 230px; height: 230px; display: block; }.spinner { width: 50px; height: 50px; border: 4px solid #e4e4e4; border-top-color: var(--green); border-radius: 50%; animation: spin .9s linear infinite; }.amber-bg { background: var(--amber); box-shadow: none; }.qr-state form { width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }@keyframes spin { to { transform: rotate(360deg); } }

.wa-form { display: flex; flex-direction: column; gap: 18px; padding: 25px 28px 0; }
.wa-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 800; }
.wa-form label small { color: var(--muted); font-size: 9px; font-weight: 400; }
.wa-form .modal-footer { margin: 0 -28px; }
.sender-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; max-height: 190px; overflow-y: auto; margin-top: 10px; padding: 9px; background: #f5f5f5; border: 1px solid var(--line); border-radius: 12px; }
.sender-choice { display: flex !important; flex-direction: row !important; align-items: center; gap: 9px !important; padding: 9px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.sender-choice input { width: auto; accent-color: var(--green); }
.sender-choice span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }

.toast-root { position: fixed; z-index: 200; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 8px; }.toast { min-width: 280px; max-width: 380px; display: flex; align-items: flex-start; gap: 10px; background: #161616; color: white; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; box-shadow: 0 15px 50px rgba(0,0,0,.25); animation: toast-in .25s; font-size: 12px; }.toast.error { background: #350707; }.toast b { display: block; margin-bottom: 2px; }.toast span { color: #c4c4c4; font-size: 10px; }@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } }

@media (max-width: 1050px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.chat-list { grid-template-columns: repeat(2, 1fr); }.hero-visual { opacity: .7; }.login-shell { gap: 35px; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); transition: .25s; box-shadow: 20px 0 70px rgba(0,0,0,.25); }.sidebar.open { transform: none; }.main-content { margin-left: 0; }.mobile-menu { display: block; }.topbar { padding: 0 18px; }.page { padding: 20px 18px 40px; }.topbar .eyebrow { display: none; }.connection-chip { display: none; }.hero-card { grid-template-columns: 1fr; padding: 30px; }.hero-visual { position: absolute !important; inset: 0; opacity: .3; }.connect-layout, .settings-grid { grid-template-columns: 1fr; }.settings-card.full { grid-column: auto; }.automations-grid { grid-template-columns: 1fr; }.login-shell { grid-template-columns: 1fr; max-width: 480px; }.login-brand { display: none; }.architecture { grid-template-columns: 1fr; }.architecture > span { transform: rotate(90deg); text-align: center; }.wizard-progress button span { display: none; }.wizard-progress i { width: 24px; }.chat-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .login-screen { padding: 15px; }.login-card { padding: 25px; }.topbar-actions .button { width: 39px; height: 39px; padding: 0; font-size: 0; }.topbar-actions .button::before { content: "+"; font-size: 21px; }.hero-card h2 { font-size: 31px; }.hero-actions { flex-direction: column; align-items: flex-start; }.stats-grid, .stats-grid.compact { grid-template-columns: 1fr 1fr; }.stat-card { padding: 15px; }.stat-icon { display: none; }.page-tools { flex-wrap: wrap; }.page-tools .search-box { flex-basis: 100%; }.connect-card, .steps-card { padding: 25px; }.account-card { align-items: flex-start; flex-direction: column; }.form-grid, .toggle-grid { grid-template-columns: 1fr; }.wizard-step { padding: 21px; }.modal { padding: 0; }.modal-dialog { border-radius: 0; max-height: 100vh; min-height: 100vh; }.wizard-progress { padding: 15px; }.modal-footer { padding: 14px 20px; }.replacement-row { grid-template-columns: 1fr auto; }.replacement-row span { display: none; }
  .sender-grid { grid-template-columns: 1fr; }.module-heading { align-items: flex-start; }.warning-banner { flex-direction: column; }.wa-form { padding: 22px 20px 0; }.wa-form .modal-footer { margin: 0 -20px; }
}
