/* 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%);
}

/* Ornamen cincin (pengganti emoji yang tampil sebagai kotak di sebagian perangkat). */
.rr-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -170px;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(255, 255, 255, .035), 0 0 0 56px rgba(255, 255, 255, .03);
    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%);
}

/* ---------- Polish kartu & tipografi ---------- */
.rr-page .mp-reward-visual {
    overflow: hidden;
}

.rr-page .mp-reward-cover {
    transition: transform .45s ease;
}

.rr-page .mp-reward:hover .mp-reward-cover {
    transform: scale(1.04);
}

/* Reward tidak tersedia (dinonaktifkan di Dapur): hitam putih, tanpa efek hover, dengan label "Not Available". */
.rr-page .mp-reward-unavailable {
    background: #fafafa;
    border-color: #e5e7eb;
}

.rr-page .mp-reward-unavailable:hover {
    transform: none;
    border-color: #e5e7eb;
    box-shadow: none;
}

.rr-page .mp-reward-unavailable .mp-reward-visual > :not(.mp-reward-na) {
    filter: grayscale(1);
    opacity: .55;
}

.rr-page .mp-reward-unavailable .mp-reward-visual {
    filter: none;
    background: linear-gradient(150deg, #f3f4f6 0%, #e5e7eb 100%);
}

.rr-page .mp-reward-unavailable:hover .mp-reward-cover {
    transform: none;
}

.rr-page .mp-reward-unavailable h3,
.rr-page .mp-reward-unavailable .mp-reward-detail,
.rr-page .mp-reward-unavailable .mp-reward-price strong {
    color: #6b7280;
}

.rr-page .mp-reward-unavailable .mp-coin {
    filter: grayscale(1);
}

.rr-page .mp-reward-na {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(17, 24, 39, .82);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}

/* Cover sudah bermerek: watermark cukup untuk kartu tanpa gambar. */
.rr-page .mp-reward-cover~.mp-reward-mark {
    display: none;
}

.rr-page .mp-reward h3 {
    margin-bottom: 8px;
}

.rr-page .mp-reward-detail {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 10px;
    font-size: 12.5px;
    line-height: 1.55;
}

.rr-page .mp-availability {
    font-size: 12px;
}

.rr-page .mp-section-head p {
    font-size: 13px;
}

.rr-page .mp-count {
    padding: 6px 12px;
    border-radius: 999px;
    background: #eef3ff;
    color: var(--rr-blue);
    font-size: 12px;
    font-weight: 700;
}

.rr-page .mp-sort {
    font-size: 12.5px;
}

.rr-page .mp-promo h3 {
    padding-right: 28px;
    font-size: 15px;
}

.rr-page .mp-promo p {
    padding-right: 28px;
    font-size: 12.5px;
}

.rr-page .mp-promo>i {
    opacity: .35;
}

.rr-page :is(a, button, select, input):focus-visible {
    outline: 3px solid rgba(37, 99, 235, .45);
    outline-offset: 2px;
}

/* ---------- Dialog pilih opsi voucher: lebih lebar & lapang ---------- */
.rr-page .mp-dialog-options {
    width: min(1180px, 96vw);
    max-width: 1180px;
    border-radius: 24px;
}

.rr-page .mp-dialog-options .mp-dialog-content {
    padding: 32px 36px 26px;
}

.rr-page .mp-options-head {
    align-items: center;
    gap: 18px;
    padding-bottom: 22px;
}

.rr-page .mp-options-head .mp-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    font-size: 22px;
}

.rr-page .mp-options-heading h2 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.3px;
}

.rr-page .mp-options-heading p {
    font-size: 13.5px;
    line-height: 1.7;
}

.rr-page .mp-options-close {
    width: 40px;
    height: 40px;
}

.rr-page .mp-options-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.rr-page .mp-options-main h3 {
    margin: 22px 0 6px;
    font-size: 16px;
}

.rr-page .mp-options-main > p {
    font-size: 13.5px;
    line-height: 1.6;
}

.rr-page .mp-dialog-options .mp-option-list {
    gap: 14px;
    margin: 18px 0 0;
}

.rr-page .mp-dialog-options .mp-option {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 16px;
    background: #fff;
    border-color: #e6ebf7;
    box-shadow: 0 10px 24px -22px rgba(16, 26, 77, .55);
}

.rr-page .mp-dialog-options .mp-option input[type=radio] {
    width: 18px;
    height: 18px;
    margin-top: 12px;
}

.rr-page .mp-dialog-options .mp-option:has(input:checked) {
    border-color: var(--rr-blue);
    background: #f4f8ff;
    box-shadow: 0 16px 30px -22px rgba(37, 99, 235, .6);
}

.rr-page .mp-option-thumb,
.rr-page .mp-option-icon {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 14px;
}

.rr-page .mp-option-icon {
    font-size: 22px;
}

.rr-page .mp-option-body {
    flex: 1;
    gap: 6px;
}

.rr-page .mp-option-body strong {
    font-size: 15px;
    line-height: 1.45;
}

.rr-page .mp-option-body > small:not(.mp-option-desc) {
    font-size: 12.5px;
    color: var(--mp-muted);
}

.rr-page .mp-option-desc {
    -webkit-line-clamp: 3;
    font-size: 12.5px;
    line-height: 1.6;
}

.rr-page .mp-option-go {
    align-self: center;
    font-size: 15px;
}

.rr-page .mp-options-side {
    margin-top: 22px;
    gap: 14px;
}

.rr-page .mp-options-card {
    padding: 20px;
    border-radius: 18px;
}

.rr-page .mp-options-card h4,
.rr-page .mp-options-note h4 {
    font-size: 13.5px;
}

.rr-page .mp-options-picked {
    padding: 14px 16px;
    border-radius: 12px;
}

.rr-page .mp-options-picked strong {
    font-size: 14px;
    line-height: 1.45;
}

.rr-page .mp-options-picked small {
    font-size: 12px;
}

.rr-page .mp-options-row {
    padding: 10px 0;
    font-size: 13px;
}

.rr-page .mp-options-row strong {
    font-size: 14px;
}

.rr-page .mp-options-note {
    padding: 18px 20px;
    border-radius: 18px;
}

