:root {
    --bg: #f6f8fb;
    --surface: #ffffff;
    --surface-soft: #f9fbff;
    --text: #111827;
    --muted: #64748b;
    --line: #e6eaf0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --cyan: #06b6d4;
    --green: #16a34a;
    --amber: #d97706;
    --red: #dc2626;
    --violet: #7c3aed;
    --shadow: 0 18px 50px rgba(15, 23, 42, .08);
    --radius: 8px;
}

/* Final invoice sizing override: keep screen and print aligned to real A4. */
.invoice-document-page {
    background: #dfe7f0 !important;
}

.invoice-document-page .public-layout {
    width: min(210mm, calc(100% - 32px)) !important;
    margin: 0 auto 32px !important;
}

.invoice-document-page .fakturo-document {
    width: 210mm !important;
    max-width: 100% !important;
    min-height: 297mm !important;
    margin: 0 auto !important;
    padding: 14mm 15mm !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.invoice-document-page .fakturo-top-line {
    height: 7px !important;
    margin-bottom: 20px !important;
}

.invoice-document-page .fakturo-document-top {
    min-height: 76px !important;
}

.invoice-document-page .fakturo-logo-wrap {
    min-width: 150px !important;
    padding-left: 0 !important;
}

.invoice-document-page .fakturo-amount-due strong {
    font-size: 34px !important;
}

.invoice-document-page .fakturo-amount-due span {
    margin-top: 7px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-title-card {
    min-height: 70px !important;
    margin-bottom: 18px !important;
    padding: 14px 20px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-title-card h1 {
    margin-bottom: 8px !important;
    font-size: 23px !important;
    letter-spacing: 0 !important;
}

.invoice-document-page .fakturo-title-card p {
    font-size: 12px !important;
}

.invoice-document-page .fakturo-status-pill {
    min-width: 150px !important;
    padding: 9px 13px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-status-pill span {
    width: 10px !important;
    height: 10px !important;
}

.invoice-document-page .fakturo-parties {
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.invoice-document-page .fakturo-party-card {
    min-height: 116px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-party-card h2 {
    margin-bottom: 9px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-party-card strong {
    margin-bottom: 8px !important;
    font-size: 16px !important;
}

.invoice-document-page .fakturo-party-card p,
.invoice-document-page .fakturo-items th,
.invoice-document-page .fakturo-items td,
.invoice-document-page .fakturo-totals div,
.invoice-document-page .fakturo-payment-box p {
    font-size: 12px !important;
}

.invoice-document-page .fakturo-items-section {
    margin-bottom: 22px !important;
}

.invoice-document-page .fakturo-items {
    border-radius: 14px !important;
}

.invoice-document-page .fakturo-items th,
.invoice-document-page .fakturo-items td {
    padding: 8px 10px !important;
}

.invoice-document-page .fakturo-summary {
    grid-template-columns: minmax(0, 1fr) 250px !important;
    gap: 24px !important;
    margin-bottom: 34px !important;
}

.invoice-document-page .fakturo-note {
    font-size: 11px !important;
}

.invoice-document-page .fakturo-final-total {
    margin-top: 8px !important;
    padding-top: 12px !important;
    font-size: 15px !important;
}

.invoice-document-page .fakturo-final-total strong {
    font-size: 20px !important;
}

.invoice-document-page .fakturo-payment-box {
    margin-bottom: 12px !important;
    padding: 15px 20px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-payment-box h2 {
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.invoice-document-page .fakturo-payment-box small,
.invoice-document-page .fakturo-document-footer p,
.invoice-document-page .fakturo-footer-line {
    font-size: 10px !important;
}

.invoice-document-page .fakturo-document-footer h2 {
    margin: 14px 0 10px !important;
    font-size: 15px !important;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body,
    .public-page,
    .invoice-document-page {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .invoice-document-page .public-layout {
        width: 210mm !important;
        margin: 0 !important;
    }

    .invoice-document-page .fakturo-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 12mm 13mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: auto;
    }

    .invoice-document-page .fakturo-summary {
        margin-bottom: 28px !important;
    }
}

/* Final landing polish: stable first viewport and less fragile hero composition. */
.bizora-landing .site-nav {
    position: sticky;
    background: rgba(8, 13, 24, .92) !important;
}

.bizora-landing .bizora-hero {
    height: clamp(600px, 78vh, 760px) !important;
    min-height: 0 !important;
    align-items: center !important;
}

.bizora-landing .bizora-hero img {
    object-position: center right !important;
    filter: saturate(.96) contrast(1.02);
}

.bizora-landing .bizora-hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 23, .96) 0%, rgba(7, 12, 23, .78) 42%, rgba(7, 12, 23, .18) 78%),
        linear-gradient(0deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .08) 44%) !important;
}

.bizora-landing .bizora-hero-content {
    padding: 46px 0 52px !important;
}

.bizora-landing .bizora-hero-content h1 {
    max-width: 690px !important;
    font-size: clamp(38px, 5.8vw, 70px) !important;
}

.bizora-landing .bizora-hero-content p:not(.eyebrow) {
    max-width: 620px !important;
    font-size: 18px !important;
}

.bizora-landing .bizora-strip {
    padding-top: 18px !important;
}

@media (max-width: 860px) {
    .bizora-landing .bizora-hero {
        height: auto !important;
        min-height: 640px !important;
    }

    .bizora-landing .bizora-hero-content {
        padding: 110px 0 42px !important;
    }

    .bizora-landing .bizora-hero-shade {
        background:
            linear-gradient(180deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .95) 72%),
            linear-gradient(0deg, rgba(7, 12, 23, .90), rgba(7, 12, 23, .12)) !important;
    }
}

/* Final landing polish: stable first viewport and less fragile hero composition. */
.bizora-landing .site-nav {
    position: sticky;
    background: rgba(8, 13, 24, .92);
}

.bizora-landing .bizora-hero {
    height: clamp(600px, 78vh, 760px);
    min-height: 0;
    align-items: center;
}

.bizora-landing .bizora-hero img {
    object-position: center right;
    filter: saturate(.96) contrast(1.02);
}

.bizora-landing .bizora-hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 23, .96) 0%, rgba(7, 12, 23, .78) 42%, rgba(7, 12, 23, .18) 78%),
        linear-gradient(0deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .08) 44%);
}

