/* ════════════════════════════════════════════
   رشد و بازاریابی ارشیا — باشگاه مشتریان + پنل بازاریابی
   برند: بنفش #352070 + طلایی #EEBB66
   ════════════════════════════════════════════ */
.arshia-gr-wrap{
    font-family:'Vazirmatn',Tahoma,sans-serif;
    max-width:1120px;margin:0 auto;padding:8px 0 48px;
    direction:rtl;
}

/* ─── هدر ─── */
.arshia-gr-head{
    background:linear-gradient(135deg,#352070 0%,#1d1535 100%);
    border-radius:20px;padding:30px 32px;color:#fff;
    display:flex;align-items:center;gap:22px;flex-wrap:wrap;
    position:relative;overflow:hidden;margin-bottom:26px;
}
.arshia-gr-head::before{
    content:"";position:absolute;width:320px;height:320px;border-radius:50%;
    background:radial-gradient(circle,rgba(238,187,102,.16),transparent 65%);
    top:-150px;left:-60px;pointer-events:none;
}
.arshia-gr-head::after{
    content:"";position:absolute;width:200px;height:200px;border-radius:50%;
    background:radial-gradient(circle,rgba(238,187,102,.09),transparent 70%);
    bottom:-90px;right:-40px;pointer-events:none;
}
.arshia-gr-head-ico{
    width:58px;height:58px;border-radius:18px;flex-shrink:0;
    background:rgba(255,255,255,.12);display:grid;place-items:center;
    border:1px solid rgba(238,187,102,.4);
}
.arshia-gr-head-ico svg{
    width:32px;height:32px;fill:none;stroke:#EEBB66;
    stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.arshia-gr-head h1{
    margin:0 0 6px;font-size:23px;font-weight:800;color:#fff;
    letter-spacing:-.3px;position:relative;
}
.arshia-gr-head p{
    margin:0;font-size:13.5px;line-height:1.9;color:rgba(255,255,255,.8);
    max-width:600px;position:relative;
}
.arshia-gr-tier-badge{
    margin-right:auto;flex-shrink:0;text-align:center;
    background:rgba(255,255,255,.1);border:1px solid rgba(238,187,102,.45);
    border-radius:16px;padding:12px 20px;position:relative;
}
.arshia-gr-tier-badge span{
    display:block;font-size:11.5px;color:rgba(255,255,255,.72);margin-bottom:3px;
}
.arshia-gr-tier-badge strong{
    font-size:18px;font-weight:800;color:#EEBB66;
}
.arshia-gr-tier-badge.tier-gold strong{color:#EEBB66;}
.arshia-gr-tier-badge.tier-silver strong{color:#dcd7ea;}
.arshia-gr-tier-badge.tier-bronze strong{color:#e8b98a;}

/* ─── کارت‌های آمار ─── */
.arshia-gr-cards{
    display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
    gap:16px;margin-bottom:26px;
}
.arshia-gr-card{
    position:relative;background:#fff;border:1px solid #e8e5f2;
    border-radius:18px;padding:22px 22px 18px;
    box-shadow:0 12px 28px -20px rgba(53,32,112,.35);
    transition:transform .18s ease,box-shadow .18s ease;
}
.arshia-gr-card:hover{
    transform:translateY(-3px);
    box-shadow:0 18px 36px -20px rgba(53,32,112,.45);
}
.arshia-gr-card.highlight{
    background:linear-gradient(160deg,#faf6ff 0%,#fff 70%);
    border-color:#cfc6ec;
}
.arshia-gr-card-ico{
    width:42px;height:42px;border-radius:13px;margin-bottom:12px;
    background:#f2eefa;display:grid;place-items:center;
}
.arshia-gr-card-ico svg{
    width:22px;height:22px;fill:none;stroke:#352070;
    stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;
}
.arshia-gr-card.highlight .arshia-gr-card-ico{background:#fdf3e0;}
.arshia-gr-card.highlight .arshia-gr-card-ico svg{stroke:#b8860b;}
.arshia-gr-card-label{
    display:block;font-size:12.5px;color:#7c7890;margin-bottom:5px;
}
.arshia-gr-card-value{
    display:block;font-size:26px;font-weight:800;color:#2b2840;
    letter-spacing:-.5px;line-height:1.2;
}
.arshia-gr-card small{
    display:block;margin-top:7px;font-size:11.5px;color:#9a96ad;line-height:1.6;
}

/* ─── نوار پیشرفت سطح ─── */
.arshia-gr-progress-wrap{
    background:#fff;border:1px solid #e8e5f2;border-radius:18px;
    padding:20px 24px;margin-bottom:26px;
}
.arshia-gr-progress-head{
    display:flex;justify-content:space-between;align-items:center;
    margin-bottom:10px;font-size:13.5px;color:#444;
}
.arshia-gr-progress-head strong{color:#352070;font-size:15px;}
.arshia-gr-progress{
    height:12px;background:#f0edf7;border-radius:20px;overflow:hidden;
}
.arshia-gr-progress-bar{
    height:100%;border-radius:20px;
    background:linear-gradient(90deg,#352070,#EEBB66);
    transition:width .5s ease;
}

/* ─── جعبه لینک معرفی ─── */
.arshia-gr-refbox{
    background:linear-gradient(160deg,#faf6ff,#fff);
    border:1px solid #cfc6ec;border-radius:18px;padding:22px 24px;
    margin-bottom:26px;
}
.arshia-gr-refbox-label{
    display:block;font-size:13px;font-weight:700;color:#352070;margin-bottom:10px;
}
.arshia-gr-refbox-row{
    display:flex;gap:10px;flex-wrap:wrap;
}
.arshia-gr-refbox-row input{
    flex:1;min-width:220px;
    font-family:'Vazirmatn',Tahoma,monospace;
    font-size:13.5px;font-weight:600;color:#352070;
    background:#fff;border:2px solid #e8e5f2;border-radius:12px;
    padding:12px 16px;direction:ltr;
}
.arshia-gr-refbox-row input:focus{outline:none;border-color:#352070;}
.arshia-gr-refbox small{
    display:block;margin-top:10px;font-size:11.5px;color:#9a96ad;line-height:1.8;
}

/* ─── بخش جدول ─── */
.arshia-gr-section{
    background:#fff;border:1px solid #e8e5f2;border-radius:18px;
    padding:24px 26px;box-shadow:0 12px 28px -22px rgba(53,32,112,.3);
}
.arshia-gr-section h2{
    margin:0 0 16px;font-size:17px;font-weight:800;color:#352070;
    padding-bottom:12px;border-bottom:2px solid #f2eefa;
}
.arshia-gr-empty{
    text-align:center;padding:36px 16px;color:#9a96ad;font-size:14px;
    background:#faf9fd;border:1px dashed #d8d2ec;border-radius:14px;margin:0;
}
.arshia-gr-table-wrap{overflow-x:auto;}
.arshia-gr-table{
    width:100%;border-collapse:collapse;font-size:13px;
}
.arshia-gr-table thead th{
    text-align:right;padding:10px 12px;font-size:12px;font-weight:700;
    color:#7c7890;border-bottom:2px solid #f2eefa;white-space:nowrap;
}
.arshia-gr-table tbody td{
    padding:11px 12px;border-bottom:1px solid #f4f2f9;color:#444;
}
.arshia-gr-table tbody tr:last-child td{border-bottom:none;}
.arshia-gr-table tbody tr:hover{background:#faf9fd;}
.arshia-gr-table .ltr{direction:ltr;text-align:right;font-size:12px;}
.arshia-gr-table .pos{color:#352070;font-weight:800;}
.arshia-gr-table .neg{color:#c0392b;font-weight:800;}

/* ─── پیل وضعیت ─── */
.arshia-gr-pill{
    display:inline-block;font-size:11.5px;font-weight:700;
    padding:3px 12px;border-radius:20px;white-space:nowrap;
}
.arshia-gr-pill.pending{background:#fdf3e0;color:#8a6410;}
.arshia-gr-pill.paid{background:#e3f4e8;color:#166534;}

/* ─── اعلان ─── */
.arshia-gr-notice{
    display:flex;gap:14px;align-items:flex-start;
    background:#f6f3fc;border:1px solid #cfc6ec;border-radius:16px;
    padding:20px 22px;margin-bottom:24px;
}
.arshia-gr-notice svg{
    width:24px;height:24px;flex-shrink:0;fill:none;stroke:#352070;
    stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;margin-top:2px;
}
.arshia-gr-notice strong{display:block;font-size:14.5px;color:#2b2840;margin-bottom:5px;}
.arshia-gr-notice p{margin:0 0 12px;font-size:13px;color:#5c5872;line-height:1.9;}

/* ─── دکمه ─── */
.arshia-gr-btn{
    display:inline-flex;align-items:center;justify-content:center;gap:7px;
    border:none;border-radius:12px;cursor:pointer;
    background:linear-gradient(135deg,#EEBB66,#d9a23f);
    color:#2b2040;font-size:13.5px;font-weight:800;
    font-family:'Vazirmatn',Tahoma,sans-serif;
    padding:11px 22px;text-decoration:none;
    transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;
    box-shadow:0 8px 18px -8px rgba(217,162,63,.7);
}
.arshia-gr-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px -8px rgba(217,162,63,.85);
}
.arshia-gr-btn:active{transform:translateY(0);}
.arshia-gr-btn:disabled{opacity:.5;cursor:default;transform:none;box-shadow:none;}

/* ─── صفحه ورود لازم ─── */
.arshia-gr-login-required{
    font-family:'Vazirmatn',Tahoma,sans-serif;direction:rtl;
    text-align:center;padding:64px 20px;
    background:#fff;border:1px dashed #d8d2ec;border-radius:20px;
    margin:24px auto;max-width:560px;
}
.arshia-gr-login-required p{
    font-size:16px;color:#5c5872;margin:0 0 18px;
}

/* ─── واکنشگرا ─── */
@media(max-width:760px){
    .arshia-gr-head{padding:22px 18px;gap:14px;}
    .arshia-gr-head h1{font-size:19px;}
    .arshia-gr-head p{font-size:12.5px;}
    .arshia-gr-tier-badge{margin-right:0;padding:9px 15px;}
    .arshia-gr-tier-badge strong{font-size:15px;}
    .arshia-gr-cards{grid-template-columns:1fr 1fr;gap:12px;}
    .arshia-gr-card{padding:16px 16px 14px;}
    .arshia-gr-card-value{font-size:21px;}
    .arshia-gr-section{padding:18px 14px;}
    .arshia-gr-table thead{display:none;}
    .arshia-gr-table tbody td{
        display:flex;justify-content:space-between;gap:10px;
        border-bottom:1px solid #f0edf7;padding:8px 4px;
    }
    .arshia-gr-table tbody tr{border-bottom:1px solid #eee;}
}

/* ════════════════════════════════════════════
   گیمیفیکیشن — مأموریت، نشان، جایزه، لیدربورد
   ════════════════════════════════════════════ */
.ag-missions{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
    gap:14px;
}
.ag-mission{
    background:#fff;border:1px solid #eee;border-radius:14px;padding:16px 18px;
    transition:border-color .2s,box-shadow .2s;
}
.ag-mission.is-claimed{opacity:.72;border-style:dashed}
.ag-mission-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.ag-mission-head strong{font-size:14.5px;color:#1a1a1a}
.ag-mission-desc{margin:8px 0 0;font-size:12.5px;color:#777;line-height:1.9}
.ag-mission-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:8px}
.ag-mission-foot small{color:#888}
.ag-pill{
    display:inline-block;background:#f0ebfa;color:#352070;border-radius:20px;
    padding:3px 12px;font-size:11.5px;font-weight:700;white-space:nowrap;
}
.ag-pill.is-done{background:#d1fae5;color:#065f46}
.ag-progress{
    height:8px;background:#eee;border-radius:20px;overflow:hidden;margin-top:12px;
}
.ag-progress-bar{
    height:100%;background:linear-gradient(90deg,#352070,#5a3d9e);
    border-radius:20px;transition:width .4s ease;
}

/* ─── نشان‌ها ─── */
.ag-badges{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px;
}
.ag-badge{
    background:#fff;border:1px solid #eee;border-radius:14px;padding:14px 8px;
    text-align:center;transition:transform .2s,box-shadow .2s;
}
.ag-badge small{display:block;margin-top:8px;font-size:11.5px;color:#555;line-height:1.6}
.ag-badge.is-earned{border-color:#d6ccf5}
.ag-badge.is-earned:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(53,32,112,.12)}
.ag-badge.is-locked{filter:grayscale(1);opacity:.55}
.ag-badge img{width:56px;height:56px;border-radius:50%;object-fit:cover}
.ag-badge-ico{font-size:30px;line-height:56px}

/* ─── فروشگاه جایزه ─── */
.ag-rewards{
    display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;
}
.ag-reward{
    background:#fff;border:1px solid #eee;border-radius:16px;padding:16px;
    display:flex;flex-direction:column;gap:8px;text-align:center;
}
.ag-reward-img{
    height:110px;border-radius:12px;background:#f5f3fa;display:grid;place-items:center;
    font-size:40px;overflow:hidden;
}
.ag-reward-img img{width:100%;height:100%;object-fit:cover}
.ag-reward strong{font-size:14.5px;color:#1a1a1a}
.ag-reward-cost{font-size:16px;font-weight:800;color:#352070}
.ag-stock{color:#b45309;font-size:11.5px}
.ag-reward .arshia-gr-btn{margin-top:auto;width:100%;text-align:center}
.ag-reward .arshia-gr-btn:disabled{opacity:.55;cursor:not-allowed}

/* ─── لیدربورد ─── */
.ag-lb tr.is-me{background:#f0ebfa !important}
.ag-lb tr.is-me td{font-weight:700}
.ag-linkbtn{
    background:none;border:none;color:#352070;cursor:pointer;
    font-family:inherit;font-size:12.5px;text-decoration:underline;padding:0;
}

/* ─── فیلتر و صفحه‌بندی تاریخچه ─── */
.ag-hist-filter{margin-bottom:14px}
.ag-hist-filter select{
    padding:8px 12px;border:1px solid #ddd;border-radius:10px;font-family:inherit;
}
.ag-pager{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px}
.ag-page{
    min-width:34px;height:34px;display:grid;place-items:center;border-radius:10px;
    background:#fff;border:1px solid #e5e7eb;color:#352070;text-decoration:none;
    font-size:13px;font-weight:700;
}
.ag-page.is-current{background:#352070;color:#fff;border-color:#352070}

/* ─── پیام AJAX ─── */
.ag-msg{
    position:sticky;bottom:12px;margin-top:18px;padding:14px 18px;border-radius:12px;
    font-size:13.5px;font-weight:700;box-shadow:0 8px 24px rgba(0,0,0,.12);
}
.ag-msg.is-ok{background:#059669;color:#fff}
.ag-msg.is-err{background:#dc2626;color:#fff}

@media(max-width:640px){
    .ag-missions,.ag-rewards{grid-template-columns:1fr}
    .ag-badges{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
}
