/* Halaman Redeem Poin (/rewards/redeem) — desain 2026
   Lapisan tampilan di atas assets/css/my-points.css — khusus halaman Redeem. */

.rr-page {
    --rr-navy: #101a4d;
    --rr-blue: #2563eb;
    --rr-accent: #60a5fa;
    --rr-shadow: 0 30px 60px -35px rgba(16, 26, 77, .5);
    font-family: "Poppins", sans-serif;
}

/* ---------- Hero ---------- */
.rr-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 26px;
    padding: 40px 42px;
    border-radius: 28px;
    color: #fff;
    background:
        radial-gradient(900px 320px at 90% -10%, rgba(96, 165, 250, .45), transparent 60%),
        radial-gradient(600px 300px at -10% 110%, rgba(96, 165, 250, .28), transparent 55%),
        linear-gradient(120deg, #101a4d 0%, #1d2f8f 55%, #2563eb 115%);
    box-shadow: var(--rr-shadow);
}

.rr-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .16), transparent 40%),
        radial-gradient(circle at 8% 100%, rgba(255, 255, 255, .1), transparent 36%);
}

.rr-hero::after {
    content: "🎁";
    position: absolute;
    right: -14px;
    bottom: -26px;
    font-size: 150px;
    opacity: .1;
    transform: rotate(-12deg);
    pointer-events: none;
}

.rr-hero-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.rr-hero .mp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #cfe0ff;
    font-size: 10.5px;
}

.rr-hero .mp-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--rr-accent);
    box-shadow: 0 0 10px rgba(96, 165, 250, .9);
}

.rr-hero h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -1.4px;
    color: #fff;
}

.rr-hero .mp-title-dot {
    background: #60a5fa;
}

.rr-hero p {
    max-width: 52ch;
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .82);
}

.rr-hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(13, 23, 68, .35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.rr-stat {
    min-width: 150px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .09);
    transition: background .2s ease;
}

.rr-stat:hover {
    background: rgba(255, 255, 255, .16);
}

.rr-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.rr-stat strong {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #fff;
}

.rr-stat small {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, .68);
}

.rr-stat-muted strong {
    color: rgba(255, 255, 255, .8);
}

/* Ajakan masuk/daftar di dalam hero (pengunjung belum login) */
.rr-hero-cta {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 310px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 22px;
    background: rgba(13, 23, 68, .35);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.rr-hero-cta .rr-stat-label {
    color: rgba(255, 255, 255, .6);
}

.rr-hero-cta strong {
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
}

.rr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 12px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 10px 24px -8px rgba(31, 99, 232, .65);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.rr-cta-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -8px rgba(31, 99, 232, .75);
}

/* ---------- Toolbar filter ---------- */
.rr-toolbar {
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--mp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 36px -32px rgba(16, 26, 77, .5);
}

/* Transisi saat grid dimuat ulang via AJAX */
#rr-grid {
    transition: opacity .18s ease;
}

#rr-grid.rr-loading {
    opacity: .45;
    pointer-events: none;
    min-height: 220px;
}

.rr-toolbar .mp-search {
    background: #f1f5ff;
    border-radius: 999px;
}

/* ---------- Kartu reward ---------- */
.rr-page .mp-reward-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

