:root {
    --bg: #ffffff;
    --bg-soft: #f8fbff;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    --radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

code,
pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.button {
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    padding: 13px 18px;
    transition: transform 0.18s ease, background 0.18s ease, opacity 0.18s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--accent);
    color: #fff;
}

.button-primary:hover {
    background: var(--accent-dark);
}

.button-secondary {
    background: #eff6ff;
    color: var(--accent-dark);
    border: 1px solid #dbeafe;
}

.button-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
}

.button-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.button-small {
    padding: 10px 14px;
    font-size: 13px;
}

.button-block {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-warning {
    background: #ffedd5;
    color: #9a3412;
}

.badge-muted {
    background: #e2e8f0;
    color: #334155;
}

.badge-info {
    background: #dbeafe;
    color: #1d4ed8;
}

.eyebrow {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.alert {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    border-radius: 18px;
    padding: 14px 16px;
    font-weight: 600;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.brand strong {
    display: block;
    font-size: 18px;
}

.brand small {
    display: block;
    color: var(--muted);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.03em;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.public-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 600;
    color: var(--muted);
}

.hero {
    padding: 64px 0 40px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 26%),
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    color: var(--text);
}

.hero-grid {
    display: grid;
    gap: 28px;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
}

.hero h1 {
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.02;
    margin: 0 0 16px;
    letter-spacing: -0.03em;
}

.hero h1 span {
    color: var(--accent);
}

.lead {
    font-size: 18px;
    line-height: 1.72;
    color: var(--muted);
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
}

.metric-card span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 13px;
}

.metric-card strong {
    display: block;
    margin-top: 8px;
    font-size: 28px;
}

.demo-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.code-block {
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    background: #eff6ff;
    overflow: auto;
    color: #1e3a8a;
    font-size: 13px;
    border: 1px solid #dbeafe;
}

.demo-copy {
    color: var(--muted);
    line-height: 1.7;
}

.feature-points {
    padding-left: 18px;
    margin: 18px 0 0;
    color: var(--text);
    line-height: 1.8;
}


.text-link {
    color: var(--accent-dark);
    font-weight: 800;
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 800;
    border: 1px solid #dbeafe;
}

.section-copy {
    color: var(--muted);
    line-height: 1.76;
}

.cards-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audience-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.audience-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.audience-list,
.check-list {
    display: grid;
    gap: 12px;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.72;
}

.support-note {
    margin-top: 16px;
    padding: 15px 16px;
    border-radius: 18px;
    background: #eff6ff;
    color: var(--accent-dark);
    font-weight: 700;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.docs-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sample-layout {
    display: grid;
    gap: 16px;
    padding: 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    background: #ffffff;
}

.sample-two-col {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
}

.sample-slot {
    padding: 20px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.section {
    padding: 78px 0;
}

.section-alt {
    background: #f8fafc;
}

.section-head {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-head h2,
.split-grid h2,
.login-card h1 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.06;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card,
.panel,
.stat-card,
.login-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.card h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.card p,
.step p,
.tips-list p,
.muted-text,
.empty-state,
.summary-list span,
.summary-list strong,
.login-card p {
    color: var(--muted);
    line-height: 1.72;
}

.split-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.steps {
    display: grid;
    gap: 16px;
}

.step {
    display: grid;
    gap: 14px;
    grid-template-columns: 50px 1fr;
    align-items: start;
    padding: 16px 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.step strong {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3ff;
    color: var(--accent-dark);
    font-size: 18px;
}

.public-footer {
    padding: 40px 0 60px;
    background: #f8fafc;
    color: var(--text);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 2fr 1fr 1fr 1fr;
}

.footer-grid p {
    color: var(--muted);
}

.admin-shell {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, #08111f 0%, #0c1630 100%);
    color: #fff;
    padding: 28px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-sidebar {
    margin-bottom: 28px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
}

.sidebar-nav a {
    padding: 13px 15px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
    transition: background 0.18s ease, color 0.18s ease;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sidebar-card {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.main {
    padding: 30px 30px 42px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.06;
    letter-spacing: -0.03em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-chip {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    box-shadow: var(--shadow);
}

.user-chip strong,
.user-chip small {
    display: block;
}

.user-chip small {
    color: var(--muted);
}

.stats-grid,
.panel-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
}

.stat-card {
    padding: 22px;
}

.stat-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    margin: 10px 0 8px;
}

.stat-card small {
    color: var(--muted);
}

.panel {
    padding: 24px;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-head h2 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.summary-list {
    display: grid;
    gap: 16px;
}

.summary-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f9fbff;
}

.summary-list strong {
    color: var(--text);
}

.mini-note {
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    background: #edf3ff;
    color: var(--accent-dark);
    font-weight: 700;
}

.bar-chart {
    height: 260px;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
}

.bar-item {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.bar-track {
    width: 100%;
    height: 180px;
    border-radius: 18px;
    background: #f3f6fd;
    display: flex;
    align-items: end;
    padding: 10px;
    border: 1px solid var(--line);
}

.bar-fill {
    width: 100%;
    border-radius: 12px;
    background: linear-gradient(180deg, #7c9eff 0%, #3768ff 100%);
    min-height: 10px;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    padding: 15px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

thead th {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.align-right {
    text-align: right;
}

.inline-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
}

.copy-button {
    margin-left: 8px;
    border: 0;
    background: #edf3ff;
    color: var(--accent-dark);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.form-stack {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    font-weight: 800;
}

.form-group small {
    color: var(--muted);
    line-height: 1.6;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #d5deeb;
    border-radius: 16px;
    padding: 14px 15px;
    font: inherit;
    background: #fff;
    color: var(--text);
    outline: none;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #8db1ff;
    box-shadow: 0 0 0 4px rgba(55, 104, 255, 0.12);
}

textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.login-section {
    min-height: calc(100vh - 82px);
    display: grid;
    place-items: center;
    padding: 40px 16px 60px;
    background:
        radial-gradient(circle at top right, rgba(55, 104, 255, 0.18), transparent 28%),
        linear-gradient(180deg, #eef3fb 0%, #f7f9fd 100%);
}

.login-card {
    width: min(100%, 480px);
    padding: 28px;
}

.tips-list {
    display: grid;
    gap: 16px;
}

.tips-list > div {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    background: #f9fbff;
}

.checkbox-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f9fbff;
}

.checkbox-card input {
    width: 18px;
    height: 18px;
}

.checkbox-card strong,
.checkbox-card small {
    display: block;
}

.checkbox-card small {
    color: var(--muted);
}

.preview-card {
    border-radius: 18px;
    border: 1px dashed #c8d4ea;
    padding: 12px;
    background: #fbfcff;
}

.campaign-list {
    display: grid;
    gap: 16px;
}

.campaign-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fbfcff;
}

.campaign-thumb {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    display: grid;
    place-items: center;
    min-height: 140px;
}

.campaign-body {
    min-width: 0;
}

.campaign-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.campaign-head h3 {
    margin: 0;
    font-size: 24px;
}

.campaign-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.campaign-metrics div {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
}

.campaign-metrics span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.campaign-metrics strong {
    display: block;
    margin-top: 6px;
    font-size: 24px;
}

.compact-steps .step {
    box-shadow: none;
    background: #f9fbff;
}

.empty-state {
    padding: 18px;
    border: 1px dashed #c8d4ea;
    border-radius: 18px;
    background: #fbfcff;
}

.mt-12 {
    margin-top: 12px;
}

@media (max-width: 1160px) {
    .hero-grid,
    .panel-grid-2,
    .split-grid,
    .cards-grid,
    .footer-grid,
    .docs-grid,
    .sample-two-col,
    .cta-panel {
        grid-template-columns: 1fr;
    }

    .cta-panel {
        display: grid;
    }

    .hero-stats,
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        padding-bottom: 18px;
    }

    .sidebar-card {
        display: none;
    }
}

@media (max-width: 780px) {
    .nav-row,
    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .public-links {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .hero-stats,
    .stats-grid,
    .form-row,
    .checkbox-grid,
    .campaign-metrics,
    .cards-grid-2 {
        grid-template-columns: 1fr;
    }

    .campaign-card {
        grid-template-columns: 1fr;
    }

    .main {
        padding: 20px 16px 32px;
    }

    .panel,
    .card,
    .stat-card,
    .login-card {
        padding: 18px;
    }
}

/* ===== PubNexa public/account update ===== */
.nav-toggle,
.sidebar-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    border-radius: 14px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.topbar-title-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-compact {
    padding-top: 54px;
    padding-bottom: 34px;
}

.demo-card-minimal .code-block {
    white-space: pre-wrap;
    word-break: break-word;
}

.narrow-head {
    max-width: 640px;
}

.cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-list {
    gap: 10px;
}

.split-grid-tight {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
}

.docs-grid-compact {
    grid-template-columns: 1fr 1fr;
}

.docs-section-compact .section-head {
    margin-bottom: 22px;
}

.sample-layout-compact {
    padding: 16px;
}

.account-nav-wrap {
    position: sticky;
    top: 82px;
    z-index: 10;
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.account-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    overflow-x: auto;
}

.account-nav a,
.account-role-pill {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    font-weight: 700;
}

.account-nav a.active {
    background: #eff6ff;
    color: var(--accent-dark);
    border-color: #dbeafe;
}

.account-role-pill {
    color: var(--muted);
    margin-left: auto;
}

.account-section-first {
    padding-top: 26px;
}

.account-section-compact {
    padding-top: 24px;
    padding-bottom: 56px;
}

.account-stats-grid {
    margin-bottom: 0;
}

.auth-footer-copy {
    margin-top: 18px;
    text-align: center;
    color: var(--muted);
}

.auth-footer-copy a {
    color: var(--accent-dark);
    font-weight: 700;
}

.register-card {
    width: min(100%, 640px);
}

.role-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.role-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f9fbff;
    cursor: pointer;
}

.role-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.role-card strong,
.role-card small {
    display: block;
}

.role-card small {
    color: var(--muted);
    line-height: 1.6;
}

.text-ad-preview {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfdff;
    padding: 18px;
}

.text-ad-preview strong {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.text-ad-preview p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.68;
}

.text-ad-preview-card {
    width: 100%;
}

.campaign-thumb-text {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 12px;
    align-items: stretch;
}

[data-ad-type-group] {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

[data-ad-type-group].is-hidden {
    display: none;
}

@media (max-width: 1160px) {
    .cards-grid-3,
    .split-grid-tight,
    .docs-grid-compact {
        grid-template-columns: 1fr;
    }

    .account-nav-wrap {
        top: 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle,
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .public-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding-bottom: 14px;
    }

    .public-links.is-open {
        display: flex;
    }

    .public-links .button {
        width: 100%;
    }

    .nav-row {
        flex-wrap: wrap;
    }

    .account-role-pill {
        margin-left: 0;
    }

    .admin-shell {
        position: relative;
    }

    .sidebar {
        display: none;
        position: absolute;
        inset: 0 auto auto 0;
        width: min(320px, 100%);
        min-height: 100vh;
        z-index: 30;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
    }

    .sidebar.is-open {
        display: block;
    }

    .main {
        padding-top: 18px;
    }
}

@media (max-width: 780px) {
    .hero h1 {
        font-size: clamp(34px, 10vw, 48px);
    }

    .role-picker,
    .cards-grid-3 {
        grid-template-columns: 1fr;
    }

    .account-nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .panel-head,
    .campaign-head,
    .cta-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .text-ad-preview strong {
        font-size: 20px;
    }

    .code-block {
        font-size: 12px;
    }
}

/* ===== PubNexa premium refresh ===== */
:root {
    --bg: #f4f7fc;
    --bg-soft: #edf3ff;
    --panel: #ffffff;
    --panel-soft: #f8fbff;
    --text: #0b1020;
    --muted: #61708a;
    --line: #d9e3f1;
    --accent: #4f46e5;
    --accent-dark: #3730d0;
    --accent-alt: #2563eb;
    --accent-soft: #eef2ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 20px 60px rgba(11, 16, 32, 0.08);
    --radius: 24px;
}

body.theme-public {
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.12), transparent 24%),
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 26%),
        linear-gradient(180deg, #f7faff 0%, #f3f7ff 100%);
}

body.theme-admin {
    background: linear-gradient(180deg, #f6f9ff 0%, #f2f6ff 100%);
}

body {
    color: var(--text);
}

.button {
    min-height: 46px;
    padding: 13px 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: none;
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
    color: #fff;
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.22);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #1d4ed8 100%);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-dark);
    border: 1px solid rgba(79, 70, 229, 0.14);
}

.button-secondary-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.82);
}

.badge-primary {
    background: rgba(79, 70, 229, 0.12);
    color: var(--accent-dark);
}

.public-nav {
    background: rgba(248, 250, 255, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(217, 227, 241, 0.85);
}

.nav-row {
    position: relative;
    min-height: 84px;
    gap: 22px;
}

.brand {
    gap: 14px;
    min-width: 0;
}

.brand strong {
    font-size: 20px;
    letter-spacing: -0.03em;
}

.brand small {
    font-size: 13px;
    line-height: 1.35;
}

.brand-mark {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 18px;
    background: url('./logo-mark.svg') center/cover no-repeat;
    box-shadow: 0 16px 34px rgba(79, 70, 229, 0.22);
    color: transparent;
    font-size: 0;
    text-indent: -9999px;
}

.brand-sidebar .brand-mark {
    width: 48px;
    height: 48px;
    min-width: 48px;
}

.public-links {
    gap: 12px;
    color: var(--muted);
}

.public-links > a:not(.button) {
    padding: 10px 12px;
    border-radius: 999px;
    transition: color 0.18s ease, background 0.18s ease;
}

.public-links > a:not(.button):hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.8);
}

.nav-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 24px rgba(11, 16, 32, 0.08);
}

.nav-toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.hero-premium {
    position: relative;
    overflow: hidden;
    padding-top: 70px;
    padding-bottom: 46px;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.10), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(243, 247, 255, 0.85) 100%);
}

.hero-grid-premium {
    gap: 42px;
    grid-template-columns: 1.1fr 0.9fr;
}

.hero h1 {
    max-width: 12ch;
}

.hero .lead {
    max-width: 60ch;
    font-size: 18px;
}

.hero-pills {
    margin-top: 8px;
}

.hero-board {
    position: relative;
}

.hero-board-shell {
    position: relative;
    padding: 22px;
    border-radius: 32px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.hero-board-shell::before {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05), rgba(37, 99, 235, 0.02));
    pointer-events: none;
}

.hero-board-top,
.embed-mini-head,
.signal-row {
    position: relative;
    z-index: 1;
}

.hero-board-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.signal-dots {
    display: inline-flex;
    gap: 8px;
}

.signal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d7dfef;
}

