/* فوتر شیشه‌ای نیل — هماهنگ با هدر */
:root {
  --nft-cream: #e7e2da;
  --nft-header: #000000;
  --nft-accent: #c4a484;
  --nft-sand: #e4d5c3;
  --nft-white: #ffffff;
  --r-pill: 999px;
}

body:has(.nft-frame) .site-footer,
body:has(.nft-frame) #site-footer,
body:has(.nft-frame) .dynamic-footer {
  display: none !important;
}

.nft-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 900;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: transparent !important;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  color: var(--nft-white);
}

.nft-frame__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 900px;
  transform-origin: top left;
  will-change: transform;
}

:where(.nft-frame),
:where(.nft-frame) *,
:where(.nft-frame) *::before,
:where(.nft-frame) *::after {
  box-sizing: border-box;
}

:where(.nft-frame) button,
:where(.nft-frame) input {
  font: inherit;
  color: inherit;
}

.w17 {
  position: relative;
  width: 100%;
  height: 100%;
  background: transparent !important;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
}

.w17__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent !important;
}

.w17__grass,
.w17__photo,
.w17__scrim {
  display: none !important;
}

/* شیشه مات واقعی (مثل کارت هدر) روی کرم سایت */
.w17__panel {
  position: absolute;
  inset: 48px 72px;
  padding: 48px 56px 0;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 28px 70px -28px rgba(0, 0, 0, 0.4);
  color: var(--nft-white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.w17__lead {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 80px;
  align-items: start;
}

.w17__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.w17__badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nft-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--nft-accent) 28%, transparent);
}

.w17__title {
  margin: 18px 0 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #fdfdfd;
}

.w17__title em {
  font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
}

.w17__sub {
  margin: 14px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
}

.w17__news h3 {
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.w17__news form,
.w17__form {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.w17__input {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.08);
  font-family: inherit;
  font-size: 13.5px;
  color: #fff;
  outline: none;
  box-shadow: none !important;
}

.w17__input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.w17__input:focus {
  border-color: color-mix(in srgb, var(--nft-accent) 70%, #fff) !important;
}

/* دکمه عضویت مثل هدر: سفید (specificity بالا برای شکست Hello/kill سراسری) */
html body .nft-frame .w17__subscribe,
html body .nft-frame button.w17__subscribe {
  height: 44px;
  padding: 0 22px;
  border: 0 !important;
  border-radius: 9999px;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #111111 !important;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease;
  box-shadow: none !important;
}

html body .nft-frame .w17__subscribe:hover,
html body .nft-frame button.w17__subscribe:hover {
  background: #e4d5c3 !important;
  background-color: #e4d5c3 !important;
  color: #111111 !important;
  transform: translateY(-1px);
}

.w17__note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.42);
}

.w17__note a {
  color: var(--nft-sand);
  text-decoration: underline;
}

.w17__rule {
  display: block;
  height: 1px;
  margin: 34px 0;
  background: rgba(255, 255, 255, 0.12);
}

.w17__mid {
  display: grid;
  grid-template-columns: 1fr 780px;
  gap: 60px;
}

.w17__tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--nft-accent);
}

.w17__tile svg {
  width: 19px;
  height: 19px;
  stroke: #111 !important;
}

.w17__brand {
  display: grid;
  grid-template-columns: 38px auto;
  column-gap: 12px;
  row-gap: 14px;
  align-items: center;
}

.w17__brandName {
  font-size: 21px;
  font-weight: 600;
  color: #fff;
}

.w17__brandName sup {
  font-size: 0.55em;
  margin-inline-start: 2px;
}

.w17__brandCopy {
  grid-column: 1 / -1;
  margin: 0;
  max-width: 260px;
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
}

.w17__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.w17__col h4 {
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.w17__col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.w17__col a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  transition: color 0.18s ease;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.w17__col a:hover {
  color: var(--nft-accent) !important;
}

.w17__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.w17__meta a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

.w17__meta a:hover {
  color: var(--nft-sand) !important;
}

.w17__wordmark {
  margin: auto -56px -46px;
  display: block;
  text-align: center;
  font-size: 196px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(228, 213, 195, 0.35) 40%,
    rgba(196, 164, 132, 0.22) 70%,
    rgba(0, 0, 0, 0.05) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

/* ---------- موبایل / تبلت: چیدمان سیال ---------- */
@media (max-width: 900px) {
  .nft-frame {
    aspect-ratio: auto !important;
    height: auto !important;
    overflow: visible;
    padding: 0.75rem;
  }

  .nft-frame.is-fluid .nft-frame__canvas,
  .nft-frame__canvas {
    position: relative !important;
    top: auto;
    left: auto;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .w17 {
    height: auto;
  }

  .w17__stage {
    position: relative;
    inset: auto;
    overflow: visible;
  }

  .w17__panel {
    position: relative;
    inset: auto;
    margin: 0;
    padding: 1.35rem 1.15rem 0;
    border-radius: 18px;
  }

  .w17__lead,
  .w17__mid {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  .w17__title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .w17__sub {
    font-size: 0.9rem;
  }

  .w17__form {
    flex-direction: column;
  }

  .w17__input,
  .w17__subscribe {
    width: 100%;
    height: 46px;
  }

  .w17__rule {
    margin: 1.25rem 0;
  }

  .w17__cols {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1rem;
  }

  .w17__brandCopy {
    max-width: none;
  }

  .w17__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .w17__wordmark {
    margin: 0.75rem -0.5rem -0.85rem;
    font-size: clamp(3.2rem, 18vw, 5.5rem);
  }
}

@media (max-width: 520px) {
  .nft-frame {
    padding: 0.5rem;
  }

  .w17__panel {
    padding: 1.15rem 1rem 0;
    border-radius: 16px;
  }

  .w17__cols {
    grid-template-columns: 1fr;
  }

  .w17__title {
    font-size: 1.4rem;
  }

  .w17__badge {
    font-size: 11.5px;
  }
}