@media (max-width: 1199.98px) {
    .rr-page .mp-reward-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .rr-page .mp-reward-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.rr-page .mp-reward {
    border: 1px solid #e8ecfa;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.rr-page .mp-reward:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 30px 50px -28px rgba(16, 26, 77, .5);
}

.rr-page .mp-reward-visual {
    /* Cover reward rasio 1:1. */
    aspect-ratio: 1 / 1;
    height: auto;
    background: linear-gradient(150deg, #eef4ff 0%, #dbe7ff 100%);
}

.rr-page .mp-visual-gift {
    background: linear-gradient(150deg, #ecfaf3 0%, #d5efe3 100%);
}

.rr-page .mp-reward-visual>i {
    font-size: 84px;
}

.rr-page .mp-reward-visual .mp-reward-type {
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
}

.rr-page .mp-reward-body {
    padding: 24px;
}

.rr-page .mp-reward h3 {
    font-size: 17px;
    line-height: 1.45;
}

.rr-page .mp-reward-price {
    margin-top: auto;
    padding: 14px 0 12px;
    border-top: 1px dashed #e3e7f5;
}

.rr-page .mp-reward-price strong {
    font-size: 24px;
    color: var(--rr-navy);
}

.rr-page .mp-reward-price span {
    font-size: 13px;
}

.rr-page .mp-reward .mp-button-primary {
    padding: 15px 16px;
    border-radius: 14px;
    background: linear-gradient(120deg, #2563eb 0%, #1d2f8f 100%);
    box-shadow: 0 12px 22px -12px rgba(37, 99, 235, .7);
    font-size: 14px;
}

.rr-page .mp-reward .mp-button-primary:hover {
    background: linear-gradient(120deg, #1d54d6 0%, #17267a 100%);
}

/* ---------- Tombol lihat lainnya ---------- */
.rr-more {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.rr-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 14px 30px;
    border: 1px solid #dbe4fb;
    border-radius: 999px;
    background: #fff;
    color: var(--rr-blue);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 14px 28px -20px rgba(16, 26, 77, .6);
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.rr-more-btn:hover {
    background: var(--rr-blue);
    border-color: var(--rr-blue);
    color: #fff;
    transform: translateY(-2px);
}

.rr-more-prev {
    color: var(--mp-muted);
}

.rr-more-prev:hover {
    background: #f4f7ff;
    border-color: #c3d2f7;
    color: var(--rr-navy);
}

/* ---------- Langkah penukaran ---------- */
.rr-steps {
    margin-top: 32px;
    padding: 28px 30px;
    border: 1px solid #e8ecfa;
    border-radius: 24px;
    background: linear-gradient(180deg, #fcfdff 0%, #f3f6ff 100%);
}

.rr-steps h2 {
    margin: 0 0 6px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--rr-navy);
}

.rr-steps>p,
.rr-steps-head p {
    margin: 0 0 20px;
    font-size: 12.5px;
    color: var(--mp-muted);
}

.rr-steps-head p {
    margin: 0;
}

.rr-steps ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rr-steps;
}

.rr-steps li {
    position: relative;
    padding: 20px;
    border: 1px solid #eaedf8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 28px -24px rgba(16, 26, 77, .5);
    transition: transform .2s ease, box-shadow .2s ease;
}

.rr-steps li:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 34px -22px rgba(16, 26, 77, .55);
}

.rr-step-no {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(120deg, #2563eb, #4f7cf7);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 6px 14px -6px rgba(37, 99, 235, .8);
}

.rr-steps h3 {
    margin: 14px 0 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--mp-ink);
}

.rr-steps p {
    margin: 0;
    font-size: 12px;
    line-height: 1.75;
    color: var(--mp-muted);
}

/* ---------- Sidebar ---------- */
.rr-side-links {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid #e8ecfa;
    border-radius: 22px;
    background:
        radial-gradient(320px 200px at 110% -20%, rgba(37, 99, 235, .1), transparent 60%),
        #fff;
    box-shadow: 0 20px 40px -34px rgba(16, 26, 77, .55);
}

.rr-side-links::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #2563eb, #60a5fa);
}

.rr-side-links h3 {
    margin: 0 0 14px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .2px;
    color: var(--rr-navy);
}

.rr-side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: inherit;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.rr-side-link+.rr-side-link {
    margin-top: 8px;
}

.rr-side-link:hover {
    background: #f4f7ff;
    border-color: #dde5fb;
    transform: translateX(2px);
}

.rr-side-link>i:first-child {
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(140deg, #eaf0ff, #dbe5ff);
    color: var(--rr-blue);
    font-size: 16px;
}

.rr-side-link span {
    flex: 1;
    min-width: 0;
}

.rr-side-link strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
}

.rr-side-link small {
    display: block;
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--mp-muted);
}

.rr-side-link>i:last-child {
    font-size: 12px;
    color: #b3b9d0;
    transition: transform .18s ease, color .18s ease;
}

.rr-side-link:hover>i:last-child {
    color: var(--rr-blue);
    transform: translateX(2px);
}

.rr-side-note {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.75;
    color: var(--mp-muted);
}

.rr-side-links .mp-full+.mp-full {
    margin-top: 8px;
}

/* Jarak saat catatan / tombol mengikuti tautan panduan. */
.rr-side-links .rr-side-link+.rr-side-note,
.rr-side-links .rr-side-link+.mp-button {
    margin-top: 12px;
}

/* ---------- Halaman panduan cara penukaran ---------- */
.rr-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.rr-ghost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease;
}

.rr-ghost-btn:hover {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .6);
    color: #fff;
}

.rr-block {
    margin-top: 34px;
}

.rr-guide-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.rr-guide-head h2 {
    margin: 0 0 6px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--rr-navy);
}

.rr-guide-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--mp-muted);
}

.rr-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rr-guide-card {
    position: relative;
    padding: 26px;
    border: 1px solid #e8ecfa;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 22px 44px -38px rgba(16, 26, 77, .6);
    transition: transform .22s ease, box-shadow .22s ease;
}

.rr-guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 50px -34px rgba(16, 26, 77, .65);
}

.rr-guide-card .rr-step-no {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 14px;
}

.rr-guide-card h3 {
    margin: 16px 0 8px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--mp-ink);
}

.rr-guide-card p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.75;
    color: var(--mp-muted);
}

.rr-guide-card ul {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.rr-guide-card li {
    position: relative;
    padding-left: 20px;
    font-size: 12px;
    line-height: 1.65;
    color: #5b6484;
}

.rr-guide-card li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8bb0f9;
}

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

.rr-flow-card {
    padding: 28px;
    border: 1px solid #e8ecfa;
    border-radius: 22px;
    background: linear-gradient(140deg, #f8faff 0%, #eef3ff 100%);
}

.rr-flow-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 21px;
}

.rr-flow-digital {
    background: linear-gradient(140deg, #dbe4ff, #c3d2ff);
    color: #2563eb;
}

.rr-flow-physical {
    background: linear-gradient(140deg, #d9f4e6, #c2ecda);
    color: #178a63;
}

.rr-flow-card h3 {
    margin: 16px 0 6px;
    font-size: 16px;
    font-weight: 700;
    color: var(--rr-navy);
}

.rr-flow-card>p {
    margin: 0 0 16px;
    font-size: 12.5px;
    color: var(--mp-muted);
}

.rr-flow-card ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rr-flow;
}

.rr-flow-card li {
    position: relative;
    padding-left: 34px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #4d5677;
    counter-increment: rr-flow;
}

.rr-flow-card li::before {
    content: counter(rr-flow);
    position: absolute;
    left: 0;
    top: 1px;
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #dfe4f7;
    color: var(--rr-blue);
    font-size: 11px;
    font-weight: 800;
}

.rr-terms {
    padding: 28px;
    border: 1px solid #e8ecfa;
    border-radius: 22px;
    background: #fff;
}

.rr-terms ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rr-terms li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #4d5677;
}

