/* PRAXIS profile — reference layout, dark glass UI */

.page-profile.page-home--premium {
    --profile-max: min(1180px, calc(100vw - 48px));
    --profile-visible-rows: 5;
    --profile-table-row-height: 49px;
    --profile-table-head-height: 38px;
    --profile-activity-row-height: 64px;
    --profile-card: rgba(12, 14, 20, 0.78);
    --profile-line: rgba(255, 255, 255, 0.08);
    --profile-muted: rgba(255, 255, 255, 0.52);
    --profile-text: var(--text-primary, #f5f7fa);
    --profile-up: var(--profit, #6db892);
    --profile-down: #e07a7a;
    --profile-radius: 22px;
    --interactive-dots-bg: transparent;
    background: var(--bg-darker, #0a0d12);
    color: var(--profile-text);
}

.page-profile .profile-shell {
    position: relative;
    z-index: 2;
    flex: 1;
    width: var(--profile-max);
    max-width: var(--profile-max);
    margin: 0 auto;
    padding:
        calc(var(--landing-header-clearance, 146px) + 12px)
        0
        clamp(40px, 6vw, 72px);
}

.profile-loading,
.profile-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--profile-muted);
    font-size: 14px;
}

.profile-head {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.profile-head__copy h1 {
    margin: 0 0 6px;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.profile-head__meta {
    margin: 0;
    color: var(--profile-muted);
    font-size: 14px;
}

.profile-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 0 0 auto;
}

.profile-head__actions .profile-board-btn:not(.metal-shine-button) {
    min-height: 42px;
    padding: 0 16px;
    white-space: nowrap;
}

.profile-board-btn,
.profile-share-btn,
.profile-share-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--profile-text);
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-board-btn {
    min-height: 42px;
    border-radius: 999px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.profile-board-btn--primary {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.45);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.2);
}

.profile-board-btn:hover,
.profile-share-btn:hover,
.profile-share-row-btn:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.28);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.08);
}

.profile-board-btn--primary:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.58);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.3);
}

.page-profile .profile-board-btn.metal-shine-button {
    min-height: 42px !important;
    min-width: 0 !important;
    padding: 0 22px !important;
    font-size: 14px;
    text-decoration: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profile-account-menu {
    position: relative;
    flex: 0 0 auto;
}

.profile-account-menu__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--profile-text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.profile-account-menu__trigger:hover,
.profile-account-menu.is-open .profile-account-menu__trigger {
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.08);
}

.profile-account-menu__icon {
    display: block;
}

.profile-account-menu.is-open {
    z-index: 40;
}

.profile-account-menu__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    min-width: 196px;
    padding: 6px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 14, 20, 0.96);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 16px 40px rgba(0, 0, 0, 0.45);
}

.profile-account-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--profile-text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-account-menu__item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-account-menu__item--danger {
    color: #f0b4b4;
}

.profile-account-menu__item--danger:hover {
    background: rgba(224, 122, 122, 0.12);
    color: #f5caca;
}

.profile-empty--wide {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 56px 20px;
}

.profile-board {
    border-radius: var(--profile-radius);
    border: 1px solid var(--profile-line);
    background: var(--profile-card);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 18px 48px rgba(0, 0, 0, 0.38);
}

.profile-balance-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    padding: 24px 26px 20px;
    margin-bottom: 14px;
    background:
        linear-gradient(105deg, rgba(8, 10, 15, 0.94) 0%, rgba(8, 10, 15, 0.82) 38%, rgba(8, 10, 15, 0.42) 62%, rgba(8, 10, 15, 0.72) 100%),
        url("../assets/images/bannerrss.png") center right / cover no-repeat,
        linear-gradient(152deg, rgba(18, 23, 32, 0.96) 0%, rgba(10, 12, 18, 0.94) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 22px 56px rgba(0, 0, 0, 0.42);
}

.profile-balance-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(90deg, black 0%, transparent 52%);
    -webkit-mask-image: linear-gradient(90deg, black 0%, transparent 52%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.profile-balance-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 55% 90% at 100% 50%, rgba(var(--accent-rgb, 109, 184, 146), 0.1), transparent 68%),
        linear-gradient(90deg, rgba(8, 10, 15, 0.55) 0%, transparent 48%);
    pointer-events: none;
    z-index: 0;
}

