/**
 * Referral Pro Plugin v12.0 — Enhanced Stylesheet
 * SaaS-level UI, Countdown, Streak, Viral Score, Swipe Slider, Gamification
 */

/* ── Reset ─────────────────────────────────────────────────────────────── */
.rp-user-page *,
.rp-user-page *::before,
.rp-user-page *::after {
    box-sizing: border-box;
    margin: 0;
}

/* ── CSS Variables ──────────────────────────────────────────────────────── */
.rp-user-page {
    --rp-primary: #7c3aed;
    --rp-primary2: #a855f7;
    --rp-gold: #f59e0b;
    --rp-green: #10b981;
    --rp-red: #ef4444;
    --rp-blue: #3b82f6;
    --rp-text: #1e293b;
    --rp-muted: #94a3b8;
    --rp-border: #e2e8f0;
    --rp-bg: #f8fafc;
    --rp-card: #ffffff;
    --rp-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 4px 12px rgba(0, 0, 0, .04);
    --rp-shadow-md: 0 4px 16px rgba(0, 0, 0, .08);
    --rp-radius: 14px;
    --rp-radius-sm: 8px;
}

/* ================================================================
   HERO
================================================================ */
.rpu-hero {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 40%, #0ea5e9 100%);
    border-radius: 20px;
    padding: 28px 30px;
    margin-bottom: 22px;
    color: #fff;
    box-shadow: 0 8px 30px rgba(124, 58, 237, .3);
    position: relative;
    overflow: hidden;
}

.rpu-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
}

.rpu-hero-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -.3px;
}

.rpu-hero-title i {
    margin-right: 8px;
}

.rpu-hero-sub {
    font-size: 14px;
    opacity: .88;
    margin-bottom: 14px;
    line-height: 1.5;
}

.rpu-hero-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rpu-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .25);
}

.rpu-level-badge {
    font-weight: 700;
    letter-spacing: .3px;
}

.lv-influencer {
    background: linear-gradient(135deg, rgba(245, 158, 11, .4), rgba(251, 191, 36, .3)) !important;
}

.lv-promoter {
    background: linear-gradient(135deg, rgba(239, 68, 68, .3), rgba(245, 158, 11, .3)) !important;
}

.lv-beginner {
    background: rgba(255, 255, 255, .15) !important;
}

/* ================================================================
   STATS
================================================================ */
.rpu-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (min-width: 800px) {
    .rpu-stats {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 480px) {
    .rpu-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 340px) {
    .rpu-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.rpu-stat {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    padding: 16px 10px;
    text-align: center;
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow);
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}

.rpu-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--rp-shadow-md);
}

.rpu-stat-icon {
    font-size: 18px;
    color: var(--rp-muted);
    margin-bottom: 6px;
}

.rpu-stat-num {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 3px;
    line-height: 1;
}

.rpu-stat-lbl {
    font-size: 10px;
    color: var(--rp-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.st-total .rpu-stat-num {
    color: var(--rp-text);
}

.st-valid .rpu-stat-num {
    color: var(--rp-green);
}

.st-pending .rpu-stat-num {
    color: var(--rp-gold);
}

.st-slots .rpu-stat-num {
    color: var(--rp-primary);
}

.st-avail .rpu-stat-num {
    color: var(--rp-blue);
}

.st-reward .rpu-stat-num {
    color: var(--rp-gold);
}

.reward-pulse {
    animation: rewardPulse 2s infinite;
}

@keyframes rewardPulse {

    0%,
    100% {
        box-shadow: var(--rp-shadow);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(245, 158, 11, .25), var(--rp-shadow-md);
        border-color: var(--rp-gold);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

.rpu-pulse-icon {
    animation: pulse 1.4s infinite;
}

/* ================================================================
   RPU CARDS — Streak + Viral Score
================================================================ */
.rpu-rpu-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

@media (max-width: 560px) {
    .rpu-rpu-cards {
        grid-template-columns: 1fr;
    }
}

.rpu-rpu-card {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 22px 20px;
    box-shadow: var(--rp-shadow);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
}

/* Streak */
.rpu-streak-card {
    background: linear-gradient(145deg, #fff7ed, #fff);
    border-color: #fed7aa;
}

.rpu-streak-card.streak-maxed {
    border-color: var(--rp-gold);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

.rpu-rpu-card-header {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .8px;
    color: var(--rp-muted);
    text-transform: uppercase;
    width: 100%;
    justify-content: center;
}

.rpu-rpu-card-header i {
    font-size: 16px;
    color: #f97316;
}

.rpu-streak-number {
    font-size: 56px;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
}

.rpu-streak-unit {
    font-size: 13px;
    color: var(--rp-muted);
    font-weight: 600;
}

.rpu-streak-msg {
    font-size: 12px;
    color: var(--rp-muted);
    padding: 5px 12px;
    border-radius: 20px;
    background: #fef3c7;
}

.rpu-streak-bonus {
    background: #ecfdf5;
    color: #059669 !important;
    font-weight: 700;
}

.rpu-streak-warn {
    background: #fef2f2;
    color: #dc2626 !important;
    font-weight: 700;
    animation: warnShake 1s infinite;
}

@keyframes warnShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-3px);
    }

    75% {
        transform: translateX(3px);
    }
}

.rpu-streak-dots {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.rpu-streak-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: background .3s, transform .2s;
}

.rpu-streak-dot.active {
    background: #f97316;
    transform: scale(1.3);
    box-shadow: 0 0 6px rgba(249, 115, 22, .5);
}

/* Viral Score */
.rpu-viral-card {
    background: linear-gradient(145deg, #faf5ff, #fff);
    border-color: #e9d5ff;
}

.rpu-viral-circle-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 6px auto;
}

.rpu-viral-svg {
    width: 100%;
    height: 100%;
}

.rpu-viral-arc {
    transition: stroke-dasharray 1s ease;
}

.rpu-viral-label {
    font-size: 12px;
    color: var(--rp-muted);
    font-weight: 600;
}

.rpu-viral-trend {
    font-size: 12px;
    font-weight: 700;
    color: var(--rp-green);
}

.rpu-tooltip-wrap {
    position: relative;
    display: inline-flex;
}

.rpu-tip-icon {
    cursor: help;
    color: var(--rp-muted);
    font-size: 12px;
}

.rpu-tip-text {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #fff;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 99;
}

.rpu-tooltip-wrap:hover .rpu-tip-text {
    display: block;
}

/* ================================================================
   CARD
================================================================ */
.rpu-card {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow);
}

.rpu-card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.rpu-card-title i {
    color: var(--rp-primary);
    font-size: 15px;
}

/* ================================================================
   REFERRAL LINK
================================================================ */
/* Tagline */
.rpu-share-tagline {
    font-size: 13px;
    color: var(--rp-text-light);
    margin: -4px 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Input with copy button INSIDE */
.rpu-link-box-v2 {
    margin-bottom: 16px;
}

.rpu-link-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--rp-border);
    border-radius: 30px;
    overflow: hidden;
    background: var(--rp-bg);
    transition: border-color .2s;
    max-width: 50%;
}

.rpu-link-input-wrap:focus-within {
    border-color: var(--rp-primary);
}

.rpu-link-input-wrap input {
    flex: 1;
    padding: 11px 14px;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: var(--rp-text);
    font-family: monospace;
    min-width: 0;
}

.rpu-copy-inline-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--rp-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.rpu-copy-inline-btn:hover {
    background: #6d28d9;
}

.rpu-copy-msg {
    display: block;
    font-size: 12px;
    color: var(--rp-green);
    font-weight: 600;
    opacity: 0;
    transition: opacity .3s;
    margin-top: 6px;
}

.rpu-copy-msg.show {
    opacity: 1;
}

/* Share row — single row on desktop, wraps on mobile */
.rpu-share-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

/* Square share buttons with rounded corners + label */
.rpu-share-sq {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 72px;
    min-height: 64px;
    padding: 10px 6px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s, transform .15s, box-shadow .15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}

.rpu-share-sq i {
    font-size: 20px;
}

.rpu-share-sq span {
    line-height: 1;
    text-align: center;
}

.rpu-share-sq:hover {
    opacity: .9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}

.rpu-share-sq.whatsapp {
    background: #25d366;
}

.rpu-share-sq.telegram {
    background: #229ed9;
}

.rpu-share-sq.facebook {
    background: #1877f2;
}

.rpu-share-sq.twitter {
    background: #000;
}

.rpu-share-sq.email {
    background: #64748b;
}

/* Mobile: buttons fill row but max 2 per row without breaking layout */
@media (max-width: 480px) {
    .rpu-share-row {
        gap: 6px;
    }

    .rpu-share-sq {
        flex: 1 1 calc(33% - 6px);
        width: auto;
        min-width: 60px;
    }

    .rpu-link-input-wrap {
        max-width: 100%;
    }
}

/* Keep old .rpu-copy-btn / .rpu-share-btn for any other usage in page */
.rpu-copy-btn {
    padding: 10px 18px;
    background: var(--rp-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background .2s, transform .1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rpu-copy-btn:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.rpu-share-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.rpu-share-btn {
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity .2s, transform .1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.rpu-share-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.rpu-share-btn.whatsapp {
    background: #25d366;
}

.rpu-share-btn.facebook {
    background: #1877f2;
}

.rpu-share-btn.twitter {
    background: #000;
}

.rpu-share-btn.email {
    background: #64748b;
}

.rpu-boost-wrap {
    margin-top: 4px;
}

.rpu-boost-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 800;
    cursor: pointer;
    font-size: 13px;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .3);
}

.rpu-boost-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, .4);
}

