:root {
    --brand: #00A859;
    --brand-2: #008C4A;
    --brand-soft: #e7f8ee;
    --ink: #111111;
    --ink-soft: #5c5c5c;
    --paper: #f5f7f6;
    --paper-2: #ffffff;
    --line: #e4e8e6;
    --gold: #00A859;
    --gold-2: #008C4A;
    --gold-soft: #e7f8ee;
    --sidebar: #0d0d0d;
    --sidebar-2: #1a1a1a;
    --ok: #00A859;
    --ok-soft: #e7f8ee;
    --warn: #9a6700;
    --warn-soft: #f7ead0;
    --danger: #b42318;
    --danger-soft: #f8d7d3;
    --info: #175cd3;
    --info-soft: #e4effc;
    --shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 28px rgba(0,0,0,.06);
    --radius: 14px;
    --sidebar-w: 272px;
    --focus: 0 0 0 3px rgba(0,168,89,.28);
}

* { box-sizing: border-box; }
html {
    margin: 0; padding: 0;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: clip;
}
body {
    margin: 0; padding: 0;
    font-family: "Montserrat", "Figtree", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    min-height: 100vh;
    min-height: 100dvh;
    font-size: 14.5px;
    line-height: 1.45;
    overflow-x: clip;
}
img, svg, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
button, a, .chip, .icon-btn { touch-action: manipulation; }
body.nav-open { overflow: hidden; }

h1, h2, h3, .display { font-family: "Montserrat", "Figtree", sans-serif; font-weight: 800; letter-spacing: -.03em; }
.mkt h1, .auth-left h1, .stat .v, .hero-card .roas, .price .amt { font-family: "Montserrat", sans-serif; font-weight: 800; font-style: italic; }
a { color: inherit; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 0; border-radius: 10px; padding: 9px 14px; font-weight: 650;
    font-size: 13.5px; cursor: pointer; text-decoration: none; font-family: inherit;
    transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-gold { background: var(--brand); color: #fff; }
.btn-gold:hover { filter: brightness(1.08); background: var(--brand-2); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--paper-2); border: 1px solid var(--line); color: var(--ink); }
.btn-wa { background: #128C7E; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 6px 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn .ico { flex-shrink: 0; }

.layout { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.app-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--sidebar);
    padding-top: env(safe-area-inset-top, 0);
}
.brand {
    display: flex; gap: 0; align-items: center; padding: 0; background: transparent; flex-shrink: 0;
}
.logo { height: 52px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.logo-sm { height: 40px; }
.logo-lg { height: 72px; }
.brand-mark { display: none; }
.brand b { display: none; }
.brand span { display: none; }

.nav {
    display: flex; align-items: stretch; gap: 2px;
    overflow: visible;
    padding: 0 12px;
    background: var(--sidebar);
    border-top: 1px solid rgba(255,255,255,.06);
}
.nav-link, .nav-parent {
    display: flex; align-items: center; gap: 6px; padding: 11px 12px;
    color: #d0d0d0; text-decoration: none; font-size: 13px; font-weight: 600;
    white-space: nowrap; flex-shrink: 0; background: none; border: 0;
    font-family: inherit; cursor: pointer;
    transition: background .12s ease, color .12s ease;
}
.nav-link .ico, .nav-parent .ico { opacity: .7; flex-shrink: 0; }
.nav-parent .ico { transition: transform .15s ease; }
.nav-drop.open .nav-parent .ico, .nav-drop:hover .nav-parent .ico { transform: rotate(180deg); }
.nav-link:hover, .nav-parent:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link.active, .nav-parent.active, .nav-drop.open .nav-parent, .nav-drop.has-active .nav-parent {
    background: rgba(0,168,89,.16); color: #fff;
}
.nav-link.active .ico, .nav-parent.active .ico { opacity: 1; color: var(--brand); }
.nav-drop { position: relative; display: flex; align-items: stretch; flex-shrink: 0; }
.nav-sub {
    display: none; position: absolute; left: 0; top: 100%;
    min-width: 230px; padding: 8px;
    background: #161616; border: 1px solid rgba(255,255,255,.08);
    border-radius: 0 0 12px 12px; box-shadow: var(--shadow); z-index: 60;
}
.nav-sub a {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 9px 10px; border-radius: 8px;
    color: #d0d0d0; text-decoration: none; font-size: 13.5px; font-weight: 560;
}
.nav-sub a .ico { opacity: .7; flex-shrink: 0; }
.nav-sub a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-sub a.active { background: rgba(0,168,89,.18); color: #fff; }
.nav-sub a.active .ico { opacity: 1; color: var(--brand); }
.nav-drop.open > .nav-sub { display: block; }
@media (hover: hover) and (pointer: fine) {
    .nav-drop:hover > .nav-sub { display: block; }
}
.nav-foot { display: none; }

.company-chip {
    background: var(--sidebar-2); border-radius: 12px; padding: 11px 12px; font-size: 13px; color: #fff;
}
.company-chip small { color: #a3a3a3; display: block; margin-top: 2px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.topbar-titles { min-width: 0; }
.topbar h1 { margin: 0; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.topbar p { margin: 3px 0 0; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.top-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.top-search {
    display: flex; align-items: center; gap: 8px; background: var(--paper-2);
    border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; min-width: 240px;
}
.top-search input { border: 0; background: transparent; padding: 8px 0; box-shadow: none !important; }
.icon-btn {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--paper-2); display: grid; place-items: center; position: relative;
    color: var(--ink); text-decoration: none;
}
.icon-btn .dot {
    position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--danger); border: 2px solid var(--paper-2);
}
.avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--gold-soft);
    display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--gold-2);
    flex-shrink: 0;
}
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.person { display: flex; align-items: center; gap: 8px; }
.user-menu { position: relative; }
.user-menu .menu {
    display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 240px;
    background: var(--paper-2); border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 8px; z-index: 40;
}
.user-menu.open .menu { display: block; }
.user-menu .menu a, .user-menu .menu button {
    display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px;
    border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer;
    font: inherit; text-decoration: none; color: inherit;
}
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--paper); }
.user-trig { display: flex; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font: inherit; color: inherit; padding: 0; }
.user-trig small { display: block; color: var(--ink-soft); font-weight: 500; }

