/* 
 * ELEGANT & ICONIC PROMO HEADER
 * Premium Design with Perfect Mobile Responsiveness
 */

/* ==========================================
   PROMO HEADER - ELEGANT STYLE
   ========================================== */

.promo-header {
    position: relative;
    z-index: 1001;
}

/* Elegant Bar */
.promo-bar {
    background: #0a0a0f;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    cursor: pointer;
    gap: 16px;
    min-height: 48px;
}

/* Elegant Gold Line */
.promo-bar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A227, #FFD700, #C9A227, transparent);
}

.promo-bar:hover {
    background: #0d0d12;
}

/* Elegant Badge */
.promo-live-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: transparent;
    border: 1px solid #C9A227;
    border-radius: 4px;
    flex-shrink: 0;
}

.promo-live-badge .dot {
    width: 6px;
    height: 6px;
    background: #C9A227;
    border-radius: 50%;
    animation: elegantPulse 2s ease-in-out infinite;
}

.promo-live-badge span {
    color: #C9A227;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

@keyframes elegantPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Main Text */
.promo-text-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.promo-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.promo-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.promo-text strong {
    color: #FF0055;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.promo-text .highlight {
    color: #00FF88;
    font-weight: 600;
}

/* Elegant Countdown */
.promo-countdown {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(201, 162, 39, 0.08);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: 4px;
    flex-shrink: 0;
}

.promo-countdown i {
    color: #C9A227;
    font-size: 12px;
}

.countdown-timer {
    display: flex;
    gap: 2px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
}

.countdown-segment {
    background: transparent;
    padding: 2px 4px;
    color: #FFD700;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.countdown-separator {
    color: rgba(201, 162, 39, 0.5);
    font-weight: 400;
}

/* Elegant CTA */
.promo-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.promo-cta:hover {
    border-color: #C9A227;
    color: #FFD700;
}

.promo-cta i {
    font-size: 10px;
    transition: transform 0.3s;
}

.promo-header.expanded .promo-cta {
    border-color: #C9A227;
    color: #FFD700;
}

.promo-header.expanded .promo-cta i {
    transform: rotate(180deg);
}

/* ==========================================
   EXPANDED CONTENT - ELEGANT
   ========================================== */

.promo-expanded {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #0f0f14 100%);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(201, 162, 39, 0.2);
}

.promo-header.expanded .promo-expanded {
    max-height: 1200px;
}

.promo-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 20px;
}

/* Header */
.promo-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.promo-title-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #C9A227, #FFD700);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.promo-title h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.02em;
}

.promo-title h3 span {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 400;
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.promo-close {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.promo-close:hover {
    border-color: #C9A227;
    color: #FFD700;
}

/* Offers Grid */
.promo-offers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

/* Elegant Offer Card */
.offer-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    transition: all 0.4s ease;
}

.offer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--card-accent, rgba(201, 162, 39, 0.5)), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.offer-card:hover {
    border-color: rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.03);
}

.offer-card:hover::before {
    opacity: 1;
}

/* Featured Card */
.offer-card.featured {
    --card-accent: #FFD700;
    border-color: rgba(201, 162, 39, 0.3);
    background: rgba(201, 162, 39, 0.05);
}

.offer-card.featured::before {
    opacity: 1;
}

.offer-card.vps {
    --card-accent: #8A2BE2;
}

.offer-card.domain {
    --card-accent: #00C8FF;
}

.offer-card.reseller {
    --card-accent: #FF6B6B;
}

/* Card Header */
.offer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.offer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 9px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.offer-discount {
    font-size: 20px;
    font-weight: 600;
    color: var(--card-accent, #C9A227);
}

/* Card Content */
.offer-title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0 0 8px;
    letter-spacing: 0.01em;
}

.offer-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 14px;
}

.offer-features {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 14px;
}

.offer-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
}

.offer-feature i {
    font-size: 8px;
    color: var(--card-accent, #C9A227);
}

/* Promo Code */
.promo-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed rgba(201, 162, 39, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.promo-code:hover {
    border-color: #C9A227;
    border-style: solid;
    background: rgba(201, 162, 39, 0.08);
}

.promo-code-text {
    display: flex;
    flex-direction: column;
}

.promo-code-label {
    font-size: 8px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2px;
}

.promo-code-value {
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
    letter-spacing: 0.06em;
}

.promo-code-copy {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-weight: 500;
    transition: all 0.3s;
}

.promo-code:hover .promo-code-copy {
    background: #C9A227;
    color: #0a0a0f;
}

/* Footer Links */
.promo-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.promo-footer-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.02em;
    transition: all 0.3s;
}

.promo-footer-link i {
    color: rgba(201, 162, 39, 0.6);
    font-size: 14px;
}

.promo-footer-link:hover {
    color: #FFD700;
}

.promo-footer-link:hover i {
    color: #FFD700;
}

/* ==========================================
   STICKY HEADER
   ========================================== */

#header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-main {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(15, 15, 20, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* ==========================================
   SCROLL TO TOP - ELEGANT
   ========================================== */

.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: #0a0a0f;
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 4px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    border-color: #FFD700;
    background: rgba(201, 162, 39, 0.1);
}