/* ================================================================
   PROGRESS
================================================================ */
.rpu-progress-card {
    background: var(--rp-card);
    border-radius: var(--rp-radius);
    padding: 20px 24px;
    margin-bottom: 18px;
    border: 1px solid var(--rp-border);
    box-shadow: var(--rp-shadow);
}

.rpu-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--rp-text);
}

.rpu-progress-bg {
    background: #f1f5f9;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.rpu-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--rp-primary), var(--rp-gold));
    border-radius: 10px;
    transition: width .8s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rpu-progress-pct {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding-right: 6px;
}

.rpu-progress-note {
    font-size: 13px;
    color: var(--rp-muted);
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ================================================================
   PREMIUM SECTION
================================================================ */
.rpu-slot-badge {
    background: var(--rp-green);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 700;
}

.rpu-item-select-wrap {
    margin-bottom: 22px;
}

.rpu-select-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rpu-select {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    font-size: 14px;
    outline: none;
    background: var(--rp-bg);
    color: var(--rp-text);
}

.rpu-select:focus {
    border-color: var(--rp-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.rpu-premium-btn {
    padding: 11px 20px;
    background: linear-gradient(135deg, #6d28d9, #a855f7);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rpu-premium-btn:hover:not(:disabled) {
    box-shadow: 0 6px 16px rgba(109, 40, 217, .35);
    transform: translateY(-1px);
}

.rpu-premium-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.rpu-prem-result {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    min-height: 22px;
}

/* ================================================================
   SLIDER — Responsive + Swipe
================================================================ */
.rpu-slider-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--rp-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rpu-slider-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpu-slider-prev,
.rpu-slider-next {
    background: var(--rp-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .2s, transform .1s, opacity .2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpu-slider-prev:hover,
.rpu-slider-next:hover {
    background: #6d28d9;
    transform: scale(1.08);
}

.rpu-slider-prev:disabled,
.rpu-slider-next:disabled {
    opacity: .35;
    cursor: not-allowed;
    transform: none;
}

.rpu-slider-track-wrap {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: grab;
}

.rpu-slider-track-wrap:active {
    cursor: grabbing;
}

.rpu-slider-track {
    display: flex;
    gap: 16px;
    transition: transform .42s cubic-bezier(.25, .46, .45, .94);
    user-select: none;
}

.rpu-slide-item {
    flex-shrink: 0;
    min-width: 180px;
    width: 180px;
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow .2s;
}

.rpu-slide-item:hover {
    box-shadow: var(--rp-shadow-md);
}

.rpu-slide-img {
    height: 110px;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rpu-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rpu-slide-noimg {
    font-size: 32px;
    color: #cbd5e1;
}

.rpu-slide-body {
    padding: 10px 12px;
}

.rpu-slide-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--rp-text);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rpu-slide-meta {
    display: flex;
    gap: 8px;
    font-size: 10px;
    color: var(--rp-muted);
    margin-bottom: 8px;
}

.rpu-slide-meta i {
    font-size: 9px;
}

.rpu-slide-btn {
    width: 100%;
    padding: 7px;
    background: var(--rp-primary);
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.rpu-slide-btn:hover {
    background: #6d28d9;
}

.rpu-prem-tag {
    font-size: 11px;
    color: var(--rp-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rpu-slide-locked {
    font-size: 11px;
    color: var(--rp-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Slider dots */
.rpu-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}

.rpu-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--rp-border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .3s, transform .2s;
}

.rpu-dot.active {
    background: var(--rp-primary);
    transform: scale(1.4);
}

/* ================================================================
   COUNTDOWN TIMER
================================================================ */
.rpu-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin: 10px 0 8px;
}

.rpu-cd-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(135deg, #1e293b, #334155);
    border-radius: 8px;
    padding: 8px 10px;
    min-width: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.rpu-cd-num {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -1px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 10px rgba(167, 139, 250, .5);
}

.rpu-cd-unit {
    font-size: 9px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 2px;
}

.rpu-cd-sep {
    font-size: 20px;
    font-weight: 800;
    color: #475569;
    align-self: center;
    margin: 0 2px;
    padding-bottom: 12px;
}

.rpu-cd-expired .rpu-cd-num {
    color: #f87171;
}

.rpu-countdown-label {
    font-size: 12px;
    color: var(--rp-muted);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.rpu-expired-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--rp-red);
    font-size: 12px;
    font-weight: 700;
}

/* ================================================================
   PREMIUM LIST
================================================================ */
.rpu-premium-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rpu-premium-item {
    background: linear-gradient(145deg, #fafafa, #fff);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    padding: 16px;
}

.rpu-premium-item-header {
    margin-bottom: 10px;
}

.rpu-premium-item-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--rp-text);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rpu-premium-meta-row {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: var(--rp-muted);
}

.rpu-premium-meta-row i {
    font-size: 10px;
    margin-right: 3px;
}

.rpu-premium-exp {
    margin-top: 4px;
}

.rpu-exp-bar-bg {
    background: #f1f5f9;
    border-radius: 6px;
    height: 5px;
    overflow: hidden;
    margin-top: 8px;
}

.rpu-exp-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width .5s;
}

/* ================================================================
   TABLE
================================================================ */
.rpu-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.rpu-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 400px;
}

.rpu-table thead tr {
    background: var(--rp-bg);
    border-bottom: 2px solid var(--rp-border);
}

.rpu-table thead th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    color: var(--rp-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.rpu-table tbody tr {
    border-bottom: 1px solid #f8fafc;
    transition: background .15s;
}

.rpu-table tbody tr:hover {
    background: #faf5ff;
}

.rpu-table td {
    padding: 10px 12px;
    white-space: nowrap;
    vertical-align: middle;
}

/* Badge */
.rpu-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.rpu-badge.valid {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.rpu-badge.pending {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

/* ================================================================
   STATS BREAKDOWN
================================================================ */
.rpu-details-section {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--rp-shadow);
}

.rpu-details-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--rp-bg);
    display: flex;
    align-items: center;
    gap: 9px;
}

.rpu-details-title i {
    color: var(--rp-primary);
}

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

@media (max-width: 900px) {
    .rpu-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rpu-details-grid {
        grid-template-columns: 1fr;
    }
}

.rpu-detail-card {
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: all .2s;
    cursor: default;
}

.rpu-detail-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rp-shadow-md);
}

.rpu-detail-icon {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--rp-primary);
}

.rpu-detail-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--rp-muted);
    margin-bottom: 5px;
}

.rpu-detail-value {
    font-size: 28px;
    font-weight: 900;
    color: var(--rp-text);
    margin-bottom: 5px;
    line-height: 1;
}

.rpu-detail-sub {
    font-size: 11px;
    color: var(--rp-muted);
    line-height: 1.4;
}

.detail-reward-ready {
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    border-color: var(--rp-gold);
}

/* ================================================================
   SMART INSIGHTS
================================================================ */
.rpu-insights-section {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 22px 24px;
    margin-bottom: 18px;
    box-shadow: var(--rp-shadow);
}

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

/* First card spans full width as featured */
.rpu-insights-grid>.rpu-insight-card:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 28px;
    text-align: left;
    padding: 28px 32px;
    background: linear-gradient(135deg, #9C27B0 0%, #673AB7 50%, #00BCD4 100%);
    color: #fff;
    border-color: transparent;
}

.rpu-insights-grid>.rpu-insight-card:first-child .rpu-insight-icon {
    font-size: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
}

.rpu-insights-grid>.rpu-insight-card:first-child .rpu-insight-icon i {
    color: #fff;
}

.rpu-insights-grid>.rpu-insight-card:first-child .rpu-insight-head {
    color: rgba(255, 255, 255, .7);
    margin-bottom: 6px;
}

.rpu-insights-grid>.rpu-insight-card:first-child .rpu-insight-value {
    font-size: 36px;
    color: #fff;
}

.rpu-insights-grid>.rpu-insight-card:first-child .rpu-insight-sub {
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
}

@media (max-width: 900px) {
    .rpu-insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .rpu-insights-grid {
        grid-template-columns: 1fr;
    }

    .rpu-insights-grid>.rpu-insight-card:first-child {
        flex-direction: column;
        text-align: center;
        padding: 22px 18px;
    }
}

.rpu-insight-card {
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    transition: all .25s, opacity .5s, transform .5s;
    opacity: 0;
    transform: translateY(16px);
    position: relative;
    overflow: hidden;
}

.rpu-insight-card.rpu-visible {
    opacity: 1;
    transform: translateY(0);
}

.rpu-insight-card:hover {
    box-shadow: var(--rp-shadow-md);
    border-color: var(--rp-primary);
}

.rpu-insight-icon {
    font-size: 26px;
    color: var(--rp-primary);
    margin-bottom: 8px;
}

.rpu-insight-head {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--rp-muted);
    margin-bottom: 8px;
}

.rpu-insight-value {
    font-size: 24px;
    font-weight: 900;
    color: var(--rp-text);
    margin-bottom: 5px;
    line-height: 1.2;
}

.rpu-insight-sub {
    font-size: 11px;
    color: var(--rp-muted);
    line-height: 1.4;
}

/* Specific insight cards */
.rpu-insight-time .rpu-insight-icon i {
    color: #3b82f6;
}

.rpu-insight-time .rpu-insight-value {
    font-size: 15px;
    font-weight: 700;
    color: #3b82f6;
}

.rpu-insight-clicks .rpu-insight-icon i {
    color: #8b5cf6;
}

.rpu-insight-msg .rpu-insight-icon i {
    color: #f59e0b;
}

.rpu-insight-msg-box {
    font-size: 11px;
    color: var(--rp-muted);
    background: #fff7ed;
    padding: 8px;
    border-radius: 8px;
    margin-top: 6px;
    border: 1px dashed #fed7aa;
}

.rpu-insight-msg-box i {
    color: #f59e0b;
    margin-right: 4px;
}

.rpu-insight-mystery .rpu-insight-icon i {
    color: #a855f7;
}

.rpu-insight-mystery.mystery-unlocked {
    background: linear-gradient(145deg, #fffbeb, #fef9c3);
    border-color: var(--rp-gold);
}

.rpu-insight-challenge .rpu-insight-icon i {
    color: #f97316;
}

.rpu-insight-challenge-bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 6px;
    overflow: hidden;
    margin: 8px 0 4px;
}

.rpu-insight-challenge-fill {
    height: 100%;
    background: linear-gradient(90deg, #f97316, #ef4444);
    border-radius: 6px;
    transition: width 1s ease;
}

.rpu-insight-social .rpu-insight-icon i {
    color: #ef4444;
}

.rpu-social-num {
    font-size: 32px;
    color: #ef4444;
}

/* ================================================================
   LEADERBOARD
================================================================ */
.rpu-leaderboard-card {}

.rpu-leaderboard {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpu-lb-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--rp-bg);
    border: 1px solid var(--rp-border);
    border-radius: 10px;
    padding: 12px 16px;
    transition: all .2s;
}

.rpu-lb-row:hover {
    box-shadow: var(--rp-shadow);
}

.rpu-lb-me {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border-color: #c4b5fd;
}

.rpu-lb-divider {
    border-top: 2px dashed var(--rp-border);
    margin-top: 4px;
}

.rpu-lb-rank {
    font-size: 20px;
    min-width: 36px;
    text-align: center;
}

.rpu-lb-name {
    flex: 1;
    font-weight: 600;
    font-size: 14px;
    color: var(--rp-text);
}

.rpu-lb-you {
    font-size: 11px;
    color: var(--rp-primary);
    font-weight: 700;
    margin-left: 5px;
}

.rpu-lb-score {
    font-size: 18px;
    font-weight: 800;
    color: var(--rp-text);
}

/* ================================================================
   REWARD SYSTEM
================================================================ */
.rpu-reward-banner {
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border: 2px solid var(--rp-gold);
    border-radius: var(--rp-radius);
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .2);
}

