* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 28%),
    #07080d;
  color: #f4f4f5;
  font-family: Arial, Helvetica, sans-serif;
}

.hidden {
  display: none !important;
}

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: 100%;
  max-width: 520px;
  background: rgba(17, 19, 26, 0.92);
  border: 1px solid #2b2f3a;
  border-radius: 24px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.login-logo {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  font-weight: 900;
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -1px;
}

.login-card p {
  color: #a1a1aa;
  line-height: 1.5;
}

.login-form {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.login-form input {
  flex: 1;
}

.access-error {
  min-height: 22px;
  margin-top: 12px;
  color: #ff4d4d;
  font-weight: 700;
}

.login-note {
  margin-top: 22px;
  color: #71717a;
  font-size: 13px;
}

.app {
  padding: 28px;
  max-width: 1500px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1px;
}

p {
  color: #a1a1aa;
  margin: 6px 0 0;
}

.controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

input,
button {
  background: #11131a;
  color: #f4f4f5;
  border: 1px solid #2b2f3a;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
}

input {
  width: 130px;
}

button {
  cursor: pointer;
  font-weight: 800;
  background: #1b2230;
}

button:hover {
  background: #243044;
}

.secondary-btn {
  background: transparent;
  color: #a1a1aa;
}

.status-card {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  background: rgba(17, 19, 26, 0.88);
  border: 1px solid #2b2f3a;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.status-card div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-card span,
.summary-card span {
  color: #8b92a3;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-card strong {
  font-size: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.summary-card {
  background: rgba(17, 19, 26, 0.88);
  border: 1px solid #2b2f3a;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.summary-card strong {
  display: block;
  font-size: 24px;
  margin-top: 10px;
}

.summary-card p {
  line-height: 1.45;
}

.table-section {
  margin-bottom: 34px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
}

.table-wrap {
  overflow-x: auto;
  background: rgba(17, 19, 26, 0.90);
  border: 1px solid #2b2f3a;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1120px;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid #252936;
  text-align: right;
  font-size: 14px;
  white-space: nowrap;
}

th {
  color: #9ca3af;
  background: #151823;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td:first-child,
th:first-child,
td:nth-last-child(2),
th:nth-last-child(2),
td:last-child,
th:last-child {
  text-align: left;
}

tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
  font-size: 12px;
}

.good {
  color: #39e75f;
  font-weight: 900;
}

.warn {
  color: #facc15;
  font-weight: 900;
}

.bad {
  color: #ff4d4d;
  font-weight: 900;
}

.neutral {
  color: #e5e7eb;
}

.profile-balanced {
  background: rgba(34, 197, 94, 0.14);
  color: #39e75f;
}

.profile-aggressive {
  background: rgba(250, 204, 21, 0.14);
  color: #facc15;
}

.profile-avoid {
  background: rgba(239, 68, 68, 0.14);
  color: #ff4d4d;
}

.profile-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .controls,
  .login-form {
    flex-wrap: wrap;
  }

  .status-card,
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .status-card,
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .login-card {
    padding: 24px;
  }
}