body.reseller-page {
  background: #07070a;
  color: #f5f5f7;
  font-family: Inter, sans-serif;
}

.reseller-page .page-glow { display: none; }

.reseller-main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.4rem 0 5.5rem;
}

.reseller-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 3.5rem;
  align-items: center;
  padding: 1.2rem 0 4.2rem;
}

.reseller-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(37, 99, 235, 0.4);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
}

.reseller-pill svg { flex-shrink: 0; }

.reseller-kicker {
  margin: 0 0 0.7rem;
  color: #8b8b9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reseller-hero h1 {
  margin: 0 0 1.05rem;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.reseller-hero__lead {
  margin: 0 0 1.6rem;
  max-width: 36rem;
  color: #9a9aab;
  font-size: 1.02rem;
  line-height: 1.65;
}

.reseller-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.reseller-btn--ghost {
  background: #f5f5f7;
  color: #111;
}

.reseller-btn--ghost:hover { background: #fff; }

.reseller-btn--solid {
  width: 100%;
  background: #2563eb;
  color: #fff;
}

.reseller-btn--solid:hover { background: #1d4ed8; }

.reseller-btn--muted {
  width: 100%;
  background: #1a1b22;
  color: #f5f5f7;
}

.reseller-btn--muted:hover { background: #23242c; }

.reseller-ledger {
  padding: 1.35rem 1.4rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #101014;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.reseller-ledger__label {
  margin: 0 0 0.35rem;
  color: #8b8b9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-ledger__bal {
  margin: 0 0 1.15rem;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.reseller-ledger__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}

.reseller-ledger__row span { color: #c8c8d4; }
.reseller-ledger__row b { font-weight: 650; }
.reseller-ledger__row--in b { color: #34d399; }
.reseller-ledger__row--out b { color: #f87171; }

.reseller-ledger__note {
  margin: 0.9rem 0 0;
  color: #8b8b9c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reseller-plans {
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reseller-plans__intro {
  margin-bottom: 1.6rem;
}

.reseller-plans__intro p {
  margin: 0 0 0.35rem;
  color: #8b8b9c;
  font-size: 0.92rem;
}

.reseller-plans__intro h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.reseller-plans__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.reseller-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem 1.4rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #101014;
}

.reseller-card--featured {
  background:
    radial-gradient(ellipse 80% 70% at 90% 0%, rgba(37, 99, 235, 0.28), transparent 55%),
    #0d1220;
  border-color: rgba(37, 99, 235, 0.4);
}

.reseller-card__tag {
  margin: 0 0 0.7rem;
  color: #8b8b9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-card--featured .reseller-card__tag { color: #93c5fd; }

.reseller-card__price {
  margin: 0;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}

.reseller-card__price small {
  display: block;
  margin-top: 0.35rem;
  color: #9a9aab;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
}

.reseller-card__credit {
  margin: 0.85rem 0 1.05rem;
  color: #c8c8d4;
  font-size: 0.92rem;
}

.reseller-card ul {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}

.reseller-card li {
  position: relative;
  margin: 0 0 0.72rem;
  padding-left: 1.45rem;
  color: #d5d5de;
  font-size: 0.92rem;
  line-height: 1.45;
}

.reseller-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28rem;
  width: 0.95rem;
  height: 0.95rem;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>")
    center / contain no-repeat;
}

.reseller-card .reseller-btn { margin-top: auto; }

.reseller-catalog {
  margin-top: 1.15rem;
  color: #8b8b9c;
  font-size: 0.9rem;
  line-height: 1.55;
}

.reseller-catalog strong { color: #d5d5de; font-weight: 650; }

.reseller-foot {
  margin: 1.4rem 0 0;
  color: #8b8b9c;
  font-size: 0.86rem;
  text-align: center;
}

.reseller-matrix,
.reseller-perks,
.reseller-money {
  margin-top: 3.6rem;
}

.reseller-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #101014;
}

.reseller-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.reseller-table th,
.reseller-table td {
  padding: 0.85rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.reseller-table th {
  color: #8b8b9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-table td {
  color: #d5d5de;
  font-size: 0.92rem;
}

.reseller-table tbody tr:last-child td { border-bottom: 0; }

.reseller-table th:nth-child(2),
.reseller-table th:nth-child(3),
.reseller-table td:nth-child(2),
.reseller-table td:nth-child(3) {
  text-align: center;
}

.reseller-yes { color: #34d399; font-weight: 700; }

.reseller-perks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  padding: 1.8rem 0 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reseller-perks h3 {
  margin: 0 0 0.3rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.reseller-perks p {
  margin: 0;
  color: #8b8b9c;
  font-size: 0.86rem;
  line-height: 1.45;
}

.reseller-perk-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 700;
}

.reseller-money__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.reseller-money__card {
  padding: 1.25rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: #101014;
}

.reseller-money__card p {
  margin: 0 0 0.45rem;
  color: #8b8b9c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-money__card strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.reseller-money__card strong.is-blue { color: #60a5fa; }

.reseller-money__card span {
  color: #8b8b9c;
  font-size: 0.86rem;
  line-height: 1.45;
}

.reseller-money__card.is-keep {
  background: #0d1a14;
  border-color: rgba(52, 211, 153, 0.28);
}

.reseller-money__card.is-keep strong { color: #34d399; }

.reseller-money__arrow {
  display: flex;
  align-items: center;
  color: #5c5c6e;
  font-size: 1.3rem;
}

.reseller-apply[hidden] { display: none; }

.reseller-apply {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.reseller-apply__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.reseller-apply__panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(90vh, 920px);
  overflow: auto;
  padding: 1.4rem 1.45rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: #101014;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  scrollbar-width: thin;
  scrollbar-color: #2a2a34 transparent;
}

.reseller-apply__panel::-webkit-scrollbar { width: 8px; }
.reseller-apply__panel::-webkit-scrollbar-thumb {
  background: #2a2a34;
  border-radius: 999px;
}

.reseller-apply__discord {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
}

.reseller-apply__plan {
  margin: 0;
  color: #9a9aab;
  font-size: 0.88rem;
}

.reseller-btn--discord {
  width: 100%;
  gap: 0.55rem;
  background: #5865f2;
  color: #fff;
}

.reseller-btn--discord:hover {
  background: #4752c4;
}

.reseller-btn--discord.is-linked {
  background: #1a1b22;
  color: #93c5fd;
}

.reseller-apply__signed {
  margin: 0;
  color: #93c5fd;
  font-size: 0.88rem;
  font-weight: 600;
}

.reseller-apply__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.reseller-apply__head p {
  margin: 0 0 0.2rem;
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reseller-apply__head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.reseller-apply__head .reseller-apply__lead {
  margin: 0.45rem 0 0;
  max-width: 28rem;
  color: #8b8b9c;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}

.reseller-apply__x {
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 999px;
  background: #1a1b22;
  color: #f5f5f7;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.reseller-apply__form {
  display: grid;
  gap: 1rem;
}

.reseller-apply__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.reseller-apply__form label,
.reseller-apply__form fieldset {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  border: 0;
  padding: 0;
}

.reseller-apply__form legend,
.reseller-apply__form label > span {
  color: #c8c8d4;
  font-size: 0.82rem;
  font-weight: 650;
}

.reseller-apply__form em {
  color: #8b8b9c;
  font-style: normal;
  font-weight: 500;
}

.reseller-apply__form input[type="text"],
.reseller-apply__form input[type="email"],
.reseller-apply__form input[type="url"],
.reseller-apply__form select,
.reseller-apply__form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #0b0b10;
  color: #f5f5f7;
  font: inherit;
}

.reseller-apply__form input:focus,
.reseller-apply__form select:focus,
.reseller-apply__form textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.reseller-apply__form [data-apply-submit] {
  width: 100%;
}

.reseller-apply__form textarea { resize: vertical; min-height: 6.5rem; }

.reseller-apply__wide { grid-column: 1 / -1; }

.reseller-apply__pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.reseller-apply__pill {
  display: block;
  cursor: pointer;
}

.reseller-apply__pill input { position: absolute; opacity: 0; pointer-events: none; }

.reseller-apply__form .reseller-apply__pill { display: block; }

.reseller-apply__pill span {
  display: grid;
  gap: 0.15rem;
  width: 100%;
  min-height: 4.2rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0b0b10;
  color: #f5f5f7;
  cursor: pointer;
}

.reseller-apply__pill strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.reseller-apply__pill em {
  color: #8b8b9c;
  font-size: 0.8rem;
  font-style: normal;
}

.reseller-apply__pill:hover span {
  border-color: rgba(255, 255, 255, 0.16);
  background: #101218;
}

.reseller-apply__pill input:checked + span {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.reseller-apply__pill input:checked + span em { color: #93c5fd; }

.reseller-apply__hint {
  margin: 0;
  color: #8b8b9c;
  font-size: 0.8rem;
}

.reseller-apply__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.reseller-apply__form .reseller-apply__product {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.15rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: #0b0b10;
  cursor: pointer;
}

.reseller-apply__product input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.reseller-apply__product img,
.reseller-apply__product-ico {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}

.reseller-apply__product-ico {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #15161c;
  font-size: 0.95rem;
}

.reseller-apply__product span {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}

.reseller-apply__product strong {
  color: #f5f5f7;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.2;
}

.reseller-apply__product em {
  color: #8b8b9c;
  font-size: 0.72rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reseller-apply__product:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: #101218;
}

.reseller-apply__product:has(input:checked) {
  border-color: rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.14);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.reseller-apply__product:has(input:checked) em { color: #93c5fd; }

.reseller-apply__agree {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: #c8c8d4;
  font-size: 0.86rem;
  line-height: 1.45;
}

.reseller-apply__agree input { margin-top: 0.2rem; }

.reseller-apply__error {
  margin: 0;
  color: #f87171;
  font-size: 0.88rem;
}

.reseller-apply__done {
  text-align: center;
  padding: 1.6rem 0 0.4rem;
}

.reseller-apply__ok {
  margin: 0 0 0.5rem;
  color: #34d399;
  font-size: 1.2rem;
  font-weight: 750;
}

.reseller-apply__done p + p {
  margin: 0 0 1.2rem;
  color: #9a9aab;
}

@media (max-width: 700px) {
  .reseller-apply__grid,
  .reseller-apply__products,
  .reseller-apply__pills { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .reseller-hero,
  .reseller-plans__grid,
  .reseller-perks {
    grid-template-columns: 1fr;
  }

  .reseller-hero { gap: 2rem; padding-bottom: 2.8rem; }
  .reseller-hero h1 { font-size: 2.35rem; }

  .reseller-money__row {
    grid-template-columns: 1fr;
  }

  .reseller-money__arrow {
    justify-content: center;
    transform: rotate(90deg);
  }
}