.content { padding: 22px 24px 56px; flex: 1; min-width: 0; }
.overlay { display: none; position: fixed; inset: 0; top: 0; background: rgba(18,17,14,.4); z-index: 40; }
.overlay.show { display: block; }
.wallet-head {
    display: inline-flex; align-items: center; gap: 8px;
    background: #f59000; color: #fff; text-decoration: none;
    font-size: 12.5px; font-weight: 700; border-radius: 10px; padding: 3px 10px 3px 3px; white-space: nowrap;
}
.wallet-head:hover { background: #dc7f00; color: #fff; }
.mcx-mark {
    display: block; height: 26px; width: 78px; object-fit: cover; object-position: center;
    border-radius: 7px; flex-shrink: 0;
}

.flash { padding: 11px 14px; border-radius: 12px; margin-bottom: 16px; font-size: 13.5px; font-weight: 560; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-info { background: var(--info-soft); color: var(--info); }

.grid { display: grid; gap: 14px; }
.grid > *, .card, .stat { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }

.stat {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat .k { font-size: 11.5px; color: var(--ink-soft); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.stat .v { font-size: clamp(20px, 2.4vw, 26px); margin-top: 8px; letter-spacing: -.02em; overflow-wrap: anywhere; }
.stat .s { font-size: 12px; margin-top: 6px; color: var(--ink-soft); }
.stat.good .v { color: var(--ok); }
.stat.bad .v { color: var(--danger); }
.stat.warn .v { color: var(--warn); }
.stat .stat-ico {
    position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 9px;
    background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center;
}

.card {
    background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: 15px; font-weight: 700; }
.card-h a { font-size: 13px; font-weight: 650; color: var(--brand-2); text-decoration: none; }
.card-b { padding: 16px; }

.table-wrap { overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; max-width: 100%; }
.chart-box { position: relative; width: 100%; overflow: hidden; }
.chart-box canvas { max-width: 100% !important; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 10px 14px; border-bottom: 1px solid var(--line); font-weight: 700; background: #f7faf8; white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #f4fbf7; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 650; }
.b-novo { background: var(--info-soft); color: var(--info); }
.b-contactado { background: #efe6ff; color: #6941c6; }
.b-qualificado { background: var(--ok-soft); color: var(--ok); }
.b-proposta, .b-negociacao { background: var(--warn-soft); color: var(--warn); }
.b-ganho, .b-paid, .b-active, .b-issued { background: var(--ok-soft); color: var(--ok); }
.b-perdido, .b-cancelled, .b-suspended, .b-overdue, .b-failed { background: var(--danger-soft); color: var(--danger); }
.b-paused, .b-draft, .b-pending, .b-ended { background: #eeeae3; color: #555; }
.b-gold { background: var(--brand-soft); color: var(--brand-2); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--paper-2); text-decoration: none; font-size: 12.5px; font-weight: 650;
}
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.chip em { font-style: normal; background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 6px; font-size: 11px; }
.chip.on em { background: rgba(255,255,255,.18); }

.form { display: grid; gap: 12px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
label { font-size: 12.5px; font-weight: 650; display: block; margin-bottom: 6px; }
input, select, textarea {
    width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
    background: #fff; font: inherit; color: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--ink-soft); }

.kanban {
    display: grid; grid-template-columns: repeat(7, minmax(200px, 1fr)); gap: 10px;
    overflow: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.col { background: #eef2f0; border-radius: 14px; min-height: 380px; min-width: 200px; scroll-snap-align: start; }
.col[data-status="novo"] { background: #e7eef8; }
.col[data-status="contactado"] { background: #eee8f8; }
.col[data-status="qualificado"] { background: #e4f3ea; }
.col[data-status="proposta"], .col[data-status="negociacao"] { background: #e8f6ee; }
.col[data-status="ganho"] { background: #dcefe4; }
.col[data-status="perdido"] { background: #f8e6e4; }
.col-h { padding: 12px; font-size: 12.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.lead-card {
    margin: 0 8px 8px; background: #fff; border-radius: 12px; padding: 11px; cursor: grab;
    border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(18,17,14,.04);
}
.lead-card:active { cursor: grabbing; }
.lead-card b { display: block; font-size: 13.5px; }
.lead-card small { color: var(--ink-soft); }
.lead-card.dragging { opacity: .5; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.search { flex: 1; min-width: min(100%, 200px); }
.toolbar form.search { display: flex; gap: 8px; flex: 1; min-width: min(100%, 200px); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 12px 16px; font-size: 13px; }
.pager a, .pager span { padding: 6px 10px; border-radius: 8px; text-decoration: none; border: 1px solid transparent; }
.pager a { border-color: var(--line); background: #fff; }
.pager .on { background: var(--brand); color: #fff; }

.empty { text-align: center; padding: 48px 16px; color: var(--ink-soft); }
.empty h3 { margin: 0 0 6px; }

.meter { height: 6px; background: var(--brand-soft); border-radius: 99px; overflow: hidden; min-width: 72px; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.meter.bad > i { background: var(--danger); }
.meter.warn > i { background: var(--warn); }

.origin { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.origin:last-child { border-bottom: 0; }
.alert-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.alert-row:last-child { border-bottom: 0; }

.auth-wrap {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
    background: var(--sidebar);
}
.auth-left { color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
    background:
        radial-gradient(900px 420px at 12% 10%, rgba(0,168,89,.35), transparent 55%),
        linear-gradient(165deg, #0d0d0d, #111 72%);
}
.auth-left h1 { font-size: 40px; margin: 14px 0; max-width: 540px; line-height: 1.12; }
.auth-right { background: var(--paper); display: grid; place-items: center; padding: 32px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h2 { margin: 0 0 6px; font-size: 26px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 18px; }
.demo-card {
    border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px;
    cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.demo-card:hover, .demo-card.on { border-color: var(--brand); background: var(--brand-soft); }
.demo-card b { display: block; font-size: 13px; }
.demo-card span { font-size: 11.5px; color: var(--ink-soft); }

.mkt { background: var(--paper); }
.mkt-nav {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: max(12px, env(safe-area-inset-top, 0px)) 7vw 16px;
    position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); z-index: 10;
    border-bottom: 1px solid var(--line);
}
.mkt-nav-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.hero { padding: 72px 7vw 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 60px); margin: 0 0 16px; line-height: 1.04; }
.hero p.lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.promise {
    margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--brand-soft);
    border-radius: 0 12px 12px 0; font-weight: 650; font-size: 14.5px;
}
.hero-card {
    background: #0d0d0d; color: #fff; border-radius: 24px; padding: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.22);
}
.hero-card .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.hero-card .roas { font-size: 48px; color: var(--brand); margin: 6px 0 0; font-style: italic; }

.section { padding: 28px 7vw 56px; }
.section h2 { font-size: 28px; margin: 0 0 8px; }
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.price.feat { border-color: var(--brand); box-shadow: var(--shadow); position: relative; }
.price h3 { margin: 0; }
.price .amt { font-size: 28px; margin: 10px 0; }
.price ul { padding-left: 18px; color: var(--ink-soft); }
.flow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.flow div {
    background: #fff; border-radius: 12px; padding: 14px 10px; text-align: center; font-size: 13px; font-weight: 650;
    border: 1px solid var(--line);
}
.sectors { display: flex; gap: 8px; flex-wrap: wrap; }
.sectors span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 650; }
.cta-band {
    margin: 0 7vw 48px; background: var(--ink); color: #fff; border-radius: 24px; padding: 36px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
footer.site { padding: 24px 7vw 40px; color: var(--ink-soft); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.top-cta { position: relative; }
.menu-btn { display: none; }
.switcher { width: 100%; background: var(--sidebar-2); color: #fff; border: 1px solid rgba(255,255,255,.08); border-radius: 8px; padding: 6px 8px; margin-top: 8px; }
.switcher-light { background: #fff; color: var(--ink); border: 1px solid var(--line); margin-top: 0; }
.mkt-nav .logo { height: 48px; }
.auth-left .logo-wrap { background: #fff; padding: 12px 14px; border-radius: 12px; display: inline-block; max-width: 100%; }
.report-logo .logo { height: 56px; }

.wallet-mini {
    display: flex; align-items: center; gap: 6px; margin-top: 8px; width: 100%;
    color: #fff; text-decoration: none; font-size: 12.5px; font-weight: 700;
    background: rgba(0,168,89,.22); border: 1px solid rgba(0,168,89,.35);
    border-radius: 8px; padding: 6px 8px; box-sizing: border-box;
}
.wallet-mini:hover { background: rgba(0,168,89,.32); }

.wallet-hero {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
    background: linear-gradient(145deg, #0d0d0d, #153326 70%);
    color: #fff; border-radius: var(--radius); padding: 22px 22px 20px;
    box-shadow: var(--shadow);
}
.wallet-hero .k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #b7cfc3; font-weight: 700; }
.wallet-hero .v { font-size: clamp(26px, 7vw, 36px); margin: 8px 0 6px; font-family: Montserrat, sans-serif; font-weight: 800; font-style: italic; overflow-wrap: anywhere; }
.wallet-hero .s { margin: 0; color: #c8c8c8; font-size: 13px; max-width: 460px; }
.wallet-hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mcx-card .topup-actions { display: flex; align-items: flex-end; }
.mcx-pay-panel { margin-top: 16px; }
.mcx-pay-panel .amount-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 10px;
}
.mcx-pay-panel .amount-chip {
    justify-content: center;
    min-height: 48px;
    padding: 12px 8px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}
.mcx-pay-panel #topupAmount {
    font-size: 22px;
    font-weight: 800;
    min-height: 52px;
    letter-spacing: -0.02em;
}
.mcx-pay-summary {
    background: #111;
    color: #fff;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mcx-pay-summary span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #b7cfc3;
}
.mcx-pay-summary strong {
    font-size: clamp(28px, 8vw, 42px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.mcx-pay-summary small { color: #c8c8c8; font-size: 14px; }
.mcx-pay-panel .btn-mcx {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
    font-weight: 800;
}

.mcx-banner {
    overflow: hidden; border-radius: 12px; line-height: 0; margin-bottom: 14px;
    background: #f59000;
}
.mcx-banner img {
    display: block; width: 100%; height: 72px; object-fit: cover; object-position: center;
}
.btn-mcx {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: #f59000; color: #fff; border: 0;
}
.btn-mcx:hover { background: #dc7f00; color: #fff; }
.mcx-amount-preview {
    font-size: clamp(28px, 8vw, 40px); font-weight: 800; margin: 8px 0 4px; color: #111;
    letter-spacing: -0.02em;
}

.pay-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0 18px; }
.pay-box {
    background: var(--brand-soft); border: 1px solid #cfe8d9; border-radius: 12px; padding: 14px;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.pay-box-phone { grid-column: 1 / -1; background: #0d0d0d; border-color: #1c3d2c; color: #fff; }
.pay-box-phone span, .pay-box-phone .hint { color: #b7cfc3; }
.pay-box-phone strong { color: #fff; font-size: clamp(18px, 6vw, 26px); overflow-wrap: anywhere; }
.pay-box span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.pay-box strong { font-size: 22px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.mcx-steps { margin: 0; padding-left: 18px; color: var(--ink-soft); }
.mcx-steps li { margin: 6px 0; }
.qr-box {
    display: inline-flex; padding: 14px; background: #fff; border: 1px solid var(--line);
    border-radius: 16px; margin-bottom: 10px;
}
.qr-box img, .qr-box canvas, .qr-box table {
    display: block; width: min(220px, calc(100vw - 96px)); height: auto; aspect-ratio: 1;
}
.mcx-open {
    min-height: 100vh; min-height: 100dvh; background: var(--paper);
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.mcx-open .card { width: 100%; max-width: 420px; margin: 8vh auto; }

.mcx-confirm {
    position: fixed; inset: 0; z-index: 90;
    background: rgba(8, 12, 10, .62);
    display: flex; align-items: center; justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
}
.mcx-confirm[hidden] { display: none; }
.mcx-confirm-card {
    background: #fff; border-radius: 18px; width: min(420px, 100%);
    padding: 22px 20px 20px; text-align: center; box-shadow: 0 18px 50px rgba(0,0,0,.28);
}
.mcx-confirm-k, .mcx-confirm-card .mcx-confirm-k {
    margin: 8px 0 0; font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--ink-soft);
}
.mcx-confirm-amount {
    margin: 6px 0 10px; font-size: clamp(32px, 9vw, 48px); font-weight: 800;
    letter-spacing: -0.03em; line-height: 1.1; color: #111;
    font-variant-numeric: tabular-nums;
}
.mcx-confirm-phone {
    margin: 0 0 8px; font-size: clamp(20px, 6vw, 26px); font-weight: 800; color: #111;
}

@media (max-width: 1280px) {
    .g-5 { grid-template-columns: repeat(3, 1fr); }
    .g-4, .price-grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
    .g-3 { grid-template-columns: 1fr 1fr; }
    .g-5 { grid-template-columns: 1fr 1fr; }
    .hero, .auth-wrap { grid-template-columns: 1fr; }
    .kanban { grid-template-columns: repeat(7, minmax(240px, 1fr)); scroll-snap-type: x mandatory; }
    .auth-left { min-height: auto; padding: 28px 24px; }
    .auth-left h1 { font-size: clamp(26px, 6vw, 36px); max-width: none; }
    .hero { padding: 40px 5vw 32px; gap: 28px; }
    .section { padding: 24px 5vw 48px; }
    .cta-band { margin-left: 5vw; margin-right: 5vw; }
    footer.site { padding-left: 5vw; padding-right: 5vw; }
    .top-search { min-width: 160px; }
    .menu-btn { display: inline-flex; }
    .nav {
        display: none; flex-direction: column; align-items: stretch; gap: 4px;
        overflow: auto; max-height: min(75vh, 640px);
        padding: 8px 10px 16px;
        border-top: 1px solid rgba(255,255,255,.06);
    }
    .app-header.open .nav { display: flex; }
    .nav-drop { flex-direction: column; width: 100%; }
    .nav-parent { width: 100%; justify-content: space-between; border-radius: 9px; min-height: 44px; }
    .nav-link { white-space: normal; border-radius: 9px; min-height: 44px; }
    .nav-sub {
        position: static; display: none; min-width: 0; width: 100%;
        border: 0; border-radius: 0; box-shadow: none;
        background: transparent; padding: 0 0 6px 10px;
    }
    .nav-drop.open > .nav-sub { display: flex; flex-direction: column; }
    .nav-sub a { min-height: 44px; }
    .nav-foot { display: block; padding: 8px 12px 4px; }
    .top-search { display: none; }
}
@media (max-width: 860px) {
    .g-2, .g-3, .g-4, .g-5, .form-row, .price-grid, .demo-grid, .cta-band, .pay-grid, .mcx-pay, .flow {
        grid-template-columns: 1fr;
    }
    .content { padding: 16px 14px 48px; }
    .topbar {
        padding-left: 12px;
        padding-right: max(12px, env(safe-area-inset-right, 0px));
    }
    .topbar h1 { font-size: 17px; }
    .cta-band { flex-direction: column; align-items: flex-start; margin: 0 16px 32px; padding: 24px; }
    .wallet-hero { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
    .wallet-hero-side { align-items: flex-start; width: 100%; }
    .hero { padding: 28px 16px 24px; }
    .section { padding: 24px 16px 40px; }
    .mkt-nav { padding-left: 16px; padding-right: 16px; }
    footer.site { padding-left: 16px; padding-right: 16px; }
    .auth-right { padding: 20px 16px; }
    .table-wrap table { min-width: 620px; }
    .col { min-height: 260px; max-height: 70vh; overflow-y: auto; }
    .nav-link, .nav-parent, .nav-sub a { padding: 11px 12px; min-height: 44px; }
    .user-menu .menu { width: min(240px, calc(100vw - 24px)); }
}
@media (max-width: 640px) {
    .top-cta .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .top-cta { width: 38px; height: 38px; padding: 0; }
    .stat { padding: 14px; }
    .card-b { padding: 14px; }
    .hero h1 { font-size: clamp(28px, 9vw, 40px); }
    .hero p.lead { font-size: 16px; }
    .hero-card { padding: 18px; border-radius: 18px; }
    .hero-card .roas { font-size: 36px; }
    .mkt-nav .logo { height: 36px; }
    .mkt-nav .btn { padding: 8px 10px; font-size: 12.5px; }
    .auth-left { padding: 20px 16px; }
    .auth-box h2 { font-size: 22px; }
    .toolbar, .toolbar form.search { width: 100%; }
    .toolbar .btn { justify-content: center; }
    .pager { justify-content: center; flex-wrap: wrap; }
    .chips { margin-bottom: 10px; }
    .pay-box strong { font-size: 18px; }
    .logo-lg { height: 56px; }
    .wallet-head { font-size: 12px; padding: 2px 8px 2px 2px; }
    .mcx-mark { height: 22px; width: 64px; }
}
@media (max-width: 480px) {
    .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; }
    .content { padding: 12px 12px 40px; }
    .demo-grid { grid-template-columns: 1fr; }
    .flow { grid-template-columns: 1fr 1fr; }
    .price-grid { grid-template-columns: 1fr; }
    .wallet-hero .v { font-size: 28px; }
    .topbar-titles p { display: none; }
    .icon-btn { width: 36px; height: 36px; }
    input, select, textarea, .btn { font-size: 16px; }
    .btn-sm { font-size: 14px; }
    .qr-box { padding: 10px; }
}
@media (max-width: 360px) {
    .flow { grid-template-columns: 1fr; }
    .mkt-nav-actions .btn-ghost { display: none; }
    .top-cta { display: none; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .auth-left { display: none; }
    .auth-wrap { grid-template-columns: 1fr; }
    .hero { padding-top: 20px; padding-bottom: 20px; }
}
@media (hover: none) {
    .btn:hover { transform: none; }
    tr:hover td { background: transparent; }
    .nav-drop:hover > .nav-sub { display: none; }
    .nav-drop.open > .nav-sub { display: flex; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
    .app-header, .topbar, .nav, .menu-btn, .overlay, .no-print { display: none !important; }
    .layout, .main, .content { display: block; padding: 0; }
    .card { box-shadow: none; }
}
