* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
}
html {
    overflow-x: hidden;
}

body {
    width: 100vw;
    height: 100%;
}
button {
    border: none;
    background-color: transparent;
}
a {
    text-decoration: none;
}
p {
    line-height: 1.4rem;
}
textarea {
    resize: none;
}

#container {
    display: grid;
    grid-template-columns: 15fr 30fr 20fr;
    gap: 10px;
    width: 100vw;
    height: 100%;
    margin: auto;
    padding: 10px;

    .burger {
        display: none;
        position: fixed;
        top: 1rem;
        left: 1rem;
        background: transparent;
        border: none;
        font-size: 1.5rem;
        z-index: 1100;
        cursor: pointer;

        i.fa-xmark {
            display: none;
            pointer-events: none;
        }
    }
    .burger.open i.fa-bars {
        display: none;
        pointer-events: none;
    }
    .burger.open i.fa-xmark {
        display: block;
        margin-left: 13rem;
        width: 32px;
        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }

    nav {
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 220px;
        background: #fff;
        padding: 0rem 0.3rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 5;

        transform: translateX(0);
        transition: transform 0.3s ease-in-out;
    }
    @media (max-width: 1024px) {
        grid-template-columns: 1fr;

        main {
            grid-column: 1 / -1;
            border: none;
        }

        aside {
            grid-column: 1 / -1;
            margin: 1rem;
        }

        .burger {
            display: block;
        }

        nav {
            width: 70%;
            max-width: 260px;
            height: 100vh;
            background: #fff;
            transform: translateX(-100%);
        }
        nav.active {
            transform: translateX(0);
        }
    }

    @media (max-width: 600px) {
        nav {
            width: 80%;
        }

        aside {
            display: none;
        }
    }

    ul {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0rem;
        padding: 0;

        li {
            a {
                color: rgb(15, 15, 15);
                font-size: 1rem;
                font-weight: 500;
                display: flex;
                align-items: center;
                gap: 0.5rem;
                padding: 0.5rem 0.8rem;
                border-radius: 2rem;
                transition: background-color 0.2s;

                &:hover {
                    background-color: rgb(200, 200, 200);
                }
            }
        }
    }

    .post-btn {
        margin: 0.5rem 0;
        padding: 0.7rem;
        font-size: 1rem;
        font-weight: bold;
        border-radius: 2rem;
        background-color: rgb(15, 15, 15);
        color: white;
        border: none;
        cursor: pointer;
        transition: 0.2s;
        width: 90%;
        align-self: center;

        &:hover {
            background-color: rgb(240, 240, 240);
            color: rgb(15, 15, 15);
            border: 1px solid rgb(200, 200, 200);
        }
    }

    #profile_tag {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.4rem 0.6rem;
        border-radius: 2rem;
        transition: background-color 0.2s;
        cursor: pointer;
        margin-bottom: 0.5rem;

        &:hover {
            background-color: rgb(240, 240, 240);
        }

        img {
            border-radius: 50%;
            width: 36px;
            height: 36px;
            margin-right: 0.6rem;
        }

        .name {
            font-weight: bold;
            font-size: 0.85rem;
        }

        .handle {
            font-size: 0.75rem;
            color: rgb(110, 109, 109);
        }
    }
}