.signal-dots span:first-child {
    background: #a5b4fc;
}

.signal-dots span:nth-child(2) {
    background: #93c5fd;
}

.signal-card {
    position: relative;
    z-index: 1;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: rgba(255, 255, 255, 0.86);
}

.signal-card span,
.mini-stat span,
.kpi-card span,
.feature-icon,
.stack-item p,
.docs-lead,
.section-copy,
.section-copy-light {
    color: var(--muted);
}

.signal-card strong {
    display: block;
    margin: 8px 0 10px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.signal-card small {
    display: block;
    color: var(--muted);
    line-height: 1.72;
}

.signal-card-accent {
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.signal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 14px;
}

.mini-stat {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
}

.mini-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.embed-mini {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: #f8fbff;
}

.embed-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.code-block-light {
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    color: #273569;
    border-color: rgba(79, 70, 229, 0.12);
}

.code-block-compact {
    padding: 16px 18px;
}

.kpi-strip {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.kpi-card strong,
.feature-card h3,
.stack-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.cards-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.84);
}

.feature-card::after {
    content: '';
    position: absolute;
    left: 24px;
    right: 24px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    margin-bottom: 16px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-dark);
    font-weight: 900;
    letter-spacing: 0.04em;
}

.split-grid-elevated {
    align-items: stretch;
}

