/* ==========================================================================
   دامنه‌یار — استایل ایزوله (بدون تداخل با قالب)
   --------------------------------------------------------------------------
   ▸ تمام سلکتورها زیر .dyr-scope قرار دارند (بدون هیچ سلکتور سراسری)
   ▸ تمام کلاس‌ها با پیشوند dyr- نام‌گذاری شده‌اند
   ▸ ریست داخلی فقط داخل خودِ اسکوپ اعمال می‌شود
   ▸ متغیرها روی .dyr-scope تعریف می‌شوند و به بیرون نشت نمی‌کنند
   ========================================================================== */

/* ---------- متغیرها و اسکوپ ---------- */
.dyr-scope {
  --dyr-font: "Vazirmatn", "Segoe UI", Tahoma, -apple-system, BlinkMacSystemFont, sans-serif;
  --dyr-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --dyr-bg: #070a14;
  --dyr-panel: rgba(255, 255, 255, 0.045);
  --dyr-panel-2: rgba(255, 255, 255, 0.028);
  --dyr-line: rgba(148, 163, 184, 0.16);
  --dyr-line-soft: rgba(148, 163, 184, 0.09);
  --dyr-text: #e8edf6;
  --dyr-muted: #93a0b6;
  --dyr-faint: #5c6a82;
  --dyr-violet: #8b5cf6;
  --dyr-violet-d: #7c3aed;
  --dyr-cyan: #22d3ee;
  --dyr-ok: #34d399;
  --dyr-warn: #fbbf24;
  --dyr-err: #f87171;
  --dyr-r: 14px;
  --dyr-r-sm: 10px;
  --dyr-grad: linear-gradient(115deg, #7c3aed 10%, #6d28d9 45%, #0e7490 100%);
  --dyr-shadow: 0 18px 50px -18px rgba(4, 6, 18, 0.9);

  direction: rtl;
  font-family: var(--dyr-font);
  font-size: 15px;
  line-height: 1.85;
  color: var(--dyr-text);
  text-align: right;
  -webkit-font-smoothing: antialiased;
  background: transparent;
  border: 0;
  width: 100%;
}

/* ریست — فقط داخل اسکوپ */
.dyr-scope *,
.dyr-scope *::before,
.dyr-scope *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.dyr-scope h1, .dyr-scope h2, .dyr-scope h3, .dyr-scope h4 {
  font: inherit;
  font-weight: 800;
  color: var(--dyr-text);
  background: none;
  border: 0;
  letter-spacing: -0.01em;
}
.dyr-scope p { margin: 0; }
.dyr-scope a {
  color: var(--dyr-cyan);
  text-decoration: none;
  background: none;
  border: 0;
  box-shadow: none;
}
.dyr-scope a:hover { color: #67e8f9; text-decoration: none; }
.dyr-scope img { max-width: 100%; height: auto; border: 0; }
.dyr-scope button {
  font-family: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
}
.dyr-scope input,
.dyr-scope select,
.dyr-scope textarea {
  font-family: inherit;
  color: var(--dyr-text);
  background: rgba(4, 7, 16, 0.75);
  border: 1px solid var(--dyr-line);
  border-radius: var(--dyr-r-sm);
  padding: 0.7rem 0.9rem;
  font-size: 0.92rem;
  min-height: 0;
  box-shadow: none;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.dyr-scope input:focus,
.dyr-scope select:focus,
.dyr-scope textarea:focus {
  border-color: rgba(139, 92, 246, 0.65);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16);
}
.dyr-scope input::placeholder { color: var(--dyr-faint); }
.dyr-scope select option { background: #0b0f1c; color: var(--dyr-text); }
.dyr-scope svg { width: 1.1em; height: 1.1em; flex: none; }
.dyr-scope table { border-collapse: collapse; width: 100%; border: 0; }
.dyr-scope code { font-family: var(--dyr-mono); background: none; border: 0; padding: 0; }

/* ---------- دکمه‌ها ---------- */
.dyr-scope .dyr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--dyr-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.88rem;
  border-radius: var(--dyr-r-sm);
  padding: 0.72rem 1.35rem;
  line-height: 1.4;
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.7);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s, filter 0.25s;
  white-space: nowrap;
}
.dyr-scope .dyr-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 14px 32px -10px rgba(124, 58, 237, 0.85);
}
.dyr-scope .dyr-btn:active { transform: translateY(0) scale(0.98); }
.dyr-scope .dyr-btn:disabled { opacity: 0.55; pointer-events: none; }
.dyr-scope .dyr-btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }
.dyr-scope .dyr-btn-ghost {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  box-shadow: none;
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.dyr-scope .dyr-btn-ghost:hover { color: #fde68a; background: rgba(251, 191, 36, 0.2); }

/* ---------- سرچ‌باکس (شورت‌کد ثبت/هویز + ابزارک) ---------- */
.dyr-scope .dyr-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(160deg, rgba(20, 24, 42, 0.9), rgba(10, 13, 26, 0.95));
  border: 1px solid var(--dyr-line);
  border-radius: var(--dyr-r);
  padding: 0.45rem;
}
.dyr-scope .dyr-search-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--dyr-r-sm);
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  font-size: 1.05rem;
}
.dyr-scope .dyr-search .dyr-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  font-family: var(--dyr-mono);
  font-size: 1rem;
  text-align: left;
}
.dyr-scope .dyr-search .dyr-input:focus { box-shadow: none; }
.dyr-scope .dyr-search-compact { flex-wrap: wrap; }
.dyr-scope .dyr-search-compact .dyr-btn { width: 100%; }

