/* =====================================================
   Kickwise Header Mega Menu — V3 Balanced
   Desktop: compact mini-mega dropdowns with Iconoir icons
   Mobile: menu lives only inside drawer, accordion navigation
===================================================== */

.kw-mega-nav {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    max-width: 100%;
}

.kw-mega-home-link,
.kw-mega-nav-trigger {
    position: relative;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    max-width: 116px;
    padding: 0 8px;
    border: 0;
    background: transparent;
    color: rgba(52, 64, 84, .84);
    font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 560;
    line-height: 1;
    letter-spacing: -.004em;
    text-decoration: none;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .18s ease, opacity .18s ease;
}

.kw-mega-nav-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.kw-mega-home-link:hover,
.kw-mega-nav-trigger:hover,
.kw-mega-nav-item.is-open .kw-mega-nav-trigger {
    color: #003172;
}

.kw-mega-home-link.is-active,
.kw-mega-nav-trigger.is-active {
    color: #003172;
    font-weight: 640;
}

.kw-mega-home-link.is-disabled {
    color: #98a2b3;
    pointer-events: none;
}

.kw-mega-nav-item {
    position: relative;
    display: inline-flex;
    align-items: stretch;
    min-width: 0;
}

.kw-mega-nav-caret {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    stroke-width: 1.85;
    transition: transform .18s ease;
}

.kw-mega-nav-item.is-open .kw-mega-nav-caret {
    transform: rotate(180deg);
}

.kw-mega-panel {
    position: absolute;
    top: calc(100% - 5px);
    left: 50%;
    z-index: 100030;
    width: 318px;
    padding: 7px;
    border: 1px solid rgba(15, 23, 42, .095);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 0%, rgba(193, 255, 114, .10), transparent 34%),
        rgba(255, 255, 255, .975);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .13);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, 7px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.kw-mega-nav-item--insights .kw-mega-panel {
    width: 334px;
}

.kw-mega-nav-item.is-open .kw-mega-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.kw-mega-panel-list {
    display: grid;
    gap: 3px;
}

.kw-mega-panel-link {
    min-width: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: #344054;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, color .16s ease;
}

.kw-mega-panel-link:hover,
.kw-mega-panel-link.is-active {
    border-color: rgba(0, 49, 114, .10);
    background: rgba(0, 49, 114, .045);
    color: #003172;
}

.kw-mega-panel-link.is-disabled {
    cursor: default;
    color: #98a2b3;
}

.kw-mega-panel-link.is-disabled:hover {
    border-color: transparent;
    background: transparent;
    color: #98a2b3;
}

.kw-mega-panel-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.kw-mega-panel-icon {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 49, 114, .08);
    border-radius: 9px;
    background: rgba(0, 49, 114, .035);
    color: currentColor;
}

.kw-mega-panel-icon-svg {
    width: 15px;
    height: 15px;
    display: block;
    flex: 0 0 15px;
    stroke-width: 1.65;
}

.kw-mega-panel-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.kw-mega-panel-title {
    display: block;
    min-width: 0;
    color: currentColor;
    font-size: 12.6px;
    font-weight: 650;
    line-height: 1.18;
    letter-spacing: -.012em;
}

.kw-mega-panel-description {
    display: block;
    min-width: 0;
    color: rgba(102, 112, 133, .92);
    font-size: 10.7px;
    font-weight: 500;
    line-height: 1.33;
    letter-spacing: -.004em;
}

.kw-mega-panel-link.is-active .kw-mega-panel-description,
.kw-mega-panel-link:hover .kw-mega-panel-description {
    color: rgba(0, 49, 114, .66);
}

.kw-mega-panel-link.is-disabled .kw-mega-panel-description {
    color: rgba(152, 162, 179, .92);
}

.kw-mega-soon {
    flex: 0 0 auto;
    min-height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(15, 23, 42, .085);
    border-radius: 999px;
    background: rgba(248, 250, 252, .92);
    color: #667085;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
}