.bizora-landing .bizora-hero-content {
    padding: 46px 0 52px;
}

.bizora-landing .bizora-hero-content h1 {
    max-width: 690px;
    font-size: clamp(38px, 5.8vw, 70px);
}

.bizora-landing .bizora-hero-content p:not(.eyebrow) {
    max-width: 620px;
    font-size: 18px;
}

.bizora-landing .bizora-strip {
    padding-top: 18px;
}

.bizora-landing .feature-card,
.bizora-landing .price-card,
.bizora-landing .process-list article {
    box-shadow: 0 14px 40px rgba(15, 23, 42, .06);
}

@media (max-width: 860px) {
    .bizora-landing .bizora-hero {
        height: auto;
        min-height: 640px;
    }

    .bizora-landing .bizora-hero-content {
        padding: 110px 0 42px;
    }

    .bizora-landing .bizora-hero-shade {
        background:
            linear-gradient(180deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .95) 72%),
            linear-gradient(0deg, rgba(7, 12, 23, .90), rgba(7, 12, 23, .12));
    }
}

.invoice-document-page {
    background: #dfe7f0;
}

.invoice-document-page .public-layout {
    width: min(210mm, calc(100% - 32px));
    margin: 0 auto 32px;
}

.invoice-document-page .fakturo-document {
    width: 210mm;
    max-width: 100%;
    min-height: 297mm;
    margin: 0 auto;
    padding: 14mm 15mm;
    box-sizing: border-box;
    border-radius: 6px;
    background: #fff;
}

.invoice-document-page .fakturo-top-line {
    height: 7px;
    margin-bottom: 20px;
}

.invoice-document-page .fakturo-document-top {
    min-height: 76px;
}

.invoice-document-page .fakturo-logo-wrap {
    min-width: 150px;
    padding-left: 0;
}

.invoice-document-page .fakturo-amount-due strong {
    font-size: 34px;
}

.invoice-document-page .fakturo-amount-due span {
    margin-top: 7px;
    font-size: 12px;
}

.invoice-document-page .fakturo-title-card {
    min-height: 70px;
    margin-bottom: 18px;
    padding: 14px 20px;
    border-radius: 16px;
}

.invoice-document-page .fakturo-title-card h1 {
    margin-bottom: 8px;
    font-size: 23px;
    letter-spacing: 0;
}

.invoice-document-page .fakturo-title-card p {
    font-size: 12px;
}

.invoice-document-page .fakturo-status-pill {
    min-width: 150px;
    padding: 9px 13px;
    font-size: 12px;
}

.invoice-document-page .fakturo-status-pill span {
    width: 10px;
    height: 10px;
}

.invoice-document-page .fakturo-parties {
    gap: 14px;
    margin-bottom: 18px;
}

.invoice-document-page .fakturo-party-card {
    min-height: 116px;
    padding: 16px 18px;
    border-radius: 16px;
}

.invoice-document-page .fakturo-party-card h2 {
    margin-bottom: 9px;
    font-size: 12px;
}

.invoice-document-page .fakturo-party-card strong {
    margin-bottom: 8px;
    font-size: 16px;
}

.invoice-document-page .fakturo-party-card p {
    font-size: 12px;
}

.invoice-document-page .fakturo-items-section {
    margin-bottom: 22px;
}

.invoice-document-page .fakturo-items {
    border-radius: 14px;
}

.invoice-document-page .fakturo-items th,
.invoice-document-page .fakturo-items td {
    padding: 8px 10px;
    font-size: 12px;
}

.invoice-document-page .fakturo-items th {
    font-size: 12px;
}

.invoice-document-page .fakturo-summary {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 24px;
    margin-bottom: 34px;
}

.invoice-document-page .fakturo-note {
    font-size: 11px;
}

.invoice-document-page .fakturo-totals div {
    padding: 6px 0;
    font-size: 12px;
}

.invoice-document-page .fakturo-final-total {
    margin-top: 8px;
    padding-top: 12px !important;
    font-size: 15px !important;
}

.invoice-document-page .fakturo-final-total strong {
    font-size: 20px;
}

.invoice-document-page .fakturo-payment-box {
    margin-bottom: 12px;
    padding: 15px 20px;
    border-radius: 16px;
}

.invoice-document-page .fakturo-payment-box h2 {
    margin-bottom: 10px;
    font-size: 16px;
}

.invoice-document-page .fakturo-payment-box p {
    margin: 5px 0;
    font-size: 12px;
}

.invoice-document-page .fakturo-payment-box small,
.invoice-document-page .fakturo-document-footer p,
.invoice-document-page .fakturo-footer-line {
    font-size: 10px;
}

.invoice-document-page .fakturo-document-footer h2 {
    margin: 14px 0 10px;
    font-size: 15px;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body,
    .public-page,
    .invoice-document-page {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .invoice-document-page .public-layout {
        width: 210mm !important;
        margin: 0 !important;
    }

    .invoice-document-page .fakturo-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 12mm 13mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: auto;
    }

    .invoice-document-page .fakturo-summary {
        margin-bottom: 28px !important;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    gap: 22px;
}

.brand,
.brand-inline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 8px;
    font-size: 14px;
    letter-spacing: 0;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .24);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #334155;
    font-weight: 650;
    font-size: 14px;
}

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

.hero {
    position: relative;
    min-height: calc(100vh - 74px);
    padding: 84px 0 44px;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(255,255,255,.96), rgba(255,255,255,.78)),
        radial-gradient(circle at 82% 14%, rgba(6, 182, 212, .18), transparent 34%),
        linear-gradient(135deg, #eef6ff, #ffffff 55%, #f6fff7);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    gap: 58px;
    align-items: center;
}

.hero h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: .98;
    letter-spacing: 0;
}

.hero-copy {
    margin: 24px 0 0;
    max-width: 640px;
    color: #475569;
    font-size: 19px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
    color: #475569;
    font-weight: 650;
}

.hero-points span {
    padding: 8px 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.72);
    border-radius: 999px;
}

.hero-preview {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-soft);
}

.preview-total {
    padding: 24px;
    display: grid;
    gap: 18px;
}

