body {
    overflow-x: hidden;
}

body {
    color: var(--oriun-text-default);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--oriun-text-heading);
}

a,
.btn-link {
    color: var(--oriun-color-brand);
}

.text-primary {
    color: var(--oriun-color-brand) !important;
}

a:hover,
.btn-link:hover {
    color: var(--oriun-color-accent);
}

.text-muted {
    color: var(--oriun-text-muted) !important;
}

.text-dark {
    color: var(--oriun-text-heading) !important;
}

.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

.dl-horizontal dt {
    white-space: normal;
}

input,
select,
textarea {
    max-width: 100%;
}

.oriun-surface-brand :is(h1, h2, h3, h4, h5, h6, .text-white),
.oriun-surface-dark :is(h1, h2, h3, h4, h5, h6, .text-white),
.bg-primary.text-white :is(h1, h2, h3, h4, h5, h6, .text-white),
.bg-dark.text-white :is(h1, h2, h3, h4, h5, h6, .text-white),
.bg-gradient.text-white :is(h1, h2, h3, h4, h5, h6, .text-white),
.footer-section :is(h1, h2, h3, h4, h5, h6, .text-white) {
    color: var(--oriun-text-on-dark) !important;
}

.oriun-surface-brand :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label, .copyright-text p, .footer-nav-list a, .footer-single-col a, .knowledge-article-meta),
.oriun-surface-dark :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label, .knowledge-article-meta),
.bg-primary.text-white :is(p, li, small, label, .small, .text-muted, .section-heading p),
.bg-dark.text-white :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label, .knowledge-article-meta),
.bg-gradient.text-white :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label),
.footer-section :is(p, li, small, label, .small, .text-muted, .copyright-text p, .footer-nav-list a, .footer-single-col a) {
    color: var(--oriun-text-muted-on-dark) !important;
}

.oriun-surface-brand :is(a:not(.btn):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none),
.oriun-surface-dark :is(a:not(.btn):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none),
.bg-primary.text-white :is(a:not(.btn):not(.badge):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none),
.bg-dark.text-white :is(a:not(.btn):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none),
.bg-gradient.text-white :is(a:not(.btn):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none),
.footer-section :is(a:not(.btn):not(.text-warning):not(.text-white), .nav-link, .text-decoration-none) {
    color: var(--oriun-text-on-dark);
}

.page-header.bg-dark,
.page-header.bg-gradient {
    background-color: var(--oriun-surface-dark) !important;
}

.oriun-surface-light :is(h1, h2, h3, h4, h5, h6, .text-dark),
.oriun-surface-soft :is(h1, h2, h3, h4, h5, h6, .text-dark) {
    color: var(--oriun-text-heading) !important;
}

.oriun-surface-light :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label),
.oriun-surface-soft :is(p, li, small, label, .small, .text-muted, .section-heading p, .form-check-label) {
    color: var(--oriun-text-muted) !important;
}

.oriun-surface-light :is(a:not(.btn), .text-decoration-none),
.oriun-surface-soft :is(a:not(.btn), .text-decoration-none) {
    color: var(--oriun-color-brand);
}

.oriun-surface-brand .form-control,
.oriun-surface-brand .form-select,
.oriun-surface-dark .form-control,
.oriun-surface-dark .form-select,
.bg-dark.text-white .form-control,
.bg-dark.text-white .form-select,
.bg-gradient.text-white .form-control,
.bg-gradient.text-white .form-select {
    color: var(--oriun-text-default);
    background-color: var(--oriun-surface-light);
}

.oriun-navbar-brand img {
    width: 150px;
    height: 50px;
}

.oriun-navbar-cta {
    color: #083a45 !important;
}

.oriun-footer-logo {
    width: 170px;
    height: auto;
}

.oriun-auth-logo {
    width: 160px;
    height: 50px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.footer-social-link:hover,
.footer-social-link:focus {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 184, 28, 0.4);
}

.footer-social-link i {
    color: var(--oriun-text-on-dark);
}

.oriun-empty-state-card {
    border-style: dashed;
}

.register-form .form-check {
    align-items: flex-start;
    gap: 0.5rem;
}

.register-form .form-check-label {
    flex: 1;
}

.register-form .form-check-label a {
    color: var(--oriun-color-brand) !important;
    font-weight: 600;
}

.auth-helper-text {
    color: var(--oriun-text-muted) !important;
}

.auth-helper-link {
    color: var(--oriun-color-brand) !important;
    font-weight: 600;
}

.auth-helper-link:hover,
.auth-helper-link:focus {
    color: var(--oriun-color-accent) !important;
}

.hero-metrics {
    gap: 1.5rem !important;
}

.oriun-home-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 168px;
    padding-bottom: 96px;
}

@supports (min-height: 100dvh) {
    .oriun-home-hero {
        min-height: 100dvh;
    }
}

.oriun-home-hero > .container {
    width: 100%;
}

.oriun-home-hero .hero-content-wrap {
    max-width: 41rem;
}

@media (min-width: 1400px) {
    .oriun-home-hero {
        padding-top: 184px;
        padding-bottom: 116px;
    }
}

@media (max-width: 991.98px) {
    .oriun-home-hero {
        min-height: auto;
        padding-top: 150px;
        padding-bottom: 88px;
    }
}

.hero-metric-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--oriun-text-on-dark);
    backdrop-filter: blur(6px);
}

.hero-metric-card h3,
.hero-metric-card p {
    color: var(--oriun-text-on-dark);
}

.hero-metric-card .text-primary {
    color: var(--oriun-color-warning) !important;
}

.benefit-card {
    background: var(--oriun-surface-soft);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-elevated {
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--oriun-shadow-soft);
}

.section-heading p {
    max-width: 640px;
}

