/* ForumX V18 — Premium profile dashboard
   Loaded after the existing profile and warning styles. */

:root {
    --fx-profile-blue: #4f8cff;
    --fx-profile-blue-strong: #2874ff;
    --fx-profile-cyan: #35d0ff;
    --fx-profile-violet: #8b5cf6;
    --fx-profile-green: #35d59a;
    --fx-profile-rose: #fb7185;
    --fx-profile-panel: color-mix(in srgb, var(--card, #17263a) 92%, #071426);
    --fx-profile-panel-2: color-mix(in srgb, var(--card-2, #1c2c40) 90%, #0a1728);
    --fx-profile-line: color-mix(in srgb, var(--accent, #4f8cff) 20%, var(--line, #31445c));
    --fx-profile-shadow: 0 22px 60px rgba(1, 8, 20, .28);
}

/* Rank progress */
.fx-rank-progress-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 22px 0;
    padding: 22px;
    border: 1px solid var(--fx-profile-line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 92% -10%, rgba(79, 140, 255, .24), transparent 34%),
        radial-gradient(circle at 0% 110%, rgba(139, 92, 246, .15), transparent 35%),
        linear-gradient(145deg, var(--fx-profile-panel), var(--fx-profile-panel-2));
    box-shadow: var(--fx-profile-shadow), inset 0 1px 0 rgba(255, 255, 255, .035);
}
.fx-rank-progress-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 0;
    width: 46%;
    height: 3px;
    border-radius: 0 0 99px 0;
    background: linear-gradient(90deg, var(--fx-profile-blue), var(--fx-profile-violet), transparent);
    box-shadow: 0 0 24px rgba(79, 140, 255, .55);
}
.fx-rank-progress-head {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
}
.fx-rank-progress-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(251, 191, 36, .23);
    border-radius: 18px;
    color: #fbbf24;
    background: linear-gradient(145deg, rgba(245, 158, 11, .2), rgba(79, 140, 255, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 28px rgba(0, 0, 0, .2);
}
.fx-rank-progress-icon svg { width: 28px; height: 28px; }
.fx-rank-progress-head > div { min-width: 0; display: grid; gap: 4px; }
.fx-rank-progress-head small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fx-rank-progress-head strong {
    color: var(--text-strong, #fff);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}
.fx-rank-progress-head > b {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(79, 140, 255, .27);
    border-radius: 999px;
    color: #cfe0ff;
    background: rgba(79, 140, 255, .1);
    font-size: .84rem;
    white-space: nowrap;
}
.fx-rank-progress-track {
    position: relative;
    height: 12px;
    margin: 20px 0 11px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .035);
    border-radius: 999px;
    background: rgba(3, 11, 25, .54);
    box-shadow: inset 0 2px 7px rgba(0, 0, 0, .3);
}
.fx-rank-progress-track i {
    position: relative;
    display: block;
    height: 100%;
    min-width: 8px;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fx-profile-blue-strong), var(--fx-profile-violet) 58%, #f59e0b);
    box-shadow: 0 0 22px rgba(79, 140, 255, .52);
}
.fx-rank-progress-track i::after {
    content: "";
    position: absolute;
    inset: 1px 3px auto;
    height: 3px;
    border-radius: 99px;
    background: rgba(255, 255, 255, .38);
}
.fx-rank-progress-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: .78rem;
}
.fx-rank-progress-foot span:first-child { color: #bcd2ff; font-weight: 750; }

/* Suspension and warning center */
.profile-suspension-summary,
.profile-warning-summary {
    position: relative;
    overflow: hidden;
    margin: 22px 0 !important;
    border: 1px solid color-mix(in srgb, var(--fx-profile-rose) 22%, var(--fx-profile-line)) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 96% 0, rgba(251, 113, 133, .13), transparent 30%),
        linear-gradient(145deg, var(--fx-profile-panel), var(--fx-profile-panel-2)) !important;
    box-shadow: var(--fx-profile-shadow), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.profile-suspension-summary {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 20px !important;
}
.profile-suspension-summary > span:first-child,
.profile-warning-heading > span {
    width: 52px !important;
    height: 52px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(251, 113, 133, .23) !important;
    border-radius: 17px !important;
    color: var(--fx-profile-rose) !important;
    background: linear-gradient(145deg, rgba(251, 113, 133, .17), rgba(79, 140, 255, .08)) !important;
}
.profile-suspension-summary > span:first-child svg,
.profile-warning-heading > span svg { width: 24px; height: 24px; }
.profile-suspension-summary > div { min-width: 0; display: grid; gap: 5px; }
.profile-suspension-summary strong { color: #fff; font-size: 1rem; }
.profile-suspension-summary small { color: var(--muted); line-height: 1.55; }
.profile-warning-summary { padding: 22px !important; }
.profile-warning-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-profile-rose), #f59e0b 40%, transparent 78%);
    opacity: .85;
}
.profile-warning-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 18px !important;
}
.profile-warning-heading { min-width: 0; display: flex !important; align-items: center !important; gap: 14px !important; }
.profile-warning-heading > div { min-width: 0; display: grid; gap: 4px; }
.profile-warning-heading strong { color: var(--text-strong, #fff); font-size: 1.02rem; }
.profile-warning-heading small { color: var(--muted); font-size: .76rem; }
.profile-warning-actions { display: flex !important; gap: 9px !important; }
.profile-warning-actions .button {
    min-height: 42px;
    border-radius: 13px;
    padding-inline: 15px;
}
.profile-warning-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 11px !important;
}
.profile-warning-list > a {
    min-width: 0;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, .07) !important;
    border-radius: 16px !important;
    color: var(--text) !important;
    background: rgba(255, 255, 255, .025) !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.profile-warning-list > a:hover {
    transform: translateY(-2px);
    border-color: rgba(251, 113, 133, .28) !important;
    background: rgba(251, 113, 133, .055) !important;
}
.profile-warning-list > a > span:nth-child(2) { min-width: 0; }
.profile-warning-list strong,
.profile-warning-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-warning-list em {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
    font-size: .68rem !important;
    font-weight: 750;
}
.profile-warning-empty {
    min-height: 112px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 13px !important;
    grid-column: 1 / -1 !important;
    padding: 20px !important;
    border: 1px dashed rgba(53, 213, 154, .25) !important;
    border-radius: 18px !important;
    background: rgba(53, 213, 154, .035);
}
.profile-warning-empty > svg { width: 24px; height: 24px; color: var(--fx-profile-green) !important; }
.profile-warning-empty span { display: grid; gap: 4px; }
.profile-warning-empty strong { color: var(--text-strong, #fff); }
.profile-warning-empty small { color: var(--muted); }

/* Metric dashboard */
.profile-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 13px !important;
    margin: 22px 0 !important;
}
.profile-stat-grid > div {
    position: relative;
    min-width: 0;
    min-height: 118px;
    display: grid !important;
    grid-template-columns: 52px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    align-content: center;
    align-items: center;
    column-gap: 14px;
    row-gap: 2px;
    overflow: hidden;
    padding: 18px !important;
    border: 1px solid var(--fx-profile-line) !important;
    border-radius: 20px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(79, 140, 255, .12), transparent 34%),
        linear-gradient(145deg, var(--fx-profile-panel), var(--fx-profile-panel-2)) !important;
    box-shadow: 0 14px 34px rgba(1, 8, 20, .18), inset 0 1px 0 rgba(255, 255, 255, .03);
    transition: transform .2s ease, border-color .2s ease;
}
.profile-stat-grid > div:hover { transform: translateY(-2px); border-color: rgba(79, 140, 255, .34) !important; }
.profile-stat-grid > div > span {
    grid-row: 1 / 3;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(79, 140, 255, .18);
    border-radius: 16px;
    color: var(--fx-profile-blue);
    background: linear-gradient(145deg, rgba(79, 140, 255, .18), rgba(79, 140, 255, .06));
}
.profile-stat-grid > div:nth-child(2) > span { color: var(--fx-profile-cyan); background: linear-gradient(145deg, rgba(53, 208, 255, .18), rgba(53, 208, 255, .05)); }
.profile-stat-grid > div:nth-child(3) > span { color: #fbbf24; background: linear-gradient(145deg, rgba(251, 191, 36, .18), rgba(251, 191, 36, .05)); }
.profile-stat-grid > div:nth-child(4) > span { color: var(--fx-profile-violet); background: linear-gradient(145deg, rgba(139, 92, 246, .19), rgba(139, 92, 246, .05)); }
.profile-stat-grid > div:nth-child(5) > span { color: var(--fx-profile-green); background: linear-gradient(145deg, rgba(53, 213, 154, .18), rgba(53, 213, 154, .05)); }
.profile-stat-grid > div:nth-child(6) > span { color: var(--fx-profile-rose); background: linear-gradient(145deg, rgba(251, 113, 133, .18), rgba(251, 113, 133, .05)); }
.profile-stat-grid > div > span svg { width: 23px; height: 23px; }
.profile-stat-grid strong {
    min-width: 0;
    align-self: end;
    color: var(--text-strong, #fff);
    font-size: clamp(1.35rem, 2.8vw, 1.75rem);
    line-height: 1;
}
.profile-stat-grid small {
    align-self: start;
    overflow: hidden;
    color: var(--muted);
    font-size: .73rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Actual profile tabs */
.profile-tabs[data-profile-tabs] {
    position: relative;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}
.profile-tabs[data-profile-tabs]::-webkit-scrollbar { display: none; }
.profile-tabs[data-profile-tabs] a {
    position: relative;
    isolation: isolate;
    min-width: 130px;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.profile-tabs[data-profile-tabs] a::after {
    content: "";
    position: absolute;
    right: 20%;
    bottom: 5px;
    left: 20%;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent, var(--fx-profile-blue), transparent);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .2s ease, transform .2s ease;
}
.profile-tabs[data-profile-tabs] a.active::after { opacity: 1; transform: scaleX(1); }
.profile-layout[data-profile-panels] {
    display: block !important;
    margin: 22px 0 0 !important;
}
.profile-layout[data-profile-panels] > .profile-main,
.profile-layout[data-profile-panels] > .profile-sidebar { display: contents !important; }
.profile-tab-panel[hidden] { display: none !important; }
.profile-tab-panel {
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px solid var(--fx-profile-line) !important;
    border-radius: 24px !important;
    background:
        radial-gradient(circle at 100% 0, rgba(79, 140, 255, .1), transparent 28%),
        linear-gradient(145deg, var(--fx-profile-panel), var(--fx-profile-panel-2)) !important;
    box-shadow: var(--fx-profile-shadow), inset 0 1px 0 rgba(255, 255, 255, .03);
    animation: fxProfilePanelIn .28s ease both;
}
.profile-tab-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 180px;
    height: 3px;
    border-radius: 0 0 99px 0;
    background: linear-gradient(90deg, var(--fx-profile-blue), var(--fx-profile-violet), transparent);
}
@keyframes fxProfilePanelIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Recent posts */
#profile-posts .profile-posts-heading {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin: 0 0 17px !important;
}
#profile-posts .profile-posts-heading > div { min-width: 0; display: grid; gap: 5px; }
#profile-posts .profile-posts-heading .eyebrow {
    color: var(--fx-profile-blue);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}
#profile-posts .profile-posts-heading h2 { margin: 0; color: var(--text-strong, #fff); font-size: clamp(1.35rem, 3vw, 1.75rem); }
#profile-posts .profile-posts-heading .button { min-height: 40px; border-radius: 13px; }
#profile-posts .profile-activity-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px !important;
}
#profile-posts .profile-activity-list > .profile-activity-item {
    min-width: 0;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) 28px !important;
    align-items: center !important;
    gap: 12px !important;
    min-height: 104px;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, .07) !important;
    border-radius: 17px !important;
    background: rgba(255, 255, 255, .025) !important;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
#profile-posts .profile-activity-list > .profile-activity-item:hover {
    transform: translateY(-2px);
    border-color: rgba(79, 140, 255, .3) !important;
    background: rgba(79, 140, 255, .055) !important;
}
#profile-posts .activity-icon {
    width: 46px !important;
    height: 46px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid rgba(79, 140, 255, .2) !important;
    border-radius: 15px !important;
    color: var(--fx-profile-blue) !important;
    background: linear-gradient(145deg, rgba(79, 140, 255, .18), rgba(79, 140, 255, .05)) !important;
}
#profile-posts .activity-icon svg { width: 21px !important; height: 21px !important; }
#profile-posts .activity-copy { min-width: 0; display: grid !important; gap: 5px !important; }
#profile-posts .activity-copy strong {
    overflow: hidden;
    color: var(--text-strong, #fff) !important;
    font-size: .88rem !important;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#profile-posts .activity-copy small {
    display: -webkit-box !important;
    overflow: hidden;
    color: var(--muted) !important;
    font-size: .75rem !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
#profile-posts .activity-copy time {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    color: color-mix(in srgb, var(--muted) 88%, var(--fx-profile-blue)) !important;
    font-size: .68rem !important;
}
#profile-posts .activity-copy time svg { width: 13px; height: 13px; }
#profile-posts .activity-open { display: grid !important; place-items: center !important; color: var(--muted); }
#profile-posts .activity-open svg { width: 18px !important; height: 18px !important; }

