/* Affiliate programı: tanıtım, kayıt/giriş ekleri, panel ve asistan */
.aff .form-message{padding:14px 16px;border-radius:12px;background:#eef6e6;border:1px solid #d6e8c6;margin:0 0 22px;font-size:14.5px;line-height:1.55}
.aff .form-message.is-error{background:#fff3f0;border-color:#efc4b9;color:#7a2e1f}
.aff .aff-resend{display:block;margin:-10px 0 18px}
.aff [data-resend]{display:block;margin:14px auto 0}
.aff-forgot{text-align:right;margin:-2px 0 16px;font-size:13px}
.aff-forgot a{text-decoration:underline;text-underline-offset:3px}
.pw-toggle{border:0;background:transparent;width:46px;align-self:stretch;display:grid;place-items:center;color:#7d8a74;cursor:pointer}
.pw-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}
.pw-toggle.is-on{color:var(--ink)}
.aff-aside-link{margin-top:auto;color:var(--green);gap:12px}
.portal-toast.is-ok{background:#16261d;color:#eef6e6}
.portal-toast.is-ok .toast-icon{background:#5f8048}

/* Tanıtım */
.aff-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);gap:40px;align-items:center;padding:26px 0 36px}
.aff-hero h1{font-size:clamp(44px,5.4vw,78px);letter-spacing:-3px;line-height:1.03;margin:18px 0}
.aff-lead{font-size:17px;line-height:1.7;color:#4f5d49;max-width:640px}
.aff-lead b{color:var(--ink)}
.aff-actions{display:flex;flex-wrap:wrap;gap:12px;margin:26px 0 10px}
.aff-stats{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.aff-stats li{background:#101917;color:#eef0e6;border-radius:16px;padding:20px 22px;display:flex;flex-direction:column;gap:4px}
.aff-stats li:nth-child(2){background:#e6ecd9;color:var(--ink)}
.aff-stats li:nth-child(3){background:#fffef8;color:var(--ink);border:1px solid var(--line)}
.aff-stats strong{font-size:38px;letter-spacing:-1.5px;font-weight:600;line-height:1}
.aff-stats li:first-child strong{color:var(--green)}
.aff-stats span{font-size:13px;opacity:.85}
.aff-section{padding:46px 0;border-top:1px solid var(--line)}
.aff-section h2{margin-top:0}
.aff-how{list-style:none;padding:0;margin:20px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.aff-how li{background:#fffef8;border:1px solid var(--line);border-radius:16px;padding:24px}
.aff-how h3{margin:14px 0 8px}
.aff-how p,.aff-why p{font-size:14px;color:var(--muted);margin:0}
.aff-num{width:34px;height:34px;border-radius:50%;background:var(--ink);color:var(--green);display:grid;place-items:center;font-weight:700}
.aff-two{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:start}
.aff-why{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:20px 24px}
.aff-why h3{font-size:17px;margin:0 0 6px}
.aff-calc label{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin:18px 0 8px}
.aff-calc output{font-variant-numeric:tabular-nums}
.aff-calc input[type=range]{width:100%;accent-color:#5f8048}
.aff-calc-out{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0 6px}
.aff-calc-out div{background:#101917;color:#eef0e6;border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:6px}
.aff-calc-out div:last-child{background:#e6ecd9;color:var(--ink)}
.aff-calc-out span{font-size:12px;opacity:.85}
.aff-calc-out strong{font-size:26px;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.aff-calc-out div:first-child strong{color:var(--green)}
.aff-faq details{border-bottom:1px solid var(--line);padding:16px 0}
.aff-faq summary{cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:14px;font-size:15px;font-weight:550}
.aff-faq summary::-webkit-details-marker{display:none}
.aff-faq summary span{font-size:20px;transition:transform .2s}
.aff-faq details[open] summary span{transform:rotate(45deg)}
.aff-faq p{font-size:14px;color:var(--muted);margin:10px 0 0}
.aff-terms{font-size:14px;color:#4f5d49;line-height:1.7;max-width:900px;padding-left:20px}
.aff-terms li{margin-bottom:8px}
.aff-bottom{margin:30px 0 10px}

/* Asistan */
.aff-chat{display:flex;flex-direction:column;gap:10px}
.aff-chat-list{display:flex;flex-direction:column;gap:10px;max-height:380px;min-height:160px;overflow-y:auto;padding:4px 2px}
.aff-msg{max-width:86%;padding:11px 14px;border-radius:14px;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.aff-msg.assistant{background:#f1f2e9;border-top-left-radius:4px;align-self:flex-start}
.aff-msg.user{background:var(--ink);color:#f5f5ed;border-top-right-radius:4px;align-self:flex-end}
.aff-msg.typing{color:var(--muted);font-style:italic}
.aff-msg.error{background:#fff3f0;color:#7a2e1f}
.aff-msg a{text-decoration:underline;text-underline-offset:3px;font-weight:600}
.aff-chat-suggest{display:flex;flex-wrap:wrap;gap:8px}
.aff-chip{border:1px solid #c9d2be;background:#fff;border-radius:999px;padding:7px 13px;font-size:12.5px;color:var(--ink);cursor:pointer;text-decoration:none}
.aff-chip:hover{border-color:var(--ink)}
.aff-chat-form{display:flex;gap:8px;align-items:flex-end}
.aff-chat-form textarea{flex:1;resize:none;min-height:50px;max-height:140px;padding:13px 14px;border:1px solid #c9d2be;border-radius:12px;background:#fff;color:var(--ink);font:inherit;font-size:14.5px;line-height:1.4;outline:none}
.aff-chat-form textarea:focus{border-color:#5f8048;box-shadow:0 0 0 4px rgba(112,148,88,.18)}
.aff-chat-form .button{min-height:50px;gap:10px}
.aff-chat-form .button[disabled]{opacity:.6;transform:none}
.aff-chat-note{margin:0;font-size:11.5px}
.aff-chat-fab{position:fixed;right:20px;bottom:20px;z-index:50;border:0;border-radius:999px;background:var(--ink);color:#f5f5ed;padding:14px 18px;font-size:14px;font-weight:600;box-shadow:0 14px 34px -12px rgba(16,25,23,.55);display:flex;gap:8px;align-items:center}
.aff-chat-pop{position:fixed;right:20px;bottom:84px;z-index:50;width:min(400px,calc(100% - 32px));background:#fffef8;border:1px solid var(--line);border-radius:18px;padding:16px;box-shadow:0 24px 60px -20px rgba(16,25,23,.45)}
.aff-chat-pop-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.aff-chat-pop-head button{border:0;background:none;font-size:24px;line-height:1;color:var(--ink)}
.aff-chat-pop .aff-chat-list{max-height:min(380px,50vh)}

/* Panel */
.aff-dash-head{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:18px}
.aff-dash-head h1{font-size:clamp(32px,3.6vw,48px);letter-spacing:-1.8px;margin:12px 0 0}
.aff-tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-bottom:20px;overflow-x:auto}
.aff-tabs button{border:0;background:transparent;padding:12px 16px;font-size:14px;font-weight:600;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
.aff-tabs button[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}
.aff-dash [data-panel]{display:grid;gap:18px}
.aff-dash [data-panel][hidden]{display:none}
.aff-share{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px}
.aff-share .aff-seg,.aff-share .aff-share-btns{grid-column:1/-1}
.aff-seg{display:inline-flex;justify-self:start;border:1px solid var(--line);border-radius:10px;padding:3px;background:#fff}
.aff-seg button{border:0;background:transparent;border-radius:7px;padding:6px 12px;font-size:12.5px;font-weight:600;color:var(--muted)}
.aff-seg button[aria-pressed=true]{background:var(--ink);color:#fff}
.aff-copy-label{display:block;font-size:11px;letter-spacing:1.2px;text-transform:uppercase;font-weight:700;color:#7c8576;margin-bottom:8px}
.aff-copy-row{display:flex;gap:8px}
.aff-copy-row input{flex:1;min-width:0;height:50px;border:1px solid #c9d2be;border-radius:10px;padding:0 14px;background:#fff;color:var(--ink);font-size:14.5px}
.aff-copy.is-code input{font-size:22px;letter-spacing:5px;font-weight:700;font-variant-numeric:tabular-nums}
.aff-copy-row .button{min-height:50px;gap:10px;flex-shrink:0}
.aff-share-btns{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.aff-share-btns .aff-copy-label{margin:0 6px 0 0}
.aff-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.aff-kpi{background:#fffef8;border:1px solid var(--line);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:6px;min-width:0}
.aff-kpi-label{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:var(--muted);font-weight:700}
.aff-kpi strong{font-size:24px;letter-spacing:-.8px;font-variant-numeric:tabular-nums}
.aff-kpi-sub{font-size:12.5px;color:var(--muted)}
.aff-kpi.accent{background:#101917;border-color:#101917;color:#eef0e6}
.aff-kpi.accent strong{color:var(--green)}
.aff-kpi.accent .aff-kpi-label{color:#9fab9a}
.aff-chart h2{margin-bottom:12px}
.aff-bars{display:flex;align-items:flex-end;gap:8px;height:190px;padding-top:18px}
.aff-bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:6px;height:100%;min-width:0}
.aff-bar span{width:100%;max-width:44px;background:linear-gradient(#5f8048,#223b2e);border-radius:8px 8px 3px 3px}
.aff-bar em{font-style:normal;font-size:10.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.aff-bar small{font-size:11px;color:var(--muted)}
.aff-table-wrap{overflow-x:auto}
.aff-table{width:100%;border-collapse:collapse;font-size:14px}
.aff-table th{text-align:left;font-size:11px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
.aff-table td{padding:12px;border-bottom:1px solid #ecede4;vertical-align:top}
.aff-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.aff-status{display:inline-block;border-radius:999px;padding:3px 10px;font-size:12px;font-weight:650;background:#ecece2;color:#5b6456;white-space:nowrap}
.aff-status.ok{background:#e3f1d6;color:#355d24}
.aff-status.bad{background:#fbe3e1;color:#a2321f}
.aff-status.busy{background:#fff1cf;color:#6b4d00}
.aff-payout{display:flex;justify-content:space-between;align-items:center;gap:20px}
.aff-big{display:block;font-size:36px;letter-spacing:-1.2px;margin:6px 0 2px;font-variant-numeric:tabular-nums}
.aff-payout .button[disabled]{opacity:.5;transform:none;cursor:not-allowed}
.aff-account .submit{width:auto;min-width:200px}

@media(max-width:1000px){
  .aff-hero,.aff-two{grid-template-columns:1fr}
  .aff-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .aff-how,.aff-why{grid-template-columns:1fr}
  .aff-share{grid-template-columns:1fr}
  .aff-payout{flex-direction:column;align-items:stretch}
  .aff-dash-head{flex-direction:column;align-items:flex-start}
  .aff-table thead{display:none}
  .aff-table tr{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;padding:12px 0;border-bottom:1px solid #ecede4}
  .aff-table td{border:0;padding:0}
  .aff-table td::before{content:attr(data-label);display:block;font-size:10.5px;letter-spacing:.8px;text-transform:uppercase;color:var(--muted);margin-bottom:2px}
  .aff-table .num{text-align:left}
  .aff-calc-out{grid-template-columns:1fr}
  .aff-chat-fab span{display:none}
}
@media(max-width:480px){
  .aff-kpis{grid-template-columns:1fr 1fr}
  .aff-kpi strong{font-size:20px}
  .aff-copy-row{flex-direction:column}
  .aff-hero h1{font-size:46px;letter-spacing:-2px}
}
.aff .auth-head{margin-bottom:26px}
@media(max-width:480px){.aff-copy-row input{flex:none;width:100%}}
.aff-code-edit{margin-top:6px}
.aff-code-edit .link-button{padding:4px 0}
.aff-code-form{margin-top:8px}
.aff-code-form .field{margin-bottom:0}
.aff-code-actions{display:flex;align-items:center;gap:16px;margin-top:10px}
.aff-code-actions .submit{width:auto;min-width:140px;min-height:46px}
.aff-copy.is-code input{letter-spacing:2px}
.aff-code-form input{font-size:15px!important;letter-spacing:normal!important;font-weight:500!important}
.aff-terms-link{text-decoration:underline;text-underline-offset:3px}