.rpu-reward-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.rpu-reward-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.rpu-reward-text strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 3px;
}

.rpu-reward-text p {
    font-size: 13px;
    color: var(--rp-muted);
}

.rpu-reward-claim {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.rpu-reward-btn {
    padding: 10px 22px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.rpu-reward-btn:hover {
    box-shadow: 0 4px 14px rgba(245, 158, 11, .4);
    transform: translateY(-1px);
}

.rpu-reward-progress-card {
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    padding: 18px 22px;
    margin-bottom: 18px;
    box-shadow: var(--rp-shadow);
}

.rpu-reward-progress-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.rpu-reward-conditions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rpu-reward-cond {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--rp-bg);
    border-radius: 8px;
    font-size: 13px;
    color: #64748b;
    border: 1px solid var(--rp-border);
}

.rpu-reward-cond.cond-done {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #059669;
}

.cond-icon {
    font-size: 16px;
    flex-shrink: 0;
    color: inherit;
}

.rpu-reward-cond-or {
    text-align: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--rp-muted);
    letter-spacing: 2px;
}

/* ================================================================
   EMPTY STATE
================================================================ */
.rpu-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--rp-muted);
}

.rpu-empty-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.rpu-empty p {
    font-size: 15px;
}

/* ================================================================
   MODAL
================================================================ */
.rpu-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rpu-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: modalIn .3s ease;
}

