.header4-wrapper {
    display: contents;
}

.header4-wrapper ul {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.header4-wrapper li {
    list-style: none !important;
}

.header4-wrapper a {
    text-decoration: none;
    color: inherit;
}

.header4-topbar {
    background: var(--header4-primary);
    color: var(--header4-text);
    font-size: 13px;
    height: 48px;
    position: relative;
    z-index: 6001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header4-topbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    position: relative;
}

.header4-top-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header4-top-left {
    display: flex;
    align-items: center;
    gap: 20px;
    overflow: hidden;
}

.header4-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    opacity: 0.9;
    white-space: nowrap;
}

.header4-currency-scroller {
    display: flex;
    align-items: center;
    gap: 0;
}

.header4-currency-scroller>span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.header4-currency-scroller>span:last-child {
    border-right: none;
}

.header4-currency-scroller .rate-value {
    margin-left: 2px;
    opacity: 0.9;
}

.header4-currency-scroller .rate-change {
    display: none !important;
}

.header4-currency-scroller span i:first-child {
    font-size: 13px;
    opacity: 0.7;
    margin-right: 2px;
}

.header4-currency-scroller i.fa-caret-up,
.header4-currency-scroller i.fa-caret-down {
    font-size: 10px;
}

.header4-top-right {
    display: flex;
    gap: 15px;
    align-items: center;
}

.header4-top-right a {
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.header4-top-right a:hover {
    opacity: 1;
}

.header4-weather-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 12px;
}

.header4-weather-widget:hover {
    background: rgba(0, 0, 0, 0.2);
}

.header4-main-header {
    background: var(--header4-main-bg);
    border-bottom: 1px solid var(--header4-border);
    position: sticky;
    top: 0;
    z-index: 6000;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.03);
}

.header4-main-header.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

html.dark .header4-main-header.is-sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

html.dark .header4-main-header {
    background: #121212 !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.header4-main-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    height: 85px;
}

.header4-logo {
    flex-shrink: 0;
    padding-right: 30px;
    flex: 0 0 auto;
}

.header4-logo img {
    height: 55px;
    width: auto;
    max-width: none;
    display: block;
    object-fit: contain;
}

.header4-logo .logo-dark {
    display: none !important;
}

.header4-logo .logo-light {
    display: block !important;
}

html.dark .header4-logo .logo-light {
    display: none !important;
}

html.dark .header4-logo .logo-dark {
    display: block !important;
}

.header4-nav-desktop {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header4-nav-list {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.header4-nav-item {
    list-style: none !important;
    position: relative;
}

.header4-nav-item::before,
.header4-nav-item::after {
    display: none !important;
    content: none !important;
}

.header4-nav-link {
    display: block;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 15px;
    color: var(--header4-text-color);
    border-radius: 8px;
    white-space: nowrap;
}

.header4-nav-link:hover {
    color: var(--header4-primary);
    background: rgba(0, 0, 0, 0.03);
}

html.dark .header4-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header4-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.header4-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--header4-text-color);
    background: transparent;
    border: 1px solid var(--header4-border);
    cursor: pointer;
    font-size: 17px;
}

.header4-action-btn:hover {
    background: var(--header4-primary);
    color: #fff;
    border-color: var(--header4-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.theme-switch {
    display: flex !important;
}

.header4-mobile-toggle {
    display: none;
}

.header4-dropdown {
    position: relative;
}

.header4-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    right: -20px;
    background: #ffffff;
    min-width: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 15px;
    z-index: 6005;
    border: 1px solid rgba(0, 0, 0, 0.04);
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    display: grid;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.header4-dropdown:hover .header4-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header4-dropdown-menu li {
    list-style: none !important;
}

.header4-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-weight: 600;
    color: var(--header4-text-color);
    font-size: 14px;
    border-radius: 10px;
    border-left: none;
    background: rgba(0, 0, 0, 0.01);
}

.header4-dropdown-menu a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--header4-primary);
}

.header4-dropdown-menu a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ddd;
    border-radius: 50%;
    flex-shrink: 0;
}

.header4-dropdown-menu a:hover::before {
    background: var(--header4-primary);
}

.header4-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 8000;
    display: none;
}

.header4-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 8001;
    display: none;
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
}

@media (min-width: 992px) {

    .header4-drawer,
    .header4-drawer-overlay {
        display: none !important;
    }
}

html.dark .header4-drawer {
    background: #1a1a1a;
    border-right: 1px solid #333;
}

.header4-drawer.is-open {
    display: flex;
}

.header4-drawer-overlay.is-open {
    display: block;
}

.header4-drawer-header {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header4-drawer-content {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

.header4-mob-nav li {
    margin-bottom: 5px;
}

.header4-mob-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: #333;
}

html.dark .header4-mob-nav a {
    color: #eee;
}

.header4-mob-nav a:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--header4-primary);
}

