/* ============================================
   RB VIP Components  ·  Light + Dark
   ============================================ */

:root {
    --rb-vip-bg:            #eaf4fb;
    --rb-vip-bg-soft:       #f5f9fc;
    --rb-vip-text:          #2c3e50;
    --rb-vip-text-muted:    #5b6b7c;
    --rb-vip-border:        #cfe2f2;
    --rb-vip-accent:        #0395d7;
    --rb-vip-accent-hover:  #0277b5;
    --rb-vip-primary:       #00a8f3;
    --rb-vip-primary-hover: #0395d7;
    --rb-vip-success:       #22c55e;
    --rb-vip-success-hover: #16a34a;
    --rb-vip-green:         #16a34a;
    --rb-vip-warning-bg:    #fff7e0;
    --rb-vip-warning-text:  #8a6d3b;
    --rb-vip-warning-bd:    #f0d78c;
    --rb-vip-danger-bg:     #fdecee;
    --rb-vip-danger-text:   #a32533;
    --rb-vip-danger-bd:     #f2c2c8;
    --rb-vip-radius:        10px;
    --rb-vip-radius-sm:     6px;
    --rb-vip-shadow:        0 2px 8px rgba(3,149,215,.08);
    --rb-vip-shadow-hover:  0 4px 14px rgba(3,149,215,.16);
    --rb-vip-transition:    all .2s ease;
}

.dark {
    --rb-vip-bg:            #26252e;
    --rb-vip-bg-soft:       #1f1e26;
    --rb-vip-text:          #d8d8de;
    --rb-vip-text-muted:    #9aa0a6;
    --rb-vip-border:        #33343f;
    --rb-vip-accent:        #4fc3f7;
    --rb-vip-accent-hover:  #81d4fa;
    --rb-vip-primary:       #0395d7;
    --rb-vip-primary-hover: #00a8f3;
    --rb-vip-success:       #34d399;
    --rb-vip-success-hover: #10b981;
    --rb-vip-green:         #4ade80;
    --rb-vip-warning-bg:    #3a2f10;
    --rb-vip-warning-text:  #ffd966;
    --rb-vip-warning-bd:    #5a4a1a;
    --rb-vip-danger-bg:     #3a1a1d;
    --rb-vip-danger-text:   #fca5a5;
    --rb-vip-danger-bd:     #5a2a2e;
    --rb-vip-shadow:        0 2px 8px rgba(0,0,0,.35);
    --rb-vip-shadow-hover:  0 4px 14px rgba(0,0,0,.5);
}

/* ---------- Layout ---------- */
.rb-vip { font-size: 15px; line-height: 1.8; color: var(--rb-vip-text); }
.rb-vip.mt-50 { margin-top: 50px; }
.rb-vip.mt-20 { margin-top: 20px; }
.rb-vip.mb-10 { margin-bottom: 10px; }
.rb-vip.mb-15 { margin-bottom: 15px; }

/* ---------- Card ---------- */
.rb-vip__card {
    background: var(--rb-vip-bg);
    color: var(--rb-vip-text);
    padding: 16px;
    margin: 10px 0;
    border-radius: var(--rb-vip-radius);
    border: 1px solid var(--rb-vip-border);
    box-shadow: var(--rb-vip-shadow);
    line-height: 2;
    transition: var(--rb-vip-transition);
}
.rb-vip__card:hover { box-shadow: var(--rb-vip-shadow-hover); }

/* ---------- Head ---------- */
.rb-vip__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--rb-vip-bg) 0%, var(--rb-vip-bg-soft) 100%);
    border: 1px solid var(--rb-vip-border);
    border-right: 4px solid var(--rb-vip-accent);
    border-radius: var(--rb-vip-radius);
    box-shadow: var(--rb-vip-shadow);
    transition: var(--rb-vip-transition);
}

.rb-vip__head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--rb-vip-accent);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(3, 149, 215, .35);
	color: #ffffff;
}

.rb-vip__head-icon svg {
    width: 24px;
    height: 24px;
    display: block;
    color: inherit;
}

.rb-vip__head-icon .smi {
    color: #fff;
    font-size: 20px;
    line-height: 1;
}

.rb-vip__head-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.rb-vip__head-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--rb-vip-text);
    line-height: 1.4;
}

.rb-vip__head-sub {
    font-size: 12px;
    color: var(--rb-vip-text-muted);
    line-height: 1.5;
}