/* ---------- ابزارک ---------- */
.dyr-scope.dyr-widget { font-size: 14px; }
.dyr-scope .dyr-widget-tlds {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.dyr-scope .dyr-widget-tlds a {
  font-family: var(--dyr-mono);
  font-size: 0.72rem;
  color: var(--dyr-muted);
  background: var(--dyr-panel-2);
  border: 1px solid var(--dyr-line-soft);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
}
.dyr-scope .dyr-widget-tlds a:hover { color: #fff; border-color: rgba(139, 92, 246, 0.55); }

/* ---------- پیام‌ها / بج‌ها ---------- */
.dyr-scope .dyr-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.22rem 0.75rem;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
}
.dyr-scope .dyr-chip-ok { background: rgba(52, 211, 153, 0.12); color: var(--dyr-ok); }
.dyr-scope .dyr-chip-warn { background: rgba(251, 191, 36, 0.12); color: var(--dyr-warn); }
.dyr-scope .dyr-chip-info { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }

.dyr-scope .dyr-badge {
  display: block;
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  border-radius: var(--dyr-r-sm);
  font-weight: 800;
  font-size: 0.9rem;
}
.dyr-scope .dyr-badge-ok   { background: rgba(52, 211, 153, 0.1); color: var(--dyr-ok); border: 1px solid rgba(52, 211, 153, 0.3); }
.dyr-scope .dyr-badge-warn { background: rgba(251, 191, 36, 0.1); color: var(--dyr-warn); border: 1px solid rgba(251, 191, 36, 0.3); }
.dyr-scope .dyr-badge-err  { background: rgba(248, 113, 113, 0.1); color: var(--dyr-err); border: 1px solid rgba(248, 113, 113, 0.3); }

/* ---------- نتایج ثبت/هویز ---------- */
.dyr-scope .dyr-result { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.dyr-scope .dyr-loading { text-align: center; color: var(--dyr-muted); padding: 1.4rem; }
.dyr-scope .dyr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  background: var(--dyr-panel-2);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r-sm);
  padding: 0.75rem 1rem;
  flex-wrap: wrap;
}
.dyr-scope .dyr-row-domain {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}
.dyr-scope .dyr-state {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-weight: 900;
  flex: none;
}
.dyr-scope .dyr-state-ok { background: rgba(52, 211, 153, 0.12); color: var(--dyr-ok); }
.dyr-scope .dyr-state-no { background: rgba(248, 113, 113, 0.12); color: var(--dyr-err); }
.dyr-scope .dyr-row b { font-family: var(--dyr-mono); font-weight: 700; font-size: 0.95rem; }
.dyr-scope .dyr-row small { display: block; color: var(--dyr-faint); font-size: 0.7rem; }
.dyr-scope .dyr-row-price { font-family: var(--dyr-mono); font-weight: 900; font-size: 1.05rem; color: var(--dyr-text); }
.dyr-scope .dyr-row-price small { color: var(--dyr-faint); font-weight: 400; }

