/* NEVA — product-specific support hub */
.np-support,
.np-support *,
.np-dialog,
.np-dialog *,
.np-support-fab {
  box-sizing: border-box;
}

.np-support {
  --np-a: #d8a84e;
  --np-b: #a97722;
  --np-rgb: 216, 168, 78;
  position: relative;
  isolation: isolate;
  width: 100%;
  padding: clamp(42px, 6vw, 78px) 18px clamp(24px, 4vw, 42px);
  overflow: hidden;
  color: #f7f1e5;
  font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif;
  background:
    radial-gradient(720px 300px at 100% 0%, rgba(var(--np-rgb), 0.16), transparent 66%),
    radial-gradient(620px 340px at 0% 100%, rgba(var(--np-rgb), 0.09), transparent 66%),
    #0b0f14;
}

.np-support::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.36;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 72%);
}

.np-support-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid rgba(var(--np-rgb), 0.22);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018) 44%, rgba(var(--np-rgb), 0.035)),
    rgba(9, 13, 18, 0.74);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}

.np-support-shell::after {
  content: "";
  position: absolute;
  top: -130px;
  inset-inline-end: -90px;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--np-rgb), 0.18), transparent 68%);
  pointer-events: none;
}

.np-support-copy {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.np-support-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(var(--np-rgb), 0.3);
  border-radius: 999px;
  background: rgba(var(--np-rgb), 0.1);
  color: color-mix(in srgb, var(--np-a) 78%, white);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  direction: ltr;
}

.np-support-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--np-a);
  box-shadow: 0 0 0 5px rgba(var(--np-rgb), 0.12);
}

.np-support h2 {
  margin: 0 0 12px;
  color: #fffaf0;
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.np-support h2 span {
  color: var(--np-a);
}

.np-support-lead {
  max-width: 560px;
  margin: 0 0 22px;
  color: #c8c1b4;
  font-size: 15px;
  font-weight: 400;
  line-height: 2;
}

.np-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.np-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: 800 13px/1 "Vazirmatn", Tahoma, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.np-support-btn svg {
  width: 17px;
  height: 17px;
}

.np-support-btn--primary {
  background: linear-gradient(135deg, color-mix(in srgb, var(--np-a) 88%, white), var(--np-b));
  color: #10130f;
  box-shadow: 0 14px 28px -16px rgba(var(--np-rgb), 0.7);
}

.np-support-btn--ghost {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  color: #f7f1e5;
}

.np-support-btn:hover {
  transform: translateY(-2px);
}

.np-support-btn--ghost:hover {
  border-color: rgba(var(--np-rgb), 0.3);
  background: rgba(var(--np-rgb), 0.08);
}

.np-support-response {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  color: #9f988b;
  font-size: 11px;
  line-height: 1.7;
}

.np-support-response i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #64d99a;
  box-shadow: 0 0 0 4px rgba(100, 217, 154, 0.1);
}

.np-support-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: stretch;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(5, 8, 11, 0.36);
}

.np-support-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 3px 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.np-support-panel-head span {
  color: rgba(var(--np-rgb), 0.72);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  direction: ltr;
}

.np-support-panel-head b {
  color: #e8dfd0;
  font-size: 11px;
  font-weight: 700;
}

.np-support-topic {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #eee6d9;
  font: 600 12px/1.55 "Vazirmatn", Tahoma, sans-serif;
  text-align: right;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.np-support-topic span {
  color: rgba(var(--np-rgb), 0.7);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  direction: ltr;
}

.np-support-topic b {
  font-weight: 600;
}

.np-support-topic i {
  color: rgba(var(--np-rgb), 0.6);
  font-size: 15px;
  font-style: normal;
  transition: transform 0.2s ease;
}

.np-support-topic:hover {
  border-color: rgba(var(--np-rgb), 0.2);
  background: rgba(var(--np-rgb), 0.075);
  transform: translateX(-2px);
}

.np-support-topic:hover i {
  transform: translate(-2px, -2px);
}

.np-support-note {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 14px 8px 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.np-support-note b {
  color: #f2eadc;
  font-size: 11px;
  font-weight: 700;
}

.np-support-note small {
  color: #948d81;
  font-size: 10px;
  line-height: 1.8;
}

.np-support--with-fab {
  padding-bottom: 88px;
}

.np-support-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  width: min(1160px, 100%);
  margin: 16px auto 0;
  padding: 0 4px;
  color: #8f897e;
  font-size: 10px;
}

.np-support-foot span,
.np-support-foot a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.np-support-foot a {
  color: #d9c9ac;
  text-decoration: none;
}

.np-support-foot a:hover {
  color: var(--np-a);
}

.np-support-foot i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #64d99a;
  box-shadow: 0 0 0 4px rgba(100, 217, 154, 0.08);
}

