﻿.reward-page {
    --rp-bg: #F5F3FC;
    --rp-hero-1: #2E2A56;
    --rp-hero-2: #4B3F86;
    --rp-gold: #F6B93B;
    --rp-gold-dark: #D9971E;
    --rp-coral: #FF6F59;
    --rp-coral-dark: #E85A45;
    --rp-ink: #241F3D;
    --rp-muted: #6E6A84;
    --rp-card: #FFFFFF;
    --rp-border: #EAE7F5;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--rp-bg);
    padding-bottom: 48px;
}

    .reward-page h1, .reward-page h2, .reward-page .rp-display {
        font-family: 'Baloo 2', 'Inter', sans-serif;
    }

/* ── Hero ─────────────────────────────────────────────────────── */
.rp-hero {
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 32px;
    background: radial-gradient(120% 160% at 15% 0%, var(--rp-hero-2) 0%, var(--rp-hero-1) 60%);
    padding: 44px 32px 40px;
    color: #fff;
    margin-bottom: 32px;
}

    .rp-hero::before,
    .rp-hero::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        opacity: .12;
        background: var(--rp-gold);
    }

    .rp-hero::before {
        width: 220px;
        height: 220px;
        top: -80px;
        right: -60px;
    }

    .rp-hero::after {
        width: 140px;
        height: 140px;
        bottom: -60px;
        right: 18%;
        background: var(--rp-coral);
    }

.rp-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.rp-hero-text .rp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rp-gold);
    margin-bottom: 10px;
}

.rp-hero-text h1 {
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.15;
}

.rp-hero-text p {
    color: rgba(255,255,255,.78);
    font-size: 1rem;
    margin-bottom: 0;
    max-width: 460px;
}

/* ── Đồng điểm (signature element) ───────────────────────────── */
.rp-coin {
    position: relative;
    width: 168px;
    height: 168px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(155deg, var(--rp-gold) 0%, var(--rp-gold-dark) 100%);
    box-shadow: 0 14px 30px -8px rgba(0,0,0,.45), inset 0 2px 0 rgba(255,255,255,.4);
    border: 4px solid rgba(255,255,255,.35);
    overflow: hidden;
}

    .rp-coin::after {
        content: "";
        position: absolute;
        inset: -50% -50%;
        background: linear-gradient(75deg, transparent 40%, rgba(255,255,255,.55) 50%, transparent 60%);
        animation: rp-shine 3.2s ease-in-out infinite;
    }

@@keyframes rp-shine {
    0% {
        transform: translateX(-60%) translateY(-60%) rotate(0deg);
    }

    100% {
        transform: translateX(60%) translateY(60%) rotate(0deg);
    }
}

.rp-coin-value {
    font-family: 'Baloo 2', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--rp-ink);
    line-height: 1;
    position: relative;
    z-index: 1;
}

.rp-coin-label {
    font-size: .72rem;
    font-weight: 700;
    color: rgba(36,31,61,.7);
    text-transform: uppercase;
    letter-spacing: .06em;
    position: relative;
    z-index: 1;
}

.rp-guest-cta {
    background: rgba(255,255,255,.08);
    border: 1px dashed rgba(255,255,255,.35);
    border-radius: 18px;
    padding: 18px 22px;
    max-width: 280px;
}

    .rp-guest-cta p {
        color: rgba(255,255,255,.85);
        font-size: .9rem;
        margin-bottom: 10px;
    }

    .rp-guest-cta .btn {
        background: var(--rp-coral);
        border: none;
        font-weight: 600;
        color: #fff;
    }

        .rp-guest-cta .btn:hover {
            background: var(--rp-coral-dark);
            color: #fff;
        }

/* ── Toggle Đổi quà / Lịch sử ─────────────────────────────────── */
.rp-tabs {
    max-width: 1100px;
    margin: 0 auto 28px;
    padding: 0 8px;
    display: flex;
    gap: 10px;
}

    .rp-tabs .btn {
        border-radius: 999px;
        padding: 9px 20px;
        font-weight: 600;
        font-size: .92rem;
        border: 1px solid var(--rp-border);
    }

    .rp-tabs .btn-primary {
        background: var(--rp-ink);
        border-color: var(--rp-ink);
    }

    .rp-tabs .btn-outline-primary {
        color: var(--rp-ink);
        background: #fff;
    }

.rp-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 8px;
}

/* ── Reward cards ─────────────────────────────────────────────── */
.rp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 22px;
}

.rp-card {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease;
}

    .rp-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 28px -14px rgba(46,42,86,.28);
    }

.rp-card-img {
    position: relative;
    height: 168px;
    background: linear-gradient(135deg, #EFEAFB, #F7F3FF);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .rp-card-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .rp-card-img .rp-placeholder-icon {
        font-size: 2.2rem;
        color: #C9C2E8;
    }

.rp-coin-tag {
    position: absolute;
    left: 12px;
    bottom: -14px;
    background: var(--rp-gold);
    color: var(--rp-ink);
    font-weight: 700;
    font-size: .82rem;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    gap: 5px;
}

.rp-card-body {
    padding: 22px 18px 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

    .rp-card-body h5 {
        font-family: 'Baloo 2', sans-serif;
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--rp-ink);
        margin-bottom: 4px;
    }

    .rp-card-body .rp-desc {
        color: var(--rp-muted);
        font-size: .85rem;
        margin-bottom: 12px;
        min-height: 32px;
    }

.rp-tag-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.rp-tag {
    font-size: .72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: #F1EEFB;
    color: #5B4FA8;
}

    .rp-tag.rp-tag-hang {
        background: #FFF1E8;
        color: #B85C2C;
    }

.rp-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: .82rem;
    color: var(--rp-muted);
    margin-bottom: 10px;
}

    .rp-value-row strong {
        color: #2E9E6C;
        font-size: .95rem;
    }

.rp-progress {
    height: 7px;
    border-radius: 999px;
    background: #EFEBFA;
    overflow: hidden;
    margin-bottom: 14px;
}

.rp-progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--rp-coral), var(--rp-gold));
}

.rp-card-body .btn {
    margin-top: auto;
    border-radius: 12px;
    font-weight: 700;
    padding: 10px;
    background: var(--rp-coral);
    border: none;
    color: #fff;
}

    .rp-card-body .btn:hover:not(:disabled) {
        background: var(--rp-coral-dark);
        color: #fff;
    }

    .rp-card-body .btn:disabled {
        background: #EDEAF6;
        color: #A8A2C4;
    }

/* ── Empty state ──────────────────────────────────────────────── */
.rp-empty {
    text-align: center;
    padding: 56px 20px;
    background: #fff;
    border: 1px dashed var(--rp-border);
    border-radius: 20px;
    color: var(--rp-muted);
}

    .rp-empty i {
        font-size: 2.4rem;
        color: var(--rp-gold);
        margin-bottom: 10px;
        display: block;
    }

.rp-back-link {
    margin-top: 30px;
}

    .rp-back-link .btn {
        border-radius: 12px;
        font-weight: 600;
    }

@@media (max-width: 576px) {
    .rp-hero-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .rp-hero-text h1 {
        font-size: 1.6rem;
    }

    .rp-coin {
        width: 132px;
        height: 132px;
    }

    .rp-coin-value {
        font-size: 1.6rem;
    }
}