.dyr-scope .dyr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.dyr-scope .dyr-kv {
  background: var(--dyr-panel-2);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r-sm);
  padding: 0.85rem 1rem;
}
.dyr-scope .dyr-kv span { display: block; font-size: 0.72rem; font-weight: 700; color: var(--dyr-muted); }
.dyr-scope .dyr-kv b { display: block; margin-top: 0.3rem; font-size: 0.88rem; word-break: break-all; }
.dyr-scope .dyr-ns {
  list-style: none;
  background: var(--dyr-panel-2);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r-sm);
  font-family: var(--dyr-mono);
  font-size: 0.82rem;
}
.dyr-scope .dyr-ns li { padding: 0.55rem 1rem; }
.dyr-scope .dyr-ns li + li { border-top: 1px solid var(--dyr-line-soft); }

/* ==========================================================================
   پنل کاربری اختصاصی دامنه
   ========================================================================== */
.dyr-scope.dyr-panel {
  background: radial-gradient(40rem 20rem at 90% -5%, rgba(139, 92, 246, 0.14), transparent 60%),
              radial-gradient(30rem 18rem at 5% 20%, rgba(34, 211, 238, 0.08), transparent 60%),
              var(--dyr-bg);
  border: 1px solid var(--dyr-line);
  border-radius: calc(var(--dyr-r) + 4px);
  padding: clamp(0.8rem, 2.5vw, 1.6rem);
  box-shadow: var(--dyr-shadow);
}

/* ---------- ورود ---------- */
.dyr-scope .dyr-login { display: grid; place-items: center; padding: clamp(1.5rem, 5vw, 3rem) 1rem; }
.dyr-scope .dyr-login-card {
  width: 100%;
  max-width: 400px;
  background: var(--dyr-panel);
  border: 1px solid var(--dyr-line);
  border-radius: calc(var(--dyr-r) + 2px);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  backdrop-filter: blur(14px);
  text-align: center;
}
.dyr-scope .dyr-login-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 1.1rem;
  border-radius: 16px;
  background: var(--dyr-grad);
  color: #fff;
}
.dyr-scope .dyr-login-icon svg { width: 28px; height: 28px; }
.dyr-scope .dyr-login-title { font-size: 1.25rem; }
.dyr-scope .dyr-login-sub { margin-top: 0.5rem; font-size: 0.8rem; color: var(--dyr-muted); }

/* فرم ورود وردپرس داخل اسکوپ (بدون تاثیر روی سایر فرم‌های سایت) */
.dyr-scope .dyr-login form { margin-top: 1.3rem; text-align: right; }
.dyr-scope .dyr-login form p { margin: 0 0 0.9rem; }
.dyr-scope .dyr-login form label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dyr-muted);
  line-height: 1.6;
}
.dyr-scope .dyr-login form input.input {
  width: 100%;
  background: rgba(4, 7, 16, 0.8);
}
.dyr-scope .dyr-login .login-remember label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 400;
  font-size: 0.8rem;
}
.dyr-scope .dyr-login .login-remember input { width: auto; }
.dyr-scope .dyr-login .login-submit { margin: 0.4rem 0 0; }
.dyr-scope .dyr-login .login-submit .button {
  width: 100%;
  background: var(--dyr-grad);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border: 0;
  border-radius: var(--dyr-r-sm);
  padding: 0.75rem 1rem;
  height: auto;
  line-height: 1.5;
  text-shadow: none;
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.7);
}
.dyr-scope .dyr-login .login-submit .button:hover { filter: brightness(1.1); }
.dyr-scope .dyr-login-links { margin-top: 1rem; font-size: 0.75rem; color: var(--dyr-faint); }