.rr-terms li i {
    margin-top: 3px;
    color: var(--rr-blue);
}

.rr-cta-strip {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 34px;
    padding: 32px 36px;
    border-radius: 26px;
    color: #fff;
    background:
        radial-gradient(600px 240px at 88% -20%, rgba(96, 165, 250, .4), transparent 60%),
        linear-gradient(120deg, #101a4d 0%, #1d2f8f 55%, #2563eb 115%);
    box-shadow: var(--rr-shadow);
}

.rr-cta-strip::after {
    content: "⭐";
    position: absolute;
    right: 22px;
    bottom: -20px;
    font-size: 100px;
    opacity: .12;
    transform: rotate(-10deg);
    pointer-events: none;
}

.rr-cta-strip h2 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: #fff;
}

.rr-cta-strip p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .8);
}

.rr-cta-strip .rr-cta-btn {
    flex-shrink: 0;
}

/* ---------- Halaman Cara Dapat Poin (/rewards/cara-dapat-poin) ---------- */
.re-page {
    --re-ink: #1c1f56;
    --re-muted: #5b6483;
    --re-blue: #2f7cf6;
    font-family: "Poppins", sans-serif;
}

/* Tombol kembali + breadcrumb di atas judul halaman. */
.re-crumb {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 20px;
}

.re-crumb .bisa-breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
}

.re-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    color: #5a5a5a;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.re-back i {
    font-size: 15px;
    line-height: 1;
    transition: transform .2s ease;
}

.re-back:hover {
    color: #1e266d;
    border-color: rgba(30, 38, 109, .18);
    box-shadow: 0 4px 12px rgba(30, 38, 109, .12);
    text-decoration: none;
}

.re-back:hover i {
    transform: translateX(-2px);
}

/* Banner biru judul halaman, gaya sama seperti hero katalog kelas. */
.re-head {
    position: relative;
    overflow: hidden;
    margin: 0 0 24px;
    padding: clamp(24px, 3.4vw, 40px);
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(99, 139, 255, .45), transparent 32%),
        linear-gradient(130deg, #182565 0%, #293b9c 58%, #3558c8 100%);
    box-shadow: 0 18px 40px rgba(31, 49, 124, .16);
}

.re-head::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -155px;
    width: 240px;
    height: 240px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .04), 0 0 0 48px rgba(255, 255, 255, .035);
    pointer-events: none;
}

.re-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .8rem;
    color: #d8e2ff;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.re-head h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3.4vw, 42px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: #fff;
}

.re-lead {
    margin: 0 0 12px;
    max-width: 850px;
    font-size: 17px;
    color: #fff;
}

.re-text {
    margin: 0;
    max-width: 850px;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .86);
}

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

.re-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(23, 42, 99, .08);
    color: inherit;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.re-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(23, 42, 99, .13);
    color: inherit;
    text-decoration: none;
}

.re-media {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 120px;
    height: 108px;
}

.re-media img {
    width: 100%;
    max-height: 88px;
    object-fit: contain;
    display: block;
}

.re-glyph {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #eef2ff;
    color: #4b5cd8;
    font-size: 30px;
}

.re-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
    padding-right: 22px;
}

.re-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--re-ink);
}

.re-desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--re-muted);
}

.re-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 2px;
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
}

.re-pill-blue {
    background: #e9f1fe;
    color: #1f6fe6;
}

.re-pill-green {
    background: #e6f7ec;
    color: #12864a;
}

.re-pill-violet {
    background: #f1ebff;
    color: #6b3fd4;
}

.re-pill-amber {
    background: #fdf1dc;
    color: #b06a06;
}

.re-pill-rose {
    background: #fde8ec;
    color: #cf2f4a;
}

.re-pill-indigo {
    background: #e9ecff;
    color: #3a49cf;
}

.re-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--re-blue);
}

.re-card:hover .re-link {
    text-decoration: underline;
}

.re-chev {
    position: absolute;
    right: 14px;
    top: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #eef3ff;
    color: var(--re-blue);
    font-size: 12px;
}

/* Panel poin lifetime: banner penuh di bawah grid aktivitas. */
.re-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 190px;
    margin-top: 14px;
    padding: 26px 32px 28px;
    border-radius: 18px;
    background: linear-gradient(135deg, #eaf2fe 0%, #dde9fc 100%);
    overflow: hidden;
}

.re-panel-copy {
    max-width: 52%;
}

.re-panel h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--re-ink);
}

.re-panel p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--re-muted);
}

.re-coins {
    position: absolute;
    right: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 250px;
    max-width: 24%;
    height: auto;
    pointer-events: none;
}

.re-panel-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 14px 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff !important;
    font-size: 15.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 14px 26px -16px rgba(31, 99, 232, .95);
    transition: filter .18s ease, transform .18s ease;
}

.re-panel-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

/* Variasi panel CTA: teks kiri, tombol kanan (dipakai halaman panduan penukaran). */
.re-panel-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 0;
    margin-top: 34px;
}

.re-panel-cta .re-panel-copy {
    max-width: 62%;
}

.re-panel-cta .re-panel-btn {
    flex-shrink: 0;
    margin-top: 0;
}

