/* ============================================================================
   LORD HENTAİ — Floating Header, Mobile Bottom Nav & AkumaBox Footer v9.4
   ============================================================================ */

/* ── Top Header Fade Shader ── */
.header-fade-backdrop {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING SUSPENDED HEADER
   ═══════════════════════════════════════════════════════════════════════════ */
.header {
    position: fixed;
    top: 12px;
    left: 14px;
    right: 14px;
    max-width: var(--container-max);
    margin: 0 auto;
    height: var(--header-h);
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 77, 141, 0.35);
    border-radius: var(--radius-full);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 18px rgba(255, 42, 122, 0.05), 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: var(--z-header);
    transition: all 0.3s var(--ease-out);
}

.header.scrolled {
    background: rgba(10, 5, 14, 0.94);
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 77, 141, 0.4);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 20px rgba(255, 42, 122, 0.06), 0 12px 36px rgba(0, 0, 0, 0.85);
}

.header-inner {
    max-width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

/* ── Brand Logo ── */
.logo {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    text-decoration: none;
    color: var(--text-primary);
    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s var(--ease-spring);
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #FFFFFF 30%, #FF75A9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Desktop Navigation ── */
.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.2s var(--ease-out);
}

.nav-link i {
    font-size: 1.05rem;
    transition: transform 0.2s var(--ease-out);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 42, 122, 0.12);
}

.nav-link:hover i {
    transform: translateY(-1px);
    color: var(--accent);
}

.nav-link.active {
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 0 16px var(--accent-glow);
}

.nav-link.active i {
    color: #fff;
}

/* ── Search Input ── */
.header-search {
    position: relative;
    width: 240px;
    transition: width 0.3s var(--ease-out);
}

.header-search:focus-within {
    width: 300px;
}

.header-search-input {
    width: 100%;
    height: 38px;
    padding: 0 38px 0 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 0.82rem;
    font-family: inherit;
    transition: all 0.25s var(--ease-out);
}

.header-search-input:focus {
    outline: none;
    background: rgba(255, 42, 122, 0.08);
    border-color: rgba(255, 77, 141, 0.45);
    box-shadow: 0 0 14px var(--accent-glow);
}

.header-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s;
}

.header-search:focus-within .header-search-icon {
    color: var(--accent);
}

.header-search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: var(--z-dropdown);
    max-height: 320px;
    overflow-y: auto;
}

/* ── Header Actions & Profile ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s var(--ease-out);
}

.btn-icon:hover {
    color: #fff;
    background: rgba(255, 42, 122, 0.15);
    border-color: rgba(255, 77, 141, 0.4);
    transform: translateY(-2px);
}

.user-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 0 14px var(--accent-glow);
    transition: all 0.25s var(--ease-spring);
}

.user-pill-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 22px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
}

@media (max-width: 1024px) {
    .nav { display: none; }
    .header-search { display: none; }
    .mobile-menu-btn { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LUXURY FLOATING GLASS DRAWER MENU (AkumaBox Mobile Spec)
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 2, 8, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s ease;
    z-index: var(--z-drawer);
}

.mobile-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: fixed;
    top: 10px;
    bottom: 10px;
    right: 10px;
    width: 310px;
    max-width: calc(100vw - 20px);
    height: calc(100vh - 20px);
    background: rgba(14, 9, 22, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 1.5px solid rgba(255, 77, 141, 0.35);
    border-radius: 28px; /* Ultra-soft luxury rounded drawer corners */
    box-shadow: inset 1px 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(255, 42, 122, 0.05), -16px 0 50px rgba(0, 0, 0, 0.9);
    transform: translateX(calc(100% + 20px));
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: calc(var(--z-drawer) + 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav-header {
    height: 64px;
    padding: 0 var(--sp-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.mobile-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-fa);
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.mobile-nav-brand i {
    color: #FF2A7A;
    font-size: 1.35rem;
}

.mobile-nav-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 42, 122, 0.25);
    border-color: rgba(255, 77, 141, 0.6);
    color: #FF4D8D;
    transform: rotate(90deg);
}

