﻿/* ══════════════════════════════════════════════
   پروفایل — تب‌های مدرن (سکه / پرداخت / قرعه / تنظیمات)
   ══════════════════════════════════════════════ */

.fprof-tabcontent {
    padding: 54px 10px 88px;
    box-sizing: border-box;
    min-height: 200px;
    overflow-x: hidden;
}

.fprof-panel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: KalamehWebFaNum, Arial, sans-serif;
    overflow: hidden;
}

.fprof-panel__head {
    margin: 0 0 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(103, 31, 102, 0.95) 0%, rgba(46, 19, 89, 0.92) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.fprof-panel__title {
    margin: 0;
    font-size: 108%;
    font-weight: 900;
    color: #fff;
}

.fprof-panel__sub {
    margin: 6px 0 0;
    font-size: 82%;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.fprof-panel__body {
    min-height: 120px;
}

/* ── لیست تاریخچه ── */
.fprof-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 8px;
}

.fprof-history-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 12px;
    align-items: center;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    color: #fff;
}

.fprof-history-card__main {
    min-width: 0;
}

.fprof-history-card__title {
    margin: 0;
    font-size: 92%;
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
}

.fprof-history-card__date {
    margin-top: 6px;
    font-size: 78%;
    color: rgba(255, 255, 255, 0.68);
    direction: ltr;
    text-align: right;
}

.fprof-history-card__amount {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 95%;
    font-weight: 900;
    direction: ltr;
    white-space: nowrap;
}

.fprof-history-card__amount.is-plus {
    background: rgba(18, 234, 145, 0.18);
    border: 1px solid rgba(18, 234, 145, 0.45);
    color: #9dffd0;
}

.fprof-history-card__amount.is-minus {
    background: rgba(255, 107, 107, 0.16);
    border: 1px solid rgba(255, 107, 107, 0.42);
    color: #ffb4b4;
}

.fprof-history-card__icon {
    width: 18px;
    height: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.fprof-history-card__icon.is-plus {
    background-image: url('/competition/images/main/increase.png');
}

.fprof-history-card__icon.is-minus {
    background-image: url('/competition/images/main/decrease.png');
}

/* ── پرداخت ── */
.fprof-pay-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
    color: #fff;
}

.fprof-pay-card + .fprof-pay-card {
    margin-top: 10px;
}

.fprof-pay-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 78%;
    font-weight: 800;
}

.fprof-pay-card__badge.is-ok {
    background: rgba(18, 234, 145, 0.2);
    border: 1px solid rgba(18, 234, 145, 0.45);
    color: #9dffd0;
}

.fprof-pay-card__badge.is-fail {
    background: rgba(255, 107, 107, 0.16);
    border: 1px solid rgba(255, 107, 107, 0.42);
    color: #ffb4b4;
}

.fprof-pay-card__meta {
    min-width: 0;
}

.fprof-pay-card__date {
    font-size: 80%;
    color: rgba(255, 255, 255, 0.7);
    direction: ltr;
    text-align: right;
}

.fprof-pay-card__amount {
    font-size: 100%;
    font-weight: 900;
    color: #ffde01;
    direction: ltr;
    white-space: nowrap;
}

.fprof-pay-card__amount small {
    font-size: 72%;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 6px;
}

/* ── قرعه‌کشی ── */
.fprof-lottery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fprof-lottery__picker-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0 0 14px;
    padding: 0;
    box-sizing: border-box;
}

.fprof-lottery__picker-label {
    display: block;
    margin: 0 0 8px;
    font-size: 82%;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
}