.scroll-to-top i {
    font-size: 16px;
    color: #C9A227;
    transition: all 0.3s;
}

.scroll-to-top:hover i {
    color: #FFD700;
    transform: translateY(-2px);
}

/* ==========================================
   MOBILE RESPONSIVE - OPTIMIZED
   ========================================== */

@media (max-width: 1200px) {
    .promo-offers {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .promo-countdown {
        display: none;
    }

    .promo-live-badge {
        padding: 5px 10px;
    }

    .promo-live-badge span {
        font-size: 9px;
    }
}

/* Mobile - Main Breakpoint */
@media (max-width: 768px) {

    /* Simplified Mobile Bar */
    .promo-bar {
        padding: 10px 16px;
        flex-direction: column;
        gap: 8px;
        min-height: auto;
    }

    /* Hide badge on small mobile */
    .promo-live-badge {
        display: none;
    }

    /* Compact text wrapper */
    .promo-text-wrapper {
        width: 100%;
        gap: 8px;
    }

    .promo-icon {
        font-size: 14px;
    }

    .promo-text {
        font-size: 11px;
        line-height: 1.3;
    }

    .promo-text strong {
        font-size: 11px;
    }

    /* Compact CTA */
    .promo-cta {
        padding: 6px 14px;
        font-size: 10px;
        gap: 5px;
    }

    .promo-cta i {
        font-size: 9px;
    }

    /* Expanded Content Mobile */
    .promo-content {
        padding: 24px 16px;
    }

    .promo-content-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        margin-bottom: 24px;
        padding-bottom: 16px;
    }

    .promo-title {
        flex-direction: column;
        gap: 10px;
    }

    .promo-title-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .promo-title h3 {
        font-size: 16px;
    }

    .promo-title h3 span {
        font-size: 11px;
    }

    .promo-close {
        position: absolute;
        right: 16px;
        top: 16px;
        width: 32px;
        height: 32px;
    }

    /* Single column offers */
    .promo-offers {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .offer-card {
        padding: 16px;
    }

    .offer-header {
        margin-bottom: 12px;
    }

    .offer-badge {
        font-size: 8px;
        padding: 3px 6px;
    }

    .offer-discount {
        font-size: 18px;
    }

    .offer-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .offer-description {
        font-size: 11px;
        margin-bottom: 12px;
        line-height: 1.4;
    }

    .offer-features {
        gap: 4px;
        margin-bottom: 12px;
    }

    .offer-feature {
        font-size: 9px;
        padding: 2px 6px;
    }

    .promo-code {
        padding: 10px;
    }

    .promo-code-value {
        font-size: 12px;
    }

    .promo-code-copy {
        font-size: 9px;
        padding: 4px 6px;
    }

    /* Footer mobile */
    .promo-footer {
        flex-direction: column;
        gap: 12px;
        padding-top: 20px;
    }

    .promo-footer-link {
        font-size: 11px;
    }

    .promo-footer-link i {
        font-size: 12px;
    }

    /* Scroll to top mobile */
    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }

    .scroll-to-top i {
        font-size: 14px;
    }
}