.rr-page .mp-options-note p,
.rr-page .mp-options-note ul,
.rr-page .mp-options-note .mp-options-rich {
    font-size: 12.5px;
    line-height: 1.7;
}

.rr-page .mp-options-alert {
    padding: 13px 18px;
    font-size: 13.5px;
}

.rr-page .mp-dialog-options .mp-dialog-actions {
    gap: 12px;
    padding: 16px 0 4px;
    margin-top: 24px;
}

.rr-page .mp-dialog-options .mp-dialog-actions .mp-button {
    min-width: 150px;
    padding: 14px 22px;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .rr-page .mp-options-grid {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 22px;
    }
}

@media (max-width: 820px) {
    .rr-page .mp-dialog-options {
        width: min(1180px, 96vw);
    }

    .rr-page .mp-options-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .rr-page .mp-dialog-options .mp-dialog-content {
        padding: 22px 20px 20px;
    }

    .rr-page .mp-options-heading h2 {
        font-size: 19px;
    }

    .rr-page .mp-dialog-options .mp-option {
        padding: 14px;
        gap: 12px;
    }

    .rr-page .mp-option-thumb,
    .rr-page .mp-option-icon {
        width: 48px;
        height: 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-page .mp-reward,
    .rr-page .mp-reward-cover,
    .rr-page .rr-steps li,
    .rr-page .rr-side-link {
        transition: none;
    }

    .rr-page .mp-reward:hover,
    .rr-page .mp-reward:hover .mp-reward-cover,
    .rr-page .rr-steps li:hover {
        transform: none;
    }
}

/* ---------- 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: 14.5px;
    font-weight: 700;
    color: var(--mp-ink);
}

.rr-steps p {
    margin: 0;
    font-size: 12.5px;
    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): hero, tab, daftar badge, Badge Saya, dialog ---------- */
.lbx-hero.bdx-hero::before {
    background-image: url('../images/badge/hero.webp');
}

.bdx-page {
    --lbx-line: #e6edfb;
}

.bdx-tabs {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 16px;
    padding: 5px;
    border: 1px solid var(--lbx-line);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 24px -22px rgba(23, 42, 99, .6);
}

.bdx-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    color: var(--re-muted) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease, color .18s ease;
}

.bdx-tab:hover {
    background: #eef4ff;
}

.bdx-tab.is-active {
    background: var(--re-blue);
    color: #fff !important;
}

.bdx-page .lbx-card {
    margin-bottom: 16px;
}

.bdx-how {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(120deg, #ffffff 0%, #eef4ff 100%);
}

.bdx-how-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff4d6;
    color: #f0a91b;
    font-size: 22px;
}

.bdx-how h2,
.bdx-mine-head h2,
.bdx-login h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--re-ink);
}

.bdx-how p,
.bdx-mine-head p,
.bdx-login p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--re-muted);
}

/* Chip filter kategori */
.bdx-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bdx-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #dbe4f7;
    border-radius: 999px;
    background: #fff;
    color: var(--re-ink);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.bdx-chip span {
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--re-blue);
    font-size: 11.5px;
}

.bdx-chip:hover {
    border-color: #9cc0ff;
}

.bdx-chip.is-active {
    border-color: var(--re-blue);
    background: var(--re-blue);
    color: #fff;
}

.bdx-chip.is-active span {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.bdx-section[hidden] {
    display: none;
}

.bdx-tier-group + .bdx-tier-group {
    margin-top: 22px;
}

.bdx-tier-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    color: var(--re-ink);
}

.bdx-tier-title small {
    font-size: 12px;
    font-weight: 600;
    color: var(--re-muted);
}

.bdx-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--a), var(--b));
}

/* Grid kartu badge */
.bdx-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    gap: 14px;
}

.bdx-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px 14px;
    border: 1px solid #edf1fa;
    border-radius: 16px;
    background: #fbfcff;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.bdx-card:hover {
    border-color: #cfe0ff;
    box-shadow: 0 14px 26px -22px rgba(23, 42, 99, .7);
    transform: translateY(-2px);
}

.bdx-card.is-earned {
    border-color: #cfe0ff;
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
}

.bdx-card h4 {
    margin: 6px 0 0;
    font-size: 14.5px;
    font-weight: 800;
    color: var(--re-ink);
}

.bdx-req {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--re-muted);
}

.bdx-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: var(--re-muted);
}

.bdx-status.is-earned {
    color: #1d9a57;
}

.bdx-status.is-locked {
    color: #8a93a8;
}

/* Badge Saya: badge yang belum terbuka tampil nonaktif, progres tetap terlihat. */
.bdx-card.is-locked {
    border-color: #e8ecf4;
    background: #f6f7fb;
    box-shadow: none;
}

.bdx-card.is-locked:hover {
    border-color: #e8ecf4;
    box-shadow: none;
    transform: none;
}

.bdx-card.is-locked h4 {
    color: #8a93a8;
}

.bdx-card.is-locked .bdx-req {
    color: #9aa3b8;
}

.bdx-card.is-locked .bdx-medal.is-locked {
    opacity: .4;
}

.bdx-mine-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--re-muted);
}

.bdx-progress {
    display: block;
    width: 80%;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eefb;
}

.bdx-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, var(--re-blue));
}

.bdx-progress-text {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--re-muted);
}

.bdx-bonus {
    margin-top: 4px;
    padding: 3px 10px;
    border: 1px solid #f2dfb4;
    border-radius: 999px;
    background: #fff7e6;
    color: #9a6b00;
    font-size: 11.5px;
    font-weight: 800;
}

