*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #0A0A0A;
  color: #FFFFFF;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
}

a { color: #C9A84C; text-decoration: none; }
a:hover { color: #E8C96A; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #2A2A2A;
  margin-bottom: 32px;
}

.topbar .brand {
  font-size: 11px;
  letter-spacing: 3px;
  color: #C9A84C;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar-actions .user-identity {
  font-size: 12px;
  color: #9A9A9A;
}

.page { max-width: 960px; margin: 0 auto; padding: 32px 24px 80px; }

.card {
  background: #161616;
  border: 1px solid #2A2A2A;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #C9A84C; }

.agent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.agent-card { cursor: pointer; }

.badge-num {
  width: 36px; height: 36px;
  background: #C9A84C;
  color: #1a1300;
  font-weight: 700;
  font-size: 16px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.agent-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.agent-desc  { font-size: 13px; color: #9A9A9A; margin-bottom: 18px; }

.btn-gold {
  background: #C9A84C;
  color: #1a1300;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-block;
  transition: background 0.15s;
}
.btn-gold:hover   { background: #E8C96A; }
.btn-gold:disabled { background: #444; color: #888; cursor: not-allowed; }

.upload-zone {
  border: 1.5px dashed #444;
  border-radius: 10px;
  padding: 40px 24px;
  text-align: center;
  background: #111;
  color: #9A9A9A;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 14px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: #C9A84C;
  background: #1a1200;
  color: #C9A84C;
}

.gold-label {
  color: #C9A84C;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.badge-success {
  background: #122318;
  border: 1px solid #1F4A2E;
  color: #6FCF8E;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-error {
  background: #2A1212;
  color: #E07A7A;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  margin-bottom: 12px;
}

.missing-list { list-style: none; margin-bottom: 16px; }
.missing-list li { color: #E07A7A; font-size: 13px; padding: 4px 0; }
.missing-list li::before { content: "✗ "; }

.fields-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.fields-table th {
  text-align: left;
  color: #C9A84C;
  font-weight: 700;
  padding: 8px 10px;
  border-bottom: 1px solid #2A2A2A;
}
.fields-table td { padding: 8px 10px; border-bottom: 1px solid #1C1C1C; color: #C4C4C4; }
.fields-table tr:last-child td { border-bottom: none; }

.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid #2A2A2A;
  border-top-color: #C9A84C;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 24px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none; }

/* Login page */
.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.login-card { width: 100%; max-width: 380px; }
.login-title { font-size: 11px; letter-spacing: 3px; color: #C9A84C; font-weight: 700; margin-bottom: 8px; text-transform: uppercase; }
.login-subtitle { font-size: 22px; font-weight: 700; margin-bottom: 28px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; color: #9A9A9A; margin-bottom: 6px; letter-spacing: 1px; text-transform: uppercase; }
.form-group input {
  width: 100%;
  background: #161616;
  border: 1px solid #2A2A2A;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus { border-color: #C9A84C; }
.error-msg { color: #E07A7A; font-size: 13px; margin-bottom: 12px; min-height: 18px; }

/* Stub page */
.coming-soon {
  background: #161616;
  border: 1px dashed #2A2A2A;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: #9A9A9A;
  margin-top: 24px;
}
