/**
 * Gamification CSS - Shared Component
 * Includes styles for both Gamification and Daily Missions
 * Used by gamification-component.php and dashboardv2.php
 */

/* ============================================
   GAMIFICATION WRAPPER
   ============================================ */
.gamification-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    position: relative;
}

/* ============================================
   GAMIFICATION BANNER
   ============================================ */
.arya-gamification-banner {
    position: relative;
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
    background: radial-gradient(circle at 10% 20%, #8e44ad 0%, #6c3483 90%);
    box-shadow: 0 8px 25px rgba(108, 52, 131, 0.4);
    color: #fff;
    direction: rtl;
    animation: slideInDown 0.6s ease-out;
}

.arya-gamification-banner-content {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    gap: 15px;
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.arya-gamification-banner-icon-wrapper { 
    flex-shrink: 0; 
}

.arya-gamification-banner-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    transform: rotate(-5deg);
}

.arya-gamification-banner-icon svg { 
    width: 24px; 
    height: 24px; 
    color: #fff; 
}

.arya-gamification-banner-info { 
    flex: 1; 
    min-width: 200px; 
}

.arya-gamification-banner-title { 
    font-size: 16px; 
    font-weight: 800; 
    margin: 0 0 4px 0; 
    color: #fff; 
    line-height: 1.3; 
}

.arya-gamification-banner-title .highlight { 
    color: #f39c12; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.2); 
    font-size: 1.1em; 
    vertical-align: middle; 
}

.arya-gamification-banner-description { 
    font-size: 12px; 
    margin: 0 0 10px 0; 
    opacity: 0.9; 
    font-weight: 300; 
}

.arya-gamification-banner-prize {
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-top: 8px; 
    padding: 0px 12px;
    background: rgba(243, 156, 18, 0.15); 
    border: 1px solid rgba(243, 156, 18, 0.3); 
    border-radius: 6px;
}

.arya-gamification-banner-prize .prize-icon { 
    font-size: 20px; 
    flex-shrink: 0; 
}

.arya-gamification-banner-prize .prize-info { 
    flex: 1; 
    display: flex; 
    gap: 10px; 
}

.arya-gamification-banner-prize .prize-title { 
    font-size: 12px; 
    font-weight: 700; 
    color: #f39c12; 
    margin-bottom: 2px; 
}

.arya-gamification-banner-prize .prize-amount { 
    font-size: 13px; 
    font-weight: 800; 
    color: #fff; 
    text-shadow: 0 1px 2px rgba(0,0,0,0.2); 
}

.arya-gamification-banner-stats-box {
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(243, 156, 18, 0.3); 
    padding: 8px 15px;
    border-radius: 8px; 
    text-align: center; 
    min-width: 140px; 
    position: relative; 
    backdrop-filter: blur(5px);
}

.stats-label { 
    font-size: 10px; 
    color: #f39c12; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    margin-bottom: 2px; 
}

.stats-value { 
    font-size: 16px; 
    font-weight: 800; 
    color: #fff; 
    text-shadow: 0 2px 4px rgba(0,0,0,0.3); 
}

.stats-value span { 
    font-size: 10px; 
    font-weight: 400; 
    opacity: 0.8; 
}

.stats-timer { 
    font-size: 10px; 
    opacity: 0.8; 
    margin-top: 4px; 
    font-family: monospace; 
}

.decoration-circle { 
    position: absolute; 
    border-radius: 50%; 
    background: rgba(255, 255, 255, 0.05); 
    z-index: 1; 
}

.circle-1 { 
    width: 150px; 
    height: 150px; 
    top: -50px; 
    right: -30px; 
}

.circle-2 { 
    width: 100px; 
    height: 100px; 
    bottom: -40px; 
    left: 20%; 
}

.decoration-sparkle { 
    position: absolute; 
    color: #f39c12; 
    font-size: 14px; 
    opacity: 0.6; 
    animation: sparkle 3s infinite ease-in-out; 
    z-index: 1; 
}

.sparkle-1 { 
    top: 15%; 
    right: 10%; 
    animation-delay: 0s; 
}

.sparkle-2 { 
    bottom: 20%; 
    left: 5%; 
    animation-delay: 1.5s; 
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
        text-shadow: 0 0 5px #f39c12; 
    }
}

