/* ============================================================
   داشبورد — بج تاییدنشده + حالت خالی فاکتورها
   ============================================================ */
.db-ver.no {
  color: #64748b;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.db-inv-empty {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  padding: 18px 4px;
}

/* باکس «اطلاعات شما» — ریسپانسیو */
.db-pro > div { flex-wrap: wrap; }
.db-pro dd { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.db-pro dd .db-ver { flex: none; }

@media (max-width: 560px) {
  .db-pro > div { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 10px 4px; }
  .db-pro dt { width: auto; font-size: 11.5px; }
  .db-pro dd { width: 100%; flex-wrap: wrap; }
}

/* ===== آمار داشبورد — بازطراحی حرفه‌ای (کمرنگ + SVG) ===== */
.db-stat{
  background: unset;
  box-shadow: unset;
}
.db-stat {
  --stat-color: #4f46e5;
  --stat-bg: #eef2ff;
  --stat-bg-card: #f5f6ff;
  position: relative;
  background: var(--stat-bg-card) !important;
  border: 1px solid rgba(79, 70, 229, .10);
  border-radius: 14px;
  padding: 14px 14px 10px;
  box-shadow: 0 10px 26px -22px rgba(79, 70, 229, .30) !important;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.db-stat::before {
  content: '';
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 2px;
  border-radius: 0 0 5px 5px;
  background: var(--stat-color);
  opacity: .8;
}
.db-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px -24px rgba(79, 70, 229, .40);
  border-color: var(--stat-color);
}
.db-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--stat-bg);
  color: var(--stat-color);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  background: #ffffff !important;
  float: left !important;
}
.db-stat-icon svg { width: 17px; height: 17px; }
.db-stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}
.db-stat small {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-top: 2px;
}
.db-stat p {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px dashed #e4e9ff;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.db-stat.s1 { --stat-color: #2563eb; --stat-bg: #eff6ff; --stat-bg-card: #f4f8ff; }
.db-stat.s2 { --stat-color: #4f46e5; --stat-bg: #eef2ff; --stat-bg-card: #f4f5ff; }
.db-stat.s3 { --stat-color: #3b82f6; --stat-bg: #dbeafe; --stat-bg-card: #f2f7ff; }
.db-stat.s4 { --stat-color: #6366f1; --stat-bg: #e0e7ff; --stat-bg-card: #f3f6ff; }
@media (max-width: 600px) {
  .db-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .db-stat { padding: 12px 12px 9px; }
  .db-stat::before { right: 12px; left: 12px; }
  .db-stat-icon { width: 32px; height: 32px; margin-bottom: 8px; }
  .db-stat b { font-size: 18px; }
}
@media (max-width: 380px) {
  .db-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   lgx — صفحه ورود کارت بزرگ دو ستونه
   ============================================================ */
.lgx {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 0 40px;
}

.lgx-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px -35px rgba(79, 70, 229, .35);
}

/* ==== Panel Info (راست) ==== */
.lgx-info {
  position: relative;
  background:
    radial-gradient(600px 320px at -10% 110%, rgba(129, 140, 248, .45), transparent 60%),
    radial-gradient(420px 260px at 110% -10%, rgba(56, 189, 248, .30), transparent 60%),
    linear-gradient(150deg, #3730a3 0%, #4338ca 45%, #4f46e5 100%);
  color: #fff;
  padding: 46px 40px 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.lgx-info-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* دایره‌های تزئینی */
.lgx-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.lgx-blob-1 { width: 260px; height: 260px; left: -90px; bottom: -80px; background: rgba(255,255,255,.08); }
.lgx-blob-2 { width: 140px; height: 140px; right: -40px; top: -40px; background: rgba(255,255,255,.07); }
.lgx-blob-3 { width: 60px; height: 60px; right: 70px; bottom: 60px; background: rgba(255,255,255,.10); }

.lgx-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  margin-bottom: 22px;
}
.lgx-badge svg { width: 15px; height: 15px; }

.lgx-title {
  font-size: 30px;
  font-weight: 900;
  line-height: 1.45;
  color: #fff;
  margin: 0 0 12px;
}

.lgx-desc {
  font-size: 14px;
  line-height: 2;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 26px;
  font-weight: 400;
}

/* ویژگی‌ها */
.lgx-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lgx-features li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}
.lgx-feature-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .18);
  display: grid;
  place-items: center;
  color: #c7d2fe;
}
.lgx-feature-icon svg { width: 20px; height: 20px; }
.lgx-features b {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 3px;
}
.lgx-features li > div > span {
  display: block;
  font-size: 12.5px;
  line-height: 1.85;
  color: rgba(255, 255, 255, .72);
}

/* آمار */
.lgx-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.lgx-stat { text-align: center; }
.lgx-stat b {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}
.lgx-stat span {
  display: block;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .68);
  margin-top: 3px;
  font-weight: 600;
}

/* ==== Panel فرم (چپ) ==== */
.lgx-form-side {
  display: flex;
  align-items: center;
  padding: 46px 44px 40px;
}
.lgx-form-inner { width: 100%; }

/* آیکون فقط در موبایل نمایش داده شود */
.lgx-mobile-icon {
  display: none;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, #4338ca, #6366f1);
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .6);
  place-items: center;
}
.lgx-mobile-icon svg { width: 25px; height: 25px; }

.lgx-form-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  text-align: center;
}
.lgx-form-sub {
  font-size: 13.5px;
  line-height: 1.9;
  color: #64748b;
  margin: 0 0 24px;
  text-align: center;
}