html[data-theme="dark"] .kw-mega-home-link,
html[data-theme="dark"] .kw-mega-nav-trigger {
    color: rgba(214, 222, 234, .80);
}

html[data-theme="dark"] .kw-mega-home-link:hover,
html[data-theme="dark"] .kw-mega-nav-trigger:hover,
html[data-theme="dark"] .kw-mega-nav-item.is-open .kw-mega-nav-trigger,
html[data-theme="dark"] .kw-mega-home-link.is-active,
html[data-theme="dark"] .kw-mega-nav-trigger.is-active {
    color: #ffffff;
}

html[data-theme="dark"] .kw-mega-panel {
    border-color: rgba(255, 255, 255, .10);
    background:
        radial-gradient(circle at 88% 0%, rgba(193, 255, 114, .065), transparent 34%),
        rgba(8, 8, 10, .985);
    box-shadow: 0 26px 68px rgba(0, 0, 0, .50);
}

html[data-theme="dark"] .kw-mega-panel-link {
    color: rgba(232, 238, 247, .90);
}

html[data-theme="dark"] .kw-mega-panel-link:hover,
html[data-theme="dark"] .kw-mega-panel-link.is-active {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .058);
    color: #ffffff;
}

html[data-theme="dark"] .kw-mega-panel-icon {
    border-color: rgba(255, 255, 255, .10);
    background: rgba(255, 255, 255, .055);
}

html[data-theme="dark"] .kw-mega-panel-description {
    color: rgba(154, 168, 186, .92);
}

html[data-theme="dark"] .kw-mega-panel-link:hover .kw-mega-panel-description,
html[data-theme="dark"] .kw-mega-panel-link.is-active .kw-mega-panel-description {
    color: rgba(232, 238, 247, .72);
}

html[data-theme="dark"] .kw-mega-panel-link.is-disabled,
html[data-theme="dark"] .kw-mega-panel-link.is-disabled:hover {
    color: rgba(139, 151, 168, .86);
}

html[data-theme="dark"] .kw-mega-panel-link.is-disabled .kw-mega-panel-description {
    color: rgba(123, 135, 151, .82);
}

html[data-theme="dark"] .kw-mega-soon {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .055);
    color: rgba(214, 222, 234, .76);
}

.kw-mobile-nav-accordion {
    display: grid;
    gap: 0;
}

.kw-mobile-nav-direct {
    min-height: 48px;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0;
    padding: 0 2px;
    background: transparent;
}

html[data-theme="dark"] .kw-mobile-nav-direct {
    border-color: rgba(255, 255, 255, .085);
    background: transparent;
}

.kw-mobile-mega-group {
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    border-radius: 0;
    background: transparent;
}

.kw-mobile-nav-accordion > :last-child {
    border-bottom: 0;
}

.kw-mobile-mega-trigger {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: #344054;
    font: inherit;
    font-size: 13.6px;
    font-weight: 560;
    text-align: left;
    cursor: pointer;
}

.kw-mobile-mega-group.is-open > .kw-mobile-mega-trigger,
.kw-mobile-mega-group.is-active > .kw-mobile-mega-trigger {
    color: #003172;
}

.kw-mobile-mega-caret {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    stroke-width: 1.82;
    transition: transform .18s ease;
}

.kw-mobile-mega-group.is-open .kw-mobile-mega-caret {
    transform: rotate(180deg);
}

.kw-mobile-mega-panel {
    display: grid;
    gap: 3px;
    padding: 0 0 10px 14px;
}

.kw-mobile-mega-panel[hidden] {
    display: none !important;
}

.kw-mobile-mega-link {
    min-height: 39px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px;
    border-radius: 10px;
    color: #475467;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 540;
    transition: background .16s ease, color .16s ease;
}

.kw-mobile-mega-link-main {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.kw-mobile-mega-link .kw-mega-panel-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-radius: 8px;
}