.audience-card-highlight,
.sample-layout-premium {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 251, 255, 0.98) 100%);
}

.stack-list {
    display: grid;
    gap: 14px;
}

.stack-item {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
}

.stack-item p {
    margin: 0;
    line-height: 1.7;
}

.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, rgba(238, 244, 255, 0.42) 100%);
}

.section-cta {
    padding-top: 20px;
    padding-bottom: 84px;
}

.cta-panel-dark {
    background: linear-gradient(135deg, #0b1020 0%, #111936 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
}

.cta-panel-dark .eyebrow,
.cta-panel-dark .section-copy-light {
    color: rgba(255, 255, 255, 0.72);
}

.cta-panel-dark .button-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.18);
}

.hero-docs {
    padding-top: 54px;
    padding-bottom: 24px;
}

.docs-title {
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.04;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
}

.docs-demo-card,
.demo-card-light {
    background: rgba(255, 255, 255, 0.9);
}

.section-copy,
.docs-lead,
.demo-copy-light {
    line-height: 1.75;
}

.sample-layout-premium {
    border-style: solid;
    border-color: rgba(79, 70, 229, 0.12);
}

.sample-slot {
    background: #fff;
    border-color: rgba(79, 70, 229, 0.12);
}

.public-footer {
    padding: 28px 0 40px;
    background: rgba(245, 248, 255, 0.92);
}

.footer-grid {
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.8fr;
    align-items: start;
}

.footer-grid h4 {
    margin: 0 0 10px;
}

.footer-grid p {
    margin: 0 0 8px;
}