.fprof-lottery__picker,
select.fprof-lottery__picker {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 12px 36px 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(18, 10, 36, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffde01' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat left 14px center;
    color: #fff;
    font-family: KalamehWebFaNum, Arial, sans-serif;
    font-size: 90%;
    font-weight: 700;
    outline: none;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-appearance: none;
    appearance: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fprof-lottery__picker option {
    color: #222;
    background: #fff;
}

.fprof-lottery__hero {
    position: relative;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 12%, rgba(255, 69, 179, 0.35), transparent 42%),
        linear-gradient(135deg, rgba(173, 0, 155, 0.55) 0%, rgba(103, 31, 102, 0.88) 52%, rgba(46, 19, 89, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.fprof-lottery__hero-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 222, 1, 0.16);
    border: 1px solid rgba(255, 222, 1, 0.35);
    font-size: 76%;
    font-weight: 800;
    color: #ffde01;
}

.fprof-lottery__label {
    font-size: 80%;
    opacity: 0.82;
    margin-bottom: 6px;
}

.fprof-lottery__prize {
    display: block;
    font-size: 122%;
    font-weight: 900;
    line-height: 1.55;
    color: #ffde01;
    text-shadow: 0 2px 10px rgba(255, 222, 1, 0.25);
}

.fprof-lottery__dates {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.fprof-lottery__date-chip {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.18);
    font-size: 80%;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.fprof-lottery__stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 222, 1, 0.16) 0%, rgba(255, 255, 255, 0.06) 100%);
    border: 1px solid rgba(255, 222, 1, 0.3);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.fprof-lottery__stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 222, 1, 0.14);
    border: 1px solid rgba(255, 222, 1, 0.28);
    flex-shrink: 0;
}

.fprof-lottery__stat-icon img {
    width: 30px;
    height: 30px;
}

.fprof-lottery__stat-text {
    flex: 1;
    min-width: 0;
}

.fprof-lottery__stat-label {
    display: block;
    font-size: 84%;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
}

.fprof-lottery__stat-value {
    display: block;
    margin-top: 4px;
    font-size: 190%;
    font-weight: 900;
    color: #ffde01;
    line-height: 1;
}

.fprof-lottery__stat-value span {
    font-size: 46%;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    margin-right: 4px;
}

.fprof-lottery__section-head {
    margin: 0 0 10px;
}

.fprof-lottery__section-title {
    margin: 0;
    font-size: 94%;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.95);
}

.fprof-lottery__section-sub {
    margin: 5px 0 0;
    font-size: 76%;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.5;
}

.fprof-lottery__shop-block,
.fprof-lottery__codes-block {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fprof-lottery__shop-grid {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.fprof-lottery__shop-row.mainitembox {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    white-space: normal;
    overflow: visible;
}

.fprof-lottery__shop-item.itembox {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    display: block;
    vertical-align: top;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22) !important;
    transition: transform 0.18s ease;
}

.fprof-lottery__shop-item.itembox:active {
    transform: scale(0.97);
}

.fprof-lottery__shop-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.fprof-lottery__codes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
}

.fprof-ticket {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.fprof-ticket__side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 10px;
    background: rgba(255, 222, 1, 0.12);
    border-left: 1px dashed rgba(255, 255, 255, 0.22);
}

.fprof-ticket__index {
    display: inline-flex;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80%;
    font-weight: 900;
    background: rgba(255, 222, 1, 0.22);
    color: #ffde01;
}

.fprof-ticket__body {
    padding: 12px 14px;
    min-width: 0;
}

.fprof-ticket__label {
    display: block;
    font-size: 72%;
    color: rgba(255, 255, 255, 0.62);
}

.fprof-ticket__code {
    display: block;
    margin-top: 4px;
    font-size: 108%;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
    direction: ltr;
    text-align: right;
}

.fprof-ticket__date {
    display: block;
    margin-top: 6px;
    font-size: 76%;
    color: rgba(255, 255, 255, 0.62);
    direction: ltr;
    text-align: right;
}

/* ── تنظیمات ── */
.fprof-settings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fprof-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.fprof-setting-row__info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.fprof-setting-row__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 110%;
    background: rgba(255, 222, 1, 0.16);
    border: 1px solid rgba(255, 222, 1, 0.28);
    flex-shrink: 0;
}

.fprof-setting-row__text {
    min-width: 0;
}

.fprof-setting-row__title {
    display: block;
    font-size: 92%;
    font-weight: 800;
    color: #fff;
}