main {
    grid-column: 2 / 3;
    border-right: 1px solid rgb(230, 230, 230);
    border-left: 1px solid rgb(230, 230, 230);

    .post {
        display: flex;
        gap: 1rem;
        padding: 1rem;
        /* border-bottom: 1px solid rgb(230, 230, 230); */
        cursor: pointer;
        transition: background-color 0.2s;

        &:hover {
            background-color: rgb(247, 249, 249);
        }

        .avatar {
            border-radius: 50%;
            width: 48px;
            height: 48px;
        }

        .post-content {
            flex: 1;

            .post-header {
                font-size: 0.9rem;
                margin-bottom: 0.3rem;
                position: relative;
                .name {
                    font-weight: bold;
                    margin-right: 0.3rem;
                }

                .handle,
                .time {
                    color: rgb(110, 109, 109);
                    font-size: 0.85rem;
                }
                .menu {
                    position: relative;
                    float: right;
                    top: 0;
                    right: 0;
                }
                .edit {
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    gap: 0.4rem;
                    cursor: pointer;
                    padding: 0.3rem;
                    border-radius: 50%;
                    transition: background-color 0.2s, color 0.2s;
                    &:hover {
                        background-color: rgba(29, 155, 240, 0.1);
                        color: rgb(29, 155, 240);
                    }
                }
                details div {
                    cursor: auto;
                    background: #eee;
                    padding: 1rem;
                    width: max-content;
                    position: absolute;
                    top: 3rem;
                    border-radius: 1rem;
                    right: 0;
                    z-index: 9999;
                    display: flex;
                    flex-direction: column;
                    gap: 0.5rem;
                    align-items: end;
                    > * {
                        border-radius: 0.3rem;
                        width: 100%;
                        cursor: pointer;
                        padding: 0.3rem;
                        transition: 200ms ease all;
                        &:hover {
                            background-color: #cdcdcd;
                        }
                    }
                    .delete {
                        color: rgba(190, 0, 0, 1);
                    }
                    &:before {
                        content: "";
                        width: 0;
                        height: 0;
                        border-left: 8px solid transparent;
                        border-right: 8px solid transparent;
                        border-bottom: 12px solid #eee;
                        top: -10px;
                        position: absolute;
                        right: 10px;
                    }
                }
            }

            .text {
                font-size: 0.95rem;
                line-height: 1.4;
            }

            .post-image {
                margin-top: 0.6rem;
                border-radius: 1rem;
                max-width: 100%;
                border: 1px solid rgb(230, 230, 230);
            }

            .post-actions {
                display: flex;
                justify-content: space-between;
                margin-top: 0.6rem;
                max-width: 450px;
                color: rgb(110, 109, 109);
                font-size: 0.9rem;
                button {
                    color: rgb(110, 109, 109);
                }
                .action {
                    display: flex;
                    align-items: center;
                    gap: 0.4rem;
                    cursor: pointer;
                    padding: 0.3rem;
                    border-radius: 50%;
                    transition: background-color 0.2s, color 0.2s;

                    &:hover {
                        background-color: rgba(29, 155, 240, 0.1);
                        color: rgb(29, 155, 240);
                    }
                }
            }
        }
    }
    .comments {
        padding: 1rem;
        border-bottom: 1px solid rgb(230, 230, 230);
        .comment {
            display: flex;
            opacity: 0.9;
            transition: all 200ms ease;
            &:hover {
                opacity: 1;
            }
        }
    }
    .post-comment {
        border-bottom: 1px solid rgb(230, 230, 230);
        /* border-left: 1px solid rgb(230, 230, 230);
        border-right: 1px solid rgb(230, 230, 230); */
    }
}

aside {
    grid-column: 3 / 4;
    margin: 1rem 2rem 1rem 1rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;

    form {
        display: flex;
        align-items: center;
        border: 1px solid rgb(230, 230, 230);
        border-radius: 2rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1rem;

        input {
            border: none;
            background: transparent;
            flex: 1;
            outline: none;
            font-size: 0.9rem;
        }
    }

    hr {
        border: 0.5px solid rgb(230, 230, 230);
        margin: 1.5rem 0;
    }

    .happening-now,
    .who-to-follow {
        border: 1px solid rgb(230, 230, 230);
        border-radius: 1rem;
        margin: 1rem 0;
        overflow: hidden;

        h2 {
            font-size: 1.2rem;
            font-weight: bold;
            padding: 1rem;
        }
    }

    .trending-item {
        padding: 0.8rem 1rem;
        display: flex;
        cursor: pointer;
        transition: background-color 0.2s;

        &:hover {
            background-color: rgb(247, 249, 249);
        }

        .trending-info {
            display: flex;
            flex-direction: column;

            .item_title {
                font-size: 0.8rem;
                color: rgb(110, 109, 109);
            }

            p {
                font-size: 0.9rem;
                font-weight: bold;
                margin-top: 0.2rem;
            }
        }

        .option {
            margin-left: auto;
            font-size: 1.3rem;
            cursor: pointer;
        }
    }

    .follow-suggestion {
        .profile-info {
            display: flex;
            align-items: center;
            padding: 0.2rem 1rem;
            cursor: pointer;
            transition: background-color 0.2s;

            &:hover {
                background-color: rgb(200, 200, 200);
            }

            img {
                border-radius: 50%;
                width: 2.5rem;
                height: 2.5rem;
                margin-right: 1rem;
            }

            .info-copy {
                display: flex;
                flex-direction: column;

                .name {
                    font-weight: bold;
                    font-size: 0.9rem;
                }

                .handle {
                    font-size: 0.8rem;
                    color: rgb(110, 109, 109);
                }
            }

            .follow-btn {
                border: none;
                background-color: rgb(15, 20, 25);
                color: white;
                padding: 0.4rem 1rem;
                border-radius: 2rem;
                margin-left: auto;
                cursor: pointer;
                font-size: 0.85rem;
                font-weight: bold;

                &:hover {
                    background-color: rgb(39, 44, 48);
                }
            }
        }
    }

    .show-more-btn {
        border: none;
        background-color: transparent;
        width: 100%;
        padding: 0.8rem 1rem;
        color: rgb(29, 155, 240);
        text-align: left;
        cursor: pointer;
        font-size: 0.9rem;

        &:hover {
            background-color: rgb(247, 249, 249);
        }
    }
}

