/* RB Loyalty — My Rewards Account Tab */

.rbl-account-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    max-width: 860px;
}

/* Hero balance box */
.rbl-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.rbl-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    background: rgba(201,168,108,.12);
    border-radius: 50%;
}

.rbl-hero__icon { font-size: 36px; margin-bottom: 8px; }
.rbl-hero__balance { font-size: 56px; font-weight: 800; color: #c9a86c; line-height: 1; }
.rbl-hero__label { font-size: 16px; opacity: .7; margin-top: 4px; }
.rbl-hero__value { font-size: 20px; font-weight: 600; color: #c9a86c; margin-top: 8px; }

/* Progress card */
.rbl-progress-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.rbl-progress-card--top {
    background: linear-gradient(135deg, #fdf8f0, #fff);
    border-color: #c9a86c;
    color: #7a6034;
    font-weight: 600;
}

.rbl-progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.rbl-progress-pts { font-weight: 700; color: #1a1a1a; }

.rbl-progress-bar {
    height: 10px;
    background: #f0f0f0;
    border-radius: 999px;
    overflow: hidden;
}

.rbl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c9a86c, #e8c87a);
    border-radius: 999px;
    transition: width .6s ease;
}

.rbl-progress-hint {
    font-size: 13px;
    color: #666;
    margin: 10px 0 0;
}

.rbl-progress-hint strong { color: #c9a86c; }

/* How it works */
.rbl-how-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.rbl-how-card h3 { margin: 0 0 16px; color: #1a1a1a; }

.rbl-how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.rbl-how-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rbl-how-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.rbl-how-text { font-size: 14px; line-height: 1.5; color: #333; }

/* History */
.rbl-history-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.rbl-history-card h3 { margin: 0 0 16px; color: #1a1a1a; }

.rbl-empty {
    color: #888;
    text-align: center;
    padding: 30px 0;
}

.rbl-table-wrap { overflow-x: auto; }

.rbl-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rbl-history-table th {
    background: #f7f7f7;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #eee;
}

.rbl-history-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.rbl-history-table tr:last-child td { border-bottom: none; }
.rbl-history-table tr:hover td { background: #fafafa; }

/* Badges */
.rbl-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.rbl-badge--earn    { background: #dcfce7; color: #166534; }
.rbl-badge--redeem  { background: #fef9c3; color: #713f12; }
.rbl-badge--adjust  { background: #dbeafe; color: #1e40af; }
.rbl-badge--refund  { background: #fee2e2; color: #991b1b; }
.rbl-badge--welcome { background: #f3e8ff; color: #6b21a8; }
.rbl-badge--birthday{ background: #fce7f3; color: #9d174d; }
.rbl-badge--expiry  { background: #f1f5f9; color: #475569; }

.rbl-pts-cell { font-weight: 700; }
.rbl-pts--positive { color: #16a34a; }
.rbl-pts--negative { color: #dc2626; }

.rbl-order-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    margin-left: 6px;
}
.rbl-order-link:hover { color: #c9a86c; }

.rbl-tx-note { color: #999; font-size: 12px; }

.rbl-expiry--soon { color: #e74c3c; font-weight: 600; }

/* Pagination */
.rbl-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rbl-page {
    display: inline-block;
    min-width: 36px;
    height: 36px;
    line-height: 34px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
}

.rbl-page:hover { border-color: #c9a86c; color: #c9a86c; }
.rbl-page--current { background: #c9a86c; border-color: #c9a86c; color: #fff; font-weight: 700; }

@media (max-width: 600px) {
    .rbl-hero { padding: 24px 16px; }
    .rbl-hero__balance { font-size: 42px; }
    .rbl-how-grid { grid-template-columns: 1fr 1fr; }
    .rbl-history-card, .rbl-how-card, .rbl-progress-card { padding: 16px; }
}