.mobile-nav-body {
    flex: 1;
    overflow-y: auto;
    padding: var(--sp-4) var(--sp-4) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: 5px;
    scrollbar-width: none;
}

.mobile-nav-body::-webkit-scrollbar {
    display: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-family: var(--font-fa);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}

.mobile-nav-link i {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #ffffff;
    background: rgba(255, 42, 122, 0.14);
    border-color: rgba(255, 77, 141, 0.25);
}

.mobile-nav-link:hover i, .mobile-nav-link.active i {
    color: #FF2A7A;
}

.mobile-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 8px 0;
}

.mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

.mobile-nav-auth .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-full);
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: linear-gradient(135deg, #FF2A7A, #FF4D8D);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2), 0 4px 14px rgba(0, 0, 0, 0.45);
    text-decoration: none;
}

.mobile-nav-auth .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px;
    border-radius: var(--radius-full);
    font-family: var(--font-fa);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
}


/* ═══════════════════════════════════════════════════════════════════════════
   FLOATING MOBILE BOTTOM NAVIGATION DOCK (AkumaBox Standard)
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-bar {
        display: flex;
        align-items: center;
        justify-content: space-around;
        position: fixed;
        bottom: 12px;
        left: 14px;
        right: 14px;
        max-width: 460px;
        margin: 0 auto;
        height: 64px;
        background: rgba(12, 7, 17, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: 1px solid rgba(255, 77, 141, 0.3);
        border-radius: 28px;
        backdrop-filter: blur(28px) saturate(190%);
        -webkit-backdrop-filter: blur(28px) saturate(190%);
        box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 16px rgba(255, 42, 122, 0.05), 0 12px 36px rgba(0, 0, 0, 0.85);
        z-index: var(--z-sticky);
        padding: 0 8px;
    }

    .mb-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        color: #94A3B8;
        text-decoration: none;
        background: transparent;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 0.68rem;
        font-weight: 700;
        transition: all 0.25s var(--ease-spring);
        position: relative;
    }

    .mb-item i {
        font-size: 1.25rem;
        transition: transform 0.25s var(--ease-spring);
    }

    .mb-item:hover, .mb-item.active {
        color: var(--accent);
    }

    .mb-item:hover i, .mb-item.active i {
        transform: translateY(-3px) scale(1.18);
        filter: drop-shadow(0 0 8px var(--accent-glow));
    }

    /* Center Highlight Item (Manhwa Hub — Strictly Static & Minimal, No Motion) */
    .mb-item-center {
        position: relative;
        margin-top: -6px;
        transition: background-color 0.2s ease, border-color 0.2s ease !important;
        transform: none !important;
    }

    .mb-item-center .mb-center-pill {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: rgba(157, 78, 221, 0.22);
        border: 1.5px solid rgba(192, 132, 252, 0.45);
        display: flex;
        align-items: center;
        justify-content: center;
        color: #C084FC;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    }

    .mb-item-center .mb-center-pill i {
        font-size: 1.2rem;
        color: #C084FC;
        transform: none !important;
        transition: none !important;
    }

    .mb-item-center:hover .mb-center-pill,
    .mb-item-center.active .mb-center-pill {
        background: #9D4EDD;
        border-color: #C084FC;
        color: #fff;
        box-shadow: 0 0 14px rgba(157, 78, 221, 0.45);
        transform: none !important;
    }

    .mb-item-center:hover .mb-center-pill i,
    .mb-item-center.active .mb-center-pill i {
        color: #fff;
        transform: none !important;
        filter: none !important;
    }

    /* Kill all inherited motion from .mb-item on the center button */
    .mb-item-center,
    .mb-item-center:hover,
    .mb-item-center:active,
    .mb-item-center.active {
        transform: none !important;
        scale: none !important;
        translate: none !important;
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PREMIUM AKUMABOX FOOTER (Pink & Black Edition)
   ═══════════════════════════════════════════════════════════════════════════ */
.footer {
    position: relative;
    margin-top: var(--sp-16);
    padding: var(--sp-12) 0 calc(var(--sp-16) + 32px);
    background: linear-gradient(180deg, #09050E 0%, #050508 100%);
    border-top: 1px solid var(--glass-border);
    overflow: hidden;
}

@media (min-width: 768px) {
    .footer {
        padding: var(--sp-16) 0 var(--sp-10);
    }
}

/* ── VIP / Membership CTA Band (AkumaBox Inspired) ── */
.footer-cta-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-6) var(--sp-8);
    margin-bottom: var(--sp-12);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.15) 0%, rgba(157, 78, 221, 0.15) 100%);
    border: 1px solid rgba(255, 77, 141, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
}

