:root{
  --aff-bg:#f6f1ec;--aff-card:#fffdfa;--aff-ink:#2e241f;--aff-muted:#786a61;--aff-line:#eadfd6;
  --aff-accent:#7b4d38;--aff-accent-2:#a87356;--aff-soft:#efe1d7;--aff-good:#276749;--aff-warn:#9a6700;
  font-family:"Be Vietnam Pro",system-ui,sans-serif;color:var(--aff-ink);background:var(--aff-bg)
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:
radial-gradient(circle at top left,rgba(168,115,86,.12),transparent 32rem),var(--aff-bg);color:var(--aff-ink)}
button,input{font:inherit}.aff-topbar{height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 max(22px,calc((100vw - 1180px)/2));border-bottom:1px solid rgba(123,77,56,.09);background:rgba(255,253,250,.86);backdrop-filter:blur(18px);position:sticky;top:0;z-index:30}
.aff-brand{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none}.aff-brand img{width:42px;height:42px;object-fit:contain}.aff-brand span{display:grid;gap:1px}.aff-brand b{font-size:14px}.aff-brand small{font-size:10px;color:var(--aff-muted);font-weight:600}.aff-home-link{color:var(--aff-accent);font-weight:700;text-decoration:none;font-size:13px}
.aff-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:48px 0 70px}.aff-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:34px;align-items:stretch}.aff-hero-copy{padding:36px 8px 36px 4px}.aff-eyebrow{display:inline-flex;padding:8px 11px;border-radius:999px;background:var(--aff-soft);color:var(--aff-accent);font-size:10px;font-weight:800;letter-spacing:.13em}.aff-hero h1{font-size:clamp(38px,5vw,66px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 22px}.aff-hero p{color:var(--aff-muted);font-size:15px;line-height:1.75;max-width:720px}.aff-hero-pills{display:flex;flex-wrap:wrap;gap:8px;margin-top:25px}.aff-hero-pills span{border:1px solid var(--aff-line);background:rgba(255,255,255,.62);border-radius:999px;padding:9px 12px;font-size:11px;font-weight:700;color:#5f4c42}
.aff-rate-card{background:linear-gradient(160deg,#35261f,#5a3828);color:#fff;border-radius:28px;padding:28px;box-shadow:0 24px 65px rgba(77,46,31,.19);display:flex;flex-direction:column;justify-content:center}.aff-rate-card>small{font-size:10px;letter-spacing:.13em;font-weight:800;color:#e8c7b4}.aff-rate-card>p{font-size:11px;line-height:1.6;color:#e7d8cf;margin:15px 0 0}.aff-tier-preview{display:grid;gap:9px;margin-top:18px}.aff-tier-line{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;padding:13px 14px;border-radius:16px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}.aff-tier-line b{font-size:13px}.aff-tier-line span{font-size:11px;color:#dccbc2}.aff-tier-line strong{font-size:23px;letter-spacing:-.04em}.aff-skeleton{height:57px;border-radius:16px;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.14),rgba(255,255,255,.06));background-size:200% 100%;animation:affShimmer 1.2s infinite}
.aff-workspace{margin-top:34px;border:1px solid var(--aff-line);border-radius:28px;background:rgba(255,253,250,.92);overflow:hidden;box-shadow:0 20px 50px rgba(58,38,28,.07)}.aff-tabs{display:flex;gap:4px;padding:9px;background:#f1e8e1;border-bottom:1px solid var(--aff-line)}.aff-tabs button{border:0;background:transparent;color:#74655c;border-radius:14px;padding:12px 17px;font-size:12px;font-weight:800;cursor:pointer}.aff-tabs button.active{background:#fff;box-shadow:0 5px 14px rgba(70,45,32,.08);color:var(--aff-accent)}
.aff-panel{display:none;padding:30px}.aff-panel.active{display:block}.aff-panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.aff-panel-head>div{display:flex;align-items:center;gap:12px}.aff-panel-head>div>span{width:38px;height:38px;border-radius:13px;display:grid;place-items:center;background:var(--aff-soft);color:var(--aff-accent);font-weight:800;font-size:12px}.aff-panel-head div div{display:grid;gap:3px}.aff-panel-head b{font-size:18px}.aff-panel-head small{color:var(--aff-muted);font-size:11px}
.aff-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.aff-form-compact{max-width:700px}.aff-form label{display:grid;gap:7px}.aff-form label span{font-size:11px;font-weight:700;color:#68584f}.aff-form label em{font-style:normal;font-weight:500;color:#a08f85}.aff-form input{width:100%;height:48px;border:1px solid var(--aff-line);border-radius:14px;background:#fff;padding:0 14px;color:var(--aff-ink);outline:none;transition:.18s}.aff-form input:focus{border-color:#b98d75;box-shadow:0 0 0 4px rgba(168,115,86,.11)}.aff-form-divider{grid-column:1/-1;display:flex;align-items:center;gap:12px;margin-top:4px}.aff-form-divider:after{content:"";height:1px;background:var(--aff-line);flex:1}.aff-form-divider span{font-size:10px;font-weight:800;letter-spacing:.09em;color:#937665}.aff-primary{grid-column:1/-1;border:0;border-radius:15px;min-height:49px;padding:0 18px;background:linear-gradient(135deg,var(--aff-accent),var(--aff-accent-2));color:#fff;font-weight:800;cursor:pointer;box-shadow:0 10px 20px rgba(123,77,56,.18)}.aff-primary:disabled{opacity:.55;cursor:wait}.aff-form-note{grid-column:1/-1;margin:0;color:var(--aff-muted);font-size:10px;line-height:1.5}
.aff-result{margin-top:18px;border-radius:16px;padding:14px 16px;font-size:12px;line-height:1.6;background:#f4ece6;border:1px solid #e6d6cb}.aff-result.good{background:#edf8f1;border-color:#cde7d7;color:#24593e}.aff-result.bad{background:#fff1ee;border-color:#f1d0c7;color:#8a3d2c}
.aff-dashboard{display:grid;gap:20px}.aff-dashboard-loading{min-height:240px;display:grid;place-items:center;align-content:center;gap:12px;color:var(--aff-muted)}.aff-dashboard-loading span{width:26px;height:26px;border:3px solid #ddc9bc;border-top-color:var(--aff-accent);border-radius:50%;animation:affSpin .7s linear infinite}.aff-dashboard-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.aff-dashboard-head h2{margin:4px 0;font-size:27px}.aff-dashboard-head p{margin:0;color:var(--aff-muted);font-size:11px}.aff-code-chip{display:grid;gap:3px;text-align:right}.aff-code-chip small{font-size:9px;color:var(--aff-muted);font-weight:800}.aff-code-chip strong{font-size:18px;color:var(--aff-accent);letter-spacing:.08em}
.aff-share-card{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:16px;border-radius:18px;background:#f3e9e2;border:1px solid #e6d8cf}.aff-share-card div{min-width:0}.aff-share-card small{display:block;font-size:9px;font-weight:800;color:#866d5f;margin-bottom:5px}.aff-share-card code{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:600 11px/1.4 "Be Vietnam Pro",sans-serif;color:#503a2f}.aff-share-card button,.aff-mini-btn{border:0;border-radius:12px;background:#fff;color:var(--aff-accent);padding:10px 12px;font-weight:800;font-size:10px;cursor:pointer;box-shadow:0 5px 13px rgba(70,45,32,.07)}
.aff-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.aff-kpi{padding:18px;border-radius:18px;border:1px solid var(--aff-line);background:#fff}.aff-kpi small{font-size:9px;font-weight:800;color:#8b7669}.aff-kpi b{display:block;margin-top:8px;font-size:22px;letter-spacing:-.03em}.aff-kpi span{display:block;margin-top:4px;font-size:9px;color:var(--aff-muted)}
.aff-progress-card{padding:18px;border:1px solid var(--aff-line);border-radius:18px;background:#fff}.aff-progress-head{display:flex;justify-content:space-between;gap:15px;align-items:center}.aff-progress-head b{font-size:13px}.aff-progress-head span{font-size:10px;color:var(--aff-muted)}.aff-progress-track{height:9px;border-radius:99px;background:#eee3dc;overflow:hidden;margin-top:13px}.aff-progress-track i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--aff-accent),#c59578);width:0}
.aff-ledger{border:1px solid var(--aff-line);border-radius:18px;overflow:hidden;background:#fff}.aff-ledger-head{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid var(--aff-line)}.aff-ledger-head b{font-size:13px}.aff-ledger-head span{font-size:10px;color:var(--aff-muted)}.aff-ledger-list{display:grid}.aff-ledger-row{display:grid;grid-template-columns:1.2fr .8fr .7fr .8fr;gap:12px;align-items:center;padding:13px 17px;border-bottom:1px solid #f2ebe6;font-size:10px}.aff-ledger-row:last-child{border-bottom:0}.aff-ledger-row b{font-size:11px}.aff-status{display:inline-flex;width:max-content;padding:5px 8px;border-radius:999px;background:#f2ebe6;color:#755e51;font-size:9px;font-weight:800}.aff-status.earned{background:#edf8f1;color:#276749}.aff-status.paid{background:#e9f4ff;color:#285d87}.aff-status.pending_stay{background:#fff6df;color:#8a6500}.aff-empty{padding:26px;text-align:center;color:var(--aff-muted);font-size:11px}
.aff-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:80;background:#2d211c;color:#fff;padding:11px 14px;border-radius:12px;font-size:11px;font-weight:700;transition:.2s}.aff-toast.show{opacity:1;transform:translate(-50%,0)}
@keyframes affSpin{to{transform:rotate(360deg)}}@keyframes affShimmer{to{background-position:-200% 0}}
@media(max-width:860px){.aff-shell{width:min(100% - 22px,720px);padding-top:24px}.aff-hero{grid-template-columns:1fr}.aff-hero-copy{padding:12px 4px}.aff-hero h1{font-size:42px}.aff-rate-card{border-radius:22px}.aff-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.aff-ledger-row{grid-template-columns:1fr 1fr}.aff-ledger-row>*:nth-child(3),.aff-ledger-row>*:nth-child(4){text-align:left}.aff-share-card{grid-template-columns:1fr}.aff-share-card button{width:100%}}
@media(max-width:620px){.aff-topbar{height:64px;padding:0 12px}.aff-brand img{width:36px;height:36px}.aff-brand small{display:none}.aff-home-link{font-size:11px}.aff-shell{width:calc(100% - 16px);padding:16px 0 48px}.aff-hero h1{font-size:36px}.aff-hero p{font-size:13px}.aff-workspace{border-radius:20px}.aff-tabs{overflow:auto;scrollbar-width:none}.aff-tabs::-webkit-scrollbar{display:none}.aff-tabs button{white-space:nowrap;padding:11px 13px}.aff-panel{padding:20px 14px}.aff-form{grid-template-columns:1fr}.aff-form-divider,.aff-primary,.aff-form-note{grid-column:1}.aff-kpis{grid-template-columns:1fr 1fr;gap:8px}.aff-kpi{padding:14px}.aff-kpi b{font-size:18px}.aff-dashboard-head{display:grid}.aff-code-chip{text-align:left}.aff-ledger-row{grid-template-columns:1fr}.aff-ledger-row>*{text-align:left!important}}


/* V686 · CTV customer polish + responsive terms */
:root{
  --aff-bg:#f7f2ee;
  --aff-card:#fffdfb;
  --aff-ink:#2f241f;
  --aff-muted:#74645a;
  --aff-line:#e7dbd2;
  --aff-accent:#714633;
  --aff-accent-strong:#553124;
  --aff-accent-2:#a76f50;
  --aff-soft:#f2e5dc;
  --aff-good:#245e40;
}
body{min-height:100vh}
.aff-topbar{height:76px;padding-left:max(18px,calc((100vw - 1180px)/2));padding-right:max(18px,calc((100vw - 1180px)/2));box-shadow:0 1px 0 rgba(72,47,36,.03)}
.aff-home-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;border:1px solid #dfd0c6;border-radius:12px;background:#fff;color:#533528;font-weight:800;box-shadow:0 5px 14px rgba(64,40,29,.06);transition:.18s ease}
.aff-home-link:hover{transform:translateY(-1px);border-color:#c9aa98;background:#fffaf7}
.aff-shell{padding-top:42px}
.aff-hero{gap:28px}
.aff-hero-copy{padding:34px 8px 30px 2px}
.aff-hero h1{max-width:760px;text-wrap:balance}
.aff-hero p{font-size:14px;line-height:1.8}
.aff-rate-card{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(145deg,#2d211c 0%,#513326 58%,#714633 100%);box-shadow:0 26px 70px rgba(74,45,31,.22)}
.aff-rate-card:before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-80px;top:-90px;background:rgba(255,255,255,.08);filter:blur(2px);z-index:-1}
.aff-rate-card:after{content:"";position:absolute;width:120px;height:120px;border-radius:50%;left:-50px;bottom:-62px;background:rgba(236,193,166,.08);z-index:-1}
.aff-tier-line{background:rgba(255,255,255,.095);border-color:rgba(255,255,255,.12)}
.aff-tier-line strong{color:#fff}
.aff-rate-card>p{color:#f0e4dd}

.aff-rules{margin-top:32px;padding:28px;border:1px solid var(--aff-line);border-radius:28px;background:linear-gradient(180deg,#fffdfb 0%,#fbf7f4 100%);box-shadow:0 18px 45px rgba(61,39,28,.06)}
.aff-rules-head{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start}
.aff-rules-head .aff-eyebrow{margin-top:4px;white-space:nowrap}
.aff-rules-head h2{margin:0;font-size:clamp(22px,3vw,31px);letter-spacing:-.035em;line-height:1.15}
.aff-rules-head p{margin:8px 0 0;color:var(--aff-muted);font-size:12px;line-height:1.7;max-width:780px}
.aff-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:22px}
.aff-rule-card{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px;padding:15px;border:1px solid #eadfd7;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(70,44,30,.035)}
.aff-rule-card>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#f0e1d7;color:#68402f;font-size:10px;font-weight:900}
.aff-rule-card div{display:grid;gap:4px}
.aff-rule-card b{font-size:12px;color:#352820}
.aff-rule-card p{margin:0;color:#7b6d64;font-size:10.5px;line-height:1.55}
.aff-rules-note{display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;align-items:start;margin-top:14px;padding:12px 14px;border-radius:14px;background:#f4ece6;color:#604a3f}
.aff-rules-note i{width:26px;height:26px;display:grid;place-items:center;border-radius:50%;background:#6d4634;color:#fff;font-style:normal;font-size:11px;font-weight:900}
.aff-rules-note p{margin:2px 0 0;font-size:10px;line-height:1.55}

.aff-workspace{margin-top:22px;background:rgba(255,253,251,.96);box-shadow:0 22px 58px rgba(58,38,28,.08)}
.aff-tabs{padding:8px;background:#f0e6df;gap:6px}
.aff-tabs button{min-height:42px;color:#594940;border:1px solid transparent}
.aff-tabs button:hover{background:rgba(255,255,255,.65);color:#3e3029}
.aff-tabs button.active{background:#fff;color:#563528;border-color:#e5d7ce;box-shadow:0 6px 18px rgba(70,45,32,.08)}
.aff-form input{border-color:#ded1c8;background:#fffdfb}
.aff-form input::placeholder{color:#aa9a91}
.aff-primary{min-height:52px;background:linear-gradient(135deg,#5d3728,#80513b 58%,#a76f50);color:#fff;text-shadow:0 1px 1px rgba(0,0,0,.16);box-shadow:0 10px 24px rgba(99,59,40,.25);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.aff-primary:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 13px 28px rgba(99,59,40,.29);filter:saturate(1.04)}
.aff-primary:focus-visible,.aff-tabs button:focus-visible,.aff-home-link:focus-visible,.aff-share-card button:focus-visible,.aff-mini-btn:focus-visible{outline:3px solid rgba(169,113,80,.26);outline-offset:2px}
.aff-share-card button,.aff-mini-btn{background:#5d3728;color:#fff;border:1px solid #5d3728;text-shadow:0 1px 1px rgba(0,0,0,.14);box-shadow:0 6px 16px rgba(80,46,31,.16)}
.aff-share-card button:hover,.aff-mini-btn:hover{background:#47291f}
.aff-kpi{box-shadow:0 7px 20px rgba(65,42,30,.035)}
.aff-status{font-weight:900}

@media(max-width:860px){
  .aff-rules{padding:22px}
  .aff-rules-head{grid-template-columns:1fr;gap:10px}
  .aff-rules-head .aff-eyebrow{width:max-content;margin-top:0}
  .aff-rule-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .aff-topbar{height:64px}
  .aff-home-link{min-height:36px;padding:0 11px;border-radius:10px}
  .aff-shell{padding-top:18px}
  .aff-hero{gap:16px}
  .aff-hero-copy{padding:10px 2px 4px}
  .aff-hero h1{font-size:clamp(33px,10vw,40px);line-height:1.04;margin:15px 0 16px}
  .aff-hero-pills{gap:6px;margin-top:18px}
  .aff-hero-pills span{padding:8px 10px;font-size:10px}
  .aff-rate-card{padding:20px;border-radius:20px}
  .aff-tier-line{padding:11px 12px}
  .aff-tier-line strong{font-size:20px}
  .aff-rules{margin-top:18px;padding:17px 13px;border-radius:20px}
  .aff-rules-head h2{font-size:23px}
  .aff-rule-grid{grid-template-columns:1fr;gap:8px;margin-top:16px}
  .aff-rule-card{grid-template-columns:34px minmax(0,1fr);padding:12px;border-radius:14px}
  .aff-rule-card>span{width:34px;height:34px;border-radius:10px}
  .aff-rules-note{padding:11px}
  .aff-workspace{margin-top:14px}
  .aff-panel-head b{font-size:16px}
  .aff-form input{height:47px}
  .aff-primary{min-height:50px}
  .aff-share-card{padding:13px}
}
@media(max-width:390px){
  .aff-brand b{font-size:13px}
  .aff-home-link{font-size:10px}
  .aff-kpis{grid-template-columns:1fr}
}


/* V687 · Premium CTV form + controls polish */
body{
  background:
    radial-gradient(circle at 8% 0%,rgba(177,119,86,.13),transparent 30rem),
    radial-gradient(circle at 94% 18%,rgba(100,141,111,.075),transparent 24rem),
    linear-gradient(180deg,#faf7f4 0%,#f5efea 100%);
}
.aff-workspace{
  border-color:rgba(116,76,56,.12);
  background:rgba(255,253,251,.965);
  box-shadow:0 28px 80px rgba(70,43,29,.10);
}
.aff-tabs{
  padding:8px;
  gap:7px;
  background:linear-gradient(180deg,#f3eae4,#eee2da);
}
.aff-tabs button{
  position:relative;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  color:#6b584d;
  font-size:11px;
  letter-spacing:.01em;
  transition:transform .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.aff-tabs button:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.78);
  color:#402d25;
}
.aff-tabs button.active{
  background:linear-gradient(135deg,#65402f,#7e513a);
  border-color:#65402f;
  color:#fff;
  text-shadow:0 1px 1px rgba(0,0,0,.12);
  box-shadow:0 9px 22px rgba(91,53,36,.22),inset 0 1px 0 rgba(255,255,255,.16);
}
.aff-panel{padding:34px}
.aff-panel-head{margin-bottom:26px}
.aff-panel-head>div>span{
  width:42px;height:42px;border-radius:14px;
  background:linear-gradient(145deg,#f0dfd3,#f7eee8);
  box-shadow:inset 0 0 0 1px rgba(118,73,50,.07);
}
.aff-panel-head b{font-size:19px;letter-spacing:-.02em}
.aff-panel-head small{font-size:10.5px;line-height:1.5}
.aff-form{gap:13px 14px}
.aff-form label{
  position:relative;
  display:grid;
  gap:8px;
  padding:12px 12px 13px;
  border:1px solid #eadfd7;
  border-radius:18px;
  background:linear-gradient(180deg,#fffefa 0%,#fbf7f4 100%);
  box-shadow:0 5px 18px rgba(65,40,27,.035);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease;
}
.aff-form label:hover{
  border-color:#dcc9bd;
  background:#fff;
}
.aff-form label:focus-within{
  transform:translateY(-1px);
  border-color:#bb8d73;
  background:#fff;
  box-shadow:0 10px 24px rgba(88,54,36,.075),0 0 0 4px rgba(168,111,80,.085);
}
.aff-form label span{
  padding:0 3px;
  color:#655148;
  font-size:10px;
  font-weight:800;
  letter-spacing:.015em;
}
.aff-form label em{color:#a08e84;font-size:9px}
.aff-form input{
  height:52px;
  padding:0 15px;
  border:1px solid #e1d5cd;
  border-radius:14px;
  background:#fff;
  color:#2d231e;
  font-size:13px;
  font-weight:600;
  box-shadow:inset 0 1px 2px rgba(58,36,25,.025);
  caret-color:#714633;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.aff-form input:hover{border-color:#d5c1b5}
.aff-form input:focus{
  border-color:#9f6b50;
  background:#fffefa;
  box-shadow:0 0 0 3px rgba(159,107,80,.10),inset 0 1px 2px rgba(58,36,25,.02);
}
.aff-form input::placeholder{color:#b2a39a;font-weight:500}
.aff-form input:-webkit-autofill{
  -webkit-text-fill-color:#2d231e;
  box-shadow:0 0 0 1000px #fffefa inset;
}
.aff-form-divider{
  margin:7px 0 2px;
  gap:10px;
}
.aff-form-divider:before,.aff-form-divider:after{
  content:"";height:1px;flex:1;
  background:linear-gradient(90deg,transparent,#dfd0c6);
}
.aff-form-divider:after{background:linear-gradient(90deg,#dfd0c6,transparent)}
.aff-form-divider span{
  padding:6px 10px;
  border:1px solid #eaded5;
  border-radius:999px;
  background:#faf4ef;
  color:#806252;
  font-size:9px;
  letter-spacing:.11em;
}
.aff-primary{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:56px;
  margin-top:3px;
  border:1px solid rgba(76,43,29,.16);
  border-radius:17px;
  background:linear-gradient(135deg,#513025 0%,#714633 52%,#a56e4f 100%);
  font-size:12px;
  letter-spacing:.015em;
  box-shadow:0 14px 30px rgba(92,52,34,.26),inset 0 1px 0 rgba(255,255,255,.18);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.aff-primary::after{
  content:"→";
  display:grid;
  place-items:center;
  width:24px;height:24px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  font-size:14px;
  transition:transform .16s ease,background .16s ease;
}
.aff-primary:hover:not(:disabled){
  transform:translateY(-2px);
  box-shadow:0 17px 36px rgba(92,52,34,.31),inset 0 1px 0 rgba(255,255,255,.20);
  filter:saturate(1.04);
}
.aff-primary:hover:not(:disabled)::after{transform:translateX(2px);background:rgba(255,255,255,.20)}
.aff-primary:active:not(:disabled){transform:translateY(0);box-shadow:0 8px 18px rgba(92,52,34,.22)}
.aff-primary:disabled{opacity:.58;filter:saturate(.75)}
.aff-form-note{
  padding:2px 4px 0;
  color:#8a7970;
  font-size:9.5px;
}
.aff-home-link,.aff-share-card button,.aff-mini-btn{
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;
}
.aff-share-card button,.aff-mini-btn{
  min-height:40px;
  padding:0 14px;
  border-radius:12px;
  background:linear-gradient(135deg,#5b382a,#754a36);
  box-shadow:0 7px 18px rgba(78,45,30,.18);
}
.aff-share-card button:hover,.aff-mini-btn:hover{transform:translateY(-1px);background:linear-gradient(135deg,#482a20,#623d2e)}
.aff-share-card button:active,.aff-mini-btn:active{transform:translateY(0)}
@media(max-width:620px){
  .aff-panel{padding:20px 12px 22px}
  .aff-tabs{padding:6px;gap:5px}
  .aff-tabs button{min-height:43px;padding:0 13px;border-radius:12px;font-size:10.5px}
  .aff-form{gap:10px}
  .aff-form label{padding:10px 10px 11px;border-radius:16px}
  .aff-form input{height:50px;border-radius:13px;font-size:13px}
  .aff-primary{min-height:54px;border-radius:15px}
  .aff-panel-head{margin-bottom:19px}
}


/* V688 · CTV desktop login + registration consent polish */
.aff-login-panel{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 100% 0%,rgba(167,111,80,.08),transparent 24rem),
    #fffdfb;
}
.aff-login-panel .aff-panel-head{
  position:relative;
  margin-bottom:22px;
  padding-bottom:20px;
  border-bottom:1px solid #eee4de;
}
.aff-login-panel .aff-panel-head>div{
  align-items:center;
}
.aff-login-panel .aff-panel-head>div>span{
  width:46px;height:46px;
  border-radius:15px;
  background:linear-gradient(145deg,#65402f,#8d5a41);
  color:#fff;
  box-shadow:0 10px 24px rgba(95,55,36,.20);
}
.aff-login-panel .aff-panel-head b{font-size:20px}
.aff-login-panel .aff-panel-head small{font-size:11px;line-height:1.55}
.aff-login-form{
  max-width:none;
  grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr) auto;
  gap:12px;
  align-items:stretch;
  padding:18px;
  border:1px solid #e7dbd2;
  border-radius:22px;
  background:linear-gradient(180deg,#fff 0%,#fcf8f5 100%);
  box-shadow:0 13px 34px rgba(68,43,29,.055);
}
.aff-login-form>label{
  min-height:88px;
  justify-content:center;
  padding:11px 12px 12px;
  border-radius:16px;
  box-shadow:none;
}
.aff-login-form>label:focus-within{transform:none}
.aff-login-form .aff-primary{
  grid-column:auto;
  align-self:stretch;
  min-width:150px;
  min-height:88px;
  margin:0;
  padding:0 24px;
  border-radius:16px;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  white-space:nowrap;
}
.aff-login-form .aff-primary::after{
  width:27px;height:27px;
  font-size:15px;
}
.aff-consent{
  grid-column:1/-1;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr)!important;
  align-items:start!important;
  gap:10px!important;
  padding:12px 13px!important;
  border:1px solid #e4d8d0!important;
  border-radius:15px!important;
  background:#faf5f1!important;
  box-shadow:none!important;
  cursor:pointer;
}
.aff-consent:hover{border-color:#cfb7a8!important;background:#fffaf7!important}
.aff-consent:focus-within{
  transform:none!important;
  border-color:#ae8067!important;
  box-shadow:0 0 0 4px rgba(168,111,80,.08)!important;
}
.aff-consent>input{
  position:absolute;
  opacity:0;
  width:1px!important;height:1px!important;
  pointer-events:none;
}
.aff-consent-box{
  width:21px;height:21px;
  display:grid!important;
  place-items:center;
  margin-top:1px;
  padding:0!important;
  border:1.5px solid #cbb9ad;
  border-radius:7px;
  background:#fff;
  color:transparent!important;
  font-size:12px!important;
  line-height:1;
  transition:.16s ease;
}
.aff-consent input:checked + .aff-consent-box{
  border-color:#6c4432;
  background:linear-gradient(145deg,#5d382a,#84523a);
  color:#fff!important;
  box-shadow:0 5px 12px rgba(87,50,33,.18);
}
.aff-consent-copy{
  padding:0!important;
  color:#75645a!important;
  font-size:10.5px!important;
  font-weight:600!important;
  line-height:1.6;
}
.aff-consent-copy a{
  color:#5f3929;
  font-weight:800;
  text-decoration:none;
  border-bottom:1px solid rgba(95,57,41,.28);
}
.aff-consent-copy a:hover{border-bottom-color:#5f3929}
@media(max-width:860px){
  .aff-login-form{
    grid-template-columns:1fr 1fr;
  }
  .aff-login-form .aff-primary{
    grid-column:1/-1;
    min-height:52px;
    flex-direction:row;
  }
}
@media(max-width:620px){
  .aff-login-panel .aff-panel-head{
    margin-bottom:16px;
    padding-bottom:15px;
  }
  .aff-login-panel .aff-panel-head>div>span{width:40px;height:40px;border-radius:13px}
  .aff-login-panel .aff-panel-head b{font-size:17px}
  .aff-login-form{
    grid-template-columns:1fr;
    gap:9px;
    padding:11px;
    border-radius:17px;
  }
  .aff-login-form>label{min-height:auto}
  .aff-login-form .aff-primary{
    grid-column:1;
    min-height:52px;
    width:100%;
  }
  .aff-consent{
    grid-template-columns:22px minmax(0,1fr)!important;
    padding:11px!important;
  }
}


/* V689 · Compact desktop CTV login layout */
@media(min-width:861px){
  .aff-login-panel.active{
    display:grid;
    grid-template-columns:minmax(190px,235px) minmax(0,1fr);
    gap:22px;
    align-items:center;
    padding:26px 30px;
  }
  .aff-login-panel .aff-panel-head{
    margin:0;
    padding:2px 22px 2px 0;
    border:0;
    border-right:1px solid #eee3dc;
  }
  .aff-login-panel .aff-panel-head>div{
    display:grid;
    grid-template-columns:38px minmax(0,1fr);
    gap:11px;
    align-items:start;
  }
  .aff-login-panel .aff-panel-head>div>span{
    width:38px;
    height:38px;
    border-radius:12px;
    font-size:10px;
    box-shadow:0 7px 16px rgba(95,55,36,.15);
  }
  .aff-login-panel .aff-panel-head>div>div{
    gap:5px;
    align-content:start;
  }
  .aff-login-panel .aff-panel-head b{
    font-size:16px;
    line-height:1.3;
    letter-spacing:-.018em;
  }
  .aff-login-panel .aff-panel-head small{
    max-width:190px;
    font-size:9.5px;
    line-height:1.55;
    color:#8a786e;
  }
  .aff-login-form{
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(150px,.72fr) 118px;
    gap:10px;
    align-items:end;
    padding:12px;
    border-radius:17px;
    background:#fff;
    border:1px solid #eadfd8;
    box-shadow:0 8px 24px rgba(70,43,29,.045);
  }
  .aff-login-form>label{
    min-height:0;
    padding:0;
    gap:6px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .aff-login-form>label:hover,
  .aff-login-form>label:focus-within{
    transform:none;
    border:0;
    background:transparent;
    box-shadow:none;
  }
  .aff-login-form>label>span{
    padding:0 3px;
    font-size:9px;
    font-weight:800;
    color:#756158;
    letter-spacing:.01em;
  }
  .aff-login-form input{
    height:43px;
    padding:0 12px;
    border-radius:11px;
    border-color:#ded1c8;
    background:#fffdfa;
    font-size:11.5px;
    font-weight:650;
  }
  .aff-login-form input:focus{
    background:#fff;
    border-color:#a87860;
    box-shadow:0 0 0 3px rgba(159,107,80,.09);
  }
  .aff-login-form .aff-primary{
    grid-column:auto;
    align-self:end;
    width:118px;
    min-width:118px;
    min-height:43px;
    height:43px;
    margin:0;
    padding:0 13px;
    border-radius:11px;
    flex-direction:row;
    gap:7px;
    font-size:10.5px;
    box-shadow:0 8px 18px rgba(92,52,34,.20),inset 0 1px 0 rgba(255,255,255,.16);
  }
  .aff-login-form .aff-primary::after{
    width:20px;
    height:20px;
    font-size:12px;
  }
  .aff-login-form .aff-primary:hover:not(:disabled){
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(92,52,34,.24),inset 0 1px 0 rgba(255,255,255,.18);
  }
  .aff-login-panel #affiliateLoginResult{
    grid-column:2;
    margin:0;
  }
}
@media(min-width:861px) and (max-width:1050px){
  .aff-login-panel.active{
    grid-template-columns:205px minmax(0,1fr);
    gap:18px;
    padding:24px;
  }
  .aff-login-form{
    grid-template-columns:minmax(0,1.15fr) minmax(135px,.7fr) 110px;
  }
  .aff-login-form .aff-primary{
    width:110px;
    min-width:110px;
  }
}
