body.page-profile {
    position: relative;
    background: none !important;
}

body.page-profile .profile-background {
    position: fixed;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

body.page-profile .profile-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("assets/mainbackground.png") center center / cover no-repeat;
    opacity: 0.34;
}

body.page-profile .profile-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(22, 28, 40, 0.7), rgba(16, 22, 33, 0.78), rgba(10, 15, 24, 0.86)),
        radial-gradient(circle at 12% 16%, rgba(108, 60, 240, 0.12), transparent 18%),
        radial-gradient(circle at 86% 12%, rgba(255, 199, 44, 0.08), transparent 16%);
}

body.page-profile::before,
body.page-profile::after,
body.page-profile .page-shell::before,
body.page-profile .page-shell::after,
body.page-profile .site-header::before,
body.page-profile .site-header::after,
body.page-profile .page-main::before,
body.page-profile .page-main::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
}

body.page-profile .site-header {
    position: relative;
    top: auto;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

body.page-profile .profile-summary-panel {
    position: relative;
    display: grid;
    justify-items: stretch;
    margin-bottom: 34px;
    isolation: isolate;
}

body.page-profile .profile-summary-panel::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(100%, 500px);
    height: 170px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 50% 72%, rgba(78, 209, 255, 0.2), rgba(78, 209, 255, 0.08) 26%, transparent 62%),
        radial-gradient(circle at 34% 48%, rgba(111, 225, 255, 0.14), transparent 12%),
        radial-gradient(circle at 66% 40%, rgba(111, 225, 255, 0.12), transparent 11%);
    filter: blur(16px);
    opacity: 0.78;
    pointer-events: none;
    z-index: 0;
}

body.page-profile .profile-summary-panel::after {
    content: none;
}

body.page-profile .profile-summary-stage {
    width: min(100%, 1120px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

body.page-profile .profile-summary-stage:has(.profile-admin-entry:not([hidden])) {
    grid-template-columns: 220px minmax(0, 1fr);
}

body.page-profile .profile-admin-entry {
    display: grid;
    gap: 12px;
}

body.page-profile .profile-admin-toggle {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(116, 203, 255, 0.3);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(72, 84, 106, 0.9), rgba(58, 68, 87, 0.84));
    color: #f2f8ff;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(13, 18, 29, 0.16);
}

body.page-profile .profile-admin-toggle span {
    color: #8fdfff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.page-profile .profile-admin-toggle strong {
    font-size: 1rem;
}

body.page-profile .profile-admin-drawer {
    display: grid;
    gap: 10px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: max-height 320ms ease, opacity 220ms ease, transform 260ms ease;
}

body.page-profile .profile-admin-entry[data-open='true'] .profile-admin-drawer {
    max-height: 900px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body.page-profile .profile-admin-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(116, 203, 255, 0.22);
    background: linear-gradient(180deg, rgba(82, 95, 118, 0.86), rgba(58, 68, 87, 0.8));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.page-profile .profile-admin-card__eyebrow {
    color: #8fdfff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

body.page-profile .profile-admin-input {
    width: 100%;
    min-height: 108px;
    padding: 12px 13px;
    resize: vertical;
    border: 1px solid rgba(116, 203, 255, 0.24);
    border-radius: 16px;
    background: rgba(21, 27, 40, 0.28);
    color: #f4f8ff;
    font: inherit;
}

body.page-profile .profile-admin-input::placeholder {
    color: rgba(210, 232, 245, 0.52);
}

body.page-profile .profile-admin-submit,
body.page-profile .profile-admin-clear {
    width: 100%;
}

body.page-profile .profile-admin-status {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.84rem;
    font-weight: 700;
}

body.page-profile .profile-admin-status[data-state='loading'] {
    background: rgba(108, 60, 240, 0.12);
    color: #b8afff;
}

body.page-profile .profile-admin-status[data-state='error'] {
    background: rgba(255, 139, 216, 0.14);
    color: #ffc0df;
}

body.page-profile .profile-admin-status[data-state='success'] {
    background: rgba(84, 220, 166, 0.14);
    color: #9ff2c3;
}

body.page-profile .profile-admin-card--preview strong {
    color: #f4f8ff;
    line-height: 1.6;
}

body.page-profile .profile-admin-card--clear {
    align-content: start;
}

@media (max-width: 980px) {
    body.page-profile .profile-summary-stage:has(.profile-admin-entry:not([hidden])) {
        grid-template-columns: 1fr;
    }
}