.lgx-register {
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 20px;
}
.lgx-register a { color: #4f46e5; font-weight: 800; }
.lgx-register a:hover { text-decoration: underline; }

/* ==== گزینه‌ها — صفحه عضویت (lgx--register) ==== */

/* فرم عضویت فیلدهای بیشتری دارد → ستون فرم عریض‌تر */
.lgx-card--register {
  grid-template-columns: 1fr 1.25fr;
}

/* پنل اطلاعات بنفش — تمایز از ورود */
.lgx-info--violet {
  background:
    radial-gradient(600px 320px at -10% 110%, rgba(196, 181, 253, .42), transparent 60%),
    radial-gradient(420px 260px at 110% -10%, rgba(244, 114, 182, .25), transparent 60%),
    linear-gradient(150deg, #4c1d95 0%, #6d28d9 45%, #7c3aed 100%);
}
.lgx-info--violet .lgx-feature-icon { color: #e9d5ff; }

/* ==== گزینه‌ها — جریان بازیابی رمز (lgx--recover) ==== */

/* صفحه تعیین رمز جدید — ستون فرم کمی عریض‌تر (۲ فیلد + کپچا) */
.lgx-card--wide {
  grid-template-columns: 1fr 1.2fr;
}

/* پنل اطلاعات فیروزه‌ای — تمایز از ورود و عضویت */
.lgx-info--teal {
  background:
    radial-gradient(600px 320px at -10% 110%, rgba(94, 234, 212, .40), transparent 60%),
    radial-gradient(420px 260px at 110% -10%, rgba(103, 232, 249, .22), transparent 60%),
    linear-gradient(150deg, #042f2e 0%, #0f766e 45%, #0d9488 100%);
}
.lgx-info--teal .lgx-feature-icon { color: #99f6e4; }

/* ==== ریسپانسیو ==== */
@media (max-width: 900px) {
  .lgx-card { grid-template-columns: 1fr; }
  .lgx-info { padding: 36px 26px 32px; }
  .lgx-title { font-size: 24px; }
  .lgx-features { gap: 13px; }
  .lgx-stats { margin-top: 22px; padding-top: 18px; }
  .lgx-form-side { padding: 34px 26px 32px; }
  .lgx-form-title { font-size: 19px; }
}

@media (max-width: 480px) {
  .lgx { padding: 20px 0 34px; }
  .lgx-card { border-radius: 20px; }
  .lgx-info { padding: 28px 20px 26px; }
  .lgx-badge { font-size: 11px; }
  .lgx-desc { font-size: 13px; }
  .lgx-features li > div > span { font-size: 12px; }
  .lgx-form-side { padding: 26px 18px 24px; }
  .lgx-mobile-icon { display: grid; }
}

/* ============================================================
   WHMCS Toast Notification System — Vahabonline 9
   ============================================================ */

/* --- Container --- */
#paw-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 440px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

/* --- Toast Item --- */
.paw-toast-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  border-right: 5px solid transparent;
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  direction: rtl;
  text-align: right;
  position: relative;
  overflow: hidden;
}

.paw-toast-item.paw-toast-show {
  transform: translateY(0);
  opacity: 1;
}

.paw-toast-item.paw-toast-hide {
  transform: translateY(120%);
  opacity: 0;
}

/* --- Type Variants (bold colors) --- */
.paw-toast-danger {
  border-right-color: #dc2626;
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
}
.paw-toast-danger .paw-toast-icon {
  color: #fff;
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.paw-toast-success {
  border-right-color: #16a34a;
  background: linear-gradient(135deg, #fff 0%, #f0fdf4 100%);
}
.paw-toast-success .paw-toast-icon {
  color: #fff;
  background: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
}

.paw-toast-warning {
  border-right-color: #d97706;
  background: linear-gradient(135deg, #fff 0%, #fffbeb 100%);
}
.paw-toast-warning .paw-toast-icon {
  color: #fff;
  background: #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
}

.paw-toast-info {
  border-right-color: #2563eb;
  background: linear-gradient(135deg, #fff 0%, #eff6ff 100%);
}
.paw-toast-info .paw-toast-icon {
  color: #fff;
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.paw-toast-primary {
  border-right-color: #4f46e5;
  background: linear-gradient(135deg, #fff 0%, #eef2ff 100%);
}
.paw-toast-primary .paw-toast-icon {
  color: #fff;
  background: #4f46e5;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.paw-toast-secondary {
  border-right-color: #6b7280;
  background: linear-gradient(135deg, #fff 0%, #f9fafb 100%);
}
.paw-toast-secondary .paw-toast-icon {
  color: #fff;
  background: #6b7280;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.35);
}

/* --- Icon --- */
.paw-toast-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paw-toast-icon svg {
  flex-shrink: 0;
}

/* --- Body --- */
.paw-toast-body {
  flex: 1;
  font-size: 14px;
  line-height: 1.7;
  color: #1e293b;
  font-weight: 600;
  padding-top: 8px;
}

.paw-toast-body strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 800;
  color: #0f172a;
  font-size: 15px;
}

.paw-toast-body ul {
  margin: 6px 0 0 0;
  padding-right: 16px;
  list-style: disc;
}

.paw-toast-body li {
  font-size: 13px;
  margin-bottom: 2px;
  font-weight: 500;
  color: #334155;
}

/* --- Close Button --- */
.paw-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paw-toast-close:hover {
  background: #f1f5f9;
  color: #334155;
}

/* --- Auto-dismiss Progress Bar --- */
.paw-toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  border-radius: 0 0 14px 14px;
  background: currentColor;
  opacity: 0.3;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  #paw-toast-container {
    right: 12px;
    bottom: 16px;
    left: 12px;
    max-width: 100%;
    width: auto;
  }
}

/* ============================================================
   lg-info-box — اطلاعاتی جعبه در فرم‌های WHMCS
   ============================================================ */
.lg-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  font-size: 13px;
  line-height: 1.9;
  color: #4338ca;
  font-weight: 500;
}

.lg-info-box-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #6366f1;
}

/* ============================================================
   lg-timer-row — تایمر بازیابی رمز (صفحه smsresetpass)
   ============================================================ */
.lg-timer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.9;
  color: #64748b;
  font-weight: 500;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 4px;
}

.lg-timer-row b {
  font-weight: 800;
  color: #f43f5e;
  font-size: 15px;
  padding: 0 4px;
}

.lg-timer-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #f59e0b;
}

/* --- کد تأیید — ورودی با فونت بزرگ و وسط‌چین --- */
.lg-field-code {
  direction: ltr;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.35em;
  color: #0f172a;
}

.lg-field-code::placeholder {
  letter-spacing: 0.15em;
  font-weight: 500;
  font-size: 15px;
}

/* ============================================================
   pwresetvalidation — رمز عبور جدید
   ============================================================ */

/* --- باکس موفقیت (سبز) --- */
.lg-info-box-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.lg-info-box-success .lg-info-box-icon {
  color: #16a34a;
}

.lg-info-box-link {
  color: #16a34a;
  font-weight: 800;
  text-decoration: underline;
}

/* --- ردیف وسط‌چین (دکمه بازگشت) --- */
.lg-center-row {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.lg-center-row .lg-btn {
  min-width: 220px;
  justify-content: center;
}

/* --- رمز پیشنهادی --- */
.lg-suggest-pass {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  margin-bottom: 4px;
}

.lg-suggest-pass-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #f59e0b;
}

.lg-suggest-pass-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 3px;
}

.lg-suggest-pass-code {
  display: inline-block;
  direction: ltr;
  font-family: Consolas, Monaco, monospace;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #78350f;
  background: #fff;
  border: 1px dashed #fcd34d;
  border-radius: 6px;
  padding: 4px 12px;
  word-break: break-all;
}

/* --- پیام عدم تطابق رمز (pwstrength) --- */
#inputNewPassword2Msg {
  margin-top: 6px;
  font-size: 12.5px;
}

#inputNewPassword2Msg .help-block {
  color: #e11d48;
  font-weight: 600;
}

/* ============================================================
   صفحه سرویس‌های من — فیلتر و صفحه‌بندی سمت سرور
   ============================================================ */

/* سربرگ سرویس‌ها: در دسکتاپ دکمه‌ها در همان ردیف عنوان قرار بگیرند (روبه‌روی عنوان و توضیح).
   نکته: `.sv-tools` در app.css عرض ۱۰۰٪ دارد (تا ۴۸۰px) و با flex-wrap خودکار به ردیف بعدی
   می‌رود؛ اینجا در دسکتاپ آن را به اندازه‌ی محتوا برمی‌گردانیم و عنوان را منعطف می‌کنیم */
@media (min-width: 861px) {
  .sv-head {
    flex-wrap: nowrap;
    align-items: center;
  }
  .sv-head > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }
  .sv-tools {
    width: auto;
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .sv-head {
    align-items: flex-start;
  }
  .sv-tools {
    width: 100%;
  }
}

/* ردیف دکمه‌های بالای صفحه (منو + سفارش جدید) */
.sv-tools-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
}