.preview-total h3 {
    margin: 0;
    font-size: 21px;
}

.preview-total strong {
    font-size: 36px;
}

.preview-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: #475569;
}

.preview-row:last-child {
    border-bottom: 0;
}

.preview-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
}

.preview-status div {
    padding: 18px;
    border-right: 1px solid var(--line);
}

.preview-status div:last-child {
    border-right: 0;
}

.preview-status strong {
    display: block;
    font-size: 22px;
}

.preview-status small {
    color: var(--muted);
}

.section {
    padding: 86px 0;
}

.section-white {
    background: #fff;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 34px;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.06;
}

.section-head p {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
}

.feature-grid,
.pricing-grid,
.stats-grid,
.dashboard-grid,
.settings-grid {
    display: grid;
    gap: 18px;
}

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

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

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

.dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
}

.settings-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
}

.card,
.feature-card,
.price-card,
.step-card,
.auth-card,
.empty-state,
.public-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
}

.feature-card,
.price-card,
.step-card {
    padding: 24px;
}

.feature-card span,
.step-number {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    font-weight: 800;
}

.feature-card h3,
.price-card h3,
.step-card h3 {
    margin: 0 0 8px;
}

.feature-card p,
.price-card p,
.step-card p,
.muted {
    color: var(--muted);
}

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

.price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 20px 0;
}

.price strong {
    font-size: 40px;
}

.price-card.highlight {
    border-color: rgba(37, 99, 235, .34);
    box-shadow: 0 18px 55px rgba(37, 99, 235, .12);
}

.site-footer {
    padding: 38px 0;
    color: var(--muted);
    background: #fff;
    border-top: 1px solid var(--line);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.btn,
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover,
.icon-btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(37, 99, 235, .24);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-secondary {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.btn-soft {
    color: var(--blue-dark);
    background: #eff6ff;
    border-color: #dbeafe;
}

.btn-danger {
    color: #fff;
    background: var(--red);
}

.btn-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 13px;
}

.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(255,255,255,.95)),
        radial-gradient(circle at top right, rgba(22, 163, 74, .12), transparent 35%);
}

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

.auth-card .brand-inline {
    margin-bottom: 22px;
}

.auth-card h1 {
    margin: 0 0 8px;
}

.auth-card p {
    color: var(--muted);
    margin: 0 0 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-row {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.form-row.full,
.full {
    grid-column: 1 / -1;
}

label {
    color: #334155;
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    padding: 11px 12px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(37, 99, 235, .72);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .10);
}

.app-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 22px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.side-nav {
    display: grid;
    gap: 6px;
}

.side-nav a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    color: #475569;
    border-radius: 8px;
    font-weight: 750;
}

.side-nav a.active,
.side-nav a:hover {
    color: var(--blue-dark);
    background: #eff6ff;
}

.side-nav em {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 14px;
}

.user-pill {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.user-pill span {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #111827;
    border-radius: 8px;
    font-weight: 800;
}

.user-pill strong,
.user-pill small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.logout-link {
    color: var(--muted);
    font-weight: 750;
    padding: 10px 12px;
}

.mobile-menu-btn {
    display: none;
}

.app-main {
    padding: 30px;
}

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

.topbar h1 {
    margin: 2px 0 0;
    font-size: 30px;
    line-height: 1.15;
}

.eyebrow {
    margin: 0;
    color: var(--blue);
    font-size: 13px;
    font-weight: 850;
    text-transform: uppercase;
}

.card {
    padding: 22px;
}

.stat-card {
    padding: 22px;
}

.stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
    margin-top: 8px;
}

.stat-card span {
    color: var(--muted);
    font-weight: 700;
}

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

.panel-head h2,
.list-head h2 {
    margin: 0;
    font-size: 19px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

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

th {
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 850;
}

td {
    color: #1f2937;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.badge-draft {
    color: #475569;
    background: #f1f5f9;
}

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

.badge-opened {
    color: #0e7490;
    background: #cffafe;
}

.badge-accepted {
    color: #15803d;
    background: #dcfce7;
}

.badge-declined {
    color: #b91c1c;
    background: #fee2e2;
}

.badge-waiting {
    color: #a16207;
    background: #fef3c7;
}

.filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 190px auto;
    gap: 12px;
    align-items: end;
    margin-bottom: 18px;
}

.alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
}