.np-support-foot .np-en {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
  direction: ltr;
}

.np-support-fab {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147483646;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgba(var(--np-rgb, 139, 124, 246), 0.4);
  border-radius: 999px;
  background: rgba(13, 19, 23, 0.92);
  color: #fff8ea;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font: 800 11px/1 "Vazirmatn", Tahoma, sans-serif;
  cursor: pointer;
}

.np-support-fab i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--np-a, #8b7cf6);
  box-shadow: 0 0 0 5px rgba(var(--np-rgb, 139, 124, 246), 0.13);
}

.np-support-fab:hover {
  border-color: rgba(var(--np-rgb, 139, 124, 246), 0.7);
  background: rgba(18, 26, 31, 0.98);
}

/* Shared support dialog */
.np-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 8, 11, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: "Vazirmatn", "Vazir", Tahoma, sans-serif;
  direction: rtl;
}

.np-dialog.is-open {
  display: flex;
}

.np-dialog-card::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.np-dialog-card {
  position: relative;
  width: min(660px, 100%);
  max-height: calc(100dvh - 36px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 26px 22px 22px;
  border: 1px solid rgba(var(--np-rgb, 216, 168, 78), 0.3);
  border-radius: 22px;
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(var(--np-rgb, 216, 168, 78), 0.14), transparent 62%),
    linear-gradient(165deg, #17201f, #0d1317 70%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
  color: #f7f1e5;
}

.np-dialog-close {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.055);
  color: #f7f1e5;
  font: 700 22px/1 Tahoma, sans-serif;
  cursor: pointer;
}

.np-dialog-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: var(--np-a, #d8a84e);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  direction: ltr;
}

.np-dialog-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.045);
}

.np-dialog h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
}

.np-dialog-lead {
  margin: 0 0 18px;
  color: #aaa294;
  font-size: 13px;
  line-height: 1.9;
}

.np-dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.np-dialog-field {
  display: grid;
  gap: 6px;
}

.np-dialog-field--full {
  grid-column: 1 / -1;
}

.np-dialog-field label {
  color: #cfc6b7;
  font-size: 11px;
  font-weight: 600;
}

.np-dialog-field input,
.np-dialog-field select,
.np-dialog-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  outline: none;
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font: 400 13px/1.7 "Vazirmatn", Tahoma, sans-serif;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.np-dialog-field input:focus,
.np-dialog-field select:focus,
.np-dialog-field textarea:focus {
  border-color: rgba(var(--np-rgb, 216, 168, 78), 0.55);
  background: rgba(255, 255, 255, 0.055);
}

.np-dialog-field select {
  background-color: #11191b;
  color: #fff;
}

.np-dialog-field textarea {
  min-height: 102px;
  resize: vertical;
}

.np-dialog-field input::placeholder,
.np-dialog-field textarea::placeholder {
  color: rgba(247, 241, 229, 0.34);
}

.np-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}

.np-dialog-actions small {
  color: #8d867a;
  font-size: 10px;
  line-height: 1.7;
}

