/*!
 * DataServer — استایل فرانت‌اند (کاملاً مجزا از CSS وردپرس و ووکامرس)
 * همه کلاس‌ها با پیشوند dsrvr- و زیر اسکوپ .dsrvr قرار دارند تا هیچ
 * تداخلی با قالب، ووکامرس یا سایر افزونه‌ها ایجاد نشود.
 * فایل فقط در صفحات دارای شورتکد افزونه لود می‌شود.
 */

.dsrvr {
  --ds-acc: #3dffae;
  --ds-acc-d: #14d189;
  --ds-cy: #4dd8ff;
  --ds-bg: #080e1a;
  --ds-card: #0c1524;
  --ds-line: rgba(255, 255, 255, .09);
  --ds-txt: #e9f2ec;
  --ds-mut: rgba(233, 242, 236, .55);
  --ds-dim: rgba(233, 242, 236, .35);
  --ds-red: #ff6b7d;
  direction: rtl;
  text-align: right;
  color: var(--ds-txt);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.8;
  margin: 24px 0;
  max-width: 100%;
  box-sizing: border-box;
}
.dsrvr *,
.dsrvr *::before,
.dsrvr *::after { box-sizing: border-box; }

.dsrvr button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ---------------------------------------------------------- ساختار */

.dsrvr-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 22px;
  align-items: start;
}
@media (max-width: 860px) {
  .dsrvr-grid { grid-template-columns: 1fr; }
}

.dsrvr .dsrvr-card {
  background: linear-gradient(165deg, #0e1830, var(--ds-card) 55%);
  border: 1px solid var(--ds-line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7);
}

.dsrvr .dsrvr-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--ds-line);
  padding-bottom: 16px;
  margin-bottom: 22px;
}
.dsrvr .dsrvr-title strong { font-size: 19px; font-weight: 800; }
.dsrvr .dsrvr-en {
  direction: ltr;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ds-dim);
  letter-spacing: .4px;
}

.dsrvr-field { margin-bottom: 26px; }
.dsrvr-field:last-child { margin-bottom: 4px; }
.dsrvr-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.dsrvr .dsrvr-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ds-mut);
  margin-bottom: 10px;
}
.dsrvr-field-head .dsrvr-label { margin-bottom: 0; }

.dsrvr .dsrvr-value {
  background: rgba(61, 255, 174, .12);
  color: var(--ds-acc);
  font-family: ui-monospace, monospace;
  font-weight: 700;
  font-size: 14px;
  padding: 3px 12px;
  border-radius: 9px;
}

/* اسلایدر */
.dsrvr .dsrvr-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .08);
  outline: none;
}
.dsrvr .dsrvr-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0a1322;
  border: 3px solid var(--ds-acc);
  box-shadow: 0 0 0 5px rgba(61, 255, 174, .12), 0 0 16px rgba(61, 255, 174, .5);
  transition: transform .15s ease;
}
.dsrvr .dsrvr-range::-webkit-slider-thumb:hover { transform: scale(1.15); }
.dsrvr .dsrvr-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0a1322;
  border: 3px solid var(--ds-acc);
  box-shadow: 0 0 16px rgba(61, 255, 174, .5);
}
.dsrvr .dsrvr-range::-moz-range-track { background: transparent; }

.dsrvr .dsrvr-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.dsrvr .dsrvr-scale i {
  font-style: normal;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ds-dim);
}

/* انتخاب‌ها و قرص‌ها */
.dsrvr .dsrvr-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.dsrvr .dsrvr-choices--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .dsrvr .dsrvr-choices, .dsrvr .dsrvr-choices--2 { grid-template-columns: repeat(2, 1fr); }
}

.dsrvr .dsrvr-choice {
  position: relative;
  text-align: right;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.5;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dsrvr .dsrvr-choice small {
  display: block;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ds-dim);
  margin-top: 3px;
}
.dsrvr .dsrvr-choice:hover { border-color: rgba(255, 255, 255, .25); }
.dsrvr .dsrvr-choice.is-on {
  border-color: var(--ds-acc);
  background: rgba(61, 255, 174, .09);
  box-shadow: 0 0 22px rgba(61, 255, 174, .15), inset 0 0 0 1px rgba(61, 255, 174, .35);
}

