:root {
  --bg: #07111f;
  --bg-soft: #0e1a2b;
  --panel: rgba(10, 21, 37, 0.82);
  --panel-strong: #11243a;
  --line: rgba(143, 181, 255, 0.14);
  --text: #f6f7fb;
  --muted: #9fb1c9;
  --accent: #44d19d;
  --accent-2: #ffba49;
  --danger: #ff6b6b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(68, 209, 157, 0.22), transparent 24%),
    radial-gradient(circle at top right, rgba(255, 186, 73, 0.18), transparent 20%),
    linear-gradient(180deg, #08111d 0%, #050b14 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.48), transparent 92%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  padding: 10px 0 28px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 42px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #2086ff);
  color: #04111d;
  box-shadow: var(--shadow);
}

.brand p,
.brand span,
.hero-copy p,
.panel-note,
.market,
.method-card p,
.disclaimer p,
.tip-card p {
  margin: 0;
}

.brand p {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand span,
.topbar-link,
.eyebrow,
.hero-copy p,
.section-heading p,
.method-card p,
.disclaimer p,
.tip-meta span,
.tip-card p,
.market {
  color: var(--muted);
}

.brand span {
  font-size: 0.82rem;
}

.topbar-link,
.button {
  text-decoration: none;
}

.topbar-link {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: 0.2s ease;
}

.topbar-link:hover,
.filter-button:hover,
.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.26);
  color: var(--text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.tip-card,
.method-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 38px;
  border-radius: 32px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.hero-copy h1,
.section-heading h2,
.method-card h3,
.tip-card h3,
.panel-card h2 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.hero-copy h1 {
  max-width: 10ch;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 0.96;
}

.hero-copy p {
  max-width: 58ch;
  margin-top: 20px;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #04111d;
  background: linear-gradient(135deg, var(--accent), #73f0c2);
}

.button-secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-stats li,
.panel-card,
.tip-card,
.method-card {
  border-radius: 24px;
}

.hero-stats li {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
}

.hero-stats span {
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-panel {
  padding: 18px;
  border-radius: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.panel-label {
  margin: 0 0 14px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.panel-card {
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    var(--panel-strong);
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-hot {
  color: #032015;
  background: linear-gradient(135deg, #73f0c2, var(--accent));
}

.market {
  margin-top: 10px;
  font-size: 0.98rem;
}

.confidence {
  margin: 22px 0 12px;
}

.confidence-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 10px;
}

.confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.section {
  padding: 28px 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.filters-wrap {
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: 10px;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ranking-panel {
  margin-bottom: 18px;
}

.ranking-results {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.ranking-card,
.analysis-block {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.ranking-card {
  padding: 16px 18px;
}

.ranking-card strong,
.analysis-title,
.analysis-block h4 {
  font-family: "Space Grotesk", sans-serif;
}

.ranking-card p,
.ranking-card span,
.analysis-block p,
.analysis-list div {
  margin: 0;
}

.ranking-card p,
.ranking-card span,
.analysis-list div {
  color: var(--muted);
}

.ranking-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.ranking-percent {
  color: var(--accent-2);
  font-weight: 700;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-field span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search-field input,
.search-field select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
}

.search-field input:focus,
.search-field select:focus {
  border-color: rgba(255, 186, 73, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 186, 73, 0.12);
}

.search-field input::placeholder {
  color: #7d90aa;
}

.search-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #ffd978 50%),
    linear-gradient(135deg, #ffd978 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-filters,
.filters-wrap .filters {
  max-width: 100%;
}

.section-note {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.98rem;
}

.filter-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-button.active {
  color: #04111d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-2), #ffd978);
}

.cards-grid,
.method-grid {
  display: grid;
  gap: 18px;
}

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

.tip-card {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.tip-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -30px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(68, 209, 157, 0.24), transparent 72%);
}

.tip-head,
.tip-footer,
.tip-meta {
  display: flex;
  align-items: center;
}

.tip-head,
.tip-footer {
  justify-content: space-between;
  gap: 12px;
}

.tip-meta {
  gap: 10px;
  margin: 18px 0 10px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge.safe {
  background: rgba(68, 209, 157, 0.16);
  color: #87f4cb;
}

.badge.medium {
  background: rgba(255, 186, 73, 0.16);
  color: #ffd37f;
}

.badge.risky {
  background: rgba(255, 107, 107, 0.16);
  color: #ff9a9a;
}

.odds {
  color: var(--accent-2);
  font-weight: 700;
}

.tip-card p {
  line-height: 1.65;
  font-size: 0.98rem;
}

.tip-locator {
  display: grid;
  gap: 6px;
  margin: 14px 0 12px;
}

.tip-locator span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tip-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 14px 0 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.82rem;
}

.tip-footer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tip-footer strong {
  font-family: "Space Grotesk", sans-serif;
}

.tip-footer a {
  color: var(--accent-2);
  text-decoration: none;
}

.tip-footer a:hover {
  color: #ffe2a8;
}

.tip-details {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.tip-details summary {
  cursor: pointer;
  color: var(--accent-2);
  font-weight: 700;
}

.detail-panel {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.analysis-block {
  padding: 16px;
}

.analysis-title {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.analysis-metrics {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.analysis-box {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
}

.analysis-box span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.analysis-box strong {
  font-size: 1.1rem;
}

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

.analysis-block h4 {
  margin: 0 0 10px;
  font-size: 0.96rem;
}

.analysis-note {
  line-height: 1.7;
  margin-bottom: 14px;
}

.analysis-pick {
  padding: 14px;
  border-radius: 16px;
  background: rgba(68, 209, 157, 0.08);
  border: 1px solid rgba(68, 209, 157, 0.2);
}

.odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.odds-box,
.recent-box {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.odds-box {
  padding: 14px;
}

.odds-box span,
.recent-box h4,
.recent-table th {
  color: var(--muted);
}

.odds-box strong {
  display: block;
  margin-top: 6px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.recent-box {
  padding: 14px;
}

.recent-box h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.recent-table th,
.recent-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.recent-table td {
  color: var(--text);
}

.recent-table tr:last-child td {
  border-bottom: 0;
}

.recent-box {
  overflow-x: auto;
}

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

.method-card {
  padding: 24px;
}

.method-card span {
  display: inline-block;
  margin-bottom: 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  color: var(--accent-2);
}

.method-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.disclaimer {
  padding-top: 10px;
}

.disclaimer p {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 107, 107, 0.18);
  background: rgba(255, 107, 107, 0.08);
}

@media (max-width: 980px) {
  .hero-grid,
  .search-panel,
  .analysis-grid,
  .cards-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 12ch;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .topbar,
  .section-heading,
  .filters-wrap {
    align-items: start;
    flex-direction: column;
  }

  .hero-copy,
  .hero-panel,
  .tip-card,
  .method-card {
    border-radius: 24px;
  }

  .hero-copy {
    padding: 24px;
  }

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

  .hero-copy h1 {
    max-width: none;
    font-size: 2.8rem;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .filters-wrap {
    width: 100%;
    gap: 12px;
  }

  .filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter-button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .search-panel {
    gap: 12px;
  }

  .ranking-topline {
    flex-direction: column;
    align-items: start;
  }

  .search-field input {
    min-height: 48px;
    font-size: 16px;
  }

  .tip-card {
    padding: 18px;
  }

  .tip-head,
  .tip-footer {
    flex-direction: column;
    align-items: start;
  }

  .tip-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tip-date {
    width: 100%;
    justify-content: center;
  }

  .tip-details summary {
    display: block;
    line-height: 1.5;
  }

  .detail-panel {
    gap: 12px;
  }

  .odds-grid {
    grid-template-columns: 1fr;
  }

  .recent-table {
    min-width: 520px;
  }
}

@media (max-width: 420px) {
  .topbar-link,
  .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
  }

  .tip-meta {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 2.35rem;
  }
}