@keyframes modalIn {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.rpu-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--rp-bg);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rp-muted);
}

.rpu-modal-close:hover {
    background: var(--rp-border);
}

.rpu-modal-box h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rpu-modal-box p {
    font-size: 13px;
    color: var(--rp-muted);
    margin-bottom: 14px;
}

.rpu-boost-message {
    background: var(--rp-bg);
    border: 1px dashed var(--rp-border);
    border-radius: 10px;
    padding: 14px;
    font-size: 13px;
    color: var(--rp-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.rpu-boost-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.rpu-boost-action-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity .2s, transform .1s;
}

.rpu-boost-action-btn:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.rpu-ba-wa {
    background: #25d366;
}

.rpu-ba-fb {
    background: #1877f2;
}

/* ================================================================
   FOOTER
================================================================ */
.rpu-footer-note {
    font-size: 12px;
    color: var(--rp-muted);
    text-align: center;
    padding: 20px 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ================================================================
   MOBILE MENU - تحسين التصميم والمحاذاة
================================================================ */

#mobile-menu {
    width: 100% !important;
    margin: 12px auto 20px auto !important;
    /* مسافة من الأعلى والأسفل */
    padding: 0 6px !important;
    /* مسافة متساوية من اليمين واليسار */
    box-sizing: border-box !important;
}

#mobile-menu ul {
    display: flex !important;
    overflow-x: auto !important;
    gap: 8px !important;
    /* زيادة الـ gap قليلاً لتحسين الشكل */
    padding: 12px 12px !important;
    /* padding داخلي متساوي */
    background: #ffffff !important;
    border-radius: 7px !important;
    /* جعل الحواف أكثر نعومة */
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    scrollbar-width: none !important;
    list-style: none !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* إخفاء شريط التمرير */
#mobile-menu ul::-webkit-scrollbar {
    display: none !important;
}

/* تحسين العناصر */
#mobile-menu ul li {
    flex: 0 0 auto !important;
}

#mobile-menu ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    min-width: 68px !important;
    /* تقليل قليلاً ليتناسب أكثر */
    padding: 10px 8px 7px 15px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: #555 !important;
    text-decoration: none !important;
    border-radius: 30px !important;
    background: transparent !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

/* أيقونات Font Awesome */
#mobile-menu ul li a::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 18px !important;
    display: block !important;
    line-height: 1 !important;
    color: #777 !important;
    margin-bottom: 2px !important;
}

/* Hover و Active states */
#mobile-menu ul li a:hover {
    background: #f8f9ff !important;
}

#mobile-menu ul li a:hover::before {
    color: var(--rp-primary) !important;
}

#mobile-menu ul li.active a,
#mobile-menu ul li a.active {
    background: #f0ebff !important;
    color: var(--rp-primary) !important;
}

#mobile-menu ul li.active a::before,
#mobile-menu ul li a.active::before {
    color: var(--rp-primary) !important;
}

/* أيقونات كل عنصر (نفسها مع تعديل بسيط) */
#mobile-menu ul li:nth-child(1) a::before {
    content: "\f007" !important;
}

#mobile-menu ul li:nth-child(2) a::before {
    content: "\f0e4" !important;
}

#mobile-menu ul li:nth-child(3) a::before {
    content: "\f15c" !important;
}