.text-center .section-heading p {
    margin-left: auto;
    margin-right: auto;
}

.feature-section.two-bg-dark-light .section-heading h2,
.feature-section.two-bg-dark-light .section-heading p {
    color: var(--oriun-text-on-dark) !important;
}

.feature-section.two-bg-dark-light .section-heading p,
.feature-section.two-bg-dark-light .d-flex p {
    color: var(--oriun-text-muted-on-dark) !important;
}

.feature-section.two-bg-dark-light .d-flex h5 {
    color: var(--oriun-text-on-dark) !important;
}

/* ===== Pricing page ===== */
.pricing-section.bg-dark .section-heading h2,
.pricing-section.bg-dark .section-heading p {
    color: var(--oriun-text-on-dark) !important;
}

.pricing-section.bg-dark .section-heading p {
    opacity: 1;
}

.pricing-hero-entry {
    font-size: 0.98rem;
    line-height: 1.55;
}

.pricing-hero-list li {
    color: var(--oriun-text-muted);
}

.pricing-trust-bar {
    background: #fff;
}

.pricing-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.35rem 0.15rem;
}

.pricing-trust-item i {
    margin-top: 0.2rem;
    font-size: 1.15rem;
}

.pricing-card--featured {
    background: var(--oriun-surface-dark) !important;
}

.pricing-card--featured :is(h1, h2, h3, h4, h5, h6, p, li, small, span, .display-6, .text-white-50, .text-muted, .fw-semibold) {
    color: var(--oriun-text-on-dark) !important;
}

.pricing-card--featured .badge.bg-white {
    color: var(--oriun-color-brand) !important;
}

.pricing-card--featured .btn.btn-light {
    color: #08263a;
}

.pricing-plan-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pricing-plan-card:hover {
    transform: translateY(-3px);
}

.pricing-price-block .display-6 {
    letter-spacing: -0.03em;
}

.pricing-feature-list li {
    line-height: 1.45;
}

.pricing-limits {
    border-top: 1px solid rgba(8, 38, 58, 0.08);
    padding-top: 0.85rem;
}

.pricing-card--featured .pricing-limits {
    border-top-color: rgba(255, 255, 255, 0.14);
}