@media (max-width: 768px) {
    .footer-cta-card {
        flex-direction: column;
        text-align: center;
        padding: var(--sp-6);
        gap: var(--sp-4);
    }
}

.footer-cta-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-cta-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.footer-cta-title i {
    color: var(--gold);
    font-size: 1.35rem;
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.footer-cta-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    background: var(--gradient-accent);
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    box-shadow: 0 4px 18px var(--accent-glow);
    transition: all 0.25s var(--ease-spring);
    flex-shrink: 0;
}

.footer-cta-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* ── Footer 4-Column Grid ── */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--sp-8);
    margin-bottom: var(--sp-10);
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-6);
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-brand-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.footer-brand-desc {
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.85;
    max-width: 440px;
    margin-bottom: var(--sp-5);
    text-align: justify;
}

/* ── Animated Social Dock ── */
.footer-social-dock {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.footer-social-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.25s var(--ease-spring);
}

.footer-social-pill i {
    font-size: 1.05rem;
    transition: transform 0.25s var(--ease-spring);
}

.footer-social-pill:hover {
    color: #fff;
    background: rgba(255, 42, 122, 0.15);
    border-color: rgba(255, 77, 141, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.footer-social-pill:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

/* ── Footer Link Columns ── */
.footer-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: var(--sp-4);
    position: relative;
    padding-bottom: 8px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: var(--gradient-accent);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.84rem;
    transition: all 0.2s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-link::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
    transition: all 0.2s;
}

.footer-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

.footer-link:hover::before {
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ── Two-Sided Faded Divider & Bottom Row ── */
.footer-divider-clean {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 77, 141, 0.25) 50%, transparent);
    margin: var(--sp-8) 0 var(--sp-6);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

@media (max-width: 640px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }
}