html.dark .header4-mob-nav a:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header4-search-popup {
    position: absolute;
    top: 100%;
    right: 20px;
    background: var(--header4-main-bg);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--header4-border);
    display: none;
    z-index: 6010;
    width: 300px;
    margin-top: 10px;
}

.header4-search-popup.active {
    display: block;
}

html.dark .header4-search-popup {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header4-search-form {
    display: flex;
    gap: 8px;
}

.header4-search-form input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--header4-border);
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: rgba(0, 0, 0, 0.02);
    color: var(--header4-text-color);
}

.header4-search-form input:focus {
    border-color: var(--header4-primary);
    background: #fff;
}

html.dark .header4-search-form input:focus {
    background: #111;
}

.header4-search-form button {
    background: var(--header4-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0 16px;
    cursor: pointer;
}

.header4-search-form button:hover {
    opacity: 0.9;
}

html.dark .header4-topbar {
    background: #000;
    color: #aaa;
}

html.dark .header4-topbar a {
    color: #ccc;
}

html.dark .header4-weather-widget {
    background: rgba(255, 255, 255, 0.1);
    color: #ddd;
}

html.dark .header4-weather-widget:hover {
    background: rgba(255, 255, 255, 0.2);
}

html.dark .header4-main-header {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

html.dark .header4-nav-link {
    color: #e0e0e0;
}

html.dark .header4-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

html.dark .header4-action-btn {
    color: #ccc;
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark .header4-action-btn:hover {
    background: var(--header4-primary);
    color: #fff;
    border-color: var(--header4-primary);
}

html.dark .header4-dropdown-menu,
html.dark .header4-search-popup,
html.dark .weather-dropdown {
    background: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #eee !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

html.dark .header4-dropdown-menu a,
html.dark .weather-dropdown li {
    color: #ccc !important;
}

html.dark .header4-dropdown-menu a:hover,
html.dark .weather-dropdown li:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
}

html.dark .header4-search-form input,
html.dark .header4-mobile-search input {
    background: #2a2a2a;
    border-color: #444;
    color: #fff;
}

html.dark .header4-search-form input:focus,
html.dark .header4-mobile-search input:focus {
    border-color: var(--header4-primary);
    background: #333;
}

html.dark .header4-drawer {
    background: #121212;
    border-right: 1px solid #333;
}

html.dark .header4-drawer-header {
    border-bottom-color: #333;
}

html.dark .header4-drawer-close {
    color: #fff;
}

html.dark .header4-mob-nav a {
    color: #ddd;
}

/* Laptop / Desktop Orta Boyut İyileştirmesi */
/* 1350px altına düşünce sıkışmalar başlıyor */
@media (max-width: 1400px) {
    .header4-logo img {
        height: 45px !important;
    }

    /* Logoyu biraz küçült */
    .header4-nav-link {
        font-size: 14px;
        padding: 10px 8px;
    }

    .header4-actions {
        gap: 6px;
    }

    .header4-action-btn {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
}

@media (max-width: 1200px) {
    .header4-logo img {
        height: 40px !important;
    }

    .header4-nav-link {
        font-size: 13px;
        padding: 8px 6px;
        font-weight: 600;
    }

    .header4-main-container {
        padding: 0 10px;
    }
}

@media (max-width: 991px) {

    /* Tablet ve Mobil: Desktop menü kapat, hamburger aç */
    .header4-topbar {
        display: none !important;
    }

    .header4-nav-desktop {
        display: none !important;
    }

    .header4-mobile-toggle {
        display: flex !important;
    }

    .header4-main-container {
        height: 64px;
        padding: 0 15px;
    }

    /* Logo alanı esnek olsun ama tamamen kaybolmasın */
    .header4-logo {
        flex: 1;
        padding-right: 15px;
        overflow: hidden;
        display: flex;
        align-items: center;
        min-width: 0;
    }

    .header4-logo img {
        height: 40px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        object-position: left center;
    }

    .header4-desktop-search {
        display: none !important;
    }

    .header4-actions {
        gap: 8px;
        margin-left: 0;
        flex-shrink: 0;
    }

    .header4-action-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    /* Küçük Mobil */
    .header4-main-container {
        height: 56px;
        padding: 0 12px;
    }

    .header4-logo {
        padding-right: 10px;
    }

    .header4-logo img {
        height: 32px !important;
    }

    .header4-action-btn {
        width: 34px;
        height: 34px;
        font-size: 14px;
        border-radius: 8px;
    }

    /* Search popup ekrana sığsın */
    .header4-search-popup {
        width: calc(100vw - 24px);
        right: 12px;
        left: 12px;
        margin-top: 5px;
    }
}