.affiliate-page .xn-form-card{width:min(880px,100%)}
.affiliate-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.affiliate-grid .wide{grid-column:1/-1}.affiliate-note{border:1px solid rgba(37,245,170,.24);background:linear-gradient(135deg,rgba(37,245,170,.10),rgba(32,140,255,.08));border-radius:22px;padding:18px;color:#cfe7ff;font-weight:800}.affiliate-note strong{color:#25f5aa;text-shadow:0 0 20px rgba(37,245,170,.38)}.affiliate-otp-panel{margin-top:22px;border:1px solid rgba(80,150,255,.24);border-radius:24px;padding:22px;background:rgba(4,12,28,.72)}.affiliate-otp-panel.hidden-section{display:none}.affiliate-otp-row{display:flex;gap:10px;flex-wrap:wrap}.affiliate-otp-row input{max-width:220px;text-align:center;letter-spacing:.35em;font-weight:950}.affiliate-dashboard{min-height:100vh;background:radial-gradient(circle at 20% 10%,rgba(32,140,255,.18),transparent 30%),linear-gradient(180deg,#020611,#01030a);color:#fff}.aff-shell{width:min(100% - 48px,1240px);margin:0 auto}.aff-hero{padding:90px 0 34px;display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:stretch}.aff-panel,.aff-card{border:1px solid rgba(80,150,255,.22);border-radius:30px;background:linear-gradient(180deg,rgba(10,24,55,.82),rgba(2,8,20,.92));box-shadow:0 34px 100px rgba(0,0,0,.45),0 0 60px rgba(32,140,255,.12);padding:30px}.aff-hero h1{font-size:clamp(42px,6vw,86px);line-height:.98;margin:0 0 14px}.aff-hero h1 em{font-style:normal;background:linear-gradient(100deg,#25f5aa,#62caff,#4c6fff);-webkit-background-clip:text;background-clip:text;color:transparent}.aff-hero p{color:#b8cce5;font-size:18px;line-height:1.7}.aff-topbar{position:sticky;top:12px;z-index:40;display:flex;align-items:center;justify-content:space-between;padding:12px 16px;margin:12px auto 0;border:1px solid rgba(80,150,255,.18);border-radius:22px;background:rgba(3,9,20,.76);backdrop-filter:blur(20px)}.aff-brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#fff}.aff-brand img{width:54px;height:54px;object-fit:contain}.aff-actions{display:flex;gap:10px;align-items:center}.aff-btn,.aff-link-btn{border:1px solid rgba(80,150,255,.24);border-radius:16px;padding:12px 16px;background:linear-gradient(135deg,#4f6cff,#62d4ff);color:#fff;text-decoration:none;font-weight:950;cursor:pointer}.aff-link-btn{background:rgba(4,12,28,.72)}.aff-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.aff-stat{border:1px solid rgba(80,150,255,.20);border-radius:20px;padding:18px;background:rgba(4,12,28,.72)}.aff-stat span{display:block;color:#8edcff;text-transform:uppercase;font-size:11px;font-weight:950;letter-spacing:.12em}.aff-stat strong{display:block;font-size:28px;margin-top:8px}.aff-code-box{display:grid;gap:12px}.aff-code-line{display:flex;gap:10px}.aff-code-line input{flex:1}.aff-card h2,.aff-panel h2{margin:0 0 12px}.aff-table{width:100%;border-collapse:collapse}.aff-table th,.aff-table td{padding:14px;border-bottom:1px solid rgba(80,150,255,.16);text-align:left;color:#dbeafe}.aff-table th{color:#8edcff;text-transform:uppercase;font-size:12px}.aff-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:40px}.aff-rule-list{display:grid;gap:10px;margin-top:16px}.aff-rule-list div{padding:14px;border:1px solid rgba(80,150,255,.16);border-radius:18px;background:rgba(255,255,255,.03)}.aff-copy-ok{color:#25f5aa;font-weight:900;min-height:20px}.admin-affiliate-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.admin-affiliate-grid .aff-stat{background:rgba(4,12,28,.52)}
@media(max-width:900px){.affiliate-grid,.aff-hero,.aff-grid{grid-template-columns:1fr}.aff-stat-grid,.admin-affiliate-grid{grid-template-columns:repeat(2,1fr)}.aff-shell{width:min(100% - 24px,1240px)}}@media(max-width:520px){.aff-stat-grid,.admin-affiliate-grid{grid-template-columns:1fr}.aff-code-line{flex-direction:column}.aff-topbar{width:min(100% - 20px,1240px)}}
.affiliate-field{display:grid;gap:7px}.affiliate-field>span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#8edcff;font-weight:950}.affiliate-field input,.affiliate-field select{width:100%}.affiliate-dual-actions{gap:14px;justify-content:center;flex-wrap:wrap}.field-error{display:block;min-height:18px;font-size:12px;color:#ff7b7b;font-weight:800}.field-success{color:#25f5aa}.agreement-label .field-error{margin-top:6px}.affiliate-register-choice{margin-top:14px;border:1px solid rgba(98,212,255,.24);background:rgba(32,140,255,.07);border-radius:18px;padding:14px;color:#cfe7ff}.hidden-section{display:none!important}
.affiliate-form-notice{border:1px solid rgba(90,190,255,.35);background:rgba(7,20,36,.88);color:#dff5ff;border-radius:16px;padding:12px 14px;margin-bottom:14px;font-weight:700;box-shadow:0 0 24px rgba(48,166,255,.12)}
.affiliate-form-notice[data-type="error"]{border-color:rgba(255,90,90,.55);color:#ffb7b7;background:rgba(48,8,12,.72)}
.affiliate-form-notice[data-type="success"]{border-color:rgba(74,255,169,.5);color:#aaffd4;background:rgba(4,42,31,.72)}
/* V42 affiliate OTP polish */
.affiliate-otp-boxes{display:flex;gap:10px;justify-content:center;flex-wrap:nowrap;margin:18px 0}
.affiliate-otp-boxes input{width:48px;height:54px;text-align:center;font-size:22px;font-weight:950;border-radius:16px;border:1px solid rgba(98,212,255,.34);background:rgba(4,12,28,.82);color:#fff;box-shadow:inset 0 0 18px rgba(32,140,255,.12)}
.affiliate-otp-panel .auth-submit,#sendAffiliateOtp.auth-submit,#verifyAffiliateOtp.auth-submit{width:100%;border:0;border-radius:18px;padding:15px 18px;background:linear-gradient(135deg,#4f6cff,#62d4ff);color:#fff;font-weight:950;letter-spacing:.02em;box-shadow:0 16px 42px rgba(32,140,255,.28);cursor:pointer}
.affiliate-form-notice{border:1px solid rgba(255,107,107,.32);background:rgba(255,107,107,.10);color:#ffd7d7;border-radius:16px;padding:12px 14px;font-weight:850;margin:10px 0}
.affiliate-form-notice[data-type="success"]{border-color:rgba(37,245,170,.34);background:rgba(37,245,170,.10);color:#d8fff2}
@media(max-width:640px){.affiliate-otp-boxes input{width:40px;height:48px}.affiliate-grid{grid-template-columns:1fr}}
/* V43 affiliate auth polish */
.affiliate-page .auth-submit,
.affiliate-page button.auth-submit{
  width:100%;
  border:0;
  border-radius:18px;
  padding:16px 20px;
  background:linear-gradient(135deg,#4f6cff,#62d4ff);
  color:#fff;
  font-weight:950;
  letter-spacing:.02em;
  box-shadow:0 18px 48px rgba(32,140,255,.28), inset 0 1px 0 rgba(255,255,255,.18);
  cursor:pointer;
  opacity:1;
}
.affiliate-page .auth-submit:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.65)}

/* V55 affiliate payout and privacy polish */
.aff-muted{color:#a9bdd7;font-size:14px;line-height:1.55;margin:0 0 16px}
.aff-card.wide{grid-column:1/-1}
.aff-bank-form{display:grid;gap:14px;margin-top:14px}
.aff-bank-form label{display:grid;gap:7px;color:#dbeafe;font-weight:800}
.aff-bank-form label span{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#8edcff;font-weight:950}
.aff-bank-form input{width:100%;border:1px solid rgba(98,212,255,.24);border-radius:16px;background:rgba(4,12,28,.78);color:#fff;padding:13px 14px;font-weight:750;outline:none}
.aff-table tfoot td{border-top:1px solid rgba(37,245,170,.30);background:rgba(37,245,170,.06);color:#eafff7;font-weight:900}
.aff-table small{display:block;color:#8ea8c6;margin-top:3px}

.affiliate-footer{display:flex;justify-content:center;align-items:center;gap:.65rem;flex-wrap:wrap;padding:1.1rem 1rem 1.6rem;color:var(--text-muted,#9aa7bd);font-size:.84rem}
.affiliate-footer a{color:inherit;text-decoration:none}
.affiliate-footer a:hover,.affiliate-footer a:focus-visible{color:var(--primary,#4ba3ff);text-decoration:underline}

/* v66 affiliate verification and one-time payout details */
.affiliate-otp-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:14px}.affiliate-otp-actions .auth-submit{flex:1 1 220px}.affiliate-program-terms{width:min(1100px,calc(100% - 32px));margin:26px auto 0;padding:26px;border:1px solid rgba(84,180,255,.2);border-radius:24px;background:rgba(8,18,36,.78)}.affiliate-program-terms h2{margin:6px 0 18px}.affiliate-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.affiliate-rule-grid article{padding:16px;border:1px solid rgba(255,255,255,.09);border-radius:16px;background:rgba(255,255,255,.035)}.affiliate-rule-grid article strong{color:#fff}.affiliate-rule-grid article p{margin:7px 0 0;color:#aebbd1;line-height:1.6}@media(max-width:720px){.affiliate-rule-grid{grid-template-columns:1fr}}


/* v78 affiliate dashboard/recovery alignment */
#affiliateOperations{grid-template-columns:1fr!important;margin-top:16px;margin-bottom:0}.pro-section-head{display:flex;align-items:end;justify-content:space-between;gap:16px}.pro-section-head h2{margin:4px 0 0}.affiliate-reset-helper{margin:8px 0 2px}.pro-auth-card #affiliateResetOtpPanel .otp-container{display:flex!important;justify-content:center!important;gap:10px!important;flex-wrap:nowrap!important;margin:20px 0!important}.pro-auth-card #affiliateResetOtpPanel .otp-container input{width:54px!important;min-width:54px!important;height:56px!important;min-height:56px!important;padding:0!important;text-align:center!important;font-size:1.35rem!important;font-weight:900!important}.pro-auth-card #affiliateResetPasswordPanel{gap:16px}@media(max-width:620px){.pro-auth-card #affiliateResetOtpPanel .otp-container{gap:6px!important}.pro-auth-card #affiliateResetOtpPanel .otp-container input{width:42px!important;min-width:42px!important;height:50px!important;min-height:50px!important}}