/* کارت فیلتر (وضعیت + تعداد نمایش) — زیر سربرگ */
.sv-filter-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.sv-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: flex-end;
}

.sv-filter-field {
  flex: 1 1 230px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sv-filter-field label {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.sv-filter-form .sv-select {
  width: 100%;
}

.sv-select {
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 11px;
  padding: 9px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  max-width: 100%;
}

.sv-select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* صفحه‌بندی با لینک (به‌جای دکمه) */
.sv-pager .sv-pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* حالت خالی (بدون سرویس) */
.sv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 34px 18px;
}

@media (max-width: 640px) {
  .sv-tools-row {
    justify-content: flex-start;
  }
}

/* ── صفحه فاکتورها ────────────────────────────── */

/* آمار بالای صفحه */
.inv-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.inv-stat {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}

.inv-stat small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
}

.inv-stat b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 2px;
}

.inv-stat p {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.inv-stat.s-paid b   { color: #047857; }
.inv-stat.s-paid p   { color: #047857; }

.inv-stat.s-unpaid b { color: #b45309; }
.inv-stat.s-unpaid p { color: #b45309; }

.inv-stat.s-overdue b{ color: #b91c1c; }
.inv-stat.s-overdue p{ color: #b91c1c; }

.inv-stat.s-total b  { color: #2563eb; }
.inv-stat.s-total p  { color: #2563eb; }

/* فیلتر وضعیت */
.inv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.inv-filters .sv-chip {
  text-decoration: none;
}

.inv-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  color: #64748b;
  font-size: 13.5px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  padding: 34px 18px;
}

/* واکنشی: آمار */
@media (max-width: 768px) {
  .inv-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .inv-stats {
    grid-template-columns: 1fr;
  }
}

/* ── مودال جزئیات فاکتور ── */
.inv-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.inv-modal[hidden] {
  display: none;
}

.inv-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.inv-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .25);
  display: flex;
  flex-direction: column;
}

.inv-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.inv-modal-head h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
}

.inv-modal-close {
  width: 30px;
  height: 30px;
  border: none;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}

.inv-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.inv-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.inv-modal-info {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.inv-modal-info > div {
  flex: 1;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: center;
}

.inv-modal-info small {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 4px;
}

.inv-modal-info b {
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
}

.inv-modal-items {
  margin-top: 4px;
}

.inv-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  padding: 8px 0;
  border-bottom: 1px solid #f8fafc;
}

.inv-modal-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background: #6366f1;
  border-radius: 50%;
  margin-top: 6px;
}

.inv-modal-empty {
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
  padding: 20px 0;
}

/* ── دکمه پرداخت WHMCS ({$paymentbutton}) ────────────── */
/* HTML آماده از سمت گیت‌وی تولید می‌شود؛ فقط با CSS استایل می‌گیرد */
.invv-paywrap {
  margin-top: 10px;
  width: 100%;
}

/* فرم تولید شده توسط گیت‌وی — عرض کامل و بدون حاشیه پیش‌فرض */
.invv-paywrap form {
  width: 100%;
  margin: 0;
}

/* دکمه submit (input یا button) — هم‌رنگ با دکمه‌های تم */
.invv-paywrap input[type="submit"],
.invv-paywrap button {
  display: block !important;
  width: 100%;
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  line-height: 1.6;
  transition: transform .15s, opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(79, 70, 229, .25);
}

.invv-paywrap input[type="submit"]:hover,
.invv-paywrap button:hover {
  transform: translateY(-1px);
  opacity: .94;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .32);
}

.invv-paywrap input[type="submit"]:active,
.invv-paywrap button:active {
  transform: translateY(0);
}

/* برخی گیت‌وی‌ها متن را داخل span یا img قرار می‌دهند — سفید نگه می‌دارد */
.invv-paywrap button span,
.invv-paywrap button b,
.invv-paywrap button strong {
  color: inherit;
}

/* گیت‌وی‌هایی که دکمه را داخل جدول یا div می‌گذارند */
.invv-paywrap form > div,
.invv-paywrap form > table {
  width: 100%;
  margin: 0;
}

/* حالت پرداخت شده — جای دکمه، متن وضعیت پنهان است */
.invv-paywrap:empty {
  display: none;
}

/* ===== تب‌های URL-محور صفحه جزئیات سرویس ===== */
.svd-tabs a.svd-tab {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ===== لیست تیکت‌ها: عنوان بالا، جزئیات زیر آن ===== */
.tk-list .inv-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 15px 18px 11px;
}
.tk-list .inv-main b { margin-top: 0; }
.tk-list .inv-main code { margin-top: 3px; }
.tk-list .inv-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 11px 18px 15px;
  border-top: 1px dashed #eef2f7;
}
.tk-list .inv-meta small { font-size: 10.5px; }
.tk-list .inv-meta b { font-size: 12px; font-weight: 500; color: #64748b; }
.tk-list .inv-meta .sv-status { font-size: 11px; font-weight: 600; padding: 3px 10px; }
@media (max-width: 560px) {
  .tk-list .inv-head { grid-template-columns: 1fr; }
  .tk-list .inv-actions { justify-self: start; }
}

/* ===== راهنمای ارسال تیکت (tutorial/ticket-guide.tpl) ===== */
.tkg-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748b;
  margin: 16px 0 2px;
}
.tkg-label:first-child { margin-top: 0; }
.tkg-steps {
  margin: 8px 0 0;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.9;
}
.tkg-steps code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 1px 6px;
  color: #0f172a;
}
.tkg-code {
  direction: ltr;
  text-align: left;
  margin-top: 8px;
  padding: 9px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  color: #0f172a;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  word-break: break-all;
  white-space: pre-wrap;
}
.tkg-callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.85;
}
.tkg-callout strong { font-weight: 800; }
.tkg-callout code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, .75);
  border-radius: 6px;
  padding: 1px 6px;
}
.tkg-callout ul {
  margin: 8px 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12.5px;
  line-height: 1.8;
}