.fprof-setting-row__desc {
    display: block;
    margin-top: 4px;
    font-size: 76%;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.fprof-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.fprof-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.fprof-switch__track {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: rgba(255, 255, 255, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    transition: background 0.22s ease, border-color 0.22s ease;
}

.fprof-switch__track:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    transition: transform 0.22s ease;
}

.fprof-switch input:checked + .fprof-switch__track {
    background: linear-gradient(135deg, #12ea91 0%, #0bb56f 100%);
    border-color: rgba(18, 234, 145, 0.5);
}

.fprof-switch input:checked + .fprof-switch__track:before {
    transform: translateX(22px);
}

/* ── خالی / پیام ── */
.fprof-empty {
    padding: 28px 18px;
    border-radius: 14px;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.78);
    font-size: 90%;
    line-height: 1.6;
}

.fprof-message {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 86%;
    line-height: 1.55;
    text-align: center;
}

.fprof-message.is-warn {
    background: rgba(255, 193, 7, 0.14);
    border: 1px solid rgba(255, 222, 1, 0.28);
    color: #ffe08a;
}

.fprof-message.is-info {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.82);
}

/* ══════════════════════════════════════════════
   آمار پروفایل
   ══════════════════════════════════════════════ */

.fprof-stats {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 8px;
}

.fprof-stats-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 16px 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(103, 31, 102, 0.92) 0%, rgba(46, 19, 89, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.fprof-stats-hero__avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
}

.fprof-stats-hero__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid rgba(255, 222, 1, 0.45);
    background: #2b1959;
    object-fit: cover;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.fprof-stats-hero__club {
    position: absolute;
    left: -4px;
    bottom: -2px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background: #fff;
    object-fit: cover;
}

.fprof-stats-hero__name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 118%;
    font-weight: 900;
    line-height: 1.45;
    color: #fff;
}