.footer-dev {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.footer-dev i {
    color: var(--accent);
}

/* ── Luxury Floating Rounded Mobile Drawer (AkumaBox Spec) ── */
.mobile-nav {
    position: fixed !important;
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: 310px !important;
    max-width: calc(100vw - 24px) !important;
    height: calc(100vh - 24px) !important;
    background: rgba(14, 9, 22, 0.96) !important;
    backdrop-filter: blur(28px) !important;
    -webkit-backdrop-filter: blur(28px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 1.5px solid rgba(255, 77, 141, 0.35) !important;
    border-radius: 28px !important; /* Fully rounded all 4 corners */
    box-shadow: inset 1px 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(255, 42, 122, 0.05), -16px 0 50px rgba(0, 0, 0, 0.92) !important;
    transform: translateX(calc(100% + 30px)) !important;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: calc(var(--z-drawer) + 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.mobile-nav.open {
    transform: translateX(0) !important;
}

.mobile-nav-header {
    height: 64px !important;
    padding: 0 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

/* ── Universal Lightweight Metallic Gradient Optimization (Zero Blur Lag) ── */
.header {
    background: linear-gradient(135deg, rgba(22, 14, 30, 0.97) 0%, rgba(10, 6, 16, 0.98) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 77, 141, 0.35) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 18px rgba(255, 42, 122, 0.05), 0 10px 35px rgba(0, 0, 0, 0.85) !important;
}

.mobile-bottom-bar {
    background: linear-gradient(180deg, rgba(24, 16, 34, 0.98) 0%, rgba(12, 8, 18, 0.99) 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 77, 141, 0.3) !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.1), inset 0 0 16px rgba(255, 42, 122, 0.05), 0 12px 35px rgba(0, 0, 0, 0.88) !important;
}

.mobile-nav {
    background: linear-gradient(135deg, #150E22 0%, #0A0612 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 1.5px solid rgba(255, 77, 141, 0.35) !important;
    box-shadow: inset 1px 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(255, 42, 122, 0.05), -16px 0 50px rgba(0, 0, 0, 0.95) !important;
}

.mobile-drawer-overlay {
    background: rgba(5, 2, 8, 0.88) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.footer-cta-card {
    background: linear-gradient(135deg, #181024 0%, #0C0814 100%) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 77, 141, 0.28) !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8) !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   EXPANDABLE SEARCH HEADER & COMBINED AUTH BUTTON SYSTEM (v9.6)
   Smooth GPU-accelerated transition, zero blur lag, live drop results
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Combined Auth Button (Desktop & Compact) ── */
.header-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.22) 0%, rgba(20, 13, 28, 0.95) 100%);
    border: 1.5px solid rgba(255, 77, 141, 0.45);
    border-radius: var(--radius-full);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

.header-auth-btn i {
    font-size: 1.05rem;
    color: #FF75A9;
    transition: transform 0.25s ease;
}

.header-auth-btn:hover {
    background: linear-gradient(135deg, #FF2A7A 0%, #FF508E 100%);
    border-color: #FF75A9;
    color: #ffffff;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 2px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.55);
    transform: translateY(-1px);
}

.header-auth-btn:hover i {
    color: #ffffff;
    transform: scale(1.1);
}

/* ── Header Search Trigger Button ── */
.header-search-trigger-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #181222 0%, #0C0814 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #E2E8F0;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.header-search-trigger-btn:hover {
    background: linear-gradient(135deg, rgba(255, 42, 122, 0.2) 0%, #160D20 100%);
    border-color: rgba(255, 77, 141, 0.45);
    color: #FF75A9;
    transform: scale(1.05);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15), inset 0 0 10px rgba(255, 42, 122, 0.12), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ── Header Inner & Expandable Modes ── */
.header-inner {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-standard-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.header.search-active .header-standard-bar {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
}

/* ── Fullscreen/Expandable Search Bar ── */
.header-search-bar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97) translateY(-4px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 5;
}

.header.search-active .header-search-bar {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1) translateY(0);
}

.header-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #181224 0%, #0D0816 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 77, 141, 0.4);
    border-radius: var(--radius-full);
    padding: 0 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5), inset 0 0 14px rgba(255, 42, 122, 0.08), 0 8px 24px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
}

.header-search-icon-leading {
    font-size: 1.25rem;
    color: #FF2A7A;
    flex-shrink: 0;
}

.header-search-bar-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-fa);
    font-size: 0.95rem;
    font-weight: 600;
}

.header-search-bar-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    font-weight: 400;
}

.header-search-clear-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.header-search-clear-btn:hover {
    color: #ffffff;
}

.header-search-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.header-search-close-btn:hover {
    background: rgba(255, 42, 122, 0.35);
    border-color: #FF2A7A;
    color: #ffffff;
    transform: rotate(90deg);
}

/* ── Live Search Dropdown Panel Under Header ── */
.header-search-results-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: linear-gradient(135deg, #140D1E 0%, #090510 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1.5px solid rgba(255, 77, 141, 0.45);
    border-radius: 24px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.12), inset 0 0 24px rgba(255, 42, 122, 0.06), 0 20px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    z-index: 100;
    animation: searchPanelPop 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchPanelPop {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.header-search-results-inner {
    padding: 14px 16px;
    max-height: 420px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

/* Quick Search Tags */
.search-quick-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 4px;
}

.search-tag-title {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    font-weight: 700;
    margin-left: 4px;
}

.search-quick-tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: linear-gradient(135deg, #1C1826 0%, #0E0916 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: #E2E8F0;
    font-size: 0.80rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-quick-tag:hover {
    border-color: #FF2A7A;
    color: #FF75A9;
    transform: translateY(-1px);
}

/* Search Loading & No Results */
.search-loading-state,
.search-no-results {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 16px;
    color: var(--text-secondary);
    font-size: 0.90rem;
}

.search-loading-state i {
    font-size: 1.3rem;
    color: #FF2A7A;
}

/* Result Cards List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, #181224 0%, #0D0816 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-result-card:hover {
    background: linear-gradient(135deg, #221634 0%, #140C20 100%);
    border-color: rgba(255, 77, 141, 0.45);
    transform: translateX(-4px);
}

.search-card-thumb {
    width: 44px;
    height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #090510;
}

.search-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-card-title {
    font-size: 0.90rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-subtitle {
    font-size: 0.76rem;
    color: var(--text-tertiary);
    font-family: var(--font-sans);
    direction: ltr !important;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-anime-pill {
    font-size: 0.70rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(255, 42, 122, 0.18);
    color: #FF75A9;
    border: 1px solid rgba(255, 42, 122, 0.35);
    font-weight: 700;
}

.badge-manhwa-pill {
    font-size: 0.70rem;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    background: rgba(157, 78, 221, 0.18);
    color: #C084FC;
    border: 1px solid rgba(157, 78, 221, 0.35);
    font-weight: 700;
}

.search-item-score {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FBBF24;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.search-card-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.15rem;
    transition: color 0.2s, transform 0.2s;
}

.search-result-card:hover .search-card-arrow {
    color: #FF2A7A;
    transform: translateX(-3px);
}

.search-view-all-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #FF75A9;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.search-view-all-link:hover {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   OPTIMIZED MOBILE DRAWER (Full Viewport Fit + Sticky Bottom Actions)
   ═══════════════════════════════════════════════════════════════════════════ */
.mobile-nav {
    position: fixed !important;
    top: 12px !important;
    bottom: 12px !important;
    right: 12px !important;
    width: min(320px, calc(100vw - 24px)) !important;
    height: calc(100dvh - 24px) !important;
    max-height: calc(100vh - 24px) !important;
    border-radius: 28px !important;
    background: linear-gradient(135deg, #150E1F 0%, #0A0610 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-left: 1.5px solid rgba(255, 77, 141, 0.35) !important;
    box-shadow: inset 1px 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 24px rgba(255, 42, 122, 0.05), -16px 0 48px rgba(0, 0, 0, 0.9) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
    z-index: 1000 !important;
    transform: translateX(calc(100% + 24px)) !important;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
    backdrop-filter: none !important; /* Zero blur lag */
}

.mobile-nav.open {
    transform: translateX(0) !important;
}

.mobile-nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    flex-shrink: 0 !important;
}

.mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 42, 122, 0.25);
    border-color: #FF2A7A;
    color: #FF75A9;
}

.mobile-nav-scroll-area {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mobile-nav-sticky-bottom {
    flex-shrink: 0 !important;
    padding: 14px 16px !important;
    background: rgba(8, 5, 12, 0.96) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
}

.mobile-nav-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 12px;
}

.mobile-social-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-social-icon:hover {
    background: rgba(255, 42, 122, 0.25);
    border-color: #FF2A7A;
    color: #FF75A9;
    transform: translateY(-2px);
}


/* ── Header Spacing Optimization (Prevent Element Crowding) ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px !important;
    flex-shrink: 0;
}

.header-auth-btn {
    padding: 7px 14px !important;
    font-size: 0.84rem !important;
    gap: 6px !important;
}

.header-search-trigger-btn {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
}

.nav {
    gap: 8px !important;
}

.nav-link {
    padding: 6px 10px !important;
    font-size: 0.84rem !important;
    gap: 5px !important;
}

@media (max-width: 1200px) and (min-width: 992px) {
    .nav {
        gap: 4px !important;
    }
    .nav-link {
        padding: 5px 8px !important;
        font-size: 0.80rem !important;
    }
    .nav-link span {
        font-size: 0.80rem !important;
    }
    .logo-text {
        font-size: 1.05rem !important;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   UNIFIED HEADER SEARCH BAR & SEAMLESS EXPAND ANIMATION (v9.7)
   Entire header capsule turns seamlessly into the search input with zero box nesting
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Seamless Capsule Header in Search Active Mode ── */
.header {
    transition: border-color 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.28s ease !important;
}

.header.search-active {
    border-color: rgba(255, 77, 141, 0.45) !important;
    border-top-color: #FF2A7A !important;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 22px rgba(255, 42, 122, 0.10), 0 12px 36px rgba(0, 0, 0, 0.85) !important;
    background: linear-gradient(135deg, rgba(26, 16, 38, 0.98) 0%, rgba(12, 7, 18, 0.99) 100%) !important;
}

.header-inner {
    position: relative;
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
}

/* Standard Nav Bar Fade Out */
.header-standard-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.search-active .header-standard-bar {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.97) translateY(-3px);
}