.pricing-enterprise-card {
    background: linear-gradient(135deg, #fff 0%, #faf7fb 100%);
    border-color: rgba(95, 0, 73, 0.12) !important;
}

.pricing-enterprise-card .badge.bg-primary {
    color: #ffffff !important;
}

.pricing-intro-section {
    padding-top: 2.75rem !important;
    padding-bottom: 1rem !important;
    background: #fff;
}

.pricing-intro-shell {
    position: relative;
    z-index: 1;
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(8, 38, 58, 0.08);
    background: transparent;
    box-shadow: none;
}

.pricing-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.pricing-intro-copy h2 {
    max-width: 22ch;
    margin-bottom: 0.6rem;
    font-size: clamp(1.75rem, 2.4vw, 2.35rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.pricing-intro-side {
    position: relative;
    z-index: 1;
}

.pricing-toggle-card {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    min-width: min(100%, 360px);
    margin-left: auto;
    padding: 1rem 1.15rem !important;
    border: 1px solid rgba(95, 0, 73, 0.1);
    border-radius: 18px !important;
    background: #fcfbfd !important;
    box-shadow: 0 10px 28px rgba(8, 38, 58, 0.06) !important;
}

.pricing-toggle-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.pricing-toggle-kicker {
    color: #6d7f97;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pricing-toggle-card [data-billing-label] {
    color: var(--oriun-text-heading) !important;
    font-size: 1.05rem;
    font-weight: 700;
}

.pricing-toggle-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(95, 0, 73, 0.05);
}

.pricing-toggle-card .form-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.pricing-toggle-card .form-check-input {
    width: 2.75rem;
    height: 1.45rem;
    margin-top: 0;
    margin-left: 0 !important;
    border-color: rgba(95, 0, 73, 0.3);
    background-color: rgba(95, 0, 73, 0.08);
    box-shadow: none;
}

.pricing-toggle-card .form-check-input:checked {
    border-color: var(--oriun-color-brand);
    background-color: rgba(95, 0, 73, 0.95);
}

.pricing-toggle-card .form-check-input:focus {
    border-color: rgba(95, 0, 73, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(95, 0, 73, 0.12);
}

.pricing-compare-table-wrap {
    overflow: auto;
    border: 1px solid rgba(8, 38, 58, 0.08);
}

.pricing-compare-table {
    min-width: 720px;
}

.pricing-compare-table thead th {
    background: #f7f4f8;
    border-bottom: 1px solid rgba(8, 38, 58, 0.1);
    padding: 1rem 0.85rem;
    vertical-align: middle;
    white-space: nowrap;
}

.pricing-compare-table tbody th,
.pricing-compare-table tbody td {
    padding: 0.8rem 0.85rem;
    border-color: rgba(8, 38, 58, 0.06);
}

.pricing-compare-feature-col {
    min-width: 220px;
    font-weight: 600;
    color: var(--oriun-text-heading);
}

.pricing-compare-category td {
    background: rgba(95, 0, 73, 0.04);
    color: var(--oriun-color-brand);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
}

.pricing-compare-featured {
    background: rgba(95, 0, 73, 0.03);
}

.pricing-quote {
    margin: 0;
}

.pricing-quote p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--oriun-text-default);
}

@media (max-width: 991.98px) {
    .pricing-intro-copy h2 {
        max-width: none;
        font-size: clamp(1.7rem, 5vw, 2.15rem);
    }

    .pricing-toggle-card {
        min-width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 575.98px) {
    .pricing-toggle-control {
        justify-content: center;
    }

    .pricing-plan-card:hover {
        transform: none;
    }
}

.feature-section {
    background: linear-gradient(120deg, #5f0049 0%, #5f0049 50%, #eef2f7 50%, #eef2f7 100%);
}

.feature-panel {
    background: rgba(95, 0, 73, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-panel h2 {
    color: var(--oriun-text-on-dark);
}

.visual-card {
    max-width: 920px;
    transform: translateX(6%);
}

.visual-glow {
    position: absolute;
    inset: 8% -8% -8% 0;
    background: radial-gradient(circle at 30% 20%, rgba(95, 0, 73, 0.25), transparent 45%),
                radial-gradient(circle at 80% 10%, rgba(255, 177, 22, 0.18), transparent 50%);
    filter: blur(18px);
    z-index: 0;
}

.modulos-visual {
    position: relative;
    min-height: 320px;
    padding: 30px 0;
}

.modulos-visual .modulos-shape {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.25;
}

.modulos-visual .modulos-main {
    position: relative;
    z-index: 1;
    margin-top: -20px;
    width: 100%;
    height: auto;
}

.knowledge-hero {
    background: var(--oriun-gradient-brand);
    padding-top: 180px;
    padding-bottom: 140px;
}

.knowledge-search-shell {
    max-width: 640px;
}

.knowledge-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff5de;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.knowledge-hero__lead {
    color: rgba(255, 255, 255, 0.86) !important;
}

.knowledge-hero__stats {
    color: var(--oriun-text-muted-on-dark) !important;
    font-size: 1.08rem;
    font-weight: 600;
}

.knowledge-search {
    overflow: hidden;
    border-radius: 18px;
}

.knowledge-search .form-control {
    min-height: 60px;
    padding-left: 1.35rem;
    font-size: 1.08rem;
    color: var(--oriun-text-default);
}

.knowledge-search .form-control::placeholder {
    color: var(--oriun-text-muted);
}

.knowledge-search .btn {
    min-width: 144px;
    font-weight: 700;
}

.knowledge-results-search-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(95, 0, 73, 0.08);
    background:
        radial-gradient(circle at top left, rgba(95, 0, 73, 0.05), transparent 24%),
        radial-gradient(circle at top right, rgba(255, 183, 27, 0.08), transparent 20%),
        linear-gradient(180deg, #fcf7fb 0%, #fbf6fa 58%, #ffffff 100%);
    box-shadow: 0 26px 60px rgba(44, 17, 54, 0.08);
}

.knowledge-results-shell {
    position: relative;
    background: #ffffff;
}

.knowledge-results-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(248, 248, 250, 0.92) 0%, rgba(255, 255, 255, 0.98) 18%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.knowledge-results-shell .container {
    position: relative;
    z-index: 1;
}

.knowledge-results-search-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(95, 0, 73, 0.04) 0%, rgba(95, 0, 73, 0) 72%);
    transform: translate(-32%, -28%);
    pointer-events: none;
}

.knowledge-results-search-card::after {
    content: "";
    position: absolute;
    top: -72px;
    right: -68px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 183, 27, 0.12) 0%, rgba(255, 183, 27, 0.01) 68%, transparent 72%);
    pointer-events: none;
}

.knowledge-results-search-card .card-body {
    position: relative;
    z-index: 1;
}

.knowledge-results-search-card__header {
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(95, 0, 73, 0.08);
}

.knowledge-results-search-card__intro {
    max-width: 620px;
}

.knowledge-results-search-card__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    margin-bottom: 0.9rem;
    border-radius: 999px;
    background: rgba(95, 0, 73, 0.1);
    color: var(--oriun-color-brand);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.knowledge-results-search-card__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--oriun-text-heading);
    letter-spacing: 0.01em;
}

.knowledge-results-search-card__input,
.knowledge-results-search-card__select {
    min-height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(95, 0, 73, 0.12);
    background-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    font-size: 1.02rem;
}

.knowledge-results-search-card__select {
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' fill='none' stroke='%2372005f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 14px 9px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.knowledge-results-search-card__select::-ms-expand {
    display: none;
}

.knowledge-results-search-card__input:focus,
.knowledge-results-search-card__select:focus {
    border-color: rgba(95, 0, 73, 0.32);
    box-shadow: 0 0 0 0.2rem rgba(95, 0, 73, 0.12);
}

.knowledge-results-search-card__actions .btn {
    min-width: 138px;
}

.knowledge-results-search-card__stats {
    color: var(--oriun-text-muted) !important;
    padding-top: 1rem;
    border-top: 1px solid rgba(95, 0, 73, 0.08);
}

.knowledge-card,
.knowledge-context-card,
.knowledge-article-card,
.knowledge-sidebar-card,
.knowledge-article-shell .card {
    border-radius: 24px;
}

.knowledge-card {
    border: 1px solid var(--oriun-border-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.knowledge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(8, 15, 52, 0.12);
}

.knowledge-card__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(95, 0, 73, 0.14), rgba(51, 191, 197, 0.18));
    color: var(--oriun-color-brand);
    box-shadow: inset 0 0 0 1px rgba(95, 0, 73, 0.08);
}

.knowledge-card__icon i {
    font-size: 1.3rem;
}

.knowledge-card__count {
    background: rgba(51, 191, 197, 0.16);
    color: #00506c;
}

.knowledge-subcategory-link {
    padding: 0.6rem 0;
    border-top: 1px solid rgba(95, 0, 73, 0.06);
}

.knowledge-subcategory-link:first-child {
    border-top: 0;
}

.knowledge-subcategory-link:hover span:first-child,
.knowledge-article-card__meta a,
.knowledge-article-shell .breadcrumb a {
    color: var(--oriun-color-brand);
}

