.profile-page
{
    padding: 32px 16px 96px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(180deg, rgba(244, 247, 251, 0.7) 0%, rgba(255, 255, 255, 1) 35%);
    box-sizing: border-box;
    height: 100%;
    min-height: 100%;
    overflow-y: auto;
}

.profile-card,
.profile-balance,
.profile-language
{
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(22, 34, 52, 0.08);
    border: 1px solid rgba(230, 235, 242, 0.9);
    backdrop-filter: blur(18px);
}

.profile-language
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-language__header
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-language__title
{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2a37;
}

.profile-language__subtitle
{
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 42, 55, 0.65);
}

.profile-language__control
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-language__label
{
    font-size: 13px;
    font-weight: 600;
    color: rgba(31, 42, 55, 0.7);
}

.profile-language__select-wrapper
{
    position: relative;
}

.profile-language__select
{
    width: 100%;
    padding: 10px 36px 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(42, 130, 228, 0.3);
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: #1f2a37;
    appearance: none;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-language__select:focus
{
    border-color: rgba(42, 130, 228, 0.6);
    box-shadow: 0 0 0 4px rgba(42, 130, 228, 0.15);
}

.profile-language__select-wrapper--disabled .profile-language__select
{
    background: rgba(247, 250, 255, 0.7);
    border-color: rgba(42, 71, 102, 0.15);
    color: rgba(31, 42, 55, 0.4);
    cursor: not-allowed;
}

.profile-language__spinner
{
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid rgba(42, 130, 228, 0.2);
    border-top-color: rgba(42, 130, 228, 0.7);
    animation: profile-language-spinner 0.8s linear infinite;
}

@keyframes profile-language-spinner
{
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

.profile-language__status
{
    margin: 0;
    font-size: 13px;
}

.profile-language__status--success
{
    color: #1f8a5c;
}

.profile-language__status--error
{
    color: #d64d4d;
}

.profile-challenges
{
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(22, 34, 52, 0.08);
    border: 1px solid rgba(230, 235, 242, 0.9);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-challenges__header
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-challenges__title
{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2a37;
}

.profile-challenges__subtitle
{
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(31, 42, 55, 0.6);
}

.profile-challenges__scroller
{
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 42px 6px;
    margin: 0;
    scroll-snap-type: x mandatory;
}

.profile-challenges__scroller::-webkit-scrollbar
{
    height: 6px;
}

.profile-challenges__scroller::-webkit-scrollbar-thumb
{
    background-color: rgba(42, 130, 228, 0.25);
    border-radius: 999px;
}

.profile-challenges__scroller-wrap
{
    position: relative;
}

.profile-challenges__scroll-btn
{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(31, 42, 55, 0.15);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(31, 42, 55, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: #1f2a37;
}

.profile-challenges__scroll-btn--left
{
    left: -30px;
}

.profile-challenges__scroll-btn--right
{
    right: -30px;
}

.profile-logout
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.profile-logout__button
{
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(214, 77, 77, 0.35);
    background: rgba(255, 255, 255, 0.9);
    color: #b73a3a;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.profile-logout__button:hover
{
    border-color: rgba(214, 77, 77, 0.6);
    box-shadow: 0 10px 24px rgba(183, 58, 58, 0.15);
    transform: translateY(-1px);
}

.profile-logout__button:disabled
{
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.profile-logout__error
{
    font-size: 13px;
    color: #d64d4d;
    text-align: center;
}

.profile-challenge
{
    flex: 0 0 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(22, 34, 52, 0.12);
    border: 1px solid rgba(230, 235, 242, 0.85);
    background: linear-gradient(135deg, rgba(236, 242, 255, 0.95), rgba(245, 249, 255, 0.92));
    scroll-snap-align: start;
}

.profile-challenge__icon
{
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #2a82e4;
    box-shadow: inset 0 0 0 1px rgba(42, 130, 228, 0.18);
}

.profile-challenge__body
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-challenge__title
{
    font-size: 16px;
    font-weight: 600;
    color: #1f2a37;
}

.profile-challenge__description
{
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 42, 55, 0.7);
    height: 100px;
}

.profile-challenge__footer
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-challenge__reward
{
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-challenge__reward-value
{
    font-size: 18px;
    font-weight: 700;
    color: #2a82e4;
}

.profile-challenge__reward-label
{
    font-size: 12px;
    font-weight: 500;
    color: rgba(42, 71, 102, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-challenge__action
{
    border: none;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #2a82e4, #6f9fff);
    box-shadow: 0 10px 24px rgba(42, 130, 228, 0.32);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.profile-challenge__action:disabled
{
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
    pointer-events: none;
}

.profile-challenge__action--completed
{
    background: linear-gradient(135deg, #2f9f6c, #1a7e52);
    box-shadow: 0 10px 22px rgba(26, 126, 82, 0.35);
}

.profile-challenge__action--completed:disabled
{
    opacity: 0.85;
}

.profile-challenge__action:hover
{
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(42, 130, 228, 0.36);
}

.profile-challenge__action:active
{
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(42, 130, 228, 0.28);
}

.profile-challenge--indigo
{
    background: linear-gradient(135deg, rgba(132, 144, 255, 0.24), rgba(123, 144, 255, 0.18));
    border-color: rgba(123, 144, 255, 0.28);
}

.profile-challenge--violet
{
    background: linear-gradient(135deg, rgba(196, 142, 255, 0.24), rgba(180, 128, 255, 0.18));
    border-color: rgba(180, 128, 255, 0.28);
}

.profile-challenge--blue
{
    background: linear-gradient(135deg, rgba(96, 165, 255, 0.24), rgba(96, 181, 255, 0.18));
    border-color: rgba(96, 181, 255, 0.28);
}

.profile-challenge--teal
{
    background: linear-gradient(135deg, rgba(102, 209, 198, 0.24), rgba(86, 197, 184, 0.18));
    border-color: rgba(86, 197, 184, 0.28);
}

.profile-card__top
{
    display: flex;
    align-items: center;
    gap: 18px;
}

.profile-card__interests-button
{
    margin-top: 14px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(42, 130, 228, 0.2);
    border-radius: 999px;
    padding: 11px 14px;
    background: rgba(42, 130, 228, 0.08);
    color: #2a82e4;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.profile-card__interests-button:hover
{
    background: rgba(42, 130, 228, 0.14);
    transform: translateY(-1px);
}

.profile-card__interests-button:active
{
    transform: translateY(0);
}

.profile-avatar
{
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, #5e8bff, #2a82e4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.profile-avatar--photo
{
    background-size: cover;
    background-position: center;
}

.profile-avatar__initials
{
    letter-spacing: 2px;
}

.profile-avatar__icon
{
    font-size: 26px;
    opacity: 0.85;
}

.profile-info__name
{
    font-size: 20px;
    font-weight: 700;
    color: #1f2a37;
    margin-bottom: 4px;
}

.profile-info__username
{
    font-size: 14px;
    font-weight: 500;
    color: #5f6c7b;
}

.profile-balance__header
{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.profile-balance__title
{
    font-size: 16px;
    font-weight: 600;
    color: #1f2a37;
}

.profile-balance__value
{
    font-size: 34px;
    font-weight: 700;
    color: #2a82e4;
}

.profile-balance__hint
{
    margin: 12px 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(15, 20, 26, 0.55);
}

.profile-balance__button
{
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #2a82e4, #6f9fff);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(42, 130, 228, 0.32);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-balance__button:hover
{
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(42, 130, 228, 0.36);
}

.profile-balance__button:active
{
    transform: translateY(0);
    box-shadow: 0 8px 20px rgba(42, 130, 228, 0.28);
}

.profile-balance__actions
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.profile-balance__actions .profile-balance__button
{
    flex: 1 1 200px;
    width: auto;
}

.profile-balance__history-button
{
    flex: 1 1 200px;
    border-radius: 999px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(246, 248, 252, 0.9);
    color: #2a82e4;
    border: 1px solid rgba(42, 130, 228, 0.28);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.profile-balance__history-button:hover
{
    background: rgba(42, 130, 228, 0.08);
}

.profile-balance__history-button:active
{
    transform: translateY(0);
    background: rgba(42, 130, 228, 0.12);
}

.profile-balance__history-button--active
{
    background: rgba(42, 130, 228, 0.16);
    border-color: rgba(42, 130, 228, 0.36);
    color: #1f2a37;
}

.token-history
{
    margin-top: 16px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(249, 251, 255, 0.9);
    border: 1px solid rgba(230, 235, 242, 0.95);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-history__list
{
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.token-history__item
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(230, 235, 242, 0.85);
}

.token-history__header
{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.token-history__date
{
    font-size: 14px;
    font-weight: 600;
    color: #1f2a37;
    text-transform: capitalize;
}

.token-history__totals
{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.token-history__amount
{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 120px;
}

.token-history__amount-value
{
    font-size: 16px;
    font-weight: 700;
    color: #de3f3f;
}

.token-history__amount-value--positive
{
    color: #1f9d55;
}

.token-history__amount-unit
{
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(222, 63, 63, 0.7);
}

.token-history__amount--positive .token-history__amount-unit
{
    color: rgba(31, 157, 85, 0.75);
}

.token-history__meta
{
    font-size: 12px;
    color: rgba(31, 42, 55, 0.6);
}

.token-history__operations
{
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-history__operation
{
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    color: #1f2a37;
}

.token-history__operation-name
{
    font-weight: 500;
}

.token-history__operation-amount
{
    font-weight: 600;
    color: #de3f3f;
}

.token-history__operation-amount--positive
{
    color: #1f9d55;
}

.token-history__state
{
    font-size: 13px;
    color: rgba(31, 42, 55, 0.7);
    text-align: center;
}

.token-history__state--error
{
    color: #c53d3d;
}

.token-history__state--muted
{
    color: rgba(31, 42, 55, 0.5);
}

.profile-token-history-enter-active,
.profile-token-history-leave-active
{
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.profile-token-history-enter-from,
.profile-token-history-leave-to
{
    opacity: 0;
    transform: translateY(-6px);
}

.profile-preferences
{
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(22, 34, 52, 0.08);
    border: 1px solid rgba(230, 235, 242, 0.9);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.profile-preferences__header
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-preferences__title
{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2a37;
}

.profile-preferences__subtitle
{
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(31, 42, 55, 0.6);
}

.profile-toggle-list
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-toggle
{
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 16px;
    background: rgba(249, 251, 255, 0.9);
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.profile-toggle:hover
{
    border-color: rgba(42, 130, 228, 0.35);
    box-shadow: 0 10px 24px rgba(22, 34, 52, 0.07);
}

.profile-toggle__input
{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-toggle__switch
{
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(209, 215, 224, 0.8);
    border: 1px solid rgba(180, 190, 205, 0.8);
    transition: background-color 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.profile-toggle__switch::after
{
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 8px rgba(22, 34, 52, 0.15);
    transition: transform 0.2s ease;
}

.profile-toggle__input:checked + .profile-toggle__switch
{
    background: #2a82e4;
    border-color: #2a82e4;
}

.profile-toggle__input:checked + .profile-toggle__switch::after
{
    transform: translateX(20px);
}

.profile-toggle__input:focus-visible + .profile-toggle__switch
{
    outline: 3px solid rgba(42, 130, 228, 0.35);
    outline-offset: 2px;
}

.profile-toggle__content
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-toggle__label
{
    font-size: 15px;
    font-weight: 400;
    color: #1f2a37;
}

.profile-toggle__hint
{
    font-size: 13px;
    color: rgba(31, 42, 55, 0.6);
}

.profile-radio-group
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-radio-group__header
{
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-radio-group__title
{
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1f2a37;
}

.profile-radio-group__subtitle
{
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(31, 42, 55, 0.6);
}

.profile-radio-list
{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-radio
{
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px 14px 48px;
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 16px;
    background: rgba(249, 251, 255, 0.9);
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-radio:hover
{
    border-color: rgba(42, 130, 228, 0.35);
    box-shadow: 0 10px 24px rgba(22, 34, 52, 0.07);
}

.profile-radio--active
{
    border-color: rgba(42, 130, 228, 0.5);
    background: rgba(232, 240, 255, 0.72);
    box-shadow: 0 12px 28px rgba(42, 130, 228, 0.18);
}

.profile-radio--disabled
{
    cursor: default;
    opacity: 0.75;
    box-shadow: none;
}

.profile-radio__input
{
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.profile-radio__indicator
{
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(118, 130, 154, 0.6);
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.profile-radio__indicator::after
{
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s ease;
}

.profile-radio--active .profile-radio__indicator
{
    border-color: #2a82e4;
    box-shadow: 0 0 0 4px rgba(42, 130, 228, 0.15);
}

.profile-radio--active .profile-radio__indicator::after
{
    background: #2a82e4;
}

.profile-radio__content
{
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-radio__label
{
    font-size: 15px;
    font-weight: 400;
    color: #1f2a37;
}

.profile-radio__hint
{
    font-size: 13px;
    line-height: 1.4;
    color: rgba(95, 108, 123, 0.86);
}

.profile-radio--disabled .profile-radio__hint
{
    color: rgba(95, 108, 123, 0.55);
}

.profile-preferences__status
{
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(31, 42, 55, 0.6);
    position: absolute;
    right: 10px;
    top: 20px;
}

.profile-preferences__status--success
{
    color: #1f8a39;
}

.profile-preferences__error
{
    margin: 6px 0 0;
    font-size: 12px;
    color: #d14343;
}

.profile-highlights
{
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-highlights__header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.profile-highlights__title
{
    font-size: 18px;
    font-weight: 700;
    color: #1f2a37;
    margin: 0;
}

.profile-highlights__badge
{
    font-size: 12px;
    font-weight: 600;
    color: #2a82e4;
    background: rgba(42, 130, 228, 0.1);
    border-radius: 999px;
    padding: 4px 10px;
}

.profile-highlights__error
{
    margin: 0;
    font-size: 13px;
    color: #d14343;
    background: rgba(209, 67, 67, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
}

.profile-highlights__loading
{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: rgba(31, 42, 55, 0.65);
    background: rgba(42, 130, 228, 0.08);
    border-radius: 14px;
    padding: 12px 16px;
}

.profile-spinner
{
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(42, 130, 228, 0.25);
    border-top-color: #2a82e4;
    animation: profile-spin 0.8s linear infinite;
}

@keyframes profile-spin
{
    to
    {
        transform: rotate(360deg);
    }
}

.profile-accordion
{
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(249, 251, 255, 0.7);
    overflow: hidden;
}

.profile-accordion + .profile-accordion
{
    margin-top: 12px;
}

.profile-accordion__summary
{
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.profile-accordion__summary::-webkit-details-marker
{
    display: none;
}

.profile-accordion__summary::after
{
    content: '⌄';
    font-size: 18px;
    color: rgba(31, 42, 55, 0.45);
    transition: transform 0.25s ease;
}

.profile-accordion[open] .profile-accordion__summary::after
{
    transform: rotate(180deg);
}

.profile-accordion__badge
{
    font-size: 12px;
    font-weight: 600;
    color: rgba(31, 42, 55, 0.72);
    background: rgba(31, 42, 55, 0.08);
    border-radius: 999px;
    padding: 3px 10px;
}

.profile-accordion__content
{
    padding: 0 16px 16px 16px;
}

.profile-accordion__empty
{
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(31, 42, 55, 0.6);
}

.profile-accordion[open] .profile-accordion__summary
{
    border-bottom-color: rgba(226, 232, 240, 0.6);
}

.profile-accordion__actions
{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.profile-accordion__actions .profile-action-btn
{
    margin-left: auto;
}

.profile-select-all
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(31, 42, 55, 0.7);
}

.profile-select-all input
{
    width: 16px;
    height: 16px;
    accent-color: #2a82e4;
}

.profile-action-btn
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    border-radius: 999px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(239, 68, 68, 0.3);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.profile-action-btn:disabled
{
    opacity: .6;
    cursor: default;
    box-shadow: none;
}

.profile-action-btn:not(:disabled):hover
{
    filter: brightness(1.05);
}

.profile-action-btn:not(:disabled):active
{
    transform: translateY(1px);
}

.profile-list
{
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-list__item
{
    background: #ffffff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.profile-list__content
{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
}

.profile-list__content--interactive
{
    cursor: pointer;
}

.profile-list__item--joined
{
    padding-left: 16px;
}

.profile-list__item--expired
{
    opacity: 0.8;
}

.profile-list__title
{
    font-size: 15px;
    font-weight: 400;
    color: #1f2a37;
}

.profile-list__body
{
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.profile-list__meta
{
    font-size: 13px;
    color: rgba(31, 42, 55, 0.6);
}

.profile-list__chips
{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-chip
{
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(42, 130, 228, 0.12);
    color: #2a82e4;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

.profile-chip--muted
{
    background: rgba(99, 110, 125, 0.12);
    color: rgba(31, 42, 55, 0.65);
}

.profile-chip--link
{
    background: rgba(76, 175, 80, 0.12);
    color: #2e7d32;
}

.profile-chip--link:hover,
.profile-chip--link:focus
{
    text-decoration: underline;
}

.profile-item-select
{
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.profile-item-select input
{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.profile-item-select__fake
{
    width: 18px;
    height: 18px;
    border: 2px solid rgba(42, 130, 228, 0.35);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease;
}

.profile-item-select input:checked + .profile-item-select__fake
{
    background: #2a82e4;
    border-color: #2a82e4;
    box-shadow: inset 0 0 0 3px #fff;
}

.profile-item-edit
{
    border: none;
    background: rgba(42, 130, 228, 0.1);
    color: #2a82e4;
    border-radius: 12px;
    padding: 0 16px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
    font-weight: 600;
    font-size: 14px;
    margin-left: auto;
}

.profile-item-edit:hover,
.profile-item-edit:focus
{
    background: rgba(42, 130, 228, 0.18);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(42, 130, 228, 0.24);
}

.profile-item-edit:active
{
    transform: translateY(0);
    box-shadow: none;
}

.token-flow
{
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.token-flow__backdrop
{
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
}

.token-flow__modal
{
    position: relative;
    width: min(640px, 100%);
    max-height: min(90vh, 640px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.28);
    padding: 24px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.token-flow__modal::before
{
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.token-flow__close
{
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(148, 163, 184, 0.18);
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.token-flow__close-icon
{
    position: relative;
    width: 16px;
    height: 16px;
    display: block;
}

.token-flow__close-icon::before,
.token-flow__close-icon::after
{
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    transform-origin: center;
}

.token-flow__close-icon::before
{
    transform: translate(-50%, -50%) rotate(45deg);
}

.token-flow__close-icon::after
{
    transform: translate(-50%, -50%) rotate(-45deg);
}

.token-flow__close:hover
{
    background: rgba(59, 130, 246, 0.22);
}

.token-flow__content
{
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    padding-right: 6px;
}

.token-flow__content--centered
{
    align-items: center;
    text-align: center;
    justify-content: center;
}

.token-flow__title
{
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.token-flow__subtitle
{
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(15, 23, 42, 0.68);
}

.token-plan-grid
{
    display: grid;
    gap: 16px;
}

.token-plan-loading
{
    padding: 18px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: rgba(30, 41, 59, 0.7);
    font-size: 14px;
}

.token-plan-card
{
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.95);
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    text-align: left;
}

.token-plan-card:focus,
.token-plan-card:hover
{
    transform: translateY(-4px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.token-plan-card__header
{
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: baseline;
}

.token-plan-card__label
{
    font-weight: 700;
    font-size: 18px;
    color: #1f2937;
}

.token-plan-card__price
{
    font-weight: 700;
    font-size: 20px;
    color: #2563eb;
}

.token-plan-card__highlight
{
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(191, 219, 254, 0.6);
}

.token-plan-card__description
{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(30, 41, 59, 0.8);
}

.token-plan-card__cta
{
    font-size: 14px;
    font-weight: 600;
    color: #1d4ed8;
}

.token-flow__back
{
    align-self: flex-start;
    border: none;
    background: none;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
}

.token-flow__back-icon
{
    width: 12px;
    height: 12px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 2px;
}

.token-flow__plan-summary
{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    background: rgba(239, 246, 255, 0.9);
    border-radius: 16px;
    padding: 14px 16px;
    color: #1d4ed8;
    font-weight: 600;
}

.token-flow__plan-name
{
    font-size: 16px;
}

.token-flow__plan-price
{
    font-size: 15px;
}

.token-flow__form
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.token-flow__actions
{
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.token-flow__field
{
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: rgba(30, 41, 59, 0.7);
}

.token-flow__field--inline
{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.token-flow__field input,
.token-flow__field--inline input
{
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(203, 213, 225, 0.9);
    padding: 12px 14px;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.token-flow__field input:focus,
.token-flow__field--inline input:focus
{
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.token-flow__submit
{
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: #ffffff;
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.32);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.token-flow__submit:disabled
{
    opacity: 0.6;
    cursor: default;
    box-shadow: none;
    transform: none;
}

.token-flow__spinner
{
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    animation: token-flow-spin 0.8s linear infinite;
}

.token-flow__success-icon
{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.12);
    display: grid;
    place-items: center;
    color: #16a34a;
    font-size: 36px;
    margin-bottom: 12px;
}

.token-flow-enter-active,
.token-flow-leave-active
{
    transition: opacity 0.2s ease;
}

.token-flow-enter-from,
.token-flow-leave-to
{
    opacity: 0;
}

.profile-help
{
    margin-top: 32px;
    padding: 20px 24px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: flex;
    gap: 20px;
    align-items: center;
}

.profile-help__icon
{
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.profile-help__body
{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-help__title
{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.profile-help__text
{
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: rgba(15, 23, 42, 0.78);
}

.profile-help__actions
{
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-help__action
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    align-self: flex-start;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 12px 24px rgba(30, 64, 175, 0.25);
}

.profile-help__action--ghost
{
    background: #ffffff;
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: none;
}

.profile-tour
{
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
}

.profile-tour--active
{
    display: block;
}

.profile-tour__tooltip
{
    position: fixed;
    max-width: 280px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
    color: #0f172a;
    pointer-events: auto;
    z-index: 10000;
}

.profile-tour__tooltip--bottom
{
}

.profile-tour__tooltip--top
{
}

.profile-tour__title
{
    font-size: 15px;
    font-weight: 700;
}

.profile-tour__text
{
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: rgba(15, 23, 42, 0.76);
}

.profile-tour__controls
{
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.profile-tour__button
{
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.profile-tour__button--ghost
{
    background: transparent;
    color: #1d4ed8;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.profile-tour-target
{
    position: relative;
    z-index: 10001;
    outline: 3px solid rgba(59, 130, 246, 0.9) !important;
    outline-offset: 4px;
    border-radius: 12px !important;
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.25);
}

.profile-help__action:hover
{
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(30, 64, 175, 0.3);
}

@keyframes token-flow-spin
{
    from
    {
        transform: rotate(0deg);
    }
    to
    {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px)
{
    .profile-help
    {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
        gap: 16px;
    }

    .profile-help__icon
    {
        margin: 0 auto;
    }

    .profile-help__action
    {
        width: 100%;
        justify-content: center;
    }

    .token-flow
    {
        padding: 16px;
    }

    .token-flow__modal
    {
        width: 100%;
        padding: 20px;
        border-radius: 24px;
    }

    .token-plan-card
    {
        padding: 16px;
    }

    .token-flow__field--inline
    {
        grid-template-columns: 1fr;
    }
}
