.affiliate-admin-overlay {
  position: fixed;
  inset: var(--affiliate-top, 119px) 0 0;
  z-index: 9000;
  background: #211a18;
  color: #eee2dc;
  display: block;
}
.affiliate-admin-overlay[hidden] {
  display: none;
}
.affiliate-admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #2b211e;
}
.affiliate-admin-head small {
  display: block;
  color: #c58473;
  font-weight: 850;
  letter-spacing: 0.1em;
}
.affiliate-admin-head h1 {
  font-size: 24px;
  margin: 4px 0 0;
}
.affiliate-admin-body {
  overflow: auto;
  box-sizing: border-box;
  height: 100%;
  padding: 22px;
}
.affiliate-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.affiliate-summary article,
.affiliate-panel {
  background: #2c211e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 17px;
}
.affiliate-summary span {
  display: block;
  color: #a89086;
  font-size: 11px;
  font-weight: 800;
}
.affiliate-summary b {
  display: block;
  font-size: 22px;
  margin-top: 7px;
}
.affiliate-create {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 1fr 0.6fr auto;
  gap: 9px;
  margin-bottom: 18px;
}
.affiliate-create input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1f1816;
  color: #fff;
  border-radius: 11px;
  padding: 12px;
}
.affiliate-create button,
.affiliate-action {
  border: 0;
  border-radius: 11px;
  background: #a66354;
  color: white;
  font-weight: 800;
  padding: 11px 14px;
  cursor: pointer;
}
.affiliate-table {
  width: 100%;
  border-collapse: collapse;
}
.affiliate-table th {
  text-align: left;
  color: #a89086;
  font-size: 10px;
  letter-spacing: 0.08em;
  padding: 9px;
}
.affiliate-table td {
  padding: 13px 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
}
.affiliate-table strong {
  display: block;
}
.affiliate-table small {
  color: #9e887f;
}
.affiliate-pill {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #40302b;
  font-size: 11px;
}
.affiliate-pill.active {
  background: #274536;
  color: #a9e0bd;
}
.affiliate-rate {
  width: 70px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1f1816;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
}
.affiliate-empty {
  text-align: center;
  color: #a89086;
  padding: 35px;
}
.affiliate-empty.compact {
  padding: 24px;
}
.payout-panel {
  margin-bottom: 18px;
}
.payout-head,
.payout-actions,
.history-export {
  display: flex;
  align-items: center;
  gap: 10px;
}
.payout-head {
  justify-content: space-between;
  margin-bottom: 14px;
}
.payout-head .eyebrow {
  color: #c58473;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .11em;
}
.payout-head h2 {
  margin: 4px 0 2px;
  font-size: 20px;
}
.payout-head p {
  margin: 0;
  color: #9e887f;
  font-size: 12px;
}
.affiliate-action.secondary {
  background: #44322d;
  color: #eadbd5;
  border: 1px solid rgba(255,255,255,.1);
}
.affiliate-action:disabled {
  cursor: not-allowed;
  opacity: .45;
}
.payout-table {
  margin-top: 6px;
}
.payout-table input[type="checkbox"] {
  accent-color: #a66354;
  width: 16px;
  height: 16px;
}
.ready-label,
.blocked-label {
  display: inline-block;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}
.ready-label {
  color: #a9e0bd;
  background: #274536;
}
.blocked-label {
  color: #efb4a5;
  background: #4a2c28;
}
.history-export {
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.history-export label {
  color: #a89086;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .07em;
}
.history-export input {
  display: block;
  margin-top: 4px;
  border: 1px solid rgba(255,255,255,.12);
  background: #1f1816;
  color: #fff;
  border-radius: 8px;
  padding: 8px;
}
.affiliate-admin-nav {
  position: relative;
}
.affiliate-admin-nav.active {
  background: #9f5f53;
  color: #fff;
}
.affiliate-admin-nav::after {
  content: "YENİ";
  font-size: 8px;
  color: #f2b3a3;
  margin-left: 5px;
}
@media (max-width: 900px) {
  .affiliate-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .affiliate-create {
    grid-template-columns: 1fr;
  }
  .affiliate-panel {
    overflow: auto;
  }
  .payout-head,
  .history-export {
    align-items: stretch;
    flex-direction: column;
  }
  .payout-actions {
    flex-wrap: wrap;
  }
  .affiliate-table {
    min-width: 850px;
  }
}
