.listbox.redeem-list {
    box-sizing: content-box;
    width: 695px;
    margin-left: 25px;
    height: 1150px;
    min-height: 1150px;
    padding: 20px 0 0;
    background: #f3ecee;
}

.redeem-list .redeem-status,
.redeem-list .redeem-board,
.redeem-list .redeem-note {
    width: 635px;
    margin-left: 20px;
    margin-right: 0;
}

.redeem-status {
    margin-bottom: 14px;
    padding: 4px 0 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #5a2a22;
}

.metric-row {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    gap: 36px;
}

.metric {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.role-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 18px;
    padding-top: 0;
    border-top: 0;
}

.role-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    margin-right: 4px;
}

.role-meta .status-label,
.role-meta .status-value {
    display: inline;
    margin: 0;
}

.role-meta .status-value {
    max-width: 120px;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.redeem-board {
    background: transparent;
    border: 0;
    color: #5a2a22;
    min-height: 0;
}

.status-label {
    display: inline;
    font-size: 12px;
    font-weight: normal;
    letter-spacing: 0;
    color: #8d5b50;
}

.status-value {
    display: inline;
    margin-top: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #5a2a22;
    font-weight: bold;
}

.msg {
    min-height: 0;
    padding: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #8d5b50;
}

.msg:empty { display: none; }

.redeem-status > .msg {
    margin-top: 10px;
    background: transparent;
}

.msg.error { color: #b23c2d; }
.msg.success { color: #2f7d32; }

.role-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 0;
}

.role-select,
.redeem-page select {
    height: 28px;
    border: 1px solid #e4c7ba;
    border-radius: 999px;
    background: #fff;
    color: #5a2a22;
    padding: 0 10px;
    font-size: 12px;
}

.redeem-status .btn {
    height: 28px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    color: #5a2a22;
    border: 1px solid #e4c7ba;
}

.redeem-status .btn-primary {
    background: #e25b2a;
    border-color: #e25b2a;
    color: #fff;
}

.redeem-status .btn:disabled,
.redeem-status .btn-disabled {
    background: #fff;
    border-color: #eadfd8;
    color: #b7a297;
}

.btn {
    border: 0;
    height: 28px;
    padding: 0 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fddeb7;
    background: #8a3a2a;
}

.btn-secondary { background: #6c3323; }
.btn-outline { background: transparent; border: 1px solid #c5968e; color: #fddeb7; }
.btn:disabled,
.btn-disabled {
    background: #5a4038;
    color: #c9b2a6;
    cursor: not-allowed;
}

.redeem-board { padding: 8px 10px 14px; }

.tabs {
    display: flex;
    gap: 8px;
    padding: 8px 8px 0;
    border-bottom: 1px solid #e6c8bc;
    overflow-x: auto;
}

.tab {
    min-width: 78px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    color: #8a3a2a;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    padding: 0 10px;
    white-space: nowrap;
}

.tab.active {
    color: #a03726;
    background: url("../huoy/images/tab_nav.jpg") left top no-repeat;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0 4px;
}

.card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e4c7ba;
    display: flex;
    flex-direction: column;
}

.card-banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.12;
    pointer-events: none;
}

.card-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.card-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.card-right { text-align: right; }

.cost {
    font-size: 26px;
    line-height: 1;
    font-weight: bold;
    color: #a03726;
}

.cost small {
    margin-left: 4px;
    font-size: 12px;
    color: #8a3a2a;
}

.limit { font-size: 12px; color: #8d5b50; }

.card-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: bold;
    color: #5a2a22;
}

.card-sub {
    margin-top: 4px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    font-size: 11px;
    padding: 1px 6px;
    border: 1px solid #e4c7ba;
    color: #a03726;
    background: #fff6f2;
}

.subtext { font-size: 12px; color: #8d5b50; }

.card-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.6;
    color: #6b463e;
    white-space: pre-wrap;
}

.reward-list {
    margin-top: 8px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12px;
    color: #5a2a22;
}

.reward-column {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 160px;
}

.reward-line {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.reward-bind { color: #8d5b50; font-size: 11px; }

.card-actions { margin-top: 12px; }

.exchange-btn {
    width: 100%;
    height: 32px;
    border: 1px solid #6c3323;
    background: #c5968e;
    color: #3a140c;
    font-weight: bold;
    cursor: pointer;
}

.exchange-btn.primary {
    background: #8a3a2a;
    border-color: #6c3323;
    color: #fddeb7;
}

.exchange-btn:disabled {
    background: #efe4df;
    border-color: #e4c7ba;
    color: #a8928a;
    cursor: not-allowed;
}

.redeem-note {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: #b23c2d;
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(12, 6, 3, 0.62);
    z-index: 999;
}

.modal.show { display: flex; }

.modal-box {
    width: 100%;
    max-width: 640px;
    background: #3a140c;
    border: 1px solid #c9a04a;
    color: #fff1cf;
}

.modal-head,
.modal-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
}

.modal-title { font-weight: bold; color: #f0c96e; }

.modal-close {
    width: 28px;
    height: 28px;
    border: 1px solid #c5968e;
    background: transparent;
    color: #fddeb7;
    cursor: pointer;
}

.modal-body {
    padding: 0 14px 8px;
    white-space: pre-wrap;
    line-height: 1.7;
    font-size: 13px;
    max-height: 360px;
    overflow: auto;
}

#payWithBox {
    margin: 0 14px 10px;
    color: #fff6df;
    font-size: 13px;
    line-height: 1.8;
}

.redeem-busy {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1200;
}

.redeem-busy[hidden] { display: none; }

.redeem-busy-box {
    min-width: 150px;
    padding: 22px 28px;
    text-align: center;
    background: #3a140c;
    border: 1px solid #c9a04a;
    color: #fff1cf;
}

.redeem-busy-spin {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    border: 3px solid rgba(253, 222, 183, 0.25);
    border-top-color: #f0c96e;
    border-radius: 50%;
    animation: redeem-spin 0.8s linear infinite;
}

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

.empty-hint {
    grid-column: 1 / -1;
    padding: 28px 10px;
    text-align: center;
    color: #8d5b50;
    font-size: 12px;
}