@keyframes slideInDown {
    from { 
        opacity: 0; 
        transform: translateY(-20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ============================================
   WINNER BANNER
   ============================================ */
.winner-banner {
    background: linear-gradient(90deg, #f1c40f, #f39c12); 
    color: #fff; 
    padding: 15px;
    border-radius: 8px; 
    margin-bottom: 25px; 
    display: flex; 
    align-items: center; 
    gap: 15px;
    box-shadow: 0 4px 10px rgba(243, 156, 18, 0.3);
}

.trophy-icon { 
    font-size: 2em; 
}

.winner-info { 
    display: flex; 
    flex-direction: column; 
}

.winner-name { 
    font-weight: bold; 
    font-size: 1.2em; 
}

.prize-info { 
    font-size: 0.9em; 
    opacity: 0.9; 
}

/* ============================================
   TIMELINE
   ============================================ */
.gamification-timeline { 
    position: relative; 
    padding-right: 20px; 
    margin-bottom: 30px; 
}

.gamification-timeline::before {
    content: ''; 
    position: absolute; 
    top: 0; 
    bottom: 0; 
    right: 7px; 
    width: 2px; 
    background: #e0e0e0;
}

.timeline-item { 
    position: relative; 
    padding-right: 30px; 
    margin-bottom: 30px; 
}

.timeline-item:last-child { 
    margin-bottom: 0; 
}

.timeline-marker {
    position: absolute; 
    right: -20px; 
    top: 0; 
    width: 20px; 
    display: flex; 
    justify-content: center;
    background: #fff; 
    padding: 5px 0;
}

.marker-dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    background: #fff; 
    border: 3px solid #ccc; 
    z-index: 2; 
}

.timeline-item.completed .marker-dot { 
    border-color: #27ae60; 
    background: #27ae60; 
}

.timeline-item.completed .timeline-marker svg { 
    color: #27ae60; 
    background: #fff; 
    border-radius: 50%; 
}

.timeline-content {
    background: #f9f9f9; 
    padding: 15px; 
    border-radius: 8px; 
    border: 1px solid #eee; 
    transition: all 0.3s;
}

.timeline-item.completed .timeline-content { 
    background: #f0fdf4; 
    border-color: #dcfce7; 
}

.rule-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.rule-title { 
    margin: 0; 
    font-size: 1em; 
    color: #444; 
}

.rule-rewards-section { 
    display: flex; 
    flex-wrap: wrap; 
    align-items: center; 
    gap: 8px; 
}

.rule-reward {
    font-size: 0.85em; 
    background: #fff; 
    padding: 3px 8px; 
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); 
    color: #d35400;
}

.vip-reward-bonus { 
    border: 1px solid #f39c12; 
    background: #fffbf0 !important; 
    color: #d35400; 
}

.rule-progress-bar { 
    height: 8px; 
    background: #e0e0e0; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 8px; 
}

.progress-fill { 
    height: 100%; 
    background: #3498db; 
    transition: width 0.5s ease; 
}

.timeline-item.completed .progress-fill { 
    background: #27ae60; 
}

.rule-details { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.85em; 
    color: #666; 
    align-items: center; 
}

.success-text { 
    color: #27ae60; 
    font-weight: bold; 
}

.current-stat { 
    color: #999; 
    margin-right: 5px; 
}

.rule-link { 
    color: #3498db; 
    text-decoration: none; 
}

.rule-link:hover { 
    text-decoration: underline; 
}

.coupon-box {
    margin-top: 10px; 
    background: #fff; 
    padding: 8px; 
    border: 1px dashed #27ae60;
    border-radius: 4px; 
    color: #27ae60; 
    font-size: 0.9em; 
    text-align: center;
}

.coupon-box code { 
    background: #f0fdf4; 
    padding: 2px 6px; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 1.1em; 
}

.mission-instructions {
    margin-top: 12px; 
    background: #f8f9fa; 
    border: 1px solid #e9ecef; 
    border-radius: 6px; 
    padding: 12px; 
    font-size: 0.9em;
}

.mission-instructions strong { 
    display: block; 
    margin-bottom: 8px; 
    color: #495057; 
}

.instruction-item { 
    margin-bottom: 10px; 
    color: #6c757d; 
}

.instruction-item:last-child { 
    margin-bottom: 0; 
}

.mission-pages-list { 
    list-style: none; 
    padding: 0; 
    margin: 8px 0 0 0; 
}

.mission-pages-list li { 
    margin-bottom: 6px; 
    padding-right: 20px; 
    position: relative; 
}

.mission-pages-list li:before { 
    content: "→"; 
    position: absolute; 
    right: 0; 
    color: #6c757d; 
}

.mission-pages-list a { 
    color: #3498db; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
}

.mission-pages-list a:hover { 
    color: #2980b9; 
    text-decoration: underline; 
}

.grand-prize-card {
    background: #2c3e50; 
    color: #fff; 
    border-radius: 10px; 
    padding: 20px;
    display: flex; 
    align-items: center; 
    gap: 20px; 
    margin-top: 40px;
}

.grand-prize-card.unlocked { 
    background: linear-gradient(135deg, #8e44ad, #9b59b6); 
}

.gp-icon { 
    font-size: 3em; 
}

.gp-content h4 { 
    margin: 0 0 5px 0; 
    color: #fff; 
}

.gp-value { 
    font-size: 0.9em; 
    opacity: 0.8; 
    margin-bottom: 10px; 
}

.status-badge { 
    display: inline-block; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.85em; 
    background: rgba(255,255,255,0.2); 
}

.status-badge.success { 
    background: #fff; 
    color: #8e44ad; 
    font-weight: bold; 
}

/* ============================================
   CLAIM BUTTON
   ============================================ */
.reward-action-area { 
    margin-top: 15px; 
    text-align: center; 
}

.arya-gamification-claim-btn {
    background: linear-gradient(to right, #27ae60, #2ecc71);
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 25px;
    font-size: 14px; 
    font-weight: bold; 
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); 
    transition: transform 0.2s, box-shadow 0.2s;
    outline: none; 
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
}

.arya-gamification-claim-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4); 
}

.arya-gamification-claim-btn:active { 
    transform: translateY(0); 
}

.claimed-badge {
    color: #27ae60; 
    font-weight: bold; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px;
    background: #e8f8f5; 
    padding: 5px 10px; 
    border-radius: 15px; 
    font-size: 0.9em;
}

/* ============================================
   POPUP
   ============================================ */
.gamification-popup-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.7); 
    z-index: 99999; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(5px);
}

