/* =========================================================
   طالب فارماسی — تم زنده و پرانرژی (روی base/store/panel اعمال می‌شود)
   ========================================================= */
body.store { background: #f6faf9; background-image:
  radial-gradient(900px 500px at 105% -5%, rgba(34, 211, 238, .12), transparent 60%),
  radial-gradient(800px 500px at -10% 10%, rgba(52, 211, 153, .14), transparent 60%),
  radial-gradient(700px 400px at 50% 110%, rgba(255, 122, 69, .08), transparent 60%);
  background-attachment: fixed; }

/* ---------- دکمه‌ها */
.btn { background: var(--grad-main); box-shadow: 0 6px 16px -6px rgba(5, 150, 105, .55); transition: transform .18s var(--ease), box-shadow .18s, filter .18s; }
.btn:hover { background: var(--grad-main); filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(5, 150, 105, .6); }
.btn-coral, .btn-coral:hover { background: var(--grad-warm); box-shadow: 0 8px 20px -8px rgba(255, 77, 109, .6); }
.btn-ghost, .btn-ghost:hover { background: rgba(255, 255, 255, .7); box-shadow: none; }
.btn-ghost:hover { border-color: var(--pine-500); color: var(--pine-800); }
.btn-soft { background: var(--pine-100); color: var(--pine-800); box-shadow: none; }
.btn-soft:hover { background: var(--pine-200); filter: none; box-shadow: none; }
.btn-danger { background: var(--red-100); color: var(--red); box-shadow: none; }
.btn-danger:hover { background: var(--red); color: #fff; box-shadow: none; }
.btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(120%); transition: transform .6s; pointer-events: none; }
.btn { position: relative; overflow: hidden; }
.btn:hover::after { transform: translateX(-120%); }
.btn-ghost::after, .btn-soft::after, .btn-danger::after { display: none; }

