header#mobile-header {
    display: none;
}

@media (max-width: 768px) {
    header#mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1100;
        font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        padding: 0.75rem 1rem;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    header#mobile-header.header--hidden {
        transform: translateY(-100%);
        opacity: 0;
    }

    .mobile-header-bar {
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.05);
        border-radius: 16px;
        max-width: 100%;
        margin: 0 auto;
    }

    .mobile-logo {
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo img {
        height: 34px;
        width: auto;
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        border: 1px solid rgba(15, 23, 42, 0.12);
        background: #ffffff;
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
        cursor: pointer;
        transition: all 0.25s ease;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #1f2937;
        transition: transform 0.25s ease, opacity 0.25s ease, background 0.25s ease;
    }

    header#mobile-header.is-open .mobile-menu-toggle {
        background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
        border-color: transparent;
        box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
    }

    header#mobile-header.is-open .mobile-menu-toggle span {
        background: #ffffff;
    }

    header#mobile-header.is-open .mobile-menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header#mobile-header.is-open .mobile-menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    header#mobile-header.is-open .mobile-menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.35);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease;
        z-index: -1;
    }

    header#mobile-header.is-open .mobile-nav-backdrop {
        opacity: 1;
        visibility: visible;
        z-index: 0;
    }

    .mobile-nav {
        position: fixed;
        top: calc(0.75rem + 56px + 0.75rem);
        left: 1rem;
        right: 1rem;
        max-height: calc(100vh - 0.75rem - 56px - 0.75rem);
        background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 60%, rgba(241,245,249,0.95) 100%);
        backdrop-filter: blur(18px);
        padding: 2.25rem 1.5rem 2.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-16px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        overflow-y: auto;
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
    }

    header#mobile-header.is-open .mobile-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-nav li a {
        display: block;
        color: #0f172a;
        font-weight: 600;
        font-size: 1.05rem;
        text-decoration: none;
        padding: 0.6rem 1rem;
        border-radius: 999px;
        background: rgba(148, 163, 184, 0.15);
        transition: background 0.2s ease, color 0.2s ease;
    }

    .mobile-nav li a:hover {
        background: rgba(37, 99, 235, 0.1);
        color: #2563eb;
    }

    .mobile-actions {
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .mobile-actions .btn-login,
    .mobile-actions .btn-register {
        width: 100%;
        text-align: center;
        padding: 0.8rem 1rem;
    }

    .mobile-actions .btn-login {
        border-width: 1.5px;
    }

    .mobile-actions .btn-register {
        background: linear-gradient(135deg, #2563eb 0%, #ec4899 100%);
        color: #ffffff !important;
        font-weight: 600;
        font-size: 1rem;
        padding: 1rem 1.5rem;
        border-radius: 16px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3), 0 4px 12px rgba(236, 72, 153, 0.25);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        position: relative;
        overflow: hidden;
    }

    .mobile-actions .btn-register::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .mobile-actions .btn-register:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4), 0 6px 16px rgba(236, 72, 153, 0.3);
        background: linear-gradient(135deg, #3b82f6 0%, #d81b60 100%);
    }

    .mobile-actions .btn-register:active {
        transform: translateY(0);
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 2px 8px rgba(236, 72, 153, 0.25);
    }

    .mobile-actions .btn-register:hover::before {
        left: 100%;
    }
}

@media (min-width: 769px) {
    header#mobile-header {
        display: none;
    }
}

body.mobile-menu-open {
    overflow: hidden;
}



