/* ========================= RESET AND BASE ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ========================= PREMIUM HEADER ========================= */
.header-page-site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.98) 0%,
            rgba(25, 25, 30, 0.95) 25%,
            rgba(15, 15, 20, 0.98) 50%,
            rgba(30, 30, 35, 0.95) 75%,
            rgba(10, 10, 10, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid rgba(255, 107, 53, 0.2);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: visible;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.header-page-site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(270deg,
            transparent 0%,
            rgba(255, 107, 53, 0.03) 25%,
            rgba(247, 147, 30, 0.05) 50%,
            rgba(255, 204, 2, 0.03) 75%,
            transparent 100%);
    background-size: 400% 100%;
    animation: header-page-gradient-flow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes header-page-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 200% 50%; }
    75% { background-position: 300% 50%; }
}

.header-page-site-header.scrolled {
    background: linear-gradient(135deg,
            rgba(5, 5, 5, 0.99) 0%,
            rgba(15, 15, 20, 0.98) 25%,
            rgba(20, 20, 25, 0.99) 50%,
            rgba(15, 15, 20, 0.98) 75%,
            rgba(5, 5, 5, 0.99) 100%);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 107, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
    border-bottom-color: rgba(255, 107, 53, 0.4);
}

.header-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    position: relative;
    z-index: 10;
    gap: 1rem;
}

/* ========================= FLOATING PARTICLES ========================= */
.header-page-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.header-page-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: header-page-particle-float 15s infinite linear;
    opacity: 0;
}

.header-page-particle:nth-child(odd) {
    background: radial-gradient(circle, rgba(255, 107, 53, 0.8) 0%, transparent 70%);
    width: 4px;
    height: 4px;
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.6);
}

.header-page-particle:nth-child(even) {
    background: radial-gradient(circle, rgba(247, 147, 30, 0.6) 0%, transparent 70%);
    width: 3px;
    height: 3px;
    box-shadow: 0 0 10px rgba(247, 147, 30, 0.4);
}

.header-page-particle:nth-child(3n) {
    background: radial-gradient(circle, rgba(255, 204, 2, 0.7) 0%, transparent 70%);
    width: 2px;
    height: 2px;
    box-shadow: 0 0 8px rgba(255, 204, 2, 0.5);
}

@keyframes header-page-particle-float {
    0% {
        transform: translateX(-20px) translateY(80px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    20% {
        transform: translateX(20vw) translateY(60px) rotate(90deg);
        opacity: 0.8;
    }
    40% {
        transform: translateX(40vw) translateY(40px) rotate(180deg);
        opacity: 0.6;
    }
    60% {
        transform: translateX(60vw) translateY(20px) rotate(270deg);
        opacity: 0.8;
    }
    80% {
        transform: translateX(80vw) translateY(10px) rotate(360deg);
        opacity: 0.4;
    }
    100% {
        transform: translateX(calc(100vw + 20px)) translateY(-10px) rotate(450deg);
        opacity: 0;
    }
}

/* ========================= LOGO SECTION ========================= */
.header-page-logo-section {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    position: relative;
    z-index: 15;
    margin-right: 0;
}

.header-page-logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #ffcc02 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 19px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4), 0 0 20px rgba(255, 107, 53, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.header-page-logo-icon::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.3), transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.8s ease;
    opacity: 0;
}

.header-page-logo-icon:hover::before {
    animation: header-page-logo-shine 1s ease-in-out;
}

@keyframes header-page-logo-shine {
    0% {
        transform: rotate(0deg) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: rotate(180deg) scale(1);
    }
    100% {
        transform: rotate(360deg) scale(0);
        opacity: 0;
    }
}

.header-page-logo-icon:hover {
    transform: translateY(-6px) rotate(-8deg) scale(1.1);
    box-shadow: 0 25px 50px rgba(255, 107, 53, 0.6), 0 0 40px rgba(255, 107, 53, 0.4),
        0 0 60px rgba(247, 147, 30, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.4);
    filter: drop-shadow(0 0 20px rgba(255, 107, 53, 0.8));
}

/* ========================= MOBILE MENU TOGGLE ========================= */
.header-page-mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.header-page-mobile-toggle:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.5);
    transform: scale(1.05);
}