.alert-success {
    color: #166534;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}

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

.offer-builder {
    display: grid;
    gap: 18px;
}

.catalog-picker {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.catalog-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: #334155;
    font-weight: 750;
}

.catalog-toggle input {
    width: auto;
}

.catalog-options {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    color: var(--muted);
}

.option-choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.option-choice input {
    width: auto;
    margin-top: 3px;
}

.option-choice strong,
.option-choice small,
.option-choice em {
    display: block;
}

.option-choice small {
    color: var(--blue);
    font-style: normal;
    font-weight: 750;
}

.option-choice em {
    color: var(--muted);
    font-style: normal;
    margin-top: 4px;
}

.items-table input {
    min-width: 110px;
}

.item-remove {
    width: 38px;
    min-width: 38px;
    padding: 0;
}

.totals-box {
    width: min(360px, 100%);
    margin-left: auto;
    display: grid;
    gap: 10px;
    padding: 18px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.totals-box div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.totals-box div:last-child {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 20px;
    font-weight: 850;
}

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

.package-editor,
.package-option {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.package-option {
    display: grid;
    gap: 10px;
    cursor: pointer;
}

.package-option.selected {
    border-color: rgba(37, 99, 235, .55);
    background: #eff6ff;
}

.package-option input {
    width: auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.empty-state {
    padding: 34px;
    text-align: center;
    color: var(--muted);
}

.activity-list,
.notification-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.activity-list li,
.notification-item {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.notification-item.unread {
    border-color: rgba(37, 99, 235, .38);
    background: #eff6ff;
}

.notification-item p {
    margin: 0 0 6px;
}

.notification-item small,
.activity-list small {
    color: var(--muted);
}

.public-page {
    background: #eef3f9;
}

.public-header {
    padding: 28px 0;
}

.public-layout {
    width: min(980px, calc(100% - 36px));
    margin: 0 auto 48px;
}

.public-box {
    overflow: hidden;
}

.public-hero {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .11), rgba(255,255,255,.96)),
        #fff;
    border-bottom: 1px solid var(--line);
}

.company-lockup {
    display: flex;
    align-items: center;
    gap: 14px;
}

.company-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 5px;
}

.public-content {
    padding: 30px 34px 34px;
    display: grid;
    gap: 26px;
}

.summary-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.summary-strip div {
    padding: 18px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.summary-strip div:last-child {
    border-right: 0;
}

.summary-strip span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 750;
}

.summary-strip strong {
    display: block;
    margin-top: 6px;
    font-size: 20px;
}

.thank-you {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.thank-you .public-box {
    width: min(560px, 100%);
    padding: 34px;
    text-align: center;
}

.public-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.official-document {
    background: #fff;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .10);
    color: #172033;
    overflow: hidden;
}

.official-document-head,
.official-meta,
.official-parties,
.official-items-section,
.official-summary,
.official-payment,
.official-signatures {
    margin: 0 34px;
}

.official-document-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: 28px;
    align-items: start;
    padding: 34px 0 24px;
    border-bottom: 2px solid #172033;
}

.official-brand {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.official-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.15;
}

.official-brand span {
    display: block;
    color: #586579;
    margin-top: 4px;
}

.official-logo,
.official-logo-mark {
    width: 64px;
    height: 64px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #fff;
}

.official-logo {
    object-fit: contain;
    padding: 6px;
}

.official-logo-mark {
    display: grid;
    place-items: center;
    color: #fff;
    background: #172033;
    font-weight: 850;
}

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

.official-title p {
    margin: 0 0 4px;
    color: #586579;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.official-title h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1;
    letter-spacing: .03em;
}

.official-title > strong {
    display: block;
    margin: 8px 0 12px;
    font-size: 18px;
}

.official-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-right: 1px solid #d8dee8;
    border-bottom: 1px solid #d8dee8;
    border-left: 1px solid #d8dee8;
}

.official-meta div {
    padding: 13px 14px;
    border-right: 1px solid #d8dee8;
}

.official-meta div:last-child {
    border-right: 0;
}

.official-meta span,
.official-party dt,
.official-signatures span {
    display: block;
    color: #586579;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.official-meta strong {
    display: block;
    margin-top: 4px;
    font-size: 15px;
}

.official-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 26px 0 22px;
}

.official-party {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    overflow: hidden;
}

.official-party h2,
.official-payment h2 {
    margin: 0;
    padding: 12px 14px;
    background: #f4f7fb;
    border-bottom: 1px solid #d8dee8;
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.official-party dl {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 0;
    margin: 0;
}

.official-party dt,
.official-party dd {
    margin: 0;
    padding: 11px 14px;
    border-bottom: 1px solid #edf1f5;
}

.official-party dd {
    color: #172033;
    font-weight: 700;
}

.official-party dt:nth-last-child(2),
.official-party dd:last-child {
    border-bottom: 0;
}

.official-items {
    border: 1px solid #172033;
}

.official-items th,
.official-items td {
    padding: 11px 10px;
    border: 1px solid #d8dee8;
}

.official-items th {
    color: #172033;
    background: #eef2f7;
    font-size: 12px;
    text-transform: uppercase;
}

.official-items th:first-child,
.official-items td:first-child {
    width: 48px;
    text-align: center;
}

.official-items th:nth-child(3),
.official-items td:nth-child(3) {
    width: 86px;
    text-align: right;
}

.official-items th:nth-child(4),
.official-items td:nth-child(4),
.official-items th:nth-child(5),
.official-items td:nth-child(5) {
    width: 142px;
    text-align: right;
}

.official-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding: 24px 0;
}

.official-note {
    color: #465468;
}

.official-note h3 {
    margin: 0 0 6px;
    color: #172033;
    font-size: 13px;
    text-transform: uppercase;
}

.official-note p {
    margin: 0 0 14px;
}

.official-totals {
    border: 1px solid #172033;
}

.official-totals div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #d8dee8;
}

.official-totals div:last-child {
    border-bottom: 0;
    color: #fff;
    background: #172033;
    font-size: 17px;
}

.official-totals span {
    color: inherit;
    font-weight: 750;
}

.official-totals strong {
    white-space: nowrap;
}

.official-payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding-bottom: 22px;
}

.official-payment > div {
    border: 1px solid #d8dee8;
    border-radius: 8px;
    overflow: hidden;
}

.official-payment p {
    margin: 0;
    padding: 8px 14px;
    border-bottom: 1px solid #edf1f5;
}

.official-payment p:last-child {
    border-bottom: 0;
}

.official-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
    padding: 14px 0 34px;
}

.official-signatures div {
    min-height: 76px;
    border-top: 1px solid #172033;
    padding-top: 10px;
}

.official-signatures strong {
    display: block;
    margin-top: 8px;
}

.document-actions {
    margin: 0 34px 34px;
}

.fakturo-document {
    padding: 26px 34px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: 0 18px 60px rgba(15, 23, 42, .10);
    color: #0f1b35;
}

.fakturo-top-line {
    height: 12px;
    margin: 0 0 38px;
    background: #2563eb;
    border-radius: 999px;
}

.fakturo-document-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    min-height: 155px;
}

.fakturo-logo-wrap {
    min-width: 210px;
    padding-left: 46px;
}

.fakturo-logo-image {
    width: 128px;
    max-height: 72px;
    object-fit: contain;
}

.fakturo-logo-fallback {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fakturo-logo-fallback > span {
    width: 24px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: #2563eb;
    border-radius: 6px;
    font-size: 20px;
    font-weight: 900;
}

.fakturo-logo-fallback strong {
    display: block;
    color: #0f1b35;
    font-size: 18px;
    line-height: 1;
}

.fakturo-logo-fallback small {
    display: block;
    color: #667693;
    font-size: 9px;
    margin-top: 2px;
}

.fakturo-amount-due {
    text-align: right;
}

.fakturo-amount-due strong {
    display: block;
    color: #2563eb;
    font-size: 54px;
    line-height: .95;
    font-weight: 900;
}

.fakturo-amount-due span {
    display: block;
    margin-top: 16px;
    color: #667693;
    font-size: 22px;
}

.fakturo-title-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 118px;
    margin: 0 0 34px;
    padding: 24px 42px;
    border: 2px solid #cfe0ff;
    border-radius: 34px;
    background: #f5f8ff;
}