/* ---------- چیدمان پنل ---------- */
.dyr-scope .dyr-panel-grid {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.dyr-scope .dyr-side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--dyr-panel);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r);
  padding: 1rem;
  position: sticky;
  top: 1rem;
}
.dyr-scope .dyr-user { display: flex; align-items: center; gap: 0.7rem; }
.dyr-scope .dyr-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 13px;
  background: var(--dyr-grad);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}
.dyr-scope .dyr-user-meta { min-width: 0; }
.dyr-scope .dyr-user-meta b { display: block; font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dyr-scope .dyr-user-meta i { display: block; font-style: normal; font-family: var(--dyr-mono); font-size: 0.66rem; color: var(--dyr-faint); direction: ltr; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dyr-scope .dyr-tabs { display: flex; flex-direction: column; gap: 0.3rem; }
.dyr-scope .dyr-tab {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  text-align: right;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--dyr-muted);
  border-radius: var(--dyr-r-sm);
  padding: 0.65rem 0.8rem;
  transition: color 0.2s, background 0.2s;
}
.dyr-scope .dyr-tab:hover { color: var(--dyr-text); background: rgba(255, 255, 255, 0.04); }
.dyr-scope .dyr-tab.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.08));
  box-shadow: inset 2px 0 0 var(--dyr-violet);
}
.dyr-scope .dyr-tab em {
  margin-inline-start: auto;
  font-style: normal;
  font-size: 0.68rem;
  background: rgba(139, 92, 246, 0.18);
  color: #c4b5fd;
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
}
.dyr-scope .dyr-logout {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--dyr-line-soft);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dyr-faint);
}
.dyr-scope .dyr-logout:hover { color: var(--dyr-err); }

/* ---------- بخش‌ها ---------- */
.dyr-scope .dyr-section[hidden] { display: none; }
.dyr-scope .dyr-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.dyr-scope .dyr-sec-head h3 { font-size: 1.1rem; }
.dyr-scope .dyr-sec-stats { display: flex; gap: 0.4rem; }

.dyr-scope .dyr-empty {
  text-align: center;
  color: var(--dyr-muted);
  padding: 3rem 1rem;
  background: var(--dyr-panel-2);
  border: 1px dashed var(--dyr-line);
  border-radius: var(--dyr-r);
}
.dyr-scope .dyr-empty svg { width: 40px; height: 40px; margin-bottom: 0.7rem; opacity: 0.4; }
.dyr-scope .dyr-empty .dyr-btn { margin-top: 1rem; }