.kw-mobile-mega-link .kw-mega-panel-icon-svg {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.kw-mobile-mega-link:hover,
.kw-mobile-mega-link.is-active {
    background: rgba(0, 49, 114, .05);
    color: #003172;
}

.kw-mobile-mega-link.is-disabled {
    color: #98a2b3;
    cursor: default;
}

.kw-mobile-mega-link.is-disabled:hover {
    background: transparent;
    color: #98a2b3;
}

html[data-theme="dark"] .kw-mobile-mega-group {
    border-color: rgba(255, 255, 255, .085);
    background: transparent;
}

html[data-theme="dark"] .kw-mobile-mega-trigger {
    color: #d6deea;
}

html[data-theme="dark"] .kw-mobile-mega-group.is-open > .kw-mobile-mega-trigger,
html[data-theme="dark"] .kw-mobile-mega-group.is-active > .kw-mobile-mega-trigger {
    color: #ffffff;
}

html[data-theme="dark"] .kw-mobile-mega-link {
    color: rgba(214, 222, 234, .86);
}

html[data-theme="dark"] .kw-mobile-mega-link:hover,
html[data-theme="dark"] .kw-mobile-mega-link.is-active {
    background: rgba(255, 255, 255, .065);
    color: #ffffff;
}

html[data-theme="dark"] .kw-mobile-mega-link.is-disabled,
html[data-theme="dark"] .kw-mobile-mega-link.is-disabled:hover {
    color: rgba(139, 151, 168, .86);
}

@media (max-width: 1280px) and (min-width: 1181px) {
    .kw-mega-home-link,
    .kw-mega-nav-trigger {
        max-width: 104px;
        padding: 0 6px;
        font-size: 11.55px;
        letter-spacing: -.004em;
    }

    .kw-mega-panel {
        width: 302px;
    }

    .kw-mega-nav-item--insights .kw-mega-panel {
        width: 318px;
    }
}

@media (max-width: 1180px) {
    .kw-mega-nav,
    .kw-public-nav.kw-mega-nav {
        display: none !important;
    }
}


/* =====================================================
   KICKWISE MOBILE DRAWER — Premium Final Pass V7
   - Stronger drawer header continuation
   - Refined accordion hierarchy
   - Guided sub-navigation rail
   - Softer Soon labels
   - Utility footer for appearance + language
   - Gentle open animation
===================================================== */

.kw-mobile-drawer-head {
    min-height: 78px;
    padding: 0 18px;
    align-items: center;
}

.kw-mobile-drawer-head-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.kw-mobile-drawer-head-main .kw-public-brand {
    width: fit-content;
}

.kw-mobile-drawer-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-left: 33px;
    color: rgba(0, 49, 114, .56);
    font-size: 10.6px;
    font-weight: 520;
    line-height: 1;
    letter-spacing: .012em;
}

html[data-theme="dark"] .kw-mobile-drawer-kicker {
    color: rgba(226, 232, 240, .58);
}

.kw-mobile-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    transition: background .18s ease, color .18s ease;
}

.kw-mobile-drawer-close:hover,
.kw-mobile-drawer-close:focus-visible {
    background: rgba(0, 49, 114, .055);
    color: #003172;
    outline: none;
}

html[data-theme="dark"] .kw-mobile-drawer-close:hover,
html[data-theme="dark"] .kw-mobile-drawer-close:focus-visible {
    background: rgba(255, 255, 255, .075);
    color: #ffffff;
}

.kw-mobile-nav-direct,
.kw-mobile-mega-trigger {
    min-height: 50px;
    font-size: 13.8px;
    font-weight: 560;
    letter-spacing: -.006em;
}

.kw-mobile-nav-direct.is-active {
    color: #003172;
    font-weight: 620;
}

html[data-theme="dark"] .kw-mobile-nav-direct.is-active {
    color: #ffffff;
}