.header-page-mobile-toggle span {
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 0 8px rgba(255, 107, 53, 0.5);
}

.header-page-mobile-toggle span:not(:last-child) {
    margin-bottom: 5px;
}

.header-page-mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-page-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.header-page-mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================= NAVIGATION MENU ========================= */
.header-page-nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
    position: relative;
    z-index: 15;
    flex-shrink: 0;
    min-width: 0;
    transition: opacity 0.3s ease;
}

.header-page-nav-item {
    position: relative;
    flex-shrink: 0;
}

.header-page-nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    display: block;
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
    background: none;
    white-space: nowrap;
}

.header-page-nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.15) 50%, rgba(255, 204, 2, 0.1) 100%);
    transform: scaleX(0) scaleY(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: -1;
    border-radius: inherit;
}

.header-page-nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ffcc02);
    transform: translateX(-50%);
    transition: width 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 1px;
    box-shadow: 0 0 10px currentColor;
}

.header-page-nav-link:hover::before {
    transform: scaleX(1) scaleY(1);
}

.header-page-nav-link:hover::after {
    width: 80%;
}

.header-page-nav-link:hover {
    color: #ff6b35;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.header-page-nav-link.active {
    color: white;
    background: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
}

.header-page-nav-link.active::after {
    width: 80%;
}

/* ========================= ADVANCED SEARCH STYLING ========================= */
.header-page-search-container {
    position: relative;
    flex: 1;
    max-width: 320px;
    min-width: 200px;
    margin: 0 0.8rem;
    z-index: 1000;
}

.header-page-search-wrapper {
    position: relative;
    width: 100%;
}

.header-page-search-input {
    width: 100%;
    height: 40px;
    padding: 0 50px 0 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    color: white;
    font-size: 11px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(150%);
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.header-page-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    transition: all 0.3s ease;
}

.header-page-search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 107, 53, 0.6);
    box-shadow: 0 8px 30px rgba(255, 107, 53, 0.2), 0 0 0 4px rgba(255, 107, 53, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.header-page-search-input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
    transform: translateX(4px);
}

.header-page-search-icon-wrapper {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-page-search-icon {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
}

.header-page-search-input:focus~.header-page-search-icon-wrapper .header-page-search-icon {
    color: #ff6b35;
    transform: rotate(90deg) scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 107, 53, 0.6));
}

.header-page-search-spinner {
    position: absolute;
    width: 18px;
    height: 18px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header-page-search-spinner.active {
    opacity: 1;
    visibility: visible;
}

.header-page-search-spinner.active~.header-page-search-icon {
    opacity: 0;
    visibility: hidden;
}

.header-page-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 107, 53, 0.2);
    border-top: 2px solid #ff6b35;
    border-radius: 50%;
    animation: header-page-spin 0.8s linear infinite;
}

@keyframes header-page-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================= SEARCH DROPDOWN ========================= */
.header-page-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.98) 0%, rgba(25, 25, 30, 0.95) 50%, rgba(20, 20, 25, 0.98) 100%);
    backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 107, 53, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    max-height: 480px;
    overflow: hidden;
}

.header-page-search-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.98), rgba(25, 25, 30, 0.95));
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
}

.header-page-search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.header-page-dropdown-content {
    position: relative;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 53, 0.4) transparent;
}

.header-page-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.header-page-dropdown-content::-webkit-scrollbar-track {
    background: transparent;
}

.header-page-dropdown-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.4);
    border-radius: 3px;
}

.header-page-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.6);
}

