/* Batch 3 · user center / check-in / points / shop */

.modal.modal-wide {
    width: min(880px, 100%);
}

.uc-loading {
    margin: 0;
    padding: 28px 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.uc-head {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 2px 0 4px;
}

.uc-avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    font-size: 24px;
}

.uc-identity {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.uc-identity strong {
    overflow: hidden;
    color: var(--text);
    font-size: 17px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uc-identity span {
    color: #aeb4c0;
    font-size: 11px;
}

.uc-identity small {
    color: #6f7682;
    font-size: 9.5px;
}

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

.uc-stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .035);
}

.uc-stat span {
    color: var(--faint);
    font-size: 9.5px;
}

.uc-stat strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.15;
}

.uc-stat small {
    color: #737a85;
    font-size: 9px;
}

.uc-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .02);
}

.uc-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.uc-section-head h3 {
    margin: 0;
    color: var(--text);
    font-size: 13px;
}

.uc-section-head > span {
    color: var(--faint);
    font-size: 9.5px;
    text-align: right;
}

.uc-progress-section {
    gap: 8px;
}

.uc-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
}

.uc-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5865f2, #eb459e);
    transition: width .25s ease;
}

.uc-muted {
    margin: 0;
    color: #737a85;
    font-size: 10px;
    line-height: 1.5;
}

.checkin-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 12px;
    border: 1px solid rgba(88, 101, 242, .24);
    border-radius: 8px;
    background: rgba(88, 101, 242, .06);
}

.checkin-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.checkin-info strong {
    color: #dfe3ea;
    font-size: 12px;
}

.checkin-info span {
    color: #7e8591;
    font-size: 9.5px;
}

.checkin-rank {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.checkin-rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) 80px 54px;
    align-items: center;
    gap: 7px;
    padding: 5px 6px;
    border-radius: 5px;
    color: #8d939e;
    font-size: 10px;
}

.checkin-rank-row.me {
    background: rgba(88, 101, 242, .1);
    color: #cdd2dc;
}

.rank-position {
    color: #f0b232;
    font-weight: 800;
}

.rank-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-level {
    color: #8e86c8;
    text-align: right;
}

.rank-streak {
    text-align: right;
}

.ledger-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ledger-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.ledger-row:last-child {
    border-bottom: 0;
}

.ledger-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ledger-info strong {
    overflow: hidden;
    color: #c3c8d1;
    font-size: 10.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ledger-info small {
    color: #6e7581;
    font-size: 9px;
}

.ledger-delta {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 750;
}

.ledger-delta.positive {
    color: #4ade80;
}

.ledger-delta.negative {
    color: #f29ba7;
}

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

.shop-card {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 255, 255, .025);
}

.shop-card.disabled {
    opacity: .7;
}

.shop-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 7px;
    background: rgba(240, 178, 50, .1);
    color: #e7bd68;
    font-size: 15px;
}

.shop-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.shop-title strong {
    overflow: hidden;
    color: #d7dbe3;
    font-size: 11.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-title small {
    color: #747b86;
    font-size: 8.5px;
}

.shop-price {
    margin-left: auto;
    flex: 0 0 auto;
    color: #e7bd68;
    font-size: 10px;
    font-weight: 750;
}

.shop-desc {
    min-height: 28px;
    margin: 0;
    color: #777e8a;
    font-size: 9.5px;
    line-height: 1.45;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: auto;
}

.shop-stock {
    color: #696f7a;
    font-size: 8.5px;
}

.shop-card-foot .btn {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 9.5px;
}

.uid-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
}

.uid-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 11px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .025);
    color: var(--text);
}

.uid-option:hover {
    border-color: rgba(88, 101, 242, .5);
    background: rgba(88, 101, 242, .08);
}

.uid-option strong {
    font-size: 15px;
    letter-spacing: .04em;
}

.uid-option small {
    color: #717884;
    font-size: 8px;
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.order-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px 75px;
    gap: 7px;
    align-items: center;
    padding: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    font-size: 10px;
}

.order-row:last-child {
    border-bottom: 0;
}

.order-row strong {
    overflow: hidden;
    color: #b9bfc9;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-no {
    overflow: hidden;
    color: #666d78;
    font-family: var(--mono);
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-price {
    color: #c9a15d;
    text-align: right;
}

@media (max-width: 640px) {
    .uc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .uid-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-row {
        grid-template-columns: minmax(0, 1fr) 75px;
    }

    .order-no {
        display: none;
    }

    .checkin-card {
        align-items: flex-start;
        flex-direction: column;
    }
}
