/* ==========================================
   TARQEYAH PAY - FLOATING GLASS HEADER
   Ultra-Modern Design System
   ========================================== */

/* ==========================================
   PAGE PROGRESS BAR
   ========================================== */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899);
    z-index: 10001;
    transition: width 0.1s ease-out;
}

.progress-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8));
    filter: blur(10px);
}

/* ==========================================
   FLOATING HEADER MAIN
   ========================================== */
.glass-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 4rem);
    max-width: 1400px;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-header::before {
    content: '';
    position: absolute;
    inset: -50%;
    /*background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);*/
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.glass-header.scrolled::before {
    opacity: 1;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.75rem;
    background: rgba(13, 15, 16, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.glass-header.scrolled .header-inner {
    background: rgba(13, 15, 16, 0.95);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* ==========================================
   LOGO SECTION
   ========================================== */
.logo-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.logo-circle {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.logo-brand:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
}

.logo-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.4), transparent 70%);
    animation: logoPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================
   DESKTOP NAVIGATION
   ========================================== */
.main-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 10;
}

.nav-link {
    position: relative;
    padding: 0.65rem 1rem;
    color: #A9ADB1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.nav-link:hover {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.15);
}

.link-text {
    position: relative;
    z-index: 2;
}

.link-bar {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    transition: width 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

.nav-link:hover .link-bar,
.nav-link.active .link-bar {
    width: 60%;
}

/* ==========================================
   HEADER CONTROLS
   ========================================== */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    pointer-events: auto;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.lang-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.lang-globe svg {
    width: 18px;
    height: 18px;
    stroke: #3B82F6;
}

.lang-label {
    font-size: 0.9rem;
    font-weight: 700;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-link {
    padding: 0.6rem 1.25rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.btn-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #3B82F6;
}

.btn-gradient {
    position: relative;
    padding: 0.6rem 1.5rem;
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    pointer-events: auto;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

.btn-content {
    position: relative;
    z-index: 2;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.btn-gradient:hover .btn-shine {
    left: 100%;
}

/* ==========================================
   MOBILE MENU BURGER - FIXED
   ========================================== */
.menu-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 5px;
    padding: 0;
    position: relative;
    z-index: 10000;
    pointer-events: auto !important;
}

.menu-burger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.menu-burger:active {
    transform: scale(0.95);
}

.burger-line {
    width: 22px;
    height: 2px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.menu-burger.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-burger.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-burger.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================
   MOBILE SLIDE MENU
   ========================================== */
.mobile-slide-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.3s ease;
}

.mobile-slide-menu.active {
    pointer-events: auto;
}

.slide-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-slide-menu.active .slide-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
}

.slide-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 380px;
    background: rgba(13, 15, 16, 0.98);
    backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

[dir="rtl"] .slide-menu-panel {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
}

.mobile-slide-menu.active .slide-menu-panel {
    transform: translateX(0);
}

/* Menu Header */
.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.menu-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.menu-logo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.menu-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto !important;
}

.menu-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg);
}

.menu-close svg {
    width: 20px;
    height: 20px;
    stroke: #FFFFFF;
}

/* Menu Navigation */
.menu-navigation {
    flex: 1;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    color: #A9ADB1;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    pointer-events: auto;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #3B82F6, #8B5CF6);
    border-radius: 0 3px 3px 0;
    transition: height 0.3s ease;
    pointer-events: none;
}

[dir="rtl"] .menu-link::before {
    left: auto;
    right: 0;
    border-radius: 3px 0 0 3px;
}

.menu-link:hover::before,
.menu-link.active::before {
    height: 60%;
}

.menu-link:hover,
.menu-link.active {
    color: #FFFFFF;
    background: rgba(59, 130, 246, 0.08);
}

.menu-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.menu-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.menu-text {
    flex: 1;
}

.menu-arrow {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    color: #3B82F6;
}

[dir="rtl"] .menu-arrow {
    transform: translateX(10px);
}

.menu-link:hover .menu-arrow,
.menu-link.active .menu-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Menu Footer */
.menu-footer {
    padding: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-lang-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-family: inherit;
    pointer-events: auto;
}

.menu-lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.menu-lang-btn svg {
    width: 20px;
    height: 20px;
    stroke: #3B82F6;
}

.menu-actions {
    display: flex;
    gap: 0.75rem;
}

.menu-btn {
    flex: 1;
    padding: 0.85rem 1.25rem;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.menu-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.menu-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-btn.primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.menu-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.5);
}

/* ==========================================
   FIX CLICK BLOCKING ISSUES
   ========================================== */
.glass-header *::before,
.glass-header *::after {
    pointer-events: none;
}

/* Ensure all interactive elements are clickable */
.menu-burger,
.nav-link,
.btn-link,
.btn-gradient,
.lang-switch,
.menu-close,
.menu-link,
.menu-lang-btn,
.menu-btn,
.logo-brand {
    pointer-events: auto !important;
}

button, a, input, select, textarea {
    pointer-events: auto !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .main-navigation {
        display: none;
    }

    .action-buttons {
        display: none;
    }

    .menu-burger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .glass-header {
        top: 15px;
        width: calc(100% - 2rem);
    }

    .header-inner {
        padding: 0.85rem 1.25rem;
    }

    .logo-circle {
        width: 45px;
        height: 45px;
    }

    .logo-img {
        width: 38px;
        height: 38px;
    }

    .lang-switch {
        padding: 0.5rem 0.75rem;
    }

    .menu-burger {
        width: 42px;
        height: 42px;
    }

    .slide-menu-panel {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .glass-header {
        top: 10px;
        width: calc(100% - 1.5rem);
    }

    .header-inner {
        padding: 0.75rem 1rem;
    }

    .logo-circle {
        width: 42px;
        height: 42px;
    }

    .logo-img {
        width: 36px;
        height: 36px;
    }

    .lang-switch {
        padding: 0.45rem 0.65rem;
        font-size: 0.85rem;
    }

    .lang-globe svg {
        width: 16px;
        height: 16px;
    }

    .menu-burger {
        width: 40px;
        height: 40px;
    }

    .burger-line {
        width: 20px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */
.glass-header *:focus-visible {
    outline: 3px solid #3B82F6;
    outline-offset: 3px;
    border-radius: 8px;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .glass-header,
    .page-progress {
        display: none !important;
    }
}

/* ==========================================
   END OF HEADER CSS
   ========================================== */