:root {
    --kf-primary: #4f46e5;
    --kf-primary-strong: #3730a3;
    --kf-primary-rgb: 79, 70, 229;
    --kf-accent: #e83e6f;
    --kf-accent-rgb: 232, 62, 111;
    --kf-success: #16a34a;
    --kf-text: #121622;
    --kf-text-soft: #3f4963;
    --kf-muted: #66708f;
    --kf-muted-light: #818aa6;
    --kf-surface: #ffffff;
    --kf-surface-soft: #f6f8ff;
    --kf-surface-tint: #fbfcff;
    --kf-border: rgba(var(--kf-primary-rgb), 0.12);
    --kf-border-strong: rgba(var(--kf-primary-rgb), 0.24);
    --kf-shadow-soft: 0 18px 42px rgba(18, 22, 34, 0.07);
    --kf-shadow-hover: 0 16px 30px rgba(18, 22, 34, 0.1);
    --kf-gradient-cta: linear-gradient(135deg, var(--kf-primary) 0%, var(--kf-accent) 100%);
    --kf-gradient-hero: linear-gradient(180deg, #fbfcff 0%, #f4f6fb 100%);
    --kf-gradient-section: linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
    --kf-panel-dark: #161b2b;
    --kf-fixed-header-offset: 72px;
    --kf-content-top-gap: 1rem;
    --kf-hero-padding: 1.75rem;
    --kf-hero-gap: 1.25rem;
    --kf-hero-radius: 16px;
    --kf-hero-margin-bottom: 1.4rem;
    --kf-hero-title-size: 3rem;
    --kf-hero-title-line-height: 0.98;
    --kf-hero-title-letter-spacing: 0;
    --kf-container-max: 1140px;
    --kf-page-shell-max: calc(var(--kf-container-max) + 2rem);
}

body {
    color: var(--kf-text);
    background: var(--kf-surface);
}

a {
    color: var(--kf-primary);
}

a:hover,
a:focus {
    color: var(--kf-primary-strong);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0;
}

.btn-primary {
    background-color: var(--kf-primary);
    border-color: var(--kf-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--kf-primary-strong);
    border-color: var(--kf-primary-strong);
}

.btn-primary.disabled,
.btn-primary:disabled {
    background-color: var(--kf-primary);
    border-color: var(--kf-primary);
}

.btn-edit-cart .badge {
    background: var(--kf-primary);
}

.kreativ-font-card .kreativ-card-title:hover img {
    border-color: var(--kf-border-strong);
}

#screenshot {
    background: var(--kf-primary);
}

.sticky-bar a {
    color: var(--kf-primary);
}

@media (min-width: 992px) {
    body {
        padding-top: var(--kf-fixed-header-offset) !important;
    }

    .kreativ-content {
        padding-top: var(--kf-content-top-gap) !important;
    }
}

.kreativ-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(var(--kf-primary-rgb), 0.08);
    box-shadow: 0 12px 40px rgba(18, 22, 34, 0.05);
}

.kreativ-header .navbar {
    min-height: 78px;
    gap: 1.1rem;
}

.kreativ-header .navbar-collapse {
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.kreativ-hdr-left,
.kreativ-hdr-right {
    display: flex;
    align-items: center;
}

.kreativ-hdr-right {
    gap: 0.7rem;
}

.kreativ-logo {
    margin: 0;
}

.kreativ-logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--kf-text);
    text-decoration: none;
}

.kreativ-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex: 0 0 auto;
}

.kreativ-logo-lockup {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.kreativ-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
}

.kreativ-logo-tagline {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kf-muted);
}

.kreativ-search {
    flex: 1 1 400px;
    min-width: 0;
    max-width: 560px;
    margin: 0;
    position: relative;
}

.kreativ-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem 0.55rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--kf-border);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(18, 22, 34, 0.05);
    width: 100%;
}

.kreativ-search-icon {
    color: var(--kf-primary);
    font-size: 1rem;
}

.kreativ-search .kreativ-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--kf-text);
    font-size: 1rem;
    padding: 0;
}

.kreativ-search-input:focus {
    outline: none;
    box-shadow: none;
}

.kreativ-search-input::placeholder {
    color: var(--kf-muted-light);
}

.kreativ-search-submit {
    justify-self: end;
    white-space: nowrap;
    border: 0;
    border-radius: 8px;
    background: var(--kf-primary);
    color: #fff;
    font-weight: 800;
    padding: 0.7rem 1rem;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(var(--kf-primary-rgb), 0.16);
}

.kreativ-search-submit:hover,
.kreativ-search-submit:focus {
    background: var(--kf-primary-strong);
    color: #fff;
    text-decoration: none;
}

