:root {
  --orbit-bg-gradient: linear-gradient(135deg, #06231c 0%, #0d3b2d 45%, #0b2f26 100%);
  --orbit-card-bg: rgba(255, 255, 255, 0.92);
  --orbit-card-border: rgba(255, 255, 255, 0.4);
  --orbit-text-primary: #093428;
  --orbit-text-muted: #51726b;
  --orbit-accent: #268d5d;
  --orbit-danger: #ff4d6d;
  --orbit-success: #23c46d;
}

* {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  min-height: 100vh;
  background: var(--orbit-bg-gradient);
  color: var(--orbit-text-primary);
  background-attachment: fixed;
}

main {
  position: relative;
  z-index: 1;
}

.navbar {
  border-radius: 14px;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(12, 27, 49, 0.12);
}

.navbar .navbar-brand {
  font-weight: 600;
  color: var(--orbit-text-primary);
}

.navbar .btn-outline-primary {
  border-color: var(--orbit-accent);
  color: var(--orbit-accent);
}

.navbar .btn-outline-primary:hover {
  background-color: var(--orbit-accent);
  color: white;
}

.dashboard-container {
  padding-bottom: 4rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: white;
}

.stat-card {
  border-radius: 18px;
  border: 1px solid var(--orbit-card-border);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(24px);
  color: white;
  padding: 1.75rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-card .stat-value {
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.stat-card .stat-label {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.75);
}

.card.orbit-card {
  border-radius: 20px;
  border: none;
  background: var(--orbit-card-bg);
  box-shadow: 0 20px 40px rgba(12, 27, 49, 0.15);
}

.card.orbit-card .card-header {
  background: transparent;
  border-bottom: 1px solid rgba(12, 27, 49, 0.05);
  font-weight: 600;
  font-size: 1.05rem;
}

.badge-status {
  font-size: 0.85rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 500;
}

.list-group.orbit-list .list-group-item {
  border: none;
  border-bottom: 1px solid rgba(12, 27, 49, 0.05);
  padding: 1rem 0;
  padding-right: 1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-group.orbit-list .list-group-item:last-child {
  border-bottom: none;
}

.list-group.orbit-list .match-meta {
  font-size: 0.9rem;
  color: var(--orbit-text-muted);
}

.match-list-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.match-list-scroll {
  max-height: 32em;
  overflow-y: auto;
  padding-right: 0.25rem;
  scrollbar-width: thin;
}

.match-list-scroll::-webkit-scrollbar {
  width: 6px;
}

.match-list-scroll::-webkit-scrollbar-track {
  background: rgba(12, 27, 49, 0.08);
  border-radius: 999px;
}

.match-list-scroll::-webkit-scrollbar-thumb {
  background: rgba(48, 104, 255, 0.45);
  border-radius: 999px;
}

.match-content {
  width: 100%;
}

.match-number {
  font-weight: 700;
  color: var(--orbit-text-primary);
  flex: 0 0 auto;
  min-width: 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 0.35rem;
}

.match-identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 500;
  color: var(--orbit-accent);
}

.match-id strong {
  font-weight: 600;
}

.match-meta-list {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--orbit-text-muted);
}

.match-meta-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  line-height: 1.35;
}

.match-meta-label {
  font-weight: 600;
  color: var(--orbit-text-primary);
}

.match-meta-value {
  color: var(--orbit-text-muted);
}

.toast-container {
  filter: drop-shadow(0 18px 35px rgba(12, 27, 49, 0.25));
}

.toast .toast-header {
  background: rgba(12, 27, 49, 0.05);
}

.form-floating > label {
  color: var(--orbit-text-muted);
}

.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid rgba(12, 27, 49, 0.12);
  padding: 0.75rem 1rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--orbit-accent);
  box-shadow: 0 0 0 0.2rem rgba(48, 104, 255, 0.15);
}

.btn-primary {
  background: var(--orbit-accent);
  border-color: var(--orbit-accent);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  font-weight: 600;
}

.auth-card .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background: #249662;
  border-color: #249662;
}

.btn-outline-light {
  border-radius: 999px;
}

.import-label {
  font-size: 0.85rem;
  color: var(--orbit-text-muted);
}

.footer {
  color: rgba(255, 255, 255, 0.7);
}

.auth-page {
  min-height: 100vh;
  background: var(--orbit-bg-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  border-radius: 24px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 60px rgba(12, 27, 49, 0.25);
  margin: 0 auto;
}

.auth-card .card-body {
  padding: 3rem 2.75rem;
}

.auth-logo {
  width: 160px;
}

@media (max-width: 992px) {
  .navbar {
    margin-top: 1.5rem;
  }

  .stat-card {
    margin-bottom: 1rem;
  }

  .auth-card .card-body {
    padding: 2.5rem 2rem;
  }
}