@media (max-width: 767px) {
    .re-panel-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    .re-panel-cta .re-panel-copy {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .re-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .re-panel-copy {
        max-width: 100%;
    }
    .re-coins {
        position: static;
        order: -1;
        align-self: flex-end;
        max-width: 200px;
        margin-bottom: -10px;
        transform: none;
    }
}

@media (max-width: 575px) {
    .re-grid {
        grid-template-columns: 1fr;
    }
    .re-card {
        gap: 12px;
        padding: 16px;
    }
    .re-media {
        width: 84px;
        height: 84px;
    }
    .re-body {
        padding-right: 20px;
    }
    .re-panel {
        padding: 22px;
    }
    .re-panel-btn {
        width: 100%;
    }
}

/* Tautan pintasan dari halaman Redeem ke panduan */
.rr-steps-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.rr-steps-head h2 {
    margin: 0 0 6px;
}

.rr-steps-head p {
    margin: 0;
}

.rr-steps-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 16px;
    border: 1px solid #dbe4fb;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: var(--rr-blue);
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.rr-steps-link:hover {
    background: #f4f7ff;
    border-color: #c3d2f7;
    color: var(--rr-navy);
}

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .rr-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        padding: 30px 28px;
    }

    .rr-hero::after {
        font-size: 110px;
    }

    .rr-hero-stats {
        width: 100%;
    }

    .rr-hero-cta {
        width: 100%;
        max-width: none;
    }

    .rr-stat {
        flex: 1 1 0;
        min-width: 0;
    }

    .rr-steps ol {
        grid-template-columns: 1fr;
    }

    .rr-guide-grid,
    .rr-flow {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .rr-terms ul {
        grid-template-columns: 1fr;
    }

    .rr-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .rr-guide-head,
    .rr-steps-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .rr-page .mp-side {
        align-items: stretch;
    }

    .rr-page .rr-side-links {
        flex: 1 1 0;
        min-width: 0;
    }
}

@media (max-width: 420px) {
    /* Kartu sidebar ditumpuk: jangan biarkan flex-basis 0 memotong isi kartu promo. */
    .rr-page .mp-side {
        flex-direction: column;
    }

    .rr-page .mp-side .mp-promo,
    .rr-page .rr-side-links {
        flex: 0 0 auto;
    }
}

@media (max-width: 575.98px) {
    .rr-hero {
        padding: 26px 22px;
    }

    .rr-hero h1 {
        font-size: 30px;
    }

    .rr-hero-stats {
        flex-direction: column;
    }

    .rr-steps {
        padding: 22px;
    }

    .rr-steps li {
        padding: 16px;
    }

    .rr-cta-strip,
    .rr-guide-card,
    .rr-flow-card,
    .rr-terms {
        padding: 22px;
    }
}

/* ---------- Halaman Leaderboard (/rewards/leaderboard) ---------- */
/* ---------- Baris filter: periode + kategori (tersusun memusat) ---------- */
.lb-filters {
    display: grid;
    justify-items: center;
    gap: 20px;
    margin-bottom: 18px;
    padding: 22px 20px 24px;
    border: 1px solid #e8eefb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px -22px rgba(23, 42, 99, .55);
    text-align: center;
}

.lb-filter-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    width: 100%;
}

.lb-filter-label {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #98a1bb;
}

.lb-filter-items {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    min-width: 0;
}

.lb-tabs {
    display: inline-flex;
    gap: 6px;
    padding: 5px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #f7f9ff;
}

.lb-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: #5b6483;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.lb-tab i {
    font-size: 13px;
    opacity: .8;
}

.lb-tab:hover {
    color: var(--re-ink);
    background: #fff;
}

.lb-tab.is-active {
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(31, 99, 232, .95);
}

.lb-tabs .lb-tab.is-active i {
    opacity: 1;
    color: #ffd970;
}

.lb-periods {
    display: flex;
    gap: 8px;
    max-width: 100%;
    padding-bottom: 2px;
    overflow-x: auto;
}

.lb-period {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5578;
    white-space: nowrap;
    text-decoration: none !important;
}

.lb-period:hover {
    border-color: #cddaf7;
    color: var(--re-ink);
}

.lb-period.is-active {
    border-color: transparent;
    background: #e9f1fe;
    color: #1f6fe6;
}

.lb-cats {
    gap: 8px;
}

.lb-cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px 9px 14px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 600;
    color: #4b5578;
    text-decoration: none !important;
    transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.lb-cat i {
    font-size: 13px;
    color: #8fa6d6;
}

.lb-cat:hover {
    border-color: #cddaf7;
    color: var(--re-ink);
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -14px rgba(23, 42, 99, .9);
}

.lb-cat.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    box-shadow: 0 10px 20px -12px rgba(31, 99, 232, .95);
}

.lb-cat.is-active i {
    color: #ffd970;
}

/* ---------- Arena peringkat (tema terang / snow white) ---------- */
.lb-board {
    position: relative;
    overflow: hidden;
    padding: 26px 26px 30px;
    border: 1px solid #e8eefb;
    border-radius: 24px;
    color: var(--re-ink);
    background:
        radial-gradient(620px 300px at 92% -12%, rgba(96, 165, 250, .16), transparent 62%),
        radial-gradient(520px 260px at 2% 104%, rgba(245, 158, 11, .13), transparent 58%),
        linear-gradient(160deg, #ffffff 0%, #f8fbff 56%, #eef4ff 100%);
    box-shadow: 0 26px 50px -34px rgba(23, 42, 99, .55);
}

/* Taburan titik halus supaya terasa arena, tapi tetap lembut di latar putih. */
.lb-board::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background-image:
        radial-gradient(circle at 18% 24%, rgba(59, 134, 249, .22) 0 1.5px, transparent 2px),
        radial-gradient(circle at 72% 12%, rgba(59, 134, 249, .18) 0 1.5px, transparent 2px),
        radial-gradient(circle at 42% 72%, rgba(245, 158, 11, .22) 0 1.5px, transparent 2px),
        radial-gradient(circle at 88% 60%, rgba(59, 134, 249, .18) 0 1.5px, transparent 2px);
}