/* Extra Small Mobile */
@media (max-width: 420px) {
    .promo-bar {
        padding: 8px 12px;
    }

    .promo-text {
        font-size: 10px;
    }

    .promo-text .highlight {
        display: inline;
    }

    .promo-cta {
        padding: 5px 12px;
        font-size: 9px;
    }

    .promo-content {
        padding: 20px 12px;
    }

    .offer-card {
        padding: 14px;
    }

    .offer-discount {
        font-size: 16px;
    }

    .offer-title {
        font-size: 13px;
    }

    .offer-description {
        font-size: 10px;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {

    #header,
    .header-main {
        position: -webkit-sticky;
        position: sticky;
    }

    /* iOS Safari mobile menu fixes */
    .navbar ul.mainmenu {
        -webkit-overflow-scrolling: touch;
        overflow-y: scroll !important;
    }

    .navbar-mobile ul.mainmenu {
        left: 0 !important;
        -webkit-transform: translateX(0) !important;
        transform: translateX(0) !important;
    }

    /* Prevent iOS Safari issues with fixed positioning */
    .mobile-nav-toggle.bi-x {
        position: fixed !important;
        top: env(safe-area-inset-top, 20px) !important;
        right: 20px !important;
        z-index: 999999 !important;
    }

    /* Safe area padding for notched iPhones */
    .navbar ul.mainmenu {
        padding-top: calc(80px + env(safe-area-inset-top, 0px)) !important;
        padding-bottom: env(safe-area-inset-bottom, 30px) !important;
    }
}

/* iPhone 13/14 Pro specific notch handling */
@media screen and (max-width: 430px) {
    .navbar ul.mainmenu {
        padding-top: calc(80px + env(safe-area-inset-top, 0px)) !important;
    }

    .mobile-nav-toggle.bi-x {
        top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    }
}

/* Landscape phone optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .promo-header.expanded .promo-expanded {
        max-height: 80vh;
        overflow-y: auto;
    }

    .promo-offers {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================
   MOBILE HEADER & MENU VISIBILITY FIXES
   ========================================== */

@media (max-width: 991px) {

    /* Ensure header is visible */
    #header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1000 !important;
        background: #0a0a0f !important;
        padding: 10px 0 !important;
    }

    /* Mobile Nav Toggle - MUST BE VISIBLE */
    .mobile-nav-toggle {
        display: block !important;
        color: #fff !important;
        font-size: 28px !important;
        cursor: pointer;
        z-index: 1002 !important;
        position: relative;
        padding: 10px;
        background: transparent !important;
        border: none !important;
        line-height: 1;
    }

    .mobile-nav-toggle:hover {
        color: #FFD700 !important;
    }

    /* X button when open */
    .mobile-nav-toggle.bi-x {
        color: #fff !important;
        position: fixed;
        right: 20px;
        top: 20px;
        z-index: 99999 !important;
        font-size: 32px !important;
    }

    /* Navbar container */
    .navbar {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100%;
    }

    /* Logo */
    .navbar .logo-mob-nav {
        display: block !important;
    }

    .navbar .logo-mob-nav img {
        max-height: 42px;
        width: auto;
    }

    /* Mobile menu panel */
    .navbar ul.mainmenu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: linear-gradient(180deg, #0a0a0f 0%, #14141e 100%) !important;
        padding: 80px 24px 30px !important;
        overflow-y: auto !important;
        z-index: 99998 !important;
        transition: left 0.3s ease !important;
        border-right: 1px solid rgba(201, 162, 39, 0.3) !important;
        box-shadow: 5px 0 40px rgba(0, 0, 0, 0.6) !important;
        display: block !important;
    }

    /* Menu open state */
    .navbar-mobile ul.mainmenu {
        left: 0 !important;
    }

    /* Menu items */
    .navbar ul.mainmenu li {
        display: block !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .navbar ul.mainmenu li a {
        display: block !important;
        padding: 16px 12px !important;
        color: rgba(255, 255, 255, 0.9) !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        border: none !important;
        transition: all 0.3s !important;
        text-decoration: none !important;
    }

    .navbar ul.mainmenu li a:hover {
        color: #FFD700 !important;
        background: rgba(201, 162, 39, 0.08) !important;
        padding-left: 20px !important;
    }

    .navbar ul.mainmenu li a span {
        color: inherit !important;
    }

    /* Dropdown items */
    .navbar ul.mainmenu .dropdown ul {
        position: static !important;
        background: rgba(0, 0, 0, 0.3) !important;
        padding: 0 !important;
        margin: 0 !important;
        box-shadow: none !important;
        border: none !important;
        display: none;
    }

    .navbar ul.mainmenu .dropdown.active ul,
    .navbar ul.mainmenu .dropdown ul.dropdown-active {
        display: block !important;
    }

    .navbar ul.mainmenu .dropdown ul li a {
        padding-left: 32px !important;
        font-size: 14px !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }

    /* Overlay */
    .navbar-mobile::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 99997;
        backdrop-filter: blur(3px);
    }
}

/* Small phones */
@media (max-width: 480px) {
    .mobile-nav-toggle {
        font-size: 26px !important;
        padding: 8px;
    }

    .navbar .logo-mob-nav img {
        max-height: 36px;
    }

    .navbar ul.mainmenu {
        width: 90% !important;
        max-width: 280px !important;
        padding: 70px 20px 24px !important;
    }

    .navbar ul.mainmenu li a {
        padding: 14px 10px !important;
        font-size: 14px !important;
    }
}

/* ==========================================
   HEADER DROPDOWN FIXES
   Account, Language, Currency dropdowns
   ========================================== */

/* Top header bar - ensure it's above other content */
.header-main {
    position: relative;
    z-index: 1100 !important;
}

.header-main .social {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1101;
}

/* Custom dropdown container */
.custom-dropdown {
    position: relative;
    z-index: 1102;
}

/* Dropdown toggle button */
.custom-dropdown .dropdown-toggle,
.custom-dropdown button {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 8px 14px !important;
    font-size: 13px !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1103;
}

.custom-dropdown .dropdown-toggle:hover,
.custom-dropdown button:hover {
    background: rgba(201, 162, 39, 0.1) !important;
    border-color: #C9A227 !important;
}

.custom-dropdown .dropdown-toggle i,
.custom-dropdown button i {
    font-size: 14px;
}

/* Dropdown menu */
.custom-dropdown .dropdown-menu,
.custom-dropdown>ul {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: auto !important;
    min-width: 180px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    background: #0a0a0f !important;
    border: 1px solid rgba(201, 162, 39, 0.3) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    z-index: 99999 !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

/* Show dropdown on hover/click */
.custom-dropdown:hover .dropdown-menu,
.custom-dropdown:focus-within .dropdown-menu,
.custom-dropdown.open .dropdown-menu,
.custom-dropdown.show .dropdown-menu,
.custom-dropdown .dropdown-menu.show,
.custom-dropdown>ul.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Dropdown arrow */
.custom-dropdown .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    width: 12px;
    height: 12px;
    background: #0a0a0f;
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-bottom: none;
    border-right: none;
    transform: rotate(45deg);
}

/* Dropdown items */
.custom-dropdown .dropdown-menu li,
.custom-dropdown>ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-dropdown .dropdown-menu li a,
.custom-dropdown>ul li a {
    display: block !important;
    padding: 10px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    background: transparent !important;
}

.custom-dropdown .dropdown-menu li a:hover,
.custom-dropdown>ul li a:hover {
    background: rgba(201, 162, 39, 0.1) !important;
    color: #FFD700 !important;
    padding-left: 20px !important;
}

/* Language dropdown specific */
.custom-dropdown .dropdown-menu.language {
    max-height: 250px;
}

/* Notification dropdown specific */
.custom-dropdown .dropdown-menu.notification {
    min-width: 280px;
    max-width: 320px;
}

.custom-dropdown .dropdown-menu.notification li a {
    white-space: normal;
    line-height: 1.4;
}

/* Main navigation z-index */
#header {
    z-index: 1000 !important;
}