.sidebar {
    background: linear-gradient(180deg, #091121 0%, #101a37 100%);
}

.main {
    padding: 24px 24px 36px;
}

.topbar {
    position: sticky;
    top: 16px;
    z-index: 15;
    padding: 18px 20px;
    margin-bottom: 24px;
    border-radius: 28px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.user-chip,
.panel,
.card,
.stat-card,
.login-card {
    background: rgba(255, 255, 255, 0.88);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 22px;
    right: 22px;
    top: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

.panel,
.login-card,
.card,
.stat-card {
    border-color: rgba(217, 227, 241, 0.95);
}

.summary-list div,
.compact-steps .step,
.checkbox-card,
.preview-card,
.campaign-card,
.text-ad-preview,
.tips-list > div,
.empty-state,
.login-section,
.role-card {
    border-color: rgba(217, 227, 241, 0.9);
}

.login-section {
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.12), transparent 28%),
        linear-gradient(180deg, #eef3ff 0%, #f7faff 100%);
}

.role-card,
.checkbox-card,
.summary-list div,
.preview-card,
.campaign-card,
.text-ad-preview,
.tips-list > div,
.empty-state {
    background: rgba(255, 255, 255, 0.84);
}

.user-chip {
    border-color: rgba(217, 227, 241, 0.95);
}

.copy-button {
    background: rgba(79, 70, 229, 0.10);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.account-nav-wrap {
    top: 0;
    background: rgba(246, 249, 255, 0.9);
    border-bottom: 1px solid rgba(217, 227, 241, 0.9);
}

.account-nav a,
.account-role-pill {
    box-shadow: 0 8px 20px rgba(11, 16, 32, 0.04);
}

@media (max-width: 1160px) {
    .hero-grid-premium,
    .kpi-strip,
    .footer-grid,
    .cards-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 14px;
        min-height: 76px;
    }

    .brand {
        flex: 1;
    }

    .brand small {
        max-width: 260px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-toggle,
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

    .public-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-radius: 24px;
        border: 1px solid var(--line);
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 24px 60px rgba(11, 16, 32, 0.12);
    }

    .public-links.is-open {
        display: flex;
    }

    .public-links .button,
    .public-links > a:not(.button) {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 12px 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(217, 227, 241, 0.9);
    }

    .hero-premium,
    .hero-docs {
        padding-top: 38px;
        padding-bottom: 24px;
    }

    .hero-grid-premium,
    .signal-row,
    .kpi-strip,
    .cards-grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1,
    .docs-title {
        max-width: none;
        font-size: clamp(34px, 10vw, 48px);
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .button,
    .hero-actions .text-link {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-board-shell {
        padding: 18px;
    }

    .topbar {
        top: 10px;
        padding: 16px;
    }

    .topbar,
    .topbar-title-wrap,
    .topbar-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        gap: 10px;
        width: 100%;
    }

    .topbar-actions .button,
    .topbar-actions .user-chip {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .user-chip {
        text-align: center;
    }

    .main {
        padding: 16px 14px 30px;
    }
}

@media (max-width: 780px) {
    .nav-row,
    .topbar {
        flex-direction: row;
        align-items: center;
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        max-width: 210px;
        font-size: 12px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 16px;
    }

    .panel,
    .card,
    .stat-card,
    .login-card,
    .audience-card,
    .cta-panel {
        border-radius: 22px;
    }

    .footer-grid {
        gap: 16px;
    }

    .public-footer {
        padding-bottom: 30px;
    }

    .section {
        padding: 58px 0;
    }

    .section-cta {
        padding-top: 8px;
        padding-bottom: 58px;
    }
}


/* ===== PubNexa launch polish ===== */
.section-compact {
    padding-top: 52px;
    padding-bottom: 52px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(79, 70, 229, 0.12);
    color: var(--accent-dark);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(11, 16, 32, 0.04);
}

.trust-metrics {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-metric {
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.trust-metric strong {
    display: block;
    font-size: 30px;
    letter-spacing: -0.04em;
    margin-bottom: 8px;
}

.trust-metric span,
.format-card p,
.pricing-card p,
.pricing-list,
.roadmap-note {
    color: var(--muted);
    line-height: 1.72;
}

.showcase-grid {
    align-items: stretch;
}

.format-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.format-card {
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.format-card h3,
.pricing-card h3,
.pricing-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.roadmap-note {
    margin-top: 18px;
}

.showcase-demo {
    display: grid;
    gap: 16px;
    align-content: start;
    padding: 22px;
    border-radius: 28px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(242, 247, 255, 0.96) 100%);
    box-shadow: var(--shadow);
}

.demo-banner-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(37, 99, 235, 0.12) 100%);
    border: 1px solid rgba(79, 70, 229, 0.12);
}

.demo-banner-copy span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.demo-banner-copy strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.demo-banner-copy small {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.6;
}

.demo-native-card {
    background: rgba(255, 255, 255, 0.92);
}

.audience-grid {
    align-items: stretch;
}

.pricing-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid-home {
    margin-top: 8px;
}

.pricing-card {
    display: grid;
    gap: 14px;
    align-content: start;
    padding: 26px;
    border-radius: 24px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.pricing-card-featured {
    border-color: rgba(79, 70, 229, 0.22);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.pricing-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-price {
    margin: -4px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text) !important;
}

.pricing-list {
    margin: 0;
    padding-left: 20px;
}

.pricing-list-tight {
    padding-left: 18px;
}

.pricing-note {
    margin-top: 18px;
    color: var(--muted);
}

.pricing-note a {
    color: var(--accent-dark);
    font-weight: 800;
}

.pricing-side-note {
    align-content: start;
}

.stats-grid-admin {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1160px) {
    .trust-metrics,
    .pricing-grid,
    .stats-grid-admin {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .format-grid,
    .pricing-grid,
    .trust-metrics,
    .stats-grid-admin {
        grid-template-columns: 1fr;
    }

    .demo-banner-slot {
        flex-direction: column;
        align-items: stretch;
    }

    .demo-banner-slot .button {
        width: 100%;
    }
}

/* ===== PubNexa network upgrade ===== */
.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.center-head {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.hero-clean {
    position: relative;
    padding-top: 64px;
    padding-bottom: 42px;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.16), transparent 30%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.10), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(241, 246, 255, 0.92) 100%);
}

.hero-grid-clean {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
}

.hero-board-shell-rich,
.surface-card {
    padding: 24px;
    border-radius: 28px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.signal-card {
    padding: 20px 22px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.10) 0%, rgba(37, 99, 235, 0.10) 100%);
    border: 1px solid rgba(79, 70, 229, 0.10);
    margin-bottom: 18px;
}

.signal-card span,
.signal-card small {
    display: block;
}

.signal-card span {
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.signal-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

.signal-card small {
    color: var(--muted);
    line-height: 1.7;
}

.signal-row {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.mini-stat {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(248, 250, 255, 0.95);
}

.mini-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.mini-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.embed-mini {
    display: grid;
    gap: 10px;
}

.embed-mini-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.code-block-light {
    background: #f4f7ff;
    color: #2f3fa7;
    border-color: #dce6ff;
}

.code-block-compact {
    padding: 16px;
    font-size: 12px;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-chip {
    display: inline-flex;
    align-items: center;
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(79, 70, 229, 0.12);
    color: var(--accent-dark);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(11, 16, 32, 0.04);
}

.formats-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
}

.format-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.94);
}

.format-chip strong,
.format-chip small {
    display: block;
}

.format-chip strong {
    font-size: 16px;
}

.format-chip small {
    color: var(--muted);
    font-weight: 700;
}

.format-chip.is-live {
    border-color: rgba(79, 70, 229, 0.16);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.preview-surface {
    display: grid;
    gap: 16px;
    align-content: start;
}

.mock-browser-bar {
    display: inline-flex;
    gap: 8px;
}

.mock-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #d7dfef;
}

.mock-browser-bar span:first-child { background: #a5b4fc; }
.mock-browser-bar span:nth-child(2) { background: #93c5fd; }
.mock-browser-bar span:nth-child(3) { background: #c7d2fe; }

.demo-slot-card {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(79, 70, 229, 0.10);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(37, 99, 235, 0.04) 100%);
}

.demo-slot-label,
.native-badge,
.pricing-badge {
    display: inline-flex;
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-banner-image {
    width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: #fff;
}

.native-demo-card {
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.97);
}

.native-demo-card strong {
    display: block;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 10px 0;
}

.native-demo-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 14px;
}

.native-demo-card a {
    color: var(--accent-dark);
    font-weight: 800;
}

.pricing-card-accent {
    border-color: rgba(79, 70, 229, 0.18);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.pricing-copy {
    color: var(--muted);
    line-height: 1.72;
}

.section-tight {
    padding-top: 42px;
    padding-bottom: 42px;
}

.section-soft {
    background: rgba(246, 249, 255, 0.82);
}

.split-grid-elevated {
    align-items: stretch;
}

.account-stats-grid-wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.account-stats-grid-billing {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.approval-list {
    display: grid;
    gap: 14px;
}

.approval-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: #fbfcff;
}

.wrap-actions {
    flex-wrap: wrap;
}

.stats-grid-admin-kpis {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

@media (max-width: 1160px) {
    .hero-grid-clean,
    .stats-grid-admin-kpis,
    .account-stats-grid-wide,
    .account-stats-grid-billing,
    .formats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .signal-row,
    .formats-grid,
    .account-stats-grid-wide,
    .account-stats-grid-billing,
    .stats-grid-admin-kpis {
        grid-template-columns: 1fr;
    }

    .approval-card {
        flex-direction: column;
    }
}

@media (max-width: 780px) {
    .hero-grid-clean {
        grid-template-columns: 1fr;
    }

    .embed-mini-head {
        flex-direction: column;
        align-items: stretch;
    }

    .copy-button {
        margin-left: 0;
    }
}


/* ===== PubNexa brand system ===== */
:root {
    --bg: #f6f8fc;
    --bg-soft: #eef3ff;
    --panel: #ffffff;
    --panel-soft: #f9fbff;
    --text: #111827;
    --muted: #667085;
    --line: #e8ecf4;
    --accent: #6b5cff;
    --accent-dark: #4f46e5;
    --brand-ink: #0b1020;
    --brand-surface: #f7f9fd;
    --brand-cyan: #22c3ff;
    --brand-mint: #34d399;
    --brand-violet: #6b5cff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --shadow: 0 22px 60px rgba(11, 16, 32, 0.08);
    --radius: 24px;
    --radius-sm: 18px;
    --font-heading: "Space Grotesk", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

body {
    font-family: var(--font-body);
    background:
        radial-gradient(circle at top right, rgba(34, 195, 255, 0.08), transparent 26%),
        radial-gradient(circle at top left, rgba(107, 92, 255, 0.08), transparent 22%),
        var(--bg);
}

h1,
h2,
h3,
h4,
.topbar h1,
.panel-head h2,
.hero h1,
.section-head h2,
.split-grid h2,
.login-card h1,
.docs-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

code,
pre,
.code-block,
input[data-token],
.token-chip {
    font-family: var(--font-mono);
}

.icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
}

.icon-xs { width: 0.95rem; height: 0.95rem; }
.icon-sm { width: 1.1rem; height: 1.1rem; }
.icon-md { width: 1.35rem; height: 1.35rem; }
.icon-lg { width: 1.65rem; height: 1.65rem; }
.icon-accent { color: var(--accent); }

.button .icon,
.public-links a .icon,
.sidebar-nav a .icon,
.account-nav a .icon,
.account-role-pill .icon,
.badge .icon,
.text-link-icon .icon,
.brand-inline-badge .icon,
.stat-card-head .icon,
.eyebrow-with-icon .icon,
.logo-chip .icon,
.stack-item strong .icon,
.format-chip .icon,
.pricing-badge .icon,
.native-badge .icon,
.demo-slot-label .icon,
.embed-mini-head .icon,
.summary-list span .icon,
.auth-bullets .icon {
    margin-right: 8px;
}

.button {
    min-height: 46px;
    border-radius: 16px;
    padding: 13px 18px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand-violet), var(--accent-dark) 62%, var(--brand-cyan));
    color: #fff;
    box-shadow: 0 16px 32px rgba(79, 70, 229, 0.28);
}

.button-primary:hover {
    background: linear-gradient(135deg, #5f50ff, #4338ca 62%, #1fb8f2);
}

.button-secondary {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    color: var(--brand-ink);
    border: 1px solid #dbe4ff;
}

.button-secondary:hover,
.copy-button:hover,
.account-nav a.active {
    border-color: #cdd6ff;
    background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
}

.button-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-ink);
    border: 1px solid var(--line);
}

.copy-button {
    background: #edf1ff;
    color: var(--accent-dark);
    border: 1px solid #d8e0ff;
}

.public-nav {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(232, 236, 244, 0.92);
    box-shadow: 0 8px 30px rgba(11, 16, 32, 0.04);
}

.brand strong {
    font-family: var(--font-heading);
    font-size: 19px;
    letter-spacing: -0.03em;
}

.brand small {
    font-size: 13px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 32px rgba(17, 24, 39, 0.10);
}

.brand-mark-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-links {
    gap: 12px;
    color: var(--muted);
}

.public-links > a:not(.button),
.sidebar-nav a,
.account-nav a {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    padding: 10px 12px;
}

.public-links > a:not(.button):hover {
    background: rgba(107, 92, 255, 0.08);
    color: var(--brand-ink);
}

.hero-brand {
    padding-top: 72px;
    padding-bottom: 54px;
    background:
        radial-gradient(circle at 75% 15%, rgba(34, 195, 255, 0.16), transparent 22%),
        radial-gradient(circle at 10% 5%, rgba(107, 92, 255, 0.15), transparent 18%),
        linear-gradient(180deg, #fbfcff 0%, #f4f7ff 100%);
}

.eyebrow-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero h1,
.docs-title {
    letter-spacing: -0.04em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--brand-violet), var(--brand-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead,
.section-copy,
.login-card p,
.footer-grid p,
.muted-text,
.empty-state,
.tips-list p,
.card p,
.step p {
    color: var(--muted);
}

.text-link {
    color: var(--accent-dark);
}

.text-link-icon {
    display: inline-flex;
    align-items: center;
}

.brand-pill-row .pill,
.brand-voice-row .pill,
.logo-chip,
.account-role-pill,
.pricing-badge,
.native-badge,
.demo-slot-label {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #dde6fb;
    color: var(--brand-ink);
    backdrop-filter: blur(10px);
}

.pill,
.logo-chip,
.pricing-badge,
.native-badge,
.demo-slot-label {
    display: inline-flex;
    align-items: center;
}

.badge-primary {
    background: rgba(107, 92, 255, 0.12);
    color: var(--accent-dark);
    border: 1px solid rgba(107, 92, 255, 0.18);
}

.hero-board-shell,
.demo-card,
.surface-card,
.card,
.panel,
.stat-card,
.login-card,
.audience-card,
.pricing-card,
.user-chip,
.summary-list div,
.tips-list > div,
.checkbox-card,
.campaign-card,
.preview-card,
.empty-state,
.sample-layout,
.sample-slot {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(232, 236, 244, 0.95);
    box-shadow: var(--shadow);
}

.surface-card,
.hero-board-shell,
.pricing-card,
.cta-panel,
.audience-card,
.panel,
.login-card,
.card {
    border-radius: 28px;
}

.hero-board-shell-rich {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(246, 249, 255, 0.96) 100%);
    position: relative;
}

.hero-board-shell-rich::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 24px;
    border: 1px solid rgba(107, 92, 255, 0.08);
    pointer-events: none;
}

.signal-card-accent {
    background: linear-gradient(180deg, #10172b 0%, #0b1020 100%);
    color: #fff;
    border-radius: 22px;
    padding: 18px;
}

.signal-card-accent span,
.signal-card-accent small {
    color: rgba(255, 255, 255, 0.72);
}

.signal-card-accent strong {
    display: block;
    margin: 8px 0;
    font-size: 22px;
    line-height: 1.28;
    font-family: var(--font-heading);
}

.signal-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.mini-stat {
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e5ebfb;
}

.mini-stat span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.mini-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    font-family: var(--font-heading);
}

.code-block,
.code-block-light {
    background: linear-gradient(180deg, #f8faff 0%, #eef3ff 100%);
    color: #314168;
    border-color: #dbe4ff;
}

.cards-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(107, 92, 255, 0.10), transparent 30%);
    pointer-events: none;
}

.feature-icon.feature-icon-svg {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f3f6ff 0%, #eef3ff 100%);
    color: var(--accent-dark);
    border: 1px solid #dbe4ff;
}

.format-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e1e8fb;
}

.format-chip strong,
.stack-item strong,
.embed-mini-head strong,
.pricing-badge,
.demo-slot-label,
.native-badge {
    font-family: var(--font-heading);
}

.format-chip small,
.stack-item p {
    color: var(--muted);
}

.format-chip.is-live {
    box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.22);
}

