:root {
  --bg: #0d2433;
  --panel: #132f42;
  --panel-2: #0f2a3c;
  --panel-3: #102738;
  --line: #24475d;
  --text: #d8e7f3;
  --muted: #8ba5b8;
  --accent: #1e90ff;
  --accent-2: #2f7bf8;
  --success: #1fd07a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  background: linear-gradient(180deg, #113044 0%, #0d2433 35%, #0d2433 100%);
  color: var(--text);
}

.site-shell {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  min-width: 0;
}

.sidebar {
  background: #0d2637;
  border-right: 1px solid #17364b;
  padding: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}

.search-box {
  display: flex;
  background: #0a1f2e;
  border: 1px solid #1f3f56;
  border-radius: 8px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

.search-box button {
  border: 0;
  background: #163449;
  color: var(--text);
  width: 40px;
}

.quick-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 14px;
}

.quick {
  border: 1px solid #21445d;
  background: #122e42;
  color: var(--text);
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
}

.quick.active { background: #19445f; }

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-item {
  color: #c2d8e8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(16, 43, 62, 0.6);
  font-weight: 600;
  font-size: 14px;
}

.menu-item i { margin-right: 8px; }
.menu-item:hover { border-color: #2a536f; background: #15344a; }

.main-panel {
  padding-bottom: 24px;
  min-width: 0;
}

.topbar {
  background: #15344a;
  border-bottom: 1px solid #24475d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 35;
}

.top-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  width: 40px;
  height: 40px;
  border: 1px solid #2b4e64;
  border-radius: 8px;
  color: #c8daea;
  background: #0f2a3c;
  display: none;
}

.logo {
  width: 112px;
  height: auto;
}

.auth-buttons {
  display: flex;
  gap: 8px;
}

.btn {
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  padding: 8px 14px;
}

.btn-login {
  color: #fff;
  background: #274154;
  border-color: #36566d;
}

.btn-register {
  color: #fff;
  background: #1f7dff;
  border-color: #4294ff;
}

.btn-login-alt {
  color: #cfe4f4;
  background: #1a3448;
  border-color: #355b75;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
  padding: 22px 18px;
  background: linear-gradient(180deg, #15364b 0%, #112f42 100%);
  border-bottom: 1px solid #21445a;
  min-width: 0;
}

.hero-copy h1 {
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.1;
  max-width: 620px;
  margin: 0;
}

.hero-copy p {
  color: #a9c1d3;
  margin: 14px 0;
  max-width: 620px;
}

.hero-actions { display: flex; gap: 10px; }

.social-proof {
  margin-top: 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.social-proof span { color: var(--muted); font-size: 14px; }

.social-btn {
  border-radius: 8px;
  border: 1px solid #345974;
  background: #1a3a50;
  color: #d7e9f6;
  font-size: 14px;
  padding: 8px 12px;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: center;
  min-width: 0;
}

.hero-card {
  background: #16364a;
  border: 1px solid #2e5671;
  border-radius: 10px;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 170px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  max-width: 100%;
}

.hero-card-meta {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.hero-card-meta strong { color: #bde9cc; }

.discover-wrap {
  padding: 16px 18px;
  min-width: 0;
}

.discover-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  background: #143247;
  border: 1px solid #23475d;
  border-radius: 10px;
  padding: 10px;
}

.toolbar-tag {
  border: 1px solid #2f5570;
  background: #16394f;
  color: #d2e8f8;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
}

.toolbar-tag.active { background: #1f4d68; }

.discover-toolbar input {
  width: 100%;
  background: #0f2738;
  border: 1px solid #2c506a;
  border-radius: 8px;
  color: #d0e2f0;
  padding: 8px 10px;
}

.discover-toolbar button:last-child {
  border: 1px solid #2c506a;
  background: #1a3f56;
  border-radius: 8px;
  color: #d0e2f0;
  width: 42px;
  height: 40px;
}

.content-block {
  margin-top: 16px;
  background: #133145;
  border: 1px solid #21445a;
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
  overflow: hidden;
}

.content-block h2 {
  font-size: 24px;
  margin: 4px 0 14px;
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.icon-card {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  min-width: 0;
}

.icon-card i {
  font-size: 42px;
  color: #fff;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.icon-card h3 {
  font-size: 16px;
  margin: 12px 0 6px;
  color: #fff;
}

.icon-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
}

.color-1 { background: linear-gradient(145deg, #1e8cff, #11b4ff); }
.color-2 { background: linear-gradient(145deg, #fe5a7b, #ff8a3d); }
.color-3 { background: linear-gradient(145deg, #ff7f11, #ffb703); }
.color-4 { background: linear-gradient(145deg, #8a4fff, #5f6dff); }
.color-5 { background: linear-gradient(145deg, #00b894, #00cec9); }
.color-6 { background: linear-gradient(145deg, #ff3c6f, #ff4d9b); }
.color-7 { background: linear-gradient(145deg, #2b59ff, #3fc1ff); }
.color-8 { background: linear-gradient(145deg, #11a870, #00c76f); }
.color-9 { background: linear-gradient(145deg, #ff9f1c, #ffcf3f); }
.color-10 { background: linear-gradient(145deg, #a545ff, #d96bff); }
.color-11 { background: linear-gradient(145deg, #ec4899, #fb7185); }
.color-12 { background: linear-gradient(145deg, #0ea5e9, #22d3ee); }

.bets-section {
  padding: 10px 18px;
}

.bets-tabs {
  display: inline-flex;
  border: 1px solid #23495f;
  border-radius: 999px;
  padding: 4px;
  background: #112b3d;
  gap: 4px;
  flex-wrap: wrap;
}

.tab-pill {
  border: 0;
  color: #cae1f1;
  background: transparent;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 14px;
}

.tab-pill.active {
  background: #36556d;
}

.table-shell {
  margin-top: 10px;
  border: 1px solid #24495e;
  border-radius: 10px;
  overflow: auto;
}

.bets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.bets-table th,
.bets-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #214256;
  font-size: 14px;
}

.bets-table th {
  background: #10293a;
  text-align: left;
}

.bets-table tbody tr { background: #133145; }
.bets-table tbody tr:hover { background: #1a3a51; }

.positive { color: var(--success); font-weight: 700; }
.negative { color: #df7d87; font-weight: 700; }

.faq-section { padding: 14px 18px; }
.faq-section h3 { margin-bottom: 12px; }

.accordion-item {
  background: #133145;
  border: 1px solid #23495f;
  color: #d2e7f6;
}

.accordion-button {
  background: #133145;
  color: #d2e7f6;
  font-weight: 700;
}

.accordion-button:not(.collapsed) {
  color: #fff;
  background: #183a50;
  box-shadow: none;
}

.accordion-button:focus { box-shadow: none; }

.accordion-body { color: #adc4d5; }

.global-footer {
  background: #0b2231;
  border-top: 1px solid #24455a;
  margin-top: 18px;
  padding: 18px 16px 20px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.footer-col {
  background: #123044;
  border: 1px solid #2d546f;
  border-radius: 10px;
  padding: 14px 12px;
}

.footer-logo {
  width: 110px;
  max-width: 100%;
  margin-bottom: 8px;
}

.footer-col h4 {
  color: #e3f2ff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-col p {
  color: #aac4d6;
  margin-bottom: 8px;
  font-size: 14px;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 20, 0.6);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1200px) {
  .icon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
  .site-shell { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: -265px;
    top: 0;
    width: 248px;
    transition: left 0.25s ease;
  }

  .sidebar.show { left: 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .hero-section {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .hero-cards {
    grid-template-columns: 1fr 1fr;
  }

  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .topbar {
    padding: 10px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .auth-buttons {
    margin-left: auto;
    display: flex;
    gap: 6px;
  }

  .auth-buttons .btn {
    padding: 8px 10px;
    font-size: 13px;
  }

  .logo { width: 90px; }

  .hero-copy h1 { font-size: 34px; }

  .hero-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .hero-card img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
    background: transparent;
    max-width: 100%;
  }

  .bets-tabs {
    padding: 10px 12px;
  }

  .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .discover-toolbar {
    grid-template-columns: 1fr;
  }

  .icon-card i { font-size: 36px; }
  .icon-card h3 { font-size: 15px; }
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