/* About panel */
.profile-tab-panel .sidebar-title {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 17px;
}
.profile-tab-panel .sidebar-title > span {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(79, 140, 255, .2);
    border-radius: 15px;
    color: var(--fx-profile-blue);
    background: rgba(79, 140, 255, .11);
}
.profile-tab-panel .sidebar-title > span svg { width: 21px; height: 21px; }
.profile-tab-panel .sidebar-title > div { display: grid; gap: 3px; }
.profile-tab-panel .sidebar-title strong { color: var(--text-strong, #fff); font-size: 1rem; }
.profile-tab-panel .sidebar-title small { color: var(--muted); font-size: .73rem; }
.profile-bio {
    margin: 0 0 15px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 16px;
    color: var(--text);
    background: rgba(255, 255, 255, .025);
    font-size: .84rem;
    line-height: 1.65;
}
.profile-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}
.profile-detail-list > div {
    min-width: 0;
    display: grid;
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 15px;
    background: rgba(255, 255, 255, .022);
}
.profile-detail-list dt { color: var(--muted); font-size: .69rem; font-weight: 700; }
.profile-detail-list dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--text-strong, #fff); font-size: .84rem; font-weight: 750; }

/* Visitors */
.profile-visitor-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.profile-visitor-list > a {
    min-width: 0;
    display: grid !important;
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 13px !important;
    border: 1px solid rgba(255, 255, 255, .065) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, .023);
}
.profile-visitor-list > a:hover { border-color: rgba(79, 140, 255, .28) !important; background: rgba(79, 140, 255, .05) !important; }
.profile-visitor-list .avatar-sm { width: 46px !important; height: 46px !important; border: 2px solid rgba(79, 140, 255, .25); }
.profile-visitor-list > a > span { min-width: 0; display: grid; gap: 4px; }
.profile-visitor-list strong { color: var(--text-strong, #fff) !important; font-size: .82rem !important; }
.profile-visitor-list small { color: var(--muted) !important; font-size: .69rem !important; }
.profile-visitor-total {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin-top: 13px;
    padding: 14px 15px !important;
    border: 1px solid rgba(79, 140, 255, .12);
    border-radius: 15px;
    color: var(--muted) !important;
    background: rgba(79, 140, 255, .045) !important;
}
.profile-visitor-total strong { color: #d7e5ff !important; font-size: 1rem !important; }

/* Badges */
.profile-badge-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.profile-badge-list > span {
    min-width: 0;
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 13px;
    border: 1px solid color-mix(in srgb, var(--badge-color, var(--fx-profile-blue)) 24%, rgba(255, 255, 255, .06));
    border-radius: 16px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--badge-color, var(--fx-profile-blue)) 11%, transparent), rgba(255, 255, 255, .018));
}
.profile-badge-list > span > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--badge-color, #fff);
    background: color-mix(in srgb, var(--badge-color, var(--fx-profile-blue)) 15%, transparent);
    font-size: 1.2rem;
    font-style: normal;
}
.profile-badge-list > span > strong { min-width: 0; overflow: hidden; color: var(--text-strong, #fff); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-tab-panel .sidebar-more {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px solid rgba(79, 140, 255, .16);
    border-radius: 14px;
    color: #cfe0ff;
    background: rgba(79, 140, 255, .06);
    font-size: .76rem;
    font-weight: 750;
}
.profile-tab-panel .sidebar-more:hover { border-color: rgba(79, 140, 255, .32); background: rgba(79, 140, 255, .1); }
.profile-tab-panel .sidebar-more svg { width: 15px; height: 15px; }
.profile-tab-panel > .muted,
.profile-badge-list > .muted,
.profile-visitor-list > .muted,
.profile-activity-list > .muted {
    grid-column: 1 / -1;
    margin: 0 !important;
    padding: 22px !important;
    border: 1px dashed rgba(79, 140, 255, .18);
    border-radius: 16px;
    color: var(--muted);
    background: rgba(79, 140, 255, .025);
    text-align: center;
}

@media (max-width: 980px) {
    .profile-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    #profile-posts .profile-activity-list { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .fx-rank-progress-card,
    .profile-warning-summary,
    .profile-tab-panel { border-radius: 20px !important; }
    .fx-rank-progress-card { padding: 17px; }
    .fx-rank-progress-head { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
    .fx-rank-progress-icon { width: 50px; height: 50px; border-radius: 16px; }
    .fx-rank-progress-head > b { grid-column: 1 / -1; justify-self: stretch; min-height: 36px; }
    .fx-rank-progress-foot { align-items: flex-start; flex-direction: column; gap: 4px; }

    .profile-suspension-summary { grid-template-columns: 46px minmax(0, 1fr); padding: 17px !important; }
    .profile-suspension-summary > span:first-child { width: 46px !important; height: 46px !important; border-radius: 15px !important; }
    .profile-suspension-summary .button { grid-column: 1 / -1; width: 100%; }
    .profile-warning-summary { padding: 17px !important; }
    .profile-warning-header { align-items: stretch !important; flex-direction: column !important; }
    .profile-warning-heading > span { width: 46px !important; height: 46px !important; border-radius: 15px !important; }
    .profile-warning-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; width: 100%; }
    .profile-warning-actions .button { width: 100%; justify-content: center; }
    .profile-warning-list { grid-template-columns: 1fr !important; }

    .profile-stat-grid { gap: 10px !important; }
    .profile-stat-grid > div {
        min-height: 102px;
        grid-template-columns: 44px minmax(0, 1fr) !important;
        column-gap: 11px;
        padding: 14px !important;
        border-radius: 17px !important;
    }
    .profile-stat-grid > div > span { width: 44px; height: 44px; border-radius: 14px; }
    .profile-stat-grid > div > span svg { width: 20px; height: 20px; }
    .profile-stat-grid strong { font-size: 1.28rem; }
    .profile-stat-grid small { font-size: .66rem; }

    .profile-tabs[data-profile-tabs] a { min-width: 112px; }
    .profile-layout[data-profile-panels] { margin-top: 17px !important; }
    .profile-tab-panel { padding: 17px !important; }
    #profile-posts .profile-posts-heading { align-items: stretch !important; flex-direction: column !important; }
    #profile-posts .profile-posts-heading .button { width: 100%; justify-content: center; }
    #profile-posts .profile-activity-list > .profile-activity-item {
        grid-template-columns: 42px minmax(0, 1fr) 22px !important;
        min-height: 94px;
        padding: 12px !important;
        border-radius: 15px !important;
    }
    #profile-posts .activity-icon { width: 42px !important; height: 42px !important; border-radius: 14px !important; }
    .profile-detail-list,
    .profile-visitor-list,
    .profile-badge-list { grid-template-columns: 1fr; }
}

@media (max-width: 390px) {
    .profile-stat-grid > div { grid-template-columns: 40px minmax(0, 1fr) !important; padding: 12px !important; }
    .profile-stat-grid > div > span { width: 40px; height: 40px; }
    .profile-stat-grid strong { font-size: 1.16rem; }
    .profile-warning-actions { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
    .profile-tab-panel { animation: none; }
    .profile-stat-grid > div,
    .profile-warning-list > a,
    #profile-posts .profile-activity-list > .profile-activity-item { transition: none; }
}