.kw-mobile-mega-group.is-open > .kw-mobile-mega-trigger,
.kw-mobile-mega-group.is-active > .kw-mobile-mega-trigger {
    font-weight: 620;
}

.kw-mobile-mega-panel {
    position: relative;
    gap: 4px;
    margin: 0 0 11px 1px;
    padding: 1px 0 0 18px;
    animation: kw-mobile-mega-reveal .18s ease both;
}

.kw-mobile-mega-panel::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 7px;
    left: 7px;
    width: 1px;
    border-radius: 999px;
    background: linear-gradient(
        180deg,
        rgba(0, 49, 114, .12),
        rgba(0, 49, 114, .055)
    );
}

html[data-theme="dark"] .kw-mobile-mega-panel::before {
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, .18),
        rgba(255, 255, 255, .07)
    );
}

.kw-mobile-mega-link {
    min-height: 40px;
    padding: 0 7px 0 5px;
    border-radius: 11px;
    font-size: 12.6px;
    font-weight: 535;
}

.kw-mobile-mega-link-main {
    gap: 8px;
}

.kw-mobile-mega-link .kw-mega-panel-icon {
    width: 23px;
    height: 23px;
    flex-basis: 23px;
    border-radius: 8px;
    background: rgba(0, 49, 114, .036);
    border-color: rgba(0, 49, 114, .06);
}

.kw-mobile-mega-link .kw-mega-panel-icon-svg {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
}

html[data-theme="dark"] .kw-mobile-mega-link .kw-mega-panel-icon {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08);
}

.kw-mobile-mega-link:hover,
.kw-mobile-mega-link.is-active {
    background: rgba(0, 49, 114, .045);
}

html[data-theme="dark"] .kw-mobile-mega-link:hover,
html[data-theme="dark"] .kw-mobile-mega-link.is-active {
    background: rgba(255, 255, 255, .062);
}

.kw-mobile-mega-link .kw-mega-soon {
    min-height: 18px;
    padding: 0 6px;
    border-color: rgba(15, 23, 42, .07);
    background: rgba(15, 23, 42, .025);
    color: rgba(102, 112, 133, .86);
    font-size: 9px;
    font-weight: 640;
    letter-spacing: .025em;
}

html[data-theme="dark"] .kw-mobile-mega-link .kw-mega-soon {
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .045);
    color: rgba(214, 222, 234, .72);
}

.kw-mobile-drawer-section {
    margin-top: 20px;
    padding-top: 14px;
}

.kw-mobile-drawer-section .kw-mobile-drawer-link:last-child {
    border-bottom: 0;
}

.kw-mobile-drawer-utility {
    margin-top: auto;
    padding: 15px 0 0;
}

.kw-mobile-drawer-utility .kw-mobile-drawer-title {
    margin-bottom: 10px;
}

.kw-mobile-drawer-utility-grid {
    display: grid;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(15, 23, 42, .075);
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(0, 49, 114, .055), transparent 46%),
        rgba(248, 250, 252, .72);
}

html[data-theme="dark"] .kw-mobile-drawer-utility-grid {
    border-color: rgba(255, 255, 255, .09);
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 255, 255, .06), transparent 48%),
        rgba(255, 255, 255, .035);
}

.kw-mobile-drawer-utility-item {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.kw-mobile-drawer-utility-item + .kw-mobile-drawer-utility-item {
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, .06);
}

html[data-theme="dark"] .kw-mobile-drawer-utility-item + .kw-mobile-drawer-utility-item {
    border-top-color: rgba(255, 255, 255, .07);
}

.kw-mobile-drawer-utility-label {
    color: #667085;
    font-size: 11.2px;
    font-weight: 580;
    letter-spacing: -.004em;
}

html[data-theme="dark"] .kw-mobile-drawer-utility-label {
    color: rgba(214, 222, 234, .72);
}

.kw-mobile-drawer-utility .kw-header-theme-toggle {
    flex: 0 0 auto;
}

