/* Gamjak Affiliate — portal marketer (dewasa, bukan tema kanak-kanak) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f4f6f8; color: #1e293b; min-height: 100vh;
}
.bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid #e2e8f0;
}
.logo { font-weight: 700; font-size: 1.1rem; }
.kad {
  max-width: 480px; margin: 40px auto; background: #fff; border-radius: 16px;
  padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
h1 { font-size: 1.4rem; margin-bottom: 8px; }
h2 { font-size: 1.1rem; margin: 24px 0 12px; }
.nota { color: #64748b; font-size: .95rem; margin-bottom: 20px; }
.tab-baris { display: flex; gap: 8px; margin-bottom: 16px; }
.tab {
  flex: 1; padding: 10px; border: 1px solid #e2e8f0; background: #f8fafc;
  border-radius: 8px; cursor: pointer; font-weight: 600; color: #64748b;
}
.tab.aktif { background: #4f46e5; color: #fff; border-color: #4f46e5; }
#borang-auth { display: flex; flex-direction: column; gap: 10px; }
input {
  padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 8px;
  font-size: 1rem; font-family: inherit; width: 100%;
}
.btn {
  padding: 12px 20px; border: none; border-radius: 8px; font-size: 1rem;
  font-weight: 600; cursor: pointer;
}
.btn-utama { background: #4f46e5; color: #fff; }
.btn-utama:active { background: #4338ca; }
.btn-kecil {
  padding: 6px 12px; border: 1px solid #e2e8f0; background: #fff;
  border-radius: 8px; cursor: pointer; font-size: .9rem;
}
.mesej { margin-top: 12px; font-size: .9rem; color: #dc2626; text-align: center; }
.mesej.ok { color: #16a34a; }

.kotak-rujukan { background: #eef2ff; border-radius: 12px; padding: 16px; margin: 16px 0; }
.kotak-rujukan .label { font-size: .85rem; color: #64748b; margin-bottom: 6px; }
.baris-salin { display: flex; gap: 8px; }
.baris-salin input { background: #fff; }

.statistik { display: flex; gap: 10px; margin: 20px 0; }
.stat {
  flex: 1; background: #f8fafc; border-radius: 10px; padding: 14px 8px;
  text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.stat .nombor { font-size: 1.3rem; font-weight: 700; }
.stat .label { font-size: .75rem; color: #64748b; }

.senarai-komisen { display: flex; flex-direction: column; gap: 8px; }
.baris-komisen {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: #f8fafc; border-radius: 8px; font-size: .9rem;
}
.status-pill {
  font-size: .75rem; padding: 3px 10px; border-radius: 12px; font-weight: 600;
}
.status-pill.earned { background: #fef3c7; color: #92400e; }
.status-pill.paid { background: #dcfce7; color: #166534; }
.kosong { color: #94a3b8; text-align: center; padding: 20px 0; font-size: .9rem; }