/* ===== مرکز آموزش (tutorial/index.tpl) ===== */
.tut-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

/* ===== وضعیت فاکتورها (tutorial/invoice-guide.tpl) ===== */
.tkg-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 760px) {
  .tkg-stats { grid-template-columns: 1fr; }
}

/* ===== فرم ارسال تیکت (supportticketsubmit-steptwo.tpl) ===== */
/* فیلدهای سفارشی دپارتمان: markup رندر شده WHMCS کلاس .form-control دارد */
#tkfCard .form-control {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13px;
  font-family: inherit;
  background: #fff;
  color: #334155;
  line-height: 1.6;
}
#tkfCard .form-control:focus {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
  border-color: #4f46e5;
}
#tkfCard .form-group {
  margin: 18px 0 0;
}
#tkfCard .help-block {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: #94a3b8;
}
#tkfCard .g-recaptcha {
  display: flex;
  justify-content: center;
}
/* پیشنهادهای مرکز دانش هنگام تایپ پیام */
.tkf-sugg {
  padding: 12px 14px;
  border: 1px dashed #c7d2fe;
  border-radius: 12px;
  background: #f5f6ff;
  margin-top: 18px;
}
.tkf-sugg ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tkf-sugg li {
  padding-right: 16px;
  position: relative;
}
.tkf-sugg li::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7d2fe;
}
.tkf-sugg a {
  color: #4f46e5;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.tkf-sugg a:hover {
  color: #3730a3;
  text-decoration: underline;
}

