/* =========================================================
   RESELLER PAGE – ctv-rs-* components
   ========================================================= */

.ctv-reseller-page { padding-top: 5rem; }

/* ── Hero ─────────────────────────────────────────────── */
.ctv-rs-hero {
  position: relative;
  overflow: hidden;
  background: hsl(220,25%,8%);
  padding: 5rem 0 4.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.ctv-rs-hero__bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}

.ctv-rs-hero__glow-tl {
  position: absolute; top: 0; left: 0;
  width: 55%; height: 80%;
  background: radial-gradient(ellipse at top left, rgba(124,58,237,0.2), transparent 60%);
}
.ctv-rs-hero__glow-br {
  position: absolute; bottom: 0; right: 0;
  width: 45%; height: 60%;
  background: radial-gradient(ellipse at bottom right, rgba(236,72,153,0.13), transparent 55%);
}

.ctv-rs-hero__inner {
  position: relative; z-index: 2;
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.ctv-rs-hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 1.25rem;
}

.ctv-rs-hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.6);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.ctv-rs-hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Trust row */
.ctv-rs-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: center;
}
.ctv-rs-trust__item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.ctv-rs-trust__icon { font-size: 0.9rem; }

/* Floating stat orbs */
.ctv-rs-hero__orb {
  position: absolute;
  z-index: 3;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  text-align: center;
  animation: rs-float 5s ease-in-out infinite;
}
.ctv-rs-hero__orb--1 { top: 20%; left: 4%;  animation-delay: 0s;   }
.ctv-rs-hero__orb--2 { top: 35%; right: 3%; animation-delay: 1.5s; }
.ctv-rs-hero__orb--3 { bottom: 25%; left: 6%; animation-delay: 3s; }

@keyframes rs-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

.ctv-rs-orb__num {
  display: block;
  font-family: var(--tm-font-display);
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--tm-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ctv-rs-orb__label {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.125rem;
}

/* ── Income banner ────────────────────────────────────── */
.ctv-rs-income-banner {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(16,185,129,0.08));
  border-top: 1px solid rgba(124,58,237,0.2);
  border-bottom: 1px solid rgba(124,58,237,0.2);
  padding: 3rem 0;
}

.ctv-rs-income-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.ctv-rs-income-text h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.ctv-rs-income-text p {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}
.ctv-rs-income-text strong { color: rgba(255,255,255,0.9); }

.ctv-rs-income-calc {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  overflow: hidden;
}
.ctv-rs-income-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
}
.ctv-rs-income-row:last-child { border-bottom: none; }
.ctv-rs-income-row strong {
  font-family: var(--tm-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(155,65%,55%);
}
.ctv-rs-income-row--highlight {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.15);
}
.ctv-rs-income-row--highlight strong { font-size: 1.25rem; }

/* ── How it works steps ───────────────────────────────── */
.ctv-rs-steps-section { background: var(--tm-bg); }

.ctv-rs-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.ctv-rs-step {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 2rem;
}

.ctv-rs-step__num {
  font-family: var(--tm-font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(124,58,237,0.12);
  line-height: 1;
  margin-bottom: 0.5rem;
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
}

.ctv-rs-step__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  position: relative;
  z-index: 1;
}

.ctv-rs-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.ctv-rs-step__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
}

.ctv-rs-step__arrow {
  position: absolute;
  right: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: rgba(124,58,237,0.4);
  z-index: 10;
}

/* ── Credit table ─────────────────────────────────────── */
.ctv-rs-credit-table-wrap {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.08);
}

.ctv-rs-credit-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255,255,255,0.02);
  font-size: 0.9375rem;
}

