/* ============ SMM Pro - استایل اصلی ============ */

:root {
  --primary: #6366f1;
  --primary-2: #8b5cf6;
  --primary-dark: #4f46e5;
  --grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --ok: #10b981;
  --info: #3b82f6;
  --warn: #f59e0b;
  --err: #ef4444;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 60px rgba(79, 70, 229, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 15px;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; transition: .2s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.5; font-weight: 700; }
.muted { color: var(--muted); font-size: 13.5px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer; transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(99, 102, 241, .35); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(99, 102, 241, .45); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: rgba(99, 102, 241, .06); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { color: #fff; filter: brightness(.92); }
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- فرم‌ها ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
label.fld { display: block; }
label.fld > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=tel], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--card); color: var(--text); font: inherit; transition: .2s; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(99, 102, 241, .12); }
textarea { min-height: 120px; resize: vertical; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check-line input { width: 18px; height: 18px; accent-color: var(--primary); }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* ---------- چیپ‌ها و برچسب‌ها ---------- */
.chip {
  display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 2;
}
.c-ok { background: rgba(16, 185, 129, .12); color: #047857; }
.c-info { background: rgba(59, 130, 246, .12); color: #1d4ed8; }
.c-warn { background: rgba(245, 158, 11, .14); color: #b45309; }
.c-err { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.c-muted { background: rgba(100, 116, 139, .12); color: #475569; }
.c-primary { background: rgba(99, 102, 241, .12); color: var(--primary-dark); }

/* ---------- هشدارها ---------- */
.alerts { position: fixed; top: 18px; inset-inline-end: 18px; z-index: 999; display: grid; gap: 10px; max-width: 380px; }
.alert {
  display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 14px;
  font-size: 14px; font-weight: 500; color: #fff; box-shadow: var(--shadow-lg); animation: slideIn .35s;
}
.alert.success { background: linear-gradient(135deg, #10b981, #059669); }
.alert.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.alert.warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.alert.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }

/* ---------- کارت عمومی ---------- */
.card {
  background: var(--card); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7);
}
.section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: 30px; margin-bottom: 10px; }
.section-head .muted { font-size: 15px; }
.section-head .section-tag {
  display: inline-block; background: rgba(99, 102, 241, .1); color: var(--primary-dark);
  padding: 4px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
/* ---------- نوار سایت ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand.light { color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; background: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 16px;
  box-shadow: 0 6px 16px rgba(99, 102, 241, .4);
}
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { padding: 8px 15px; border-radius: 10px; color: #334155; font-weight: 500; font-size: 14.5px; }
.nav-links a:hover { background: rgba(99, 102, 241, .08); color: var(--primary); }
.nav-links a.active { background: var(--grad); color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; gap: 2px; background: #f1f5f9; border-radius: 10px; padding: 3px; }
.lang-switch a { padding: 4px 9px; border-radius: 8px; font-size: 15px; }
.lang-switch a.active { background: #fff; box-shadow: 0 2px 6px rgba(15, 23, 42, .1); }
.nav-toggle, .panel-toggle-cb { display: none; }
.hamburger { display: none; }

/* ---------- هیرو ---------- */
.hero { padding: 90px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 130%; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(99, 102, 241, .14), transparent),
    radial-gradient(600px 300px at 80% 10%, rgba(139, 92, 246, .12), transparent);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 6px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary-dark);
  box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.4; margin-bottom: 18px; }
.hero h1 b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 640px; margin: 0 auto 34px; color: var(--muted); font-size: 16.5px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-lg { padding: 15px 34px; font-size: 16px; border-radius: 14px; }

/* ---------- آمار ---------- */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin: 60px 0 10px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); }
.stat-card .num { font-size: 32px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .lbl { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.stat-card i { font-size: 22px; color: var(--primary); margin-bottom: 10px; }

/* ---------- پلتفرم‌ها ---------- */
.platform-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.platform-pill {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  padding: 10px 22px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
}
.platform-pill i { font-size: 18px; }

/* ---------- خدمات ---------- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.service-card { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); transition: .25s; position: relative; overflow: hidden; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card .svc-icon {
  width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 21px; margin-bottom: 16px; background: var(--grad);
}
.service-card h3 { font-size: 17px; margin-bottom: 8px; }
.service-card .muted { font-size: 13px; min-height: 60px; }
.service-card .svc-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
.service-card .svc-price b { color: var(--primary-dark); font-size: 16px; }
/* ---------- ویژگی‌ها و مراحل ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.feature-card { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); }
.feature-card .f-icon { width: 50px; height: 50px; border-radius: 14px; background: rgba(99, 102, 241, .1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; }
.feature-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feature-card .muted { font-size: 13.5px; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; counter-reset: step; }
.step-card { background: var(--card); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); position: relative; margin-top: 18px; }
.step-card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; inset-inline-start: 24px; width: 42px; height: 42px;
  background: var(--grad); color: #fff; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 18px; box-shadow: 0 8px 18px rgba(99, 102, 241, .4);
}
.step-card h3 { margin: 14px 0 8px; font-size: 16.5px; }
.step-card .muted { font-size: 13.5px; }

/* ---------- CTA و فوتر ---------- */
.cta-band {
  background: var(--grad); border-radius: 26px; padding: 60px 40px; text-align: center; color: #fff;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { opacity: .9; margin-bottom: 26px; }
.cta-band .btn { background: #fff; color: var(--primary-dark); }
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.4fr 1.6fr; gap: 34px; padding: 60px 20px 40px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; color: #94a3b8; font-size: 13.5px; padding: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: #94a3b8; display: block; font-size: 13.5px; padding: 3px 0; }
.footer-col .muted i { width: 18px; color: var(--primary-2); }
.news-form { display: flex; gap: 8px; margin-top: 12px; }
.news-form input { background: #1e293b; border-color: #334155; color: #e2e8f0; }
.footer-bottom { border-top: 1px solid #1e293b; }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 18px 20px; font-size: 13px; color: #64748b; }
/* ---------- احراز هویت ---------- */
.auth-wrap { min-height: calc(100vh - 70px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-form .card { width: 100%; max-width: 440px; padding: 38px; }
.auth-form h2 { font-size: 24px; margin-bottom: 6px; }
.auth-form > .card > .muted { margin-bottom: 26px; }
.auth-visual {
  background: linear-gradient(140deg, #4f46e5, #7c3aed 55%, #a855f7); color: #fff;
  display: flex; flex-direction: column; justify-content: center; padding: 60px;
  position: relative; overflow: hidden;
}
.auth-visual::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: rgba(255, 255, 255, .08); top: -120px; inset-inline-end: -120px; }
.auth-visual h3 { font-size: 26px; margin-bottom: 10px; }
.auth-visual p { opacity: .85; margin-bottom: 34px; }
.auth-stats { display: grid; gap: 18px; position: relative; }
.auth-stat { display: flex; gap: 14px; align-items: center; background: rgba(255, 255, 255, .12); padding: 14px 18px; border-radius: 14px; }
.auth-stat i { font-size: 20px; }
.auth-stat b { display: block; font-size: 15px; }
.auth-stat span { font-size: 12.5px; opacity: .8; }
.auth-links { display: flex; justify-content: space-between; margin-top: 20px; font-size: 13.5px; flex-wrap: wrap; gap: 8px; }

/* ---------- وبلاگ ---------- */
.blog-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 30px; }
.blog-toolbar select, .blog-toolbar input { max-width: 240px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); display: flex; flex-direction: column; transition: .25s; }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-cover { height: 190px; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 44px; font-weight: 800; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-body h3 { font-size: 17px; line-height: 1.7; }
.blog-meta { display: flex; gap: 16px; color: var(--muted); font-size: 12.5px; }
.blog-meta i { color: var(--primary); margin-inline-end: 4px; }
.post-hero { padding: 60px 0 10px; }
.post-hero h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.6; margin: 14px 0; }
.post-content { font-size: 15.5px; }
.post-content h2 { margin: 26px 0 12px; font-size: 21px; }
.post-content p { margin-bottom: 14px; color: #334155; }
.post-content img { border-radius: 14px; margin: 14px 0; }

/* ---------- درباره / تماس ---------- */
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.contact-info-item i { width: 42px; height: 42px; border-radius: 12px; background: rgba(99, 102, 241, .1); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.contact-info-item b { display: block; font-size: 14.5px; }
.contact-info-item .muted { font-size: 13px; }
.map-box { border-radius: var(--radius); overflow: hidden; margin-top: 26px; background: linear-gradient(135deg, #1e293b, #334155); color: #94a3b8; display: flex; align-items: center; justify-content: center; min-height: 220px; flex-direction: column; gap: 10px; }
.map-box i { font-size: 34px; color: var(--primary-2); }
/* ---------- چیدمان پنل ---------- */
.panel-shell { display: flex; min-height: 100vh; }
.panel-side {
  width: 260px; flex-shrink: 0; background: #0f172a; color: #cbd5e1;
  display: flex; flex-direction: column; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.panel-side .brand { color: #fff; padding: 4px 10px 20px; }
.panel-menu { display: grid; gap: 3px; }
.panel-menu a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px;
  color: #94a3b8; font-size: 14px; font-weight: 500;
}
.panel-menu a i { width: 20px; text-align: center; font-size: 15px; }
.panel-menu a:hover { background: rgba(99, 102, 241, .15); color: #e2e8f0; }
.panel-menu a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(99, 102, 241, .35); }
.panel-menu a.danger:hover { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.menu-badge {
  margin-inline-start: auto; background: var(--err); color: #fff; border-radius: 999px;
  font-size: 11px; padding: 1px 8px; font-weight: 700;
}
.side-balance {
  margin-top: auto; background: #1e293b; border-radius: 16px; padding: 18px; text-align: center;
  display: grid; gap: 6px;
}
.side-balance > span { font-size: 12px; color: #94a3b8; }
.side-balance b { color: #fff; font-size: 17px; }
.side-balance .btn { margin-top: 8px; }

.panel-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bg); }
.panel-topbar {
  background: #fff; border-bottom: 1px solid var(--line); padding: 14px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 50;
}
.topbar-start { display: flex; align-items: center; gap: 14px; }
.topbar-start h1 { font-size: 18px; }
.topbar-end { display: flex; align-items: center; gap: 10px; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 13.5px; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; color: #fff; display: inline-flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.panel-content { padding: 26px; flex: 1; }
.panel-foot {
  border-top: 1px solid var(--line); padding: 14px 26px; display: flex;
  justify-content: space-between; flex-wrap: wrap; gap: 10px; background: #fff;
}

/* ---------- کارت‌های آماری پنل ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-bottom: 26px; }
.stat-sCard { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); display: flex; gap: 16px; align-items: center; }
.stat-sCard .ic { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff; flex-shrink: 0; }
.ic.g1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.ic.g2 { background: linear-gradient(135deg, #10b981, #34d399); }
.ic.g3 { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.ic.g4 { background: linear-gradient(135deg, #ec4899, #f472b6); }
.ic.g5 { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.ic.g6 { background: linear-gradient(135deg, #06b6d4, #22d3ee); }
.stat-sCard .tx b { display: block; font-size: 20px; }
.stat-sCard .tx span { font-size: 12.5px; color: var(--muted); }

/* ---------- جدول‌ها ---------- */
.table-wrap { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7); overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 600px; }
table.tbl th {
  text-align: start; padding: 13px 16px; background: #f8fafc; color: var(--muted);
  font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.tbl td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tr:hover td { background: #f8fafc; }
.tbl-empty { padding: 40px; text-align: center; color: var(--muted); }
.progress { height: 7px; background: #eef2f7; border-radius: 999px; overflow: hidden; min-width: 90px; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.pagination { display: flex; gap: 6px; margin-top: 22px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 13.5px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--grad); color: #fff; border-color: transparent; }
/* ---------- تب‌ها و سفارش جدید ---------- */
.tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 22px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--muted); transition: .2s;
}
.tab-btn.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(99, 102, 241, .3); }
.price-box {
  background: rgba(99, 102, 241, .06); border: 1.5px dashed rgba(99, 102, 241, .35); border-radius: 14px;
  padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
}
.price-box b { font-size: 21px; color: var(--primary-dark); }
.smart-result { margin-top: 22px; display: grid; gap: 18px; }
.funnel-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.funnel-row i { width: 38px; height: 38px; border-radius: 11px; background: rgba(99, 102, 241, .1); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.funnel-row .grow { flex: 1; }
.funnel-row input[type=checkbox] { width: 18px; height: 18px; flex: none; accent-color: var(--primary); cursor: pointer; }
.funnel-row label, label.funnel-row { cursor: pointer; }
.sched-bars { display: flex; gap: 6px; align-items: flex-end; height: 110px; padding-top: 8px; }
.sched-bars .bar { flex: 1; background: var(--grad); border-radius: 6px 6px 2px 2px; min-height: 5%; opacity: .85; }
.sched-bars .bar:hover { opacity: 1; }

/* ---------- گزارش حرفه‌ای «تحلیل هدف» (کارت ویژه) ---------- */
.smart-report { padding: 0; overflow: hidden; }
.sr-head { display: flex; gap: 14px; align-items: center; padding: 20px 22px;
  background: linear-gradient(135deg, rgba(99,102,241,.14), rgba(139,92,246,.05)); border-bottom: 1px solid var(--line); }
.sr-badge { width: 52px; height: 52px; flex: none; border-radius: 16px; background: var(--grad);
  color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.sr-head-text h4 { margin: 0 0 4px; }
.sr-head-text p { margin: 0; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 22px 4px; }
.sr-chip { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px;
  background: rgba(99,102,241,.07); border: 1px solid var(--line); min-width: 110px; }
.sr-chip i { color: var(--primary); font-size: 13px; }
.sr-chip b { font-size: 15px; }
.sr-chip small { color: var(--muted); font-size: 11px; }
.sr-curve { padding: 14px 22px 6px; }
.sr-curve h4 { margin-bottom: 10px; }
.sr-curve-bars { display: flex; gap: 7px; align-items: flex-end; height: 130px;
  background: linear-gradient(to top, rgba(99,102,241,.08), transparent 60%);
  border-bottom: 2px solid var(--line); padding: 10px 4px 0; border-radius: 10px 10px 0 0; }
.sr-curve-bars .sr-cbar { flex: 1; background: var(--grad); border-radius: 7px 7px 2px 2px; min-height: 6px;
  opacity: .85; transition: .25s; position: relative; }
.sr-curve-bars .sr-cbar:hover { opacity: 1; transform: scaleY(1.03); transform-origin: bottom; }
.sr-curve-axis { display: flex; justify-content: space-between; font-size: 11px; padding: 6px 4px 0; }
.sr-phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px 22px; }
.sr-phase { border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; display: grid; gap: 4px; }
.sr-phase-bar { height: 7px; border-radius: 6px; background: rgba(99,102,241,.12); overflow: hidden; }
.sr-phase-bar i { display: block; height: 100%; border-radius: 6px; background: var(--grad); }
.sr-phase b { font-size: 14px; }
.sr-phase span { font-size: 12px; }
.sr-phase small { color: var(--muted); font-size: 11px; line-height: 1.7; }
.sr-comp { padding: 6px 22px 10px; }
.sr-comp h4 { margin: 8px 0 10px; }
.sr-comp-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sr-comp-row > i { width: 38px; height: 38px; flex: none; border-radius: 11px; background: rgba(99,102,241,.1);
  color: var(--primary); display: flex; align-items: center; justify-content: center; }
.sr-comp-row .grow { flex: 1; min-width: 0; }
.sr-comp-row .muted { font-size: 12px; margin-top: 2px; }
.sr-share { height: 6px; border-radius: 6px; background: rgba(99,102,241,.12); overflow: hidden; margin-top: 7px; }
.sr-share i { display: block; height: 100%; background: var(--grad); border-radius: 6px; }
.sr-comp-cost { text-align: center; flex: none; }
.sr-comp-cost b { display: block; font-size: 15px; color: var(--primary-dark); }
.sr-comp-cost small { font-size: 11px; }
.sr-notes { list-style: none; margin: 8px 0 0; padding: 10px 22px 18px; display: grid; gap: 8px; }
.sr-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.9; }
.sr-notes li i { color: var(--primary); margin-top: 5px; }
.sr-warn { margin: 0 22px 16px; padding: 12px 14px; border-radius: 12px; font-size: 13px;
  background: rgba(245,158,11,.09); border: 1px solid rgba(245,158,11,.35); color: #b45309; }
.sr-warn b { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.sr-warn ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sr-warn li { position: relative; padding-inline-start: 14px; line-height: 1.9; }
.sr-warn li::before { content: '•'; position: absolute; inset-inline-start: 0; }
[data-theme="dark"] .sr-warn { color: #fcd34d; }
.sr-cta { margin: 0; padding: 14px 22px; background: rgba(16,185,129,.08); border-top: 1px solid var(--line);
  color: #059669; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ---------- نمودار داشبورد مدیریت ---------- */
.chart-box { display: flex; gap: 10px; align-items: flex-end; height: 170px; }
.chart-box .cbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart-box .cbar > i { width: 100%; background: var(--grad); border-radius: 8px 8px 3px 3px; min-height: 4px; transition: .3s; }
.chart-box .cbar > i:hover { filter: brightness(1.15); }
.chart-box .cbar span { font-size: 11px; color: var(--muted); }

/* ---------- تیکت‌ها ---------- */
.ticket-bubbles { display: grid; gap: 16px; }
.bubble { max-width: 82%; padding: 14px 18px; border-radius: 16px; font-size: 14px; line-height: 1.9; }
.bubble .b-meta { font-size: 11.5px; opacity: .7; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.bubble .b-att { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; margin-top: 8px; }
.bubble.user { background: #eef2ff; color: #3730a3; justify-self: start; border-start-start-radius: 4px; }
.bubble.admin { background: var(--grad); color: #fff; justify-self: end; border-start-end-radius: 4px; }
.bubble.admin .b-att { color: #fff; }

/* ---------- متفرقه ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 20px; }
.toolbar select, .toolbar input { max-width: 230px; }
.toolbar .grow { flex: 1; }
.code-box {
  font-family: monospace; background: #0f172a; color: #a5b4fc; border-radius: 12px;
  padding: 12px 16px; font-size: 13px; word-break: break-all; display: flex; justify-content: space-between; gap: 10px; align-items: center;
}
.page-404 { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; }
.page-404 .code { font-size: 90px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1.2; }
.notice-box { background: rgba(245, 158, 11, .1); border: 1px solid rgba(245, 158, 11, .35); color: #92400e; border-radius: 12px; padding: 12px 18px; font-size: 13.5px; margin-bottom: 18px; }
.copy-btn { cursor: pointer; background: none; border: 0; color: #a5b4fc; font-size: 15px; }
.hidden { display: none !important; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid, .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .nav-links {
    display: none; position: absolute; top: 70px; inset-inline: 0; background: #fff;
    flex-direction: column; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 4px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-wrap { position: relative; }
  .brand-text { display: none; }
  .nav-wrap:has(.nav-toggle:checked) .brand-text { display: none; }
  .panel-side {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 200;
    transform: translateX(calc(var(--dir-fix, -110%))); transition: .3s;
  }
  [dir="rtl"] .panel-side { --dir-fix: 110%; }
  [dir="ltr"] .panel-side { --dir-fix: -110%; }
  .panel-toggle-cb:checked ~ .panel-side { transform: none; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, .45); }
  .hamburger { display: inline-flex; width: 40px; height: 40px; border-radius: 11px; background: #f1f5f9; align-items: center; justify-content: center; cursor: pointer; }
  .user-chip-name { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 60px 0 30px; }
  .section { padding: 50px 0; }
  .panel-content { padding: 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .news-form { flex-direction: column; }
  .bubble { max-width: 100%; }
}

/* ---------- انیمیشن ورود ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.site-main > * { animation: fadeUp .5s; }
.panel-content > * { animation: fadeUp .45s; }

/* ---------- پنل‌های تب (اضافه‌شده برای صفحات سفارش) ---------- */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .35s; }
.alert .spin { margin-inline-end: 4px; }

/* ---------- لوگوی سایت (فاز ۵) ---------- */
.brand-logo { height: 40px; width: auto; max-width: 170px; object-fit: contain; display: block; }
.site-footer .brand-logo { height: 46px; }
.brand.light .brand-logo { max-width: 190px; }

/* ---------- مستندات API (فاز ۵) ---------- */
.api-box {
  font-family: monospace; background: #0f172a; color: #a5b4fc; border-radius: 12px;
  padding: 14px 16px; font-size: 13px; line-height: 1.9; overflow-x: auto;
  direction: ltr; text-align: left; white-space: pre; margin: 0;
}
.api-tbl { width: 100%; border-collapse: collapse; margin-top: 8px; }
.api-tbl th, .api-tbl td { padding: 10px 14px; border: 1px solid var(--line); font-size: 13.5px; text-align: left; vertical-align: top; }
.api-tbl th { background: #f8fafc; font-size: 12.5px; }
.api-tbl code {
  font-family: monospace; background: #eef2ff; color: #4338ca;
  padding: 2px 8px; border-radius: 6px; font-size: 12.5px; white-space: nowrap;
}
/* فهرست اکشن‌ها و عنوان گروه‌های مستندات API */
.doc-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.doc-toc .chip { text-decoration: none; font-family: monospace; direction: ltr; }
.doc-toc .chip:hover { filter: brightness(.95); }
.api-group {
  font-size: 20px; margin: 30px 0 14px; padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
}
.api-group i { margin-inline-end: 6px; }
.card h4 { font-size: 14px; color: var(--muted-clr, #64748b); margin: 18px 0 8px; }

/* ---------- ویرایشگر منو (فاز ۵) ---------- */
.menu-row {
  display: grid; gap: 10px; align-items: end;
  grid-template-columns: 1.1fr 1.1fr 1.5fr .8fr .5fr .8fr 44px;
  padding: 12px 0; border-bottom: 1px dashed var(--line);
}
.menu-row .btn { align-self: end; height: 42px; }
.menu-row input, .menu-row select { padding: 9px 12px; font-size: 13px; }
.menu-row .fld > span { font-size: 11.5px; margin-bottom: 4px; }
@media (max-width: 1024px) {
  .menu-row { grid-template-columns: 1fr 1fr; }
  .menu-row .fld-url, .menu-row .js-del-row { grid-column: 1 / -1; }
  .menu-row .js-del-row { height: 40px; }
}

/* ---------- ریکپچا ---------- */
.g-recaptcha { display: block; }

/* ---------- فاز ۷: بخش نصب اپلیکیشن PWA ---------- */
.pwa-band { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.pwa-band-icon {
  width: 84px; height: 84px; border-radius: 22px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; color: var(--primary);
  background: rgba(99, 102, 241, .12);
}
.pwa-band .pwa-features { list-style: none; padding: 0; margin: 12px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.pwa-band .pwa-features li { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.pwa-band .pwa-features li i { color: var(--primary); }
.pwa-band-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

/* ============================================================
 *  فاز ۸: ورود با گوگل + شماره مجازی
 * ============================================================ */

.auth-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border, rgba(148, 163, 184, 0.25)); }
.auth-sep span { color: var(--muted); font-size: 12px; white-space: nowrap; }

.btn-google {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #fff; color: #1f2937; border: 1px solid #d1d5db;
  font-weight: 600;
}
.btn-google:hover { background: #f8fafc; color: #111827; }
.btn-google i { color: #4285f4; }

/* شمارش معکوس اعتبار شماره مجازی */
.vnum-countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--primary); }

/* ---------- ویجت چت پشتیبانی هوش مصنوعی (همه صفحات) ---------- */
.ai-chat { position: fixed; left: 18px; bottom: 18px; z-index: 998; font: inherit; }
.ai-chat-launcher {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 22px;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .45); transition: transform .2s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center;
}
.ai-chat-launcher:hover { transform: translateY(-3px) scale(1.05); }
.ai-chat-box {
  position: absolute; left: 0; bottom: 68px; width: 340px; max-width: calc(100vw - 36px);
  background: #fff; border: 1.5px solid var(--line); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22); overflow: hidden;
  display: flex; flex-direction: column;
}
.ai-chat-box[hidden] { display: none; }
.ai-chat-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--grad); color: #fff;
}
.ai-chat-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none;
}
.ai-chat-head-info { display: flex; flex-direction: column; line-height: 1.35; flex: 1; min-width: 0; }
.ai-chat-head-info small { opacity: .85; font-size: 11px; }
.ai-chat-close {
  background: rgba(255, 255, 255, .18); border: 0; color: #fff; width: 30px; height: 30px;
  border-radius: 10px; cursor: pointer; font-size: 17px; line-height: 1; flex: none;
}
.ai-chat-close:hover { background: rgba(255, 255, 255, .32); }
.ai-chat-msgs {
  padding: 14px; min-height: 170px; max-height: 300px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px; background: #f8f9fc;
}
.ai-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.9;
  white-space: pre-wrap; word-break: break-word;
}
.ai-msg.bot {
  align-self: flex-start; background: #fff; border: 1px solid var(--line);
  border-start-start-radius: 4px;
}
.ai-msg.user {
  align-self: flex-end; background: var(--grad); color: #fff; border-end-end-radius: 4px;
}
.ai-msg.typing { opacity: .65; font-style: italic; }
.ai-chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.ai-chat-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px;
  padding: 9px 12px; font: inherit; font-size: 13.5px;
}
.ai-chat-form input:focus { outline: none; border-color: var(--primary); }
.ai-chat-send {
  flex: none; width: 42px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--grad); color: #fff; font-size: 15px;
}
.ai-chat-send:disabled { opacity: .6; cursor: default; }
.ai-chat-foot {
  padding: 6px 12px 8px; text-align: center; font-size: 10.5px; color: var(--muted);
  background: #fff; border-top: 1px dashed var(--line);
}
@media (max-width: 480px) {
  .ai-chat { left: 12px; bottom: 12px; }
  .ai-chat-box { width: calc(100vw - 24px); bottom: 64px; }
  .ai-chat-msgs { max-height: 46vh; }
}







/* ---------- نسخه ۱.۷.۰: تب توکن هوش مصنوعی ---------- */
.token-hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.token-hero-item { background: rgba(99, 102, 241, .07); border: 1px solid rgba(99, 102, 241, .25); border-radius: var(--radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.token-hero-item span { font-size: 12.5px; color: var(--muted); }
.token-hero-item b { font-size: 22px; font-weight: 800; color: var(--primary); }
.token-hero-item b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.pkg-card { border: 1px solid rgba(226, 232, 240, .9); border-radius: 14px; padding: 18px 14px; text-align: center; display: flex; flex-direction: column; gap: 6px; background: var(--card); box-shadow: var(--shadow); }
.pkg-card .pkg-name { font-size: 14px; color: #0f172a; }
.pkg-card .pkg-tokens { font-size: 21px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pkg-card .pkg-tokens small { font-size: 12px; font-weight: 600; background: none; color: var(--muted); -webkit-text-fill-color: var(--muted); }
.pkg-card .pkg-price { font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* ---------- نسخه ۱.۸.۰: نرخ توکن، جدول زیبای مصرف و پلاگین وردپرس ---------- */
.token-hero-item.token-hero-rate { background: rgba(16, 185, 129, .08); border-color: rgba(16, 185, 129, .28); }
.token-hero-item.token-hero-rate b,
.token-hero-item b.token-hero-rate-v { font-size: 14px; color: #047857; line-height: 1.7; }
.token-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 14px; }
.token-stat {
  display: flex; align-items: center; gap: 12px; padding: 13px 16px;
  border: 1px solid rgba(226, 232, 240, .95); border-radius: 14px; background: var(--card); box-shadow: var(--shadow);
}
.token-stat-ico {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-size: 16px;
}
.token-stat div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.token-stat div span { font-size: 12px; color: var(--muted); }
.token-stat div b { font-size: 18px; font-weight: 800; color: #0f172a; }
.token-stat div b small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.token-usage-progress {
  height: 9px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin-top: 4px;
}
.token-usage-progress span { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .4s ease; }
.token-usage-wrap { border: 1px solid rgba(226, 232, 240, .95); border-radius: 16px; overflow: hidden; background: var(--card); }
table.token-usage { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.token-usage thead th {
  padding: 13px 16px; text-align: start; font-size: 12.5px; font-weight: 700; color: #475569;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9); border-bottom: 1px solid #e2e8f0; white-space: nowrap;
}
table.token-usage tbody td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.token-usage tbody tr:hover td { background: #f8fafc; }
table.token-usage tbody tr:last-child td { border-bottom: 0; }
table.token-usage tfoot td {
  padding: 13px 16px; background: rgba(99, 102, 241, .06); border-top: 2px solid rgba(99, 102, 241, .2);
  font-size: 12.5px; font-weight: 700; color: #334155;
}
.token-usage-total { display: block; font-weight: 800; color: var(--primary); }
.token-usage-bar { display: block; height: 6px; border-radius: 999px; background: #eef2f7; margin-top: 5px; min-width: 70px; }
.token-usage-bar i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.wp-plugin-card {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid rgba(99, 102, 241, .28); border-radius: 16px; padding: 16px 18px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .08), rgba(16, 185, 129, .07));
}
.wp-plugin-ico {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; display: grid; place-items: center;
  background: #fff; color: #21759b; font-size: 26px; box-shadow: var(--shadow);
}
.wp-plugin-body { flex: 1 1 260px; min-width: 0; }
.wp-plugin-body b { font-size: 15px; color: #0f172a; }
.wp-plugin-body p { margin: 4px 0 8px; font-size: 12.5px; }
.wp-plugin-steps { margin: 0; padding-inline-start: 18px; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.wp-plugin-btn { white-space: nowrap; }

/* ---------- نسخه ۱.۸.۰: کاتالوگ دسته‌بندی‌شده شماره مجازی ---------- */
.vnum-catalog { display: grid; gap: 16px; }
.vnum-filters {
  display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: end; padding: 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .07), rgba(139, 92, 246, .05));
  border: 1px solid rgba(99, 102, 241, .18);
}
.vnum-filters .fld > span { font-size: 12.5px; color: #334155; }
.vnum-filters .fld > span i { color: var(--primary); }
.vnum-filter-actions { display: flex; align-items: flex-end; }
.vnum-filter-actions .btn { width: 100%; }
.vnum-catalog-hint { margin: 0; display: flex; align-items: center; gap: 8px; }
.vnum-catalog-hint i { color: var(--primary); }
.vnum-groups { display: grid; gap: 12px; }

.vnum-group {
  border: 1px solid rgba(226, 232, 240, .95); border-radius: 16px; background: var(--card);
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .2s, box-shadow .2s;
}
.vnum-group.open { border-color: rgba(99, 102, 241, .45); box-shadow: 0 14px 34px rgba(79, 70, 229, .12); }
.vnum-group-head {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px;
  background: none; border: 0; font: inherit; text-align: start; cursor: pointer; transition: background .2s;
}
.vnum-group-head:hover { background: #f8fafc; }
.vnum-group.open .vnum-group-head { background: rgba(99, 102, 241, .05); }
.vnum-app-icon {
  width: 46px; height: 46px; flex: 0 0 46px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; font-size: 21px; box-shadow: 0 8px 18px rgba(15, 23, 42, .14);
}
.vnum-app-name { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vnum-app-name b { font-size: 15px; color: #0f172a; }
.vnum-app-name small { font-size: 12px; }
.vnum-chev { color: var(--muted); transition: transform .25s; }
.vnum-group.open .vnum-chev { transform: rotate(180deg); }
.vnum-group-body { display: none; border-top: 1px solid var(--line); }
.vnum-group.open .vnum-group-body { display: block; }
.vnum-table-wrap { box-shadow: none; border: 0; border-radius: 0; }
table.vnum-tbl { min-width: 540px; }
table.vnum-tbl thead th { background: #fbfcfe; }
.vnum-country { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.vnum-country i { color: var(--primary); }
.vnum-price b { color: var(--primary-dark); font-size: 14px; }
.vnum-row[hidden] { display: none; }
.vnum-empty {
  display: flex; align-items: center; gap: 8px; padding: 18px; border-radius: 14px;
  border: 1px dashed var(--line); background: #fbfcfe;
}
.vnum-empty[hidden] { display: none; }

@media (max-width: 640px) {
  .vnum-group-head { flex-wrap: wrap; gap: 10px; padding: 14px; }
  .vnum-app-name { flex: 1 1 100%; }
  .vnum-app-icon { width: 40px; height: 40px; flex: 0 0 40px; font-size: 18px; }
}

/* ---------- نسخه ۱.۸.۱: داشبورد پیشرفته مدیریت ---------- */
.ic.g7 { background: linear-gradient(135deg, #ef4444, #f87171); }
.ic.g8 { background: linear-gradient(135deg, #f97316, #fb923c); }

.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 16px; margin-bottom: 22px; }
.dash-kpi {
  position: relative; overflow: hidden; background: var(--card); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); border: 1px solid rgba(226, 232, 240, .7);
  display: flex; flex-direction: column; gap: 10px; transition: .25s;
}
.dash-kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dash-kpi-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.dash-trend {
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.dash-trend.up { background: rgba(16, 185, 129, .12); color: #047857; }
.dash-trend.down { background: rgba(239, 68, 68, .12); color: #b91c1c; }
.dash-trend.flat { background: rgba(100, 116, 139, .12); color: #475569; }
.dash-kpi-val { font-size: 22px; font-weight: 800; line-height: 1.5; }
.dash-kpi-lbl { color: var(--muted); font-size: 12.5px; }

.dash-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.dash-card-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; }
.dash-sub { font-size: 12px; }

.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 22px; }
.dash-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 22px; }
/* فیلتر بازه + ورودی بازه دلخواه */
.dash-range { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.dash-range-btn {
  padding: 8px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); transition: .2s;
}
.dash-range-btn:hover { border-color: var(--primary); color: var(--primary); }
.dash-range-btn.active {
  background: var(--grad); color: #fff; border-color: transparent;
  box-shadow: 0 8px 18px rgba(99, 102, 241, .3);
}
.dash-custom { display: none; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-custom.show { display: inline-flex; }
.dash-custom input { max-width: 150px; }

/* چیپ‌های خلاصه بازه */
.dash-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-chip {
  display: inline-flex; flex-direction: column; gap: 2px; padding: 9px 14px; border-radius: 13px;
  background: rgba(99, 102, 241, .07); border: 1px solid rgba(99, 102, 241, .18); min-width: 110px;
}
.dash-chip i { color: var(--primary); font-size: 12px; }
.dash-chip small { font-size: 11px; color: var(--muted); }
.dash-chip b { font-size: 14.5px; }
.dash-trend-v { color: #047857; }
.dash-trend-v.up { color: #047857; }
.dash-trend-v.down { color: #b91c1c; }
.dash-trend-v.flat { color: var(--muted); }

/* ستون‌های نمودار درآمد */
.dash-bars { display: flex; gap: 10px; align-items: flex-end; height: 190px; padding-top: 28px; }
.dash-bars.is-loading { opacity: .45; pointer-events: none; }
.dash-bcol { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; height: 100%; min-width: 0; }
.dash-bar {
  width: 100%; max-width: 44px; background: var(--grad); border-radius: 8px 8px 3px 3px;
  min-height: 4px; position: relative; transition: height .4s ease, filter .2s; cursor: pointer;
}
.dash-bar:hover { filter: brightness(1.15); }
.dash-bar::after {
  content: attr(data-value); position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  background: #0f172a; color: #fff; padding: 3px 9px; border-radius: 7px; font-size: 11px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.dash-bar:hover::after { opacity: 1; }
.dash-bcol span { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.dash-status { display: block; min-height: 18px; font-size: 12px; margin-top: 6px; }
/* دونات توزیع سفارشات */
.dash-donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.dash-donut { width: 170px; height: 170px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; }
.dash-donut::before { content: ''; position: absolute; width: 112px; height: 112px; background: var(--card); border-radius: 50%; }
.dash-donut-c { position: relative; text-align: center; }
.dash-donut-c b { font-size: 21px; font-weight: 800; display: block; }
.dash-donut-c span { font-size: 11px; color: var(--muted); }
.dash-legend { width: 100%; display: flex; flex-direction: column; gap: 9px; }
.dash-legend-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.dash-legend-dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.dash-legend-item span:last-child { margin-inline-start: auto; font-weight: 700; color: var(--muted); white-space: nowrap; }

/* فعالیت‌های اخیر */
.dash-acts { display: flex; flex-direction: column; }
.dash-act { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.dash-act:last-child { border-bottom: 0; }
.dash-act-ic { width: 38px; height: 38px; flex: none; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.dash-act-txt { font-size: 13px; line-height: 1.9; min-width: 0; }
.dash-act-txt p { margin: 0; }
.dash-act-txt small { display: block; color: var(--muted); font-size: 11.5px; }

/* خدمات پرطرفدار و مشتریان برتر */
.dash-rank { display: flex; flex-direction: column; }
.dash-rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.dash-rank-item:last-child { border-bottom: 0; }
.dash-rank-n {
  width: 26px; height: 26px; flex: none; border-radius: 9px; background: rgba(99, 102, 241, .1);
  color: var(--primary-dark); font-weight: 700; font-size: 12.5px; display: flex; align-items: center; justify-content: center;
}
.dash-rank-item:first-child .dash-rank-n { background: var(--grad); color: #fff; }
.dash-rank-body { flex: 1; min-width: 0; }
.dash-rank-body b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-rank-sub { font-size: 11.5px; }
.dash-rank-share { height: 5px; border-radius: 999px; background: #eef2f7; overflow: hidden; margin-top: 6px; }
.dash-rank-share i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }
.dash-rank-val { text-align: center; flex: none; }
.dash-rank-val b { display: block; font-size: 13.5px; color: var(--primary-dark); }
.dash-rank-val small { font-size: 11px; color: var(--muted); }

@media (max-width: 1024px) {
  .dash-grid, .dash-grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-kpi-val { font-size: 19px; }
  .dash-custom input { max-width: 130px; }
  .dash-bars { gap: 6px; height: 160px; }
  .dash-bar::after { display: none; }
}




/* ============================================================
 *  نسخه ۱.۱۰.۰: پنجره اشتراک‌گذاری مطلب وبلاگ
 * ============================================================ */

.share-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(99, 102, 241, .12), rgba(139, 92, 246, .12));
  border: 1px solid rgba(99, 102, 241, .3);
  color: var(--primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 999px;
  transition: .2s;
}
.share-trigger:hover { background: var(--grad); color: #fff; border-color: transparent; }

body.share-locked { overflow: hidden; }

.share-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); opacity: 0; transition: opacity .18s ease; }
.share-modal.is-open .share-backdrop { opacity: 1; }
.share-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  transform: translateY(14px) scale(.97);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
  z-index: 1;
}
.share-modal.is-open .share-box { transform: none; opacity: 1; }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.share-head h3 { font-size: 16px; }
.share-x { background: none; border: 0; color: var(--muted); font-size: 17px; cursor: pointer; line-height: 1; padding: 4px; }
.share-x:hover { color: var(--err); }
.share-title { margin: 6px 0 14px; }
.share-native { width: 100%; justify-content: center; margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.share-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  transition: .2s;
}
.share-item i { font-size: 20px; color: var(--sc); }
.share-item:hover { color: #fff; background: var(--sc); border-color: transparent; transform: translateY(-3px); }
.share-item:hover i { color: #fff; }
.share-link { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.share-link .code-box { flex: 1; }

/* ============================================================
 *  نسخه ۱.۱۰.۰: ویرایشگر متن غنی وبلاگ (.rte)
 * ============================================================ */

.rte { border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.rte-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}
.rte-bar button {
  min-width: 32px;
  height: 32px;
  border: 1px solid transparent;
  background: #fff;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  font-size: 13px;
  transition: .15s;
}
.rte-bar button:hover { background: var(--grad); color: #fff; }
.rte-bar button.is-on { background: var(--primary); color: #fff; }
.rte-block {
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12.5px;
  padding: 0 8px;
}
.rte-area { min-height: 220px; padding: 14px 16px; outline: none; line-height: 1.9; }
.rte-area:focus { background: #fff; }
.rte-area h2 { font-size: 21px; margin: 14px 0 8px; }
.rte-area h3 { font-size: 18px; margin: 12px 0 6px; }
.rte-area h4 { font-size: 16px; margin: 10px 0 6px; }
.rte-area blockquote { border-inline-start: 4px solid var(--primary); background: #f8fafc; padding: 10px 14px; border-radius: 8px; margin: 10px 0; }
.rte-area pre { background: #0f172a; color: #e2e8f0; padding: 12px; border-radius: 10px; direction: ltr; text-align: left; overflow-x: auto; }
.rte-area img { max-width: 100%; border-radius: 10px; margin: 8px 0; }
.rte-area ul, .rte-area ol { padding-inline-start: 24px; margin: 8px 0; }
.rte-src { width: 100%; min-height: 240px; border: 0; padding: 14px 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.9; direction: ltr; text-align: left; outline: none; resize: vertical; }
.rte-dialog { border-top: 1px solid var(--line); background: #f8fafc; padding: 14px; display: grid; gap: 10px; }
.rte-dialog .fld > span { font-size: 12px; }
.rte-dialog-actions { display: flex; gap: 8px; }
.rte-dialog-status { margin: 0; font-size: 12px; }

/* ============================================================
 *  نسخه ۱.۱۰.۰: شخصی‌سازی دسته‌های شماره مجازی (پنل مدیریت)
 * ============================================================ */

.vn-cats { display: grid; gap: 10px; }
.vn-cat { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: #fff; }
.vn-cat > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
}
.vn-cat > summary::-webkit-details-marker { display: none; }
.vn-cat > summary .vnum-app-icon { width: 34px; height: 34px; font-size: 16px; }
.vn-cat[open] > summary .vnum-chev { transform: rotate(180deg); }
.vnum-app-img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; background: #fff; }

/* نوار پیشرفت بودجه توکن هر کلید */
.progress-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--grad); }