.knowledge-section a:not(.btn),
.knowledge-article-shell a:not(.btn),
.knowledge-article-card a:not(.btn),
.knowledge-article-card__meta a,
.knowledge-card a:not(.btn) {
    color: var(--oriun-color-brand);
}

.knowledge-article-card__meta a:hover,
.knowledge-article-shell .breadcrumb a:hover,
.knowledge-section a:hover,
.knowledge-article-shell a:hover,
.knowledge-card a:hover {
    color: var(--oriun-color-accent);
}

.knowledge-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.55rem 0.95rem;
    border-radius: 14px;
    border: 1px solid var(--oriun-color-brand) !important;
    background-color: var(--oriun-color-brand) !important;
    background-image: none !important;
    color: var(--oriun-text-on-dark) !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 14px 24px rgba(95, 0, 73, 0.18);
}

.knowledge-card__action:hover,
.knowledge-card__action:focus {
    border-color: var(--oriun-color-brand-strong) !important;
    background-color: var(--oriun-color-brand-strong) !important;
    color: var(--oriun-text-on-dark) !important;
}

.knowledge-breadcrumb-bar .breadcrumb,
.knowledge-article-shell .breadcrumb,
.knowledge-section .breadcrumb {
    --bs-breadcrumb-divider: "/";
}