.navbar {
    position: relative;
    z-index: 1001;
}

.navbar .dropdown ul {
    z-index: 99999 !important;
}

/* ==========================================
   MOBILE HEADER DROPDOWNS
   ========================================== */

@media (max-width: 991px) {

    /* Stack header elements properly on mobile */
    .header-main .social {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
        padding: 10px 0;
    }

    .custom-dropdown {
        flex: 0 0 auto;
        position: relative;
    }

    .custom-dropdown .dropdown-toggle,
    .custom-dropdown button {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }

    /* Right-aligned dropdown on mobile to prevent cutoff */
    .custom-dropdown .dropdown-menu,
    .custom-dropdown>ul {
        position: absolute !important;
        left: auto !important;
        right: 0 !important;
        top: 100% !important;
        min-width: 180px !important;
        max-width: 250px !important;
        width: auto !important;
        max-height: 60vh !important;
        margin-top: 6px !important;
        border-radius: 8px !important;
    }

    .custom-dropdown .dropdown-menu::before {
        display: none;
    }

    .custom-dropdown .dropdown-menu li a,
    .custom-dropdown>ul li a {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        white-space: nowrap;
    }

    .custom-dropdown .dropdown-menu li:last-child a,
    .custom-dropdown>ul li:last-child a {
        border-bottom: none;
    }

    /* Hide Live Chat on mobile */
    .social-item {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .header-main .social {
        gap: 6px;
        padding: 8px 0;
        justify-content: center;
    }

    .custom-dropdown .dropdown-toggle,
    .custom-dropdown button {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* Fixed center dropdown on very small screens */
    .custom-dropdown .dropdown-menu,
    .custom-dropdown>ul {
        position: fixed !important;
        left: 10px !important;
        right: 10px !important;
        top: auto !important;
        width: calc(100vw - 20px) !important;
        max-width: calc(100vw - 20px) !important;
    }

    .custom-dropdown .dropdown-toggle i,
    .custom-dropdown button i {
        font-size: 16px;
    }
}