:root {
    --erp-bg: #080d1b;
    --erp-card: rgba(255, 255, 255, .075);
    --erp-border: rgba(255, 255, 255, .22);
    --erp-border-soft: rgba(255, 255, 255, .12);
    --erp-text: #f8fafc;
    --erp-muted: rgba(248, 250, 252, .68);
    --erp-muted-soft: rgba(248, 250, 252, .48);
    --erp-blue: #4f6df5;
    --erp-purple: #8917ce;
    --erp-yellow: #f5b70a;
    --erp-pink: #f25070;
}

* { box-sizing: border-box; }

body.saas-public-modern {
    min-height: 100vh;
    background:
        radial-gradient(circle at 13% 5%, rgba(63, 87, 201, .42), transparent 25%),
        radial-gradient(circle at 95% 7%, rgba(142, 24, 98, .34), transparent 24%),
        radial-gradient(circle at 57% 48%, rgba(188, 135, 35, .13), transparent 20%),
        linear-gradient(180deg, #0a1021 0%, var(--erp-bg) 58%, #071026 100%);
    color: var(--erp-text);
    font-family: Inter, "Source Sans Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: -.015em;
}

.saas-public-modern a { color: inherit; }
.saas-public-modern a:hover { color: inherit; text-decoration: none; }

.landing-shell {
    width: min(1220px, calc(100% - 40px));
    margin: 0 auto;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    line-height: 1;
    font-weight: 800;
    font-size: 1.16rem;
}

.brand-logo-image {
    width: 154px;
    height: 52px;
    display: block;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: left center;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none;
    filter: drop-shadow(0 14px 24px rgba(79, 109, 245, .16));
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #5868f7, #8b16d5);
    box-shadow: 0 18px 45px rgba(79, 109, 245, .28);
    font-weight: 900;
}

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

.nav-links a:hover { color: #fff; }

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

.btn-erp {
    border: 1px solid var(--erp-border);
    border-radius: 999px;
    padding: 14px 27px;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-erp:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 38px rgba(15, 23, 42, .3);
}

.btn-gradient {
    color: #fff;
    border: 0;
    background: linear-gradient(100deg, #4d6ff7, #8b17d4);
    box-shadow: 0 16px 36px rgba(79, 109, 245, .28);
}

.btn-glass {
    color: #fff;
    background: rgba(255, 255, 255, .075);
    backdrop-filter: blur(16px);
}

.btn-white,
.saas-public-modern .btn-erp.btn-white {
    color: #101423;
    background: #fff;
    border-color: #fff;
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active,
.saas-public-modern .btn-erp.btn-white:hover,
.saas-public-modern .btn-erp.btn-white:focus,
.saas-public-modern .btn-erp.btn-white:active {
    color: #101423 !important;
    background: #fff !important;
    border-color: #fff !important;
}

.page-hero {
    padding: 58px 0 42px;
}

.page-eyebrow {
    color: var(--erp-yellow);
    text-transform: uppercase;
    letter-spacing: .34em;
    font-size: .75rem;
    font-weight: 900;
}

.page-title {
    margin: 15px 0 14px;
    font-size: clamp(2.55rem, 6vw, 4.7rem);
    line-height: 1.02;
    letter-spacing: -.065em;
    font-weight: 900;
}

.page-subtitle {
    max-width: 780px;
    color: var(--erp-muted);
    font-size: 1.18rem;
    line-height: 1.62;
}

.section {
    padding: 46px 0;
}

.section-title {
    margin: 0 0 28px;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.055em;
}

.glass-card,
.plan-card,
.help-card,
.legal-card,
.cta-panel {
    border: 1px solid var(--erp-border);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .045)),
        rgba(13, 19, 36, .82);
    box-shadow: 0 22px 52px rgba(0, 0, 0, .22);
    backdrop-filter: blur(16px);
    color: var(--erp-text);
}

.glass-card,
.help-card {
    padding: 24px;
}

.glass-card p,
.help-card p,
.plan-card p,
.legal-card p,
.legal-card li {
    color: var(--erp-muted);
    line-height: 1.66;
}

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

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

.plan-card {
    position: relative;
    min-height: 285px;
    padding: 24px;
    overflow: hidden;
}

.plan-card.highlighted {
    border-color: rgba(137, 23, 206, .72);
    box-shadow: 0 26px 70px rgba(137, 23, 206, .18);
}

.plan-card.highlighted::before {
    content: "Popular";
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(100deg, #4d6ff7, #8b17d4);
    font-size: .72rem;
    font-weight: 900;
}

.feature-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 20px;
    color: #dbeafe;
    background: rgba(79, 109, 245, .32);
    font-weight: 900;
}

.feature-icon.yellow { color: #ffe58a; background: rgba(245, 183, 10, .23); }
.feature-icon.pink { color: #ff9aaa; background: rgba(242, 80, 112, .24); }
.feature-icon.purple { color: #d8b4fe; background: rgba(137, 23, 206, .25); }

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

.price strong {
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.04em;
}

.price span,
.muted {
    color: var(--erp-muted);
}

.annual {
    min-height: 38px;
    color: #facc15;
    font-size: .85rem;
}

.list-soft {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

.list-soft li {
    color: var(--erp-muted);
    padding: 7px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.search-box-modern {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    padding: 16px 22px;
    color: #fff;
    background: rgba(255, 255, 255, .10);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}

.search-box-modern::placeholder { color: rgba(255, 255, 255, .50); }
.search-box-modern:focus {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(148, 163, 255, .8);
    box-shadow: 0 0 0 .2rem rgba(79, 109, 245, .20);
}

.modern-form label {
    color: rgba(248, 250, 252, .86);
    font-weight: 800;
    margin-bottom: .45rem;
}

.modern-form .form-control,
.modern-form .custom-select {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    background-color: rgba(255, 255, 255, .10);
}

.modern-form .form-control::placeholder {
    color: rgba(248, 250, 252, .40);
}

.modern-form .form-control:focus,
.modern-form .custom-select:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, .13);
    border-color: rgba(148, 163, 255, .82);
    box-shadow: 0 0 0 .2rem rgba(79, 109, 245, .20);
}

.modern-form select option,
.modern-form .custom-select option {
    color: #111827;
}

.modern-form .select2-container--bootstrap4 .select2-selection {
    min-height: 46px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    color: #fff;
    background-color: rgba(255, 255, 255, .10);
}

.modern-form .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    color: #fff;
    line-height: 44px;
}

.modern-form .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: rgba(248, 250, 252, .45);
}

.modern-form .select2-container--bootstrap4 .select2-dropdown,
.modern-form .select2-container--bootstrap4 .select2-results__option,
.modern-form .select2-dropdown,
.modern-form .select2-results__option {
    color: #111827;
    background-color: #fff;
}

.modern-form .select2-container--bootstrap4 .select2-search__field,
.modern-form .select2-search__field {
    color: #111827 !important;
    background-color: #fff !important;
}

.modern-form .select2-container--bootstrap4 .select2-results__option--highlighted,
.modern-form .select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.modern-form .select2-results__option--highlighted,
.modern-form .select2-results__option--highlighted[aria-selected] {
    color: #fff;
    background-color: #4f6df5;
}

.select2-container--bootstrap4 .select2-dropdown,
.select2-container--bootstrap4 .select2-results__options,
.select2-container--bootstrap4 .select2-results__option {
    color: #111827 !important;
    background-color: #fff !important;
}

.select2-container--bootstrap4 .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
    color: #111827 !important;
    background-color: #eef2ff !important;
}

.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--bootstrap4 .select2-results__option--highlighted[aria-selected],
.select2-container--bootstrap4 .select2-results__option--highlighted.select2-results__option[aria-selected="true"] {
    color: #fff !important;
    background-color: #4f6df5 !important;
}

.select2-container--bootstrap4 .select2-search__field {
    color: #111827 !important;
    background-color: #fff !important;
}

.modern-form .form-text,
.modern-form .text-muted,
.modern-form .custom-control-label {
    color: var(--erp-muted) !important;
}

.checkout-choice {
    height: 100%;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    padding: 16px;
    cursor: pointer;
    background: rgba(255, 255, 255, .055);
    transition: .18s ease;
}

.checkout-choice.active {
    border-color: rgba(137, 23, 206, .78);
    background: rgba(137, 23, 206, .17);
    box-shadow: 0 0 0 2px rgba(137, 23, 206, .14);
}

.summary-card {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 24px;
    padding: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(137, 23, 206, .30), transparent 42%),
        linear-gradient(135deg, rgba(79, 109, 245, .22), rgba(255, 255, 255, .055));
}

.table-modern {
    color: #fff;
}

.table-modern thead th {
    border-top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: var(--erp-muted);
    font-weight: 800;
}

.table-modern td {
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: rgba(248, 250, 252, .88);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: .86rem;
    font-weight: 900;
}

.status-open { color: #93c5fd; background: rgba(37, 99, 235, .22); }
.status-overdue { color: #fda4af; background: rgba(244, 63, 94, .22); }
.status-paid { color: #86efac; background: rgba(22, 163, 74, .20); }
.status-canceled { color: #cbd5e1; background: rgba(148, 163, 184, .18); }

.article-link {
    color: #f8fafc;
}

.article-link:hover {
    color: #94a3ff;
}

.list-group-flush .list-group-item {
    color: var(--erp-muted);
    background: transparent;
    border-color: rgba(255, 255, 255, .08);
}

.legal-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
}

.legal-card {
    padding: 28px;
}

.legal-card h2 {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 900;
    margin-top: 1.8rem;
}

.legal-card h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 1.25rem;
}

.article-body h2 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    margin-top: 2rem;
}

.article-body li {
    color: var(--erp-muted);
    margin-bottom: .65rem;
    line-height: 1.65;
}

.article-body hr {
    border-color: rgba(255, 255, 255, .10);
}

.article-body img {
    border: 1px solid rgba(255, 255, 255, .12);
}

.legal-summary {
    border: 1px solid rgba(79, 109, 245, .32);
    border-left: 4px solid #6578ff;
    background: rgba(79, 109, 245, .13);
    border-radius: 16px;
    color: #fff;
}

.anchor-list {
    position: sticky;
    top: 16px;
}

.anchor-list a {
    display: block;
    padding: 8px 0;
    color: var(--erp-muted);
}

.anchor-list a:hover { color: #fff; }

.cta-panel {
    margin: 50px 0 26px;
    padding: 45px 30px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 100%, rgba(137, 23, 206, .30), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .045));
}

.landing-footer {
    padding: 32px 0 42px;
    color: var(--erp-muted);
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.landing-footer .landing-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-links a:hover { color: #fff; }

@media (max-width: 991.98px) {
    .nav-links { display: none; }
    .card-grid,
    .plans-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legal-shell { grid-template-columns: 1fr; }
    .anchor-list { position: static; }
}

@media (max-width: 767.98px) {
    .landing-shell { width: min(100% - 28px, 1220px); }
    .landing-nav { align-items: flex-start; flex-direction: column; }
    .nav-actions { width: 100%; justify-content: space-between; }
    .page-title { font-size: clamp(2.55rem, 15vw, 4rem); }
    .card-grid,
    .plans-grid { grid-template-columns: 1fr; }
    .btn-erp { display: inline-block; text-align: center; }
}