/* ── Unified Search Layer (Zero nested box — fills entire header capsule) ── */
.header-search-bar {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(0.98);
    transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}

.header.search-active .header-search-bar {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.header-search-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 100%;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 18px !important;
    box-sizing: border-box;
}

.header-search-icon-leading {
    font-size: 1.35rem;
    color: #FF2A7A;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(255, 42, 122, 0.6));
    animation: searchPulse 2s infinite ease-in-out;
}

@keyframes searchPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 12px #FF2A7A); }
}

.header-search-bar-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    font-family: var(--font-fa) !important;
    font-size: 1.02rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.2px;
}

.header-search-bar-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.92rem;
    font-weight: 400;
}

.header-search-clear-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.header-search-clear-btn:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.header-search-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255, 42, 122, 0.15);
    border: 1px solid rgba(255, 77, 141, 0.35);
    color: #FF75A9;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.22s ease;
    flex-shrink: 0;
}

.header-search-close-btn:hover {
    background: #FF2A7A;
    border-color: #FF2A7A;
    color: #ffffff;
    transform: rotate(90deg) scale(1.08);
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.3), 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* ── Live Search Dropdown Panel (Smooth Slide-Down) ── */
.header-search-results-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    left: 0;
    background: linear-gradient(135deg, #150E20 0%, #0A0610 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1.5px solid rgba(255, 77, 141, 0.45);
    border-radius: 26px;
    box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.15), inset 0 0 24px rgba(255, 42, 122, 0.08), 0 24px 64px rgba(0, 0, 0, 0.92);
    overflow: hidden;
    z-index: 100;
    animation: searchDropdownReveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchDropdownReveal {
    from {
        opacity: 0;
        transform: translateY(-12px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   ULTRA-RESPONSIVE MOBILE HEADER ZERO-COLLISION SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .header-inner {
        padding: 0 8px !important;
    }
    .header-standard-bar {
        padding: 0 8px !important;
    }
    .header-actions {
        gap: 6px !important;
    }
    .user-pill-btn {
        width: 38px !important;
        height: 38px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        justify-content: center !important;
        gap: 0 !important;
        flex-shrink: 0 !important;
    }
    .user-pill-btn span {
        display: none !important;
    }
    .header-search-trigger-btn {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    .mobile-menu-btn {
        width: 38px !important;
        height: 38px !important;
        flex-shrink: 0 !important;
    }
    .logo-text {
        font-size: 1.05rem !important;
        white-space: nowrap !important;
    }
}
