/* ========== REFERRAL PAGE ========== */
.referral-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero */
.referral-hero {
    text-align: center;
    padding: 24px 0 16px;
}
.hero-icon { font-size: 56px; margin-bottom: 12px; }
.referral-title { font-size: 24px; font-weight: 700; color: #111; margin-bottom: 8px; }
.referral-subtitle { font-size: 14px; color: #666; line-height: 1.5; }

/* Reward Info */
.reward-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.reward-info-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
}
.reward-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.reward-info-icon { font-size: 24px; }
.reward-info-value { font-size: 22px; font-weight: 700; color: #111; }
.reward-info-label { font-size: 11px; color: #888; text-align: center; }
.reward-info-divider {
    width: 1px;
    height: 50px;
    background: #e5e7eb;
}

/* Share Card */
.share-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.share-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 4px; }
.share-subtitle { font-size: 13px; color: #666; margin-bottom: 16px; line-height: 1.5; }

/* Referral Code Box */
.referral-code-box, .share-link-box {
    margin-bottom: 16px;
}
.code-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.code-display, .link-display {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 8px;
}
.code-text {
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #111;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}
.link-text {
    flex: 1;
    font-size: 13px;
    color: #FE2C55;
    word-break: break-all;
    font-weight: 500;
}
.copy-code-btn, .copy-link-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #FE2C55;
}
.copy-code-btn:hover, .copy-link-btn:hover {
    background: rgba(254,44,85,0.1);
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
}
.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.share-btn:hover { transform: translateY(-2px); }
.share-whatsapp { background: #25D366; }
.share-whatsapp:hover { box-shadow: 0 4px 12px rgba(37,211,102,0.4); }
.share-telegram { background: #0088cc; }
.share-telegram:hover { box-shadow: 0 4px 12px rgba(0,136,204,0.4); }

/* How it works */
.how-it-works-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.how-title { font-size: 18px; font-weight: 700; color: #111; margin-bottom: 16px; }
.how-steps { display: flex; flex-direction: column; gap: 16px; }
.how-step {
    display: flex;
    align-items: center;
    gap: 14px;
}
.how-step-number {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FE2C55, #ff6b81);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 700;
    flex-shrink: 0;
}
.how-step-text { font-size: 14px; color: #333; line-height: 1.4; }

/* Copied Popup */
.copied-popup {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    background: rgba(0,0,0,0.85);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}
.copied-popup.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
@media (max-width: 480px) {
    .referral-content { padding: 12px; }
    .referral-title { font-size: 20px; }
    .reward-info-value { font-size: 18px; }
    .code-text { font-size: 16px; }
    .share-btn { font-size: 13px; padding: 10px; }
}