.fakturo-title-card h1 {
    margin: 0 0 18px;
    color: #0f1b35;
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: .03em;
}

.fakturo-title-card p {
    margin: 0;
    color: #667693;
    font-size: 17px;
}

.fakturo-title-card p span {
    padding: 0 12px;
}

.fakturo-status-pill {
    min-width: 250px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 28px;
    border: 2px solid #fdba74;
    border-radius: 999px;
    color: #7c2d12;
    background: #fff7ed;
    font-size: 20px;
    font-weight: 850;
    white-space: nowrap;
}

.fakturo-status-pill span {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: #f59e0b;
}

.fakturo-status-pill.paid {
    color: #166534;
    border-color: #86efac;
    background: #f0fdf4;
}

.fakturo-status-pill.paid span {
    background: #22c55e;
}

.fakturo-parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 42px;
}

.fakturo-party-card {
    min-height: 238px;
    padding: 34px 40px;
    border: 2px solid #d7e4ff;
    border-radius: 30px;
    background: #fff;
}

.fakturo-party-card h2 {
    margin: 0 0 16px;
    color: #2563eb;
    font-size: 22px;
    line-height: 1;
    text-transform: uppercase;
}

.fakturo-party-card strong {
    display: block;
    margin-bottom: 14px;
    color: #0f1b35;
    font-size: 27px;
    line-height: 1.16;
}

.fakturo-party-card p {
    margin: 6px 0 0;
    color: #0f1b35;
    font-size: 17px;
    line-height: 1.26;
}

.fakturo-items-section {
    margin-bottom: 52px;
}

.fakturo-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 2px solid #d7e4ff;
    border-radius: 26px;
}

.fakturo-items th,
.fakturo-items td {
    border: 0;
    padding: 22px 24px;
    font-size: 18px;
}

.fakturo-items th {
    color: #fff;
    background: #2563eb;
    font-size: 20px;
    font-weight: 850;
}

.fakturo-items th:first-child {
    text-align: left;
}

.fakturo-items th:nth-child(2),
.fakturo-items td:nth-child(2),
.fakturo-items th:nth-child(3),
.fakturo-items td:nth-child(3),
.fakturo-items th:nth-child(4),
.fakturo-items td:nth-child(4) {
    text-align: right;
    white-space: nowrap;
}

.fakturo-items td {
    color: #0f1b35;
    background: #fff;
    border-bottom: 1px solid #d7e4ff;
}

.fakturo-items tr:last-child td {
    border-bottom: 0;
}

.fakturo-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 42px;
    align-items: start;
    margin-bottom: 120px;
}

.fakturo-note {
    color: #667693;
    font-size: 15px;
}

.fakturo-note h3 {
    margin: 0 0 8px;
    color: #0f1b35;
}

.fakturo-totals {
    display: grid;
    gap: 0;
}

.fakturo-totals div {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    padding: 10px 0;
    color: #667693;
    font-size: 20px;
}

.fakturo-totals strong {
    color: #0f1b35;
    white-space: nowrap;
}

.fakturo-final-total {
    margin-top: 14px;
    padding-top: 22px !important;
    border-top: 1px solid #cfdaf0;
    color: #0f1b35 !important;
    text-transform: uppercase;
    font-size: 28px !important;
    font-weight: 900;
}

.fakturo-final-total strong {
    color: #2563eb;
    font-size: 36px;
}

.fakturo-payment-box {
    margin: 0 0 18px;
    padding: 34px 42px;
    border: 2px solid #d7e4ff;
    border-radius: 28px;
    background: #f5f8ff;
}

.fakturo-payment-box h2 {
    margin: 0 0 20px;
    color: #0f1b35;
    font-size: 28px;
}

.fakturo-payment-box p {
    margin: 9px 0;
    color: #0f1b35;
    font-size: 19px;
}

.fakturo-payment-box small {
    display: block;
    margin-top: 18px;
    color: #667693;
    font-size: 15px;
    word-break: break-all;
}

.fakturo-document-footer {
    color: #0f1b35;
}

.fakturo-document-footer p {
    margin: 14px 0;
    color: #667693;
    font-size: 15px;
}

.fakturo-document-footer p:first-child {
    color: #0f1b35;
    font-size: 17px;
}

.fakturo-document-footer h2 {
    margin: 26px 0 18px;
    font-size: 20px;
}

.fakturo-footer-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #667693;
    font-size: 15px;
}

.fakturo-footer-line strong {
    color: #2563eb;
}

.logo-preview {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--muted);
    overflow: hidden;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 16px;
}

.client-fields.hidden {
    display: none;
}

.site-nav-dark {
    background: rgba(9, 14, 24, .78);
    border-bottom-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.site-nav-dark .nav-links {
    color: rgba(255, 255, 255, .78);
}

.site-nav-dark .btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, .10);
    border-color: rgba(255, 255, 255, .18);
}

.bizora-hero {
    position: relative;
    min-height: calc(100vh - 74px);
    display: grid;
    align-items: end;
    overflow: hidden;
    background: #09101d;
}

.bizora-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bizora-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 12, 22, .92) 0%, rgba(6, 12, 22, .68) 42%, rgba(6, 12, 22, .10) 100%),
        linear-gradient(0deg, rgba(6, 12, 22, .86) 0%, rgba(6, 12, 22, .10) 42%);
}

.bizora-hero-content {
    position: relative;
    z-index: 1;
    padding: 90px 0 58px;
    color: #fff;
}

.bizora-hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: .96;
    letter-spacing: 0;
}

.bizora-hero-content p:not(.eyebrow) {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 19px;
}

.bizora-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 820px;
    margin-top: 34px;
}

.bizora-proof span,
.bizora-strip-grid > div,
.trial-ticket,
.process-list article {
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .10);
    backdrop-filter: blur(18px);
}

.bizora-proof span {
    padding: 9px 13px;
    border-radius: 8px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
}

.bizora-strip {
    margin-top: -1px;
    background: #09101d;
    color: #fff;
    padding: 0 0 28px;
}

