.header .header-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header .header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.header .button {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.header .button-home {
    background-color: rgba(107, 114, 128, 0.2);
    border: 1px solid rgba(107, 114, 128, 0.4);
    color: #d1d5db;
}

.header .button-home:hover {
    background-color: rgba(107, 114, 128, 0.3);
    border-color: rgba(107, 114, 128, 0.6);
}

.header .button-outline {
    background-color: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #60a5fa;
}

.header .button-outline:hover {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
    color: #93c5fd;
}

.header .icon-nav-button {
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex: 0 0 auto;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 7vh auto;
    background: rgba(17, 24, 39, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 16px;
    color: #e5e7eb;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(31, 41, 55, 0.8);
    color: #fff;
    cursor: pointer;
}

.profile-modal-content h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-block {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(31, 41, 55, 0.55);
}

.profile-block h4 {
    margin-bottom: 6px;
}

.profile-block p {
    color: #9ca3af;
    font-size: 0.9rem;
}

.profile-actions {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-toggle {
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.86rem;
}

.profile-toggle input {
    accent-color: #dc2626;
}

.coming-soon {
    color: #fca5a5;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 760px) {
    .header .header-content {
        padding: 12px 14px;
    }

    .header .button {
        flex: 0 0 auto;
        min-width: 42px;
        padding: 0;
    }

    .header .header-actions {
        justify-content: center;
    }

    .modal-content {
        margin: 5vh 14px;
    }
}