.fprof-stats-hero__badge {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.fprof-stats-segment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fprof-stats-segment__btn {
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 11px 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    font-family: KalamehWebFaNum, Arial, sans-serif;
    font-size: 84%;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.fprof-stats-segment__btn.btnweekthisweek,
.fprof-stats-segment__btn.btnhistoryhistory {
    background: linear-gradient(135deg, rgba(255, 222, 1, 0.22) 0%, rgba(103, 31, 102, 0.55) 100%) !important;
    border-color: rgba(255, 222, 1, 0.35) !important;
    color: #fff !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
}

.fprof-stats-segment__btn::after {
    display: none !important;
}

.fprof-stats-highlight {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
}

.fprof-stats-highlight__item {
    text-align: center;
    min-width: 0;
}

.fprof-stats-highlight__label {
    display: block;
    font-size: 78%;
    color: rgba(255, 255, 255, 0.68);
    margin-bottom: 6px;
}

.fprof-stats-highlight__value {
    display: block;
    font-size: 150%;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.fprof-stats-highlight__value.is-gold {
    color: #ffde01;
    text-shadow: 0 2px 10px rgba(255, 222, 1, 0.25);
}

.fprof-stats-highlight__divider {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.16);
}

.fprof-stats-level {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.fprof-stats-level__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 88%;
    font-weight: 800;
    color: #fff;
}

.fprof-stats-level__pct {
    color: #ffde01;
}

.fprof-stats-level__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.fprof-stats-level__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #12ea91 0%, #ffde01 100%);
    box-shadow: 0 0 12px rgba(255, 222, 1, 0.35);
}

.fprof-stats-level__next {
    margin-top: 8px;
    font-size: 76%;
    color: rgba(255, 255, 255, 0.62);
    text-align: left;
}

.fprof-stats-trophies {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.fprof-stats-trophy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 6px 10px;
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.fprof-stats-trophy strong {
    font-size: 108%;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.fprof-stats-trophy span {
    font-size: 68%;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.35;
}

.fprof-stats-trophy__icon {
    width: 34px;
    height: 34px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.fprof-stats-trophy__icon.is-play { background-image: url('/competition/images/main/football.png'); }
.fprof-stats-trophy__icon.is-shoe { background-image: url('/competition/images/main/shoe_50_new.png'); }
.fprof-stats-trophy__icon.is-ball { background-image: url('/competition/images/main/ball_50_new.png'); }
.fprof-stats-trophy__icon.is-cup { background-image: url('/competition/images/main/cup_50_new.png'); }

.fprof-stats-group__title {
    margin: 0 0 10px;
    padding-right: 4px;
    font-size: 90%;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.92);
}

.fprof-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.fprof-stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 88px;
    padding: 12px 8px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.fprof-stat-card strong {
    font-size: 118%;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
}

.fprof-stat-card span {
    font-size: 72%;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.68);
}

.fprof-stat-card.is-accent {
    background: linear-gradient(145deg, rgba(255, 222, 1, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(255, 222, 1, 0.24);
}

.fprof-stat-card.is-accent strong {
    color: #ffde01;
}

/* ══════════════════════════════════════════════
   ویرایش پروفایل
   ══════════════════════════════════════════════ */

.fprof-edit {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 88px;
    font-family: KalamehWebFaNum, Arial, sans-serif;
}

#editprofilebox,
#editprofiletab .editprofilebox {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

#editprofiletab.fprof-tabcontent {
    padding-top: 50px;
}

.fprof-edit-section {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.fprof-edit-picker.avatarsbox,
.fprof-edit-picker.clubsbox {
    display: grid !important;
    width: 100% !important;
    max-width: 100% !important;
}

.fprof-edit-section__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.fprof-edit-section__step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 222, 1, 0.18);
    border: 1px solid rgba(255, 222, 1, 0.32);
    color: #ffde01;
    font-size: 82%;
    font-weight: 900;
    flex-shrink: 0;
}

.fprof-edit-section__title {
    margin: 0;
    font-size: 92%;
    font-weight: 900;
    color: #fff;
}

.fprof-edit-picker {
    display: grid;
    gap: 8px;
}

.fprof-edit-picker--avatar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fprof-edit-picker--club {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fprof-edit-picker__item {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.fprof-edit-picker__item.avataractive,
.fprof-edit-picker__item.clubitem.avataractive {
    border-color: #ffde01;
    box-shadow: 0 0 0 2px rgba(255, 222, 1, 0.25), 0 8px 18px rgba(0, 0, 0, 0.22);
    transform: scale(1.03);
    background-image: none !important;
}

.fprof-edit-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fprof-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fprof-edit-field__label {
    font-size: 80%;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
}

.fprof-edit-field__ok {
    color: #12ea91;
}

.fprof-edit-input,
.fprof-edit .txtinput,
.fprof-edit .txtinputen {
    width: 100%;
    box-sizing: border-box;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    color: #fff !important;
    padding: 12px 14px !important;
    font-family: KalamehWebFaNum, Arial, sans-serif !important;
    font-size: 92% !important;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.fprof-edit-input:focus,
.fprof-edit .txtinput:focus,
.fprof-edit .txtinputen:focus {
    border-color: rgba(255, 222, 1, 0.45) !important;
}

.fprof-edit-input:disabled,
.fprof-edit .txtinput:disabled,
.fprof-edit .txtinputen:disabled {
    opacity: 0.72;
}

.fprof-edit-footer {
    position: sticky;
    bottom: -40px;
    z-index: 5;
    padding-top: 4px;
}

.fprof-edit-save {
    width: 100%;
    max-width: 100%;
    margin: 0 !important;
    position: static !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    font-size: 96% !important;
    font-weight: 900 !important;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

/* ── دیباگ نسخه / منبع (تب تنظیمات) ── */
.fprof-diag {
    margin-top: 16px;
}

.fprof-diag__body {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 82%;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.92);
}

.fprof-diag__list {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(110px, 38%) 1fr;
    gap: 6px 10px;
}

.fprof-diag__dt {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
}

.fprof-diag__dd {
    margin: 0;
    word-break: break-word;
}

.fprof-diag__dd code {
    font-size: 92%;
    background: rgba(0, 0, 0, 0.35);
    padding: 1px 5px;
    border-radius: 4px;
    direction: ltr;
    display: inline-block;
}

.fprof-diag__warn {
    color: #ffb4b4;
    font-weight: 700;
}

.fprof-diag__last {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    font-size: 80%;
    line-height: 1.6;
}