#mobile-menu ul li:nth-child(4) a::before {
    content: "\f0f3" !important;
}

#mobile-menu ul li:nth-child(5) a::before {
    content: "\f2bd" !important;
}

#mobile-menu ul li:nth-child(6) a::before {
    content: "\f1ad" !important;
}

#mobile-menu ul li:nth-child(7) a::before {
    content: "\f004" !important;
}

#mobile-menu ul li:nth-child(8) a::before {
    content: "\f27a" !important;
}

#mobile-menu ul li:nth-child(9) a::before {
    content: "\f02b" !important;
}

#mobile-menu ul li:nth-child(10) a::before {
    content: "\f7c0" !important;
}

#mobile-menu ul li:last-child a::before {
    content: "\f2f5" !important;
}

#mobile-menu ul::-webkit-scrollbar {
    display: none !important;
}

#mobile-menu ul li {
    flex: 0 0 auto !important;
}

#mobile-menu ul li a {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    min-width: 72px !important;
    padding: 10px 10px 8px 10px !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: #666 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    background: transparent !important;
    position: relative !important;
    transition: all 0.18s ease !important;
    white-space: nowrap !important;
}

#mobile-menu ul li a * {
    display: none !important;
}

#mobile-menu ul li a::before {
    content: "" !important;
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-size: 17px !important;
    display: block !important;
    line-height: 1 !important;
    color: #888 !important;
    transition: color 0.18s !important;
}



/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 700px) {
    .rpu-hero {
        padding: 20px 18px;
    }

    .rpu-hero-title {
        font-size: 20px;
    }

    .rpu-card {
        padding: 16px;
    }

    .rpu-detail-value {
        font-size: 22px;
    }

    .rpu-reward-inner {
        flex-direction: column;
        text-align: center;
    }

    .rpu-reward-claim {
        justify-content: center;
    }

    .rpu-cd-block {
        min-width: 40px;
        padding: 6px 8px;
    }

    .rpu-cd-num {
        font-size: 18px;
    }

    .rpu-modal-box {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .rpu-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .rpu-countdown {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ================================================================
   ADMIN TABLE — Professional SaaS-level (v12)
================================================================ */
.rp-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
    background: #fff;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #fcb800 #f0f0f0;
}

.rp-table-wrap::-webkit-scrollbar {
    height: 6px;
}

.rp-table-wrap::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.rp-table-wrap::-webkit-scrollbar-thumb {
    background: #fcb800;
    border-radius: 3px;
}

table.rp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    min-width: 1020px;
}

table.rp-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

table.rp-table thead tr {
    background: #f8f9fa;
    border-bottom: 2px solid #eee;
}

table.rp-table thead th {
    padding: 11px 13px;
    text-align: left;
    font-weight: 700;
    color: #555;
    font-size: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: .5px;
    cursor: pointer;
    user-select: none;
}

table.rp-table thead th:hover {
    background: #f0f1f3;
}

table.rp-table thead th .sort-icon {
    margin-left: 4px;
    opacity: .4;
    font-size: 9px;
}

table.rp-table thead th.sorted-asc .sort-icon,
table.rp-table thead th.sorted-desc .sort-icon {
    opacity: 1;
    color: #fcb800;
}

/* Zebra rows */
table.rp-table tbody tr:nth-child(even) {
    background: #fafbfc;
}

table.rp-table tbody tr:hover {
    background: #fff8e1 !important;
}

table.rp-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background .12s;
}

table.rp-table td {
    padding: 10px 13px;
    vertical-align: middle;
}

/* Column widths */
table.rp-table th:first-child,
table.rp-table td:first-child {
    width: 36px;
    text-align: center;
    color: #ccc;
    font-size: 11px;
}

/* ================================================================
   GLOBAL TOAST (v12)
================================================================ */
.rp-toast-global {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.rp-toast-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
    animation: toastIn .3s ease forwards;
    pointer-events: all;
    max-width: 340px;
    min-width: 200px;
    cursor: pointer;
}

.rp-toast-item.toast-success {
    background: linear-gradient(135deg, #059669, #10b981);
}

.rp-toast-item.toast-error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.rp-toast-item.toast-info {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.rp-toast-item.toast-warn {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.rp-toast-item.toast-out {
    animation: toastOut .3s ease forwards;
}

@keyframes toastIn {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(60px);
        opacity: 0;
    }
}

/* ================================================================
   SMART ACTION BANNER (v12)
================================================================ */
.rpu-smart-action {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border: 1px solid #c4b5fd;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.rpu-smart-action-text {
    flex: 1;
    font-size: 14px;
    font-weight: 600;
    color: #4c1d95;
}

.rpu-smart-action-text span {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #7c3aed;
    margin-top: 2px;
}

.rpu-smart-action-btn {
    padding: 10px 20px;
    background: #7c3aed;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.rpu-smart-action-btn:hover {
    background: #6d28d9;
}

/* ================================================================
   SHARE PILLS — v13.02 Professional Redesign
================================================================ */
.rpu-share-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

@media (max-width: 600px) {
    .rpu-share-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .rpu-share-grid {
        grid-template-columns: 1fr;
    }
}

/* Pill button — icon + label + small description + external icon */
.rpu-share-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    font-family: inherit;
    transition: transform .18s, box-shadow .18s, filter .18s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .14);
    position: relative;
    overflow: hidden;
}

.rpu-share-pill::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0);
    transition: background .18s;
}

.rpu-share-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
    filter: brightness(1.06);
}

.rpu-share-pill:active {
    transform: translateY(-1px);
}

/* Icon circle */
.rpu-share-pill-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* Text block */
.rpu-share-pill-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.rpu-share-pill-text strong {
    font-size: 13px;
    font-weight: 700;
}

.rpu-share-pill-text small {
    font-size: 10px;
    opacity: .82;
    font-weight: 500;
}

/* External link mini icon */
.rpu-share-pill-ext {
    flex-shrink: 0;
    font-size: 10px;
    opacity: .65;
    margin-left: auto;
}