/* ===== ادیتور مارکداون تیکت (supportticketsubmit-steptwo.tpl) ===== */
.tkf-tbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.tkf-tbtn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tkf-tbtn:hover {
  background: #eef2ff;
  color: #4f46e5;
}
.tkf-tbtn.is-on {
  background: #4f46e5;
  color: #fff;
}
.tkf-tbtn:focus-visible {
  outline: 2px solid #4f46e5;
  outline-offset: 1px;
}
.tkf-tbar-sep {
  width: 1px;
  height: 20px;
  background: #e2e8f0;
  margin: 0 4px;
}
#tkfCard .tkf-tbar + textarea {
  border-radius: 0 0 10px 10px;
  border-top: 0;
}
.tkf-pv {
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fbfcfe;
  font-size: 13.5px;
  line-height: 2;
  color: #334155;
  margin-top: 10px;
  overflow-wrap: break-word;
}
.tkf-pv p {
  margin: 0 0 10px;
}
.tkf-pv ul {
  margin: 0 0 10px;
  padding-right: 20px;
}
.tkf-pv li {
  margin-bottom: 4px;
}
.tkf-pv pre.tkf-pv-pre {
  background: #0f172a;
  color: #e2e8f0;
  direction: ltr;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.tkf-pv code {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  direction: ltr;
  unicode-bidi: embed;
}
.tkf-pv pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.tkf-pv a {
  color: #4f46e5;
  font-weight: 600;
}

/* ===== صفحه تأیید تیکت (supportticketsubmit-confirm.tpl) ===== */
.tk-cnf-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.tk-cnf-hero h2 {
  font-size: 20px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0;
}
.tk-cnf-hero p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.9;
  max-width: 520px;
  margin: 0;
}
.tk-cnf-ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}
.tk-cnf-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 11.5px;
  font-weight: 700;
}
.tk-cnf-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
}
.tk-cnf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e8edf5;
}

/* ===== مشاهده تیکت (viewticket.tpl) ===== */

/* چیدمان دوستونی فرم */
.tkf-grid2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0 14px;
}

/* ادیتور مارکداون داخل کارت پاسخ */
#rvCard .tkf-tbar + textarea {
  border-radius: 0 0 10px 10px;
  border-top: 0;
}

/* باکس جمع‌شونده اطلاعات هاست و ادمین */
.tkf-details {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.tkf-details[open] .tkf-dsum {
  background: #f8fafc;
}
.tkf-dsum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  transition: background 0.15s;
}
.tkf-dsum::-webkit-details-marker {
  display: none;
}
.tkf-dsum:hover {
  background: #f8fafc;
}
.tkf-dchev {
  color: #94a3b8;
  transition: transform 0.15s;
}
.tkf-details[open] .tkf-dchev {
  transform: rotate(180deg);
}
.tkf-dbody {
  padding: 14px;
  border-top: 1px solid #e8edf5;
  background: #fafbfc;
}