.ctv-rs-credit-table thead tr {
  background: rgba(124,58,237,0.12);
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.ctv-rs-credit-table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: var(--tm-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
}
.ctv-rs-credit-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
}
.ctv-rs-credit-table tbody tr:last-child td { border-bottom: none; }
.ctv-rs-credit-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.ctv-rs-credit-table td strong { color: #fff; }

.ctv-credit-chip {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c4b5fd;
}
.ctv-sell-price { color: rgba(255,255,255,0.7); }
.ctv-profit { color: hsl(155,65%,55%); font-weight: 600; }

.ctv-rs-table-note {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.875rem;
  text-align: center;
}

/* ── Reseller pricing packs ───────────────────────────── */
.ctv-rs-pricing-section {
  position: relative;
  overflow: hidden;
}
.ctv-rs-pricing-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, hsl(230,25%,10%) 0%, var(--tm-bg) 100%);
}

.ctv-rs-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.ctv-rs-pack {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: var(--tm-transition);
}
.ctv-rs-pack:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.ctv-rs-pack--popular {
  border: 2px solid hsl(260,70%,55%);
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(79,70,229,0.04));
  box-shadow: 0 8px 40px rgba(124,58,237,0.2);
}

.ctv-rs-pack--pro {
  border: 2px solid hsl(40,80%,55%);
  background: linear-gradient(180deg, rgba(180,140,30,0.1), rgba(100,80,0,0.04));
}

.ctv-rs-pack__badge {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.3rem 1rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.ctv-rs-pack__badge--purple {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: #fff;
}
.ctv-rs-pack__badge--gold {
  background: linear-gradient(135deg, #b45309, #d97706);
  color: #fff;
}

.ctv-rs-pack__head { text-align: center; margin-bottom: 1.25rem; padding-top: 0.75rem; }
.ctv-rs-pack__credits {
  font-family: var(--tm-font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  background: var(--tm-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.ctv-rs-pack--pro .ctv-rs-pack__credits {
  background: linear-gradient(135deg,#d97706,#f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
}
.ctv-rs-pack__credits-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.25rem;
}
.ctv-rs-pack__accounts {
  font-size: 0.8125rem;
  color: hsl(155,60%,55%);
  font-weight: 500;
}

.ctv-rs-pack__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.ctv-rs-pack__currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  align-self: flex-start;
  padding-top: 0.25rem;
}
.ctv-rs-pack__price > span:nth-child(2) {
  font-family: var(--tm-font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
}
.ctv-rs-pack__once {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-left: 0.25rem;
  font-weight: 400;
  align-self: flex-end;
  padding-bottom: 0.25rem;
}

.ctv-rs-pack__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.ctv-rs-pack__features {
  flex: 1;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ctv-rs-pack__features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
}
.ctv-rs-pack__features li svg {
  width: 1rem;
  height: 1rem;
  color: hsl(260,70%,65%);
  flex-shrink: 0;
}

.ctv-rs-pricing-note {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.4);
}

/* ── Benefits grid ────────────────────────────────────── */
.ctv-rs-benefits-section { background: var(--tm-bg); }

.ctv-rs-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

.ctv-rs-benefit {
  padding: 1.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  transition: var(--tm-transition);
}
.ctv-rs-benefit:hover {
  border-color: rgba(124,58,237,0.3);
  background: rgba(124,58,237,0.05);
  transform: translateY(-3px);
}

.ctv-rs-benefit__icon {
  font-size: 1.875rem;
  margin-bottom: 0.875rem;
  display: block;
}
.ctv-rs-benefit__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.ctv-rs-benefit__desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
}

/* ── Testimonials ─────────────────────────────────────── */
.ctv-rs-testimonials-section {
  background: linear-gradient(135deg, hsl(270,30%,10%) 0%, hsl(240,25%,8%) 100%);
}

.ctv-rs-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 1.5rem;
}

.ctv-rs-testimonial {
  padding: 1.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--tm-transition);
}
.ctv-rs-testimonial:hover {
  border-color: rgba(167,139,250,0.3);
  transform: translateY(-4px);
}

.ctv-rs-testimonial__text {
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-size: 0.9375rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.ctv-rs-testimonial__footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
}
.ctv-rs-testimonial__name { font-weight: 700; color: #fff; font-size: 0.9375rem; }
.ctv-rs-testimonial__meta { font-size: 0.8125rem; color: rgba(167,139,250,0.65); margin-top: 2px; }
.ctv-rs-testimonial__stars { color: hsl(40,90%,60%); font-size: 0.875rem; letter-spacing: 1px; }

/* ── Apply section ────────────────────────────────────── */
.ctv-rs-apply-section { position: relative; overflow: hidden; }
.ctv-rs-apply-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsl(250,30%,12%) 0%, hsl(220,25%,8%) 50%, hsl(270,30%,12%) 100%);
}