/* Platform colors */
.rpu-wa {
    background: linear-gradient(135deg, #128c7e, #25d366);
}

.rpu-tg {
    background: linear-gradient(135deg, #1a76bf, #0088cc);
}

.rpu-fb {
    background: linear-gradient(135deg, #1557aa, #1877f2);
}

.rpu-tw {
    background: linear-gradient(135deg, #111, #333);
}

.rpu-li {
    background: linear-gradient(135deg, #005181, #0077b5);
}

.rpu-em {
    background: linear-gradient(135deg, #475569, #64748b);
}

/* Quick action row below share grid */
.rpu-share-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.rpu-share-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

/* Copy button */
.rpu-share-actions .rpu-copy-btn {
    background: var(--rp-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
}

.rpu-share-actions .rpu-copy-btn:hover {
    background: #6d28d9;
    box-shadow: 0 6px 16px rgba(124, 58, 237, .4);
    transform: translateY(-1px);
}

/* Boost strategy button */
.rpu-boost-launch {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    box-shadow: 0 3px 10px rgba(245, 158, 11, .3);
}

.rpu-boost-launch:hover {
    box-shadow: 0 6px 18px rgba(245, 158, 11, .45);
    transform: translateY(-1px);
    filter: brightness(1.04);
}

/* Native share (mobile) */
.rpu-native-share {
    background: #1e293b;
    color: #fff;
}

.rpu-native-share:hover {
    background: #334155;
    transform: translateY(-1px);
}

/* ================================================================
   SAAS DASHBOARD (Redesign)
================================================================ */
.rpu-saas-dashboard {
    margin: 30px 0;
}

.rpu-saas-header {
    margin-bottom: 20px;
}

.rpu-saas-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--rp-text);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.rpu-saas-title i {
    color: var(--rp-primary);
}

.rpu-saas-subtitle {
    font-size: 14px;
    color: var(--rp-muted);
}

.rpu-saas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rpu-saas-card {
    background: var(--rp-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--rp-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.015);
    display: flex;
    align-items: flex-start;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.rpu-saas-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.03);
    border-color: rgba(124, 58, 237, 0.25);
}

.rpu-saas-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.04);
}

.rpu-saas-card-info {
    flex: 1;
    min-width: 0;
}

.rpu-saas-card-title {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--rp-muted);
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.rpu-saas-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--rp-text);
    margin-bottom: 14px;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.rpu-saas-val-sub {
    font-size: 13px;
    color: var(--rp-muted);
    font-weight: 600;
}

.rpu-saas-progress {
    background: #f1f5f9;
    height: 8px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.rpu-saas-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
    border-radius: 8px;
    transition: width 1s ease-in-out;
}

.rpu-saas-desc {
    font-size: 13px;
    color: var(--rp-text);
    opacity: 0.85;
    line-height: 1.4;
}

.rpu-saas-flex-metrics {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    border-top: 1px dashed var(--rp-border);
    padding-top: 16px;
}

.rpu-saas-metric {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.rpu-saas-m-label {
    font-size: 11px;
    color: var(--rp-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.rpu-saas-m-val {
    font-size: 16px;
    font-weight: 700;
    color: var(--rp-text);
}

.rpu-saas-trend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569;
}

.rpu-saas-trend.up {
    color: #059669;
    background: #d1fae5;
}

.rpu-saas-trend.down {
    color: #dc2626;
    background: #fee2e2;
}

.rpu-saas-motivation {
    margin-top: 12px;
}

.rpu-motivate-msg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #6d28d9;
    background: #ede9fe;
    padding: 10px 14px;
    border-radius: 10px;
    line-height: 1.4;
}

.rpu-motivate-msg i {
    font-size: 15px;
}

.rpu-motivate-msg.highlight {
    color: #b45309;
    background: #fef3c7;
}

.rpu-motivate-msg.start {
    color: #0369a1;
    background: #e0f2fe;
}

/* Copy button animation overlay */
.rpu-copy-inline-btn {
    position: relative;
    overflow: hidden;
}

.rpu-copy-inline-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.25);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.4s ease-out;
}

.rpu-copy-inline-btn:active::after {
    transform: translate(-50%, -50%) scale(1);
    transition: 0s;
}

/* ================================================================
   GAMIFIED LEVEL TRACK
================================================================ */
.rpu-gamified-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 0 0 32px 0;
    padding: 24px 34px;
    background: linear-gradient(7deg, #b73ad1 0%, #490578 100%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.rpu-track-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.4s;
    position: relative;
    z-index: 2;
}

.rpu-track-step.unlocked {
    opacity: 1;
}

.rpu-step-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #334155;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 3px solid #1e293b;
    box-shadow: 0 0 0 2px #334155;
    transition: all 0.4s;
}

.rpu-track-step.unlocked .rpu-step-icon {
    background: linear-gradient(135deg, #f59e0b, #eab308);
    color: #fff;
    box-shadow: 0 0 0 2px #f59e0b, 0 0 16px rgba(245, 158, 11, 0.4);
    border-color: #0f172a;
}

.rpu-track-step.active-pulse .rpu-step-icon {
    animation: goldPulse 2s infinite;
}

@keyframes goldPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.6);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(245, 158, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
    }
}

.rpu-step-label {
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rpu-track-step.unlocked .rpu-step-label {
    color: #f8fafc;
}

.rpu-track-line {
    flex: 1;
    height: 4px;
    background: #334155;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    margin: -24px 8px 0 8px;
}

.rpu-track-line.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    background: linear-gradient(90deg, #f59e0b, #eab308);
    animation: lineFill 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes lineFill {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 500px) {
    .rpu-gamified-track {
        padding: 20px 14px;
        gap: 6px;
    }

    .rpu-step-icon {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .rpu-step-label {
        font-size: 10px;
    }

    .rpu-track-line {
        margin: -18px 4px 0 4px;
    }
}

.rpu-anim-num {
    display: inline-block;
}

/* ================================================================
   REFERRAL PRO v14.0 — GROWTH ENGINE CSS EXTENSIONS
================================================================ */

/* ── Live Activity Ticker (FOMO Engine) ─────────────────────── */
.rpu-activity-ticker {
    background: linear-gradient(7deg, #b73ad1 0%, #490578 100%);
    border-radius: 10px;
    padding: 10px 18px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .07);
}

.rpu-ticker-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    transition: opacity .28s, transform .28s;
}

.rpu-ticker-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
    animation: tickerPulse 1.4s infinite;
}

@keyframes tickerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, .7);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
}

/* ── Live Dot ─────────────────────────────────────────────────── */
.rpu-live-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    animation: tickerPulse 1.4s infinite;
    flex-shrink: 0;
}

.rpu-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(16, 185, 129, .25) !important;
    border-color: rgba(16, 185, 129, .4) !important;
    color: #d1fae5 !important;
}

/* ── Momentum Engine ─────────────────────────────────────────── */
.rpu-momentum-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid transparent;
    transition: all .3s;
}

.rpu-momentum-hot {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
    border-color: #f59e0b;
}

.rpu-momentum-rising {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #10b981;
}

