.profile-page {
    padding: 32px 0 48px;
}

.profile-card {
    max-width: 840px;
    margin-inline: auto;
    position: relative;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(160deg, rgba(13, 19, 32, 0.96), rgba(9, 13, 23, 0.96));
    border: 1px solid rgba(148, 163, 184, 0.14);
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.55);
    overflow: hidden;
    isolation: isolate;
    backdrop-filter: blur(12px);
}

.profile-card > * {
    position: relative;
    z-index: 1;
}

.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.25), transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(14, 116, 144, 0.2), transparent 45%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
}


.profile-card__header {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    padding: 26px;
    border-radius: 20px;
    background: linear-gradient(165deg, rgba(15, 23, 42, 0.82), rgba(8, 11, 22, 0.9));
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 36px rgba(2, 6, 23, 0.45);
}

.profile-card__identity {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1 1 360px;
    min-width: 0;
}


.profile-card__avatar-wrap {
    position: relative;
    --profile-avatar-radius: 28px;
    flex: 0 0 auto;
    width: 110px;
    height: 110px;
    border-radius: var(--profile-avatar-radius);
    padding: 4px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(14, 116, 144, 0.35));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-card__avatar-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(148, 163, 184, 0.32);
    opacity: 0.65;
    pointer-events: none;
}

.profile-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--profile-avatar-radius) - 8px);
}

.profile-card__info {
    flex: 1 1 240px;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.profile-card__headline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin: 0;
}

.profile-card__badge-icon {
    width: 46px;
    height: 46px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.18);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
    object-fit: contain;
}

.profile-card__badge-icon[hidden] {
    display: none !important;
}

.profile-card__badge-label {
    margin: 0;
    color: #a5d8ff;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.profile-card__badge-label[hidden] {
    display: none !important;
}

.profile-card__name {
    margin: 0;
    font-family: var(--heading, "Sora"), sans-serif;
    font-size: clamp(1.8rem, 1.6rem + 0.65vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0.3px;
    color: #f8fafc;
}


.profile-card__meta {
    position: relative;
    z-index: 1;
    margin-top: 22px;
    padding: 18px 26px 24px;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.78), rgba(9, 13, 23, 0.85));
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.profile-card__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
}

.profile-card__summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-width: 140px;
    padding: 18px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.45);
    color: rgba(226, 232, 240, 0.9);
}

.profile-card__summary-label {
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.75);
}

.profile-card__summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #f8fafc;
}

.profile-card__summary-hint {
    font-size: 0.82rem;
    color: rgba(148, 163, 184, 0.82);
}

.profile-card__summary-item--reputation {
    gap: 0.6rem;
}

.profile-card__status-wrap {
    flex: 0 1 220px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.profile-card__status-group {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.profile-card__status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.38);
}

.profile-card__status-chip--primary {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #e0f2fe;
}

.profile-card__status-chip--info {
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #bfdbfe;
}

.profile-card__status-chip--success {
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}
.profile-card__status-chip--reputation {
    background: rgba(148, 163, 184, 0.16);
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
}
.profile-card__status-chip--reputation-positive {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.32);
    color: #bbf7d0;
}
.profile-card__status-chip--reputation-negative {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.32);
    color: #fecaca;
}
.profile-card__status-chip--reputation-neutral {
    background: rgba(148, 163, 184, 0.16);
    border-color: rgba(148, 163, 184, 0.32);
    color: #e2e8f0;
}

.profile-card__status-chip[hidden] {
    display: none !important;
}

.profile-card__reputation-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(148, 163, 184, 0.15);
    color: #f8fafc;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease;
}

.profile-card__reputation-chip:hover,
.profile-card__reputation-chip:focus-visible {
    transform: translateY(-1px);
}