.preview-surface {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 249, 255, 0.94) 100%);
}

.mock-browser-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.mock-browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d7ddf3;
}

.demo-slot-card,
.native-demo-card {
    border-radius: 22px;
    padding: 16px;
    border: 1px solid #e5ebfb;
    background: rgba(255, 255, 255, 0.92);
}

.native-demo-card a {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--accent-dark);
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.logo-chip {
    padding: 12px 14px;
    border-radius: 999px;
    font-weight: 700;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.stack-item {
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid #e7ecfa;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.stack-item strong {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-card {
    padding: 26px;
}

.pricing-card-accent {
    background: linear-gradient(180deg, rgba(107, 92, 255, 0.08) 0%, rgba(255, 255, 255, 0.96) 70%);
    border-color: rgba(107, 92, 255, 0.18);
}

.pricing-price {
    font-size: 34px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-family: var(--font-heading);
    margin-bottom: 12px;
}

.check-list li {
    margin-bottom: 10px;
}

.check-list li::marker {
    color: var(--brand-violet);
}

.cta-panel-dark {
    background:
        radial-gradient(circle at top right, rgba(34, 195, 255, 0.18), transparent 22%),
        radial-gradient(circle at left center, rgba(107, 92, 255, 0.20), transparent 22%),
        linear-gradient(180deg, #10172b 0%, #0b1020 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.06);
}

.cta-panel-dark .section-copy-light,
.cta-panel-dark .eyebrow {
    color: rgba(255, 255, 255, 0.76);
}

.button-secondary-dark {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.public-footer {
    background: linear-gradient(180deg, #f8faff 0%, #f1f5ff 100%);
}

.footer-slogan {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--brand-ink);
}

.sidebar {
    background:
        radial-gradient(circle at top, rgba(34, 195, 255, 0.12), transparent 18%),
        linear-gradient(180deg, #0b1020 0%, #11192f 100%);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    background: rgba(107, 92, 255, 0.16);
}

.sidebar-brand-card {
    background: rgba(255, 255, 255, 0.06);
}

.brand-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    margin-top: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.topbar {
    margin-bottom: 28px;
}

.topbar h1,
.stat-card strong,
.panel-head h2,
.login-card h1,
.campaign-head h3 {
    letter-spacing: -0.04em;
}

.topbar-title-wrap .eyebrow {
    margin-bottom: 4px;
}

.stat-card-brand {
    position: relative;
    overflow: hidden;
}

.stat-card-brand::after {
    content: "";
    position: absolute;
    inset: auto -30px -36px auto;
    width: 100px;
    height: 100px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(107, 92, 255, 0.10), transparent 62%);
}

.stat-card-head {
    display: inline-flex;
    align-items: center;
    color: var(--brand-ink);
    font-weight: 700;
}

.summary-list-brand span {
    display: inline-flex;
    align-items: center;
}

.panel-brand .panel-head {
    margin-bottom: 22px;
}

.account-nav-wrap {
    background: rgba(246, 248, 252, 0.86);
    border-bottom: 1px solid rgba(232, 236, 244, 0.92);
}

.account-nav a,
.account-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.88);
    border-color: #e1e8fb;
}

.login-section {
    background:
        radial-gradient(circle at top right, rgba(34, 195, 255, 0.14), transparent 22%),
        radial-gradient(circle at top left, rgba(107, 92, 255, 0.16), transparent 20%),
        linear-gradient(180deg, #f4f7ff 0%, #edf2ff 100%);
}

.auth-card-identity {
    position: relative;
    overflow: hidden;
}

.auth-card-identity::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(107, 92, 255, 0.10), transparent 26%);
    pointer-events: none;
}