.lb-board > * {
    position: relative;
    z-index: 1;
}

.lb-board-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.lb-season {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    padding: 6px 13px;
    border: 1px solid #ffe1a6;
    border-radius: 999px;
    background: #fff8e8;
    color: #a9761a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.lb-season i {
    color: #f0a91b;
}

.lb-board-head h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--re-ink);
}

.lb-board-head p {
    margin: 0;
    font-size: 13px;
    color: var(--re-muted);
}

.lb-board-count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 700;
    color: #4b5578;
}

/* ---------- Podium 3 besar ---------- */
.lb-podium {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
}

.lb-podium-card {
    position: relative;
    display: flex;
    flex: 1 1 240px;
    max-width: 340px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 16px 0;
    border: 1px solid #e8eefb;
    border-radius: 20px 20px 14px 14px;
    background: linear-gradient(180deg, #ffffff, #f4f8ff);
    box-shadow: 0 18px 34px -28px rgba(23, 42, 99, .75);
    text-align: center;
}

/* Urutan tampil: juara 1 di tengah, kartunya paling menonjol. */
.lb-podium-card.lb-rank-1 {
    order: 2;
    padding-top: 34px;
    border-color: #ffdc94;
    background: linear-gradient(180deg, #fffdf6, #fff3d8);
    box-shadow: 0 24px 40px -26px rgba(233, 160, 20, .85);
}

.lb-podium-card.lb-rank-2 {
    order: 1;
    border-color: #e2e9f6;
}

.lb-podium-card.lb-rank-3 {
    order: 3;
    border-color: #f6e0cd;
}

/* Kilau bergerak di kartu juara 1. */
.lb-podium-card.lb-rank-1::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .75) 48%, transparent 60%);
    background-size: 220% 100%;
    animation: lbShine 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lbShine {
    0%, 100% { background-position: 140% 0; }
    55% { background-position: -40% 0; }
}

.lb-crown {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 26px;
    color: #ffd24a;
    filter: drop-shadow(0 6px 12px rgba(214, 158, 30, .55));
    animation: lbFloat 2.6s ease-in-out infinite;
}

@keyframes lbFloat {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, -5px); }
}

.lb-medal {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #e8eefb;
    border-radius: 999px;
    background: #fff;
    color: #b8801a;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 6px 14px -12px rgba(23, 42, 99, .9);
}

.lb-rank-2 .lb-medal {
    color: #64748b;
}

.lb-rank-3 .lb-medal {
    color: #b06a2c;
}

.lb-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #eaf1fe;
}

/* Foto dipasang absolut supaya selalu terpotong rapi di dalam lingkaran. */
.lb-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.lb-avatar-initial[hidden] {
    display: none;
}

.lb-avatar-initial {
    font-size: 26px;
    font-weight: 800;
    color: #2f7cf6;
}

/* Cincin menyala di sekeliling avatar. */
.lb-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #dbe4f5;
    pointer-events: none;
}

.lb-rank-1 .lb-avatar-ring {
    border-color: #ffd24a;
    box-shadow: 0 0 14px rgba(255, 202, 62, .7);
}

.lb-rank-2 .lb-avatar-ring {
    border-color: #c3d0e6;
    box-shadow: 0 0 12px rgba(154, 172, 200, .55);
}

.lb-rank-3 .lb-avatar-ring {
    border-color: #e9ad76;
    box-shadow: 0 0 12px rgba(214, 148, 92, .5);
}

.lb-level {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    border: 2px solid #fff;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
}

.lb-rank-1 .lb-level {
    background: linear-gradient(135deg, #ffc93c, #f59e0b);
    color: #3a2500;
}

.lb-podium-card h3 {
    margin: 6px 0 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--re-ink);
}

.lb-rank-title {
    margin-top: -4px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b8801a;
}

.lb-rank-2 .lb-rank-title {
    color: #64748b;
}

.lb-rank-3 .lb-rank-title {
    color: #b06a2c;
}

.lb-xp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #5b6483;
}

.lb-xp strong {
    font-size: 17px;
    font-weight: 800;
    color: var(--re-ink);
}

.lb-rank-1 .lb-xp strong {
    color: #b8801a;
}

.lb-xp-sub {
    margin-top: -6px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #97a1bd;
}

/* Tangga podium tempat juara berdiri (radius dalam mengikuti radius kartu). */
.lb-pedestal {
    display: grid;
    place-items: center;
    width: 100%;
    margin-top: 14px;
    padding: 14px 0 12px;
    border-radius: 12px 12px 13px 13px;
    background: linear-gradient(180deg, #f2f6ff, #e6edfb);
    font-size: 26px;
    font-weight: 800;
    color: #a9b4cd;
}

.lb-rank-1 .lb-pedestal {
    padding: 26px 0 16px;
    background: linear-gradient(180deg, #ffd24a, #e59a10);
    color: #3a2500;
}

.lb-rank-2 .lb-pedestal {
    padding: 20px 0 14px;
    background: linear-gradient(180deg, #eef2f8, #ccd7e8);
    color: #3d4a63;
}

.lb-rank-3 .lb-pedestal {
    padding: 16px 0 12px;
    background: linear-gradient(180deg, #f4cda9, #dc9c66);
    color: #4a2c14;
}

/* ---------- Tabel peringkat 4 ke bawah ---------- */
.lb-table {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lb-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    border: 1px solid #eef2fa;
    border-radius: 14px;
    background: #f8fafe;
    transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.lb-row:hover {
    border-color: #dbe4f7;
    background: #eef4ff;
    transform: translateX(3px);
}

.lb-rank {
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e6ecf8;
    border-radius: 10px;
    background: #fff;
    font-size: 12.5px;
    font-weight: 800;
    color: #5b6483;
}

.lb-avatar-sm {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background: #eaf1fe;
}

.lb-avatar-sm .lb-avatar-initial {
    font-size: 16px;
}

.lb-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lb-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--re-ink);
    overflow-wrap: anywhere;
}

.lb-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #97a1bd;
}

.lb-bar {
    display: block;
    width: min(320px, 100%);
    height: 6px;
    border-radius: 999px;
    background: #e7edf9;
    overflow: hidden;
}

.lb-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b86f9, #ffd24a);
}

.lb-row .lb-xp {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* ---------- Empty state ---------- */
.lb-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 20px;
    text-align: center;
}

.lb-empty-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border: 1px solid #ffe1a6;
    border-radius: 24px;
    background: #fff8e8;
    font-size: 30px;
    color: #f0a91b;
}