.knowledge-breadcrumb-bar {
    background: linear-gradient(180deg, #fbf6fa 0%, #f4eef6 100%);
}

.knowledge-context-card {
    background: var(--oriun-gradient-brand);
    color: var(--oriun-text-on-dark);
    box-shadow: 0 24px 48px rgba(34, 12, 45, 0.16);
}

.knowledge-context-card h2,
.knowledge-context-card p,
.knowledge-context-card .text-muted {
    color: var(--oriun-text-on-dark) !important;
}

.knowledge-context-card__badge {
    background: rgba(255, 255, 255, 0.14);
    color: #fff5de;
}

.knowledge-filter-badge {
    background: rgba(255, 255, 255, 0.16);
    color: var(--oriun-text-on-dark);
}

.knowledge-article-card {
    background: linear-gradient(180deg, var(--oriun-surface-light) 0%, var(--oriun-surface-soft-alt) 100%);
    border: 1px solid var(--oriun-border-soft);
    border-left: 4px solid var(--oriun-color-brand);
    box-shadow: 0 18px 34px rgba(18, 24, 40, 0.06);
}

.knowledge-article-card__meta {
    color: var(--oriun-text-muted) !important;
}

.knowledge-article-card__meta a {
    font-weight: 600;
}

.knowledge-article-card__title {
    color: var(--oriun-text-heading) !important;
}

.knowledge-article-card__footer,
.knowledge-article-meta {
    color: var(--oriun-text-muted) !important;
}

.knowledge-article-card__footer .far.fa-user {
    color: var(--oriun-color-brand);
}

.knowledge-article-card__footer .far.fa-check-circle {
    color: var(--oriun-color-accent);
}

.knowledge-sidebar-card {
    background: linear-gradient(180deg, var(--oriun-surface-light) 0%, #f9f3f8 100%);
    border: 1px solid var(--oriun-border-soft);
    box-shadow: 0 18px 34px rgba(18, 24, 40, 0.05);
}

.knowledge-sidebar-card--dark {
    background: linear-gradient(180deg, var(--oriun-surface-dark-alt) 0%, #5a0045 100%);
    border: 0;
    color: var(--oriun-text-on-dark);
}

.knowledge-sidebar-card--dark :is(h3, .fw-semibold) {
    color: var(--oriun-text-on-dark) !important;
}

.knowledge-sidebar-card--dark small,
.knowledge-sidebar-card--dark p {
    color: var(--oriun-text-muted-on-dark) !important;
}

.knowledge-article-shell {
    background:
        radial-gradient(circle at top right, rgba(51, 191, 197, 0.08), transparent 30%),
        linear-gradient(180deg, #faf5f9 0%, #f7f8fc 22%, #ffffff 100%);
}

.knowledge-article-main-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffafc 100%);
    border: 1px solid rgba(95, 0, 73, 0.06);
    box-shadow: 0 24px 50px rgba(8, 15, 52, 0.08);
}

.knowledge-article-hero {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: var(--oriun-gradient-brand);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.knowledge-article-hero__meta,
.knowledge-article-hero__meta span,
.knowledge-article-hero__meta i {
    color: var(--oriun-text-muted-on-dark) !important;
}

.knowledge-article-body {
    padding-inline: 0.25rem;
}

.knowledge-article-body > *:first-child {
    margin-top: 0;
}

.knowledge-article-body h2,
.knowledge-article-body h3 {
    margin-top: 2.25rem;
}

.knowledge-article-body p,
.knowledge-article-body li {
    color: var(--oriun-text-default);
}

.knowledge-topic-badge {
    color: var(--oriun-color-brand);
}

.knowledge-topic-badge--fiscal {
    background: rgba(95, 0, 73, 0.1);
}

.knowledge-topic-badge--pos {
    background: rgba(51, 191, 197, 0.14);
    color: #00506c;
}

.knowledge-article-shell .article-content h2,
.knowledge-article-shell .article-content h3,
.knowledge-article-shell .article-content a {
    color: var(--oriun-color-brand);
}

.knowledge-article-shell .article-content a:hover {
    color: var(--oriun-color-accent);
}

.knowledge-feedback-card {
    background: var(--oriun-surface-soft);
}

.knowledge-share-actions .btn {
    border-radius: 999px;
}

.knowledge-btn-outline,
.knowledge-btn-outline-secondary {
    border-width: 1px;
    border-style: solid;
    font-weight: 600;
}

.knowledge-btn-outline {
    border-color: var(--oriun-color-brand);
    background: var(--oriun-color-brand);
    color: var(--oriun-text-on-dark) !important;
}

.knowledge-btn-outline:hover,
.knowledge-btn-outline:focus {
    border-color: var(--oriun-color-brand-strong);
    background: var(--oriun-color-brand-strong);
    color: var(--oriun-text-on-dark) !important;
}

.knowledge-btn-outline-secondary {
    border-color: var(--oriun-color-accent);
    background: var(--oriun-color-accent);
    color: #083a45 !important;
}

.knowledge-btn-outline-secondary:hover,
.knowledge-btn-outline-secondary:focus {
    border-color: var(--oriun-color-accent-strong);
    background: var(--oriun-color-accent-strong);
    color: #062e36 !important;
}

.knowledge-section .pagination .page-link {
    color: var(--oriun-color-brand);
    border-color: rgba(95, 0, 73, 0.12);
}

.knowledge-section .pagination .page-item.active .page-link {
    background: var(--oriun-color-brand);
    border-color: var(--oriun-color-brand);
    color: var(--oriun-text-on-dark);
}

.knowledge-section .pagination .page-link:hover {
    color: var(--oriun-color-accent);
}

/* Final button guardrails to override lingering vendor hover states */
.btn,
.btn:hover,
.btn:focus,
.btn:active,
.btn.active,
.btn.show {
    background-image: none !important;
}

.btn-primary,
.btn-primary.disabled,
.btn-primary:disabled {
    --bs-btn-bg: var(--oriun-color-brand) !important;
    --bs-btn-border-color: var(--oriun-color-brand) !important;
    --bs-btn-hover-bg: var(--oriun-color-brand-strong) !important;
    --bs-btn-hover-border-color: var(--oriun-color-brand-strong) !important;
    --bs-btn-active-bg: var(--oriun-color-brand-strong) !important;
    --bs-btn-active-border-color: var(--oriun-color-brand-strong) !important;
}

.btn-warning,
.btn-warning.disabled,
.btn-warning:disabled {
    --bs-btn-bg: var(--oriun-color-warning) !important;
    --bs-btn-border-color: var(--oriun-color-warning) !important;
    --bs-btn-hover-bg: var(--oriun-color-warning-strong) !important;
    --bs-btn-hover-border-color: var(--oriun-color-warning-strong) !important;
    --bs-btn-active-bg: var(--oriun-color-warning-strong) !important;
    --bs-btn-active-border-color: var(--oriun-color-warning-strong) !important;
}

.btn-outline-primary,
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    --bs-btn-color: var(--oriun-color-brand) !important;
    --bs-btn-border-color: var(--oriun-color-brand) !important;
    --bs-btn-hover-color: var(--oriun-text-on-dark) !important;
    --bs-btn-hover-bg: var(--oriun-color-brand) !important;
    --bs-btn-hover-border-color: var(--oriun-color-brand) !important;
    --bs-btn-active-bg: var(--oriun-color-brand-strong) !important;
    --bs-btn-active-border-color: var(--oriun-color-brand-strong) !important;
}

.btn-light,
.btn-light.disabled,
.btn-light:disabled {
    --bs-btn-color: var(--oriun-color-brand) !important;
    --bs-btn-bg: var(--oriun-surface-light) !important;
    --bs-btn-border-color: var(--oriun-surface-light) !important;
    --bs-btn-hover-color: var(--oriun-color-brand-strong) !important;
    --bs-btn-hover-bg: #f3eaf1 !important;
    --bs-btn-hover-border-color: #f3eaf1 !important;
    --bs-btn-active-bg: #f3eaf1 !important;
    --bs-btn-active-border-color: #f3eaf1 !important;
}

.auth-helper-text,
.auth-helper-link {
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 992px) {
    .feature-section {
        background: linear-gradient(180deg, #5f0049 0%, #5f0049 48%, #eef2f7 48%, #eef2f7 100%);
    }

    .visual-card {
        max-width: 100%;
        transform: none;
    }

    .knowledge-results-search-card__header {
        padding-bottom: 1rem;
    }
}

@media (max-width: 767.98px) {
    .knowledge-hero {
        padding-top: 140px;
        padding-bottom: 100px;
    }

    .knowledge-search {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: transparent;
        box-shadow: none !important;
    }

    .knowledge-search .form-control {
        min-height: 60px;
        width: 100%;
        flex: 1 1 100%;
        border-radius: 16px 16px 0 0 !important;
    }

    .knowledge-search .btn {
        width: 100%;
        min-width: 0;
        border-radius: 0 0 16px 16px !important;
    }

    .knowledge-results-shell {
        padding-top: 3.5rem;
    }

    .knowledge-results-search-card::after {
        width: 160px;
        height: 160px;
        top: -54px;
        right: -48px;
    }

    .knowledge-results-search-card__stats {
        gap: 0.75rem !important;
        font-size: 0.98rem;
    }
}

.oriun-login-page {
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    background: #560040;
    color: #ffffff;
    overflow-x: hidden;
}

.oriun-login-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(420px, 0.92fr) minmax(560px, 1.08fr);
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    background:
        linear-gradient(168deg, rgba(25, 0, 20, 0.52) 0%, rgba(25, 0, 20, 0.08) 46%, rgba(22, 0, 18, 0.36) 100%),
        linear-gradient(135deg, #410033 0%, #760054 43%, #4b0038 100%);
}

.oriun-login-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 16% 52%, rgba(255, 255, 255, 0.06) 0 34%, transparent 34.4%),
        linear-gradient(172deg, transparent 0 43%, rgba(29, 0, 31, 0.32) 43.2% 63%, transparent 63.2%);
    opacity: 0.8;
    pointer-events: none;
}

.oriun-login-shell::after {
    content: "";
    position: absolute;
    left: -4vw;
    right: -3vw;
    bottom: -4vh;
    height: 34vh;
    background:
        repeating-radial-gradient(ellipse at 8% 92%, rgba(255, 92, 190, 0.22) 0 1px, transparent 1px 8px),
        linear-gradient(12deg, transparent 0 26%, rgba(255, 61, 178, 0.45) 27%, rgba(255, 61, 178, 0.08) 31%, transparent 38%),
        linear-gradient(-9deg, transparent 0 34%, rgba(255, 130, 213, 0.32) 35%, rgba(255, 130, 213, 0.08) 42%, transparent 52%);
    filter: blur(0.2px);
    pointer-events: none;
}

.oriun-login-copy,
.oriun-login-panel {
    position: relative;
    z-index: 1;
}

.oriun-login-copy {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: clamp(48px, 7vw, 108px) clamp(32px, 5vw, 78px);
}

.oriun-login-copy__inner {
    width: min(100%, 520px);
    min-height: min(680px, calc(100vh - 96px));
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.oriun-login-copy__brand {
    display: inline-flex;
    width: 184px;
    margin-bottom: 34px;
}

.oriun-login-copy__brand img {
    width: 100%;
    height: auto;
}

.oriun-login-copy h1 {
    max-width: 14.5ch;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(2.05rem, 2.5vw, 3rem);
    font-weight: 500;
    line-height: 1.14;
    letter-spacing: 0;
}

.oriun-login-copy__lead {
    max-width: 390px;
    margin: 0 0 34px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 1.06rem;
    line-height: 1.65;
}

.oriun-login-benefits {
    display: grid;
    gap: 18px;
    margin-bottom: auto;
}

.oriun-login-benefit {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    max-width: 380px;
}

.oriun-login-benefit span {
    width: 70px;
    height: 70px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(35, 0, 33, 0.24);
    color: #ffffff;
    font-size: 1.45rem;
}

.oriun-login-benefit strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
}

.oriun-login-benefit p {
    margin: 0;
    color: rgba(255, 255, 255, 0.58) !important;
    font-size: 0.95rem;
    line-height: 1.45;
}

.oriun-login-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 72px 0 0;
    color: rgba(255, 255, 255, 0.76) !important;
    font-size: 0.98rem;
}

