/* ============================================================
   پنل کاربری دامین مارکت — استایل اختصاصی (روشن پیش‌فرض + تیره)
   ============================================================ */

body.domark-panel-page { background: var(--bg); }

.p-app { min-height: 100vh; display: flex; }
.p-muted { color: var(--muted); }
.p-muted-sm { color: var(--muted); font-size: 11.5px; }
.p-mt { margin-top: 14px; }
.p-flex { display: flex; align-items: center; gap: 10px; }
.p-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.p-text-amber { color: var(--amber); }
.p-text-mint { color: var(--mint); }
.p-hide-sm { }
.p-link { font-size: 12px; font-weight: 700; color: var(--accent); }


/* ---------- AUTH — سیستم ورود هوشمند چند مرحله‌ای ---------- */
.p-auth-wrap { display: flex; min-height: 100vh; width: 100%; }
.p-auth-left { flex: 1; display: none; position: relative; overflow: hidden; background: linear-gradient(160deg, #020818 0%, #071228 50%, #0a1834 100%); }
@media (min-width: 900px) { .p-auth-left { display: flex; flex-direction: column; } }
.p-auth-left-inner { display: flex; flex-direction: column; padding: 44px; height: 100%; position: relative; z-index: 2; }
.p-auth-left::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% -20%, rgba(8,145,178,.4) 0%, transparent 60%), radial-gradient(ellipse at 80% 80%, rgba(109,40,217,.3) 0%, transparent 55%); }
.p-auth-left::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(148,163,184,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.06) 1px, transparent 1px); background-size: 44px 44px; }
.p-auth-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.p-auth-brand-name { font-size: 20px; font-weight: 900; color: #fff; }
.p-auth-left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 40px; }
.p-auth-left-content h2 { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.5; margin: 0 0 12px; }
.p-auth-left-content > p { color: rgba(255,255,255,.6); font-size: 14px; margin: 0 0 34px; }
.p-auth-features { display: grid; gap: 20px; }
.p-auth-features li { display: flex; align-items: flex-start; gap: 14px; }
.p-af-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(34,211,238,.15); border: 1px solid rgba(34,211,238,.25); color: #22d3ee; flex-shrink: 0; }
.p-auth-features b { display: block; font-size: 14px; font-weight: 800; color: #fff; }
.p-auth-features small { font-size: 12px; color: rgba(255,255,255,.5); }
.p-auth-testimonial { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; }
.p-auth-testimonial p { font-size: 13.5px; color: rgba(255,255,255,.7); line-height: 1.8; margin: 0 0 14px; font-style: italic; }
.p-at-user { display: flex; align-items: center; gap: 12px; }
.p-at-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 900; font-size: 15px; flex-shrink: 0; }
.p-at-user b { display: block; font-size: 13px; font-weight: 800; color: #fff; }
.p-at-user small { font-size: 11px; color: rgba(255,255,255,.5); }
.p-auth-right { width: 100%; display: flex; flex-direction: column; justify-content: center; padding: 40px 24px; background: var(--bg); }
@media (min-width: 900px) { .p-auth-right { width: 480px; flex-shrink: 0; } }
.p-auth-card { width: 100%; max-width: 430px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 36px 30px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.p-auth-card::before { content: ""; position: absolute; top: -80px; right: 50%; transform: translateX(50%); width: 240px; height: 240px; background: var(--accent-soft); filter: blur(80px); border-radius: 50%; pointer-events: none; }
.p-auth-toast { border-radius: 12px; padding: 11px 16px; font-size: 12.5px; font-weight: 600; margin-bottom: 18px; position: relative; z-index: 2; animation: abrpRowIn .3s; }
.p-auth-toast.ok { background: rgba(5,150,105,.1); border: 1px solid rgba(5,150,105,.3); color: var(--mint); }
.p-auth-toast.err { background: rgba(225,29,72,.08); border: 1px solid rgba(225,29,72,.3); color: var(--rose); }
.p-auth-step { position: relative; z-index: 2; animation: pSwap .32s cubic-bezier(.22,1,.36,1); }
.p-auth-step[hidden] { display: none !important; }
.p-auth-step-head { margin-bottom: 24px; }
.p-auth-step-head h1 { font-size: 22px; font-weight: 900; color: var(--text); margin: 0 0 6px; }
.p-auth-step-head p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.7; }
.p-back-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; margin-bottom: 16px; background: var(--bg-2); border: 1px solid var(--line); color: var(--text-2); transition: all .2s; }
.p-back-btn:hover { border-color: var(--accent); color: var(--accent); }
.p-auth-user-card { display: flex; align-items: center; gap: 13px; margin-bottom: 22px; padding: 13px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.p-auth-user-card img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.p-auth-user-card span { font-weight: 800; color: var(--text); font-size: 15px; }
.p-field { display: grid; gap: 7px; margin-bottom: 16px; }
.p-field label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.p-field-opt { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.p-field-wrap { display: flex; align-items: center; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 14px; transition: all .2s; overflow: hidden; }
.p-field-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.p-field-icon { padding: 0 0 0 14px; color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.p-field-wrap input { flex: 1; border: 0; outline: none; background: transparent; padding: 14px 14px 14px 10px; color: var(--text); font-size: 14px; font-family: var(--font-fa); }
.p-field-wrap input::placeholder { color: var(--muted); font-size: 13px; }
.p-field-clear, .p-toggle-pass { padding: 0 12px; color: var(--muted); background: none; border: 0; display: grid; place-items: center; flex-shrink: 0; }
.p-field-clear:hover, .p-toggle-pass:hover { color: var(--text); }
.p-phone-pre { padding: 14px 8px 14px 14px; font-family: var(--font-en); font-weight: 800; font-size: 14px; color: var(--accent); border-inline-end: 1px solid var(--line); flex-shrink: 0; }
.p-remember { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; font-size: 13px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.p-remember input[type=checkbox] { display: none; }
.p-checkbox { width: 20px; height: 20px; border-radius: 7px; border: 2px solid var(--line-strong); background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; color: transparent; transition: all .2s; }
.p-remember input:checked ~ .p-checkbox { background: var(--grad-btn); border-color: transparent; color: #fff; }
.p-btn-submit { width: 100%; padding: 15px; border-radius: 16px; background: var(--grad-btn); color: #04222b !important; font-size: 15px; font-weight: 900; border: 0; box-shadow: 0 12px 28px -10px rgba(6,182,212,.55); display: flex; align-items: center; justify-content: center; gap: 9px; transition: all .25s; }
.p-btn-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(6,182,212,.7); filter: brightness(1.05); }
.p-btn-submit:active { transform: translateY(0) scale(.98); }
.p-btn-submit:disabled { opacity: .65; pointer-events: none; }
.p-btn-submit .btn-txt, .p-btn-submit .btn-spin { display: flex; align-items: center; gap: 7px; }
.p-btn-submit .btn-spin[hidden], .p-btn-submit .btn-txt[hidden] { display: none !important; }
.p-link-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 12px; margin-top: 12px; border-radius: 14px; border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 13px; font-weight: 700; transition: all .2s; }
.p-link-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.p-auth-hint { text-align: center; margin-top: 20px; font-size: 12.5px; }
.p-auth-hint a, .p-auth-back-site a { color: var(--muted); font-weight: 600; }
.p-auth-hint a:hover, .p-auth-back-site a:hover { color: var(--accent); }
.p-auth-back-site { display: block; text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--muted); }
.p-otp-via { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); background: var(--accent-soft); border: 1px solid rgba(8,145,178,.25); border-radius: 14px; padding: 12px; margin-bottom: 22px; }
.p-otp-digits { display: flex; justify-content: center; gap: 10px; direction: ltr; margin-bottom: 16px; }
.p-otp-cell { width: 52px; height: 60px; text-align: center; font-size: 26px; font-family: var(--font-en); font-weight: 900; background: var(--bg); border: 2px solid var(--line); border-radius: 14px; color: var(--text); outline: none; transition: all .2s; }
.p-otp-cell:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.p-otp-actions { text-align: center; margin-bottom: 14px; }
.p-otp-timer { font-size: 12px; color: var(--muted); }
.p-otp-timer b { font-family: var(--font-en); font-weight: 800; color: var(--text); }
.p-terms { font-size: 12px; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.p-terms a { color: var(--accent); font-weight: 700; }
[data-theme="dark"] .p-auth-right { background: var(--bg); }
[data-theme="dark"] .p-auth-left { background: linear-gradient(160deg, #01060f, #040d1e, #060f26); }
@media (max-width: 600px) { .p-auth-card { padding: 24px 16px; border-radius: 20px; } .p-otp-cell { width: 44px; height: 52px; font-size: 22px; border-radius: 12px; } }

/* ---------- فرم‌های پنل ---------- */
.p-form { display: grid; gap: 15px; }
.p-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-form label { display: grid; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.p-form input, .p-form select, .p-form textarea {
  background: var(--surface-2); border: 1px solid var(--line-strong);
  border-radius: 12px; padding: 11px 14px; color: var(--text); outline: none;
  font-family: var(--font-fa); font-size: 13.5px; transition: all .2s; width: 100%;
}
.p-form input:focus, .p-form select:focus, .p-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface);
}
.p-form textarea { resize: vertical; }
.p-check { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.p-check input { width: auto !important; }

/* ---------- ریل اپ ---------- */
.p-sidebar {
  width: 262px; flex-shrink: 0; height: 100vh; position: sticky; top: 0;
  background: var(--surface); border-inline-end: 1px solid var(--line);
  display: flex; flex-direction: column; z-index: 40; transition: transform .3s;
}
.p-side-logo { display: flex; align-items: center; gap: 11px; padding: 18px 20px; border-bottom: 1px solid var(--line); color: var(--text); }
.p-side-logo-t { display: flex; flex-direction: column; line-height: 1.3; }
.p-side-logo-t b { font-size: 16px; font-weight: 900; }
.p-side-logo-t small { font-size: 8.5px; letter-spacing: .3em; color: var(--muted); }

.p-nav { padding: 14px; display: grid; gap: 4px; flex: 1; overflow-y: auto; }
.p-nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 14px; border-radius: 13px; border: 1px solid transparent;
  background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px;
  transition: all .2s; text-align: right; position: relative;
}
.p-nav-item:hover { color: var(--text); background: var(--bg-2); }
.p-nav-item.is-active {
  color: var(--text); background: var(--accent-soft); border-color: rgba(8, 145, 178, .3);
}
.p-nav-item.is-active svg { color: var(--accent); }
.p-nav-item.is-active::before {
  content: ""; position: absolute; inset-inline-end: -14px; top: 10px; bottom: 10px; width: 3px;
  background: var(--grad-btn); border-radius: 4px 0 0 4px;
}

.p-side-user {
  display: flex; align-items: center; gap: 10px; margin: 0 14px;
  border: 1px solid var(--line); border-radius: 15px; padding: 11px;
}
.p-user-avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad); color: #fff; font-weight: 900; font-size: 15px;
}
.p-user-avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.p-user-meta { flex: 1; min-width: 0; }
.p-user-meta b { display: block; font-size: 12.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-user-meta small { display: block; font-family: var(--font-en); font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-side-site { display: block; text-align: center; margin: 12px 14px 16px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; font-weight: 700; }
.p-side-site:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- مین ---------- */
.p-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px; height: 68px; padding-inline: 22px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.p-topbar h1 { font-size: 18px; margin: 0; font-weight: 900; }
.p-topbar-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 9px; }
.p-icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  border-radius: 12px; transition: all .2s;
}
.p-icon-btn:hover { border-color: var(--accent); color: var(--accent); }
#pThemeToggle .ic-moon { display: none; }
[data-theme="dark"] #pThemeToggle .ic-moon { display: block; }
[data-theme="dark"] #pThemeToggle .ic-sun { display: none; }
.p-user-chip { display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 5px 11px 5px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.p-burger { display: none; }
.p-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); display: inline-block; box-shadow: 0 0 0 3px rgba(5,150,105,.18); animation: abrpPulse 2.2s infinite; }

.p-content { padding: 24px 22px 60px; max-width: 1180px; width: 100%; margin-inline: auto; }
.p-content.is-loading > * { opacity: .45; pointer-events: none; transition: opacity .2s; }
.p-swap { animation: pSwap .35s cubic-bezier(.22,1,.36,1); }
@keyframes pSwap { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }

/* ---------- کارت‌های داشبورد ---------- */
.p-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--accent-soft), transparent 55%, rgba(109,40,217,.07));
  border: 1px solid rgba(8,145,178,.25); border-radius: 22px; padding: 26px 28px; margin-bottom: 18px;
}
.p-hero h2 { margin: 0 0 6px; font-size: 22px; font-weight: 900; }
.p-hero p { margin: 0; font-size: 13.5px; }
.p-hero-actions { display: flex; gap: 9px; }