.ctv-rs-apply-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.ctv-rs-apply-left__title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.ctv-rs-apply-left__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.ctv-rs-apply-promises {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}
.ctv-rs-apply-promises li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.75);
}
.ctv-rs-apply-promises li svg {
  width: 1rem;
  height: 1rem;
  color: hsl(260,70%,65%);
  flex-shrink: 0;
}

.ctv-rs-apply-alts {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.ctv-rs-alt-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: var(--tm-transition);
}
.ctv-rs-alt-link:hover { color: hsl(270,70%,65%); }
.ctv-rs-alt-link svg { width: 1rem; height: 1rem; flex-shrink: 0; }

/* Application card */
.ctv-rs-apply-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 1.5rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.ctv-rs-apply-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--tm-gradient-primary);
}

.ctv-rs-apply-card__title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.ctv-rs-apply-card__sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

/* Form elements */
.ctv-rs-form { display: flex; flex-direction: column; gap: 1.125rem; }

.ctv-rs-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ctv-rs-form__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.375rem;
}
.ctv-rs-form__label .req { color: hsl(340,75%,60%); }

.ctv-rs-form__input,
.ctv-rs-form__select,
.ctv-rs-form__textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  color: #fff;
  font-family: var(--tm-font-body);
  font-size: 0.9375rem;
  outline: none;
  transition: var(--tm-transition);
  -webkit-appearance: none;
}
.ctv-rs-form__input::placeholder,
.ctv-rs-form__textarea::placeholder { color: rgba(255,255,255,0.25); }

.ctv-rs-form__input:focus,
.ctv-rs-form__select:focus,
.ctv-rs-form__textarea:focus {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.07);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.ctv-rs-form__select option { background: hsl(220,25%,12%); color: #fff; }
.ctv-rs-form__textarea { resize: vertical; min-height: 90px; }

.ctv-rs-form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
}
.ctv-rs-form__checkbox input { margin-top: 2px; flex-shrink: 0; accent-color: #7c3aed; }

.ctv-rs-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.ctv-rs-form__privacy {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
  margin-top: 0.5rem;
}

/* Success message */
.ctv-rs-success {
  text-align: center;
  padding: 2.5rem 1rem;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 1rem;
}
.ctv-rs-success__icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.ctv-rs-success h4 { font-size: 1.25rem; font-weight: 700; color: hsl(155,65%,55%); margin-bottom: 0.5rem; }
.ctv-rs-success p { color: rgba(255,255,255,0.6); }

/* Loading state */
.ctv-rs-form__submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
  cursor: wait;
}

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .ctv-rs-hero__orb { display: none; }
  .ctv-rs-apply-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .ctv-rs-steps { grid-template-columns: 1fr 1fr; }
  .ctv-rs-step__arrow { display: none; }
}

@media (max-width: 768px) {
  .ctv-rs-hero { min-height: auto; padding: 4rem 0 3rem; }
  .ctv-rs-income-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .ctv-rs-steps { grid-template-columns: 1fr; }
  .ctv-rs-packs { grid-template-columns: 1fr; max-width: 26rem; margin: 0 auto; }
  .ctv-rs-testimonials { grid-template-columns: 1fr; }
  .ctv-rs-form__row { grid-template-columns: 1fr; }
  .ctv-rs-apply-card { padding: 1.75rem; }
  .ctv-rs-benefits { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .ctv-rs-hero__title { font-size: 2.25rem; }
  .ctv-rs-benefits { grid-template-columns: 1fr; }
  .ctv-rs-packs { max-width: 100%; }
}