/* LANDING PAGE */

.x-landing {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    background: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    margin: 0;
}

/* Left section */
.x-landing__left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.x-landing__logo {
    max-width: 300px;
    width: 60%;
}

/* Right section */
.x-landing__right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.x-landing__title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.x-landing__subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Buttons */
.x-landing__btn {
    display: block;
    width: 300px;
    padding: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 9999px;
    border: none;
    margin-bottom: 1rem;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

.x-landing__btn--signup {
    background: black;
    color: white;
}

.x-landing__btn--signup:hover {
    background: #333;
}

.x-landing__btn--login {
    background: white;
    color: black;
    border: 1px solid #ccc;
}

.x-landing__btn--login:hover {
    background: #f5f5f5;
}

/* Footer */
.x-landing__footer {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    body.x-landing {
        flex-direction: column;
        text-align: center;
    }

    .x-landing__right {
        align-items: center;
    }

    .x-landing__left {
        display: none;
    }

    .x-landing__btn {
        width: 90%;
        max-width: 300px;
    }
}

/* DIALOG COMPONENTS */
.x-dialog {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.x-dialog.active {
    display: flex;
}

.x-dialog__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.x-dialog__content {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.x-dialog__close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.x-dialog__header {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.x-dialog__logo {
    width: 36px;
    height: 36px;
}

.x-dialog__form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.x-dialog__form div {
    width: 100%;
    label {
        color: rgb(150, 150, 150);
        span {
            color: rgb(0, 0, 0);
        }
    }
}

.x-dialog__form input {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.x-dialog__btn {
    width: 100%;
    background: #0b0f11;
    color: #fff;
    border: none;
    padding: 0.8rem;
    border-radius: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.x-dialog__btn:hover {
    background: #222;
}

.x-dialog__alt {
    text-align: center;
    font-size: 0.9rem;
}
.x-dialog__alt a {
    color: #1d9bf0;
    text-decoration: none;
}
.x-dialog__alt a:hover {
    text-decoration: underline;
}
.x-auth-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    padding: 1.5rem;
}

.x-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid rgb(230, 230, 230);
    padding: 2rem 2.2rem;
    box-shadow: 0 8px 24px rgba(15, 20, 25, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.x-auth-card__header {
    text-align: left;
}

.x-auth-card__logo {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.x-auth-card__header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.x-auth-card__header p {
    font-size: 0.9rem;
    color: rgb(83, 100, 113);
}

.x-auth-card__footer {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.x-auth-card__footer a {
    color: rgb(29, 155, 240);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.x-auth-card__footer a:hover {
    text-decoration: underline;
}

.x-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.x-auth-form__group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.x-auth-form__group label {
    font-size: 0.8rem;
    color: rgb(83, 100, 113);
}

.x-auth-form__group label span {
    color: rgb(15, 20, 25);
}

.x-auth-form__input-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgb(207, 217, 222);
    background: #f7f9f9;
    transition: border-color 0.15s ease, background-color 0.15s ease,
        box-shadow 0.15s ease;
}

.x-auth-form__input-wrap:focus-within {
    border-color: rgb(29, 155, 240);
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(29, 155, 240, 0.2);
}

.x-auth-form__icon {
    font-size: 0.95rem;
    color: rgb(83, 100, 113);
    min-width: 1rem;
    text-align: center;
}

.x-auth-form__input-wrap input {
    border: none;
    outline: none;
    background: transparent;
    flex: 1;
    font-size: 0.95rem;
    padding: 0;
}

.x-auth-form__btn {
    width: 100%;
    border-radius: 999px;
    background-color: rgb(15, 20, 25);
    color: #ffffff;
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.15s ease, transform 0.05s ease,
        box-shadow 0.1s ease;
}

.x-auth-form__btn i {
    font-size: 0.95rem;
}

.x-auth-form__btn:hover {
    background-color: rgb(39, 44, 48);
}

.x-auth-form__btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 6px rgba(15, 20, 25, 0.3);
}

.x-toast {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    background: #f7f9f9;
    border: 1px solid rgb(207, 217, 222);
    color: rgb(15, 20, 25);
    display: none;
}

.x-toast.toast--success {
    display: block;
    border-color: #00ba7c;
    background: rgba(0, 186, 124, 0.1);
    color: #00553b;
}

.x-toast.toast--error {
    display: block;
    border-color: #f4212e;
    background: rgba(244, 33, 46, 0.08);
    color: #661018;
}

.x-toast.toast--info {
    display: block;
    border-color: rgb(29, 155, 240);
    background: rgba(29, 155, 240, 0.08);
    color: #0b4d80;
}

@media (max-width: 600px) {
    .x-auth-card {
        padding: 1.5rem 1.3rem;
        border-radius: 1.2rem;
    }

    .x-auth-card__header h1 {
        font-size: 1.35rem;
    }

    .x-auth-page {
        padding: 1rem;
    }
}
.x-auth-success__actions {
    margin-top: 1rem;
}

.x-auth-page--success .x-auth-card__header {
    text-align: center;
}

.x-auth-page--success .x-auth-card__header h1 {
    margin-top: 0.5rem;
    font-size: 1.6rem;
}

.x-auth-page--success .x-auth-card__header p {
    color: rgb(83, 100, 113);
}

.profile-page {
    max-width: 37.5rem;
    margin: 0 auto;
    border-left: 0.0625rem solid #e1e8ed;
    border-right: 0.0625rem solid #e1e8ed;
    background-color: #ffffff;
    color: #0f1419;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
}

.profile-header {
    position: relative;
}

.profile-banner {
    height: 9.375rem;
    background: linear-gradient(135deg, #1d9bf0, #75c5ff);
}

.profile-avatar-wrapper {
    position: absolute;
    left: 1rem;
    bottom: 12rem;
}

.profile-avatar {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    border: 0.25rem solid #ffffff;
    object-fit: cover;
    background-color: #f0f2f5;
}

.profile-header-main {
    padding: 4.5rem 1rem 1rem;
}

.profile-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.profile-username {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #536471;
}

.profile-bio {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.profile-meta {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #536471;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.profile-meta i {
    margin-right: 0.25rem;
}

.profile-stats {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    gap: 1rem;
}

.profile-stats span strong {
    font-weight: 700;
}

.profile-edit summary {
    list-style: none;
    cursor: pointer;
}

.profile-edit summary::-webkit-details-marker {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    border-radius: 9999rem;
    border: 0.0625rem solid #cfd9de;
    font-size: 0.875rem;
    background: #ffffff;
    color: #0f1419;
    cursor: pointer;
}

.btn:hover {
    background: #f7f9f9;
}

.btn-edit-profile {
    font-weight: 600;
}

.btn-save-profile {
    background-color: #1d9bf0;
    border-color: #1d9bf0;
    color: #ffffff;
    font-weight: 700;
    margin-top: 1rem;
    width: 100%;
}

.btn-save-profile:hover {
    background-color: #1a8cd8;
}

.profile-edit > .x-dialog__form {
    height: 1rem;
}

.btn-delete-profile {
    background-color: #c90404;
    border-color: #c90404;
    color: #ffffff;
    font-weight: 700;
    /* z-index: 9999;
    position: absolute; */
}

.btn-delete-profile:hover {
    background-color: #860000;
}

.profile-edit-form {
    margin-top: 0.75rem;
    padding: 1rem;
    background-color: #ffffff;
    border-radius: 1rem;
    border: 0.0625rem solid #e1e8ed;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    top: 125%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    width: 320px;
}

.profile-field {
    display: flex;
    flex-direction: column;
    font-size: 0.8125rem;
    gap: 0.25rem;
}

.profile-field span {
    color: #536471;
}

.profile-field input,
.profile-field textarea {
    background-color: #ffffff;
    border: 0.0625rem solid #cfd9de;
    border-radius: 0.5rem;
    padding: 0.5rem 0.625rem;
    color: #0f1419;
    font-size: 0.875rem;
}

.profile-field input:focus,
.profile-field textarea:focus {
    outline: none;
    border-color: #1d9bf0;
}

.profile-tabs {
    display: flex;
    border-bottom: 0.0625rem solid #e1e8ed;
}

.profile-tab {
    flex: 1;
    padding: 0.75rem 0;
    border: none;
    background: transparent;
    color: #536471;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
}

.profile-tab:hover:not(:disabled) {
    background-color: #f7f9f9;
}

.profile-tab.active {
    color: #0f1419;
}

.profile-tab.active::after {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: 0;
    height: 0.1875rem;
    border-radius: 0.1875rem 0.1875rem 0 0;
    background-color: #1d9bf0;
}

.profile-tab:disabled {
    opacity: 0.5;
    cursor: default;
}

.profile-timeline {
    padding: 0 1rem 1rem;
    background-color: #ffffff;
}

.profile-empty-state {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #536471;
}

@media (max-width: 30rem) {
    .profile-page {
        border-left: none;
        border-right: none;
    }

    .profile-avatar {
        width: 6rem;
        height: 6rem;
    }

    .profile-avatar-wrapper {
        bottom: -2.5rem;
    }

    .profile-header-main {
        padding: 4rem 0.75rem 0.75rem;
    }

    .btn-edit-profile {
        padding: 0.25rem 0.625rem;
        font-size: 0.8125rem;
    }
}

/* When the profile-edit details is open… */
.profile-page:has(details.profile-edit[open]) {
    position: relative;
}

/* Create a pseudo-element overlay */
.profile-page:has(details.profile-edit[open])::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* darken */
    backdrop-filter: blur(6px); /* blur */
    z-index: 90;
    pointer-events: none;
}

/* Make sure the actual details popup stays above the blur */
details.profile-edit[open] {
    position: relative;
    z-index: 999;
}
.profile-page:has(details.profile-edit[open]) {
    position: relative;
}

.profile-page:has(details.profile-edit[open])::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 90;
    pointer-events: none;
}

details.profile-edit[open] {
    position: relative;
    z-index: 999;
}

details.profile-edit .close-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: #bbb;
    z-index: 1001;
}

details.profile-edit .close-edit:hover {
    color: #fff;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    form {
        display: flex;
        flex-direction: column;
    }
}
.modal.hidden {
    display: none;
}

.modal-content {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 8px;
    position: relative;
}

.close {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    font-size: 22px;
}
.blocked {
    background: rgba(255, 0, 0, 0.124);
}
#admin details[open] summary.admin ~ * {
    animation: open 0.3s ease-in-out;
}

@keyframes open {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}
#admin details.admin summary.admin::-webkit-details-marker {
    display: none;
}

#admin details.admin summary.admin {
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid black;
    position: relative;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 300;
    list-style: none;
}

#admin details.admin summary.admin:after {
    content: "+";
    color: black;
    position: absolute;
    font-size: 1.75rem;
    line-height: 0;
    margin-top: 0.75rem;
    right: 0;
    font-weight: 200;
    transform-origin: center;
    transition: 200ms linear;
}
#admin details.admin[open] summary.admin:after {
    transform: rotate(45deg);
    font-size: 2rem;
}
#admin details.admin summary.admin {
    outline: 0;
}
#admin details.admin p {
    font-size: 0.95rem;
    margin: 0 0 1rem;
    padding-top: 1rem;
}
