.portal-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 80px;
  min-height: 72vh;
}

.portal-shell > .portal-card {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
}

.portal-card {
  color: #f4f8ff;
  border: 1px solid #2b4565;
  border-radius: 22px;
  background: #13233a;
  padding: 32px;
  box-shadow: 0 24px 64px #0004;
}

.portal-card form,
.portal-card label { display: grid; gap: 8px; }
.portal-card form { gap: 18px; }

.portal-card input,
.portal-card textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  color: #10213a;
  border: 1px solid #54708f;
  border-radius: 9px;
  background: #fff;
  font: inherit;
}

.portal-card input:focus-visible,
.portal-card textarea:focus-visible { border-color: #42e6be; outline: 3px solid #42e6be3b; }
.portal-card textarea { min-height: 150px; }

.portal-card button,
.portal-button {
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #07131f;
  border: 0;
  border-radius: 9px;
  background: #42e6be;
  font: inherit;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.portal-card table { width: 100%; margin: 18px 0; border-collapse: collapse; }
.portal-card th,
.portal-card td { padding: 10px; border-bottom: 1px solid #38506d; text-align: left; }

.portal-notice { margin-bottom: 18px; padding: 14px; color: #073c2e; border-radius: 10px; background: #e8fff8; }
.portal-error { max-width: 920px; margin: 0 auto 18px; padding: 14px 16px; color: #7b1d1d; border: 1px solid #f2aaaa; border-radius: 10px; background: #fff0f0; font-weight: 750; }
#referral-qr { width: max-content; margin: 18px 0; padding: 12px; background: #fff; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-header nav a,
.portal-shell a,
footer a { color: #7cebd0; }
.portal-shell a.portal-button { color: #07131f; }

.reseller-page { display: grid; min-width: 0; gap: 24px; }

.reseller-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 42px;
  align-items: center;
  overflow: hidden;
  min-height: 410px;
  padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(circle at 92% 10%, #1e789059 0 110px, transparent 112px), linear-gradient(135deg, #102944, #13233a 58%, #0d3544);
}

.reseller-hero::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 270px;
  height: 270px;
  content: "";
  border: 1px solid #42e6be42;
  border-radius: 50%;
}

.reseller-hero-copy { position: relative; z-index: 1; }

.reseller-language { display: flex; gap: 9px; margin-bottom: 24px; color: #7390a6; font-size: .78rem; font-weight: 900; letter-spacing: .08em; }
.reseller-language a { color: #9bb0c1; text-decoration: none; }
.reseller-language a.active { color: #62e7c8; text-decoration: underline; text-underline-offset: 4px; }

.reseller-eyebrow {
  margin: 0 0 10px;
  color: #62e7c8;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.reseller-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.reseller-lead { margin: 24px 0 12px; color: #fff; font-size: clamp(1.18rem, 2.2vw, 1.5rem); font-weight: 780; line-height: 1.35; }
.reseller-hero-copy > p:not(.reseller-eyebrow):not(.reseller-lead) { max-width: 760px; color: #bdcbda; line-height: 1.7; }
.reseller-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.reseller-login-link { font-weight: 750; }

.reseller-rate {
  position: relative;
  z-index: 1;
  display: grid;
  width: 176px;
  height: 176px;
  place-content: center;
  color: #092236;
  border-radius: 50%;
  background: #f5bd43;
  text-align: center;
  box-shadow: 0 22px 60px #0006;
}

.reseller-rate strong { font-size: 3.25rem; line-height: 1; letter-spacing: -.06em; }
.reseller-rate span { margin-top: 7px; font-size: .72rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }

.reseller-highlights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.reseller-highlights article {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 124px;
  padding: 20px;
  border: 1px solid #29415e;
  border-radius: 18px;
  background: #0f1d31;
  text-align: center;
}

.reseller-highlights strong { color: #53dfbe; font-size: 1.7rem; line-height: 1; }
.reseller-highlights span { color: #aebed0; font-size: .82rem; line-height: 1.3; }

.reseller-content-card {
  min-width: 0;
  padding: clamp(26px, 4vw, 42px);
  color: #172c44;
  border: 1px solid #d7e4ed;
  border-radius: 22px;
  background: #f8fbfd;
  box-shadow: 0 20px 55px #0003;
}

.reseller-content-card h2,
.reseller-why h2,
.reseller-application h2 { margin: 0 0 22px; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.1; letter-spacing: -.025em; }

.reseller-content-card h2::before,
.reseller-application h2::before {
  display: inline-block;
  width: 7px;
  height: .8em;
  margin-right: 12px;
  content: "";
  border-radius: 999px;
  background: #0eab9d;
}

.reseller-content-card p,
.reseller-content-card li,
.reseller-why p,
.reseller-application > p { line-height: 1.65; }

.reseller-content-card ul { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; }
.reseller-content-card li { position: relative; padding-left: 26px; }

.reseller-content-card li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #0eab9d;
  box-shadow: 0 0 0 4px #0eab9d20;
}

.reseller-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.reseller-steps article { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: start; }

.reseller-steps article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: #0e9f9a;
  font-weight: 900;
}

.reseller-steps h3,
.reseller-detail-grid h3 { margin: 3px 0 8px; color: #17324e; font-size: 1rem; }
.reseller-steps p,
.reseller-detail-grid p { margin: 0; color: #526a81; font-size: .9rem; }

.reseller-two-column { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.reseller-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid #d7e4ed; border-radius: 14px; }
.reseller-example { width: 100%; min-width: 620px; border-collapse: collapse; }
.reseller-example th,
.reseller-example td { padding: 15px 18px; border-bottom: 1px solid #d7e4ed; text-align: center; }
.reseller-example th { color: #fff; background: #193d59; font-size: .82rem; }
.reseller-example tr:last-child td { border-bottom: 0; }
.reseller-example tbody tr:nth-child(even) { background: #edf5f8; }
.reseller-example td:last-child { color: #087f79; }
.reseller-note { margin: 14px 0 0; color: #60778d; font-size: .82rem; }

.reseller-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reseller-detail-grid article { padding: 22px; border: 1px solid #dce8ef; border-radius: 16px; background: #fff; }

.reseller-why { padding: clamp(28px, 5vw, 50px); border: 1px solid #2c4a66; border-radius: 22px; background: linear-gradient(125deg, #142d47, #0e3843); }
.reseller-why p { max-width: 930px; margin: 0; color: #c7d5e2; }

.reseller-application { max-width: none; padding: clamp(30px, 5vw, 56px); scroll-margin-top: 24px; }
.reseller-application > p { max-width: 800px; color: #bac9d7; }
.reseller-application .reseller-required { margin: 22px 0 8px; color: #fff; font-weight: 800; }
.reseller-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.reseller-privacy { margin: 18px 0 0; color: #95a9bb !important; font-size: .8rem; }
.reseller-existing { margin-bottom: 0; }
.reseller-existing a { font-weight: 800; }
.reseller-legal { max-width: 1000px; margin: 0 auto; color: #8093a7; font-size: .76rem; line-height: 1.55; text-align: center; }

.reseller-login-card { max-width: 560px !important; padding: clamp(28px, 6vw, 52px); background: linear-gradient(145deg, #142943, #101f34); }
.reseller-login-card h1 { margin: 0 0 14px; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; }
.reseller-login-intro { margin: 0 0 28px; color: #b9c9d7; line-height: 1.65; }
.reseller-login-card form { margin-top: 8px; }
.reseller-login-card button { min-width: 130px; margin-top: 4px; }
.reseller-login-links { display: grid; gap: 12px; margin-top: 26px; font-size: .9rem; }
.reseller-login-links a { width: fit-content; font-weight: 750; }

@media (max-width: 900px) {
  .reseller-hero { grid-template-columns: 1fr; }
  .reseller-rate { display: none; }
  .reseller-highlights,
  .reseller-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .portal-shell { width: min(calc(100% - 20px), 1120px); padding: 34px 0 56px; }
  .portal-card { padding: 22px; }
  .reseller-hero { min-height: auto; padding: 30px 22px; }
  .reseller-hero h1 { font-size: clamp(2.1rem, 12vw, 3.25rem); }
  .reseller-actions { align-items: stretch; flex-direction: column; }
  .portal-button { width: 100%; }
  .reseller-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .reseller-highlights article { min-height: 105px; padding: 14px 9px; }
  .reseller-steps,
  .reseller-two-column,
  .reseller-detail-grid,
  .reseller-form-grid { grid-template-columns: 1fr; }
  .reseller-content-card { padding: 25px 20px; }
  .reseller-application { padding: 30px 20px; }
}

@media (max-width: 420px) {
  .reseller-highlights { grid-template-columns: 1fr; }
}