.dsrvr .dsrvr-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.dsrvr .dsrvr-pill {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ds-line);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .2s, background .2s;
}
.dsrvr .dsrvr-pill small {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: var(--ds-dim);
  margin-right: 5px;
}
.dsrvr .dsrvr-pill:hover { border-color: rgba(255, 255, 255, .25); }
.dsrvr .dsrvr-pill.is-on {
  border-color: var(--ds-acc);
  background: rgba(61, 255, 174, .1);
  color: var(--ds-acc);
}
.dsrvr .dsrvr-pill.is-on small { color: var(--ds-acc); opacity: .75; }

.dsrvr .dsrvr-counters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 26px;
}
@media (max-width: 560px) { .dsrvr .dsrvr-counters { grid-template-columns: 1fr; } }

.dsrvr .dsrvr-counter,
.dsrvr .dsrvr-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--ds-line);
  border-radius: 14px;
  padding: 12px 14px;
}
.dsrvr .dsrvr-counter .dsrvr-label { margin: 0; }
.dsrvr .dsrvr-counter .dsrvr-label .dsrvr-en { display: block; font-size: 10px; }

.dsrvr .dsrvr-counter-btns { display: flex; align-items: center; gap: 8px; }
.dsrvr .dsrvr-counter-btns button {
  width: 32px; height: 32px;
  border-radius: 9px;
  border: 1px solid var(--ds-line);
  background: rgba(255, 255, 255, .05);
  color: var(--ds-txt);
  font-size: 17px;
  line-height: 1;
  transition: border-color .2s, color .2s;
}
.dsrvr .dsrvr-counter-btns button:hover { border-color: var(--ds-acc); color: var(--ds-acc); }
.dsrvr .dsrvr-counter-btns b {
  min-width: 34px;
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 15px;
}

/* تاگل */
.dsrvr .dsrvr-toggle { text-align: right; margin: 0; }
.dsrvr .dsrvr-toggle > span { font-weight: 700; font-size: 13.5px; }
.dsrvr .dsrvr-toggle small { display: block; font-weight: 400; font-size: 10.5px; color: var(--ds-dim); }
.dsrvr .dsrvr-toggle i {
  position: relative;
  flex-shrink: 0;
  width: 46px; height: 26px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .12);
  transition: background .25s;
}
.dsrvr .dsrvr-toggle i::after {
  content: "";
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform .25s;
}
.dsrvr .dsrvr-toggle[data-on="1"] { border-color: rgba(61, 255, 174, .5); }
.dsrvr .dsrvr-toggle[data-on="1"] i { background: rgba(61, 255, 174, .65); }
.dsrvr .dsrvr-toggle[data-on="1"] i::after { transform: translateX(-20px); }

/* باکس قیمت */
.dsrvr .dsrvr-side {
  position: sticky;
  top: 24px;
}
.dsrvr .dsrvr-side-label { font-size: 13px; font-weight: 700; color: var(--ds-mut); }

.dsrvr .dsrvr-total {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 8px 0 2px;
}
.dsrvr .dsrvr-total strong {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 34px rgba(61, 255, 174, .3);
}
.dsrvr .dsrvr-total em { font-style: normal; font-size: 13px; color: var(--ds-dim); padding-bottom: 9px; }
.dsrvr .dsrvr-toman {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ds-cy);
  margin-bottom: 16px;
  display: block;
}

.dsrvr .dsrvr-rows {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 0 0;
  border-top: 1px solid var(--ds-line);
}
.dsrvr .dsrvr-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
  color: var(--ds-mut);
  padding: 4px 2px;
}
.dsrvr .dsrvr-rows li b {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ds-txt);
}
.dsrvr .dsrvr-rows li b.dsrvr-off { color: var(--ds-acc); }

