/* ==========================================================
   صفحه دعوت دوستان
   ========================================================== */

.inv-screen {
    overflow-y: auto;
    background: var(--color-bg-dark);
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* هدر */
.inv-header {
    background: linear-gradient(160deg, #0f0722 0%, #2d1260 45%, #0a1f3d 100%);
    padding: 20px 20px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* دایره‌های درخشان پس‌زمینه */
.inv-header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(139,92,246,0.35) 0%, transparent 70%);
    pointer-events: none;
}

.inv-header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.inv-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.inv-header-label {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
}

/* آیکون هدیه با انیمیشن */
.inv-hero-emoji {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    display: block;
    animation: inv-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(251,191,36,0.5));
}

@keyframes inv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.inv-hero-title {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(90deg, #e879f9, #818cf8, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.inv-hero-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.9;
    margin: 0 0 24px;
    position: relative;
    z-index: 1;
}

/* کارت آمار داخل هدر */
.inv-hero-stats {
    display: flex;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.inv-hero-stat {
    flex: 1;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.inv-hero-stat + .inv-hero-stat {
    border-right: 1px solid rgba(255,255,255,0.08);
}

.inv-hero-stat-icon { font-size: 20px; }

.inv-hero-stat-val {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

.inv-hero-stat-val.gold { color: #fbbf24; font-size: 18px; }

.inv-hero-stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
}

/* بدنه */
.inv-body {
    padding: 16px 16px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* کارت */
.inv-card {
    background: var(--color-bg-light);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 20px;
    padding: 16px;
}

.inv-card-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin: 0 0 10px;
    letter-spacing: 0.5px;
}

/* پیشرفت */
.inv-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin-bottom: 16px;
}

.inv-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.inv-stat-val {
    font-size: 26px;
    font-weight: 900;
    color: #fff;
}

.inv-gold { color: #fbbf24; }
.inv-green { color: #34d399; }

.inv-stat-lbl {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    text-align: center;
}

.inv-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.08);
}

.inv-bar-track {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 6px;
}

.inv-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7c3aed, #fbbf24);
    border-radius: 999px;
    transition: width 0.7s ease;
}

.inv-bar-label {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    margin: 0;
}

/* کد دعوت */
.inv-code-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255,255,255,0.04);
    border: 1.5px dashed rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 14px;
}

.inv-code-val {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 8px;
    color: #fbbf24;
    font-family: monospace;
    direction: ltr;
}

.inv-copy-code-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.15s;
}

.inv-copy-code-btn:hover { background: rgba(255,255,255,0.15); }

.inv-copied {
    text-align: center;
    font-size: 12px;
    color: #34d399;
    margin: 8px 0 0;
}

/* لینک */
.inv-link-box {
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    word-break: break-all;
}

.inv-link-text {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    direction: ltr;
    display: block;
}

.inv-share-row {
    display: flex;
    gap: 8px;
}

.inv-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 6px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.1s;
}

.inv-btn:hover { opacity: 0.82; transform: translateY(-1px); }

.inv-btn-copy { background: rgba(255,255,255,0.1); color: #fff; }
.inv-btn-wa   { background: #25d366; color: #fff; }
.inv-btn-tg   { background: #229ed9; color: #fff; }

/* راهنما */
.inv-howto-title {
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
}

.inv-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}

.inv-step:last-child { margin-bottom: 0; }

.inv-step strong { color: #fbbf24; }

.inv-step-num {
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* پیام لاگین */
.inv-login-note {
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.inv-login-note a { color: #8b5cf6; font-weight: 700; }

/* دکمه بازگشت (مشترک با داشبورد) */
.db-back {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.15s;
    flex-shrink: 0;
}
.db-back:hover { background: rgba(255,255,255,0.18); }

.hidden { display: none !important; }