.profile-balance-card > * {
    position: relative;
    z-index: 1;
}

.profile-balance-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    order: 0;
}

.profile-balance-card__head-main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.profile-lb-rank-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb, 109, 184, 146), 0.28);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb, 109, 184, 146), 0.16), rgba(var(--accent-rgb, 109, 184, 146), 0.08));
    color: var(--profile-text);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-lb-rank-tag[hidden] {
    display: none !important;
}

.profile-lb-rank-tag:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.42);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb, 109, 184, 146), 0.24), rgba(var(--accent-rgb, 109, 184, 146), 0.12));
}

.profile-balance-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--profile-muted);
}

.profile-balance-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(var(--accent-rgb, 109, 184, 146), 0.95), rgba(var(--accent-rgb, 109, 184, 146), 0.35));
}

.profile-balance-value {
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    order: 1;
    max-width: min(100%, 520px);
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: clamp(2.8rem, 5.8vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: left;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.profile-time-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb, 109, 184, 146), 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-time-tab {
    border: 0;
    background: transparent;
    color: var(--profile-muted);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 999px;
    cursor: pointer;
}

.profile-time-tab.is-active {
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb, 109, 184, 146), 0.22), rgba(var(--accent-rgb, 109, 184, 146), 0.1));
    color: var(--profile-text);
}

.profile-balance-metrics {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 10px 36px;
    order: 2;
    margin-top: auto;
    padding-top: 18px;
    padding-right: min(180px, 34%);
    max-width: none;
}

.profile-balance-metric {
    flex: 0 0 auto;
    padding: 0;
    border: none;
    background: transparent;
}

.profile-balance-metric__label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--profile-muted);
}

.profile-balance-metric__value {
    display: block;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    color: var(--profile-text);
}

.profile-balance-card__foot {
    position: absolute;
    right: 26px;
    bottom: 20px;
    z-index: 2;
    order: 3;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0;
}

.profile-balance-card .profile-share-btn {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.22);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-balance-card .profile-share-btn:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.38);
    background:
        linear-gradient(180deg, rgba(var(--accent-rgb, 109, 184, 146), 0.14), rgba(var(--accent-rgb, 109, 184, 146), 0.06));
}

.profile-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 14px;
    align-items: start;
}

.profile-trades-panel,
.profile-activity {
    padding: 20px 22px 18px;
}

.profile-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--profile-line);
}

.profile-tab {
    margin: 0 0 -1px;
    padding: 0 0 11px;
    border: 0;
    background: none;
    color: var(--profile-muted);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.profile-tab.is-active {
    color: var(--profile-text);
    border-bottom-color: rgba(var(--accent-rgb, 109, 184, 146), 0.75);
}

.profile-search {
    width: 100%;
    height: 42px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid var(--profile-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--profile-text);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.profile-search::placeholder {
    color: rgba(255, 255, 255, 0.32);
}

.profile-search:focus {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.35);
}

.profile-table-scroll {
    max-height: calc(var(--profile-table-head-height) + (var(--profile-table-row-height) * var(--profile-visible-rows)));
    overflow-x: auto;
    overflow-y: auto;
    margin-right: -4px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.profile-table-scroll::-webkit-scrollbar {
    width: 6px;
}

.profile-table-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.profile-table {
    width: 100%;
    border-collapse: collapse;
}

.profile-table th,
.profile-table td {
    padding: 13px 8px;
    text-align: left;
    border-bottom: 1px solid var(--profile-line);
    font-size: 13px;
    vertical-align: middle;
}

.profile-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    color: var(--profile-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(12, 14, 20, 0.96);
    box-shadow: 0 1px 0 var(--profile-line);
}

.profile-table tr:last-child td {
    border-bottom: 0;
}

.profile-table__action {
    width: 1%;
    padding-right: 0;
    text-align: right;
    white-space: nowrap;
}

.profile-table--positions .profile-pos-pnl {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.profile-table--positions .profile-pos-pnl.is-pending {
    color: var(--profile-muted);
    font-weight: 500;
}

.profile-table--positions td:nth-child(2),
.profile-table--positions td:nth-child(3) {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.profile-sell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    margin-left: auto;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    background: rgba(224, 122, 122, 0.2);
    color: #e07a7a;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-sell-btn:hover {
    background: rgba(224, 122, 122, 0.34);
    color: #f0b4b4;
}

.profile-share-row-btn {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
}

.profile-token {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-token-link {
    display: block;
    color: inherit;
    text-decoration: none;
    border-radius: 10px;
    margin: -6px -8px;
    padding: 6px 8px;
    transition: background 0.15s ease, color 0.15s ease;
}

.profile-token-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--profile-text);
}

.profile-token-link:hover .profile-token strong {
    color: rgba(var(--accent-rgb, 109, 184, 146), 0.95);
}

.profile-token strong {
    font-size: 14px;
}

.profile-token span {
    color: var(--profile-muted);
    font-size: 12px;
}

.profile-activity__title {
    margin: 0 0 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--profile-muted);
}

.profile-activity-list {
    display: flex;
    flex-direction: column;
    max-height: calc(var(--profile-activity-row-height) * var(--profile-visible-rows));
    overflow-y: auto;
    margin-right: -4px;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.profile-activity-list::-webkit-scrollbar {
    width: 6px;
}

.profile-activity-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.profile-activity-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--profile-line);
}