.lb-empty h3 {
    margin: 4px 0 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--re-ink);
}

.lb-empty p {
    max-width: 420px;
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
    color: var(--re-muted);
}

.lb-empty-btn {
    margin-top: 6px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd24a, #f59e0b);
    color: #3a2500 !important;
    font-size: 13.5px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 14px 26px -14px rgba(245, 158, 11, .95);
}

@media (prefers-reduced-motion: reduce) {
    .lb-crown,
    .lb-podium-card.lb-rank-1::after {
        animation: none;
    }
}

@media (max-width: 767px) {
    .lb-filters {
        padding: 18px 14px 20px;
        gap: 16px;
    }
    .lb-tabs {
        width: 100%;
    }
    .lb-tab {
        flex: 1;
        justify-content: center;
    }
    .lb-board {
        padding: 20px 16px 24px;
        border-radius: 20px;
    }
    .lb-board-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .lb-podium {
        align-items: stretch;
    }
    .lb-podium-card {
        flex: 1 1 100%;
        max-width: none;
        order: 0 !important;
        padding: 24px 16px 22px;
        border-radius: 18px;
    }
    /* Tangga podium tidak perlu saat kartu ditumpuk vertikal. */
    .lb-pedestal {
        display: none;
    }
    .lb-bar {
        width: 100%;
    }
}

/* ---------- Indikator loading & utilitas leaderboard ---------- */
#lb-slot {
    position: relative;
    min-height: 120px;
}

/* Spinner di tengah area papan saat data sedang dimuat via AJAX. */
#lb-slot.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 3px solid rgba(59, 134, 249, .25);
    border-top-color: #1f63e8;
    border-radius: 50%;
    animation: lbSpin .8s linear infinite;
}

#lb-slot.is-loading .lb-board {
    opacity: .45;
    filter: saturate(.85);
    transition: opacity .2s ease;
}

/* Skeleton bar di atas papan sebagai penanda proses muat. */
#lb-slot.is-loading::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, #3b86f9, transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    animation: lbSweep 1.1s ease-in-out infinite;
}

@keyframes lbSpin {
    to { transform: rotate(360deg); }
}

@keyframes lbSweep {
    0% { background-position: -40% 0; }
    100% { background-position: 140% 0; }
}

#lb-filters.is-busy {
    opacity: .75;
}

#lb-filters.is-busy .lb-tab,
#lb-filters.is-busy .lb-cat,
#lb-filters.is-busy .lb-period {
    pointer-events: none;
}

.lb-periods.is-hidden {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    #lb-slot.is-loading::after,
    #lb-slot.is-loading::before {
        animation: none;
    }
}

/* ---------- Halaman Badge (/rewards/badge) ---------- */
.bd-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 26px;
}

.bd-summary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid #e8eefb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 26px -22px rgba(23, 42, 99, .55);
}

.bd-summary-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e9f1fe;
    color: #2f7cf6;
    font-size: 20px;
}

.bd-summary-icon.is-gold {
    background: #fff8e8;
    color: #e0a012;
}

.bd-summary-icon.is-violet {
    background: #f1ebff;
    color: #6b3fd4;
}

.bd-summary-item strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--re-ink);
}

/* Label ringkasan: di-scope ke kelasnya sendiri supaya tidak mengenai kotak ikon
   (ikon juga memakai elemen <span>, dulu jadi kena display:block & font 12px). */
.bd-summary-label {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--re-muted);
}

.bd-group {
    margin-bottom: 30px;
}

.bd-group-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.bd-group-head h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--re-ink);
}

.bd-group-head p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--re-muted);
}

.bd-group-count {
    flex: 0 0 auto;
    padding: 7px 14px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    color: #4b5578;
}

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

.bd-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 22px 18px 20px;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7faff);
    box-shadow: 0 14px 30px -26px rgba(23, 42, 99, .8);
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bd-card:hover {
    transform: translateY(-3px);
    border-color: #d6e2fb;
    box-shadow: 0 20px 36px -26px rgba(23, 42, 99, .9);
}

/* Ikon badge: satu ukuran & satu gaya wadah, tone warna per kategori. */
.bd-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #eef4ff;
    font-size: 32px;
    color: #2f7cf6;
}

/* Semua ikon (gambar 3D maupun font-icon) diukur ulang ke kotak yang sama.
   Gambar lebar dibatasi lebar, gambar tinggi dibatasi tinggi supaya bobot
   visualnya terlihat seimbang walau rasio asetnya beda. */
