:root {
  --bg-primary: #0e131b;
  --bg-secondary: #141c26;
  --bg-card: #1c2635;
  --bg-hover: #263345;
  --text-main: #ffffff;
  --text-muted: #8b9eb5;
  --accent-green: #00c06d;
  --accent-green-hover: #00a85f;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;
  --border-color: #243042;
  --betslip-width: 320px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  height: 64px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none;
}

.logo span {
  color: var(--accent-green);
}

.nav-links {
  display: flex;
  gap: 16px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background-color: var(--bg-card);
}

.auth-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-green);
  color: #000;
}

.btn-primary:hover {
  background-color: var(--accent-green-hover);
}

.btn-secondary {
  background-color: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: var(--bg-hover);
}

/* Main Layout */
.app-layout {
  display: flex;
  flex: 1;
}

/* Sidebar */
aside.sidebar {
  width: 240px;
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.sport-item:hover, .sport-item.active {
  background-color: var(--bg-card);
  color: #fff;
}

.sport-item .badge {
  background-color: var(--bg-primary);
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 10px;
  color: var(--text-muted);
}

/* Content Area */
main.content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  max-width: 1100px;
}

.banner {
  background: linear-gradient(135deg, #103426 0%, #0e1e2d 100%);
  border: 1px solid #1a4f3b;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Fixture Cards */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fixtures-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fixture-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.fixture-card:hover {
  border-color: #3b4e6b;
}

.fixture-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  flex: 1;
}

.fixture-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.badge-live {
  background-color: #ef4444;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}

.badge-promo {
  background-color: #059669;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.teams {
  font-size: 1rem;
  font-weight: 700;
}

.odds-row {
  display: flex;
  gap: 8px;
}

.odd-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
  cursor: pointer;
  color: #fff;
  transition: all 0.15s;
}

.odd-btn:hover {
  background-color: var(--bg-hover);
  border-color: var(--accent-green);
}

.odd-btn.selected {
  background-color: var(--accent-green);
  color: #000;
  border-color: var(--accent-green);
  font-weight: 700;
}

.odd-btn span:first-child {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.odd-btn.selected span:first-child {
  color: #000;
}

.odd-val {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Betslip Panel */
aside.betslip {
  width: var(--betslip-width);
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.betslip-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.betslip-items {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.betslip-item {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 12px;
  position: relative;
}

.betslip-item .remove-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.betslip-summary {
  background-color: var(--bg-card);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-green);
}

.stake-input {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 1rem;
  text-align: right;
  font-weight: 700;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  padding: 24px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.input-group {
  margin-bottom: 14px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.input-control {
  width: 100%;
  padding: 10px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: #fff;
  font-size: 0.95rem;
}

/* Disclaimer Footer */
footer.disclaimer {
  background-color: #070a0f;
  border-top: 1px solid var(--border-color);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