/* Medali badge: warna per tier */
.bdx-tier-bronze { --a: #f0c29c; --b: #a8693a; --ink: #fff; --glow: rgba(168, 105, 58, .55); }
.bdx-tier-silver { --a: #f6f8fb; --b: #98a4b5; --ink: #5b6779; --glow: rgba(130, 145, 165, .55); }
.bdx-tier-gold { --a: #ffe58a; --b: #e0a11b; --ink: #fff; --glow: rgba(224, 161, 27, .6); }
.bdx-tier-platinum { --a: #eaf8fd; --b: #6fb3cc; --ink: #3d7f99; --glow: rgba(111, 179, 204, .6); }
.bdx-tier-diamond { --a: #d8f1ff; --b: #3e9bef; --ink: #fff; --glow: rgba(62, 155, 239, .65); }
.bdx-tier-mythic { --a: #ff7ad9; --b: #7a5cff; --ink: #fff; --glow: rgba(160, 100, 255, .75); }
.bdx-tier-green_dark { --a: #5fbf7d; --b: #1b6b3a; --ink: #fff; --glow: rgba(27, 107, 58, .5); }
.bdx-tier-green_light { --a: #d3f5b3; --b: #6cc04a; --ink: #2f7a1c; --glow: rgba(108, 192, 74, .55); }
.bdx-tier-blue_light { --a: #d4efff; --b: #4fb0f2; --ink: #fff; --glow: rgba(79, 176, 242, .6); }
.bdx-tier-red { --a: #ff9d8e; --b: #cf3535; --ink: #fff; --glow: rgba(207, 53, 53, .5); }

.bdx-medal {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .75) 0, transparent 38%),
        linear-gradient(145deg, var(--a), var(--b));
    box-shadow:
        0 12px 22px -12px var(--glow),
        inset 0 0 0 4px rgba(255, 255, 255, .4),
        inset 0 -7px 12px rgba(0, 0, 0, .13);
}

.bdx-medal-face {
    display: grid;
    place-items: center;
    width: 62%;
    height: 62%;
    border-radius: 50%;
    background: linear-gradient(160deg, rgba(255, 255, 255, .38), rgba(0, 0, 0, .07));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .6);
    color: var(--ink);
    font-size: 26px;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .18));
}

.bdx-medal-xl {
    width: 128px;
    height: 128px;
}

.bdx-medal-xl .bdx-medal-face {
    font-size: 42px;
}

.bdx-medal.is-locked {
    filter: grayscale(1);
    opacity: .5;
}

.bdx-lock {
    position: absolute;
    right: -2px;
    bottom: -2px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #6b7694;
    color: #fff;
    font-size: 12px;
}

/* Mythic: kilau berputar warna + denyut cahaya */
.bdx-medal.bdx-tier-mythic {
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .75) 0, transparent 38%),
        conic-gradient(#ff7ad9, #7a5cff, #3ec6ff, #ffd45c, #ff7ad9);
    animation: bdxMythic 4s linear infinite;
}

@keyframes bdxMythic {
    0% { filter: hue-rotate(0deg); box-shadow: 0 0 10px var(--glow), 0 12px 22px -12px var(--glow), inset 0 0 0 4px rgba(255, 255, 255, .4); }
    50% { box-shadow: 0 0 26px var(--glow), 0 12px 22px -12px var(--glow), inset 0 0 0 4px rgba(255, 255, 255, .4); }
    100% { filter: hue-rotate(360deg); box-shadow: 0 0 10px var(--glow), 0 12px 22px -12px var(--glow), inset 0 0 0 4px rgba(255, 255, 255, .4); }
}

.bdx-dot.bdx-tier-mythic {
    background: conic-gradient(#ff7ad9, #7a5cff, #3ec6ff, #ffd45c, #ff7ad9);
}

/* Medali bergambar: gambar badge atau gambar default tier dari Dapur (menggantikan medali CSS) */
.bdx-medal.bdx-medal-img,
.bdx-medal.bdx-medal-img.bdx-tier-mythic {
    background: none;
    box-shadow: none;
    animation: none;
}

.bdx-medal-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .18));
}

/* Badge Saya */
.bdx-mine-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.bdx-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: #eef4ff;
    color: #1f63e8;
    font-size: 13.5px;
    font-weight: 700;
}

.bdx-summary strong {
    font-size: 17px;
}

.bdx-new {
    margin: 0 0 16px;
    padding: 11px 16px;
    border: 1px solid #ffe1a6;
    border-radius: 12px;
    background: #fff8e8;
    color: #8a5d00;
    font-size: 13.5px;
}

.bdx-view {
    margin-top: 8px;
    padding: 8px 18px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    background: #eef4ff;
    color: #1f63e8;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background .18s ease;
}

.bdx-view:hover {
    background: #dfeaff;
}

.bdx-login {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 40px 20px !important;
    text-align: center;
}

.bdx-login-icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: #eaf1ff;
    color: var(--re-blue);
    font-size: 30px;
}

.bdx-login-btn {
    margin-top: 12px;
    padding: 11px 28px;
    background: var(--re-blue);
    color: #fff !important;
    border-color: var(--re-blue);
}

.bdx-login-btn:hover {
    background: #1f63e8;
}

/* Dialog Lihat Badge */
/* styles.css legacy men-set `dialog {display:block}`, jadi dialog tertutup ikut tampil. */
.bdx-dialog:not([open]) {
    display: none;
}

.bdx-dialog {
    --re-ink: #1c1f56;
    --re-muted: #5b6483;
    --re-blue: #2f7cf6;
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: #fff;
    color: var(--re-ink);
    box-shadow: 0 30px 70px -20px rgba(23, 42, 99, .55);
}

.bdx-dialog::backdrop {
    background: rgba(18, 28, 64, .55);
}

.bdx-dialog-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 34px 28px 26px;
    text-align: center;
    background: radial-gradient(420px 220px at 50% -10%, #e4efff, transparent 70%);
}

.bdx-dialog-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f4fb;
    color: var(--re-muted);
    cursor: pointer;
}

.bdx-dialog h2 {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.5px;
}

.bdx-dialog-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #e5f7ee;
    color: #1d9a57;
    font-size: 12px;
    font-weight: 800;
}

.bdx-dialog-desc {
    margin: 4px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--re-muted);
}

.bdx-dialog-meta {
    display: grid;
    width: 100%;
    gap: 8px;
    margin: 8px 0 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #f4f8ff;
    text-align: left;
}

.bdx-dialog-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.bdx-dialog-meta div[hidden] {
    display: none;
}

.bdx-dialog-meta dt {
    font-size: 13px;
    font-weight: 600;
    color: var(--re-muted);
}

.bdx-dialog-meta dd {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--re-ink);
}

.bdx-share-main {
    width: 100%;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    background: #D45400;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bdx-share-main:hover {
    background: #B34400;
}

.bdx-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.bdx-share a {
    display: inline-flex;
    flex: 1 1 110px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 10px;
    border: 1px solid #dbe4f7;
    border-radius: 10px;
    background: #fff;
    color: var(--re-ink) !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
}

