/* VictoriyaMC — استایل‌های تکمیلی نسخه‌ی جنگو (مکمل styles.css قالب اصلی) */

/* --- انیمیشن ذرات و بلوک‌ها --- */
@keyframes vmc-float {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-110vh); }
}
@keyframes vmc-cube {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-26px) rotate(8deg); }
}

/* --- reveal on scroll --- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- توست --- */
.vmc-toast {
  position: fixed; bottom: 26px; right: 50%; transform: translate(50%, 20px);
  z-index: 9999; padding: 12px 22px; border-radius: 14px; font-size: .9rem;
  color: #fff; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(20, 12, 40, .85); backdrop-filter: blur(14px);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  max-width: min(92vw, 480px); text-align: center;
}
.vmc-toast.show { opacity: 1; transform: translate(50%, 0); }
.vmc-toast[data-kind="success"] { border-color: rgba(52,211,153,.5); }
.vmc-toast[data-kind="error"]   { border-color: rgba(248,113,113,.6); }
.vmc-toast[data-kind="warning"] { border-color: rgba(251,191,36,.55); }

/* --- هاله‌ی موس --- */
.cursor-glow {
  position: fixed; width: 340px; height: 340px; border-radius: 50%;
  pointer-events: none; z-index: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(168,85,247,.10) 0%, transparent 65%);
}

/* --- خطاهای فرم --- */
.form-errors {
  border: 1px solid rgba(248,113,113,.5); background: rgba(248,113,113,.1);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 16px;
  color: #fecaca; font-size: .85rem; display: grid; gap: 6px;
}

/* --- honeypot (تله ربات) --- */
.hp-field { position: absolute !important; top: 0 !important; left: 0 !important; width: 1px !important; height: 1px !important; opacity: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; pointer-events: none !important; border: 0 !important; padding: 0 !important; }

/* --- شمارنده سبد در هدر --- */
.cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-1, #8b5cf6), var(--purple-2, #a855f7));
  color: #fff; font-size: .7rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}

/* --- دکمه‌های داخل فرم (خروج، حذف، تعداد) --- */
.logout-form { display: contents; }
.panel-nav .logout {
  width: 100%; text-align: right; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: 12px; color: #f87171; font: inherit; font-size: .92rem;
}
.panel-nav .logout:hover { background: rgba(248,113,113,.12); }
.panel-nav .logout svg { width: 18px; height: 18px; }
.qty-control form, .cart-item > form { display: contents; }