.np-dialog-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  background: linear-gradient(135deg, var(--np-a, #d8a84e), var(--np-b, #a97722));
  color: #10130f;
  font: 800 12px/1 "Vazirmatn", Tahoma, sans-serif;
  cursor: pointer;
}

.np-dialog-submit svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.np-dialog [data-contact-form] .np-dialog-submit[type="submit"] {
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: linear-gradient(135deg, var(--np-a, #d8a84e), var(--np-b, #a97722)) !important;
  color: #10130f !important;
  box-shadow: 0 12px 26px -14px rgba(var(--np-rgb, 216, 168, 78), 0.65) !important;
}

.np-dialog [data-contact-form] .np-dialog-submit[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px -16px rgba(var(--np-rgb, 216, 168, 78), 0.8) !important;
}

.np-dialog [data-contact-form] input:focus,
.np-dialog [data-contact-form] textarea:focus,
.np-dialog [data-contact-form] select:focus {
  border-color: rgba(var(--np-rgb, 216, 168, 78), 0.62) !important;
  box-shadow: 0 0 0 3px rgba(var(--np-rgb, 216, 168, 78), 0.13) !important;
}

.np-dialog-status {
  min-height: 18px;
  margin-top: 9px;
  color: #86efac;
  font-size: 11px;
  line-height: 1.7;
}

.np-dialog-status.is-error {
  color: #fca5a5;
}

body.np-dialog-open {
  overflow: hidden;
}

body.np-dialog-open .neva-back {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .np-support-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .np-support-panel {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .np-support {
    padding-inline: 14px;
  }

  .np-support-shell {
    padding: 20px 16px;
    border-radius: 22px;
  }

  .np-support h2 {
    font-size: 31px;
  }

  .np-support-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .np-support-btn {
    width: 100%;
  }

  .np-support-panel {
    padding: 13px;
    border-radius: 16px;
  }

  .np-support-foot {
    justify-content: center;
    text-align: center;
  }

  .np-support-fab {
    right: 10px;
    bottom: 10px;
    padding: 10px 13px;
  }

  .np-dialog {
    padding: 10px;
  }

  .np-dialog-card {
    padding: 23px 15px 18px;
    border-radius: 18px;
  }

  .np-dialog-grid {
    grid-template-columns: 1fr;
  }

  .np-dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .np-dialog-submit {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .np-support *,
  .np-dialog * {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Product / support polish ---------- */
html,
body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.np-support-btn {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.np-support-btn--primary {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--np-a) 92%, #fff) 0%, color-mix(in srgb, var(--np-a) 72%, #000) 48%, var(--np-b) 100%);
  border-color: color-mix(in srgb, var(--np-a) 58%, #fff);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 16px 34px -18px rgba(var(--np-rgb), 0.8);
}
.np-support-btn--primary::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 44%;
  border-radius: 11px 11px 50% 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.np-support-btn--primary > * { position: relative; z-index: 1; }
.np-support-btn--ghost {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018));
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px -20px rgba(0, 0, 0, 0.8);
}
.np-support-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.05);
}
.np-support-btn:focus-visible,
.np-support-topic:focus-visible,
.np-dialog-submit:focus-visible,
.np-dialog-close:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--np-a) 76%, #fff);
  outline-offset: 3px;
}

.np-support-topic {
  border-color: rgba(255, 255, 255, 0.055);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}
.np-support-topic:hover {
  border-color: rgba(var(--np-rgb), 0.28);
  background: linear-gradient(180deg, rgba(var(--np-rgb), 0.11), rgba(var(--np-rgb), 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 24px -18px rgba(0, 0, 0, 0.8);
}

.np-dialog-field select {
  color-scheme: dark;
}
.np-dialog-field select option,
.np-dialog-field select optgroup {
  background: #10171b !important;
  color: #f7f1e5 !important;
}
.np-dialog-field select option:checked {
  background: color-mix(in srgb, var(--np-a, #d8a84e) 34%, #10171b) !important;
  color: #fff !important;
}

.np-dialog-submit {
  border-color: color-mix(in srgb, var(--np-a, #d8a84e) 55%, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--np-a, #d8a84e) 90%, #fff), var(--np-b, #a97722));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 14px 28px -16px rgba(var(--np-rgb, 216, 168, 78), 0.7);
}
.np-dialog-submit:hover {
  transform: translateY(-1px);
  filter: saturate(1.06);
}

.neva-back {
  border-color: rgba(255, 255, 255, 0.22) !important;
  background: linear-gradient(180deg, rgba(23, 28, 36, 0.94), rgba(10, 13, 18, 0.95)) !important;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.neva-back:hover {
  border-color: rgba(255, 255, 255, 0.34) !important;
  background: linear-gradient(180deg, rgba(30, 36, 46, 0.97), rgba(14, 18, 24, 0.97)) !important;
}

/* Chehel Qadam support follows the amber product identity */
.np-support[data-np-product="product-chehelghadam"] {
  background:
    radial-gradient(760px 320px at 100% 0%, rgba(244, 179, 94, 0.18), transparent 66%),
    radial-gradient(620px 340px at 0% 100%, rgba(180, 105, 32, 0.12), transparent 66%),
    linear-gradient(160deg, #171006 0%, #120e06 52%, #0b0804 100%);
}
.np-support[data-np-product="product-chehelghadam"]::before {
  background-image:
    linear-gradient(rgba(244, 179, 94, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 179, 94, 0.035) 1px, transparent 1px);
}
.np-support[data-np-product="product-chehelghadam"] .np-support-shell {
  border-color: rgba(244, 179, 94, 0.26);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018) 44%, rgba(244, 179, 94, 0.05)),
    rgba(20, 14, 7, 0.8);
  box-shadow: 0 34px 94px -34px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.065);
}
.np-support[data-np-product="product-chehelghadam"] .np-support-panel {
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014)),
    rgba(28, 19, 8, 0.46);
  border-color: rgba(244, 179, 94, 0.14);
}