/* ---------- نوار بالا و هدر */
.topbar { background: var(--grad-main); color: #ecfeff; }
.topbar .ann { animation: ann 6s ease-in-out infinite; }
@keyframes ann { 0%, 100% { opacity: 1 } 50% { opacity: .82 } }
.header { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); transition: box-shadow .25s, background .25s; }
.header.scrolled { box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .35); background: rgba(255, 255, 255, .92); }
.logo-mark { background: var(--grad-main); box-shadow: 0 8px 18px -8px rgba(5, 150, 105, .7); transition: transform .4s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-text b { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search input { background: #fff; border: 1.5px solid var(--line); }
.search input:focus { border-color: var(--pine-500); box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.hbtn.primary { background: var(--grad-warm); border: 0; box-shadow: 0 8px 18px -8px rgba(255, 77, 109, .6); }
.hbtn.primary:hover { filter: brightness(1.06); }
.hbtn .badge { background: var(--sun); color: #3b2300; }
.hbtn .badge.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.5) } 60% { transform: scale(.9) } }
.nav-cats { background: var(--grad-main) !important; color: #fff !important; }
.nav-cats .ic { color: #fff !important; }
.nav-link .ic { color: var(--pine-600); }

/* ---------- هیرو */
.hero-slide { isolation: isolate; }
.hero-slide.pine { background: linear-gradient(130deg, #047857 0%, #0d9488 45%, #0891b2 100%); }
.hero-slide.coral { background: linear-gradient(130deg, #ff7a45, #ff4d6d); color: #fff; }
.hero-slide.sky { background: linear-gradient(130deg, #0ea5e9, #6366f1); color: #fff; }
.hero-slide.cream { background: linear-gradient(130deg, #fef3c7, #ffedd5); }
.hero-slide.coral .btn, .hero-slide.sky .btn { background: #fff; color: #0f172a; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.hero-slide.pine .btn { background: var(--grad-sun); color: #3b2300; }
.hero-slide::before, .hero-slide::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; filter: blur(2px); }
.hero-slide::before { width: 340px; height: 340px; left: -80px; top: -120px; background: rgba(255, 255, 255, .14); animation: float1 12s ease-in-out infinite; }
.hero-slide::after { width: 220px; height: 220px; left: 32%; bottom: -110px; background: rgba(255, 209, 102, .28); animation: float2 14s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(40px, 30px) scale(1.08) } }
@keyframes float2 { 50% { transform: translate(-30px, -20px) scale(.92) } }
.hero-art { animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px) rotate(-1deg) } }
.hero-slide h1, .hero-slide h2 { text-shadow: 0 2px 18px rgba(0, 0, 0, .12); }
.hero-mini { transition: transform .3s var(--ease), box-shadow .3s; }
.hero-mini:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -20px rgba(15, 23, 42, .4); }
.hero-mini.mini-warm { background: linear-gradient(135deg, #ffedd5, #ffe4e6) !important; }
.hero-mini.mini-fresh { background: linear-gradient(135deg, #d1fae5, #cffafe) !important; }

/* ---------- آمار متحرک */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.stat-pill { border-radius: 18px; padding: 16px 18px; color: #fff; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.stat-pill:nth-child(1) { background: var(--grad-main); }
.stat-pill:nth-child(2) { background: var(--grad-warm); }
.stat-pill:nth-child(3) { background: var(--grad-grape); }
.stat-pill:nth-child(4) { background: var(--grad-sun); color: #3b2300; }
.stat-pill b { font-size: 26px; font-weight: 800; display: block; line-height: 1.2; }
.stat-pill small { opacity: .9; font-weight: 600; }
.stat-pill .ic-big { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex-shrink: 0; }
.stat-pill::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); left: -30px; bottom: -50px; }

/* ---------- مزایا و دسته‌ها */
.perk { background: rgba(255, 255, 255, .8); transition: transform .25s var(--ease), box-shadow .25s; }
.perk:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.perk:nth-child(1) .ic-box { background: var(--grad-fresh); color: #fff; }
.perk:nth-child(2) .ic-box { background: var(--grad-warm); color: #fff; }
.perk:nth-child(3) .ic-box { background: var(--grad-grape); color: #fff; }
.perk:nth-child(4) .ic-box { background: var(--grad-sun); color: #3b2300; }
.section-head h2::before { width: 8px; background: var(--grad-warm); border-radius: 4px; }
.section-head .more { padding: 6px 12px; border-radius: 99px; background: var(--pine-50); }
.section-head .more:hover { background: var(--pine-100); }
.cat-tile { background: rgba(255, 255, 255, .85); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.cat-tile:hover { transform: translateY(-6px) rotate(-.5deg); box-shadow: 0 16px 32px -18px rgba(5, 150, 105, .5); border-color: var(--pine-200); }
.cat-tile .ic-box { transition: transform .4s var(--ease); }
.cat-tile:hover .ic-box { transform: scale(1.12) rotate(-6deg); }
.tint-mint { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.tint-peach { background: linear-gradient(135deg, #ffedd5, #fed7aa); }
.tint-sky { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.tint-sand { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.tint-lilac { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.tint-rose { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }

/* ---------- کارت محصول */
.pcard { background: rgba(255, 255, 255, .92); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; --mx: 50%; --my: 50%; }
.pcard::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(16, 185, 129, .12), transparent 60%); }
.pcard:hover { transform: translateY(-6px); box-shadow: 0 22px 40px -24px rgba(15, 23, 42, .45); border-color: var(--pine-200); }
.pcard:hover::before { opacity: 1; }
.tag-off { background: var(--grad-warm); box-shadow: 0 4px 10px -4px rgba(255, 77, 109, .6); }
.tag-rx { background: var(--purple-100); color: var(--purple); }
.add-btn { background: var(--grad-main); color: #fff; box-shadow: 0 6px 14px -6px rgba(5, 150, 105, .6); transition: transform .2s var(--ease), filter .2s; }
.add-btn:hover { transform: scale(1.1) rotate(90deg); filter: brightness(1.08); background: var(--grad-main); }
.price b { color: var(--ink); }
.price del { text-decoration-color: var(--coral); }

/* ---------- پیشنهاد شگفت‌انگیز */
.deals { background: linear-gradient(120deg, #ff5a4e 0%, #ff4d6d 40%, #c026d3 100%); border-radius: 26px; padding: 22px; display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; color: #fff; position: relative; overflow: hidden; }
.deals::before { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; right: -120px; top: -160px; background: rgba(255, 255, 255, .12); }
.deals-head { text-align: center; position: relative; }
.deals-head h2 { font-size: 26px; margin-bottom: 6px; color: #fff; }
.deals-head .zap { width: 64px; height: 64px; border-radius: 20px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; margin: 0 auto 10px; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5) } 50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0) } }
.countdown-box { display: flex; gap: 6px; justify-content: center; margin: 10px 0 14px; direction: ltr; }
.countdown-box span { background: #fff; color: #e11d48; font-weight: 800; border-radius: 10px; min-width: 42px; padding: 6px 4px; font-size: 18px; line-height: 1.2; }
.countdown-box small { display: block; font-size: 10px; color: var(--muted); font-weight: 600; }
.deals .products { position: relative; }
.deals .pcard { border: 0; }

/* ---------- نوار متحرک برندها */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee .brand-tile { min-width: 160px; }
@keyframes marquee { to { transform: translateX(50%) } }

/* ---------- باشگاه */
.club { background: linear-gradient(125deg, #042f2e 0%, #065f46 45%, #0e7490 100%); }
.club-item { backdrop-filter: blur(6px); transition: transform .3s var(--ease); }
.club-item:hover { transform: translateY(-4px); }
.club-item .big { background: var(--grad-sun); -webkit-background-clip: text; background-clip: text; color: transparent; }
.post-card { transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-5px); }
.footer { background: #fff; position: relative; }
.footer::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, #10b981, #06b6d4, #8b5cf6, #ff4d6d, #ffb020); }
.socials a { background: var(--grad-main); color: #fff; }
.bottom-nav a.on { color: var(--pine-700); }
.bottom-nav a.on .ic { filter: drop-shadow(0 4px 8px rgba(16, 185, 129, .45)); }

/* ---------- صفحه محصول و خرید */
.buy-box { border: 0; box-shadow: 0 20px 44px -28px rgba(15, 23, 42, .45); }
.buy-box .price b { background: var(--grad-main); -webkit-background-clip: text; background-clip: text; color: transparent; }
.variants input:checked + span { border-color: var(--pine-500); background: var(--pine-50); box-shadow: 0 0 0 3px rgba(16, 185, 129, .15); }
.tabs .on { border-image: var(--grad-main) 1; }
.steps .step.on i { background: var(--grad-main); }
.choice:has(input:checked) { border-color: var(--pine-500); background: var(--pine-50); box-shadow: 0 0 0 3px rgba(16, 185, 129, .12); }
.choice.on { border-color: var(--pine-500); background: var(--pine-50); }
.ship-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.ship-pickup .ship-ic { background: var(--grad-grape); }
.ship-snapp .ship-ic { background: linear-gradient(135deg, #22c55e, #16a34a); }
.ship-post .ship-ic { background: var(--grad-sun); color: #3b2300; }
.ship-fixed .ship-ic { background: var(--grad-main); }
.progress > span { background: var(--grad-main); }
.progress.coral > span { background: var(--grad-warm); }

/* ---------- پروفایل مشتری */
.profile-hero { border-radius: 26px; padding: 26px; color: #fff; position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: linear-gradient(125deg, #047857 0%, #0d9488 40%, #0891b2 75%, #6366f1 100%); margin-bottom: 18px; }
.profile-hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; left: -90px; top: -150px; background: rgba(255, 255, 255, .12); }
.profile-hero::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; left: 35%; bottom: -100px; background: rgba(255, 209, 102, .25); }
.ph-avatar { width: 84px; height: 84px; border-radius: 26px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; font-size: 34px; font-weight: 800; overflow: hidden; position: relative; z-index: 1; border: 3px solid rgba(255, 255, 255, .5); }
.ph-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ph-info { position: relative; z-index: 1; }
.ph-info h1 { color: #fff; font-size: 24px; margin: 0 0 4px; }
.tier { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-weight: 800; font-size: 13px; }
.tier-bronze { background: linear-gradient(135deg, #fcd9b6, #e7a36b); color: #5a2d0c; }
.tier-silver { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); color: #1e293b; }
.tier-gold { background: var(--grad-sun); color: #3b2300; box-shadow: 0 0 0 0 rgba(255, 209, 102, .7); animation: pulse 2.4s infinite; }
.ph-ring { position: relative; z-index: 1; text-align: center; }
.ring { --v: 0; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(#ffd166 calc(var(--v) * 1%), rgba(255, 255, 255, .25) 0); display: grid; place-items: center; margin: 0 auto 4px; }
.ring span { width: 82px; height: 82px; border-radius: 50%; background: rgba(4, 47, 46, .55); display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.acc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-card { border-radius: 20px; padding: 18px; color: #fff; position: relative; overflow: hidden; transition: transform .3s var(--ease); display: block; }
.acc-card:hover { transform: translateY(-4px); }
.acc-card small { opacity: .9; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.acc-card b { display: block; font-size: 24px; margin-top: 6px; }
.acc-card .cur { color: inherit; opacity: .8; }
.acc-card::after { content: ""; position: absolute; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, .14); left: -30px; bottom: -50px; }
.acc-card.c1 { background: var(--grad-main); } .acc-card.c2 { background: var(--grad-warm); }
.acc-card.c3 { background: var(--grad-grape); } .acc-card.c4 { background: var(--grad-sun); color: #3b2300; }
.acc-side.card { border: 0; box-shadow: 0 16px 36px -26px rgba(15, 23, 42, .45); }
.acc-menu a.on { background: var(--grad-main); color: #fff; box-shadow: 0 8px 18px -10px rgba(5, 150, 105, .7); }
.acc-menu a.on .ic { color: #fff; }
.wallet-hero { background: linear-gradient(125deg, #064e3b, #0e7490 60%, #6366f1); }
.ref-hero { background: linear-gradient(125deg, #ff5a4e, #ff4d6d 45%, #c026d3) !important; }
.qr-box { background: #fff; border-radius: 16px; padding: 10px; width: 132px; height: 132px; display: grid; place-items: center; flex-shrink: 0; }
.qr-box canvas, .qr-box img { width: 112px !important; height: 112px !important; }
.reorder { white-space: nowrap; }
.auth-badge { width: 52px; height: 52px; border-radius: 16px; background: var(--grad-main); color: #fff; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 10px 22px -10px rgba(5, 150, 105, .7); }

/* ---------- آشکار شدن هنگام اسکرول */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.fly { position: fixed; z-index: 500; width: 64px; height: 64px; border-radius: 16px; object-fit: cover; pointer-events: none; box-shadow: 0 12px 24px rgba(0,0,0,.25);
  transition: transform .75s cubic-bezier(.5, -.3, .4, 1.2), opacity .75s; }
.skeleton { background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 50%, #eef2f6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0 } }

@media (max-width: 900px) {
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .deals { grid-template-columns: 1fr; }
  .acc-cards { grid-template-columns: 1fr 1fr; }
  .profile-hero { grid-template-columns: auto 1fr; }
  .ph-ring { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; text-align: right; }
  .ph-ring .ring { margin: 0; width: 84px; height: 84px; }
  .ph-ring .ring span { width: 66px; height: 66px; font-size: 16px; }
}
@media (max-width: 600px) {
  .stat-pill { padding: 12px; } .stat-pill b { font-size: 20px; } .stat-pill .ic-big { width: 38px; height: 38px; }
  .ph-avatar { width: 64px; height: 64px; font-size: 26px; border-radius: 20px; }
  .ph-info h1 { font-size: 19px; }
}

/* =================== پنل =================== */
.side { background: linear-gradient(180deg, #042f2e 0%, #053b3a 55%, #0b3a4d 100%); }
.side a.si.on { background: var(--grad-main); box-shadow: 0 8px 18px -10px rgba(16, 185, 129, .8); }
.side a.si .cnt { background: var(--grad-warm); }
.side-brand .logo-mark { background: var(--grad-fresh); }
.kpi { position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: var(--grad-main); }
.kpis > .kpi:nth-child(2)::before { background: var(--grad-warm); }
.kpis > .kpi:nth-child(3)::before { background: var(--grad-grape); }
.kpis > .kpi:nth-child(4)::before { background: var(--grad-sun); }
.kpis > .kpi:nth-child(1) .ic-box { background: var(--grad-main); color: #fff; }
.kpis > .kpi:nth-child(2) .ic-box { background: var(--grad-warm); color: #fff; }
.kpis > .kpi:nth-child(3) .ic-box { background: var(--grad-grape); color: #fff; }
.kpis > .kpi:nth-child(4) .ic-box { background: var(--grad-sun); color: #3b2300; }
.page-head h1 .ic { color: var(--pine-600); }
.seg a.on { box-shadow: 0 4px 12px -6px rgba(15, 23, 42, .3); }
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.level-card { border-radius: 18px; padding: 16px; color: #fff; position: relative; overflow: hidden; }
.level-card b { font-size: 16px; display: block; margin: 4px 0; }
.level-card p { font-size: 12.5px; opacity: .92; margin: 0 0 6px; line-height: 1.8; }
.level-card small { font-size: 12px; opacity: .85; }
.level-card .lv-num { position: absolute; left: 14px; top: 8px; font-size: 40px; font-weight: 800; opacity: .25; }
.lv-admin { background: var(--grad-warm); } .lv-operator { background: var(--grad-grape); }
.lv-support { background: linear-gradient(135deg, #0ea5e9, #2563eb); } .lv-customer { background: var(--grad-main); }
.notif-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.notif-row:hover { background: var(--pine-50); }
.notif-row b { display: block; font-size: 14px; }
.notif-row small { color: var(--muted); }
.notif-row .notif-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 8px; background: var(--line); flex-shrink: 0; }
.notif-row.unread .notif-dot { background: var(--blue); }
.notif-row.unread.lv-danger .notif-dot { background: var(--red); } .notif-row.unread.lv-warning .notif-dot { background: var(--amber); }
.notif-row.unread.lv-success .notif-dot { background: var(--green); }
.notif-row.unread { background: #f8fbff; }
.nf-pop { width: 340px; max-height: 420px; overflow-y: auto; }
.nf-pop .notif-row { padding: 10px 12px; }
.health-hero { display: flex; gap: 22px; align-items: center; padding: 22px; flex-wrap: wrap; }
.health-stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.hc { border-bottom: 1px solid var(--line-2); }
.hc summary { display: flex; gap: 12px; align-items: center; padding: 12px 18px; cursor: pointer; list-style: none; }
.hc summary::-webkit-details-marker { display: none; }
.hc summary b { display: block; font-size: 14px; }
.hc summary small { color: var(--muted); font-size: 12.5px; }
.hc-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0; }
.hc-ok .hc-ic { background: var(--green-100); color: var(--green); }
.hc-warn .hc-ic { background: var(--amber-100); color: var(--amber); }
.hc-error .hc-ic { background: var(--red-100); color: var(--red); }
.hc-error summary { background: #fff7f7; }
.hc-body { padding: 0 60px 14px 18px; }
.hc-body pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 10px; font-size: 12px; overflow-x: auto; max-height: 260px; white-space: pre-wrap; }
.task-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 16px; }
.task { border-radius: 16px; padding: 14px; background: var(--paper); border: 1px solid var(--line-2); text-align: center; }
.task b { display: block; font-size: 26px; }
.task span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.task.bad b { color: var(--red); } .task.warn b { color: var(--amber); } .task.good b { color: var(--green); }
.kw-chip { border: 1px dashed var(--pine-500); background: var(--pine-50); color: var(--pine-800); border-radius: 99px; padding: 3px 12px; font-size: 12.5px; cursor: pointer; font-family: var(--font); }
.kw-chip:hover { background: var(--pine-100); }
html[data-theme="dark"] .pcard, html[data-theme="dark"] .perk, html[data-theme="dark"] .cat-tile { background: var(--paper); }
html[data-theme="dark"] .notif-row.unread, html[data-theme="dark"] .hc-error summary { background: rgba(255, 255, 255, .03); }
@media (max-width: 1100px) { .levels { grid-template-columns: 1fr 1fr; } .task-grid { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

.products.row-scroll { scrollbar-width: none; }
.products.row-scroll::-webkit-scrollbar { display: none; }

/* =================== سامانه امنیت پلتفرم =================== */
body.sec-body { background: #0b1220; background-image: radial-gradient(700px 400px at 90% -10%, rgba(34, 211, 238, .12), transparent 60%), radial-gradient(600px 400px at 0% 0%, rgba(139, 92, 246, .12), transparent 60%); min-height: 100vh; }
.sec-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 28px; flex-wrap: wrap; }
.sec-brand { display: flex; gap: 12px; align-items: center; color: #fff; }
.sec-brand b { display: block; font-size: 18px; line-height: 1.4; }
.sec-brand small { color: #94a3b8; }
.sec-mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #06b6d4, #8b5cf6); box-shadow: 0 10px 26px -10px rgba(139, 92, 246, .8); }
.sec-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sec-tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid rgba(148, 163, 184, .18); overflow-x: auto; }
.sec-tabs a { display: inline-flex; gap: 7px; align-items: center; padding: 11px 14px; color: #94a3b8; font-size: 14px; font-weight: 700; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.sec-tabs a:hover { color: #e2e8f0; }
.sec-tabs a.on { color: #67e8f9; border-color: #22d3ee; }
.sec-main { padding: 24px 28px 60px; max-width: 1400px; margin: 0 auto; }
.approval-box { border: 2px solid var(--coral); }
@media (max-width: 600px) { .sec-top, .sec-main { padding-inline: 16px; } .sec-tabs { padding-inline: 12px; } }

.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tool-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.tool-card.on { border-color: var(--pine-500); }
.tool-card p { margin: 0; }
.tool-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-main); color: #fff; flex-shrink: 0; }

.quick-strip { border-top: 1px solid var(--line-2); background: var(--paper); }
.quick-strip .container { display: flex; gap: 8px; overflow-x: auto; padding-block: 7px; }
.quick-strip a { white-space: nowrap; font-size: 13px; padding: 3px 12px; border-radius: 999px; background: var(--pine-50); color: var(--pine-900); }
.quick-strip a:hover { background: var(--pine-100); }

.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.bundle-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.bundle-card h3 { margin: 0; font-size: 16px; } .bundle-card ul { margin: 0; padding: 0; list-style: none; font-size: 13px; flex: 1; } .bundle-card li { padding: 2px 0; }
.bundle-imgs { display: flex; gap: 6px; } .bundle-imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--cream); }
.bundle-card .foot { display: flex; align-items: center; justify-content: space-between; } .bundle-card del { color: var(--muted); font-size: 12px; display: block; }
.tag-near { background: var(--amber-100); color: var(--amber); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; display: inline-flex; gap: 3px; align-items: center; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .active-filters a { background: var(--pine-50); color: var(--pine-900); border-radius: 999px; padding: 3px 11px; font-size: 13px; }
.sticky-buy { display: none; }
.pcard { transition: transform .18s ease, box-shadow .18s ease; } .pcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(4 47 46 / .10); }
.cart-layout > aside, .cart-layout > div:last-child > .summary { position: sticky; top: 96px; align-self: start; }
@media (max-width: 760px) { .sticky-buy { display: flex; position: fixed; inset-inline: 0; bottom: 62px; z-index: 30; background: var(--paper); border-top: 1px solid var(--line); padding: 8px 16px; align-items: center; justify-content: space-between; } }

.account > * { min-width: 0; }
@media (max-width: 980px) { .account { grid-template-columns: minmax(0, 1fr); } }
.quick-strip a { padding-block: 7px; }
.back { display: inline-flex; align-items: center; min-height: 36px; }

@media (max-width: 600px) { .credit-row { flex-wrap: wrap; gap: 8px; } .credit-row .flex { flex-wrap: wrap; } }