.gamification-popup-container {
    background: white; 
    width: 90%; 
    max-width: 400px; 
    border-radius: 20px;
    padding: 30px 20px; 
    text-align: center; 
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3); 
    animation: popupPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupPop {
    from { 
        transform: scale(0.8); 
        opacity: 0; 
    }
    to { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.gamification-popup-close {
    position: absolute; 
    top: 15px; 
    right: 15px; 
    background: none; 
    border: none;
    font-size: 24px; 
    cursor: pointer; 
    color: #aaa;
}

.popup-icon-wrapper {
    width: 80px; 
    height: 80px; 
    background: #fff8e1; 
    border-radius: 50%;
    margin: 0 auto 20px; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.2);
}

.popup-icon { 
    font-size: 40px; 
    animation: popupIconShake 1s ease-in-out infinite; 
}

@keyframes popupIconShake {
    0%, 100% { 
        transform: rotate(0deg); 
    }
    25% { 
        transform: rotate(-10deg); 
    }
    75% { 
        transform: rotate(10deg); 
    }
}

.popup-title { 
    font-size: 1.5em; 
    color: #2c3e50; 
    margin-bottom: 10px; 
}

.popup-message { 
    color: #7f8c8d; 
    margin-bottom: 20px; 
}

.gamification-popup-btn {
    background: #8e44ad; 
    color: white; 
    border: none; 
    padding: 12px 30px;
    border-radius: 10px; 
    font-size: 16px; 
    cursor: pointer; 
    width: 100%;
    transition: background 0.3s;
}

.gamification-popup-btn:hover { 
    background: #732d91; 
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-container {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    overflow: hidden; 
    border-radius: 20px;
}

.confetti {
    position: absolute; 
    width: 10px; 
    height: 10px; 
    background: #f00;
    animation: confettiFall 3s linear forwards;
}

@keyframes confettiFall {
    0% { 
        transform: translateY(-100%) rotate(0deg); 
        opacity: 1; 
    }
    100% { 
        transform: translateY(500px) rotate(720deg); 
        opacity: 0; 
    }
}

/* ============================================
   DAILY MISSIONS
   ============================================ */
.daily-missions-section { 
    margin-bottom: 30px; 
}

.section-title { 
    font-size: 1.1em; 
    margin-bottom: 15px; 
    color: #444; 
    border-right: 4px solid #8e44ad; 
    padding-right: 10px; 
}

.daily-missions-scroll {
    display: flex; 
    overflow-x: auto; 
    gap: 15px; 
    padding: 5px 5px 15px 5px;
    scrollbar-width: thin; 
    scrollbar-color: #8e44ad #f1f1f1;
}

.daily-missions-scroll::-webkit-scrollbar { 
    height: 6px; 
}

.daily-missions-scroll::-webkit-scrollbar-thumb { 
    background: #8e44ad; 
    border-radius: 3px; 
}

.dm-card {
    min-width: 220px; 
    width: 220px; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 10px;
    padding: 15px; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.05); 
    transition: transform 0.2s;
    display: flex; 
    flex-direction: column; 
    justify-content: space-between;
}

.dm-card:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

.dm-card.completed { 
    border-color: #27ae60; 
    background: #f0fdf4; 
}

.dm-card.locked { 
    opacity: 0.7; 
    filter: grayscale(1); 
}

.dm-card-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 10px; 
}