.auth-brand-mini {
    margin-bottom: 12px;
}

.auth-brand-mini img {
    width: min(220px, 100%);
    height: auto;
}

.auth-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

.auth-bullets span {
    display: inline-flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #dde6fb;
    font-weight: 700;
}

.role-card strong {
    display: inline-flex;
    align-items: center;
    margin-bottom: 4px;
}

.role-card {
    background: rgba(255,255,255,0.88);
    border-color: #e2e8fa;
}

.role-card:has(input:checked) {
    border-color: rgba(107, 92, 255, 0.36);
    box-shadow: 0 0 0 4px rgba(107, 92, 255, 0.08);
}

input,
textarea,
select {
    border-color: #dce3f3;
    background: rgba(255,255,255,0.96);
    border-radius: 16px;
}

input:focus,
textarea:focus,
select:focus {
    border-color: rgba(107, 92, 255, 0.44);
    box-shadow: 0 0 0 4px rgba(107, 92, 255, 0.10);
}

.bar-fill {
    background: linear-gradient(180deg, var(--brand-cyan) 0%, var(--brand-violet) 100%);
}

.brand-page-hero {
    padding-top: 62px;
    padding-bottom: 42px;
}

.brand-note-card,
.brand-card-surface {
    background: rgba(255,255,255,0.92);
}

