:root {
  --bg: #070815;
  --bg-elevated: #101325;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-xl: 16px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Layout */

.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards */

.card {
  background: linear-gradient(145deg, #020617 0, #030712 40%, #020617 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.card-body {
  padding: 16px 18px 18px;
}

/* Form elements */

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, #111827, #020617);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  appearance: none;
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Client meta */

.client-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-meta span {
  white-space: nowrap;
}

/* Table */

.table-wrapper {
  max-height: 420px;
  overflow: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.results-table thead {
  position: sticky;
  top: 0;
  background: #020617;
  z-index: 1;
}

.results-table th,
.results-table td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
}

.results-table th {
  font-weight: 500;
  color: var(--text-soft);
}

.results-table tr:hover td {
  background: rgba(15, 23, 42, 0.75);
}

.number-pos {
  color: var(--success);
}

.number-neg {
  color: var(--danger);
}

/* Footer */

.footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}

:root {
  --bg: #070815;
  --bg-elevated: #101325;
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.12);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-soft: #6b7280;
  --danger: #ef4444;
  --success: #22c55e;
  --radius-xl: 16px;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
  color: var(--text-main);
}

.page {
  min-height: 100vh;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header */

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Layout */

.main {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards */

.card {
  background: linear-gradient(145deg, #020617 0, #030712 40%, #020617 100%);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.card-body {
  padding: 16px 18px 18px;
}

/* Form elements */

.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 0 0, #111827, #020617);
  color: var(--text-main);
  font-size: 0.92rem;
  outline: none;
  appearance: none;
}

.select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

/* Client meta */

.client-meta {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px dashed var(--border-subtle);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-meta span {
  white-space: nowrap;
}

/* Table */

.table-wrapper {
  max-height: 420px;
  overflow: auto;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.results-table thead {
  position: sticky;
  top: 0;
  background: #020617;
  z-index: 1;
}

.results-table th,
.results-table td {
  padding: 7px 8px;
  text-align: right;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.results-table th:first-child,
.results-table td:first-child {
  text-align: left;
}

.results-table th {
  font-weight: 500;
  color: var(--text-soft);
}

.results-table tr:hover td {
  background: rgba(15, 23, 42, 0.75);
}

.number-pos {
  color: var(--success);
}

.number-neg {
  color: var(--danger);
}

/* Footer */

.footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.8rem;
  color: var(--text-soft);
  border-top: 1px solid rgba(15, 23, 42, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
}

.login-logo img {
  width: 360px !important;
  height: auto !important;
  max-width: 360px !important;
}

.login-logo {
  text-align: center !important;
  width: 100%;
}

.login-logo img {
  display: inline-block !important;
  margin: 0 auto !important;
}