.rpu-momentum-steady {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.rpu-momentum-cold {
    background: var(--rp-card);
    border-color: var(--rp-border);
}

.rpu-momentum-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--rp-text);
    margin-bottom: 6px;
}

.rpu-momentum-sub {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rpu-momentum-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .07);
    color: var(--rp-text);
}

/* Sparkline */
.rpu-momentum-spark {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 52px;
    flex-shrink: 0;
    cursor: default;
}

.rpu-spark-bar {
    width: 10px;
    background: #e2e8f0;
    border-radius: 3px 3px 0 0;
    transition: background .3s, height .6s cubic-bezier(.34, 1.56, .64, 1);
    min-height: 4px;
}

.rpu-spark-bar.today {
    background: var(--rp-primary);
}

.rpu-momentum-hot .rpu-spark-bar {
    background: #fcd34d;
}

.rpu-momentum-hot .rpu-spark-bar.today {
    background: #f59e0b;
}

.rpu-momentum-rising .rpu-spark-bar {
    background: #86efac;
}

.rpu-momentum-rising .rpu-spark-bar.today {
    background: #10b981;
}

.rpu-momentum-steady .rpu-spark-bar {
    background: #93c5fd;
}

.rpu-momentum-steady .rpu-spark-bar.today {
    background: #3b82f6;
}

.rpu-spark-bar:hover {
    filter: brightness(1.2);
}

/* ── Smart Action — Urgency variant ─────────────────────────── */
.rpu-sa-urgent {
    border-left: 4px solid var(--rp-primary) !important;
    animation: pulseAction 2.5s infinite;
}

.rpu-sa-success {
    border-left: 4px solid #10b981 !important;
}

@keyframes pulseAction {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(124, 58, 237, .1);
    }

    50% {
        box-shadow: 0 4px 28px rgba(124, 58, 237, .25);
    }
}

.rpu-pulse-btn {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }
}

/* ── Social Proof Bar ────────────────────────────────────────── */
.rpu-social-proof-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rp-text);
}

.rpu-sp-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rpu-sp-anim {
    margin-left: auto;
    color: var(--rp-muted);
    font-weight: 500;
}

/* ── Dynamic Flash Challenge ──────────────────────────────────── */
.rpu-bonus-challenge {
    background: linear-gradient(7deg, #b73ad1 0%, #490578 100%);
    border-radius: 16px;
    padding: 18px 22px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, .08);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.rpu-bonus-challenge::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(124, 58, 237, .3) 0%, transparent 70%);
    border-radius: 50%;
}

.challenge-done {
    border-color: rgba(16, 185, 129, .4);
    background: linear-gradient(135deg, #064e3b, #065f46);
}

.rpu-bc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rpu-bc-badge {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    background: rgba(124, 58, 237, .4);
    padding: 4px 12px;
    border-radius: 20px;
    color: #c4b5fd;
}

.rpu-bc-countdown {
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.rpu-bc-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rpu-bc-progress-wrap {
    background: rgba(255, 255, 255, .1);
    border-radius: 8px;
    height: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.rpu-bc-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 8px;
    transition: width 1s cubic-bezier(.25, .8, .25, 1);
}

.rpu-bc-meta {
    font-size: 13px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rpu-bc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--rp-primary);
    color: #fff;
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all .2s;
}

.rpu-bc-cta:hover {
    background: #6d28d9;
    transform: translateY(-1px);
}

.rpu-bc-done {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #6ee7b7;
}

/* ── Mystery Reward Claim Button ─────────────────────────────── */
.rpu-mystery-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1c1917;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    margin-top: 8px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, .4);
    position: relative;
    overflow: hidden;
    transition: all .2s cubic-bezier(.25, .8, .25, 1);
}

.rpu-mystery-claim-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(245, 158, 11, .5);
}

.rpu-mystery-claim-btn:active {
    transform: translateY(0);
}

.rpu-mystery-result {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.rpu-mystery-lock-bar {
    background: #e2e8f0;
    border-radius: 6px;
    height: 6px;
    margin: 8px 0;
    overflow: hidden;
}

.rpu-mystery-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #a855f7);
    border-radius: 6px;
    transition: width 1s;
}

/* ── Pagination ──────────────────────────────────────────────── */
.rpu-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--rp-border);
}

.rpu-pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--rp-card);
    border: 1px solid var(--rp-border);
    color: var(--rp-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
    cursor: pointer;
}

.rpu-pg-btn:hover:not(.disabled):not(.active) {
    background: #f1f5f9;
    border-color: var(--rp-primary);
    color: var(--rp-primary);
}

.rpu-pg-btn.active {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(124, 58, 237, .3);
}

.rpu-pg-btn.disabled {
    opacity: .4;
    pointer-events: none;
}

.rpu-pg-ellipsis {
    font-size: 13px;
    color: var(--rp-muted);
    padding: 0 4px;
}

.rpu-pg-info {
    font-size: 12px;
    color: var(--rp-muted);
    margin-left: auto;
}

/* ── Table Date/Time styling ─────────────────────────────────── */
.rpu-table-date {
    font-weight: 600;
}

.rpu-table-time {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: var(--rp-muted);
    margin-left: 4px;
}

.rpu-table-activated {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    color: #10b981;
    margin-left: 4px;
}

/* ── Ripple effect for buttons ───────────────────────────────── */
.rpu-ripple {
    position: relative;
    overflow: hidden;
}

.rpu-ripple-wave {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .35);
    transform: scale(0);
    animation: rippleAnim .6s linear;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ── Weekly Challenge countdown inline ───────────────────────── */
.rpu-challenge-countdown {
    font-size: 12px;
    font-weight: 700;
    color: var(--rp-primary);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}

/* ── Social Proof in Insight Card ────────────────────────────── */
.rpu-insight-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #10b981;
    margin-top: 6px;
}

/* ── Leaderboard Privacy (masked names) ─────────────────────── */
.rpu-lb-row.rpu-lb-me .rpu-lb-name {
    color: var(--rp-primary);
    font-weight: 700;
}

/* ================================================================
   Fix #6 — Compact Share Row
================================================================ */
.rpu-share-compact-row {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 16px;
    padding-bottom: 4px;
    scrollbar-width: thin;
}