.oriun-login-trust i {
    color: #ffffff;
}

.oriun-login-panel {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(24px, 4.5vw, 72px) clamp(34px, 7vw, 120px) clamp(24px, 4.5vw, 72px) clamp(28px, 4vw, 62px);
}

.oriun-login-card {
    width: min(100%, 620px);
    min-height: min(690px, calc(100vh - 92px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(30px, 3.8vw, 52px) clamp(34px, 4.8vw, 58px);
    border: 1px solid rgba(95, 0, 73, 0.12);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
    box-shadow: 0 34px 74px rgba(28, 0, 25, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.42) inset;
}

.oriun-login-card__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 26px;
}

.oriun-login-card__brand img {
    width: 108px;
    height: auto;
}

.oriun-login-card__heading {
    margin-bottom: 24px;
    text-align: center;
}

.oriun-login-card__heading h2 {
    margin-bottom: 10px;
    color: #121429;
    font-size: clamp(1.9rem, 2.15vw, 2.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 0;
}

.oriun-login-card__heading p {
    max-width: 390px;
    margin: 0 auto;
    color: #6a7186 !important;
    font-size: 1rem;
    line-height: 1.48;
}

.oriun-login-alert {
    border-radius: 14px;
    font-size: 0.95rem;
}

.oriun-login-form {
    width: 100%;
}

.oriun-login-field {
    margin-bottom: 18px;
}

.oriun-login-field label {
    display: block;
    margin-bottom: 10px;
    color: #171b32;
    font-size: 0.98rem;
    font-weight: 700;
}

.oriun-login-field label span {
    color: #e23d5f;
}

.oriun-login-input {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid #d7dce6;
    border-radius: 8px;
    background: #fbfcfe;
    box-shadow: inset 0 1px 0 rgba(18, 20, 41, 0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.oriun-login-input:focus-within {
    border-color: rgba(114, 0, 86, 0.42);
    background: #ffffff;
    box-shadow: 0 0 0 0.22rem rgba(114, 0, 86, 0.1);
}

.oriun-login-input > i {
    color: #626b80;
    font-size: 1.18rem;
}

.oriun-login-input input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #121429;
    font-size: 1.04rem;
    line-height: 1.4;
}

.oriun-login-input input::placeholder {
    color: #7b8496;
}

.oriun-login-password-toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #596277;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.oriun-login-password-toggle:hover,
.oriun-login-password-toggle:focus {
    background: rgba(114, 0, 86, 0.06);
    color: var(--oriun-color-brand);
}

.oriun-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 24px;
    color: #252a40;
    font-size: 0.94rem;
}

.oriun-login-remember {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.oriun-login-remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #78005c;
}

.oriun-login-options a,
.oriun-login-links a {
    color: #7c005e;
    font-weight: 700;
    text-decoration: none;
}

.oriun-login-options a:hover,
.oriun-login-options a:focus,
.oriun-login-links a:hover,
.oriun-login-links a:focus {
    color: #2aa5ab;
}

.oriun-login-submit {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 26px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(180deg, #a00070 0%, #6d0053 100%);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 800;
    box-shadow: 0 16px 30px rgba(105, 0, 77, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.oriun-login-submit span {
    line-height: 1;
}

.oriun-login-submit i {
    position: absolute;
    right: 26px;
    font-size: 1.2rem;
}

.oriun-login-submit .spinner-border {
    display: none;
    width: 1rem;
    height: 1rem;
    border-width: 0.14em;
}

.oriun-login-submit.is-loading i {
    display: none;
}

.oriun-login-submit:disabled {
    cursor: not-allowed;
    opacity: 0.92;
}

.oriun-login-submit:hover,
.oriun-login-submit:focus {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 36px rgba(105, 0, 77, 0.28);
}

.oriun-login-submit:disabled:hover,
.oriun-login-submit:disabled:focus {
    transform: none;
    filter: none;
    box-shadow: 0 16px 30px rgba(105, 0, 77, 0.22);
}

.oriun-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 22px;
    margin: 22px 0 18px;
    color: #8a91a1;
    font-size: 0.94rem;
}

.oriun-login-divider::before,
.oriun-login-divider::after {
    content: "";
    height: 1px;
    background: #dfe3eb;
}

.oriun-login-links {
    margin: 0;
    color: #6a7186 !important;
    text-align: center;
    font-size: 1rem;
    line-height: 1.9;
}

@media (max-height: 820px) and (min-width: 992px) {
    .oriun-login-copy {
        padding-block: 34px;
    }

    .oriun-login-copy__inner {
        min-height: calc(100vh - 68px);
    }

    .oriun-login-copy__brand {
        width: 154px;
        margin-bottom: 24px;
    }

    .oriun-login-copy h1 {
        margin-bottom: 18px;
        font-size: clamp(1.9rem, 2.2vw, 2.55rem);
        line-height: 1.12;
    }

    .oriun-login-copy__lead {
        margin-bottom: 24px;
        font-size: 0.98rem;
        line-height: 1.55;
    }

    .oriun-login-benefits {
        gap: 12px;
    }

    .oriun-login-benefit {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .oriun-login-benefit span {
        width: 58px;
        height: 58px;
        font-size: 1.18rem;
    }

    .oriun-login-benefit p {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .oriun-login-trust {
        margin-top: 34px;
        font-size: 0.92rem;
    }

    .oriun-login-panel {
        padding-block: 24px;
    }

    .oriun-login-card {
        min-height: auto;
        padding-block: 34px;
    }

    .oriun-login-card__brand {
        margin-bottom: 20px;
    }

    .oriun-login-card__brand img {
        width: 98px;
    }

    .oriun-login-card__heading {
        margin-bottom: 22px;
    }

    .oriun-login-card__heading h2 {
        margin-bottom: 8px;
        font-size: clamp(1.9rem, 2.2vw, 2.25rem);
    }

    .oriun-login-card__heading p {
        font-size: 0.98rem;
        line-height: 1.45;
    }

    .oriun-login-field {
        margin-bottom: 16px;
    }

    .oriun-login-field label {
        margin-bottom: 8px;
    }

    .oriun-login-input {
        min-height: 54px;
    }

    .oriun-login-options {
        margin-bottom: 22px;
    }

    .oriun-login-submit {
        min-height: 56px;
    }

    .oriun-login-divider {
        margin: 20px 0 16px;
    }

    .oriun-login-links {
        line-height: 1.8;
    }

}

@media (max-width: 1199.98px) {
    .oriun-login-shell {
        grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1fr);
    }

    .oriun-login-panel {
        padding-right: 42px;
    }
}

@media (max-width: 991.98px) {
    .oriun-login-shell {
        grid-template-columns: 1fr;
        align-items: center;
        min-height: auto;
        overflow: visible;
    }

    .oriun-login-copy {
        display: none;
    }

    .oriun-login-panel {
        min-height: 100vh;
        min-height: 100svh;
        justify-content: center;
        padding: 20px 24px;
    }

    .oriun-login-card {
        width: min(100%, 560px);
        min-height: auto;
        padding: 36px 34px;
    }
}

@media (max-width: 767.98px) {
    .oriun-login-panel {
        min-height: 100vh;
        min-height: 100svh;
        padding: 14px 28px 18px;
    }

    .oriun-login-card {
        width: min(100%, 320px);
        padding: 28px 18px;
        border-radius: 18px;
        box-shadow: 0 20px 48px rgba(28, 0, 25, 0.28);
    }

    .oriun-login-card__brand {
        margin-bottom: 18px;
    }

    .oriun-login-card__brand img {
        width: 98px;
    }

    .oriun-login-card__heading {
        margin-bottom: 22px;
    }

    .oriun-login-card__heading h2 {
        font-size: clamp(1.65rem, 9vw, 2rem);
    }

    .oriun-login-card__heading p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .oriun-login-field {
        margin-bottom: 15px;
    }

    .oriun-login-field label {
        margin-bottom: 7px;
        font-size: 0.92rem;
    }

    .oriun-login-input {
        grid-template-columns: 30px minmax(0, 1fr) auto;
        min-height: 50px;
        padding: 0 11px;
    }

    .oriun-login-input input {
        font-size: 0.96rem;
    }

    .oriun-login-options {
        margin: 2px 0 18px;
        font-size: 0.9rem;
    }

    .oriun-login-submit {
        min-height: 54px;
    }

    .oriun-login-divider {
        gap: 14px;
        margin: 18px 0 14px;
    }

    .oriun-login-links {
        font-size: 0.93rem;
        line-height: 1.75;
    }

}

@media (max-width: 380px) {
    .oriun-login-panel {
        padding-inline: 18px;
    }

    .oriun-login-card {
        width: min(100%, 314px);
        padding: 24px 14px;
    }

    .oriun-login-card__heading h2 {
        font-size: 1.52rem;
    }

    .oriun-login-card__heading p,
    .oriun-login-input input,
    .oriun-login-links {
        font-size: 0.9rem;
    }

    .oriun-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .oriun-login-remember {
        white-space: nowrap;
    }
}

/* ===== UX audit 2026-07: mobile safety, header offset, a11y, compare table ===== */
html {
    overflow-x: clip;
}

.oriun-skip-link {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    background: #fff;
    color: var(--oriun-color-brand) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

.oriun-skip-link:focus {
    outline: 3px solid var(--oriun-color-warning, #ffb81c);
    outline-offset: 2px;
}

/* Absolute header: keep first-screen heroes clear of logo/nav */
.page-header,
.pricing-hero,
.pos-landing-hero,
.mobile-app-hero,
.knowledge-hero {
    padding-top: clamp(5.75rem, 14vw, 8.5rem) !important;
}

@media (max-width: 991.98px) {
    .page-header,
    .pricing-hero {
        padding-top: 6.25rem !important;
    }

    .page-header .display-5,
    .page-header h1,
    .pricing-hero h1 {
        position: relative;
        z-index: 1;
    }

    .pricing-hero .badge {
        position: relative;
        z-index: 1;
    }

    /* Avoid badge/logo collision under absolute nav */
    .pricing-hero > .container {
        padding-top: 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .page-header,
    .pricing-hero {
        padding-top: 5.85rem !important;
    }

    .oriun-navbar-brand img {
        width: 132px;
        height: auto;
    }

    .navbar-toggler {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .main-menu .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .footer-social-link {
        width: 2.75rem;
        height: 2.75rem;
    }

    .hero-metrics {
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 0.85rem !important;
    }

    .oriun-home-hero-visual {
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    .oriun-home-hero-visual img {
        max-width: min(100%, 420px);
    }
}

.pricing-compare-table-wrap {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

.pricing-compare-table-wrap:focus {
    outline: 2px solid rgba(95, 0, 73, 0.35);
    outline-offset: 2px;
}

.pricing-compare-hint {
    letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
    .pricing-compare-table {
        min-width: 640px;
    }

    .pricing-compare-table thead th:first-child,
    .pricing-compare-table tbody th {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #fff;
        box-shadow: 1px 0 0 rgba(8, 38, 58, 0.08);
    }

    .pricing-compare-table thead th:first-child {
        background: #f7f4f8;
        z-index: 3;
    }
}

/* Login overflow soft fix */
.oriun-login-shell,
.oriun-login-page {
    max-width: 100vw;
}

@media (max-width: 991.98px) {
    .oriun-login-shell {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}

/* Offcanvas CTAs full-width on small screens */
#offcanvasWithBackdrop .action-btns .btn {
    min-height: 44px;
}

/* Decorative shapes should not expand layout */
.circle-shape-3,
.bg-circle,
.pos-hero-glow,
.pos-floating-note {
    max-width: 100%;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Sticky header: solid & legible on scroll ===== */
.main-header .navbar.sticky-header.affix,
nav.navbar.sticky-header.affix,
.navbar-dark.sticky-header.affix,
.navbar-light.sticky-header.affix,
.main-header .navbar-dark.sticky-header.affix,
.main-header .navbar-light.sticky-header.affix {
    /* Kill theme fadeInDown which starts near-invisible and hurts contrast */
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    transition: box-shadow 0.2s ease, padding 0.2s ease !important;
    background-color: #5f0049 !important;
    background-image: none !important;
    background: #5f0049 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
    box-shadow: 0 10px 28px rgba(8, 15, 52, 0.22) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    z-index: 1050 !important;
}

.main-header .navbar.sticky-header.affix .main-menu li a.nav-link,
.main-header .navbar.sticky-header.affix .action-btns a.btn-link,
.navbar-dark.sticky-header.affix .main-menu li a.nav-link,
.navbar-dark.sticky-header.affix .action-btns a.btn-link,
.navbar-light.sticky-header.affix .main-menu li a.nav-link,
.navbar-light.sticky-header.affix .action-btns a.btn-link,
.navbar-dark.sticky-header.affix .navbar-toggler,
.navbar-dark.sticky-header.affix .navbar-toggler span,
.navbar-light.sticky-header.affix .navbar-toggler,
.navbar-light.sticky-header.affix .navbar-toggler span,
.main-header .navbar.sticky-header.affix .navbar-toggler span {
    color: #ffffff !important;
    opacity: 1 !important;
}

.main-header .navbar.sticky-header.affix .main-menu li a.nav-link:hover,
.main-header .navbar.sticky-header.affix .main-menu li a.nav-link:focus,
.navbar-dark.sticky-header.affix .main-menu li a.nav-link:hover,
.navbar-dark.sticky-header.affix .main-menu li a.nav-link:focus {
    color: #ffb81c !important;
}

.main-header .navbar.sticky-header.affix .navbar-brand img.logo-white,
.navbar-dark.sticky-header.affix .navbar-brand img.logo-white,
.navbar-light.sticky-header.affix .navbar-brand img.logo-white {
    display: block !important;
    opacity: 1 !important;
}

.main-header .navbar.sticky-header.affix .navbar-brand img.logo-color,
.navbar-dark.sticky-header.affix .navbar-brand img.logo-color,
.navbar-light.sticky-header.affix .navbar-brand img.logo-color {
    display: none !important;
}

/* Fallback if theme leaves sticky nav transparent over light sections */
html.oriun-header-scrolled .main-header .navbar.sticky-header {
    -webkit-animation: none !important;
    animation: none !important;
    opacity: 1 !important;
    transition: box-shadow 0.2s ease, padding 0.2s ease !important;
    background-color: #5f0049 !important;
    background: #5f0049 !important;
}
/* Prefer document scrolling so sticky header JS/window events stay reliable */
html.oriun-scroll-root,
html.oriun-scroll-root body {
    height: auto !important;
    min-height: 100%;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