/* نشان‌های اطلاعات تیکت */
.tk-vi-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-v-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.tk-v-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.tk-v-st {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}
.tk-v-u1 {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.tk-v-u2 {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
.tk-v-u3 {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

/* باکس راهنمای پاسخ */
.tk-v-note {
  margin: 8px 0 4px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: #78350f;
}
.tk-v-note li {
  position: relative;
  padding-right: 16px;
}
.tk-v-note li::before {
  content: '';
  position: absolute;
  right: 2px;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f59e0b;
}
.tk-v-guide {
  display: inline-flex;
  margin-top: 6px;
  color: #92400e;
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.tk-v-guide:hover {
  text-decoration: underline;
}

/* تایم‌لاین پیام‌ها */
.tk-tl {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.tk-msg {
  background: #f5f6ff;
  border: 1px solid #c7d2fe;
  border-right: 4px solid #6366f1;
  border-radius: 14px;
  padding: 14px 16px;
}
.tk-msg-staff {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-right-color: #10b981;
}
.tk-msg-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.tk-msg-av {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  background: #6366f1;
}
.tk-msg-staff .tk-msg-av {
  background: #10b981;
}
.tk-msg-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tk-msg-id b {
  font-size: 13.5px;
  color: #0f172a;
}
.tk-msg-id small {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}
.tk-msg-date {
  margin-inline-start: auto;
  font-size: 11.5px;
  color: #94a3b8;
  flex: 0 0 auto;
}
.tk-msg-body {
  font-size: 13.5px;
  line-height: 2;
  color: #334155;
  overflow-wrap: break-word;
}

/* محتوای رندر مارکداون در پیام */
.ticket-message-content p {
  margin: 0 0 10px;
}
.ticket-message-content p:last-child {
  margin-bottom: 0;
}
.ticket-message-content ul,
.ticket-message-content ol {
  margin: 0 0 10px;
  padding-right: 22px;
}
.ticket-message-content li {
  margin-bottom: 4px;
}
.ticket-message-content blockquote {
  margin: 0 0 10px;
  padding: 8px 14px;
  border-right: 3px solid #c7d2fe;
  background: #f8fafc;
  border-radius: 8px;
  color: #475569;
}
.ticket-message-content pre {
  background: #0f172a;
  color: #e2e8f0;
  direction: ltr;
  text-align: left;
  padding: 12px;
  border-radius: 10px;
  overflow: auto;
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}
.ticket-message-content code {
  background: #eef2ff;
  color: #3730a3;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12.5px;
  direction: ltr;
  unicode-bidi: embed;
}
.ticket-message-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.ticket-message-content a {
  color: #4f46e5;
  font-weight: 600;
}
.ticket-message-content img {
  max-width: 100%;
  border-radius: 10px;
}
.ticket-message-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 10px;
  font-size: 12.5px;
}
.ticket-message-content th,
.ticket-message-content td {
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  text-align: right;
}
.ticket-message-content th {
  background: #f8fafc;
  font-weight: 700;
}

/* پیوست‌های هر پیام */
.tk-msg-att {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}
.tk-msg-att > strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
}
.tk-msg-att-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tk-msg-atc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: break-word;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tk-msg-atc:hover {
  border-color: #6366f1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}
.tk-msg-atc-ic {
  color: #4f46e5;
  flex: 0 0 auto;
}
.tk-tl-empty {
  margin: 0;
  padding: 18px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

/* امتیازدهی به پاسخ پشتیبانی */
.tk-rt {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tk-rt-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.tk-rt-stars {
  display: inline-flex;
  gap: 2px;
  font-size: 17px;
}
.tk-rt-stars a {
  color: #cbd5e1;
  text-decoration: none;
  line-height: 1;
  transition: color 0.1s, transform 0.1s;
}
.tk-rt-stars a:hover {
  color: #f59e0b;
  transform: scale(1.15);
}
.tk-rt-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tk-rt-done small {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 600;
}
.tk-rt-star {
  color: #cbd5e1;
  font-size: 15px;
}
.tk-rt-star.on {
  color: #f59e0b;
}

/* ===== سامانه پیامک آی‌پنل (order/ippanel.tpl) ===== */

/* اطلاعیه بالای صفحه */
.tkp-banner {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0fdfa 0%, #eff6ff 100%);
  border: 1px solid #99f6e4;
  border-radius: 14px;
  font-size: 13px;
  line-height: 2;
  color: #134e4a;
}
.tkp-banner-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.tkp-banner-hd > strong {
  font-size: 13.5px;
  color: #115e59;
}
.tkp-banner-ic {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #ccfbf1;
  border: 1px solid #99f6e4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.tkp-banner p {
  margin: 0 0 4px;
}
.tkp-banner a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}
.tkp-banner a:hover {
  text-decoration: underline;
}
.tkp-free {
  font-style: normal;
  font-weight: 800;
  color: #059669;
}
.tkp-banner-sep {
  height: 1px;
  background: #99f6e4;
  margin: 10px 0;
}
.tkp-banner-sub {
  font-size: 12px;
  color: #5eead4;
  color: #64748b;
}

/* تب‌های صفحه */
.tkp-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 18px;
}
.tkp-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.tkp-tab:hover {
  color: #4338ca;
  background: #e2e8f0;
}
.tkp-tab.is-on {
  background: #fff;
  color: #4338ca;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}
.tab-panel {
  animation: tkpFade 0.25s ease;
}
@keyframes tkpFade {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
.tab-panel.hidden {
  display: none;
}
.tab-panel:not(.hidden) {
  display: block;
}

/* عنوان داخل تب */
.tkp-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e1b4b;
  margin: 0 0 12px;
}

/* باکس نتیجه عملیات */
.tkp-act {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 16px;
}
.tkp-act ul {
  margin: 6px 0 0 0;
  padding-right: 18px;
  font-size: 12px;
}
.tkp-act.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}
.tkp-act.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}
.tkp-act-ic {
  flex: 0 0 auto;
  font-weight: 900;
}

/* جدول سفارشات */
.tkp-table-wrap {
  overflow-x: auto;
  border: 1px solid #e9eef5;
  border-radius: 12px;
}
.tkp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 640px;
}
.tkp-table thead th {
  padding: 11px 14px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef5;
  white-space: nowrap;
}
.tkp-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.tkp-table tbody tr:last-child td {
  border-bottom: 0;
}
.tkp-table tbody tr:hover {
  background: #f8fafc;
}
.tkp-th-center {
  text-align: center !important;
}
.tkp-td-id {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #0f172a;
  font-weight: 700;
}
.tkp-td-user {
  font-weight: 600;
  color: #0f172a;
}
.tkp-td-muted {
  color: #94a3b8;
}

/* برچسب نوع پنل */
.tkp-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.tkp-chip.chip-vip {
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  color: #7e22ce;
}
.tkp-chip.chip-nor {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* وضعیت تاریخ انقضا */
.tkp-exp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
}
.tkp-exp.expired {
  color: #dc2626;
}
.tkp-exp.soon {
  color: #d97706;
}
.tkp-exp.ok {
  color: #059669;
}
.tkp-exp-tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  background: #f1f5f9;
  color: #64748b;
}
.tkp-exp.expired .tkp-exp-tag {
  background: #fef2f2;
  color: #dc2626;
}
.tkp-exp.soon .tkp-exp-tag {
  background: #fffbeb;
  color: #d97706;
}
.tkp-exp.ok .tkp-exp-tag {
  background: #ecfdf5;
  color: #059669;
}

/* دکمه‌های عملیات ردیف */
.tkp-acts {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tkp-act-form {
  display: inline;
  margin: 0;
}
.tkp-ibtn {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.tkp-ibtn:hover {
  transform: translateY(-1px);
}
.tkp-ibtn.ibtn-sync {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}
.tkp-ibtn.ibtn-sync:hover {
  background: #dbeafe;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.15);
}
.tkp-ibtn.ibtn-renew {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #059669;
}
.tkp-ibtn.ibtn-renew:hover {
  background: #d1fae5;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

/* راهنمای دکمه‌های جدول */
.tkp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 12px;
  color: #64748b;
}
.tkp-lg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tkp-lg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.tkp-lg-dot.lg-sync {
  background: #2563eb;
}
.tkp-lg-dot.lg-renew {
  background: #10b981;
}
.tkp-lg-sub {
  color: #94a3b8;
}

/* حالت خالی */
.tkp-empty {
  text-align: center;
  padding: 34px 16px;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
}
.tkp-empty-ic {
  display: block;
  font-size: 38px;
  margin-bottom: 10px;
}
.tkp-empty-sub {
  margin-top: 5px;
  font-size: 12px;
  color: #94a3b8;
}

/* فیلدهای فرم ثبت‌نام */
.tkp-birth {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 8px;
}
.tkp-hint {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.7;
}
.tkp-hint code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11.5px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  padding: 1px 6px;
  color: #3730a3;
}
.tkp-sub {
  width: 100%;
  justify-content: center;
}

/* فوتر امنیتی */
.tkp-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #e8edf5;
  font-size: 11.5px;
  color: #94a3b8;
}

/* حالت مهمان */
.tkp-guest {
  max-width: 480px;
  margin: 0 auto;
  padding: 26px 16px 16px;
  text-align: center;
}
.tkp-guest-ic {
  display: inline-block;
  font-size: 40px;
  margin-bottom: 10px;
}
.tkp-guest-t {
  font-size: 17px;
  font-weight: 800;
  color: #1e1b4b;
  line-height: 2;
  margin: 0 auto 20px;
  max-width: 420px;
}

/* U+U^O�O O�U.U+UOO�U — chat/user.tpl */
.chat-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 180px);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.chat-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}
.chat-hd-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.chat-hd-id > div { min-width: 0; }
.chat-hd-id b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.5;
}
.chat-hd-id small {
  display: block;
  font-size: 11px;
  color: #94a3b8;
}
.chat-hd-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef2ff;
  color: #4f46e5;
  flex-shrink: 0;
}
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #16a34a;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: sv-pulse 1.6s ease-in-out infinite;
}
@keyframes sv-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); }
  50% { opacity: .75; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
.chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f8fafc;
  min-height: 400px;
  scroll-behavior: smooth;
}
.chat-msgs::-webkit-scrollbar { width: 6px; }
.chat-msgs::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
.chat-msgs::-webkit-scrollbar-track { background: transparent; }
.chat-input {
  padding: 12px 16px;
  border-top: 1px solid #eef2f7;
  background: #fff;
}
.chat-input-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.chat-input-row textarea {
  flex: 1;
  resize: none;
  min-height: 40px;
  max-height: 120px;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font: inherit;
  font-size: 13.5px;
  line-height: 1.7;
  color: #1e293b;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.chat-input-row textarea::placeholder { color: #94a3b8; }
.chat-input-row textarea:focus {
  border-color: #a5b4fc;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.chat-input-row .sv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  flex-shrink: 0;
}
.chat-sec {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 10.5px;
  color: #94a3b8;
}
@media (max-width: 480px) {
  .chat-send-txt { display: none; }
}

/* ==== encode.tpl — صفحه انکود ==== */
.enc-status{margin-top:14px}
.enc-status .alert{margin:0;padding:12px 14px;border-radius:10px;font-size:12.5px;line-height:1.8}
.enc-status .alert-danger{background:#fee2e2;border:1px solid #fecaca;color:#b91c1c}
.encn-opt:has(input:checked){border-color:#4f46e5;background:#eef2ff;color:#1e1b4b}
.encn-opt small a{color:#4f46e5;font-weight:700;text-decoration:none}
.encn-php:has(input:checked){border-color:#4f46e5;background:#eef2ff;color:#4f46e5}
.encn-php.is-dis{opacity:.5;cursor:not-allowed}
.encp-ok{font-size:15px;font-weight:800;color:#047857;margin:0}
.encp-ok-sub{font-size:12.5px;color:#64748b;margin:4px 0 0}
.encp-wait{font-size:15px;font-weight:800;color:#1d4ed8;margin:0}
.encp-dl{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:10px}
.sv-btn.green{background:#059669;color:#fff;border:1px solid #059669}
.sv-btn.blue{background:#2563eb;color:#fff;border:1px solid #2563eb}
.encp-back{margin-top:18px;display:flex;justify-content:center}
.enc-empty-in{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px 0}
.enc-empty-in p{margin:0;color:#64748b;font-size:13.5px;font-weight:600}
.enc-cb{padding:20px}
.enc-cb-act{margin-top:16px}

/* ==== لیست انکود — کارت (آیدی و عنوان بالا، اطلاعات زیر) ==== */
.encr-list{display:flex;flex-direction:column;gap:12px;overflow:visible;margin-top:4px}
.encr-card{background:#fff;border:1px solid #eef2f7;border-radius:14px;padding:14px 16px}
.encr-card-hd{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding-bottom:10px;border-bottom:1px dashed #eef2f7}
.encr-card-hd .encr-code{background:#eef2ff;color:#4f46e5;border-radius:8px;padding:3px 10px;font-size:12.5px}
.encr-card-hd .encr-user{display:inline;font-size:13.5px;font-weight:800;color:#0f172a}
.encr-card-info{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;margin:10px 0 0}
.encr-ci-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px dashed #eef2f7;font-size:12.5px}
.encr-ci-row dt{color:#94a3b8;font-weight:700;font-size:11.5px;white-space:nowrap}
.encr-ci-row dd{margin:0;color:#334155;font-weight:700;white-space:nowrap}
.encr-ci-wide{grid-column:1 / -1}
.encr-card-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.encr-card-act .sv-btn{padding:7px 14px;font-size:12px}
.encr-card-act .encr-more{border:1px solid #e2e8f0;border-radius:9px;padding:8px 14px;font-size:12px;background:#fff}
@media (max-width:560px){
  .encr-card-info{grid-template-columns:1fr}
  .encr-ci-wide{grid-column:auto}
}

/* ==== ردیف عنوان + دکمه در هدر لیست انکود (بالای باکس جستجو) ==== */
.encr-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;width:100%}
.encr-top-row .enc-head-act{display:flex;align-items:center}

/* ==== تغییر رمز عبور (clientareachangepw) ==== */
.chg-alert{display:flex;align-items:flex-start;gap:10px;margin-bottom:14px;padding:14px 16px;font-size:13px;font-weight:600;line-height:1.9}
.chg-alert svg{flex:none;margin-top:3px}
.chg-alert.ok{border-color:#a7f3d0;background:#ecfdf5;color:#047857}
.chg-alert.err{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
.chg-tips{padding:12px 15px;background:#f8fafc}
.chg-tips-t{font-weight:800;color:#1e293b;margin:0 0 6px}
.chg-tips-list{margin:0;padding-right:16px;font-size:12px;line-height:2}
.chg-tips-sug{font-size:12px;color:#64748b;margin:8px 0 0}
.chg-tips-sug code{font-family:ui-monospace,Consolas,monospace;color:#4f46e5;background:#eef2ff;padding:2px 8px;border-radius:6px;font-size:12px}
.chg-submit{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:22px;padding-top:16px;border-top:1px dashed #e2e8f0}
.chg-submit-hint{font-size:12px;color:#94a3b8;margin:0}

/* ==== ایمیل‌های ارسالی (clientareaemails) ==== */
.mail-count{background:#eef2ff;color:#4f46e5;font-size:12.5px;font-weight:800;padding:8px 14px;border-radius:999px;white-space:nowrap}
.mail-list{display:flex;flex-direction:column}
.mail-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #eef2f7;border-bottom:0;padding:13px 16px;transition:background .15s}
.mail-row:first-child{border-radius:14px 14px 0 0}
.mail-row:last-child{border-radius:0 0 14px 14px;border-bottom:1px solid #eef2f7}
.mail-row:hover{background:#fbfcfe}
.mail-sub{display:flex;align-items:center;gap:9px;flex:1;min-width:220px;font-size:13.5px;font-weight:700;color:#0f172a;line-height:1.8}
.mail-sub svg{flex:none;color:#4f46e5;opacity:.75}
.mail-sub span{overflow-wrap:anywhere}
.mail-date{font-variant-numeric:tabular-nums;font-size:12.5px;color:#64748b;font-weight:600;white-space:nowrap}
.mail-act .sv-btn{padding:7px 14px;font-size:12px}

/* ==== صفحه خروج (logout) ==== */
.lo-wrap{max-width:540px;margin:56px auto;padding:0 16px}
.lo-card{background:#fff;border:1px solid #eef2f7;border-radius:20px;padding:44px 26px;text-align:center;box-shadow:0 24px 60px -30px rgba(15,23,42,.18)}
.lo-ic{width:74px;height:74px;margin:0 auto 18px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#4f46e5);color:#fff;display:grid;place-items:center;box-shadow:0 18px 34px -14px rgba(79,70,229,.55)}
.lo-card h1{font-size:24px;font-weight:800;color:#1e1b4b;margin:0 0 8px}
.lo-msg{font-size:14.5px;color:#64748b;margin:0}
.lo-farewell{margin:22px auto 0;max-width:400px;background:#fffbeb;border:1px solid #fde68a;border-radius:14px;padding:14px 18px}
.lo-farewell h3{font-size:14.5px;font-weight:800;color:#92400e;margin:0 0 4px}
.lo-farewell p{font-size:12.5px;color:#a16207;margin:0;line-height:1.9}
.lo-acts{margin-top:24px}
.lo-acts .sv-btn{width:100%;padding:13px;font-size:14px;justify-content:center}
.lo-note{font-size:11.5px;color:#94a3b8;margin:16px 0 0;line-height:1.9}

/* ==== ویرایش پروفایل (clientareadetails) ==== */
.det-card{padding:6px 18px 18px}
.det-sec{padding:20px 0;border-bottom:1px dashed #eef2f7}
.det-sec:first-child{padding-top:14px}
.det-sec:last-child{border-bottom:0;padding-bottom:0}
.det-sec-t{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:800;color:#0f172a;margin:0 0 4px}
.det-sec-t svg{color:#4f46e5;flex:none}
.det-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}
@media (max-width:640px){.det-grid{grid-template-columns:1fr}}
.encn-field select,.encn-field select.form-control,.encn-field #inputCountry{width:100%;border:1.5px solid #e2e8f0;border-radius:10px;padding:11px 12px;font-size:13px;font-family:inherit;background:#fbfcfe;color:#0f172a}
.encn-field select:focus,.encn-field #inputCountry:focus{outline:none;border-color:#4f46e5;background:#fff}
.encn-field input:disabled,.encn-field select:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}
.encn-field input:disabled::placeholder{color:#cbd5e1}
.det-drop{margin:0}
.det-dis{opacity:.55;pointer-events:none}
.det-hint{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#94a3b8;margin:0;line-height:1.8}
.det-hint svg{color:#6366f1;flex:none}

/* ==== sv-btn: چینش افقی آیکون + متن (کلاس پایه در app.css flex نبود) ==== */
.sv-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px}
.sv-btn svg{flex:none}

/* ==== مودال مشاهده ایمیل (clientareaemails) ==== */
.eml-dialog{max-width:780px;max-height:88vh}
.eml-iframe{padding:0}
.eml-iframe iframe{display:block;width:100%;height:64vh;border:0;background:#fff}
@media (max-width:640px){.eml-iframe iframe{height:70vh}}

/* ==== رفع فلش منوهای دارای زیرمنو (parts/sidebar.tpl): در RTL ضلع صحیح برای هل دادن به انتها margin-right است ==== */
.db-caret{margin:0 auto 1px 0}