/* ========================= SEARCH RESULTS ========================= */
.header-page-search-results {
    padding: 8px 0;
}

.header-page-result-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    margin: 0 8px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.header-page-result-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 107, 53, 0.08),
            rgba(247, 147, 30, 0.1),
            rgba(255, 204, 2, 0.08),
            transparent);
    transition: left 0.6s ease;
}

.header-page-result-item:hover::before {
    left: 100%;
}

.header-page-result-item:hover {
    background: rgba(240, 224, 77, 0.08);
    transform: translateX(4px);
}

.header-page-result-link {
    display: flex;
    align-items: center;
    width: 100%;
    text-decoration: none;
    color: inherit;
    gap: 12px;
}

.header-page-result-image {
    position: relative;
    width: 70px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(247, 147, 30, 0.1));
}

.header-page-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.header-page-result-item:hover .header-page-result-image img {
    transform: scale(1.05);
}

.header-page-result-content {
    flex: 1;
    min-width: 0;
}

.header-page-result-title {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin: 0 0 4px 0;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.header-page-result-title mark {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.3), rgba(247, 147, 30, 0.3));
    color: #ff6b35;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
}

.header-page-result-details {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

.header-page-result-details span:not(:last-child):after {
    content: "•";
    margin-left: 8px;
    color: rgba(255, 107, 53, 0.6);
    font-weight: bold;
}

.header-page-result-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.header-page-current-price {
    font-weight: 700;
    color: #ff6b35;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.3);
}

.header-page-original-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: line-through;
}

/* ========================= POPULAR SEARCHES ========================= */
.header-page-popular-section {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 107, 53, 0.02);
}

.header-page-popular-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
}

.header-page-popular-header i {
    color: #ff6b35;
    font-size: 14px;
    animation: header-page-fire-flicker 2s ease-in-out infinite alternate;
}

@keyframes header-page-fire-flicker {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) rotate(2deg);
        opacity: 1;
    }
    100% {
        transform: scale(1.05) rotate(-1deg);
        opacity: 0.9;
    }
}

.header-page-popular-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.header-page-popular-tag {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-page-popular-tag:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    color: #ff6b35;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

/* ========================= NO RESULTS ========================= */
.header-page-no-results {
    padding: 40px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
}

.header-page-no-results-icon i {
    font-size: 48px;
    color: rgba(255, 107, 53, 0.3);
    animation: header-page-search-pulse 2s ease-in-out infinite;
}

@keyframes header-page-search-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.header-page-no-results-text h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin: 16px 0 8px 0;
}

.header-page-no-results-text p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.4;
}

/* ========================= VIEW ALL ========================= */
.header-page-view-all {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.06));
    padding: 12px 16px;
}

.header-page-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ff6b35;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.header-page-view-all-link:hover {
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

/* ========================= FAVORITES & USER ========================= */
.header-page-favorite-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.4);
    animation: header-page-badge-pulse 2s ease-in-out infinite;
}

.header-page-favorite-badge.show {
    display: flex;
}

@keyframes header-page-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-page-user-name {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}