.logo-showcase-grid,
.brand-swatch-grid,
.brand-type-stack,
.brand-usage-grid {
    display: grid;
    gap: 16px;
}

.logo-showcase-grid {
    grid-template-columns: 160px 1fr;
}

.logo-showcase-block {
    min-height: 140px;
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid #e5ebfb;
    background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
}

.logo-showcase-block img {
    max-width: 100%;
    height: auto;
}

.brand-swatch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-swatch-card {
    padding: 14px;
    border-radius: 22px;
    border: 1px solid #e5ebfb;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.brand-swatch {
    height: 72px;
    border-radius: 18px;
    margin-bottom: 12px;
    border: 1px solid rgba(11, 16, 32, 0.06);
}

.brand-swatch-card small {
    color: var(--muted);
}

.brand-type-stack {
    grid-template-columns: 1fr;
}

.type-preview {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #e5ebfb;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.type-preview span {
    display: block;
    color: var(--muted);
    margin-bottom: 8px;
}

.type-preview strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.type-preview-heading strong { font-family: var(--font-heading); }
.type-preview-body strong { font-family: var(--font-body); }
.type-preview-code strong { font-family: var(--font-mono); }

.brand-button-showcase {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.brand-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.brand-icon-card {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
    padding: 18px 12px;
    border-radius: 22px;
    border: 1px solid #e5ebfb;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.brand-icon-card .icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-dark);
}

.brand-usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.brand-usage-grid > div {
    padding: 18px;
    border-radius: 22px;
    border: 1px solid #e5ebfb;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.formats-grid,
.docs-grid,
.footer-grid,
.cards-grid,
.stats-grid,
.panel-grid,
.checkbox-grid {
    gap: 18px;
}

@media (max-width: 1160px) {
    .pricing-grid,
    .brand-swatch-grid,
    .brand-usage-grid,
    .logo-showcase-grid,
    .brand-icon-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    .public-links {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        border-radius: 24px;
        background: rgba(255,255,255,0.96);
        border: 1px solid #e5ebfb;
        box-shadow: var(--shadow);
    }

    .public-links.is-open {
        display: flex;
    }

    .sidebar.is-open {
        display: block;
    }

    .public-links > a:not(.button),
    .public-links .button {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-toggle,
    .sidebar-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-row {
        position: relative;
    }

    .hero-brand {
        padding-top: 48px;
    }

    .signal-row,
    .pricing-grid,
    .brand-swatch-grid,
    .brand-usage-grid,
    .brand-icon-grid,
    .logo-showcase-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .brand-button-showcase,
    .auth-bullets {
        flex-direction: column;
        align-items: stretch;
    }

    .signal-card-accent strong,
    .pricing-price {
        font-size: 28px;
    }

    .brand-icon-card {
        justify-items: start;
        text-align: left;
    }

    .brand-icon-card .icon {
        width: 1.25rem;
        height: 1.25rem;
    }
}


/* ===== PubNexa marketplace + billing + approvals polish ===== */
.inventory-filter-bar {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
    align-items: end;
}

.inventory-filter-actions {
    align-items: stretch;
    justify-content: flex-end;
}

.inventory-filter-actions .button {
    min-width: 110px;
}

.approval-list-rich {
    display: grid;
    gap: 18px;
}

.approval-card-rich {
    display: grid;
    gap: 0;
    grid-template-columns: minmax(220px, 280px) 1fr;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(79, 70, 229, 0.12);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.approval-preview {
    min-height: 220px;
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(37, 99, 235, 0.06) 100%);
    border-right: 1px solid rgba(217, 227, 241, 0.95);
    display: grid;
    place-items: center;
    padding: 18px;
}

.approval-preview img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: #fff;
}

.approval-preview-text {
    align-items: stretch;
}

.approval-body {
    padding: 22px;
}

.policy-row,
.approval-inline-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.policy-row {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(248, 251, 255, 0.92);
}

.stack-list {
    display: grid;
    gap: 16px;
}

.stack-item {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.88);
}

.approval-inline-row {
    padding: 14px 0;
    border-top: 1px solid rgba(217, 227, 241, 0.95);
}

.approval-inline-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.approval-inline-row-block {
    align-items: flex-start;
}

.compact-stack-list {
    gap: 10px;
}

.form-inline-stacked {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(248, 251, 255, 0.92);
    color: var(--muted);
    font-weight: 700;
}

.checkbox-inline input {
    width: 16px;
    height: 16px;
}

.auth-split-shell {
    padding-top: 56px;
}

.auth-split-grid {
    align-items: center;
}

.auth-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(217, 227, 241, 0.95);
    box-shadow: var(--shadow);
}

.role-card-static {
    position: relative;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.role-card-static.is-selected,
.role-picker-clean .role-card.is-selected {
    border-color: rgba(79, 70, 229, 0.24);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.role-picker-clean .role-card strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: min(460px, calc(100vw - 32px));
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 50px rgba(11, 16, 32, 0.14);
    backdrop-filter: blur(12px);
}

.cookie-banner-body {
    display: grid;
    gap: 8px;
}

.cookie-banner-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.inline-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
}

.justify-end {
    justify-content: flex-end;
}