.p-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.p-stat {
  display: flex; align-items: center; gap: 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.p-stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.p-stat-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.p-tone-aqua .p-stat-ic { background: linear-gradient(135deg, #06b6d4, #2dd4bf); }
.p-tone-mint .p-stat-ic { background: linear-gradient(135deg, #2dd4bf, #059669); }
.p-tone-amber .p-stat-ic { background: linear-gradient(135deg, #fbbf24, #f472b6); }
.p-tone-royal .p-stat-ic { background: linear-gradient(135deg, #8b5cf6, #06b6d4); }
.p-stat b { display: block; font-size: 19px; font-weight: 900; color: var(--text); line-height: 1.3; }
.p-stat span { display: block; font-size: 12px; font-weight: 700; color: var(--text-2); }
.p-stat small { font-size: 10.5px; color: var(--muted); }

.p-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.p-grid-2.p-align-start { align-items: start; }
.p-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); }
.p-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.p-card-head h3 { margin: 0; font-size: 15px; font-weight: 800; }
.p-chip-mini { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.p-chip-mini.mint { color: var(--mint); border-color: rgba(5,150,105,.35); }

.p-chart { width: 100%; height: 140px; }
.p-chart-foot { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 4px; }

.p-meter { margin-bottom: 13px; }
.p-meter-head { display: flex; justify-content: space-between; font-size: 11.5px; margin-bottom: 6px; }
.p-meter-head span { color: var(--muted); font-weight: 700; }
.p-meter-ok { color: var(--text); }
.p-meter-amber { color: var(--amber); }
.p-meter-rose { color: var(--rose); }
.p-meter-track { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.p-meter-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #06b6d4, #2dd4bf); transition: width .8s cubic-bezier(.22,1,.36,1); }
.p-meter-track i.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.p-meter-track i.rose { background: linear-gradient(90deg, #e11d48, #fb7185); }

.p-rate-big { font-size: 30px; font-weight: 900; color: var(--accent); margin-bottom: 6px; }
.p-quick { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 14px; }

.p-activity { display: grid; gap: 2px; }
.p-activity li { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 10px; transition: background .2s; }
.p-activity li:hover { background: var(--bg-2); }
.p-act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.p-activity p { flex: 1; margin: 0; font-size: 12px; color: var(--text-2); }
.p-activity time { font-size: 10px; color: var(--muted); white-space: nowrap; }

/* ---------- سرویس‌ها ---------- */
.p-services { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.p-svc { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); transition: all .25s; }
.p-svc:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.p-svc header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.p-svc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.p-svc header h3 { margin: 0 0 2px; font-size: 15px; }
.p-svc header > div { flex: 1; min-width: 0; }
.p-svc footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 13px; margin-top: 6px; flex-wrap: wrap; }
.p-svc footer > div { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- دامنه‌ها ---------- */
.p-domains { display: grid; gap: 12px; }
.p-domain { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 17px 20px; box-shadow: var(--shadow-sm); }
.p-domain > header { display: flex; align-items: center; gap: 13px; margin-bottom: 13px; }
.p-domain-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-en); font-weight: 900; font-size: 13px; flex-shrink: 0; }
.p-domain-name { flex: 1; min-width: 0; }
.p-domain-name b { font-family: var(--font-en); font-size: 15px; color: var(--text); }
.p-domain > footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 12px; }
.p-domain-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.p-switch-row { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.p-switch { position: relative; width: 42px; height: 23px; border-radius: 99px; background: var(--bg-2); border: 1px solid var(--line-strong); transition: all .25s; padding: 0; }
.p-switch i { position: absolute; top: 2px; inset-inline-start: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--muted); transition: all .25s; }
.p-switch.on { background: var(--grad-btn); border-color: transparent; }
.p-switch.on i { inset-inline-start: 21px; background: #fff; }

.p-dns { border-top: 1px dashed var(--line-strong); margin-top: 14px; padding-top: 14px; }
.p-dns-toolbar { display: grid; grid-template-columns: 90px 1fr 1.6fr 90px auto; gap: 8px; margin-bottom: 10px; }
.p-dns select, .p-dns input { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 11px; color: var(--text); font-size: 12px; font-family: var(--font-en); direction: ltr; text-align: left; width: 100%; }
.p-dns-record { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 11px; padding: 8px 12px; margin-bottom: 7px; font-size: 12px; animation: abrpRowIn .35s backwards; }
.p-dns-type { width: 46px; text-align: center; font-family: var(--font-en); font-weight: 900; font-size: 10.5px; border-radius: 7px; padding: 3px 0; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.p-dns-record .v { flex: 1; font-family: var(--font-en); direction: ltr; text-align: left; word-break: break-all; color: var(--text-2); }
.p-dns-record .h { font-weight: 800; color: var(--text); }
.p-dns-record small { color: var(--muted); white-space: nowrap; }
.p-dns-del { color: var(--muted); }
.p-dns-del:hover { color: var(--rose); }
.p-dns-empty { padding: 22px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 12px; font-size: 12px; }

/* ---------- سفارش‌ها ---------- */
.p-orders { display: grid; gap: 11px; }
.p-order {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 15px 18px;
  box-shadow: var(--shadow-sm); transition: all .2s;
}
.p-order:hover { border-color: var(--accent); }
.p-order-no { font-weight: 800; color: var(--muted); font-size: 12.5px; }
.p-order-main { flex: 1; min-width: 180px; }
.p-order-main b { display: block; font-size: 13.5px; color: var(--text); }
.p-order-total { font-size: 15px; font-weight: 900; color: var(--text); }
.p-order-actions { display: flex; gap: 8px; }

.p-pill { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 11px; border-radius: 99px; border: 1px solid; }
.p-pill-mint { color: var(--mint); border-color: rgba(5,150,105,.4); background: rgba(5,150,105,.08); }
.p-pill-amber { color: var(--amber); border-color: rgba(217,119,6,.4); background: rgba(217,119,6,.07); }
.p-pill-rose { color: var(--rose); border-color: rgba(225,29,72,.4); background: rgba(225,29,72,.07); }
.p-pill-accent { color: var(--accent); border-color: rgba(8,145,178,.4); background: var(--accent-soft); }
.p-pill-royal { color: var(--royal); border-color: rgba(109,40,217,.35); background: rgba(109,40,217,.07); }
.p-pill-mist { color: var(--muted); border-color: var(--line-strong); background: var(--bg-2); }

/* ---------- تیکت‌ها ---------- */
.p-tickets { display: grid; gap: 2px; }
.p-ticket {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: right;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 13px 8px; border-radius: 12px; transition: background .2s;
}
.p-ticket:hover { background: var(--bg-2); }
.p-ticket:last-child { border-bottom: 0; }
.p-ticket-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex-shrink: 0; }
.p-ticket-dot.live { background: var(--amber); box-shadow: 0 0 0 3px rgba(217,119,6,.18); }
.p-ticket-main { flex: 1; min-width: 0; }
.p-ticket-main b { display: block; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-ticket-side { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }

.p-thread { display: grid; gap: 14px; max-height: 420px; overflow-y: auto; padding: 6px 4px 12px; }
.p-msg { display: flex; gap: 10px; }
.p-msg.user { flex-direction: row-reverse; }
.p-msg-avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-size: 13px; font-weight: 900; flex-shrink: 0; background: var(--bg-2); color: var(--text-2); }
.p-msg.staff .p-msg-avatar { background: var(--grad); color: #fff; }
.p-msg-body { max-width: 78%; }
.p-msg-body small { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.p-msg.user .p-msg-body small { text-align: left; }
.p-msg-body p {
  margin: 0; font-size: 13px; line-height: 1.95; color: var(--text); border-radius: 15px; padding: 11px 15px;
  border: 1px solid var(--line); background: var(--bg-2);
}
.p-msg.staff .p-msg-body p { background: var(--accent-soft); border-color: rgba(8,145,178,.3); border-start-start-radius: 4px; }
.p-msg.user .p-msg-body p { border-start-end-radius: 4px; }

.p-reply { display: flex; align-items: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.p-reply textarea { flex: 1; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 13px; padding: 11px 14px; color: var(--text); font-family: var(--font-fa); font-size: 13px; resize: none; outline: none; }
.p-reply textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

/* ---------- حالت خالی/لودینگ ---------- */
.p-empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 60px 20px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); }
.p-empty.sm { padding: 30px; }
.p-empty h3 { margin: 0; font-size: 16px; color: var(--text); }
.p-empty p { margin: 0; font-size: 12.5px; }
.p-skel { background: linear-gradient(90deg, var(--bg-2) 25%, var(--surface) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: abrpSkel 1.4s infinite; border-radius: 14px; }

/* ---------- نشست ---------- */
.p-session { display: grid; gap: 4px; background: var(--bg-2); border-radius: 13px; padding: 14px 16px; font-size: 13px; }
.p-session b { color: var(--text); }

/* ---------- توست ---------- */
.p-toasts { position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(-50%); z-index: 99; display: grid; gap: 9px; width: min(400px, 92vw); }
.p-toast {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 15px;
  box-shadow: var(--shadow-lg); padding: 13px 16px; font-size: 13px; font-weight: 600; color: var(--text);
  animation: pToastIn .35s cubic-bezier(.22,1,.36,1);
}
@keyframes pToastIn { from { opacity: 0; transform: translateY(18px) scale(.96); } }
.p-toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }
.p-toast i { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.p-toast.ok i { background: var(--mint); }
.p-toast.err i { background: var(--rose); }
.p-toast.info i { background: var(--accent); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1023.5px) {
  .p-auth { grid-template-columns: 1fr; }
  .p-auth-visual { display: none; }
  .p-sidebar { position: fixed; inset-inline-start: 0; transform: translateX(105%); box-shadow: var(--shadow-lg); }
  [dir="ltr"] .p-sidebar { transform: translateX(-105%); }
  .p-sidebar.is-open { transform: translateX(0) !important; }
  .p-burger { display: grid; }
  .p-stats { grid-template-columns: repeat(2, 1fr); }
  .p-grid-2, .p-services { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .p-stats, .p-form-row { grid-template-columns: 1fr; }
  .p-hide-sm { display: none !important; }
  .p-dns-toolbar { grid-template-columns: 1fr 1fr; }
  .p-content { padding-inline: 14px; }
}