.bdx-share a:hover {
    background: #f4f8ff;
}

.bdx-share .is-li i { color: #0a66c2; }
.bdx-share .is-ig i { color: #d6249f; }
.bdx-share .is-wa i { color: #1fae53; }

.bdx-share-note {
    margin: 0;
    font-size: 12.5px;
    color: #1d9a57;
}

@media (max-width: 639px) {
    .bdx-tabs {
        display: flex;
    }
    .bdx-tab {
        flex: 1;
        justify-content: center;
        padding: 9px 10px;
    }
    .bdx-how {
        flex-direction: column;
    }
    .bdx-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .bdx-medal {
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bdx-medal.bdx-tier-mythic {
        animation: none;
    }
    .bdx-card {
        transition: none;
    }
}

/* ---------- 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);
    }
}

/* ---------- Leaderboard (/rewards/leaderboard): hero, kategori, Peringkat Saya, podium, tabel, Tentang XP ---------- */
.lbx-page {
    --lbx-line: #e6edfb;
    --lbx-soft: #f3f7ff;
}

.lbx-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 170px;
    margin-bottom: 18px;
    padding: 22px 28px;
    overflow: hidden;
    border: 1px solid var(--lbx-line);
    border-radius: 22px;
    background: #f1f6ff;
}

/* Ilustrasi hero: tepi kirinya dipudarkan supaya menyatu dengan latar kartu. */
.lbx-hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    aspect-ratio: 3 / 1;
    background: url('../images/leaderboard/hero.webp') right center / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0, #000 38%);
    pointer-events: none;
}

.lbx-hero-text {
    position: relative;
}

.lbx-hero h1 {
    margin: 0 0 6px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--re-ink);
}

.lbx-hero p {
    margin: 0;
    max-width: 460px;
    font-size: 14.5px;
    color: var(--re-muted);
}

.lbx-card {
    padding: 18px 22px;
    border: 1px solid var(--lbx-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px -24px rgba(23, 42, 99, .6);
}

.lbx-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.lbx-card-head h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--re-ink);
}

.lbx-card-head p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: var(--re-muted);
}

.lbx-head-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--re-blue);
    font-size: 17px;
}

.lbx-head-icon-gold {
    color: #f0a91b;
    font-size: 21px;
}

.lbx-head-icon-solid {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--re-blue);
    color: #fff;
    font-size: 16px;
}

.lbx-label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--re-ink);
}

.lbx-muted {
    font-size: 12.5px;
    color: var(--re-muted);
}

/* Baris atas: kategori + Peringkat Saya */
.lbx-top {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    gap: 16px;
    margin-bottom: 16px;
}

.lbx-cat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.lbx-select {
    position: relative;
    max-width: none;
}