.profile-card__reputation-chip--positive {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.profile-card__reputation-chip--negative {
    background: rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.profile-card__reputation-chip--neutral {
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
}

.profile-card__reputation-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    fill: currentColor;
}

.profile-card__reputation-score {
    line-height: 1;
}

.profile-card__actions {
    margin-left: 0;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    flex: 1 1 100%;
}

.profile-card__actions-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.profile-card__actions-buttons > .profile-action-button,
.profile-card__actions-buttons > a.profile-action-button {
    flex: 0 0 auto;
}

.profile-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.48rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(14, 18, 28, 0.68);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(12px);
}

.profile-action-button:hover,
.profile-action-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.profile-action-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18), 0 14px 32px rgba(0, 0, 0, 0.35);
}

.profile-action-button:disabled,
.profile-action-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.profile-action-button--accent {
    background: linear-gradient(135deg, #ff6d8f, #ff3458);
    border-color: rgba(255, 59, 92, 0.48);
    color: #fff;
    box-shadow: 0 16px 30px rgba(255, 59, 92, 0.35);
}

.profile-action-button--accent:hover,
.profile-action-button--accent:focus-visible {
    box-shadow: 0 20px 38px rgba(255, 59, 92, 0.48);
}

.profile-action-button--outline {
    background: rgba(12, 17, 26, 0.55);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.8);
}

.profile-action-button--outline:hover,
.profile-action-button--outline:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}

.profile-action-button--danger {
    background: rgba(255, 74, 109, 0.16);
    border-color: rgba(255, 74, 109, 0.45);
    color: #ff8fa5;
}

.profile-action-button--danger:hover,
.profile-action-button--danger:focus-visible {
    background: linear-gradient(135deg, rgba(255, 94, 125, 0.82), rgba(235, 40, 70, 0.9));
    color: #fff;
}

.profile-action-button--success {
    background: rgba(56, 189, 149, 0.18);
    border-color: rgba(56, 189, 149, 0.45);
    color: #60f0c0;
}

.profile-action-button--success:hover,
.profile-action-button--success:focus-visible {
    background: linear-gradient(135deg, rgba(56, 189, 149, 0.8), rgba(45, 168, 132, 0.92));
    color: #fff;
}

.profile-action-button--ghost {
    background: rgba(16, 20, 32, 0.32);
    border-color: rgba(255, 89, 114, 0.3);
}

.profile-action-button--sm {
    padding: 0.35rem 0.85rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

.profile-card__message-btn {
    letter-spacing: 0.01em;
    padding-inline: 1.6rem;
}

.profile-card__report {
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-card__request-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    width: 100%;
}

.profile-message {
    align-self: stretch;
    width: 100%;
    max-width: 360px;
    background: rgba(15, 18, 24, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: grid;
    gap: 0.75rem;
}

.profile-message[hidden] {
    display: none !important;
}

.profile-message__label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.72);
    margin: 0;
}

.profile-message__textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 20, 0.85);
    color: #fff;
    padding: 0.85rem 1rem;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-message__textarea:focus {
    outline: none;
    border-color: var(--accent, #ff3b5c);
    box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.25);
}

.profile-message__meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.profile-message__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

.profile-card__friend-btn[data-loading="true"] {
    pointer-events: none;
    opacity: 0.7;
}



.profile-card__body {
    margin-top: 24px;
}

.profile-card__alert {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    display: none;
}

.profile-card__alert[data-state] {
    display: block;
}

.profile-card__alert[data-state="success"] {
    background: rgba(46, 204, 113, 0.16);
    border: 1px solid rgba(46, 204, 113, 0.35);
    color: #b9f6ca;
}

.profile-card__alert[data-state="error"] {
    background: rgba(255, 59, 92, 0.16);
    border: 1px solid rgba(255, 59, 92, 0.35);
    color: #ffc2cc;
}

.profile-card__placeholder {
    margin: 0;
    color: var(--muted, #96a1b2);
    font-size: 1rem;
}

.profile-favorites {
    margin-top: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(9, 13, 21, 0.78);
    padding: 20px;
    display: grid;
    gap: 18px;
}

.profile-favorites__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-favorites__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-favorites__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 59, 92, 0.2);
    color: #ffe5ea;
    font-weight: 700;
}