.kreativ-search-suggestions {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0;
    right: 0;
    z-index: 5200;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--kf-border);
    border-radius: 22px;
    box-shadow: 0 22px 40px rgba(18, 22, 34, 0.12);
    backdrop-filter: blur(16px);
}

.kreativ-search-suggestions[hidden] {
    display: none !important;
}

.kreativ-search-suggestion-group + .kreativ-search-suggestion-group {
    margin-top: 0.75rem;
}

.kreativ-search-suggestion-heading {
    margin: 0 0 0.45rem;
    color: var(--kf-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.kreativ-search-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.kreativ-search-suggestion-item,
.kreativ-search-suggestion-footer {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.68rem 0.9rem;
    border-radius: 14px;
    color: #253052;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    background: var(--kf-surface-soft);
    border: 1px solid rgba(var(--kf-primary-rgb), 0.1);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.kreativ-search-suggestion-item-font {
    width: 100%;
    justify-content: flex-start;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.7rem;
}

.kreativ-search-suggestion-thumb {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(var(--kf-primary-rgb), 0.06);
    border: 1px solid rgba(var(--kf-primary-rgb), 0.08);
}

.kreativ-search-suggestion-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kreativ-search-suggestion-copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.kreativ-search-suggestion-item:hover,
.kreativ-search-suggestion-item:focus,
.kreativ-search-suggestion-item.is-active,
.kreativ-search-suggestion-footer:hover,
.kreativ-search-suggestion-footer:focus,
.kreativ-search-suggestion-footer.is-active {
    color: var(--kf-primary);
    text-decoration: none;
    background: rgba(var(--kf-primary-rgb), 0.08);
    border-color: rgba(var(--kf-primary-rgb), 0.18);
    transform: translateY(-1px);
}

.kreativ-search-suggestion-label {
    display: block;
}

.kreativ-search-suggestion-meta {
    display: block;
    color: var(--kf-muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.kreativ-search-suggestions mark {
    background: rgba(255, 214, 92, 0.45);
    color: inherit;
    padding: 0 0.08em;
    border-radius: 0.2em;
}

.kreativ-search-suggestion-footer {
    margin-top: 0.9rem;
    justify-content: center;
    width: 100%;
    background: var(--kf-surface-soft);
}

.kreativ-search-suggestion-empty {
    padding: 0.25rem 0.2rem 0.4rem;
    color: var(--kf-muted);
    font-size: 0.92rem;
}

.kreativ-header .navbar-nav {
    gap: 0.4rem;
    align-items: center;
}

.kreativ-header .navbar-nav li.menu-item a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0.58rem 0.78rem;
    border-radius: 999px;
    color: #27304f;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.kreativ-header .navbar-nav li.menu-item a:hover,
.kreativ-header .navbar-nav li.current-menu-item a,
.kreativ-header .navbar-nav li.current_page_item a {
    background: rgba(var(--kf-primary-rgb), 0.08);
    color: var(--kf-primary);
    text-decoration: none;
}

.kreativ-header .navbar-toggler {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--kf-text) 0%, #242d46 100%);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1;
    padding: 0.85rem 1rem !important;
}

.kreativ-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--kf-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--kf-primary);
    box-shadow: 0 10px 22px rgba(18, 22, 34, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.kreativ-theme-toggle:hover,
.kreativ-theme-toggle:focus {
    color: var(--kf-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px rgba(18, 22, 34, 0.09);
}

.kreativ-theme-toggle i {
    font-size: 1rem;
}

.kreativ-header-mobile-actions {
    display: none;
    align-items: center;
    gap: 0.6rem;
}

body.dark-mode .kreativ-theme-toggle {
    background: linear-gradient(135deg, #151b2a 0%, #1f2840 100%);
    border-color: rgba(255, 255, 255, 0.08);
    color: #ffd65c;
    box-shadow: 0 12px 24px rgba(8, 10, 18, 0.32);
}

body.dark-mode .kreativ-search-suggestions {
    background: rgba(18, 23, 36, 0.96);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 44px rgba(8, 10, 18, 0.42);
}

body.dark-mode .kreativ-search-suggestion-heading,
body.dark-mode .kreativ-search-suggestion-empty {
    color: #a9b2d8;
}

body.dark-mode .kreativ-search-suggestion-item,
body.dark-mode .kreativ-search-suggestion-footer {
    color: #eef2ff;
    background: rgba(31, 40, 64, 0.92);
    border-color: rgba(255, 255, 255, 0.07);
}

body.dark-mode .kreativ-search-suggestion-item:hover,
body.dark-mode .kreativ-search-suggestion-item:focus,
body.dark-mode .kreativ-search-suggestion-item.is-active,
body.dark-mode .kreativ-search-suggestion-footer:hover,
body.dark-mode .kreativ-search-suggestion-footer:focus,
body.dark-mode .kreativ-search-suggestion-footer.is-active {
    color: #8ea0ff;
    background: rgba(var(--kf-primary-rgb), 0.14);
    border-color: rgba(142, 160, 255, 0.2);
}

body.dark-mode .kreativ-search-suggestion-thumb {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

body.dark-mode .kreativ-search-suggestion-meta {
    color: #a9b2d8;
}

body.dark-mode .kreativ-search-suggestions mark {
    background: rgba(255, 214, 92, 0.22);
}

@media (max-width: 1360px) {
    .kreativ-header .navbar {
        gap: 0.9rem;
    }

    .kreativ-header .navbar-collapse {
        gap: 0.85rem;
    }

    .kreativ-search {
        flex-basis: 340px;
        max-width: 500px;
    }

    .kreativ-header .navbar-nav {
        gap: 0.2rem;
    }

    .kreativ-header .navbar-nav li.menu-item a {
        padding: 0.56rem 0.68rem;
        font-size: 0.86rem;
    }
}

@media (max-width: 1220px) {
    .kreativ-logo-tagline {
        display: none;
    }

    .kreativ-logo a {
        gap: 0.7rem;
    }

    .kreativ-search {
        flex-basis: 320px;
        max-width: 450px;
    }

    .kreativ-search-form {
        gap: 0.55rem;
        padding: 0.5rem 0.55rem 0.5rem 0.85rem;
    }

    .kreativ-search-submit {
        padding: 0.7rem 0.88rem;
        font-size: 0.94rem;
    }

    .kreativ-header .navbar-nav li.menu-item a {
        padding: 0.54rem 0.62rem;
        font-size: 0.83rem;
    }
}

@media (max-width: 991.98px) {
    .kreativ-header .navbar {
        min-height: 72px;
    }

    .kreativ-header {
        position: relative;
        z-index: 1000;
    }

    .kreativ-search {
        max-width: none;
        width: 100%;
    }

    .navbar-collapse.offcanvas-collapse {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        z-index: 999;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1rem 2rem;
        gap: 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(18px);
        border-top: 1px solid rgba(var(--kf-primary-rgb), 0.08);
        box-shadow: 0 20px 40px rgba(18, 22, 34, 0.12);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .offcanvas-collapse.open .kreativ-search {
        margin: 0;
    }

    .offcanvas-collapse.open {
        display: flex;
    }

    .offcanvas-collapse.open .kreativ-search-form {
        box-shadow: none;
    }

    .kreativ-header .navbar-nav {
        align-items: stretch;
    }

    .kreativ-header .navbar-nav li.menu-item a {
        width: 100%;
        justify-content: center;
    }

    .kreativ-search-suggestions {
        top: calc(100% + 0.35rem);
        padding: 0.7rem;
        border-radius: 18px;
    }

    .kreativ-header-mobile-actions {
        display: inline-flex;
    }
}

@media (max-width: 767px) {
    .kreativ-logo-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .kreativ-logo-text {
        font-size: 1.2rem;
    }

    .kreativ-logo-tagline {
        font-size: 0.68rem;
    }

    .kreativ-search-form {
        padding: 0.5rem 0.55rem 0.5rem 0.85rem;
    }

    .kreativ-search-submit {
        padding: 0.68rem 0.9rem;
    }

    .kreativ-search-suggestion-item,
    .kreativ-search-suggestion-footer {
        width: 100%;
        justify-content: flex-start;
    }

    .kreativ-search-suggestion-item-font {
        padding: 0.68rem;
    }

    .kreativ-search-suggestion-thumb {
        width: 52px;
        height: 52px;
        flex-basis: 52px;
    }
}

/* Compact header refinement */
.kreativ-header .navbar {
    min-height: 72px;
    gap: 0.85rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.kreativ-logo a {
    gap: 0.75rem;
}

.kreativ-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
}

.kreativ-logo-text {
    font-size: 1.55rem;
    letter-spacing: 0.08em;
    line-height: 0.92;
}

.kreativ-logo-tagline {
    margin-top: 0.12rem;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.1;
    white-space: nowrap;
}

.kreativ-search {
    flex-basis: 330px;
    max-width: 520px;
}

.kreativ-search-form {
    min-height: 52px;
    padding: 0.45rem 0.52rem 0.45rem 0.88rem;
}

.kreativ-search-icon {
    font-size: 1.15rem;
}

.kreativ-search-input {
    font-size: 0.96rem;
}

.kreativ-search-submit {
    min-width: 92px;
    padding: 0.68rem 0.82rem;
    font-size: 0.92rem;
    border-radius: 8px;
}

.kreativ-header .navbar-collapse {
    gap: 0.65rem;
}

.kreativ-header .navbar-nav {
    gap: 0.02rem;
}

.kreativ-header .navbar-nav li.menu-item a {
    padding: 0.48rem 0.54rem;
    font-size: 0.87rem;
}

.kreativ-theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(100, 94, 255, 0.07);
}

.kreativ-theme-toggle i {
    font-size: 1rem;
}

@media (max-width: 1360px) {
    .kreativ-search {
        flex-basis: 300px;
        max-width: 470px;
    }

    .kreativ-search-form {
        min-height: 52px;
    }

    .kreativ-search-submit {
        min-width: 88px;
        padding-inline: 0.82rem;
    }

    .kreativ-header .navbar-nav li.menu-item a {
        padding: 0.44rem 0.48rem;
        font-size: 0.84rem;
    }
}

@media (max-width: 1220px) {
    .kreativ-logo-icon {
        width: 42px;
        height: 42px;
    }

    .kreativ-search {
        flex-basis: 280px;
        max-width: 390px;
    }

    .kreativ-search-form {
        min-height: 50px;
        padding: 0.42rem 0.45rem 0.42rem 0.8rem;
    }

    .kreativ-search-input {
        font-size: 0.91rem;
    }

    .kreativ-search-submit {
        min-width: 90px;
        font-size: 0.88rem;
    }

    .kreativ-theme-toggle {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }
}

@media (min-width: 992px) and (max-width: 1160px) {
    .kreativ-search {
        flex-basis: 250px;
        max-width: 340px;
    }

    .kreativ-search-submit {
        min-width: 82px;
        padding-inline: 0.72rem;
    }

    .kreativ-header .navbar-nav li.menu-item a {
        padding-right: 0.4rem;
        padding-left: 0.4rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 767px) {
    .navbar-collapse.offcanvas-collapse {
        top: 68px;
        max-height: calc(100vh - 68px);
    }

    .kreativ-search-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .kreativ-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }
}

/* Mobile header corrections */
@media (max-width: 991.98px) {
    :root {
        --kf-content-top-gap: 0.85rem;
        --kf-hero-padding: 1.35rem;
        --kf-hero-gap: 1.1rem;
        --kf-hero-radius: 22px;
        --kf-hero-margin-bottom: 1.5rem;
        --kf-hero-title-size: 2.35rem;
        --kf-hero-title-line-height: 1;
        --kf-hero-title-letter-spacing: 0;
    }

    body {
        padding-top: 0 !important;
    }

    .kreativ-content {
        padding-top: var(--kf-content-top-gap) !important;
    }

    .kreativ-header {
        position: sticky;
        top: 0;
        z-index: 7100;
    }

    .kreativ-header .navbar {
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
    }

    .kreativ-header,
    .kreativ-header .container,
    .kreativ-header .navbar {
        overflow: visible;
    }

    .kreativ-header .navbar-collapse.offcanvas-collapse {
        bottom: auto;
        width: 100%;
        height: calc(100vh - 72px);
        max-height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        max-height: calc(100dvh - 72px);
        display: none !important;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-0.75rem);
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 7050;
        padding: 1rem 1rem 1.6rem;
        gap: 1.1rem;
        justify-content: flex-start;
        overflow-y: auto;
        overscroll-behavior: contain;
        background: rgba(255, 255, 255, 0.995);
        backdrop-filter: blur(24px);
        border-top: 1px solid rgba(var(--kf-primary-rgb), 0.08);
        box-shadow: 0 24px 48px rgba(18, 22, 34, 0.14);
    }

    .kreativ-header .navbar-collapse.offcanvas-collapse.open {
        display: flex !important;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .offcanvas-collapse .kreativ-hdr-left {
        display: none;
    }

    .offcanvas-collapse .kreativ-search,
    .offcanvas-collapse .kreativ-hdr-right,
    .offcanvas-collapse .navbar-nav {
        display: flex;
        width: 100%;
    }

    .offcanvas-collapse .kreativ-search {
        order: 1;
        margin: 0;
    }

    .offcanvas-collapse .kreativ-hdr-right {
        order: 2;
        display: block;
    }

    .offcanvas-collapse .kreativ-hdr-right > .kreativ-theme-toggle {
        display: none !important;
    }

    .offcanvas-collapse .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.65rem;
    }

    .offcanvas-collapse .navbar-nav li {
        width: 100%;
    }

    .offcanvas-collapse .navbar-nav li.menu-item a {
        width: 100%;
        justify-content: flex-start;
        min-height: 52px;
        padding: 0.9rem 1rem;
        border-radius: 16px;
        background: var(--kf-surface-soft);
        border: 1px solid rgba(var(--kf-primary-rgb), 0.1);
        box-shadow: 0 10px 22px rgba(18, 22, 34, 0.06);
    }

    .offcanvas-collapse .kreativ-search-form {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(18, 22, 34, 0.08);
    }

    .kreativ-logo.offcanvas-show {
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 0.75rem;
    }

    .kreativ-logo.offcanvas-show a {
        gap: 0.65rem;
    }

    .kreativ-logo.offcanvas-show .kreativ-logo-lockup {
        min-width: 0;
    }

    .kreativ-logo.offcanvas-show .kreativ-logo-tagline {
        display: none;
    }

    .kreativ-logo.offcanvas-show .kreativ-logo-text {
        font-size: 1.1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .kreativ-header-mobile-actions {
        display: inline-flex;
        flex: 0 0 auto;
        margin-left: auto;
        gap: 0.5rem;
    }

    .kreativ-header-mobile-actions .navbar-toggler,
    .kreativ-header-mobile-actions .kreativ-theme-toggle {
        flex: 0 0 auto;
    }

    body.kreativ-nav-open {
        overflow: hidden;
    }

    body.kreativ-nav-open #kca-chat-bubble,
    body.kreativ-nav-open #kca-chat-window {
        visibility: hidden !important;
        pointer-events: none !important;
    }
}

@media (max-width: 767px) {
    .kreativ-header .navbar {
        min-height: 72px;
        gap: 0.65rem;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .kreativ-header .navbar-collapse.offcanvas-collapse {
        top: 72px;
        height: calc(100vh - 72px);
        max-height: calc(100vh - 72px);
        padding: 0.9rem 0.9rem 1.5rem;
    }

    .kreativ-logo.offcanvas-show a {
        gap: 0.6rem;
    }

    .kreativ-logo.offcanvas-show .kreativ-logo-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .kreativ-logo.offcanvas-show .kreativ-logo-text {
        font-size: 1.02rem;
        letter-spacing: 0.04em;
    }

    .kreativ-header-mobile-actions {
        gap: 0.45rem;
    }

    .kreativ-header-mobile-actions .kreativ-theme-toggle {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .kreativ-header .navbar-toggler {
        min-height: 40px;
        padding: 0.72rem 0.9rem !important;
        font-size: 0.86rem;
    }

    .offcanvas-collapse .kreativ-search-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .offcanvas-collapse .kreativ-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        justify-self: stretch;
    }

    .offcanvas-collapse .navbar-nav li.menu-item a {
        min-height: 50px;
        padding: 0.82rem 0.92rem;
        border-radius: 15px;
        font-size: 0.92rem;
    }
}

body.dark-mode .kreativ-header {
    background: rgba(12, 16, 28, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

body.dark-mode .kreativ-logo a,
body.dark-mode .kreativ-logo-text {
    color: #f4f7ff;
}

body.dark-mode .kreativ-logo-tagline {
    color: #9aa6c6;
}

body.dark-mode .kreativ-search-form {
    background: linear-gradient(135deg, rgba(23, 30, 50, 0.96) 0%, rgba(15, 21, 38, 0.98) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

body.dark-mode .kreativ-search-input {
    color: #f4f7ff;
}

body.dark-mode .kreativ-search-input::placeholder {
    color: #8b97b6;
}

body.dark-mode .kreativ-header .navbar-nav li.menu-item a {
    color: #d9e2ff;
}

body.dark-mode .kreativ-header .navbar-nav li.menu-item a:hover,
body.dark-mode .kreativ-header .navbar-nav li.current-menu-item a,
body.dark-mode .kreativ-header .navbar-nav li.current_page_item a {
    background: rgba(96, 112, 255, 0.18);
    color: #ffffff;
}

body.dark-mode .kreativ-header .navbar-toggler {
    background: linear-gradient(135deg, #202a47 0%, #2f3a61 100%);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

@media (max-width: 991.98px) {
    body.dark-mode .kreativ-header .navbar-collapse.offcanvas-collapse {
        background: rgba(12, 16, 28, 0.995);
        border-top-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 22px 46px rgba(0, 0, 0, 0.35);
    }

    body.dark-mode .offcanvas-collapse .navbar-nav li.menu-item a {
        background: rgba(20, 26, 44, 0.92);
        border-color: rgba(255, 255, 255, 0.08);
        box-shadow: none;
    }
}