.dm-title { 
    font-weight: bold; 
    font-size: 0.95em; 
    color: #333; 
    line-height: 1.3; 
}

.dm-badge { 
    font-size: 0.75em; 
    background: #f39c12; 
    color: #fff; 
    padding: 2px 6px; 
    border-radius: 4px; 
    white-space: nowrap; 
    margin-right: 5px; 
}

.dm-card.completed .dm-badge { 
    background: #27ae60; 
}

.dm-progress-wrapper { 
    margin-bottom: 15px; 
}

.dm-progress-bar { 
    height: 6px; 
    background: #eee; 
    border-radius: 3px; 
    overflow: hidden; 
    margin-bottom: 5px; 
}

.dm-progress-fill { 
    height: 100%; 
    background: #3498db; 
    border-radius: 3px; 
    transition: width 0.3s; 
}

.dm-progress-text { 
    font-size: 0.8em; 
    color: #777; 
    display: block; 
    text-align: left; 
}

.dm-actions { 
    text-align: center; 
}

.dm-claim-btn {
    background: linear-gradient(to right, #27ae60, #2ecc71); 
    color: #fff; 
    border: none;
    padding: 8px 15px; 
    border-radius: 20px; 
    font-size: 0.9em; 
    cursor: pointer; 
    width: 100%;
}

.dm-details-btn {
    background: #fff; 
    border: 1px solid #3498db; 
    color: #3498db;
    padding: 8px 15px; 
    border-radius: 20px; 
    font-size: 0.9em; 
    cursor: pointer; 
    width: 100%;
}

.dm-details-btn:hover { 
    background: #3498db; 
    color: #fff; 
}

/* DM Popup Steps */
.dm-steps-timeline { 
    margin-top: 20px; 
    max-height: 400px; 
    overflow-y: auto; 
    padding: 0 10px; 
    text-align: right; 
}

/* DM Popup Instructions */
.dm-popup-instructions {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    font-size: 0.9em;
    text-align: right;
}

.dm-popup-instructions strong {
    display: block;
    margin-bottom: 10px;
    color: #495057;
    font-size: 1em;
}

.dm-popup-instructions .dm-instruction-item {
    margin-bottom: 10px;
    color: #6c757d;
    line-height: 1.6;
}

.dm-popup-instructions .dm-instruction-item:last-child {
    margin-bottom: 0;
}

.dm-popup-pages-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 0;
}

.dm-popup-pages-list li {
    margin-bottom: 8px;
    padding-right: 20px;
    position: relative;
}

.dm-popup-pages-list li:before {
    content: "→";
    position: absolute;
    right: 0;
    color: #6c757d;
}

.dm-popup-pages-list a {
    color: #3498db;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.dm-popup-pages-list a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.dm-step-row { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 15px; 
    position: relative; 
}