.bizora-strip-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.bizora-strip-grid > div {
    padding: 18px;
    border-radius: 8px;
}

.bizora-strip-grid span {
    display: block;
    color: #63d6c7;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.bizora-strip-grid strong {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, .9);
}

.feature-grid-wide {
    grid-template-columns: repeat(3, 1fr);
}

.process-grid {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

.section-head-stack {
    display: block;
    margin-bottom: 0;
}

.section-head-stack p {
    margin-top: 16px;
}

.process-list {
    display: grid;
    gap: 12px;
}

.process-list article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
    border-color: var(--line);
    background: #fff;
    border-radius: 8px;
}

.process-list span {
    color: #0f766e;
    font-weight: 900;
}

.process-list h3,
.process-list p {
    margin: 0;
}

.process-list p {
    color: var(--muted);
}

.order-shell {
    width: min(1080px, calc(100% - 40px));
    margin: 48px auto 80px;
}

.order-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: stretch;
    margin-bottom: 20px;
}

.order-hero h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1;
}

.order-hero p {
    max-width: 720px;
    color: #475569;
    font-size: 18px;
}

.trial-ticket {
    display: grid;
    align-content: center;
    padding: 26px;
    border-color: var(--line);
    background: #0b1220;
    color: #fff;
    border-radius: 8px;
}

.trial-ticket span {
    color: #63d6c7;
    font-weight: 800;
}

.trial-ticket strong {
    display: block;
    margin: 6px 0;
    font-size: 42px;
}

.trial-ticket small {
    color: rgba(255, 255, 255, .72);
}

.order-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.order-form textarea {
    min-height: 120px;
}

.order-summary {
    display: grid;
    gap: 12px;
}

.order-summary article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.order-summary span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #fff;
    background: #0f766e;
    border-radius: 8px;
    font-weight: 900;
}

.order-success {
    max-width: 760px;
}

.crm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.crm-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(230px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.crm-column {
    min-height: 420px;
    padding: 12px;
    border: 1px solid var(--line);
    background: #eef3f8;
    border-radius: 8px;
}

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

.crm-column-head h2 {
    margin: 0;
    font-size: 15px;
}

.crm-column-head span {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    color: #0f766e;
    background: #fff;
    border-radius: 8px;
    font-weight: 800;
}

.crm-deals {
    display: grid;
    gap: 10px;
}

.deal-card {
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.deal-card h3 {
    margin: 12px 0 4px;
    font-size: 16px;
}

.deal-card p,
.deal-next small,
.crm-empty {
    color: var(--muted);
}

.deal-card-top,
.deal-actions,
.stage-move {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
}

.deal-next {
    display: grid;
    gap: 2px;
    margin: 12px 0;
    padding: 10px;
    background: #f8fafc;
    border-radius: 8px;
}

.stage-move {
    margin-top: 10px;
}

.stage-move select {
    min-width: 0;
    flex: 1;
}

.crm-side {
    position: sticky;
    top: 92px;
}

.form-grid.compact {
    grid-template-columns: repeat(2, 1fr);
}

.danger-inline {
    margin-top: 12px;
}

.activity-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.activity-panel h3 {
    margin-top: 0;
}

.crm-activity-list p,
.table-note {
    margin: 6px 0;
    color: var(--muted);
}

.admin-section {
    margin-top: 18px;
}

.admin-inline-form {
    display: grid;
    gap: 8px;
    min-width: 220px;
}

.admin-inline-form textarea {
    min-height: 70px;
}

.support-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
    width: auto;
}

.support-chat-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 14px 8px 8px;
    color: #fff;
    background: #0f766e;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(15, 118, 110, .28);
    cursor: pointer;
}

.support-chat-toggle span {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #0f766e;
    background: #fff;
    border-radius: 999px;
    font-weight: 900;
}

.support-chat-panel {
    display: none;
    position: absolute;
    right: 0;
    bottom: 64px;
    width: min(380px, calc(100vw - 32px));
    max-height: min(680px, calc(100vh - 110px));
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, .22);
}

.support-chat.open .support-chat-panel {
    display: block;
}

.support-chat-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    color: #fff;
    background: #0b1220;
}

.support-chat-head small {
    display: block;
    color: rgba(255, 255, 255, .72);
}

