.account-profile {
    min-height: 100vh;
    padding: 54px 0 90px;
    color: #f4f5f7;
    background:
        radial-gradient(
            circle at top left,
            rgba(244, 185, 66, 0.09),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 20%,
            rgba(64, 126, 255, 0.08),
            transparent 28%
        ),
        #080b12;
}

.account-profile *,
.account-profile *::before,
.account-profile *::after {
    box-sizing: border-box;
}

.account-profile-header {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.account-profile-kicker,
.account-panel-kicker,
.account-profile-label {
    display: block;
    color: #f4b942;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.account-profile-header h1 {
    margin: 8px 0 10px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1;
}

.account-profile-header p {
    max-width: 720px;
    margin: 0;
    color: #979eac;
    line-height: 1.7;
}

.account-profile-back {
    min-height: 45px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f4f5f7;
    background: rgba(255, 255, 255, 0.03);
    font-weight: 800;
    text-decoration: none;
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

.account-profile-back:hover {
    border-color: rgba(244, 185, 66, 0.4);
    background: rgba(244, 185, 66, 0.08);
    transform: translateY(-2px);
}

.account-profile-cover {
    min-height: 290px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    background:
        linear-gradient(
            115deg,
            rgba(8, 11, 18, 0.9),
            rgba(14, 20, 34, 0.7)
        ),
        radial-gradient(
            circle at 25% 10%,
            rgba(244, 185, 66, 0.32),
            transparent 38%
        ),
        linear-gradient(
            135deg,
            #151c2a,
            #090c13
        );
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.account-profile-cover::after {
    width: 500px;
    height: 500px;
    content: "";
    position: absolute;
    right: -170px;
    bottom: -310px;
    border: 1px solid rgba(244, 185, 66, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 55px rgba(244, 185, 66, 0.025),
        0 0 0 110px rgba(244, 185, 66, 0.02);
}

.account-profile-cover-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.12;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent
        );
}

.account-profile-identity {
    width: 100%;
    padding: 36px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 26px;
}

.account-profile-avatar-wrap {
    width: 154px;
    height: 154px;
    position: relative;
    flex: 0 0 154px;
    padding: 5px;
    border-radius: 24px;
    background:
        linear-gradient(
            145deg,
            #ffd77d,
            #b77719
        );
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.48),
        0 0 40px rgba(244, 185, 66, 0.12);
}

.account-profile-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border: 4px solid #10141d;
    border-radius: 20px;
    background: #111722;
}

.account-profile-status {
    width: 24px;
    height: 24px;
    position: absolute;
    right: -3px;
    bottom: 10px;
    display: block;
    border: 4px solid #10141d;
    border-radius: 50%;
    background: #7d8491;
}

.account-profile-status.is-active {
    background: #45d483;
    box-shadow: 0 0 18px rgba(69, 212, 131, 0.7);
}

.account-profile-status.is-banned {
    background: #ff5c69;
}

.account-profile-status.is-suspended {
    background: #f4b942;
}

.account-profile-name h2 {
    margin: 7px 0 8px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
}

.account-profile-name p {
    margin: 0;
    color: #abb1bd;
    font-size: 16px;
}

.account-profile-name p strong {
    color: #f4f5f7;
}

.account-profile-badges {
    margin-top: 17px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.account-role-badge,
.account-status-badge,
.account-vip-badge {
    min-height: 31px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-role-badge {
    border: 1px solid rgba(255, 255, 255, 0.11);
    color: #e6e9ef;
    background: rgba(255, 255, 255, 0.06);
}

.account-role-badge.role-owner {
    border-color: rgba(255, 91, 105, 0.34);
    color: #ff8f98;
    background: rgba(255, 91, 105, 0.1);
}

.account-role-badge.role-admin {
    border-color: rgba(183, 112, 255, 0.35);
    color: #d4a7ff;
    background: rgba(183, 112, 255, 0.1);
}

.account-role-badge.role-moderator {
    border-color: rgba(80, 150, 255, 0.35);
    color: #9dc5ff;
    background: rgba(80, 150, 255, 0.1);
}

.account-role-badge.role-vip {
    border-color: rgba(244, 185, 66, 0.4);
    color: #ffd77d;
    background: rgba(244, 185, 66, 0.1);
}

.account-status-badge {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #aab0bb;
    background: rgba(255, 255, 255, 0.04);
}

.account-status-badge.is-active {
    border-color: rgba(69, 212, 131, 0.3);
    color: #70e6a5;
    background: rgba(69, 212, 131, 0.09);
}

.account-status-badge.is-banned {
    border-color: rgba(255, 92, 105, 0.3);
    color: #ff8d96;
    background: rgba(255, 92, 105, 0.09);
}

.account-vip-badge {
    border: 1px solid rgba(244, 185, 66, 0.4);
    color: #1c1405;
    background:
        linear-gradient(
            135deg,
            #ffd77d,
            #f4b942
        );
}

.account-profile-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.account-action {
    min-height: 94px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 16px;
    color: #f4f5f7;
    background: rgba(16, 21, 31, 0.92);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.account-action:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 185, 66, 0.34);
    background: rgba(244, 185, 66, 0.065);
}

.account-action-primary {
    border-color: rgba(244, 185, 66, 0.34);
    background:
        linear-gradient(
            135deg,
            rgba(244, 185, 66, 0.14),
            rgba(244, 185, 66, 0.04)
        );
}

.account-action-icon,
.account-community-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    border: 1px solid rgba(244, 185, 66, 0.25);
    border-radius: 13px;
    color: #ffd77d;
    background: rgba(244, 185, 66, 0.08);
    font-size: 19px;
    font-weight: 900;
}