.profile-favorites__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.profile-favorites__item {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(7, 11, 19, 0.85);
    padding: 16px 18px;
    display: grid;
    gap: 10px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.profile-favorites__item:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 59, 92, 0.35);
    box-shadow: 0 14px 36px rgba(255, 59, 92, 0.18);
}

.profile-favorites__link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.profile-favorites__name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.profile-favorites__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
}

.profile-favorites__difficulty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    color: #e2e8f0;
    font-weight: 600;
}

.profile-favorites__difficulty::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--difficulty-color, #94a3b8);
}

.profile-favorites__levels {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.profile-favorites__aside {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.profile-favorites__date {
    font-variant-numeric: tabular-nums;
}

.profile-favorites__site {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ff6f8e;
    text-decoration: none;
    font-weight: 600;
}

.profile-favorites__site:hover {
    background: rgba(255, 255, 255, 0.15);
}

.profile-favorites__vip {
    position: absolute;
    top: 14px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff7e96, #ff3b5c);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile-favorites__empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.profile-favorites__pagination {
    display: flex;
    justify-content: center;
}

.profile-favorites__pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.profile-favorites__pagination-item {
    border-radius: 999px;
    overflow: hidden;
}

.profile-favorites__pagination-item.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.profile-favorites__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 21, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.profile-favorites__pagination-item.is-current .profile-favorites__pagination-link {
    background: linear-gradient(135deg, #ff7e96, #ff3b5c);
    border-color: rgba(255, 59, 92, 0.4);
    color: #fff;
}

.profile-tabs {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.profile-tabs__list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(9, 13, 21, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-tabs__tab {
    border: 0;
    border-radius: 10px;
    padding: 0.55rem 1.1rem;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.profile-tabs__tab.is-active {
    background: linear-gradient(135deg, rgba(255, 126, 150, 0.18), rgba(255, 59, 92, 0.24));
    color: #fff;
    box-shadow: 0 10px 24px rgba(255, 59, 92, 0.25);
}

.profile-tabs__tab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 2px;
}

.profile-tabs__panels {
    display: grid;
    gap: 18px;
}

.profile-tabs__panel {
    display: none;
}

.profile-tabs__panel.is-active {
    display: block;
}

.profile-tabs__panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-tabs__loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 200px;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 600;
}

.profile-tabs__loader[hidden] {
    display: none !important;
}

.profile-tabs__spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid rgba(148, 163, 184, 0.25);
    border-top-color: rgba(14, 165, 233, 0.65);
    animation: profile-tabs-spin 0.8s linear infinite;
}

@keyframes profile-tabs-spin {
    to {
        transform: rotate(360deg);
    }
}

.profile-tabs__error {
    text-align: center;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.12);
    color: #fecaca;
    font-weight: 600;
}

.profile-achievements {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-achievements__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.profile-achievements__heading {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-achievements__title {
    margin: 0;
    font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.6rem);
    font-weight: 700;
    color: var(--text, #eaf1fb);
}

.profile-achievements__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted, #96a1b2);
}

.profile-achievements__select {
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: var(--text, #eaf1fb);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-achievements__select:hover,
.profile-achievements__select:focus-visible {
    border-color: rgba(255, 59, 92, 0.65);
    background: rgba(255, 59, 92, 0.12);
    color: #ff9bad;
    outline: none;
    transform: translateY(-1px);
}

.profile-achievements__alert {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.profile-achievements__alert[data-state] {
    display: block;
}

.profile-achievements__alert[data-state="success"] {
    background: rgba(46, 204, 113, 0.16);
    border-color: rgba(46, 204, 113, 0.35);
    color: #b9f6ca;
}

.profile-achievements__alert[data-state="error"] {
    background: rgba(255, 59, 92, 0.16);
    border-color: rgba(255, 59, 92, 0.35);
    color: #ffc2cc;
}

.profile-achievements__grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.profile-achievements__item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 13, 20, 0.72);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-achievements__item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}

.profile-achievements__item.is-selected {
    border-color: rgba(255, 186, 59, 0.6);
    box-shadow: 0 18px 36px rgba(255, 186, 59, 0.18);
}

.profile-achievements__icon-wrap {
    width: 74px;
    height: 74px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.profile-achievements__icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.profile-achievements__details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.profile-achievements__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text, #eaf1fb);
}

.profile-achievements__description {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted, #96a1b2);
    line-height: 1.55;
}

.profile-achievements__date {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.profile-achievements__status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 186, 59, 0.25), rgba(255, 59, 92, 0.22));
    color: #ffe9b1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 186, 59, 0.45);
}

.profile-achievements__empty {
    margin: 0;
    padding: 1rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: var(--muted, #96a1b2);
    text-align: center;
    font-size: 0.95rem;
}

.profile-achievements__pagination {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-achievements__pagination-list {
    margin: 0;
    padding: 0.35rem 0.6rem;
    list-style: none;
    display: inline-flex;
    gap: 0.45rem;
    border-radius: 999px;
    background: rgba(12, 17, 27, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 34px rgba(9, 14, 25, 0.45);
    backdrop-filter: blur(14px);
}

.profile-achievements__pagination-item {
    display: flex;
}

.profile-achievements__pagination-item.is-disabled {
    opacity: 0.45;
}

.profile-achievements__pagination-item.is-disabled .profile-achievements__pagination-link {
    pointer-events: none;
}

.profile-achievements__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: rgba(226, 232, 240, 0.82);
    border: 1px solid transparent;
    transition: transform 0.18s ease, color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-achievements__pagination-link:hover,
.profile-achievements__pagination-link:focus-visible {
    transform: translateY(-1px);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.32);
}

.profile-achievements__pagination-item.is-current .profile-achievements__pagination-link {
    background: linear-gradient(135deg, rgba(255, 126, 150, 0.22), rgba(255, 59, 92, 0.28));
    color: #fff;
    border-color: rgba(255, 59, 92, 0.35);
    box-shadow: 0 16px 28px rgba(255, 59, 92, 0.22);
}

.profile-achievements__modal-pagination {
    margin-top: 1.25rem;
}

.profile-achievements__modal[hidden] {
    display: none !important;
}

.profile-achievements__modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: grid;
    place-items: center;
}

.profile-achievements__modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.78);
}

.profile-achievements__dialog {
    position: relative;
    background: linear-gradient(180deg, #121826, #0b0f19);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.55);
    width: min(520px, 92vw);
    max-height: 90vh;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
}

.profile-achievements__modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.profile-achievements__modal-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text, #eaf1fb);
}

.profile-achievements__modal-close {
    border: none;
    background: transparent;
    color: var(--muted, #96a1b2);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.profile-achievements__modal-close:hover,
.profile-achievements__modal-close:focus-visible {
    color: #ff9bad;
    outline: none;
}

.profile-achievements__modal-body {
    overflow-y: auto;
    padding-right: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-achievements__modal-text {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted, #96a1b2);
}

.profile-achievements__modal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.profile-achievements__modal-item-wrapper {
    display: flex;
}

.profile-achievements__modal-item {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 12, 20, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0.75rem;
    color: var(--text, #eaf1fb);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.profile-achievements__modal-item:hover,
.profile-achievements__modal-item:focus-visible {
    border-color: rgba(255, 59, 92, 0.65);
    box-shadow: 0 18px 34px rgba(255, 59, 92, 0.24);
    transform: translateY(-2px);
    outline: none;
}

.profile-achievements__modal-item.is-selected {
    border-color: rgba(255, 186, 59, 0.65);
    box-shadow: 0 18px 34px rgba(255, 186, 59, 0.22);
}

.profile-achievements__modal-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.profile-achievements__modal-item span {
    text-align: center;
    font-size: 0.9rem;
}

.profile-achievements__modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-achievements__modal-clear[hidden] {
    display: none !important;
}

.profile-comments {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(9, 13, 21, 0.78);
    padding: 20px;
    display: grid;
    gap: 18px;
}

.profile-comments__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-comments__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.profile-comments__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(100, 149, 237, 0.24);
    color: #e0eaff;
    font-weight: 700;
}

.profile-comments__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
}

.profile-comments__item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(7, 11, 19, 0.85);
    padding: 16px 18px;
    display: grid;
    gap: 12px;
}

.profile-comments__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-comments__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.profile-comments__chip.is-reply {
    background: rgba(255, 126, 150, 0.24);
    color: #ffd6de;
}

.profile-comments__chip--type {
    background: rgba(148, 163, 184, 0.18);
    color: #d3def0;
}

.profile-comments__date {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    font-variant-numeric: tabular-nums;
}

.profile-comments__target {
    display: flex;
    align-items: center;
}

.profile-comments__target-link {
    color: #8dbbff;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.18s ease;
}

.profile-comments__target-link:hover,
.profile-comments__target-link:focus {
    color: #b8d5ff;
    text-decoration: underline;
}

.profile-comments__target-link.is-disabled {
    color: rgba(255, 255, 255, 0.5);
    cursor: default;
    text-decoration: none;
}

.profile-comments__content {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.5;
    white-space: pre-line;
}

.profile-comments__empty {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.profile-comments__pagination {
    display: flex;
    justify-content: center;
}

.profile-comments__pagination-list {
    display: inline-flex;
    list-style: none;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.profile-comments__pagination-item {
    border-radius: 999px;
    overflow: hidden;
}

.profile-comments__pagination-item.is-disabled {
    opacity: 0.5;
    pointer-events: none;
}

.profile-comments__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 21, 32, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
}

.profile-comments__pagination-item.is-current .profile-comments__pagination-link {
    background: linear-gradient(135deg, #6aa8ff, #4f7dff);
    border-color: rgba(106, 168, 255, 0.45);
    color: #fff;
}

@media (max-width: 640px) {
    .profile-card__header {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
    }

    .profile-card__meta {
        margin-top: 18px;
        padding: 16px 20px 20px;
    }

    .profile-card__summary {
        grid-template-columns: 1fr;
    }

    .profile-card__summary-item {
        padding: 16px;
    }

    .profile-card__identity {
        width: 100%;
    }

    .profile-card__status-wrap {
        width: 100%;
        align-items: flex-start;
        min-width: 0;
    }

    .profile-card__status-group {
        align-items: flex-start;
    }

    .profile-favorites {
        padding: 16px;
    }

    .profile-favorites__item {
        padding: 14px;
    }

    .profile-favorites__aside {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-favorites__pagination-link {
        padding: 0.35rem 0.75rem;
    }

    .profile-tabs__list {
        flex-wrap: wrap;
    }

    .profile-comments {
        padding: 16px;
    }

    .profile-comments__item {
        padding: 14px;
    }

    .profile-achievements__grid {
        grid-template-columns: 1fr;
    }

    .profile-achievements__modal-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

.profile-card__login {
    font-weight: 600;
}

@media (max-width: 600px) {
    .profile-card {
        padding: 22px 18px;
    }

    .profile-card__header {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
    }

    .profile-card__avatar-wrap {
        width: 88px;
        height: 88px;
        --profile-avatar-radius: 22px;
    }

    .profile-card__actions {
        width: 100%;
        flex: 1 1 100%;
        align-items: stretch;
    }

    .profile-card__badge {
        --badge-size: 46px;
        padding: 5px;
    }

    .profile-card__status-group,
    .profile-card__actions-buttons,
    .profile-card__request-actions {
        align-items: flex-start;
        justify-content: flex-start;
    }

    .profile-card__status-group {
        align-items: flex-start;
    }

    .profile-card__actions-buttons {
        gap: 8px;
    }

    .profile-message {
        max-width: 100%;
    }

    .profile-achievements__dialog {
        width: 94vw;
    }
}