/* دکمه سفارش — اتصال خودکار به سبد خرید */
.dsrvr .dsrvr-order {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: linear-gradient(135deg, var(--ds-acc), var(--ds-acc-d));
  color: #04120b;
  font-size: 15.5px;
  font-weight: 900;
  padding: 16px 20px;
  border-radius: 15px;
  transition: box-shadow .25s, transform .12s, filter .2s;
}
.dsrvr .dsrvr-order:hover {
  box-shadow: 0 12px 40px -8px rgba(61, 255, 174, .55);
  filter: brightness(1.05);
}
.dsrvr .dsrvr-order:active { transform: scale(.985); }
.dsrvr .dsrvr-order:disabled { cursor: wait; opacity: .75; }
.dsrvr .dsrvr-order.is-loading { animation: dsrvrPulse 1.1s ease-in-out infinite; }
.dsrvr .dsrvr-order--link { text-decoration: none; margin-top: 14px; width: auto; display: inline-flex; padding: 12px 26px; }

@keyframes dsrvrPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.dsrvr .dsrvr-secure {
  display: block;
  font-size: 11px;
  color: var(--ds-dim);
  text-align: center;
  margin-top: 12px;
  line-height: 1.9;
}

.dsrvr .dsrvr-msg {
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 10px;
  min-height: 1em;
  color: var(--ds-mut);
}
.dsrvr .dsrvr-msg.is-ok { color: var(--ds-acc); }
.dsrvr .dsrvr-msg.is-err { color: var(--ds-red); }

/* پنل کاربری */
.dsrvr .dsrvr-login { text-align: center; padding: 44px 26px; }
.dsrvr .dsrvr-login strong { font-size: 18px; }
.dsrvr .dsrvr-login p { color: var(--ds-mut); font-size: 13.5px; }

.dsrvr .dsrvr-empty { color: var(--ds-mut); font-size: 13.5px; text-align: center; padding: 30px 0; }

.dsrvr .dsrvr-server {
  border: 1px solid var(--ds-line);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .02);
}
.dsrvr .dsrvr-server:last-child { margin-bottom: 0; }
.dsrvr .dsrvr-server-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.dsrvr .dsrvr-server-head strong { font-size: 14.5px; }
.dsrvr .dsrvr-server-meta { display: block; font-size: 11.5px; color: var(--ds-dim); }

.dsrvr .dsrvr-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 9px;
}
.dsrvr .dsrvr-status i { width: 7px; height: 7px; border-radius: 50%; }
.dsrvr .dsrvr-status--running { background: rgba(61, 255, 174, .12); color: var(--ds-acc); }
.dsrvr .dsrvr-status--running i { background: var(--ds-acc); box-shadow: 0 0 10px rgba(61, 255, 174, .8); }
.dsrvr .dsrvr-status--stopped { background: rgba(255, 107, 125, .12); color: var(--ds-red); }
.dsrvr .dsrvr-status--stopped i { background: var(--ds-red); }

.dsrvr .dsrvr-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.dsrvr .dsrvr-specs span {
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  font-size: 11px;
  color: var(--ds-mut);
  padding: 3px 10px;
}

.dsrvr .dsrvr-server-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dsrvr .dsrvr-action {
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 800;
  padding: 9px 18px;
  transition: background .2s;
}
.dsrvr .dsrvr-action:hover { background: rgba(255, 255, 255, .12); }
.dsrvr .dsrvr-action--power { background: rgba(61, 255, 174, .14); color: var(--ds-acc); }
.dsrvr .dsrvr-action--power:hover { background: rgba(61, 255, 174, .24); }
.dsrvr .dsrvr-action:disabled { opacity: .55; cursor: wait; }

/* ------------------------------------------------- اورلی انتقال به پرداخت
 * وقتی محصول به سبد اضافه شد، این لایه تمام‌صفحه نمایش داده می‌شود
 * و مشتری بلافاصله به تسویه‌حساب وووکامرس هدایت می‌گردد.
 */
.dsrvr-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(4, 7, 13, .94);
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  direction: rtl;
}
.dsrvr-overlay-box {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
}
.dsrvr-spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(61, 255, 174, .22);
  border-top-color: #3dffae;
  animation: dsrvrSpin .8s linear infinite;
  flex-shrink: 0;
}
.dsrvr-overlay-link {
  color: #3dffae;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}
@keyframes dsrvrSpin { to { transform: rotate(360deg); } }

/* راست‌چین روی قالب‌های انگلیسی */
.dsrvr[dir="ltr"] { direction: rtl; }