.dm-step-row::before {
    content: ''; 
    position: absolute; 
    top: 25px; 
    right: 12px; 
    bottom: -20px; 
    width: 2px; 
    background: #eee;
}

.dm-step-row:last-child::before { 
    display: none; 
}

.dm-step-idx {
    width: 26px; 
    height: 26px; 
    border-radius: 50%; 
    background: #eee; 
    color: #777;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 0.8em; 
    z-index: 1; 
    flex-shrink: 0;
}

.dm-step-row.active .dm-step-idx { 
    background: #3498db; 
    color: #fff; 
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2); 
}

.dm-step-row.completed .dm-step-idx { 
    background: #27ae60; 
    color: #fff; 
}

.dm-step-content { 
    flex: 1; 
    background: #f9f9f9; 
    padding: 10px; 
    border-radius: 8px; 
    font-size: 0.9em; 
}

.dm-step-row.active .dm-step-content { 
    border: 1px solid #3498db; 
    background: #fff; 
}

.dm-step-reward { 
    font-size: 0.85em; 
    color: #d35400; 
    margin-top: 5px; 
    display: block; 
}

/* Countdown Timer */
.dm-countdown-wrapper {
    margin: 10px 0;
    padding: 8px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    font-size: 0.85em;
    text-align: center;
}

.dm-countdown-label {
    display: block;
    margin-bottom: 3px;
    color: #856404;
    font-weight: bold;
}

.dm-countdown-timer {
    display: block;
    color: #d35400;
    font-family: monospace;
    font-size: 1.1em;
    font-weight: bold;
}

/* Referral: ردیف لینک + دو دکمه کنار هم (کپی | اشتراک) */
.referral-link-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.referral-link-row .referral-link-url {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: ltr;
    text-align: left;
    font-size: 0.9em;
    margin-left: auto;
    width: 100%;
    display: block;
    text-align: right;
}

.referral-link-row .referral-copy-btn,
.referral-link-row .referral-share-btn,
.referral-btn-icon.referral-copy-btn,
.referral-btn-icon.referral-share-btn {
    flex-shrink: 0;
    padding: 6px 10px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.15s;
    min-width: 36px;
}

.referral-link-row .referral-copy-btn:hover,
.referral-link-row .referral-share-btn:hover,
.referral-btn-icon.referral-copy-btn:hover,
.referral-btn-icon.referral-share-btn:hover {
    background: #2980b9;
}

/* بعد از کپی: سبز + آیکن تیک */
.referral-copy-btn.copied,
.referral-btn-icon.referral-copy-btn.copied,
.arya-referral-copy-btn.copied {
    background: #27ae60 !important;
    color: #fff;
}

.referral-code-section {
    background: #f8f9fa !important;
    border: 1px solid #e9ecef !important;
}

.referral-link-container {
    margin-top: 10px;
}

.referral-link-box {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
}

.referral-link-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9em;
    background: #fff;
    color: #333;
    direction: ltr;
    text-align: left;
    font-family: monospace;
}

.referral-link-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.referral-copy-btn:not(.referral-btn-icon),
.referral-share-btn:not(.referral-btn-icon) {
    padding: 8px 12px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    min-width: 40px;
}

.referral-copy-btn:hover,
.referral-share-btn:hover {
    background: #2980b9;
}

.referral-copy-btn:active,
.referral-share-btn:active {
    transform: translateY(0);
}

.referral-code-display {
    padding: 6px 10px;
    background: #fff;
    border: 1px dashed #3498db;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 8px;
}

.referral-help-text {
    margin-top: 10px;
    padding: 8px;
    background: #e3f2fd;
    border-radius: 6px;
    font-size: 0.85em;
    color: #1976d2;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .arya-gamification-banner-content {
        padding: 15px;
        justify-content: space-between;
    }
    .arya-gamification-banner-icon-wrapper {
        display: none;
    }
    .arya-gamification-banner-stats-box {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 5px;
    }
    .arya-gamification-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .arya-gamification-banner-info {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .rule-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 5px; 
    }
    .rule-reward { 
        align-self: flex-start; 
    }
    .grand-prize-card { 
        flex-direction: column; 
        text-align: center; 
    }
}