/* دارک */
.dark .rb-vip__head {
    background: linear-gradient(135deg, #26252e 0%, #1f1e26 100%);
    border-right-color: var(--rb-vip-accent);
}
.dark .rb-vip__head-icon {
    background: var(--rb-vip-accent);
    box-shadow: 0 2px 6px rgba(79, 195, 247, .3);
}

/* موبایل */
@media (max-width: 600px) {
    .rb-vip__head { padding: 10px 12px; gap: 10px; }
    .rb-vip__head-icon { width: 36px; height: 36px; font-size: 17px; }
    .rb-vip__head-title { font-size: 15px; }
    .rb-vip__head-sub { font-size: 11px; }
}

.rb-vip__lead { font-weight: 700; font-size: 15px; margin: 0 0 12px; }
.rb-vip__subtitle { font-weight: 600; margin: 8px 0; color: var(--rb-vip-text-muted); }

/* ---------- Steps (Fixed for RTL) ---------- */
.rb-vip__steps {
    margin: 10px 0 20px;
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    counter-reset: rbvip;
}

.rb-vip__steps li {
    list-style: none !important;
    list-style-type: none !important;
    counter-increment: rbvip;
    position: relative;
    padding: 10px 40px 10px 0;
    border-bottom: 1px dashed var(--rb-vip-border);
    color: var(--rb-vip-text);
    line-height: 1.7;
    font-size: 14px;
}

.rb-vip__steps li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.rb-vip__steps li::before {
    content: counter(rbvip);
    position: absolute;
    right: 0;
    top: 8px;
    width: 26px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    border-radius: 50%;
    background: var(--rb-vip-primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 168, 243, 0.3);
}

/* ---------- Actions / Buttons ---------- */
.rb-vip__actions {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px; margin: 14px 0;
}
.rb-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 9px 18px;
    font-size: 14px; font-weight: 600; line-height: 1.4;
    border-radius: var(--rb-vip-radius-sm);
    border: 1px solid transparent; cursor: pointer;
    text-decoration: none; user-select: none;
    transition: var(--rb-vip-transition);
}
.rb-btn--primary { background: var(--rb-vip-primary); color: #fff; border-color: var(--rb-vip-primary); }
.rb-btn--primary:hover { background: var(--rb-vip-primary-hover); border-color: var(--rb-vip-primary-hover); transform: translateY(-1px); }
.rb-btn--success { background: var(--rb-vip-success); color: #fff; border-color: var(--rb-vip-success); }
.rb-btn--success:hover { background: var(--rb-vip-success-hover); border-color: var(--rb-vip-success-hover); transform: translateY(-1px); }
.rb-btn--outline { background: transparent; color: var(--rb-vip-accent); border-color: var(--rb-vip-accent); }
.rb-btn--outline:hover { background: var(--rb-vip-accent); color: #fff; }

/* ---------- Alerts ---------- */
.rb-alert {
    padding: 12px 14px; border-radius: var(--rb-vip-radius-sm);
    border: 1px solid transparent; margin: 10px 0;
    line-height: 1.7; font-size: 14px;
}
.rb-alert--warning { background: var(--rb-vip-warning-bg); color: var(--rb-vip-warning-text); border-color: var(--rb-vip-warning-bd); }
.rb-alert--danger  { background: var(--rb-vip-danger-bg);  color: var(--rb-vip-danger-text);  border-color: var(--rb-vip-danger-bd); }
.rb-alert__msg a { color: inherit; text-decoration: underline; }

/* ---------- Price ---------- */
.rb-vip__price,
.rb-txt_price {
    background: var(--rb-vip-bg); color: var(--rb-vip-text);
    padding: 12px 16px; margin: 12px 0;
    border: 1px solid var(--rb-vip-border);
    border-radius: var(--rb-vip-radius);
    text-align: center; font-size: 18px; line-height: 1.6;
}
.rb-green { color: var(--rb-vip-green); font-weight: 700; }


#login-content.toggle-content,
#register-content.toggle-content {
    margin-top: 12px;
    border-radius: var(--rb-vip-radius-sm);
}

/* ---------- Premium Download Button ---------- */
.rb-dl-btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;margin:10px 0;background:linear-gradient(135deg,#00a8f3,#0395d7);color:#fff!important;text-decoration:none!important;border-radius:var(--rb-vip-radius-sm);border:1px solid rgba(255,255,255,.1);box-shadow:0 4px 12px rgba(3,149,215,.3);transition:all .3s cubic-bezier(.25,.8,.25,1);position:relative;overflow:hidden}
.rb-dl-btn:hover{background:linear-gradient(135deg,#0395d7,#0277b5);transform:translateY(-2px);box-shadow:0 6px 18px rgba(3,149,215,.5);color:#fff!important}
.rb-dl-btn:active{transform:translateY(1px);box-shadow:0 2px 6px rgba(3,149,215,.3)}
.rb-dl-btn__icon{flex-shrink:0;color:#fff}
.rb-dl-btn__text{font-size:15px;font-weight:700;line-height:1.5;word-break:break-word}
.rb-dl-btn::after{content:'';position:absolute;top:0;left:-100%;width:50%;height:100%;background:linear-gradient(to right,rgba(255,255,255,0),rgba(255,255,255,.2) 50%,rgba(255,255,255,0));transform:skewX(-25deg);transition:all .7s ease}
.rb-dl-btn:hover::after{left:125%}

/* ---------- Expire / paid ---------- */
.rb-vip__expire,
.rb-vip__paid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 20px;
    padding: 12px 20px;
    background: linear-gradient(to left, var(--rb-vip-bg), var(--rb-vip-bg-soft));
    border: 1px solid var(--rb-vip-border);
    border-radius: 50px; /* حالت قرصی */
    color: var(--rb-vip-text);
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.rb-vip__paid::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--rb-vip-success);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--rb-vip-success);
    flex-shrink: 0;
}

.rb-vip__expire::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--rb-vip-accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--rb-vip-accent);
    flex-shrink: 0;
}

.dark .rb-vip__expire,
.dark .rb-vip__paid {
    background: linear-gradient(to left, #26252e, #1f1e26);
    border-color: #33343f;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .rb-vip__expire,
    .rb-vip__paid {
        font-size: 13px;
        padding: 10px 15px;
    }
}
.rb-vip__pay-title { font-size: 16px; line-height: 1.8; margin: 0 0 12px; }

/* ---------- Backward compatibility ---------- */
.rb_v {
    margin: 10px; padding: 12px;
    background: var(--rb-vip-bg); color: var(--rb-vip-text);
    border-radius: var(--rb-vip-radius-sm); line-height: 2;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .rb-vip__card { padding: 12px; }
    .rb-vip__price, .rb-txt_price { font-size: 16px; padding: 10px; }
    .rb-vip__actions { flex-direction: column; }
    .rb-vip__actions .rb-btn { width: 100%; }
    .rb-vip__pay-title { font-size: 14px; }
}