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-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-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-intro-section {
    padding-top: 2.75rem !important;
    padding-bottom: 1rem !important;
    background: #fff;
}

.pricing-intro-shell {
    position: relative;
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(8, 38, 58, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-intro-glow {
    display: none;
}

.pricing-intro-glow--primary {
    display: none;
}

.pricing-intro-glow--accent {
    display: none;
}

.pricing-intro-copy {
    position: relative;
    z-index: 1;
    max-width: 680px;
}

.pricing-intro-copy .text-uppercase {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    margin-bottom: 0.55rem !important;
    border-radius: 0;
    background: transparent;
    color: var(--oriun-color-brand) !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.pricing-intro-copy .text-uppercase::before {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    border-radius: 50%;
    background: var(--oriun-color-accent);
    box-shadow: none;
}

.pricing-intro-copy h2 {
    max-width: 18ch;
    margin-bottom: 0.6rem;
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.pricing-intro-copy .pricing-intro-eyebrow {
    display: none;
}

.pricing-intro-copy > p:last-of-type {
    max-width: 36rem;
    margin-bottom: 0;
    color: #5a6d86 !important;
    font-size: 1rem;
    line-height: 1.65;
}

.pricing-intro-copy::after {
    content: "Sem custos ocultos  •  Activação acompanhada  •  Suporte local";
    display: inline-flex;
    margin-top: 1.5rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(95, 0, 73, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    color: #314760;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.7;
    box-shadow: 0 16px 30px rgba(8, 38, 58, 0.06);
}

.pricing-intro-side {
    position: relative;
    z-index: 1;
}

.pricing-toggle-card {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1rem;
    min-width: min(100%, 420px);
    justify-content: space-between;
    padding: 1.2rem 1.35rem !important;
    border: 1px solid rgba(95, 0, 73, 0.08);
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 246, 251, 0.98) 100%) !important;
    box-shadow: 0 18px 35px rgba(8, 38, 58, 0.08) !important;
}

.pricing-toggle-card [data-billing-label] {
    display: block;
    flex: 1 1 100%;
    margin-bottom: 0.2rem;
    color: var(--oriun-text-heading) !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.pricing-toggle-card::before {
    content: "Modalidade de cobrança";
    display: block;
    margin-right: 1rem;
    color: #6d7f97;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pricing-toggle-card::after {
    content: "Alterne para comparar de imediato o investimento recorrente.";
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    color: #6d7f97;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-toggle-card .form-check {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(95, 0, 73, 0.05);
}

.pricing-toggle-card .form-check-label {
    margin: 0;
    color: var(--oriun-text-heading) !important;
}

.pricing-toggle-card .form-check-input {
    width: 3rem;
    height: 1.6rem;
    margin-top: 0;
    margin-left: 0 !important;
    border-color: rgba(95, 0, 73, 0.35);
    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.25rem rgba(95, 0, 73, 0.12);
}

@media (max-width: 991.98px) {
    .pricing-intro-shell {
        padding: 2rem 1.4rem;
        border-radius: 24px;
    }

    .pricing-intro-copy h2 {
        max-width: none;
        font-size: clamp(2.2rem, 8vw, 3.2rem);
    }

    .pricing-intro-copy::after {
        width: 100%;
        white-space: normal;
    }

    .pricing-toggle-card {
        min-width: 100%;
        margin-top: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .pricing-intro-copy .text-uppercase {
        letter-spacing: 0.12em;
    }

    .pricing-intro-copy > p:last-of-type {
        font-size: 1.02rem;
    }

    .pricing-toggle-card {
        gap: 0.9rem !important;
        padding: 1rem !important;
        border-radius: 20px !important;
    }

    .pricing-toggle-card::before,
    .pricing-toggle-card::after {
        margin-right: 0;
    }

    .pricing-toggle-card .form-check {
        margin-left: 0;
    }
}

/* Compact pricing header: keep focus on the plans, not the intro */
.pricing-intro-section {
    padding-top: 2.75rem !important;
    padding-bottom: 1rem !important;
    background: #fff;
}

.pricing-intro-shell {
    padding: 0 0 1.25rem;
    border: 0;
    border-bottom: 1px solid rgba(8, 38, 58, 0.08);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.pricing-intro-glow,
.pricing-intro-glow--primary,
.pricing-intro-glow--accent,
.pricing-intro-copy::after {
    display: none;
    content: none;
}

.pricing-intro-copy {
    max-width: 680px;
}

.pricing-intro-copy .text-uppercase {
    gap: 0.45rem;
    padding: 0;
    margin-bottom: 0.55rem !important;
    border-radius: 0;
    background: transparent;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
}

.pricing-intro-copy .text-uppercase::before {
    width: 0.38rem;
    height: 0.38rem;
    background: var(--oriun-color-accent);
    box-shadow: none;
}

.pricing-intro-copy h2 {
    max-width: 18ch;
    margin-bottom: 0.6rem;
    font-size: clamp(1.9rem, 2.4vw, 2.5rem);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.pricing-intro-copy > p:last-of-type {
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.65;
}

.pricing-toggle-card {
    gap: 0.55rem 0.85rem;
    min-width: min(100%, 320px);
    justify-content: flex-end;
    padding: 0.85rem 1rem !important;
    border: 1px solid rgba(8, 38, 58, 0.08);
    border-radius: 16px !important;
    background: #fcfbfd !important;
    box-shadow: none !important;
}

.pricing-toggle-card [data-billing-label] {
    flex: 0 0 auto;
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

.pricing-toggle-card::before {
    content: "Cobrança";
    margin-right: auto;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
}

.pricing-toggle-card::after {
    content: none;
}

.pricing-toggle-card .form-check {
    gap: 0.65rem;
    margin-left: 0;
    padding: 0.35rem 0.55rem;
    background: rgba(95, 0, 73, 0.04);
}

.pricing-toggle-card .form-check-label {
    font-size: 0.9rem;
}

.pricing-toggle-card .form-check-input {
    width: 2.5rem;
    height: 1.35rem;
    border-color: rgba(95, 0, 73, 0.25);
    background-color: rgba(95, 0, 73, 0.06);
}

@media (max-width: 991.98px) {
    .pricing-intro-shell {
        padding-bottom: 1rem;
    }

    .pricing-intro-copy h2 {
        max-width: none;
        font-size: clamp(1.75rem, 4.8vw, 2.2rem);
    }

    .pricing-toggle-card {
        min-width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 575.98px) {
    .pricing-intro-copy .text-uppercase {
        letter-spacing: 0.1em;
    }

    .pricing-intro-copy > p:last-of-type {
        font-size: 0.95rem;
    }

    .pricing-toggle-card {
        justify-content: flex-start;
        gap: 0.5rem 0.75rem !important;
        padding: 0.75rem 0.85rem !important;
        border-radius: 14px !important;
    }
}

.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;
    }
}