/* ---------- کارت دامنه ---------- */
.dyr-scope .dyr-dcards { display: grid; gap: 0.7rem; }
.dyr-scope .dyr-dcard {
  background: var(--dyr-panel);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r);
  padding: 1rem 1.15rem;
  transition: border-color 0.25s, transform 0.25s;
}
.dyr-scope .dyr-dcard:hover { border-color: rgba(139, 92, 246, 0.4); transform: translateY(-2px); }
.dyr-scope .dyr-dcard-top { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.dyr-scope .dyr-dcard-status {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
}
.dyr-scope .dyr-dcard-status svg { width: 20px; height: 20px; }
.dyr-scope .dyr-dcard-status.is-ok { background: rgba(52, 211, 153, 0.1); color: var(--dyr-ok); }
.dyr-scope .dyr-dcard-status.is-pend { background: rgba(251, 191, 36, 0.1); color: var(--dyr-warn); }
.dyr-scope .dyr-dcard-name { flex: 1; min-width: 140px; }
.dyr-scope .dyr-dcard-name b { font-family: var(--dyr-mono); font-size: 1rem; font-weight: 700; }
.dyr-scope .dyr-dcard-name span { display: block; font-size: 0.72rem; color: var(--dyr-faint); margin-top: 0.15rem; }
.dyr-scope .dyr-dcard-opts { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dyr-scope .dyr-opt { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; color: var(--dyr-muted); cursor: pointer; }
.dyr-scope .dyr-dcard-ns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem; }
.dyr-scope .dyr-dcard-ns code {
  font-size: 0.68rem;
  color: var(--dyr-muted);
  background: rgba(4, 7, 16, 0.6);
  border: 1px solid var(--dyr-line-soft);
  border-radius: 6px;
  padding: 0.15rem 0.55rem;
}

/* ---------- سوییچ ---------- */
.dyr-scope .dyr-sw {
  position: relative;
  width: 38px;
  height: 21px;
  flex: none;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.28);
  transition: background 0.3s;
}
.dyr-scope .dyr-sw i {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.dyr-scope .dyr-sw[data-on="1"] { background: var(--dyr-grad); }
.dyr-scope .dyr-sw[data-on="1"] i { transform: translateX(-17px); }

/* ---------- دی‌ان‌اِس ---------- */
.dyr-scope .dyr-dns-picker { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1rem; }
.dyr-scope .dyr-pill {
  font-family: var(--dyr-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dyr-muted);
  background: var(--dyr-panel-2);
  border: 1px solid var(--dyr-line-soft);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  transition: all 0.22s;
}
.dyr-scope .dyr-pill:hover { color: var(--dyr-text); }
.dyr-scope .dyr-pill.is-active {
  color: #fff;
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.25), rgba(34, 211, 238, 0.1));
}

.dyr-scope .dyr-dns-zone {
  background: var(--dyr-panel);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r);
  padding: 1.1rem;
}
.dyr-scope .dyr-dns-note { font-size: 0.78rem; color: var(--dyr-muted); margin-bottom: 0.9rem; }
.dyr-scope .dyr-dns-note b { color: var(--dyr-text); font-family: var(--dyr-mono); }

.dyr-scope .dyr-table-wrap { overflow-x: auto; border: 1px solid var(--dyr-line-soft); border-radius: var(--dyr-r-sm); }
.dyr-scope .dyr-table { min-width: 560px; font-size: 0.83rem; }
.dyr-scope .dyr-table thead th {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--dyr-muted);
  background: rgba(4, 7, 16, 0.5);
  padding: 0.6rem 0.9rem;
  white-space: nowrap;
}
.dyr-scope .dyr-table tbody td {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--dyr-line-soft);
  vertical-align: middle;
  white-space: nowrap;
}
.dyr-scope .dyr-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.dyr-scope .dyr-table .dyr-mono { font-family: var(--dyr-mono); font-size: 0.8rem; }
.dyr-scope .dyr-table .dyr-val { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }

.dyr-scope .dyr-type {
  display: inline-block;
  font-family: var(--dyr-mono);
  font-size: 0.7rem;
  font-weight: 900;
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  background: rgba(34, 211, 238, 0.1);
  color: #67e8f9;
}
.dyr-scope .dyr-type-MX { background: rgba(251, 191, 36, 0.12); color: var(--dyr-warn); }
.dyr-scope .dyr-type-TXT { background: rgba(52, 211, 153, 0.1); color: var(--dyr-ok); }
.dyr-scope .dyr-type-CNAME { background: rgba(139, 92, 246, 0.14); color: #c4b5fd; }
.dyr-scope .dyr-type-NS { background: rgba(217, 70, 239, 0.12); color: #f0abfc; }

.dyr-scope .dyr-acts { display: flex; gap: 0.35rem; }
.dyr-scope .dyr-act {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--dyr-muted);
  font-size: 0.75rem;
  transition: all 0.2s;
}
.dyr-scope .dyr-act:hover { color: #fff; background: rgba(139, 92, 246, 0.3); }
.dyr-scope .dyr-act-del:hover { color: var(--dyr-err); background: rgba(248, 113, 113, 0.15); }

.dyr-scope .dyr-dns-add {
  display: grid;
  grid-template-columns: 92px minmax(80px, 0.6fr) minmax(140px, 2fr) 92px 76px auto;
  gap: 0.5rem;
  margin-top: 0.9rem;
  align-items: center;
}
.dyr-scope .dyr-dns-add .dyr-input { width: 100%; padding: 0.55rem 0.7rem; font-size: 0.8rem; }
.dyr-scope .dyr-dns-add input[name="value"],
.dyr-scope .dyr-dns-add input[name="name"],
.dyr-scope .dyr-dns-add input[name="priority"] { font-family: var(--dyr-mono); text-align: left; }
.dyr-scope .dyr-plus { font-size: 1rem; line-height: 1; }

/* ردیف ویرایش درون‌خطی */
.dyr-scope .dyr-edit input, .dyr-scope .dyr-edit select {
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  font-family: var(--dyr-mono);
  text-align: left;
}

/* ---------- تعرفه‌ها ---------- */
.dyr-scope .dyr-price-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) { .dyr-scope .dyr-price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .dyr-scope .dyr-price-grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.dyr-scope .dyr-price-card {
  display: grid;
  gap: 0.55rem;
  background: var(--dyr-panel);
  border: 1px solid var(--dyr-line-soft);
  border-radius: var(--dyr-r);
  padding: 1.1rem;
  transition: border-color 0.25s, transform 0.25s;
}
.dyr-scope .dyr-price-card:hover { border-color: rgba(139, 92, 246, 0.5); transform: translateY(-3px); }
.dyr-scope .dyr-price-tld { font-family: var(--dyr-mono); font-size: 1.3rem; font-weight: 900; text-align: left; }
.dyr-scope .dyr-price-main { display: flex; align-items: baseline; gap: 0.5rem; }
.dyr-scope .dyr-price-main b { font-family: var(--dyr-mono); font-size: 1.15rem; color: var(--dyr-ok); }
.dyr-scope .dyr-price-main small { font-size: 0.66rem; color: var(--dyr-faint); }
.dyr-scope .dyr-price-row { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--dyr-muted); }
.dyr-scope .dyr-price-row i { font-style: normal; font-family: var(--dyr-mono); }

/* ---------- اعلان شناور ---------- */
.dyr-scope .dyr-toast {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 999999;
  background: rgba(10, 13, 26, 0.95);
  color: var(--dyr-text);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: var(--dyr-r-sm);
  padding: 0.75rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--dyr-shadow);
  backdrop-filter: blur(10px);
  animation: dyr-toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.dyr-scope .dyr-toast.is-err { border-color: rgba(248, 113, 113, 0.5); }
.dyr-scope .dyr-toast[hidden] { display: none; }
@keyframes dyr-toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* لودینگ داخلی دکمه */
.dyr-scope .dyr-spin {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: dyr-rot 0.7s linear infinite;
}
@keyframes dyr-rot { to { transform: rotate(360deg); } }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 860px) {
  .dyr-scope .dyr-panel-grid { grid-template-columns: 1fr; }
  .dyr-scope .dyr-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .dyr-scope .dyr-tabs { flex-direction: row; flex-wrap: wrap; }
  .dyr-scope .dyr-tab { width: auto; }
  .dyr-scope .dyr-tab em { margin-inline-start: 0.4rem; }
  .dyr-scope .dyr-logout { margin-top: 0; padding-top: 0; border-top: 0; margin-inline-start: auto; }
  .dyr-scope .dyr-dns-add { grid-template-columns: 1fr 1fr; }
  .dyr-scope .dyr-dns-add .dyr-add-value { grid-column: span 2; }
  .dyr-scope .dyr-search { flex-wrap: wrap; }
  .dyr-scope .dyr-search .dyr-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dyr-scope *, .dyr-scope *::before, .dyr-scope *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