.support-chat-head button {
    width: 30px;
    height: 30px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.support-chat-log {
    display: grid;
    gap: 8px;
    max-height: min(320px, calc(100vh - 330px));
    overflow-y: auto;
    padding: 14px;
    background: #f8fafc;
}

.support-message {
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
}

.support-message-ai {
    justify-self: start;
    background: #fff;
    border: 1px solid var(--line);
}

.support-message-user {
    justify-self: end;
    color: #fff;
    background: #2563eb;
}

.support-chat-form {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.support-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.support-chat-form textarea {
    min-height: 78px;
}

@media (max-width: 1100px) {
    .hero-grid,
    .dashboard-grid,
    .settings-grid,
    .process-grid,
    .order-grid,
    .crm-layout {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .feature-grid-wide,
    .steps,
    .stats-grid,
    .bizora-strip-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .crm-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: 58px;
    }

    .hero-grid,
    .pricing-grid,
    .package-grid,
    .order-hero {
        grid-template-columns: 1fr;
    }

    .bizora-hero {
        min-height: 760px;
    }

    .bizora-hero-shade {
        background:
            linear-gradient(180deg, rgba(6, 12, 22, .74) 0%, rgba(6, 12, 22, .92) 72%),
            linear-gradient(0deg, rgba(6, 12, 22, .88), rgba(6, 12, 22, .25));
    }

    .bizora-hero-content {
        padding-top: 140px;
    }

    .feature-grid-wide,
    .bizora-strip-grid,
    .form-grid.compact {
        grid-template-columns: 1fr;
    }

    .crm-board {
        grid-template-columns: repeat(6, minmax(260px, 1fr));
    }

    .section-head {
        display: block;
    }

    .section-head p {
        margin-top: 12px;
    }

    .app-shell {
        display: block;
    }

    .mobile-menu-btn {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 60;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 14px;
        border: 0;
        border-radius: 999px;
        color: #fff;
        background: var(--blue);
        box-shadow: 0 16px 38px rgba(37, 99, 235, .28);
        font-weight: 800;
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 50;
        width: min(310px, 88vw);
        transform: translateX(-102%);
        transition: transform .22s ease;
        box-shadow: var(--shadow);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        padding: 24px 16px 80px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .filters,
    .form-grid,
    .catalog-picker,
    .summary-strip {
        grid-template-columns: 1fr;
    }

    .public-hero {
        flex-direction: column;
        padding: 24px;
    }

    .public-content {
        padding: 24px;
    }

    .official-document-head,
    .official-meta,
    .official-parties,
    .official-summary,
    .official-payment,
    .official-signatures {
        grid-template-columns: 1fr;
    }

    .official-document-head,
    .official-meta,
    .official-parties,
    .official-items-section,
    .official-summary,
    .official-payment,
    .official-signatures,
    .document-actions {
        margin-right: 20px;
        margin-left: 20px;
    }

    .official-title {
        text-align: left;
    }

    .fakturo-document {
        padding: 18px;
    }

    .fakturo-document-top,
    .fakturo-title-card,
    .fakturo-footer-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .fakturo-logo-wrap {
        padding-left: 0;
    }

    .fakturo-amount-due {
        text-align: left;
    }

    .fakturo-amount-due strong {
        font-size: 42px;
    }

    .fakturo-title-card {
        padding: 22px;
        border-radius: 22px;
    }

    .fakturo-title-card h1 {
        font-size: 30px;
    }

    .fakturo-status-pill {
        min-width: 0;
        width: 100%;
    }

    .fakturo-parties,
    .fakturo-summary {
        grid-template-columns: 1fr;
    }

    .fakturo-party-card,
    .fakturo-payment-box {
        padding: 24px;
        border-radius: 22px;
    }

    .official-meta {
        border-top: 1px solid #d8dee8;
    }

    .official-meta div {
        border-right: 0;
        border-bottom: 1px solid #d8dee8;
    }

    .official-meta div:last-child {
        border-bottom: 0;
    }

    .summary-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .summary-strip div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .site-nav-inner {
        min-height: 66px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-copy {
        font-size: 17px;
    }

    .feature-grid,
    .feature-grid-wide,
    .bizora-strip-grid,
    .steps,
    .stats-grid,
    .preview-status {
        grid-template-columns: 1fr;
    }

    .bizora-hero {
        min-height: 720px;
    }

    .bizora-hero-content h1,
    .order-hero h1 {
        font-size: 40px;
    }

    .process-list article {
        grid-template-columns: 1fr;
    }

    .support-chat {
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }

    .support-chat-panel {
        right: 0;
        bottom: 62px;
        width: 100%;
    }

    .support-contact-row {
        grid-template-columns: 1fr;
    }

    .preview-status div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .preview-status div:last-child {
        border-bottom: 0;
    }

    .hero-actions,
    .form-actions,
    .actions {
        width: 100%;
    }

    .hero-actions .btn,
    .form-actions .btn {
        width: 100%;
    }

    .auth-card {
        padding: 22px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 12mm;
    }

    .public-header,
    .public-actions,
    .document-actions,
    .support-chat,
    .alert,
    .btn {
        display: none !important;
    }

    * {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body,
    .public-page {
        background: #fff !important;
        color: #111827 !important;
        font-size: 11px;
    }

    .public-layout {
        width: 100% !important;
        margin: 0 !important;
    }

    .official-document,
    .public-box {
        border: 0 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    .official-document-head,
    .official-meta,
    .official-parties,
    .official-items-section,
    .official-summary,
    .official-payment,
    .official-signatures {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    .official-document-head {
        padding-top: 0;
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .official-title h1 {
        font-size: 30px;
    }

    .official-parties,
    .official-payment,
    .official-signatures {
        grid-template-columns: repeat(2, 1fr);
    }

    .official-summary {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .official-document-head,
    .official-meta,
    .official-parties,
    .official-items-section,
    .official-summary,
    .official-payment,
    .official-signatures,
    .official-party,
    .official-payment > div,
    .official-totals,
    .official-items tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .official-items th,
    .official-items td {
        padding: 8px 7px;
    }

    .official-logo,
    .official-logo-mark {
        width: 52px;
        height: 52px;
    }

    .fakturo-document {
        padding: 0 !important;
        box-shadow: none !important;
    }

    .fakturo-top-line {
        height: 8px;
        margin-bottom: 28px;
    }

    .fakturo-document-top {
        min-height: 118px;
    }

    .fakturo-logo-wrap {
        padding-left: 34px;
    }

    .fakturo-amount-due strong {
        font-size: 38px;
    }

    .fakturo-amount-due span {
        margin-top: 10px;
        font-size: 16px;
    }

    .fakturo-title-card {
        min-height: 88px;
        margin-bottom: 24px;
        padding: 18px 30px;
        border-radius: 24px;
    }

    .fakturo-title-card h1 {
        margin-bottom: 10px;
        font-size: 28px;
    }

    .fakturo-title-card p,
    .fakturo-party-card p,
    .fakturo-payment-box p {
        font-size: 13px;
    }

    .fakturo-status-pill {
        min-width: 190px;
        padding: 12px 18px;
        font-size: 15px;
    }

    .fakturo-parties {
        gap: 18px;
        margin-bottom: 30px;
    }

    .fakturo-party-card {
        min-height: 176px;
        padding: 24px 28px;
        border-radius: 22px;
    }

    .fakturo-party-card h2 {
        font-size: 15px;
    }

    .fakturo-party-card strong {
        font-size: 20px;
    }

    .fakturo-items-section {
        margin-bottom: 34px;
    }

    .fakturo-items th,
    .fakturo-items td {
        padding: 13px 16px;
        font-size: 13px;
    }

    .fakturo-items th {
        font-size: 14px;
    }

    .fakturo-summary {
        grid-template-columns: minmax(0, 1fr) 330px;
        margin-bottom: 72px;
    }

    .fakturo-totals div {
        font-size: 15px;
    }

    .fakturo-final-total {
        font-size: 20px !important;
    }

    .fakturo-final-total strong {
        font-size: 26px;
    }

    .fakturo-payment-box {
        padding: 24px 30px;
        border-radius: 22px;
    }

    .fakturo-payment-box h2 {
        font-size: 20px;
    }

    .fakturo-document-footer p,
    .fakturo-payment-box small,
    .fakturo-footer-line {
        font-size: 11px;
    }

    .fakturo-document-top,
    .fakturo-title-card,
    .fakturo-parties,
    .fakturo-items-section,
    .fakturo-summary,
    .fakturo-payment-box,
    .fakturo-document-footer,
    .fakturo-items tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Final invoice sizing override: keep screen and print aligned to real A4. */
.invoice-document-page {
    background: #dfe7f0 !important;
}

.invoice-document-page .public-layout {
    width: min(210mm, calc(100% - 32px)) !important;
    margin: 0 auto 32px !important;
}

.invoice-document-page .fakturo-document {
    width: 210mm !important;
    max-width: 100% !important;
    min-height: 297mm !important;
    margin: 0 auto !important;
    padding: 14mm 15mm !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
    background: #fff !important;
}

.invoice-document-page .fakturo-top-line {
    height: 7px !important;
    margin-bottom: 20px !important;
}

.invoice-document-page .fakturo-document-top {
    min-height: 76px !important;
}

.invoice-document-page .fakturo-logo-wrap {
    min-width: 150px !important;
    padding-left: 0 !important;
}

.invoice-document-page .fakturo-amount-due strong {
    font-size: 34px !important;
}

.invoice-document-page .fakturo-amount-due span {
    margin-top: 7px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-title-card {
    min-height: 70px !important;
    margin-bottom: 18px !important;
    padding: 14px 20px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-title-card h1 {
    margin-bottom: 8px !important;
    font-size: 23px !important;
    letter-spacing: 0 !important;
}

.invoice-document-page .fakturo-title-card p {
    font-size: 12px !important;
}

.invoice-document-page .fakturo-status-pill {
    min-width: 150px !important;
    padding: 9px 13px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-status-pill span {
    width: 10px !important;
    height: 10px !important;
}

.invoice-document-page .fakturo-parties {
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.invoice-document-page .fakturo-party-card {
    min-height: 116px !important;
    padding: 16px 18px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-party-card h2 {
    margin-bottom: 9px !important;
    font-size: 12px !important;
}

.invoice-document-page .fakturo-party-card strong {
    margin-bottom: 8px !important;
    font-size: 16px !important;
}

.invoice-document-page .fakturo-party-card p,
.invoice-document-page .fakturo-items th,
.invoice-document-page .fakturo-items td,
.invoice-document-page .fakturo-totals div,
.invoice-document-page .fakturo-payment-box p {
    font-size: 12px !important;
}

.invoice-document-page .fakturo-items-section {
    margin-bottom: 22px !important;
}

.invoice-document-page .fakturo-items {
    border-radius: 14px !important;
}

.invoice-document-page .fakturo-items th,
.invoice-document-page .fakturo-items td {
    padding: 8px 10px !important;
}

.invoice-document-page .fakturo-summary {
    grid-template-columns: minmax(0, 1fr) 250px !important;
    gap: 24px !important;
    margin-bottom: 34px !important;
}

.invoice-document-page .fakturo-note {
    font-size: 11px !important;
}

.invoice-document-page .fakturo-final-total {
    margin-top: 8px !important;
    padding-top: 12px !important;
    font-size: 15px !important;
}

.invoice-document-page .fakturo-final-total strong {
    font-size: 20px !important;
}

.invoice-document-page .fakturo-payment-box {
    margin-bottom: 12px !important;
    padding: 15px 20px !important;
    border-radius: 16px !important;
}

.invoice-document-page .fakturo-payment-box h2 {
    margin-bottom: 10px !important;
    font-size: 16px !important;
}

.invoice-document-page .fakturo-payment-box small,
.invoice-document-page .fakturo-document-footer p,
.invoice-document-page .fakturo-footer-line {
    font-size: 10px !important;
}

.invoice-document-page .fakturo-document-footer h2 {
    margin: 14px 0 10px !important;
    font-size: 15px !important;
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    html,
    body,
    .public-page,
    .invoice-document-page {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .invoice-document-page .public-layout {
        width: 210mm !important;
        margin: 0 !important;
    }

    .invoice-document-page .fakturo-document {
        width: 210mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 12mm 13mm !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        page-break-after: auto;
    }

    .invoice-document-page .fakturo-summary {
        margin-bottom: 28px !important;
    }
}
/* Final landing polish at EOF: stable first viewport and popup-friendly spacing. */
.bizora-landing .site-nav {
    position: sticky;
    background: rgba(8, 13, 24, .92) !important;
}

.bizora-landing .bizora-hero {
    height: clamp(600px, 78vh, 760px) !important;
    min-height: 0 !important;
    align-items: center !important;
}

.bizora-landing .bizora-hero img {
    object-position: center right !important;
    filter: saturate(.96) contrast(1.02);
}

.bizora-landing .bizora-hero-shade {
    background:
        linear-gradient(90deg, rgba(7, 12, 23, .96) 0%, rgba(7, 12, 23, .78) 42%, rgba(7, 12, 23, .18) 78%),
        linear-gradient(0deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .08) 44%) !important;
}

.bizora-landing .bizora-hero-content {
    padding: 46px 0 52px !important;
}

.bizora-landing .bizora-hero-content h1 {
    max-width: 690px !important;
    font-size: clamp(38px, 5.8vw, 70px) !important;
}

.bizora-landing .bizora-hero-content p:not(.eyebrow) {
    max-width: 620px !important;
    font-size: 18px !important;
}

.bizora-landing .bizora-strip {
    padding-top: 18px !important;
}

@media (max-width: 860px) {
    .bizora-landing .bizora-hero {
        height: auto !important;
        min-height: 640px !important;
    }

    .bizora-landing .bizora-hero-content {
        padding: 110px 0 42px !important;
    }

    .bizora-landing .bizora-hero-shade {
        background:
            linear-gradient(180deg, rgba(7, 12, 23, .78) 0%, rgba(7, 12, 23, .95) 72%),
            linear-gradient(0deg, rgba(7, 12, 23, .90), rgba(7, 12, 23, .12)) !important;
    }
}