.header-page-logout-btn {
    background: none !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-family: inherit !important;
    font-size: 11px !important;
    padding: 7px 12px !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.header-page-logout-btn:hover {
    color: #ff6b35;
    transform: translateY(-2px) scale(1.05);
    text-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* ========================= LANGUAGE SELECTOR ========================= */
.language-selector {
    position: fixed;
    top: 62px;
    right: 12px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-family: "Segoe UI", sans-serif;
}

.language-selector .btn {
    background: linear-gradient(135deg, #ff7f27, #ff5200);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 0 6px rgba(255, 255, 255, 0.25);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

.language-selector .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 128, 0, 0.5);
    background: linear-gradient(135deg, #ff5200, #ff944d);
}

.language-selector .btn:active {
    transform: translateY(-1px) scale(1.02);
}

.language-selector .dropdown-menu {
    min-width: 90px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgb(255, 107, 53), rgb(247, 147, 30), rgb(255, 204, 2));
    border: 1px solid rgba(255, 128, 0, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    padding: 4px 0;
    margin-top: 6px;
}

.language-selector .dropdown-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    color: #333;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.language-selector .dropdown-item:hover {
    background: linear-gradient(135deg, #fff5ec, #ffe0cc);
    transform: translateX(4px) scale(1.03);
    color: #ff5200;
}

/* ========================= RESPONSIVE BREAKPOINTS ========================= */

/* ========================= MOBILE RESPONSIVE ========================= */
@media (max-width: 768px) {
    .header-page-container {
        padding: 0 0.8rem;
        height: 60px;
        flex-wrap: nowrap;
        gap: 0.6rem;
    }

    /* Mobile toggle - First position (left side) */
    .header-page-mobile-toggle {
        display: flex;
        order: 1;
        flex-shrink: 0;
    }

    /* Logo - Second position (middle) */
    .header-page-logo-section {
        order: 2;
        flex-shrink: 0;
        margin: 0;
    }

    .header-page-logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    /* Search - Third position (takes remaining space on right) */
    .header-page-search-container {
        order: 3;
        flex: 1;
        max-width: none;
        min-width: 0;
        margin: 0;
    }

    .header-page-search-input {
        height: 44px;
        padding: 0 45px 0 14px;
        font-size: 12px;
    }

    /* Navigation - Collapsible Mobile Menu */
    .header-page-nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(20, 20, 25, 0.98));
        backdrop-filter: blur(30px) saturate(180%);
        border-top: 1px solid rgba(255, 107, 53, 0.2);
        border-bottom: 1px solid rgba(255, 107, 53, 0.2);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        padding: 0;
    }

    .header-page-nav-menu.mobile-active {
        max-height: calc(100vh - 60px);
        opacity: 1;
        padding: 1rem 0;
        overflow-y: auto;
    }

    .header-page-nav-item {
        width: 100%;
        padding: 0 1rem;
    }

    .header-page-nav-link {
        width: 100%;
        padding: 13px 18px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 12px;
        margin-bottom: 4px;
    }

    .header-page-search-dropdown {
        left: -0.8rem;
        right: -0.8rem;
        max-height: 360px;
    }

    .header-page-result-image {
        width: 60px;
        height: 45px;
    }

    .header-page-result-title {
        font-size: 14px;
    }

    .header-page-result-details {
        flex-direction: column;
        gap: 2px;
    }

    .header-page-result-details span:not(:last-child):after {
        display: none;
    }

    .language-selector {
        top: 68px;
        right: 8px;
    }

    .language-selector .btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .header-page-container {
        padding: 0 0.6rem;
        gap: 0.5rem;
    }

    .header-page-logo-icon {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }

    .header-page-search-input {
        height: 42px;
        padding: 0 42px 0 12px;
        font-size: 11px;
    }

    .header-page-mobile-toggle {
        width: 38px;
        height: 38px;
    }

    .header-page-mobile-toggle span {
        width: 20px;
    }

    .header-page-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .header-page-search-dropdown {
        left: -0.6rem;
        right: -0.6rem;
        max-height: 300px;
    }

    .header-page-result-item {
        padding: 10px 12px;
    }

    .header-page-result-image {
        width: 50px;
        height: 40px;
    }

    .header-page-result-title {
        font-size: 13px;
    }

    .header-page-popular-section {
        padding: 12px;
    }

    .header-page-no-results {
        padding: 30px 15px;
    }
}

/* Extra Small Screens */
@media (max-width: 360px) {
    .header-page-container {
        padding: 0 0.5rem;
        gap: 0.4rem;
    }

    .header-page-search-input {
        font-size: 11px;
        padding: 0 40px 0 10px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .header-page-nav-menu.mobile-active {
        max-height: calc(100vh - 60px);
    }
}