/* tripinz.app/affiliates: added to home.css. */
.aff-hero { min-height: min(86vh, 820px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--surface); border-radius: var(--r-card); padding: 26px; }
.steps .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--primary); font-weight: 600; font-size: 19px; margin-bottom: 18px; }
.steps p { color: var(--soft); margin-top: 6px; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.dash { margin: 0; background: var(--surface); border-radius: var(--r-sheet); padding: 24px; display: grid; gap: 12px; min-width: 0; }
.dash span { color: var(--soft); font-size: 14px; }
.dash-code strong { display: block; font-size: 34px; letter-spacing: .04em; line-height: 1.15; }
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dash-stats > div { background: var(--bg); border-radius: var(--r-tile); padding: 14px 16px; }
.dash-stats .hot { background: var(--tint); }
.dash-stats strong { display: block; font-size: 24px; font-weight: 600; line-height: 1.25; }
.dash-post { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; border-top: 1px solid var(--rule); padding-top: 12px; }
.dash-post > div { flex: 1 1 190px; min-width: 0; }
.dash-post strong { display: block; font-weight: 600; font-size: 16px; }
.dash-post code { font-size: 13px; color: var(--soft); overflow-wrap: anywhere; }
.dash-post b { color: var(--ink); font-size: 16px; }
.dash figcaption { font-size: 13px; color: var(--soft); }
.earn .what { color: var(--soft); margin: 0; }
.earn .pay { color: var(--ink); font-size: 44px; font-weight: 300; line-height: 1.2; margin: 6px 0 0; }
.apply-card { background: var(--surface); border-radius: var(--r-sheet); padding: 44px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px; }
.apply-card h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
#apply-form { display: grid; gap: 18px; }
#apply-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; min-width: 0; }
#apply-form label > span, #apply-form legend span { font-weight: 400; color: var(--soft); }
#apply-form input, #apply-form select, #apply-form textarea {
  font: 400 17px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 14px;
  padding: 11px 14px; min-height: 48px; width: 100%; min-width: 0;
}
#apply-form textarea { resize: vertical; }
#apply-form :is(input, select, textarea):focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
#apply-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
#apply-form legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 8px; }
#apply-form fieldset label { font-weight: 400; color: var(--soft); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
#apply-form .agree { grid-template-columns: 22px 1fr; gap: 12px; font-weight: 400; align-items: start; }
#apply-form .agree input { width: 22px; min-height: 22px; height: 22px; accent-color: var(--primary); margin: 2px 0 0; }
#apply-form .agree span { color: var(--ink); }
#apply-form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--danger); font-weight: 500; }
.apply-done h3 { font-size: 26px; margin-bottom: 8px; }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; }
  .split-2, .apply-card { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  .apply-card { padding: 26px 20px; }
  .f2, .f3 { grid-template-columns: 1fr; }
  .dash { padding: 20px; }
}