.profile-activity-item:last-child {
    border-bottom: 0;
}

.profile-activity-item__main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.profile-activity-item__kind {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.profile-activity-item__kind.is-buy { color: var(--profile-up); }
.profile-activity-item__kind.is-sell { color: var(--profile-down); }

.profile-activity-item__symbol {
    font-size: 14px;
    font-weight: 600;
}

.profile-activity-item__side {
    text-align: right;
}

.profile-activity-item__amount {
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1rem;
    white-space: nowrap;
}

.profile-activity-item__time {
    font-size: 12px;
    color: var(--profile-muted);
}

.is-up { color: var(--profile-up, #6db892); }
.is-down { color: var(--profile-down, #e07a7a); }

.profile-confirm {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.profile-confirm[hidden] {
    display: none !important;
}

.profile-confirm__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 6, 10, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.profile-confirm__dialog {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px 22px 18px;
    border-radius: 18px;
    border: 1px solid var(--profile-line);
    background:
        linear-gradient(180deg, rgba(18, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 24px 64px rgba(0, 0, 0, 0.55);
}

.profile-confirm__title {
    margin: 0 0 10px;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.profile-confirm__message {
    margin: 0 0 18px;
    color: var(--profile-muted);
    font-size: 14px;
    line-height: 1.55;
}

.profile-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.profile-confirm__btn {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--profile-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.profile-confirm__btn--cancel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

.profile-confirm__btn--confirm {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.28);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.14);
}

.profile-confirm__btn--confirm:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.42);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.22);
}

.profile-confirm__btn--confirm.is-danger {
    border-color: rgba(224, 122, 122, 0.34);
    background: rgba(224, 122, 122, 0.16);
    color: #f0b4b4;
}

.profile-confirm__btn--confirm.is-danger:hover {
    border-color: rgba(224, 122, 122, 0.48);
    background: rgba(224, 122, 122, 0.26);
}

.profile-pnl-share {
    position: fixed;
    inset: 0;
    z-index: 5600;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.pnl-share-open {
    overflow: hidden;
}

.profile-pnl-share[hidden] {
    display: none !important;
}

.profile-pnl-share__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(4, 6, 10, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.profile-pnl-share__dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--profile-line);
    background:
        linear-gradient(180deg, rgba(18, 22, 30, 0.98), rgba(10, 12, 18, 0.98));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04) inset,
        0 28px 72px rgba(0, 0, 0, 0.58);
}

.profile-pnl-share__head {
    margin-bottom: 14px;
}

.profile-pnl-share__title {
    margin: 0 0 4px;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.profile-pnl-share__subtitle {
    margin: 0;
    color: var(--profile-muted);
    font-size: 13px;
}

.profile-pnl-share__card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: #090b10;
}

.profile-pnl-share__image {
    display: block;
    width: 100%;
    height: auto;
}

.profile-pnl-share__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.profile-pnl-share__value {
    position: absolute;
    text-align: left;
    white-space: nowrap;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: clamp(0.92rem, 2.5vw, 1.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f4f6f8;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.profile-pnl-share__value--invested {
    left: 5.8%;
    bottom: 5.6%;
}

.profile-pnl-share__value--hold {
    left: 27.8%;
    bottom: 5.6%;
}

.profile-pnl-share__value--pnl-pct {
    left: 47.2%;
    bottom: 5.6%;
}

.profile-pnl-share__value--username {
    left: auto;
    right: 5.5%;
    bottom: 5.6%;
    max-width: 30%;
    font-size: clamp(1.08rem, 3vw, 1.75rem);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-pnl-share__value--pnl-pct.is-up,
.profile-pnl-share__value--pnl-eth.is-up {
    color: var(--profile-up, #6db892) !important;
}

.profile-pnl-share__value--pnl-pct.is-down,
.profile-pnl-share__value--pnl-eth.is-down {
    color: var(--profile-down, #e07a7a) !important;
}

.profile-pnl-share__value--label {
    left: 4.8%;
    top: 31.5%;
    font-size: clamp(1.65rem, 4.8vw, 2.85rem);
    color: #f4f6f8;
    transform: translateY(-50%);
}

.profile-pnl-share__value--pnl-eth {
    left: 16.2%;
    top: 50.5%;
    font-size: clamp(3.2rem, 9.2vw, 5.7rem);
    transform: translateY(-50%);
}

.profile-pnl-share__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
}

.profile-pnl-share__btn {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(var(--accent-rgb, 109, 184, 146), 0.28);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.14);
    color: var(--profile-text);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.profile-pnl-share__btn:hover {
    border-color: rgba(var(--accent-rgb, 109, 184, 146), 0.42);
    background: rgba(var(--accent-rgb, 109, 184, 146), 0.22);
}

.profile-pnl-share__btn--ghost {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
}

.profile-pnl-share__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.07);
}

@media (max-width: 1100px) {
    .page-profile.page-home--premium {
        --profile-max: min(100%, calc(100vw - 32px));
    }

    .profile-columns {
        grid-template-columns: 1fr;
    }

    .profile-head {
        flex-direction: column;
    }

    .profile-head__actions {
        width: 100%;
        justify-content: flex-start;
    }

    .profile-board-btn.metal-shine-button {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .page-profile.page-home--premium {
        --profile-max: calc(100vw - 24px);
    }

    .profile-balance-card {
        background:
            linear-gradient(180deg, rgba(8, 10, 15, 0.9) 0%, rgba(8, 10, 15, 0.72) 100%),
            url("../assets/images/bannerrss.png") center / cover no-repeat,
            linear-gradient(152deg, rgba(18, 23, 32, 0.96) 0%, rgba(10, 12, 18, 0.94) 100%);
    }

    .profile-balance-card::before {
        opacity: 0.2;
    }

    .profile-balance-card::after {
        background:
            radial-gradient(ellipse 80% 70% at 50% 100%, rgba(var(--accent-rgb, 109, 184, 146), 0.08), transparent 68%),
            linear-gradient(180deg, rgba(8, 10, 15, 0.72) 0%, rgba(8, 10, 15, 0.35) 100%);
    }

    .profile-balance-card__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-balance-card__foot {
        position: static;
        order: 3;
        align-self: flex-end;
        margin-top: 8px;
        margin-bottom: 0;
    }

    .profile-balance-metrics {
        order: 2;
        padding-right: 0;
        padding-top: 12px;
    }

    .profile-table--positions th:nth-child(3),
    .profile-table--positions td:nth-child(3) {
        display: none;
    }

    .profile-table__action {
        display: none;
    }
}

.profile-rewards {
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid var(--profile-line);
    border-radius: var(--profile-radius);
    background: var(--profile-card);
}

.profile-rewards__head h2 {
    margin: 0 0 6px;
    font-family: var(--font-serif, "Instrument Serif", Georgia, serif);
    font-size: 1.45rem;
    font-weight: 400;
}

.profile-rewards__head p {
    margin: 0 0 14px;
    color: var(--profile-muted);
    font-size: 13px;
}

.profile-rewards__list {
    display: grid;
    gap: 10px;
}

.profile-reward-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--profile-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
}

.profile-reward-row__meta {
    display: grid;
    gap: 4px;
}

.profile-reward-row__meta strong {
    font-size: 14px;
}

.profile-reward-row__meta span {
    color: var(--profile-up);
    font-size: 15px;
    font-weight: 650;
}

.profile-reward-row__tx {
    color: var(--profile-up);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.profile-reward-row__tx:hover {
    text-decoration: underline;
}

.profile-reward-row__pending {
    color: var(--profile-muted);
    font-size: 13px;
}