.mt-8 {
    margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.mt-24 {
    margin-top: 24px;
}

.step-done {
    border-color: rgba(22, 163, 74, 0.18);
    background: linear-gradient(180deg, rgba(22, 163, 74, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.step-done strong {
    background: rgba(22, 163, 74, 0.14);
    color: #166534;
}

.pricing-note-card {
    align-content: start;
}

@media (max-width: 1160px) {
    .inventory-filter-bar,
    .approval-card-rich,
    .inline-form-grid {
        grid-template-columns: 1fr;
    }

    .approval-preview {
        min-height: 180px;
        border-right: 0;
        border-bottom: 1px solid rgba(217, 227, 241, 0.95);
    }
}

@media (max-width: 780px) {
    .approval-inline-row,
    .policy-row,
    .form-inline-stacked,
    .cookie-banner-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner {
        left: 16px;
        right: 16px;
        width: auto;
    }
}

/* ===== Phase 4: verified inventory + onboarding wizard ===== */
.progress-bar {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(217, 227, 241, 0.95);
    overflow: hidden;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f46e5 0%, #2563eb 100%);
}

.onboarding-progress-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.onboarding-progress-head,
.wizard-step-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.onboarding-intro-copy {
    margin-bottom: 18px;
}

.compact-progress-card {
    margin-bottom: 18px;
}

.wizard-steps {
    gap: 18px;
}

.wizard-step h4 {
    margin: 0;
}

.stats-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inventory-filter-bar-wide {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.inventory-filter-bar-wide .inventory-filter-actions {
    grid-column: 1 / -1;
}

@media (max-width: 1160px) {
    .stats-grid-3,
    .inventory-filter-bar-wide {
        grid-template-columns: 1fr;
    }
}

/* ===== Phase 5: marketplace cards + stronger verification + onboarding redirects ===== */
.notice-card {
    display: grid;
    gap: 8px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(79, 70, 229, 0.14);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
}

.notice-card strong {
    color: #0f172a;
}

.notice-card-info {
    border-color: rgba(37, 99, 235, 0.18);
}

.mb-16 {
    margin-bottom: 16px;
}

.mb-0 {
    margin-bottom: 0;
}

.verification-toolkit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.verification-tool-card {
    display: grid;
    gap: 12px;
}

.verification-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-active-bar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.inventory-active-chips,
.inventory-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: rgba(255, 255, 255, 0.9);
    color: #334155;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1;
}

.inventory-chip code {
    font-size: 0.8rem;
}

.inventory-chip-muted {
    color: #64748b;
    background: rgba(241, 245, 249, 0.95);
}

.inventory-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.inventory-card {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(217, 227, 241, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.98) 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.inventory-card-verified {
    border-color: rgba(52, 211, 153, 0.28);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.1);
}

.inventory-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.inventory-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.inventory-card-title-row h3 {
    margin: 0;
    font-size: 1.05rem;
}

.inventory-card-domain {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.inventory-card-size {
    min-width: 74px;
    text-align: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.04);
    color: #0f172a;
    font-weight: 700;
}

.inventory-card-body {
    display: grid;
    gap: 14px;
}

.inventory-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.inventory-kpi-grid div {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.inventory-kpi-grid span {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    margin-bottom: 6px;
}

.inventory-kpi-grid strong {
    display: block;
    color: #0f172a;
    font-size: 1rem;
}

.inventory-card-copy {
    margin: 0;
    color: #475569;
}

.inventory-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inventory-link {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

.inventory-link-muted {
    color: #64748b;
}

.wizard-step-next {
    border-color: rgba(79, 70, 229, 0.28);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0.96) 100%);
}

@media (max-width: 1180px) {
    .inventory-card-grid,
    .verification-toolkit-grid,
    .inventory-kpi-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .inventory-card,
    .verification-tool-card {
        padding: 18px;
    }

    .inventory-card-head,
    .inventory-card-footer,
    .inventory-active-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== Phase 6: stronger marketplace trust badges + lead capture + featured logic ===== */
.inventory-trust-panel {
    border: 1px solid rgba(107, 92, 255, 0.12);
}

.inventory-trust-stack {
    display: grid;
    gap: 12px;
    margin: 14px 0 8px;
}

.inventory-trust-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 13px;
}

.inventory-trust-pill-success {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.16) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(52, 211, 153, 0.26);
    color: #065f46;
}

.inventory-trust-pill-info {
    background: linear-gradient(135deg, rgba(34, 195, 255, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(34, 195, 255, 0.24);
    color: #1d4ed8;
}

.inventory-trust-pill-muted {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0%, rgba(255, 255, 255, 0.98) 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    color: #334155;
}

.inventory-proof-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.inventory-card-featured {
    position: relative;
    overflow: hidden;
}

.inventory-card-ribbon {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(107, 92, 255, 0.14) 0%, rgba(34, 195, 255, 0.14) 100%);
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.inventory-feature-copy {
    font-weight: 700;
    color: #111827;
}

.lead-target-card {
    border: 1px solid rgba(79, 70, 229, 0.18);
    background: linear-gradient(180deg, rgba(79, 70, 229, 0.06) 0%, rgba(255, 255, 255, 0.98) 100%);
}

@media (max-width: 720px) {
    .inventory-card-ribbon {
        position: static;
        margin-bottom: 12px;
    }

    .inventory-trust-pill {
        align-items: flex-start;
        flex-direction: column;
    }
}


.nav-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 .35rem;
  border-radius: 999px;
  background: rgba(107,92,255,.16);
  color: var(--color-primary, #6B5CFF);
  font-size: .75rem;
  font-weight: 800;
  margin-left: .4rem;
}
.notification-link {
  position: relative;
}
.notification-list {
  display: grid;
  gap: 1rem;
}
.compact-notification-list {
  gap: .75rem;
}
.notification-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 18px;
  background: #fff;
}
.notification-item-unread {
  border-color: rgba(107,92,255,.35);
  box-shadow: 0 10px 26px rgba(107,92,255,.08);
}
.notification-main {
  min-width: 0;
}
.notification-main p {
  margin: .45rem 0 0;
  color: #475569;
}
.notification-title-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: .55rem;
  font-size: .85rem;
  color: #64748b;
}
.notification-actions {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .notification-item {
    flex-direction: column;
  }
}

.inline-search-form {
  display:flex;
  gap:10px;
  align-items:center;
}
.inline-search-form input[type="search"] {
  min-width:220px;
}
.business-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.guide-steps-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:18px;
}
.guide-step-badge {
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  margin-bottom:12px;
  background: linear-gradient(135deg, rgba(99,102,241,.18), rgba(56,189,248,.18));
  color: var(--color-accent, #6366f1);
}
.operations-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(10, 15, 30, 0.02);
}
.operations-card-head {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}
.mini-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:12px;
}
.mini-list li {
  padding:12px 14px;
  border-radius:14px;
  background: rgba(10, 15, 30, 0.04);
  display:grid;
  gap:4px;
}
.mini-list span {
  color: var(--color-muted, #64748b);
  font-size: .92rem;
}
.panel-embedded {
  padding: 18px;
}
.panel-subhead {
  margin: 0 0 12px;
}
.admin-search-form input[type="search"] {
  width:100%;
}
.danger-list li {
  color: #b91c1c;
}
.mt-24 {
  margin-top:24px;
}
@media (max-width: 980px) {
  .business-grid,
  .guide-steps-grid {
    grid-template-columns: 1fr;
  }
  .inline-search-form {
    width:100%;
    flex-wrap:wrap;
  }
  .inline-search-form input[type="search"] {
    min-width:0;
    width:100%;
  }
}