.rpu-share-compact {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform .15s, opacity .15s, box-shadow .15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.rpu-share-compact:hover {
    transform: translateY(-2px);
    opacity: .93;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

.rpu-share-compact i {
    font-size: 15px;
}

.rpu-share-compact span {
    font-size: 12px;
}

.rpu-share-compact.rpu-wa {
    background: #25d366;
}

.rpu-share-compact.rpu-tg {
    background: #229ed9;
}

.rpu-share-compact.rpu-fb {
    background: #1877f2;
}

.rpu-share-compact.rpu-tw {
    background: #000;
}

.rpu-share-compact.rpu-li {
    background: #0a66c2;
}

.rpu-share-compact.rpu-em {
    background: #64748b;
}

@media (max-width:560px) {
    .rpu-share-compact-row {
        gap: 6px;
    }

    .rpu-share-compact {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        justify-content: center;
        padding: 0;
    }

    .rpu-share-compact span {
        display: none;
    }

    .rpu-share-compact i {
        font-size: 18px;
    }
}

/* ================================================================
   Fix #8 — View Ad button + slide-meta flex
================================================================ */
.rpu-view-ad-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--rp-primary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--rp-primary);
    padding: 2px 8px;
    border-radius: 12px;
    transition: background .15s, color .15s;
    margin-left: auto;
}

.rpu-view-ad-btn:hover {
    background: var(--rp-primary);
    color: #fff;
}

.rpu-slide-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* ================================================================
   Fix #10 — Cards Professional Spacing
================================================================ */
.rpu-card,
.rpu-progress-card,
.rpu-bonus-challenge,
.rpu-momentum-card,
.rpu-reward-banner,
.rpu-smart-action,
.rpu-social-proof-bar {
    margin-bottom: 20px;
}

.rpu-rpu-cards,
.rpu-stats,
.rpu-insights-section,
.rpu-details-section {
    margin-bottom: 20px;
}

/* ================================================================
   Fix #11 — Copy Link wider with text
================================================================ */
.rpu-link-input-wrap {
    max-width: 100% !important;
}

.rpu-copy-inline-btn {
    width: auto !important;
    height: auto !important;
    padding: 10px 18px !important;
    gap: 6px;
    font-size: 13px !important;
    border-radius: 0 30px 30px 0 !important;
    white-space: nowrap;
}

.rpu-copy-btn-text {
    font-weight: 700;
    font-size: 13px;
}

/* ================================================================
   Fix #12 — Copy Done & distinct animations
================================================================ */
.rpu-copy-done {
    background: var(--rp-green) !important;
    animation: copyDoneAnim .3s ease;
}

@keyframes copyDoneAnim {
    0% {
        transform: scale(1)
    }

    50% {
        transform: scale(1.08)
    }

    100% {
        transform: scale(1)
    }
}

.rpu-weekly-motivate {
    font-size: 12px;
    color: var(--rp-green);
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
}

/* ================================================================
   Fix #13 — Mobile 16px padding
================================================================ */
@media (max-width:640px) {
    .rp-user-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .rpu-hero {
        padding: 20px 16px !important;
        border-radius: 14px !important;
    }

    .rpu-card,
    .rpu-progress-card,
    .rpu-bonus-challenge,
    .rpu-momentum-card,
    .rpu-reward-banner,
    .rpu-smart-action {
        padding: 16px !important;
        border-radius: 12px !important;
    }

    .rpu-hero-title {
        font-size: 20px !important;
    }

    .rpu-stat {
        padding: 12px 6px !important;
    }

    .rpu-stat-num {
        font-size: 22px !important;
    }

    .rpu-copy-inline-btn {
        padding: 10px 12px !important;
    }

    .rpu-copy-btn-text {
        display: none;
    }

    .rpu-share-actions {
        justify-content: center;
    }
}

/* ================================================================
   WEEKLY CHALLENGE — 3-State System
================================================================ */

/* Per-state card backgrounds */
.rpu-wc-state-inprogress {
    border-color: rgba(124, 58, 237, .25) !important;
    background: linear-gradient(145deg, #faf5ff, #fff) !important;
}

.rpu-wc-state-completed {
    border-color: rgba(245, 158, 11, .5) !important;
    background: linear-gradient(145deg, #fffbeb, #fef3c7) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15), 0 4px 16px rgba(245, 158, 11, .12) !important;
    animation: wcCompletePulse 2.5s infinite;
}

.rpu-wc-state-claimed {
    border-color: rgba(16, 185, 129, .35) !important;
    background: linear-gradient(145deg, #f0fdf4, #ecfdf5) !important;
}

@keyframes wcCompletePulse {

    0%,
    100% {
        box-shadow: 0 0 0 3px rgba(245, 158, 11, .15), 0 4px 16px rgba(245, 158, 11, .12) !important;
    }

    50% {
        box-shadow: 0 0 0 6px rgba(245, 158, 11, .25), 0 8px 24px rgba(245, 158, 11, .2) !important;
    }
}

/* ── State 2: Complete Title ───────────────────────────── */
.rpu-wc-complete-title {
    font-size: 16px;
    font-weight: 800;
    color: #92400e;
    letter-spacing: -.2px;
    margin: 4px 0 6px;
    text-align: center;
}

/* ── Claim Button ──────────────────────────────────────── */
.rpu-wc-claim-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1c1917;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 11px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .2px;
    margin-top: 6px;
    box-shadow: 0 4px 16px rgba(245, 158, 11, .45);
    position: relative;
    overflow: hidden;
    transition: all .2s cubic-bezier(.25, .8, .25, 1);
}

.rpu-wc-claim-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, .55);
}

.rpu-wc-claim-btn:active:not(:disabled) {
    transform: translateY(0);
}

.rpu-wc-claim-btn:disabled {
    opacity: .65;
    cursor: not-allowed;
}

/* ── Claim Result ──────────────────────────────────────── */
.rpu-wc-claim-result {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    min-height: 20px;
    text-align: center;
}

.rpu-wc-claim-result.rpu-wc-claim-ok {
    color: #10b981;
    animation: wcClaimOkAnim .4s ease;
}

@keyframes wcClaimOkAnim {
    0% {
        transform: scale(.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ── State 3: Claimed Badge ────────────────────────────── */
.rpu-wc-claimed-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #dcfce7;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
    margin: 4px 0 6px;
}

/* ── State 1: Progress Count ───────────────────────────── */
.rpu-wc-progress-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--rp-text);
    display: flex;
    align-items: baseline;
    gap: 4px;
    justify-content: center;
    margin: 4px 0;
}

.rpu-wc-progress-count strong {
    font-size: 28px;
    color: var(--rp-primary);
    font-weight: 900;
}

.rpu-wc-sep {
    color: var(--rp-muted);
    font-weight: 400;
}

.rpu-wc-unit {
    font-size: 13px;
    color: var(--rp-muted);
    font-weight: 500;
}

.rpu-wc-inprogress-msg {
    font-size: 12px !important;
    margin-top: 4px !important;
}