* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    background: #0e1a19;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
}

.top-header-bar {
    width: 100%;
    max-width: 1920px;
    height: 40px;
    position: relative;
    margin: 0 auto;
    background: linear-gradient(180deg, #0a1310 0%, #09120b 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2%;
    z-index: 5;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.top-header-background {
    width: 100%;
    height: 40px;
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, #0a1310 0%, #09120b 100%);
}

.top-header-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #68C262 0%, #73CF8A 100%);
    border: 2px solid #1F2928;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0a0f0f;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(104, 194, 98, 0.5);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.top-menu-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.top-menu-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: pointer;
}

.top-menu-item svg {
    width: 16px;
    height: 16px;
    color: #68C262;
    flex-shrink: 0;
}

.top-menu-item span {
    transition: all 0.3s ease;
}

.top-menu-item:hover span {
    background: linear-gradient(90deg, #BDDF62 0%, #73CF8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.top-menu-item:hover svg {
    color: #73CF8A;
}



/* Main Header Container */
.header-container {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 100;
    background: #020b0b;
    /* Very dark background */
    display: flex;
    flex-direction: column;
}

/* Header Top Row */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 2% 5px 2%;
    /* Adjusted horizontal padding */
    background: #020b0b;
    border-bottom: none;
    /* Removed separator */
    height: 60px;
    /* Increased height slightly to accommodate padding */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hamburger-menu {
    display: none;
}

.logo-container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    height: 36px;
    width: auto;
    display: block;
    /* Ensure it centers properly with the taller right elements */
    margin-top: 2px;
}

/* Header Right Actions */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon-btn {
    width: 44px;
    /* Increased +20% (37px -> 44px) */
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.3s;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.app-icon rect {
    fill: #4CAF50;
    /* Green bg for Plus icon */
}

/* Auth Buttons */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* User Logged In Styles */
.auth-buttons-logged-in {
    gap: 10px;
}

.btn-offers {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #1F2928;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    cursor: pointer;
    height: 35px;
    /* Reduced -20% (44px -> 35px) */
}

.btn-offers-icon {
    color: white;
}

.btn-text-offers {
    font-size: 12px;
    font-weight: 600;
    color: white;
}

.btn-login {
    background: linear-gradient(180deg, #78c04d 0%, #2e8b57 100%);
    /* Green Gradient */
    border: 1px solid #7cb342;
    color: white;
    padding: 0 30px;
    height: 38px;
    /* Reduced height & Increased width */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    /* Adjusted font */
    transition: filter 0.3s;
    margin-left: 15px;
    /* Added spacing from Teklifler */
}

.btn-login:hover {
    filter: brightness(1.1);
}

.btn-register {
    background: linear-gradient(180deg, #ffca28 0%, #f57c00 100%);
    /* Orange Gradient */
    border: 1px solid #ffa000;
    color: white;
    /* Changed to white to match image */
    padding: 0 30px;
    height: 38px;
    /* Reduced height & Increased width */
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    /* Adjusted font */
    transition: filter 0.3s;
}

.btn-register:hover {
    filter: brightness(1.1);
}

/* Header Bottom Row (Navigation) */
.header-bottom {
    background: #020b0b;
    padding: 8px 0 10px 0;
    /* Tighter padding */
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 25px;
    /* Slightly tighter gap */
    flex-wrap: wrap;
    justify-content: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    opacity: 1;
    /* Removed opacity 0.8 to make colors pop */
    transition: transform 0.2s;
}

.nav-item:hover {
    transform: translateY(-2px);
    /* Slight lift instead of opacity change */
}

.nav-item img {
    height: 24px;
    /* Slightly adjusted size */
    width: auto;
    /* Removed filter: brightness(0) invert(1) to restore original colors */
    object-fit: contain;
}

.nav-item span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
}

/* Hide old header stuff */
.top-header-bar {
    display: none !important;
}

.header-background,
.top-header-background {
    display: none;
}

/* Logged In Extras */
.btn-balance {
    background: #1F2928;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 0 14px;
    height: 44px;
    /* Increased +20% */
    display: flex;
    align-items: center;
    color: white;
}

.btn-balance-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: right;
}

.balance-label {
    font-size: 9px;
    color: #aaa;
}

.balance-amount {
    font-size: 12px;
    font-weight: 700;
    color: #4CAF50;
}

.btn-deposit {
    background: #4CAF50;
    height: 44px;
    /* Increased +20% */
    padding: 0 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    color: white;
}

.btn-profile {
    width: 44px;
    height: 44px;
    /* Increased +20% */
    border-radius: 50%;
    background: #1F2928;
    border: 1px solid #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
}

/* Language Switcher */



/* Overflow Menu Button */
.overflow-menu-btn {
    position: relative;
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    background: rgba(31, 41, 40, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(95, 195, 99, 0.3);
    transition: all 0.3s ease;
    padding: 8px 10px;
    flex-shrink: 0;
    height: fit-content;
    z-index: 10;
}

.overflow-menu-btn:hover {
    background: rgba(31, 41, 40, 0.8);
    border-color: rgba(95, 195, 99, 0.6);
}

.overflow-menu-btn span {
    width: 4px;
    height: 4px;
    background: #68C262;
    border-radius: 50%;
    display: block;
    transition: all 0.3s ease;
}

.overflow-menu-btn:hover span {
    background: #73CF8A;
}

/* Overflow Dropdown */
.overflow-dropdown {
    position: fixed;
    background: linear-gradient(180deg, #0a1213 0%, #0a0f0f 100%);
    border: 1px solid rgba(95, 195, 99, 0.3);
    border-radius: 12px;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 99999;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.overflow-dropdown.active {
    display: flex;
}

.overflow-dropdown .overflow-nav-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(31, 41, 40, 0.3);
}

.overflow-dropdown .overflow-nav-item:hover {
    background: rgba(31, 41, 40, 0.6);
}

.overflow-dropdown .overflow-nav-item img {
    width: 24px;
    height: 24px;
}

.overflow-dropdown .overflow-nav-item span {
    font-size: 13px;
    white-space: nowrap;
}

/* Responsive için media queries - sadece masaüstü */


/* Responsive için media queries - Desktop adjustments */

@media (max-width: 2560px) {

    /* 2K (2560x1440) - Keep sleek */
    .logo {
        height: 36px;
        width: 131px;
    }

    .nav-menu {
        gap: 25px;
    }

    .nav-item {
        font-size: 18px;
        /* Increased +10% more */
        gap: 6px;
    }

    .nav-item img {
        height: 40px;
        /* Increased +10% more */
        width: auto;
    }

    .auth-buttons {
        gap: 12px;
        height: 44px;
    }

    .btn-offers {
        height: 35px;
        padding: 0 10px;
    }

    .btn-text-offers {
        font-size: 11px;
    }

    .btn-login,
    .btn-register {
        padding: 0 30px;
        height: 38px;
        border-radius: 6px;
    }

    .btn-text-login,
    .btn-text-register {
        font-size: 15px;
    }
}

@media (max-width: 1920px) {

    /* 1080p - Keep identical sleekness */
    .logo {
        height: 36px;
        width: 131px;
    }

    .nav-menu {
        gap: 20px;
        max-width: none;
    }

    .nav-item {
        font-size: 17px;
        /* Increased +10% more */
        gap: 6px;
    }

    .nav-item img {
        height: 37px;
        /* Increased +10% more */
        width: auto;
    }

    .auth-buttons {
        gap: 12px;
        height: 44px;
    }

    .btn-offers {
        height: 35px;
        padding: 0 10px;
    }

    .btn-text-offers {
        font-size: 11px;
    }

    .btn-login,
    .btn-register {
        padding: 0 28px;
        height: 38px;
    }

    .btn-text-login,
    .btn-text-register {
        font-size: 15px;
    }
}

/* Responsive Styles for New Header Layout */

@media (max-width: 1200px) {
    .nav-menu {
        gap: 20px;
    }

    .nav-item img {
        height: 20px;
    }

    .nav-item span {
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    .header-top {
        padding: 10px 15px;
    }

    .logo {
        height: 24px;
        /* Ensure compact size */
    }

    /* Allow scrolling for nav on smaller screens */
    .header-bottom {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        /* smooth scrolling iOS */
    }

    .nav-menu {
        flex-wrap: nowrap;
        padding: 0 15px;
        width: 100%;
        justify-content: flex-start;
    }

    .nav-item {
        flex: 0 0 auto;
        /* Do not shrink */
        min-width: 60px;
    }

    /* Adjust buttons text or hide if too crowded */
    .btn-text-login,
    .btn-text-register,
    .btn-text-offers {
        font-size: 13px;
        padding: 0 5px;
    }

    .btn-login,
    .btn-register {
        padding: 0 10px;
    }
}

@media (max-width: 768px) {
    .header-top {
        height: auto;
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-left {
        width: 100%;
        justify-content: space-between;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .logo {
        height: 28px;
    }

    .btn-text-offers {
        display: none;
        /* Hide text on mobile to save space */
    }

    .btn-offers {
        padding: 0 8px;
        width: auto;
    }

    .auth-buttons {
        gap: 8px;
    }

    /* Logged in mobile tweaks */
    .balance-label {
        display: none;
    }

    .btn-balance-text {
        text-align: center;
    }

    .btn-text-deposit {
        display: none;
    }

    .btn-deposit {
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .header-icon-btn {
        width: 32px;
        height: 32px;
    }

    .btn-login,
    .btn-register {
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }

    .nav-item img {
        height: 22px;
    }
}

@media (max-width: 1024px) {

    /* Hide header bottom row (navigation) on mobile/tablet */
    .header-bottom {
        display: none !important;
    }

    /* Hide extra icons on mobile: Search, App Icon, Offers */
    .header-icon-btn,
    .app-icon,
    .btn-offers {
        display: none !important;
    }

    /* Ensure simplified header layout */
    .header-top {
        height: 60px;
        /* Keep consistent height */
        padding: 0 5%;
        /* Reset padding for mobile */
        justify-content: space-between;
    }

    .header-left {
        width: auto;
        /* Allow natural width */
    }

    .header-right {
        width: auto;
        /* Allow natural width */
        gap: 10px;
        /* Spacing between Login/Register */
        border-top: none;
        /* Remove border if present */
        padding-top: 0;
    }

    /* Ensure Login/Register are visible and styled */
    .btn-login,
    .btn-register {
        margin-left: 0;
        /* Reset margin */
        height: 38px;
        /* Maintain height */
        padding: 0 15px;
        /* Adjust padding for mobile if needed */
    }

    .logo {
        height: 32px;
        /* Adjust logo size for mobile if needed */
        width: auto;
    }
}