/* Deskripsi dinamis kategori di bawah dropdown. */
.lbx-cat-desc {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef4ff;
    color: var(--re-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.lbx-cat-desc i {
    flex: 0 0 auto;
    color: #2f7cf6;
    font-size: 16px;
}

.lbx-select select {
    width: 100%;
    padding: 11px 40px 11px 42px;
    border: 1px solid #dbe4f7;
    border-radius: 12px;
    background: #fff;
    color: var(--re-ink);
    font-size: 14.5px;
    font-weight: 700;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.lbx-select select:focus {
    outline: 2px solid rgba(47, 124, 246, .35);
    outline-offset: 1px;
}

.lbx-select select:disabled {
    opacity: .6;
    cursor: progress;
}

.lbx-select-icon,
.lbx-select-caret {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.lbx-select-icon {
    left: 14px;
    color: #f0a91b;
}

.lbx-select-caret {
    right: 14px;
    color: var(--re-muted);
    font-size: 12px;
}

.lbx-me {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.lbx-me-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #eaf1ff;
    color: var(--re-blue);
    font-size: 26px;
}

.lbx-me-rank strong {
    display: block;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.8px;
    color: var(--re-ink);
}

.lbx-me-main {
    display: grid;
    flex: 1 1 140px;
    gap: 2px;
    min-width: 0;
}

.lbx-me-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--re-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lbx-me-xp {
    font-size: 14px;
    font-weight: 700;
    color: var(--re-muted);
}

.lbx-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #cfe0ff;
    border-radius: 10px;
    background: #eef4ff;
    color: #1f63e8 !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease;
}

.lbx-btn:hover {
    background: #dfeaff;
}

.lbx-me-note {
    max-width: 220px;
    font-weight: 700;
}

/* Tombol di bawah Peringkat Saya: Bagikan Pencapaian + Lihat posisi saya. */
.lbx-me-actions {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 10px;
}

.lbx-me-actions .lbx-btn {
    flex: 1 1 180px;
    justify-content: center;
}

.lbx-btn-share {
    background: #fff;
    border-color: #2f7cf6;
    cursor: pointer;
}

.lbx-btn-share:hover {
    background: #eef4ff;
}

/* Link kecil Syarat & Ketentuan di kanan bawah banner. */
.lbx-terms-link {
    position: absolute;
    right: 18px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #1f63e8;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
}

.lbx-terms-link:hover {
    background: #fff;
}

/* Modal leaderboard (S&K dan Achievement Card) memakai dasar .bdx-dialog. */
.lbx-dialog-body {
    align-items: stretch;
    text-align: left;
}

.lbx-dialog-body h2 {
    padding-right: 36px;
}

.lbx-dialog-wide {
    width: min(560px, calc(100vw - 32px));
}

.lbx-dialog-wide .lbx-dialog-body {
    text-align: center;
}

.lbx-terms-list {
    margin: 4px 0 0;
    padding-left: 20px;
    color: var(--re-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.lbx-terms-list li + li {
    margin-top: 8px;
}

.lbx-ach-canvas,
.bdg-ach-canvas {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    background: #FFF5EC;
    box-shadow: 0 4px 18px rgba(50, 15, 0, 0.06);
}

.lbx-ach-actions,
.bdg-ach-actions {
    display: flex;
    gap: 10px;
}

.lbx-ach-actions .bdx-share-main,
.bdg-ach-actions .bdx-share-main {
    flex: 1 1 0;
    width: auto;
    background: #D45400;
    border-color: #D45400;
    color: #ffffff;
    font-weight: 800;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbx-ach-actions .bdx-share-main:hover,
.bdg-ach-actions .bdx-share-main:hover {
    background: #B34400;
    border-color: #B34400;
}

.lbx-ach-save,
.bdg-ach-save {
    flex: 1 1 0;
    padding: 12px 18px;
    border: 1px solid #FED7AA;
    border-radius: 12px;
    background: #FFF5EC;
    color: #D45400;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lbx-ach-save:hover,
.bdg-ach-save:hover {
    background: #FEE7D3;
    border-color: #FDBA74;
}

.lbx-dialog .bdx-share[hidden] {
    display: none;
}

.lbx-dialog .bdx-share a.is-fb i { color: #1877f2; }
.lbx-dialog .bdx-share a.is-copy i { color: #5b6483; }

/* Avatar bulat */
.lbx-avatar {
    position: relative;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #cfe0ff, #eaf1ff);
    color: #1f63e8;
    font-weight: 800;
}

.lbx-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.lbx-avatar-sm { width: 32px; height: 32px; font-size: 13px; }
.lbx-avatar-lg { width: 56px; height: 56px; font-size: 20px; }
.lbx-avatar-xl { width: 72px; height: 72px; font-size: 26px; }

/* Podium Top 3 */
.lbx-podium-card {
    margin-bottom: 16px;
}

.lbx-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 16px;
    padding-top: 22px;
}

.lbx-slot {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lbx-slot-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 22px 12px 14px;
    border-radius: 18px 18px 0 0;
    text-align: center;
}

.lbx-slot-1 .lbx-slot-card {
    padding-top: 30px;
    background: linear-gradient(180deg, #fff1c4 0%, #fffaf0 100%);
}

.lbx-slot-2 .lbx-slot-card {
    background: linear-gradient(180deg, #dfeaff 0%, #f3f8ff 100%);
}

.lbx-slot-3 .lbx-slot-card {
    background: linear-gradient(180deg, #ffe0d3 0%, #fff4ef 100%);
}

.lbx-slot h3 {
    max-width: 100%;
    margin: 4px 0 0;
    overflow: hidden;
    font-size: 15px;
    font-weight: 800;
    color: var(--re-ink);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lbx-slot-xp {
    font-size: 18px;
    font-weight: 800;
    color: var(--re-ink);
}

.lbx-slot-1 .lbx-slot-xp {
    font-size: 20px;
}

.lbx-slot .lbx-avatar {
    border: 3px solid #fff;
    box-shadow: 0 6px 16px -8px rgba(23, 42, 99, .6);
}

.lbx-slot-1 .lbx-avatar { box-shadow: 0 0 0 3px #f7c948, 0 8px 18px -8px rgba(245, 158, 11, .8); }

.lbx-medal {
    position: absolute;
    top: 12px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.lbx-slot-1 .lbx-medal { background: #f0a91b; }
.lbx-slot-2 .lbx-medal { background: #6d8fd6; }
.lbx-slot-3 .lbx-medal { background: #d9825b; }

.lbx-crown {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 30px;
    line-height: 1;
    filter: drop-shadow(0 4px 6px rgba(245, 158, 11, .45));
}

.lbx-pedestal {
    display: grid;
    place-items: center;
    border-radius: 0 0 12px 12px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.lbx-slot-1 .lbx-pedestal { height: 78px; background: linear-gradient(180deg, #f7c948, #e8a317); }
.lbx-slot-2 .lbx-pedestal { height: 54px; background: linear-gradient(180deg, #8fb2f2, #5f86d9); }
.lbx-slot-3 .lbx-pedestal { height: 42px; background: linear-gradient(180deg, #eeaa8c, #d9825b); }

.lbx-slot.is-me .lbx-slot-card {
    box-shadow: inset 0 0 0 2px rgba(47, 124, 246, .5);
}

/* Bagian bawah: tabel + Tentang XP */
.lbx-bottom {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 5fr);
    gap: 16px;
    align-items: start;
}

.lbx-table {
    width: 100%;
    border-collapse: collapse;
}

.lbx-table th {
    padding: 8px 12px;
    border-bottom: 1px solid var(--lbx-line);
    font-size: 12.5px;
    font-weight: 700;
    text-align: left;
    color: var(--re-muted);
}

.lbx-table td {
    padding: 9px 12px;
    border-bottom: 1px solid #f0f4fc;
    font-size: 14px;
    color: var(--re-ink);
}

.lbx-col-rank {
    width: 96px;
    text-align: center !important;
    font-weight: 800;
}

.lbx-col-xp {
    text-align: right !important;
    font-weight: 700;
    white-space: nowrap;
}

.lbx-who {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.lbx-name {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lbx-row.is-me td {
    background: #eaf2ff;
}

.lbx-row.is-flash td,
.lbx-slot.is-flash .lbx-slot-card {
    animation: lbxFlash 1.8s ease;
}

@keyframes lbxFlash {
    0%, 60% { background-color: #cfe0ff; }
}

.lbx-you {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--re-blue);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.lbx-table-empty {
    padding: 22px 0;
    text-align: center;
}

.lbx-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.lbx-pager-btn,
.lbx-pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe4f7;
    border-radius: 9px;
    background: #fff;
    color: var(--re-ink) !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .18s ease, border-color .18s ease;
}

.lbx-pager-num {
    padding: 0;
}

a.lbx-pager-btn:hover,
a.lbx-pager-num:hover {
    border-color: #9cc0ff;
    background: #eef4ff;
}

.lbx-pager-num.is-active {
    border-color: var(--re-blue);
    background: var(--re-blue);
    color: #fff !important;
}

.lbx-pager-btn.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

.lbx-pager-gap {
    padding: 0 2px;
    color: #98a1bb;
}

.lbx-about p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--re-muted);
}

.lbx-note {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eaf2ff;
}

.lbx-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--re-ink);
}

.lbx-note p {
    margin: 0;
    font-size: 13px;
}

.lbx-note-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--re-blue);
    color: #fff;
    font-size: 14px;
}

#lb-slot.is-loading {
    pointer-events: none;
}

#lb-slot.is-loading .lbx-card {
    opacity: .55;
    transition: opacity .2s ease;
}

/* Muat awal: tampilkan skeleton saja (tanpa spinner/redup bawaan). */
#lb-slot.is-initial::before,
#lb-slot.is-initial::after {
    display: none;
}

#lb-slot.is-initial .lbx-card {
    opacity: 1;
}

.lbx-skel {
    display: grid;
    gap: 16px;
}

.lbx-skel .lbx-card {
    display: grid;
    gap: 14px;
    align-content: start;
}

.lbx-skel-me {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.lbx-skel-col {
    display: grid;
    gap: 8px;
}

.lbx-skel-stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
    min-height: 200px;
}

.lbx-skel-slot,
.lbx-skel-bar,
.lbx-skel-dot {
    display: block;
    background: linear-gradient(90deg, #eaf0fb 25%, #f6f9ff 45%, #eaf0fb 65%);
    background-size: 220% 100%;
    animation: lbxShimmer 1.3s ease-in-out infinite;
}

.lbx-skel-slot {
    border-radius: 16px;
}

.lbx-skel-bar {
    height: 14px;
    border-radius: 999px;
}

.lbx-skel-dot {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.lbx-skel-dot-lg {
    width: 52px;
    height: 52px;
}

.lbx-skel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

@keyframes lbxShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@media (max-width: 991px) {
    .lbx-skel-side {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbx-skel-slot,
    .lbx-skel-bar,
    .lbx-skel-dot {
        animation: none;
    }
}

@media (max-width: 991px) {
    .lbx-top,
    .lbx-bottom {
        grid-template-columns: minmax(0, 1fr);
    }
    }

@media (max-width: 639px) {
    .lbx-hero {
        min-height: 130px;
        padding: 18px;
    }
    .lbx-hero::before {
        opacity: .3;
    }
    .lbx-hero h1 {
        font-size: 28px;
    }
    .lbx-hero {
        flex-wrap: wrap;
    }
    .lbx-terms-link {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 10px;
    }
    .lbx-card {
        padding: 16px;
    }
    .lbx-podium {
        gap: 8px;
    }
    .lbx-slot-card {
        padding: 18px 6px 10px;
    }
    .lbx-slot-1 .lbx-slot-card {
        padding-top: 26px;
    }
    .lbx-slot h3 {
        font-size: 12px;
    }
    .lbx-slot-xp,
    .lbx-slot-1 .lbx-slot-xp {
        font-size: 13px;
    }
    .lbx-avatar-xl { width: 56px; height: 56px; }
    .lbx-avatar-lg { width: 44px; height: 44px; }
    .lbx-medal {
        top: 6px;
        left: 6px;
        width: 22px;
        height: 22px;
        font-size: 11px;
    }
    .lbx-col-rank {
        width: 64px;
    }
    .lbx-btn {
        width: 100%;
        justify-content: center;
    }
    .lbx-pager-btn {
        padding: 0 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbx-row.is-flash td,
    .lbx-slot.is-flash .lbx-slot-card {
        animation: none;
    }
}

/* ---------- Halaman Challenge (/rewards/challenge): daftar kartu, detail, dialog konfirmasi ---------- */
.chx-page {
    --lbx-line: #e6edfb;
}

.lbx-hero.chx-hero::before {
    background-image: none;
}

.chx-hero {
    background: linear-gradient(120deg, #eaf2ff 0%, #f6f0ff 100%);
}

.chx-page .lbx-card {
    margin-bottom: 16px;
}

.chx-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
}

.chx-notice.is-ok {
    border: 1px solid #bfe8d0;
    background: #eafaf1;
    color: #17784a;
}

.chx-notice.is-error {
    border: 1px solid #f5c9c9;
    background: #fff1f1;
    color: #b42323;
}

.chx-intro {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(120deg, #ffffff 0%, #eef4ff 100%);
}

.chx-intro-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #e6eefc;
    color: var(--re-blue);
    font-size: 22px;
}

.chx-intro h2 {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: var(--re-ink);
}

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

.chx-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.chx-stat {
    padding: 14px 18px;
    border: 1px solid var(--lbx-line);
    border-radius: 16px;
    background: #fff;
}

.chx-stat strong {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--re-ink);
}

.chx-stat span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-stat.is-points strong {
    color: #9a6b00;
}

.chx-stat.is-points i,
.chx-reward i,
.chx-dialog-reward i {
    color: #f0a91b;
}

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

.chx-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--lbx-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px -24px rgba(23, 42, 99, .6);
}

.chx-card[hidden] {
    display: none;
}

.chx-card.is-completed {
    background: linear-gradient(160deg, #ffffff 0%, #f1fbf5 100%);
}

.chx-card-head,
.chx-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.chx-tag {
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: var(--re-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .6px;
}

.chx-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef1f8;
    color: var(--re-muted);
    font-size: 11.5px;
    font-weight: 800;
}

.chx-pill.is-ongoing {
    background: #fff4d6;
    color: #9a6b00;
}

.chx-pill.is-done {
    background: #e2f6ea;
    color: #1d9a57;
}

.chx-pill.is-available {
    background: #e6eefc;
    color: var(--re-blue);
}

.chx-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
}

.chx-card h3 a {
    color: var(--re-ink) !important;
    text-decoration: none !important;
}

.chx-card h3 a:hover {
    color: var(--re-blue) !important;
}

.chx-desc,
.chx-text,
.chx-lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--re-muted);
}

.chx-sub,
.chx-h2 {
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--re-ink);
}

.chx-h2 {
    margin-top: 18px;
    font-size: 15px;
    text-transform: none;
    letter-spacing: 0;
}

.chx-h2:first-child {
    margin-top: 0;
}

.chx-reqs {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chx-reqs li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--re-ink);
}

.chx-reqs li i {
    margin-top: 2px;
    color: #9aa7c7;
}

.chx-reqs li.is-done i {
    color: #1d9a57;
}

.chx-reqs small {
    margin-left: auto;
    padding-left: 8px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    color: var(--re-muted);
}

.chx-reqs li.is-done small {
    color: #1d9a57;
}

.chx-reqs-lg li {
    padding: 12px 14px;
    border: 1px solid var(--lbx-line);
    border-radius: 14px;
    background: #f8faff;
    font-size: 15px;
}

.chx-req-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chx-req-text small {
    margin: 0;
    padding: 0;
    white-space: normal;
}

.chx-path-btn {
    align-self: flex-start;
    margin-top: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--re-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.chx-reqs li .chx-path-btn i {
    margin: 0 0 0 4px;
    color: #fff;
    font-size: 15px;
    -webkit-text-stroke: 1px currentColor;
}

.chx-path-btn.is-enrolled {
    background: #1d9a57;
}

.chx-path-btn:hover {
    color: #fff;
    opacity: .9;
}

.chx-req-text:has(.chx-portos) {
    flex: 1 1 auto;
    min-width: 0;
}

.chx-portos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 860px) {
    .chx-portos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

.chx-porto {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--lbx-line);
    border-radius: 14px;
    background: #fff;
    color: var(--re-ink);
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.chx-porto:hover {
    box-shadow: 0 8px 20px rgba(55, 81, 255, .14);
    transform: translateY(-2px);
}

.chx-porto-img {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    background: #eef4ff;
    color: var(--re-blue);
    font-size: 30px;
}

.chx-porto-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chx-porto-name {
    padding: 10px 12px 2px;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.3;
}

.chx-porto-go {
    padding: 0 12px 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--re-blue);
}

.chx-courses {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
}

.chx-courses li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13.5px;
    color: var(--re-muted);
}

.chx-courses li.is-done i {
    color: #1d9a57;
}

.chx-courses a {
    color: inherit;
    text-decoration: none;
}

.chx-courses a:hover {
    color: var(--re-blue);
    text-decoration: underline;
}

.chx-bar {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eefb;
}

.chx-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60a5fa, var(--re-blue));
}

.chx-card.is-completed .chx-bar span,
.chx-hero-card.is-completed + .chx-body .chx-bar span {
    background: linear-gradient(90deg, #5fbf7d, #1d9a57);
}

.chx-bar-lg {
    height: 12px;
    margin: 6px 0 14px;
}

.chx-percent {
    margin: 0;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-percent-lg {
    margin-top: 16px;
    font-size: 14px;
}

.chx-reward {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding: 10px 14px;
    border: 1px solid #f2dfb4;
    border-radius: 14px;
    background: #fff7e6;
}

.chx-reward span {
    font-size: 12.5px;
    font-weight: 700;
    color: #9a6b00;
}

.chx-reward strong {
    font-size: 15px;
    font-weight: 800;
    color: #7a5400;
}

.chx-reward-lg {
    margin-top: 14px;
    max-width: 360px;
}

.chx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border: 1px solid var(--re-blue);
    border-radius: 12px;
    background: var(--re-blue);
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.chx-btn:hover {
    border-color: #1f63e8;
    background: #1f63e8;
}

.chx-btn:disabled {
    opacity: .6;
    cursor: wait;
}

.chx-btn.is-ghost {
    border-color: #cfe0ff;
    background: #eef4ff;
    color: #1f63e8 !important;
}

.chx-btn.is-ghost:hover {
    background: #e0ecff;
}

.chx-empty-filter {
    padding: 24px;
    text-align: center;
    color: var(--re-muted);
}

/* Detail challenge */
.chx-hero-card {
    padding: 26px 28px;
    background: linear-gradient(120deg, #ffffff 0%, #eef4ff 100%);
}

.chx-hero-card.is-completed {
    background: linear-gradient(120deg, #ffffff 0%, #eafaf1 100%);
}

.chx-hero-card h1 {
    margin: 12px 0 8px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--re-ink);
}

.chx-body .chx-text {
    margin-top: 10px;
}

.chx-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.chx-facts {
    display: grid;
    gap: 8px;
    margin: 0;
}

.chx-facts div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid var(--lbx-line);
    border-radius: 14px;
    background: #f8faff;
}

.chx-facts dt {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-align: right;
    color: var(--re-ink);
}

.chx-facts dd.is-ok {
    color: #1d9a57;
}

/* Dialog konfirmasi */
/* styles.css legacy men-set `dialog {display:block}`, jadi dialog tertutup ikut tampil. */
.chx-dialog:not([open]) {
    display: none;
}

.chx-dialog {
    --re-ink: #1c1f56;
    --re-muted: #5b6483;
    --re-blue: #2f7cf6;
    width: min(440px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 40px 80px -30px rgba(16, 26, 77, .6);
}

.chx-dialog::backdrop {
    background: rgba(16, 26, 77, .55);
}

.chx-dialog-body {
    padding: 28px 26px 24px;
    text-align: center;
}

.chx-dialog-icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
    border-radius: 18px;
    background: #e6eefc;
    color: var(--re-blue);
    font-size: 26px;
}

.chx-dialog h2 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 800;
    color: var(--re-ink);
}

.chx-dialog p {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--re-muted);
}

.chx-dialog-reward {
    font-weight: 800;
    color: #7a5400 !important;
}

.chx-dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.chx-dialog-actions .chx-btn {
    flex: 1 1 0;
}

@media (max-width: 639px) {
    .chx-summary {
        grid-template-columns: minmax(0, 1fr);
    }
    .chx-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .chx-hero-card {
        padding: 20px;
    }
    .chx-hero-card h1 {
        font-size: 23px;
    }
    .chx-actions .chx-btn {
        width: 100%;
    }
    .chx-facts div {
        flex-direction: column;
        gap: 2px;
    }
    .chx-facts dd {
        text-align: left;
    }
}

/* ---------- Challenge v2: hero berilustrasi, statistik, toolbar, kartu bergambar ---------- */
.lbx-hero.chx-hero {
    min-height: 210px;
    background: linear-gradient(90deg, #e3effd 0%, #cfe5fb 100%);
}

/* Kotak ilustrasi tetap 3:1 (rasio gambar) supaya trofi tidak terpotong; tepi kirinya memudar ke latar. */
.lbx-hero.chx-hero::before {
    background: url('../images/challenge/hero.webp') right center / 100% 100% no-repeat;
}

.chx-hero h1 {
    font-size: 38px;
}

.chx-hero p {
    max-width: 520px;
}

.chx-summary {
    gap: 14px;
}

.chx-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 18px;
    box-shadow: 0 12px 28px -26px rgba(23, 42, 99, .6);
}

.chx-stat > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chx-stat > div > span {
    font-size: 13px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-stat strong {
    font-size: 26px;
    line-height: 1.1;
}

.chx-stat.is-points strong {
    font-size: 24px;
}

.chx-stat-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
}

.chx-stat-icon.is-done {
    background: #dff5e7;
    color: #1d9a57;
}

.chx-stat-icon.is-run {
    background: #e2edff;
    color: var(--re-blue);
}

.chx-stat-icon.is-star {
    background: #fff1c9;
    color: #f0a91b;
}

.chx-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.chx-toolbar .bdx-filter {
    margin-bottom: 0;
}

.chx-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.chx-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 260px;
    max-width: 100%;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(212, 84, 0, 0.25);
    border-radius: 999px;
    background: #fff;
    color: var(--re-muted);
}

.chx-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 40px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
    color: var(--re-ink);
}

.chx-sort {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-sort select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dbe4f7;
    border-radius: 12px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--re-ink);
}

.chx-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.chx-card {
    gap: 12px;
    padding: 18px;
}

.chx-card-head {
    justify-content: space-between;
}

.chx-pill.is-available {
    background: #e6eefc;
    color: var(--re-blue);
}

.chx-card-main {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 14px;
}

.chx-art {
    position: relative;
    display: grid;
    flex: 0 0 96px;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: #eef4ff;
    overflow: hidden;
}

.chx-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.chx-art i {
    display: none;
    font-size: 38px;
    color: var(--re-blue);
}

.chx-art.is-empty i {
    display: block;
}

.chx-hero-split {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 28px;
}

.chx-hero-text {
    flex: 1 1 auto;
    min-width: 0;
}

.chx-art.chx-art-hero {
    flex: 0 0 200px;
    width: 200px;
    height: 200px;
    border-radius: 28px;
}

@media (max-width: 640px) {
    .chx-hero-split {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }
    .chx-art.chx-art-hero {
        flex-basis: auto;
        width: 120px;
        height: 120px;
        border-radius: 22px;
    }
}

.chx-card-text {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.chx-card h3 {
    font-size: 16.5px;
}

.chx-desc {
    font-size: 13px;
    line-height: 1.5;
}

.chx-reqs li {
    font-size: 13px;
}

.chx-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--re-muted);
}

.chx-progress .chx-bar {
    flex: 1 1 auto;
}

.chx-progress strong {
    color: var(--re-ink);
}

.chx-done-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e6f7ee;
    color: #1d9a57;
}

.chx-done-box > i {
    font-size: 26px;
}

.chx-done-box strong {
    display: block;
    font-size: 13.5px;
    color: #17784a;
}

.chx-done-box span {
    font-size: 12px;
    color: #3d7f5a;
}

.chx-card-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}

.chx-card-foot .chx-reward {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.chx-card-foot .chx-reward strong {
    font-size: 18px;
}

.chx-card-foot .chx-btn {
    flex: 0 0 auto;
    padding: 11px 18px;
}

.chx-how {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(120deg, #ffffff 0%, #eef4ff 100%);
}

.chx-how h2 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: var(--re-ink);
}

.chx-how ol {
    margin: 0;
    padding-left: 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--re-muted);
}

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

@media (max-width: 719px) {
    .chx-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .chx-hero h1 {
        font-size: 28px;
    }
    .chx-tools,
    .chx-search {
        width: 100%;
    }
    .chx-card-foot .chx-btn {
        width: auto;
    }
}

/* Leaderboard: angka XP naik dari bawah ke atas saat papan dimuat / diganti. */
.lbx-count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    animation: lbx-count-rise .7s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes lbx-count-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbx-count {
        animation: none;
    }
}

/* Challenge: revisi tampilan (info box, filter kategori, kotak persyaratan, syarat & ketentuan) */
.chx-intro { align-items: center; margin-bottom: 16px; }
.chx-intro-link { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--re-blue); text-decoration: none; }
.chx-intro-link:hover { text-decoration: underline; }
.chx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.chx-filters .bdx-filter { margin-bottom: 0; flex-wrap: wrap; }
.chx-tag { padding: 4px 10px; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #e6eefc; color: #2f45d6; }
.chx-tag.is-tone-1 { background: #e6eefc; color: #2f45d6; }
.chx-tag.is-tone-2 { background: #efe6ff; color: #6a35d1; }
.chx-tag.is-tone-3 { background: #e0f6e9; color: #1d8a4f; }
.chx-tag.is-tone-4 { background: #fff0dc; color: #c26a05; }
.chx-tag.is-tone-5 { background: #ffe6ee; color: #c2275a; }
.chx-reqbox { padding: 12px 14px; border: 1px solid #e3eafb; border-radius: 12px; background: #f6f8ff; }
.chx-reqbox .chx-sub { margin: 0 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0; text-transform: none; color: var(--re-ink); }
.chx-reqbox .chx-reqs { margin: 0; }
.chx-reqbox .chx-reqs li i { color: var(--re-blue); }
.chx-terms { margin-top: 16px; scroll-margin-top: 100px; }
.chx-terms h2 { margin: 0 0 10px; font-size: 18px; font-weight: 800; color: var(--re-ink); }
.chx-terms ol { margin: 0 0 10px; padding-left: 22px; font-size: 14px; line-height: 1.75; color: var(--re-muted); }
.chx-terms li { margin-bottom: 4px; }
.chx-terms li strong { color: var(--re-ink); }
.chx-terms p { margin: 0; font-size: 13px; color: var(--re-muted); }
.chx-terms a { font-weight: 700; color: var(--re-blue); }

/* Modal Syarat & Ketentuan Challenge */
button.chx-intro-link { padding: 0; border: 0; background: none; cursor: pointer; font-family: inherit; }
.chx-terms-dialog { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: hidden; }
.chx-terms-dialog .chx-terms { display: flex; flex-direction: column; max-height: calc(100vh - 48px); margin: 0; }
.chx-terms-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 14px; border-bottom: 1px solid #e3eafb; }
.chx-terms-head h2 { margin: 0; font-size: 19px; }
.chx-terms-close { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: #eef2fb; color: var(--re-ink); cursor: pointer; }
.chx-terms-close:hover { background: #dfe7f8; }
.chx-terms-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 24px; text-align: left; }
.chx-terms-body ol { margin-bottom: 12px; }
.chx-terms-foot { display: flex; justify-content: flex-end; padding: 14px 24px 20px; border-top: 1px solid #e3eafb; }