.bd-icon img {
    width: auto;
    height: auto;
    max-width: 58px;
    max-height: 48px;
    object-fit: contain;
    display: block;
}

.bd-icon-tag {
    position: absolute;
    right: -6px;
    bottom: -6px;
    min-width: 30px;
    padding: 3px 8px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .02em;
}

.bd-tone-gold .bd-icon {
    background: #fff7e6;
    color: #de9a0d;
}

.bd-tone-gold .bd-icon-tag {
    background: linear-gradient(135deg, #ffc93c, #e59a10);
    color: #3a2500;
}

.bd-tone-blue .bd-icon {
    background: #e9f1fe;
    color: #2f7cf6;
}

.bd-tone-violet .bd-icon {
    background: #f1ebff;
    color: #6b3fd4;
}

.bd-tone-violet .bd-icon-tag {
    background: linear-gradient(135deg, #8b5cf6, #6b3fd4);
}

.bd-tone-green .bd-icon {
    background: #e7f7ee;
    color: #12864a;
}

.bd-tone-green .bd-icon-tag {
    background: linear-gradient(135deg, #22a06b, #12864a);
}

.bd-tone-amber .bd-icon {
    background: #fff2e3;
    color: #e07a1f;
}

.bd-tone-amber .bd-icon-tag {
    background: linear-gradient(135deg, #fb923c, #e07a1f);
}

.bd-tone-rose .bd-icon {
    background: #fdeaf0;
    color: #cf2f56;
}

.bd-tone-rose .bd-icon-tag {
    background: linear-gradient(135deg, #f472a0, #cf2f56);
}

.bd-card h3 {
    margin: 2px 0 0;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--re-ink);
}

.bd-req {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    font-size: 11.5px;
    font-weight: 700;
    color: #4b5578;
}

.bd-req i {
    color: #22a06b;
    font-size: 12px;
}

.bd-card p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--re-muted);
}

.bd-points {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding: 7px 13px;
    border-radius: 10px;
    background: #fdf1dc;
    font-size: 12.5px;
    font-weight: 800;
    color: #b06a06;
}

/* ---------- Blok "Bagaimana badge didapat?" ---------- */
.bd-how {
    margin-bottom: 26px;
    padding: 24px 26px 26px;
    border: 1px solid #e8eefb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px -24px rgba(23, 42, 99, .6);
}

.bd-how h2 {
    margin: 0 0 16px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--re-ink);
}

.bd-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bd-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.bd-step-no {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.bd-steps strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--re-ink);
}

.bd-steps p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--re-muted);
}

@media (max-width: 991px) {
    .bd-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bd-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .bd-summary,
    .bd-steps {
        grid-template-columns: minmax(0, 1fr);
    }
    .bd-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bd-how {
        padding: 20px;
    }
}

@media (max-width: 479px) {
    .bd-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Status badge milik pelanggan yang login */
.bd-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 11.5px;
    font-weight: 700;
}

.bd-status.is-earned {
    background: #e7f7ee;
    color: #12864a;
}

.bd-status.is-progress {
    flex-direction: column;
    gap: 6px;
    min-width: 96px;
    background: #f2f6ff;
    color: #4b5578;
}

.bd-status-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.bd-status-bar {
    display: block;
    width: 100%;
    min-width: 84px;
    height: 5px;
    border-radius: 999px;
    background: #dfe7f8;
    overflow: hidden;
}

.bd-status-bar > span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b86f9, #ffd24a);
}

.bd-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 12px 16px;
    border: 1px solid #e4eaf8;
    border-radius: 14px;
    background: #fff;
    font-size: 12.5px;
    color: var(--re-muted);
}

.bd-note i {
    color: #2f7cf6;
}

.bd-note a {
    color: var(--re-blue);
    font-weight: 700;
}

.bd-note.is-warning {
    border-color: #ffe1a6;
    background: #fff8e8;
    color: #a9761a;
}

.bd-note.is-warning i {
    color: #e0a012;
}

/* ---------- Tab Daftar Badge / Badge Saya ---------- */
.bd-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 20px;
    padding: 5px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #f7f9ff;
}

.bd-tab {
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 700;
    color: #5b6483;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.bd-tab:hover {
    background: #fff;
    color: var(--re-ink);
}

.bd-tab.is-active {
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(31, 99, 232, .95);
}

.bd-how-lead {
    margin: 0;
    max-width: 900px;
    font-size: 13.5px;
    line-height: 1.75;
    color: var(--re-muted);
}

.bd-group-count i {
    margin-right: 4px;
    color: #e0a012;
}

/* ---------- Kartu "Lihat Badge Kamu" (belum login) ---------- */
.bd-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 44px 24px;
    border: 1px solid #e8eefb;
    border-radius: 20px;
    background: #fff;
    text-align: center;
    box-shadow: 0 12px 28px -24px rgba(23, 42, 99, .6);
}

.bd-login-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: linear-gradient(160deg, #eef4ff, #dfe9ff);
    color: #2f7cf6;
    font-size: 32px;
}

.bd-login h2 {
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--re-ink);
}

.bd-login p {
    max-width: 420px;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--re-muted);
}

.bd-login-btn {
    margin-top: 8px;
    padding: 13px 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 14px 26px -16px rgba(31, 99, 232, .95);
}

/* ---------- Grid badge yang sudah diperoleh ---------- */
.bd-earned {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bd-earned-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px 20px;
    border: 1px solid #e8eefb;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff, #f7faff);
    text-align: center;
    box-shadow: 0 14px 30px -26px rgba(23, 42, 99, .8);
}