.account-action strong,
.account-action small {
    display: block;
}

.account-action strong {
    margin-bottom: 4px;
    font-size: 14px;
}

.account-action small {
    color: #8e96a5;
    font-size: 12px;
    line-height: 1.4;
}

.account-profile-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.3fr)
        minmax(320px, 0.7fr);
    gap: 22px;
}

.account-profile-panel,
.account-community-panel {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 20px;
    background: rgba(15, 20, 30, 0.93);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.2);
}

.account-panel-header {
    min-height: 94px;
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.account-panel-header h2 {
    margin: 6px 0 0;
    font-size: 20px;
}

.account-panel-header > a {
    color: #f4b942;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
}

.account-information-list {
    padding: 4px 24px 12px;
}

.account-information-row {
    min-height: 68px;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.account-information-row:last-child {
    border-bottom: 0;
}

.account-information-row span {
    color: #8f97a5;
    font-size: 14px;
}

.account-information-row strong {
    max-width: 60%;
    overflow-wrap: anywhere;
    color: #f0f2f5;
    text-align: right;
    font-size: 14px;
}

.account-information-row strong.is-active {
    color: #70e6a5;
}

.account-information-row strong.is-banned {
    color: #ff8d96;
}

.account-information-row strong.is-suspended {
    color: #ffd77d;
}

.account-statistics {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.account-statistic {
    min-height: 105px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
}

.account-statistic span {
    color: #8f97a5;
    font-size: 12px;
    font-weight: 750;
}

.account-statistic strong {
    margin-top: 14px;
    color: #f4f5f7;
    font-size: 16px;
}

.account-statistic strong.is-vip-active {
    color: #ffd77d;
}

.account-community-panel {
    margin-top: 22px;
}

.account-community-grid {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.account-community-card {
    min-height: 100px;
    padding: 17px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    color: #f4f5f7;
    background: rgba(255, 255, 255, 0.025);
    text-decoration: none;
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background 180ms ease;
}

.account-community-card:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 185, 66, 0.32);
    background: rgba(244, 185, 66, 0.055);
}

.account-community-card strong,
.account-community-card small {
    display: block;
}

.account-community-card strong {
    margin-bottom: 5px;
    font-size: 14px;
}

.account-community-card small {
    color: #8f97a5;
    font-size: 12px;
    line-height: 1.45;
}

.account-staff-card {
    border-color: rgba(80, 150, 255, 0.22);
}

.account-staff-card .account-community-icon {
    border-color: rgba(80, 150, 255, 0.25);
    color: #9dc5ff;
    background: rgba(80, 150, 255, 0.08);
}

.account-logout-card {
    border-color: rgba(255, 92, 105, 0.16);
}

.account-logout-card .account-community-icon {
    border-color: rgba(255, 92, 105, 0.22);
    color: #ff8d96;
    background: rgba(255, 92, 105, 0.07);
}

@media (max-width: 1050px) {
    .account-profile-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-profile-grid {
        grid-template-columns: 1fr;
    }

    .account-community-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .account-profile {
        padding-top: 32px;
    }

    .account-profile-header {
        align-items: stretch;
        flex-direction: column;
    }

    .account-profile-back {
        width: 100%;
    }

    .account-profile-cover {
        min-height: 390px;
    }

    .account-profile-identity {
        padding: 28px 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .account-profile-avatar-wrap {
        width: 126px;
        height: 126px;
        flex-basis: 126px;
    }

    .account-profile-actions,
    .account-community-grid {
        grid-template-columns: 1fr;
    }

    .account-statistics {
        grid-template-columns: 1fr;
    }

    .account-information-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .account-information-row strong {
        max-width: 100%;
        text-align: left;
    }
}

@media (max-width: 440px) {
    .account-profile-cover {
        border-radius: 18px;
    }

    .account-profile-name h2 {
        font-size: 31px;
    }

    .account-profile-identity {
        padding: 24px 17px;
    }

    .account-action,
    .account-community-card {
        align-items: flex-start;
    }
}