/* --- فیلتر صفحه محصولات --- */
.page-main { padding-top: 110px; min-height: 70vh; }
.products-filter {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  padding: 14px 16px; border-radius: 16px; margin-bottom: 26px;
}
.products-filter input[type="text"], .products-filter select {
  flex: 1; min-width: 170px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12); background: rgba(10,6,20,.55);
  color: #fff; font: inherit; outline: none;
}
.products-filter input:focus, .products-filter select:focus { border-color: var(--purple-2, #a855f7); }
.products-filter select option { background: #14092b; }

/* --- CTA همه محصولات --- */
.all-products-cta { text-align: center; margin-top: 34px; display: grid; gap: 12px; justify-items: center; }
.all-products-cta p { color: var(--text-lo, #b9aee0); font-size: .95rem; }

/* --- کارت درگاه/نتیجه پرداخت --- */
.gateway-card {
  max-width: 520px; margin: 30px auto; padding: 34px 30px; border-radius: 22px;
  display: grid; gap: 14px; text-align: center;
}
.gateway-card h2 { font-size: 1.5rem; }
.gateway-actions { display: grid; gap: 10px; margin-top: 10px; }
.result-icon {
  width: 74px; height: 74px; margin: 0 auto; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900;
}
.result-icon.ok  { background: rgba(52,211,153,.15); color: #34d399; border: 2px solid rgba(52,211,153,.5); }
.result-icon.bad { background: rgba(248,113,113,.15); color: #f87171; border: 2px solid rgba(248,113,113,.5); }

/* --- آواتارها --- */
.avatar-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; filter: brightness(.85) saturate(1.3); }
.avatar-grad { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.avatar-lg {
  width: 84px; height: 84px; border-radius: 22px; overflow: hidden; flex: none;
  background: linear-gradient(145deg, var(--purple-1, #8b5cf6), var(--purple-2, #a855f7));
  display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #fff;
}
.avatar-opt img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; filter: brightness(.8) saturate(1.3); }
.avatar-opt input { display: none; }

/* --- ریزه‌کاری --- */
.err { color: #fca5a5; font-size: .8rem; margin-top: 4px; }
.gm-count { font-weight: 800; }

/* ============================================================
   پنل کاربری — نظم و روح تازه‌ی شیشه‌ای ✨
   ============================================================ */

/* فاصله‌ی یکدست بین همه‌ی بلوک‌های پنل (رفع چسبیدگی شیشه‌ها) */
.panel-main { display: flex; flex-direction: column; gap: 20px; }
.panel-main > .panel-topbar,
.panel-main > .stat-cards,
.panel-main > .filter-tabs,
.panel-main > .panel-box,
.panel-main > .panel-grid { margin-bottom: 0; }
.panel-grid { gap: 20px; }
.stat-cards { gap: 16px; }

/* شیشه‌ی یکدست و منظم برای همه‌ی بخش‌های پنل */
.panel-main .glass,
.panel-main .panel-box,
.panel-main .panel-topbar,
.panel-main .filter-tabs,
.panel-main .stat-card {
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 18px;
  box-shadow: 0 14px 42px rgba(5, 2, 15, .35);
}

/* ورود نرم و پله‌ای بلوک‌ها */
@keyframes vmc-rise {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.panel-main > * { animation: vmc-rise .55s cubic-bezier(.22,.9,.36,1) both; }
.panel-main > *:nth-child(2) { animation-delay: .07s; }
.panel-main > *:nth-child(3) { animation-delay: .14s; }
.panel-main > *:nth-child(4) { animation-delay: .21s; }
.panel-main > *:nth-child(5) { animation-delay: .28s; }
.panel-main > *:nth-child(6) { animation-delay: .35s; }
.stat-cards .stat-card { animation: vmc-rise .5s cubic-bezier(.22,.9,.36,1) both; }
.stat-cards .stat-card:nth-child(2) { animation-delay: .08s; }
.stat-cards .stat-card:nth-child(3) { animation-delay: .16s; }
.stat-cards .stat-card:nth-child(4) { animation-delay: .24s; }

/* هاور زنده‌ی باکس‌ها + هاله‌ی نوری دنبال‌کننده‌ی موس */
.panel-box, .stat-card { position: relative; overflow: hidden; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.panel-box:hover { border-color: rgba(168,85,247,.35); box-shadow: 0 18px 52px rgba(88,28,135,.28); }
.stat-card:hover { border-color: rgba(45,212,191,.35); }
.panel-box::before, .stat-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  transition: opacity .35s ease; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(168,85,247,.12), transparent 62%);
}
.panel-box:hover::before, .stat-card:hover::before { opacity: 1; }

/* برق عبوری روی کارت‌های آمار */
.stat-card::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.09), transparent);
  transition: left .65s ease;
}
.stat-card:hover::after { left: 130%; }

/* ریپل دکمه‌ها */
.btn { position: relative; overflow: hidden; }
.vmc-ripple {
  position: absolute; border-radius: 50%; transform: scale(0); pointer-events: none;
  background: rgba(255,255,255,.28); animation: vmc-ripple .6s ease-out forwards;
}
@keyframes vmc-ripple {
  to { transform: scale(3); opacity: 0; }
}

/* جلوگیری از بیرون‌زدگی متن‌ها از کادرها */
.panel-grid > *, .panel-box, .stat-card, .t-body { min-width: 0; }
.panel-box h3 { flex-wrap: wrap; gap: 6px; }
.t-title, .o-name, .u-name, .t-meta, .panel-box p, .form-note { overflow-wrap: anywhere; }
.stat-card .s-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owned-item { flex-wrap: wrap; }
.owned-item .o-key {
  max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  direction: ltr; text-align: left;
}
.chat-bubble p, .ticket-msg p { overflow-wrap: anywhere; }

/* ============================================================
   فرم‌های پنل — استایل کامل select / textarea / input
   ============================================================ */
.field .input-wrap select,
.field .input-wrap textarea,
.field .input-wrap input {
  width: 100%; padding: 12px 15px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(10,6,20,.55); color: #fff;
  font: inherit; font-size: .9rem; outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field .input-wrap select:focus,
.field .input-wrap textarea:focus,
.field .input-wrap input:focus {
  border-color: var(--purple-1, #8b5cf6);
  background: rgba(255,255,255,.07);
  box-shadow: 0 0 0 3px rgba(139,92,246,.18);
}
.field .input-wrap textarea { resize: vertical; min-height: 110px; line-height: 1.9; }
.field .input-wrap select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-left: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a855f7' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
.field .input-wrap select option { background: #14092b; color: #fff; }
.ticket-new-form .form-grid { margin-bottom: 16px; }
.ticket-new-form form > .btn { margin-top: 6px; }

/* --- آپلود تصویر (تیکت) --- */
.file-drop {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1.5px dashed rgba(168,85,247,.4); border-radius: 14px; cursor: pointer;
  background: rgba(139,92,246,.06);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}
.file-drop:hover { border-color: rgba(168,85,247,.75); background: rgba(139,92,246,.12); transform: translateY(-2px); }
.file-drop input[type="file"] { display: none; }
.file-drop .fd-icon { font-size: 1.5rem; flex: none; }
.file-drop .fd-text b { display: block; font-size: .87rem; margin-bottom: 3px; }
.file-drop .fd-hint { font-size: .73rem; color: var(--text-lo, #b9aee0); }
.file-preview { display: none; margin-top: 10px; align-items: center; gap: 12px; }
.file-preview.show { display: flex; }
.file-preview img {
  width: 62px; height: 62px; object-fit: cover; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.16);
}
.file-preview .fp-name { font-size: .78rem; color: var(--text-lo, #b9aee0); overflow-wrap: anywhere; }
.file-preview .fp-clear {
  background: rgba(248,113,113,.12); border: 1px solid rgba(248,113,113,.4);
  color: #fca5a5; border-radius: 9px; padding: 6px 12px; cursor: pointer;
  font: inherit; font-size: .74rem; flex: none;
}
.file-preview .fp-clear:hover { background: rgba(248,113,113,.22); }

/* ============================================================
   گفتگوی تیکت — استایل پیام‌رسان 💬
   (پیام کاربر: کادر سمت چپ — پیام پشتیبانی: کادر سمت راست)
   ============================================================ */
.chat-meta { margin-bottom: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chat-thread {
  display: flex; flex-direction: column; gap: 16px;
  max-height: 520px; overflow-y: auto; padding: 6px 4px 10px;
  scroll-behavior: smooth;
}
.chat-thread::-webkit-scrollbar { width: 6px; }
.chat-thread::-webkit-scrollbar-thumb { background: rgba(168,85,247,.35); border-radius: 99px; }
.chat-msg { display: flex; flex-direction: column; max-width: 78%; animation: vmc-rise .45s ease both; }
.chat-msg.user  { margin-right: auto; align-items: flex-start; text-align: right; }
.chat-msg.staff { margin-left: auto;  align-items: flex-end;   text-align: right; }
.chat-head { font-size: .74rem; font-weight: 800; margin-bottom: 6px; padding: 0 4px; }
.chat-msg.user  .chat-head { color: var(--turquoise-2, #5eead4); }
.chat-msg.staff .chat-head { color: #c4b5fd; }
.chat-bubble {
  padding: 12px 16px; border: 1px solid; font-size: .9rem; line-height: 1.9;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.chat-msg.user .chat-bubble {
  background: rgba(45,212,191,.10); border-color: rgba(45,212,191,.28);
  border-radius: 16px 16px 16px 4px;
}
.chat-msg.staff .chat-bubble {
  background: linear-gradient(150deg, rgba(139,92,246,.22), rgba(88,28,135,.16));
  border-color: rgba(168,85,247,.4);
  border-radius: 16px 16px 4px 16px;
}
.chat-time { font-size: .67rem; color: var(--text-lo, #b9aee0); margin-top: 5px; padding: 0 4px; }
.chat-image { display: block; margin-top: 10px; }
.chat-image img {
  max-width: min(230px, 100%); max-height: 220px; border-radius: 12px; display: block;
  border: 1px solid rgba(255,255,255,.15); cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}
.chat-image img:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.chat-reply { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08); }
.chat-closed-note { margin-top: 18px; }

/* سازگاری قدیمی (اگر جایی از .ticket-msg استفاده شده باشد) */
.ticket-thread { display: grid; gap: 12px; }
.ticket-msg {
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
}
.ticket-msg.staff { background: rgba(139,92,246,.12); border-color: rgba(168,85,247,.35); }
.ticket-msg .msg-head {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  font-size: .8rem; font-weight: 700; margin-bottom: 8px; color: var(--turquoise-2, #5eead4);
}
.ticket-msg.staff .msg-head { color: #c4b5fd; }
.ticket-msg .msg-head span { color: var(--text-lo, #b9aee0); font-weight: 400; }
.ticket-msg p { font-size: .9rem; line-height: 1.9; }

/* موبایل */
@media (max-width: 640px) {
  .chat-msg { max-width: 92%; }
  .owned-item .o-key { max-width: 100%; }
}

/* ===================== نشان‌های اعتماد هدر ===================== */
.header-trust{display:flex;align-items:center;gap:6px}
.header-trust .badge-pill{display:inline-flex;align-items:center;gap:5px;font-size:.66rem;padding:5px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);backdrop-filter:blur(8px);color:var(--text-mid);white-space:nowrap}
.header-trust .badge-pill svg{width:12px;height:12px}
@media (max-width:1200px){
  .header-trust{display:none}
}

/* ===================== اعلان‌های سایت ===================== */
.notif-wrap{position:relative}
.notif-btn{position:relative;padding:9px 12px}
.notif-badge{position:absolute;top:-6px;left:-6px;min-width:17px;height:17px;padding:0 4px;display:flex;align-items:center;justify-content:center;border-radius:999px;background:linear-gradient(135deg,var(--purple-1),var(--purple-2));color:#fff;font-size:.62rem;font-weight:800;box-shadow:0 4px 12px rgba(139,92,246,.5)}
.notif-dropdown{position:absolute;top:calc(100% + 12px);left:0;width:320px;max-height:380px;overflow-y:auto;background:rgba(14,8,28,.94);backdrop-filter:blur(18px);border:1px solid rgba(168,85,247,.28);border-radius:16px;box-shadow:0 18px 50px rgba(0,0,0,.55);z-index:80;animation:vmc-rise .3s ease both}
.notif-head{padding:13px 16px;font-size:.8rem;font-weight:800;color:#c4b5fd;border-bottom:1px solid rgba(255,255,255,.08);position:sticky;top:0;background:rgba(14,8,28,.96)}
.notif-item{padding:12px 16px;border-bottom:1px solid rgba(255,255,255,.05)}
.notif-item:last-child{border-bottom:none}
.notif-item b{display:block;font-size:.83rem;color:var(--turquoise-2);overflow-wrap:anywhere}
.notif-item[data-kind="warning"] b{color:var(--gold)}
.notif-item[data-kind="success"] b{color:var(--success)}
.notif-item p{margin:5px 0 0;font-size:.76rem;line-height:1.9;color:var(--text-mid);overflow-wrap:anywhere}
.notif-item small{display:block;margin-top:6px;font-size:.66rem;color:var(--text-lo)}
.notif-empty{padding:24px;text-align:center;font-size:.8rem;color:var(--text-lo)}
.notif-dropdown::-webkit-scrollbar{width:6px}
.notif-dropdown::-webkit-scrollbar-thumb{background:rgba(139,92,246,.35);border-radius:99px}
@media (max-width:560px){
  .notif-dropdown{position:fixed;left:12px;right:12px;top:72px;width:auto}
}

/* ===================== اصلاحات نهایی: اعلان / پنل / اینماد ===================== */
/* دکمه اعلان هم‌اندازه دکمه سبد خرید */
.notif-btn{padding:10px 20px}
/* نشانگر عددی بیرون از دکمه تا بریده نشود */
.notif-wrap .notif-badge{position:absolute;top:-7px;left:-7px;z-index:6;pointer-events:none}
/* فاصله داخلی نوار بالای پنل تا متن به لبه نچسبد */
.panel-topbar{padding:16px 22px}
.panel-topbar h1{margin:0}
/* دکمه بازگشت: افکت مگنتیک + فلش متحرک */
.back-site-btn{position:relative;will-change:transform;transition:transform .18s ease,border-color .25s ease,box-shadow .25s ease}
.back-site-btn:hover{border-color:var(--turquoise-1);box-shadow:0 10px 26px rgba(45,212,191,.16)}
.back-site-btn .bsb-arrow{display:inline-block;transition:transform .25s ease}
.back-site-btn:hover .bsb-arrow{transform:translateX(-5px)}
/* کادر خالی نماد اعتماد در فوتر */
.enamad-slot{margin-top:12px;width:112px;min-height:112px;display:flex;align-items:center;justify-content:center;border:1px dashed rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.04)}
.enamad-slot img{max-width:96px;max-height:96px;border-radius:10px}
.enamad-hint{font-size:.62rem;color:var(--text-lo);opacity:.65}

/* ===================== بلاگ ===================== */
.blog-head{max-width:1160px;margin:130px auto 8px;padding:0 20px;text-align:center;position:relative;z-index:1}
.blog-head h1{font-size:2.2rem;font-weight:900}
.blog-head h1 span{background:linear-gradient(90deg,var(--purple-2),var(--turquoise-2));-webkit-background-clip:text;background-clip:text;color:transparent}
.blog-head p{color:var(--text-mid);margin-top:10px;font-size:.95rem}
.blog-wrap{max-width:1160px;margin:26px auto 90px;padding:0 20px;position:relative;z-index:1}
.blog-grid{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-flow:dense;gap:18px}
.bcard{grid-column:span 2;display:flex;flex-direction:column;border-radius:22px;overflow:hidden;text-decoration:none;color:var(--text-hi);position:relative;opacity:0;transform:translateY(30px) scale(.96);transition:opacity .6s cubic-bezier(.22,.9,.36,1),transform .6s cubic-bezier(.22,.9,.36,1);will-change:transform}
.bcard.bcard-in{opacity:1;transform:none}
.bcard-xl{grid-column:span 4;grid-row:span 2}
.bcard-wide{grid-column:span 3}
.bcard-media{position:relative;overflow:hidden;aspect-ratio:16/9;flex:none}
.bcard-xl .bcard-media{aspect-ratio:auto;flex:1;min-height:260px}
.bcard-media img{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.22,.9,.36,1);display:block}
.bcard:hover .bcard-media img{transform:scale(1.08)}
.bcard-cover{width:100%;height:100%;min-height:170px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,rgba(139,92,246,.35),rgba(45,212,191,.2))}
.bcard-cover img{width:90px;height:auto;opacity:.85;object-fit:contain}
.bcard-read{position:absolute;bottom:10px;right:10px;font-size:.68rem;padding:5px 10px;border-radius:999px;background:rgba(10,6,20,.72);backdrop-filter:blur(6px);color:var(--turquoise-2);font-weight:700}
.bcard-body{padding:16px 18px 14px;display:flex;flex-direction:column;gap:8px;flex:1}
.bcard-body h2{font-size:1.02rem;font-weight:800;line-height:1.7}
.bcard-xl .bcard-body h2{font-size:1.3rem}
.bcard-body p{font-size:.8rem;color:var(--text-mid);line-height:1.9;flex:1}
.bcard-meta{display:flex;align-items:center;gap:8px;margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.07);font-size:.72rem;color:var(--text-lo)}
.bcard-avatar{width:26px;height:26px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;font-size:.7rem;font-weight:800;background:linear-gradient(145deg,var(--purple-1),var(--turquoise-1));flex:none;color:#fff}
.bcard-avatar .avatar-img{width:100%;height:100%;object-fit:cover}
.bcard-author{font-weight:700;color:var(--text-mid)}
.bcard-date{margin-right:auto}
.bcard::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.09) 48%,transparent 62%);transform:translateX(-130%);transition:transform .9s ease;pointer-events:none}
.bcard:hover::after{transform:translateX(130%)}
.blog-empty{max-width:520px;margin:40px auto;padding:46px 30px;text-align:center;border-radius:22px}
.blog-empty p{color:var(--text-mid);margin-top:10px}

@media (max-width: 900px){
.blog-grid{grid-template-columns:repeat(2,1fr)}
.bcard{grid-column:span 1}
.bcard-xl,.bcard-wide{grid-column:span 2;grid-row:auto}
}

@media (max-width: 560px){
.blog-grid{grid-template-columns:1fr}
.bcard,.bcard-xl,.bcard-wide{grid-column:span 1}
}

/* صفحه تکی مقاله */
.post-wrap{max-width:860px;margin:130px auto 90px;padding:0 20px;position:relative;z-index:1;display:flex;flex-direction:column;gap:22px}
.post-hero{border-radius:24px;overflow:hidden}
.post-hero-img{width:100%;max-height:380px;object-fit:cover;display:block}
.post-hero-cover{height:220px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,rgba(139,92,246,.35),rgba(45,212,191,.2))}
.post-hero-cover img{width:110px;opacity:.85}
.post-hero-body{padding:22px 26px}
.post-hero-body h1{font-size:1.6rem;font-weight:900;line-height:1.8}
.post-meta{display:flex;align-items:center;gap:12px;margin-top:16px;flex-wrap:wrap}
.post-avatar{width:44px;height:44px;border-radius:50%;overflow:hidden;display:flex;align-items:center;justify-content:center;font-weight:800;background:linear-gradient(145deg,var(--purple-1),var(--turquoise-1));flex:none;color:#fff}
.post-avatar .avatar-img{width:100%;height:100%;object-fit:cover}
.post-meta-txt{display:flex;flex-direction:column;gap:2px}
.post-meta-txt b{font-size:.9rem}
.post-meta-txt small{color:var(--text-lo);font-size:.7rem}
.post-chip{font-size:.72rem;padding:6px 12px;border-radius:999px;border:1px solid var(--glass-border-hi);background:rgba(255,255,255,.04);color:var(--text-mid)}
.post-body{padding:28px 30px;border-radius:24px;line-height:2.2;font-size:.95rem}
.post-body p{margin-bottom:14px;color:var(--text-mid)}
.post-more h3{margin-bottom:14px;font-size:1.1rem}

/* ===================== ناوبری بدون ریلود (SPA) ===================== */
#spa-bar{position:fixed;top:0;right:0;height:3px;width:0;z-index:9999;background:linear-gradient(90deg,var(--purple-1),var(--turquoise-2));box-shadow:0 0 12px rgba(139,92,246,.8);opacity:0;transition:width .3s ease,opacity .4s ease;pointer-events:none}
#spa-content{will-change:opacity,transform}
#spa-content.spa-out{opacity:0;transform:translateY(14px);transition:opacity .17s ease,transform .17s ease}
#spa-content.spa-in{animation:vmc-rise .45s cubic-bezier(.22,.9,.36,1) both}

/* ===================== بهبود نمایش موبایل ===================== */
@media (max-width:760px){
  /* سبد خرید و اعلان‌ها در موبایل دیده شوند؛ فقط دکمه «ورود» مخفی شود (داخل منو هست) */
  .header-actions .btn-ghost{display:inline-flex;}
  .header-actions > a.btn-ghost:not(.cart-link){display:none;}
  .header-actions{gap:7px;}
  .notif-btn{padding:9px 12px;}
  .cart-link{padding:9px 12px;}
  .brand-name{font-size:1.02rem;}
  .wrap{padding:0 16px;}
  .section{padding:50px 0;}
  .section-head{margin-bottom:28px;}
  .hero{padding:52px 0 42px;}
  .hero p.lead{font-size:.95rem;}
  .btn-lg{padding:12px 20px;font-size:.92rem;}
  .hud-panel{padding:22px 18px;}
}
@media (max-width:560px){
  /* دکمه ثبت‌نام/پنل از هدر حذف — از منوی همبرگری در دسترس است */
  .header-actions > .btn-primary{display:none;}
  .hud-grid{grid-template-columns:repeat(2,1fr);gap:12px;}
  .hud-top{flex-direction:column;align-items:flex-start;gap:8px;}
  .hero-meta{gap:14px;}
  .hero-meta .item b{font-size:1rem;}
  .gamemodes-grid{grid-template-columns:1fr;}
  .products-grid{grid-template-columns:1fr;}
  .blog-head{margin-top:105px;}
  .blog-head h1{font-size:1.6rem;}
  .post-wrap{margin-top:105px;}
  .post-hero-body{padding:18px 16px;}
  .post-hero-body h1{font-size:1.25rem;}
  .post-body{padding:20px 18px;font-size:.9rem;}
  .gateway-card{padding:26px 18px;}
  .panel-topbar{flex-wrap:wrap;gap:10px;padding:14px 16px;}
  .filter-tab{padding:8px 14px;font-size:.78rem;}
  .toast{width:calc(100% - 32px);text-align:center;}
  .avatar-grid{grid-template-columns:repeat(3,1fr);}
  .form-grid{grid-template-columns:1fr;}
}

/* ===================== رفع ایرادهای موبایل — نسخه ۲ ===================== */
/* جلوگیری از اسکرول افقی و کوچک‌شدن صفحه در موبایل (clip چیدمان sticky را خراب نمی‌کند) */
html, body{overflow-x:clip;}

/* کادر آی‌پی سرور: دکمه کپی کامل داخل کادر */
@media (max-width:560px){
  .ip-box{flex-direction:column; align-items:stretch; width:100%; border-radius:20px; padding:12px; gap:4px;}
  .ip-box .ip-label{text-align:center; padding:4px 0 0;}
  .ip-box .ip-value{text-align:center; font-size:.98rem; word-break:break-all;}
  .ip-box .copy-btn{width:100%; justify-content:center; border-radius:14px; margin-top:6px;}
}

/* کارت‌های گیم‌مود: فاصله از لبه‌ها و از هم */
@media (max-width:760px){
  .section.wrap{padding-left:16px; padding-right:16px;}
  .gamemodes-grid{grid-template-columns:1fr; gap:16px;}
  .products-grid{gap:16px;}
  .gm-card{padding:22px 18px;}
}

/* فوتر: سه ستون لینک در یک ردیف، معرفی برند تمام‌عرض */
@media (max-width:760px){
  .footer-top{grid-template-columns:repeat(3,1fr); gap:24px 12px;}
  .footer-brand{grid-column:1 / -1;}
  .footer-col h4{font-size:.8rem; margin-bottom:12px;}
  .footer-col ul li{margin-bottom:8px;}
  .footer-col ul li a{font-size:.78rem;}
  .footer-col p{font-size:.74rem !important;}
  .badge-pill{padding:7px 10px; font-size:.68rem;}
  .enamad-slot{width:96px; min-height:96px;}
  .footer-bottom{justify-content:center; text-align:center; font-size:.72rem;}
}

/* ===================== صفحه‌های کد تایید (OTP) ===================== */
.otp-boxes{display:flex; gap:10px; justify-content:center; margin:6px 0 22px;}
.otp-digit{
  width:48px; height:56px; text-align:center; font-size:1.45rem; font-weight:800;
  border-radius:14px; background:rgba(255,255,255,.04); border:1px solid var(--glass-border);
  color:var(--text-hi); transition:.18s; caret-color:var(--turquoise-2); font-family:inherit;
}
.otp-digit:focus{outline:none; border-color:var(--purple-1); background:rgba(255,255,255,.07); box-shadow:0 0 0 3px rgba(139,92,246,.18); transform:translateY(-2px);}
.otp-digit.filled{border-color:var(--turquoise-1); background:rgba(52,211,153,.08); animation:otpPop .18s ease;}
@keyframes otpPop{0%{transform:scale(.8);}100%{transform:scale(1);}}
.otp-shake{animation:otpShake .45s ease;}
@keyframes otpShake{0%,100%{transform:translateX(0);}20%{transform:translateX(-9px);}40%{transform:translateX(9px);}60%{transform:translateX(-6px);}80%{transform:translateX(6px);}}
.link-btn{background:none; border:none; color:var(--turquoise-2); font-weight:700; cursor:pointer; font-size:.86rem; font-family:inherit; padding:0;}
.link-btn:disabled{color:var(--text-lo); cursor:default;}
form#resend-form{margin-top:14px;}
@media (max-width:400px){
  .otp-boxes{gap:7px;}
  .otp-digit{width:42px; height:50px; font-size:1.25rem;}
}

/* ===== پنل کاربری: مرتب‌تر + دکمه‌های بدون کادر ===== */
.box-link{font-size:.78rem;font-weight:700;color:var(--turquoise-2);background:none;border:none;padding:4px 2px;transition:.2s;white-space:nowrap;}
.box-link:hover{color:#fff;text-shadow:0 0 16px rgba(45,212,191,.65);transform:translateX(-3px);}
.panel-topbar .back-site-btn{background:none;border:none;box-shadow:none;}
.panel-topbar .back-site-btn:hover{background:none;color:var(--turquoise-2);}
.filter-tabs{background:none!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important;}
.filter-tab{box-shadow:0 4px 14px rgba(0,0,0,.25);}
.panel-box h3{padding-bottom:12px;border-bottom:1px solid var(--glass-border);margin-bottom:14px;letter-spacing:.3px;}
.stat-card{transition:.25s;}
.stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(0,0,0,.35);}
.ticket-row{border-radius:12px;padding:12px 10px;transition:.2s;}
.ticket-row:hover{background:rgba(255,255,255,.045);transform:translateX(-3px);}
.owned-item{background:rgba(255,255,255,.03);border:1px solid var(--glass-border);border-radius:14px;padding:12px 14px;margin-bottom:10px;border-bottom:1px solid var(--glass-border);}
.owned-item:last-child{margin-bottom:0;}
.panel-grid{gap:18px;}


/* ===== لوگوتایپ شفاف — دیگر ماسک لازم نیست ===== */
.auth-logotype,.footer-logo-text{-webkit-mask-image:none!important;mask-image:none!important;filter:drop-shadow(0 8px 28px rgba(139,92,246,.35));}
.footer-logo-text{width:190px;opacity:1;}

/* ===== نوت اسپم صفحات کد تایید ===== */
.otp-spam-note{margin-top:12px;font-size:.78rem;color:var(--text-mid);background:rgba(45,212,191,.08);border:1px solid rgba(45,212,191,.25);border-radius:12px;padding:10px 14px;line-height:1.9;text-align:right;}

/* ===== صفحه تنظیمات حساب (مشخصات من): مرتب‌سازی ===== */
.profile-tabs{background:none!important;border:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;padding:0!important;display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;}
.profile-tab{box-shadow:0 4px 14px rgba(0,0,0,.25);white-space:nowrap;}
.profile-panel{padding:22px;overflow:hidden;}
.profile-panel .form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px 16px;}
.profile-panel .field{min-width:0;}
.profile-panel .input-wrap{width:100%;}
.profile-panel .input-wrap input{width:100%;min-width:0;box-sizing:border-box;}
.profile-panel form > .btn,.profile-panel .btn[type="submit"]{margin-top:16px;}
.avatar-picker-current{display:flex;align-items:center;gap:14px;margin-bottom:16px;flex-wrap:wrap;}
.avatar-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:10px;}
.avatar-opt{aspect-ratio:1/1;overflow:hidden;min-width:0;}
.avatar-opt img{width:100%;height:100%;object-fit:cover;}
@media (max-width:640px){
  .profile-tab{flex:1 1 calc(50% - 8px);text-align:center;}
  .profile-panel{padding:16px;}
}

/* ===== نماد اعتماد رسمی — فقط موقعیت، بدون دست‌کاری لوگو ===== */
.enamad-official{margin-top:12px;display:inline-block;}

/* ===== راند ۱۰موردی: سبد خرید، محصولات، قوانین، بلاگ صفحه اصلی، نفس اژدها ===== */

/* --- سبد خرید: فاصله‌ها و کادر خلاصه --- */
.cart-list-box { padding: 10px 22px; }
.cart-item { padding: 16px 0; transition: background .25s ease; }
.cart-item .c-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.cart-summary { padding: 26px 22px; position: sticky; top: 96px; }
.cart-summary h3 { margin-bottom: 12px; }
.cart-summary .promo-row { margin: 18px 0; }
.cart-summary .btn-block { margin-top: 8px; }
.cart-summary .pay-badges { margin-top: 18px; }
.qty-control button { transition: background .2s ease, transform .15s ease; }
.qty-control button:active { transform: scale(.82); }
.cart-item .c-remove { transition: transform .2s ease, filter .2s ease; }
.cart-item .c-remove:hover { transform: rotate(8deg) scale(1.12); filter: drop-shadow(0 0 6px rgba(239,68,68,.6)); }
.cart-item.vmc-in { animation: cartIn .5s cubic-bezier(.2,.9,.3,1) both; }
@keyframes cartIn {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.cart-item.vmc-removing { transition: all .3s ease; opacity: 0; transform: translateX(-46px) scale(.94); }
.qty-val.vmc-pulse { animation: qtyPulse .35s ease; display: inline-block; }
@keyframes qtyPulse {
  40% { transform: scale(1.35); }
}

/* --- کارت محصول جمع‌وجورتر + عکس محصول --- */
.products-grid { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; }
.product-card { padding: 16px 16px 18px; }
.product-card h3 { font-size: 1rem; }
.product-card > p { font-size: .8rem; }
.product-photo { position: relative; margin: -4px -4px 12px; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(255,255,255,.09); }
.product-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform .5s ease; }
.product-card.has-photo:hover .product-photo img { transform: scale(1.09); }
.product-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12,7,22,.55)); pointer-events: none; }
.product-card.has-photo .product-badge { z-index: 3; }

/* --- بلاگ در صفحه اصلی --- */
.home-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 8px; }
.home-blog-grid .bcard-media { aspect-ratio: 16 / 9; }

/* --- صفحه قوانین --- */
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 22px; align-items: start; }
.rules-toc { position: sticky; top: 96px; padding: 18px 16px; border-radius: 16px; }
.rules-toc h4 { font-size: .95rem; margin-bottom: 12px; }
.rules-toc nav { display: flex; flex-direction: column; gap: 4px; }
.rules-toc a { display: block; padding: 9px 12px; border-radius: 10px; font-size: .85rem; text-decoration: none; border: 1px solid transparent; transition: all .22s ease; }
.rules-toc a:hover { background: rgba(255,255,255,.05); }
.rules-toc a.active { color: #fff; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(139,92,246,.12)); border-color: rgba(139,92,246,.45); transform: translateX(-4px); }
.rules-section { padding: 22px; border-radius: 18px; margin-bottom: 18px; scroll-margin-top: 110px; }
.rules-section h3 { font-size: 1.15rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.09); }
.rule-item { padding: 10px 0; }
.rule-item h5 { font-size: .95rem; margin-bottom: 6px; }
.rule-item p { font-size: .85rem; line-height: 2; opacity: .85; }
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-toc { position: static; }
}

/* --- نفس اژدها (کپی آی‌پی) --- */
.dragon-p { position: fixed; z-index: 9999; pointer-events: none; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f3ccff 0%, #d06bf5 40%, #7b2ff0 72%, transparent 100%); box-shadow: 0 0 14px rgba(208,107,245,.85); mix-blend-mode: screen; }
.dragon-ring { position: fixed; z-index: 9998; pointer-events: none; width: 110px; height: 110px; border-radius: 50%; border: 2px solid rgba(208,107,245,.6); box-shadow: 0 0 30px rgba(123,47,240,.45), inset 0 0 24px rgba(208,107,245,.35); }

/* ===== راند اصلاحی: بلاگ/محصولات جمع‌وجور، ورود، سبد خالی، موبایل ===== */

/* --- بلاگ صفحه اصلی: خیلی کوچکتر --- */
.home-blog-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.home-blog-grid .bcard-media { aspect-ratio: auto; height: 130px; }
.home-blog-grid .bcard-body { padding: 14px; }
.home-blog-grid .bcard-body h2 { font-size: .95rem; }
.home-blog-grid .bcard-body p { font-size: .78rem; }
.home-blog-grid .bcard-meta { font-size: .72rem; }

/* --- محصولات عکس‌دار: کادر کوچکتر (auto-fill = با محصول کم هم کش نمی‌آید) --- */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.product-photo { aspect-ratio: auto; height: 120px; margin: -2px -2px 10px; }
.product-card.has-photo { padding: 14px 14px 16px; }

/* --- سبد/فروشگاه خالی: بدون قاب شیشه‌ای + فاصله دکمه --- */
.empty-state.glass { background: transparent; border: none; box-shadow: none; backdrop-filter: none; }
.empty-state .btn { margin-top: 22px; }

/* --- صفحات ورود: لوگو بدون دایره --- */
.auth-head .brand-logo { width: 86px; height: 86px; background: none; border: none; box-shadow: none; border-radius: 0; overflow: visible; filter: drop-shadow(0 10px 26px rgba(139,92,246,.5)); }
.auth-head .brand-logo img { object-fit: contain; padding: 0; }

/* --- کارت ورود: ورود نرم + تیلت + فوکوس درخشان --- */
.vmc-auth-in { animation: authIn .6s cubic-bezier(.2,.9,.3,1) both; }
@keyframes authIn {
  from { opacity: 0; transform: translateY(22px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.auth-card { transition: transform .15s ease, box-shadow .3s ease; will-change: transform; }
.auth-card:focus-within { box-shadow: 0 0 0 1px rgba(139,92,246,.35), 0 18px 60px rgba(123,47,240,.28); }
.auth-card input.vmc-focus { box-shadow: 0 0 0 3px rgba(139,92,246,.22); transition: box-shadow .2s ease; }
.vmc-btn-glow { box-shadow: 0 0 24px rgba(45,212,191,.45), 0 0 44px rgba(139,92,246,.35); }

/* --- پالس کادر آی‌پی هنگام کپی --- */
.vmc-ip-burst { animation: ipBurst .8s ease; }
@keyframes ipBurst {
  0% { box-shadow: 0 0 0 0 rgba(178,75,243,.65); }
  100% { box-shadow: 0 0 0 26px rgba(178,75,243,0); }
}

/* --- موبایل: همه بخش‌های جدید --- */
@media (max-width: 680px) {
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .product-photo { height: 96px; }
  .product-card { padding: 12px 12px 14px; }
  .product-card h3 { font-size: .9rem; }
  .home-blog-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-blog-grid .bcard-media { height: 104px; }
  .cart-summary { position: static; }
  .cart-list-box { padding: 6px 14px; }
  .rules-section { padding: 16px 14px; }
  .rules-toc { padding: 14px 12px; }
  .auth-card { padding: 28px 18px; }
  .auth-head .brand-logo { width: 70px; height: 70px; }
  .empty-state { padding: 40px 12px; }
}
@media (max-width: 430px) {
  .home-blog-grid { grid-template-columns: 1fr; }
  .home-blog-grid .bcard-media { height: 140px; }
}

/* ===== راند جدید: محصولات خوش‌اسکیل، چک‌باکس قوانین، پنل مدرن ===== */

/* --- کارت محصول: اسکیل بزرگتر و خواناتر --- */
.products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product-card { padding: 18px 18px 20px; }
.product-card h3 { font-size: 1.05rem; }
.product-card > p { font-size: .84rem; line-height: 1.9; }
.product-photo { height: 150px; border-radius: 16px; margin: -6px -6px 12px; }
.product-card .btn-block { margin-top: 10px; }

/* --- چک‌باکس قوانین ثبت‌نام: همان سایز، استایل‌دار --- */
.checkbox input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px; flex: none; cursor: pointer;
  border-radius: 5px; border: 1.5px solid rgba(139,92,246,.55);
  background: rgba(255,255,255,.05); position: relative;
  transition: border-color .2s ease, background .25s ease, box-shadow .25s ease, transform .15s ease;
}
.checkbox input[type="checkbox"]:hover { border-color: rgba(178,75,243,.85); box-shadow: 0 0 8px rgba(139,92,246,.35); }
.checkbox input[type="checkbox"]:active { transform: scale(.85); }
.checkbox input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #8b5cf6, #2dd4bf);
  border-color: transparent;
  box-shadow: 0 0 10px rgba(139,92,246,.55);
}
.checkbox input[type="checkbox"]:checked::after {
  content: ""; position: absolute; inset: 0;
  background: center / 74% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12l5 5L20 7'/%3E%3C/svg%3E");
}
.rules-link { color: var(--turquoise-2); font-weight: 700; }
.rules-link:hover { text-decoration: underline; }

/* --- پنل کاربری مدرن: فاصله از لبه‌ها + حذف شیشه اضافی --- */
@media (min-width: 981px) {
  .panel-shell { grid-template-columns: 264px 1fr; gap: 26px; padding: 26px; }
  .panel-side { position: sticky; top: 26px; height: calc(100vh - 52px); border-radius: 22px; border: 1px solid rgba(139,92,246,.16); }
  .panel-main { padding: 4px 2px 30px; }
}
.panel-side {
  background: linear-gradient(180deg, rgba(21,16,38,.97), rgba(12,9,23,.98));
  backdrop-filter: none;
  box-shadow: 0 24px 60px rgba(5,3,12,.5);
}
.panel-nav a { border-radius: 12px; position: relative; transition: all .22s ease; }
.panel-nav a:hover { transform: translateX(-3px); }
.panel-nav a.active {
  background: linear-gradient(120deg, rgba(139,92,246,.30), rgba(45,212,191,.14));
  border: none; box-shadow: inset 0 0 0 1px rgba(139,92,246,.4);
}
.panel-nav a.active::before {
  content: ""; position: absolute; right: 5px; top: 22%; bottom: 22%; width: 3px;
  border-radius: 3px; background: linear-gradient(180deg, #8b5cf6, #2dd4bf);
  box-shadow: 0 0 8px rgba(139,92,246,.8);
}
/* کادرهای محتوا: سطح تیره مات به‌جای شیشه */
.panel-main .glass,
.panel-main .panel-box,
.panel-main .stat-card,
.panel-main .filter-tabs,
.panel-main .t-body {
  background: linear-gradient(160deg, rgba(23,17,42,.97), rgba(13,10,24,.97));
  backdrop-filter: none;
  border: 1px solid rgba(139,92,246,.13);
}
.panel-main .panel-box:hover { border-color: rgba(139,92,246,.32); box-shadow: 0 16px 44px rgba(88,28,135,.22); }
.panel-box::after, .stat-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.65), rgba(45,212,191,.55), transparent);
  pointer-events: none;
}
/* نوار بالای پنل (سلام ... + بازگشت به سایت): کاملا ساده، بدون شیشه و کاور */
.panel-main .panel-topbar {
  background: none; border: none; box-shadow: none; backdrop-filter: none;
  padding: 6px 4px; border-radius: 0;
}
@media (max-width: 980px) {
  .panel-shell { padding: 14px; gap: 14px; }
  .panel-main { padding: 4px 2px 24px; }
}

/* ===== راند جدید: لایه بازطراحی متین، منوی موبایل، پنل مدیران ===== */

/* --- لایه متین: کمتر نئونی، پخته‌تر --- */
:root { --shadow-glow: 0 10px 30px rgba(124,58,237,.20); }
.glass { border-color: rgba(255,255,255,.08); }
.btn { border-radius: 12px; transition: transform .18s ease, box-shadow .25s ease, background .25s ease, color .25s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 8px 22px rgba(124,58,237,.28); }
.eyebrow { letter-spacing: 2.5px; opacity: .85; }
.scroll-cue { opacity: .35; }
.hero p.lead { color: rgba(226,220,240,.78); }
.particles { opacity: .55; }
.auth-blocks { opacity: .65; }
.gm-card:hover, .product-card:hover { transform: translateY(-4px); }

/* --- هیرو: گرادیان بنفش پررنگ‌تر ولی خوانا (فقط متن بزرگ) --- */
.hero h1 {
  background: linear-gradient(105deg, #f5f3ff 0%, #d8b4fe 28%, #a855f7 55%, #8b5cf6 78%, #c4b5fd 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 span {
  background: linear-gradient(120deg, #e9d5ff, #a855f7 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --- منوی موبایل: بازوبست انیمیشنی --- */
@media (max-width: 760px) {
  .main-nav.open { animation: vmcNavDrop .34s cubic-bezier(.22,.9,.36,1) both; transform-origin: top center; }
  .main-nav.closing { display: flex; animation: vmcNavUp .24s ease both; pointer-events: none; }
  .main-nav.open > a { opacity: 0; animation: vmcNavItem .3s ease forwards; }
  .main-nav.open > a:nth-child(1) { animation-delay: .04s; }
  .main-nav.open > a:nth-child(2) { animation-delay: .08s; }
  .main-nav.open > a:nth-child(3) { animation-delay: .12s; }
  .main-nav.open > a:nth-child(4) { animation-delay: .16s; }
  .main-nav.open > a:nth-child(5) { animation-delay: .20s; }
  .main-nav.open > a:nth-child(6) { animation-delay: .24s; }
  .main-nav.open > a:nth-child(7) { animation-delay: .28s; }
  .main-nav.open > a:nth-child(8) { animation-delay: .32s; }
  .main-nav.closing > a { animation: none; opacity: 1; }
}
@keyframes vmcNavDrop {
  from { opacity: 0; transform: translateY(-14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes vmcNavUp {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-12px) scale(.98); }
}
@keyframes vmcNavItem {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* --- حذف هایلایت آبی لمس + افکت فشردن نرم --- */
* { -webkit-tap-highlight-color: transparent; }
a, button, input, textarea, select, label { -webkit-tap-highlight-color: transparent; }
@media (hover: none) {
  .btn:active, .main-nav a:active, .panel-nav a:active, .gm-card:active,
  .product-card:active, .bcard:active, .badge-pill:active, .nav-toggle:active,
  .copy-btn:active, .footer-col a:active {
    transform: scale(.97);
    filter: brightness(1.1);
    transition: transform .12s ease, filter .12s ease;
  }
}

/* --- کادر نماد درگاه کنار اینماد --- */
.trust-row { display: flex; align-items: flex-start; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.trust-row .enamad-official { margin-top: 0; }
.gateway-slot { margin-top: 0; flex-direction: column; gap: 6px; text-align: center; padding: 8px; }
.dev-credit { color: var(--turquoise-2); font-weight: 700; }

/* --- پنل مدیران --- */
.admin-rank { color: #f59e0b; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.admin-stats .stat-card { padding: 16px 14px; text-align: center; border-radius: 16px; }
.admin-stats .s-num { display: block; font-size: 1.45rem; font-weight: 900; color: #c4b5fd; }
.admin-stats .s-label { font-size: .74rem; color: var(--text-lo); }
.admin-frame-box { padding: 14px; }
.admin-frame { width: 100%; min-height: 74vh; border: none; border-radius: 12px; background: #fff; display: block; }
@media (max-width: 760px) {
  .admin-frame { min-height: 64vh; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
