:root {
  --bg: #090909;
  --card: #111111;
  --row: #171717;
  --row2: #1d1d1d;
  --text: #f5f5f5;
  --muted: #aaa;
  --gold: #d8b35a;
  --border: rgba(255,255,255,.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(216,179,90,.12), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}

.page {
  width: 100%;
  min-height: 100vh;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.aff-card {
  width: 100%;
  max-width: 780px;
  background: rgba(17,17,17,.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  margin-top: 10px;
}

.top {
  padding: 4px 4px 10px;
  text-align: center;
  min-height: 55px;
}

.top h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.top p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.table {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 112px;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 5px;
  background: linear-gradient(180deg, var(--row), var(--row2));
  border: 1px solid var(--border);
  border-radius: 12px;
}

.logoBox {
  width: 140px;
  height: 46px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}

.logoBox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 2px;
  display: block;
}

.desc {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  min-width: 0;
  text-align: center;
  line-height: 1.12;
}

.descTop,
.descBottom {
  font-size: 13px;
  font-weight: 700;
  color: #e8e8e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.descBottom {
  margin-top: 3px;
}

.goBtn {
  width: 112px;
  height: 36px;
  border-radius: 9px;
  justify-self: end;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--gold);
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, opacity .15s ease;
}

.goBtn:hover {
  transform: translateY(-1px);
  opacity: .92;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 10px;
}

.loading {
  min-height: 620px;
}

.skeleton {
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(90deg, #151515, #222, #151515);
  background-size: 200% 100%;
  animation: pulse 1s infinite linear;
}

@keyframes pulse {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 520px) {
  .page {
    padding: 6px;
  }

  .aff-card {
    max-width: 100%;
    padding: 7px;
    border-radius: 14px;
  }

  .row {
    grid-template-columns: 102px minmax(0, 1fr) 80px;
    gap: 5px;
    min-height: 50px;
    padding: 4px;
  }

  .logoBox {
    width: 100%;
    height: 40px;
    border-radius: 8px;
  }

  .logoBox img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
  }

  .goBtn {
    width: 80px;
    height: 32px;
    border-radius: 8px;
    justify-self: end;
    font-size: 10px;
  }

  .descTop,
  .descBottom {
    font-size: 11px;
    font-weight: 700;
  }

  .descBottom {
    margin-top: 2px;
  }

  .top h1 {
    font-size: 16px;
  }

  .top p {
    font-size: 11px;
  }
}