.bd-earned-card .bd-icon {
    background: #fff7e6;
    color: #de9a0d;
}

.bd-earned-card h3 {
    margin: 4px 0 0;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--re-ink);
}

.bd-earned-card p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--re-muted);
}

.bd-earned-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e7f7ee;
    color: #12864a;
    font-size: 11.5px;
    font-weight: 700;
}

.bd-btn {
    margin-top: auto;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 24px -16px rgba(31, 99, 232, .95);
    transition: filter .18s ease, transform .18s ease;
}

.bd-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.bd-empty {
    margin-top: 6px;
    padding: 40px 20px;
    border: 1px solid #e8eefb;
    border-radius: 20px;
    background: #fff;
}

.bd-empty .lb-empty-icon {
    border-color: #e4eaf8;
    background: #eef4ff;
    color: #e0a012;
}

.bd-empty h3 {
    color: var(--re-ink);
}

.bd-empty p {
    color: var(--re-muted);
}

/* ---------- Modal Lihat Badge ---------- */
.bd-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 40px 80px -40px rgba(16, 26, 77, .85);
}

.bd-dialog::backdrop {
    background: rgba(13, 20, 68, .55);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.bd-dialog-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 30px 26px 26px;
    text-align: center;
}

.bd-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e4eaf8;
    border-radius: 50%;
    background: #fff;
    color: #5b6483;
    font-size: 13px;
    cursor: pointer;
}

.bd-dialog-label {
    padding: 6px 14px;
    border-radius: 999px;
    background: #fff7e6;
    color: #a9761a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.bd-dialog-body h2 {
    margin: 4px 0 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--re-ink);
}

.bd-dialog-desc {
    margin: 0;
    max-width: 400px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--re-muted);
}

.bd-dialog-meta {
    display: flex;
    gap: 10px;
    margin: 6px 0 4px;
}

.bd-dialog-meta > div {
    padding: 10px 18px;
    border: 1px solid #e8eefb;
    border-radius: 14px;
    background: #f8fbff;
}

.bd-dialog-meta dt {
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #97a1bd;
}

.bd-dialog-meta dd {
    margin: 3px 0 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--re-ink);
}

.bd-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 6px;
    padding: 13px 28px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 26px -16px rgba(31, 99, 232, .95);
}

.bd-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--re-muted);
}

.bd-share a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f2f6ff;
    color: #4b5578 !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.bd-share a:hover {
    background: #e4ecff;
}

.bd-share a.is-wa i { color: #25d366; }
.bd-share a.is-li i { color: #0a66c2; }
.bd-share a.is-ig i { color: #d62976; }
.bd-share a.is-x i { color: #0f1419; }

.bd-share-note {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 4px 0 0;
    color: #12864a;
    font-size: 11.5px;
    font-weight: 700;
}

@media (max-width: 991px) {
    .bd-earned {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .bd-earned {
        grid-template-columns: minmax(0, 1fr);
    }
    .bd-tabs {
        display: flex;
        width: 100%;
    }
    .bd-tab {
        flex: 1;
        text-align: center;
    }
}

/* ---------- Halaman Challenge (coming soon) ---------- */
.cs-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 28px 34px;
    border: 1px solid #e8eefb;
    border-radius: 24px;
    background:
        radial-gradient(620px 300px at 92% -14%, rgba(96, 165, 250, .18), transparent 62%),
        radial-gradient(520px 260px at 2% 106%, rgba(245, 158, 11, .14), transparent 58%),
        linear-gradient(160deg, #ffffff 0%, #f8fbff 58%, #eef4ff 100%);
    box-shadow: 0 26px 50px -34px rgba(23, 42, 99, .55);
    text-align: center;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border: 1px solid #ffe1a6;
    border-radius: 999px;
    background: #fff8e8;
    color: #a9761a;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cs-icon {
    display: grid;
    place-items: center;
    width: 128px;
    height: 118px;
    margin-top: 4px;
    border-radius: 28px;
    background: linear-gradient(160deg, #eef4ff, #dfe9ff);
}

.cs-icon img {
    width: auto;
    height: auto;
    max-width: 92px;
    max-height: 86px;
    object-fit: contain;
    display: block;
}

.cs-panel h2 {
    margin: 6px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--re-ink);
}

.cs-lead {
    max-width: 560px;
    margin: 0;
    font-size: 14px;
    line-height: 1.75;
    color: var(--re-muted);
}

.cs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 900px;
    margin-top: 14px;
}

.cs-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #e8eefb;
    border-radius: 16px;
    background: #fff;
    text-align: left;
}

.cs-item-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: #e9f1fe;
    color: #2f7cf6;
    font-size: 18px;
}

.cs-tone-gold .cs-item-icon { background: #fff7e6; color: #de9a0d; }
.cs-tone-violet .cs-item-icon { background: #f1ebff; color: #6b3fd4; }

.cs-item h3 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--re-ink);
}

.cs-item p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--re-muted);
}

.cs-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
}

.cs-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 26px;
    border-radius: 999px;
    background: linear-gradient(135deg, #3b86f9, #1f63e8);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 14px 26px -16px rgba(31, 99, 232, .95);
}

.cs-ghost {
    padding: 12px 22px;
    border: 1px solid #e4eaf8;
    border-radius: 999px;
    background: #fff;
    color: #4b5578 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}

.cs-ghost:hover {
    border-color: #cddaf7;
    color: var(--re-ink) !important;
}

@media (max-width: 767px) {
    .cs-panel {
        padding: 30px 18px 26px;
    }
    .cs-list {
        grid-template-columns: minmax(0, 1fr);
    }
}
