/* ==========================================================================
   ninja-bet SPA Styles — Single Page Architecture
   ========================================================================== */

/* Main Container */
.spa-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Hero Header */
.spa-hero {
  margin-bottom: 24px;
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(18, 26, 41, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.spa-hero-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 6px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.spa-hero-subtitle {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  max-width: 760px;
  line-height: 1.5;
}

.spa-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sticky Flow Step Navigator */
.spa-step-nav {
  position: sticky;
  top: 65px;
  z-index: 900;
  background: rgba(10, 14, 23, 0.94);
  backdrop-filter: blur(14px);
  padding: 10px 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.spa-step-nav::-webkit-scrollbar { display: none; }

.spa-step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.spa-step-pill:hover {
  background: var(--card-elevated);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.spa-step-pill.active {
  background: rgba(228, 0, 43, 0.15);
  border-color: var(--red);
  color: #ffffff;
  box-shadow: 0 0 12px var(--red-glow);
}

.spa-step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 800;
}
.spa-step-pill.active .spa-step-num {
  background: var(--red);
  color: #ffffff;
}

/* Section Wrapper */
.spa-section {
  margin-bottom: 44px;
  scroll-margin-top: 130px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-step-tag {
  background: rgba(228, 0, 43, 0.15);
  color: #ff4d6d;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(228, 0, 43, 0.3);
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

/* Two Column Grid */
.spa-grid-2 {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 1080px) {
  .spa-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Presets Bar */
.presets-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  align-items: center;
}

.preset-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.preset-chip {
  padding: 5px 12px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.preset-chip:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: #1e2c44;
}

.preset-chip.preset-pass {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  color: #34d399;
}
.preset-chip.preset-pass:hover {
  background: rgba(16, 185, 129, 0.18);
}

.preset-chip.preset-fail {
  border-color: rgba(228, 0, 43, 0.3);
  background: rgba(228, 0, 43, 0.08);
  color: #ff6b81;
}
.preset-chip.preset-fail:hover {
  background: rgba(228, 0, 43, 0.18);
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.field-group {
  margin-bottom: 12px;
}

.field-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-group input, .field-group select {
  width: 100%;
  padding: 10px 12px;
  background: var(--card-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s ease;
}

.field-group input:focus, .field-group select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 2px var(--red-glow);
}

/* Registry Profile Card */
.registry-result-card {
  margin-top: 16px;
  padding: 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 10px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.registry-avatar {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  background: #172236;
  border: 2px solid rgba(16, 185, 129, 0.4);
  object-fit: cover;
  flex-shrink: 0;
}

.registry-meta {
  flex: 1;
}

.registry-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.registry-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.registry-details {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.registry-details strong {
  color: #fff;
}

/* Sportsbook Specific */
.sb-fixtures-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sb-match-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all 0.15s ease;
}

.sb-match-item:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--card-elevated);
}

.sb-match-item.match-selected {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.match-league-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted-dark);
  letter-spacing: 0.06em;
}

.match-teams-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 2px 0 0 0;
}

.btn-odd-select {
  min-width: 64px;
  padding: 8px 10px;
  background: var(--card-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.btn-odd-select:hover {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-odd-select.odd-active {
  background: var(--green);
  color: #000;
  border-color: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

.odd-label {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.btn-odd-select.odd-active .odd-label {
  color: rgba(0, 0, 0, 0.6);
}

/* Betslip Panel */
.betslip-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #131d2e 0%, #0f172a 100%);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.betslip-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.betslip-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.betslip-selection-box {
  padding: 12px;
  background: var(--card-input);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 14px;
}

.betslip-match-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.betslip-pick-name {
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  margin-top: 2px;
}

.betslip-stake-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.stake-chip {
  padding: 4px 10px;
  background: var(--card-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.stake-chip:hover {
  background: #1e2d44;
  border-color: rgba(255, 255, 255, 0.3);
}

.betslip-payout-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  margin-bottom: 16px;
}

.betslip-payout-val {
  font-size: 18px;
  font-weight: 900;
  color: #fbbf24;
}

.btn-win-simulator {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 900;
  font-size: 13.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
  transition: all 0.18s ease;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-win-simulator:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* Wallet Pill Strip */
.wallet-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.wallet-tile {
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.wallet-tile-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}
.wallet-tile-val {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 3px;
}
.wallet-tile-val.winnings-highlight {
  color: #34d399;
}

/* Payout Verdict Box */
.payout-verdict-card {
  padding: 16px;
  border-radius: 10px;
  margin-top: 14px;
}
.verdict-approved {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.verdict-blocked {
  background: rgba(228, 0, 43, 0.08);
  border: 1px solid rgba(228, 0, 43, 0.3);
}

.verdict-title {
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.verdict-approved .verdict-title { color: #34d399; }
.verdict-blocked .verdict-title { color: #ff6b81; }

.verdict-reason {
  font-size: 13px;
  line-height: 1.5;
  color: #f1f5f9;
  margin: 0;
}

/* CAC Results Box */
.cac-result-box {
  margin-top: 14px;
  padding: 16px;
  background: var(--card-input);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cac-company-name {
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px 0;
}

.cac-meta-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 12px;
}
.cac-meta-strip strong { color: #fff; }

.cac-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}
.cac-table th {
  text-align: left;
  padding: 6px 8px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  font-weight: 800;
}
.cac-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
}

/* Telemetry & Logs */
.inspector-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}

.inspector-table th {
  text-align: left;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}

.inspector-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.status-badge-http {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  font-family: var(--font-mono);
}
.status-badge-http.s-200 { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-badge-http.s-400 { background: rgba(228, 0, 43, 0.15); color: #ff6b81; }
.status-badge-http.s-403 { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

/* Feedback card */
.feedback-card {
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 26, 41, 0.7);
}
.feedback-title {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.feedback-text {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 12px;
  line-height: 1.45;
}
.feedback-link {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  text-decoration: none;
}
.feedback-link:hover {
  background: rgba(16, 185, 129, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .spa-container { padding: 16px 12px 60px; }
  .spa-hero { padding: 18px 16px; }
  .sb-match-item { grid-template-columns: 1fr; }
}