.kw-mobile-drawer-utility .kw-langdrop {
    flex: 0 0 auto;
}

.kw-mobile-drawer-utility .kw-langdrop .kw-head-drop-trigger {
    min-width: 48px;
    height: 28px;
    min-height: 28px;
    padding: 0 5px;
    border-radius: 9px;
}

.kw-mobile-drawer-utility .kw-langdrop .kw-head-drop-panel {
    left: 0 !important;
    right: auto !important;
    top: calc(100% + 8px) !important;
    width: min(254px, calc(100vw - 42px)) !important;
}

@keyframes kw-mobile-mega-reveal {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kw-mobile-mega-panel {
        animation: none;
    }
}


/* =====================================================
   KICKWISE MOBILE DRAWER — Settings Cleanup V8
   - Removed drawer kicker visual footprint
   - Removed Settings utility card box feel
   - Replaced mobile language dropdown with direct EN/TR segmented links
===================================================== */

.kw-mobile-drawer-head {
    min-height: 68px;
}

.kw-mobile-drawer-head-main {
    display: flex;
    align-items: center;
    gap: 0;
}

.kw-mobile-drawer-kicker {
    display: none;
}

.kw-mobile-drawer-utility {
    padding-top: 14px;
}

.kw-mobile-drawer-utility-grid {
    display: none;
}

.kw-mobile-drawer-utility-list {
    display: grid;
    gap: 0;
}

.kw-mobile-drawer-utility-item {
    min-height: 48px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, .065);
    background: transparent;
}

.kw-mobile-drawer-utility-item + .kw-mobile-drawer-utility-item {
    padding-top: 0;
    border-top: 0;
}

.kw-mobile-drawer-utility-item:last-child {
    border-bottom: 0;
}

html[data-theme="dark"] .kw-mobile-drawer-utility-item {
    border-bottom-color: rgba(255, 255, 255, .075);
}

.kw-mobile-drawer-utility-label {
    font-size: 11.4px;
    font-weight: 570;
}

.kw-mobile-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(15, 23, 42, .085);
    border-radius: 10px;
    background: rgba(255, 255, 255, .58);
}

html[data-theme="dark"] .kw-mobile-language-switch {
    border-color: rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .045);
}

.kw-mobile-language-option {
    min-width: 31px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    color: #667085;
    font-size: 10.2px;
    font-weight: 690;
    line-height: 1;
    letter-spacing: .035em;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.kw-mobile-language-option:hover,
.kw-mobile-language-option:focus-visible {
    color: #003172;
    outline: none;
}

.kw-mobile-language-option.is-active {
    background: rgba(0, 49, 114, .09);
    color: #003172;
    box-shadow: inset 0 0 0 1px rgba(0, 49, 114, .08);
}

html[data-theme="dark"] .kw-mobile-language-option {
    color: rgba(214, 222, 234, .72);
}

html[data-theme="dark"] .kw-mobile-language-option:hover,
html[data-theme="dark"] .kw-mobile-language-option:focus-visible,
html[data-theme="dark"] .kw-mobile-language-option.is-active {
    color: #ffffff;
}

html[data-theme="dark"] .kw-mobile-language-option.is-active {
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .095);
}


/* =====================================================
   KICKWISE MOBILE DRAWER — Settings Bottom / No Language V9
   - Settings anchored to the bottom of the drawer body
   - Drawer language switch removed to stay future-proof for additional locales
===================================================== */

.kw-mobile-drawer-body {
    display: flex;
    flex-direction: column;
}

.kw-mobile-drawer-utility--bottom {
    margin-top: auto;
    padding-top: 18px;
}

.kw-mobile-drawer-utility--bottom .kw-mobile-drawer-utility-item {
    min-height: 48px;
}

.kw-mobile-language-switch,
.kw-mobile-language-option,
.kw-mobile-drawer-language-item {
    display: none !important;
}
