:root {
  --bg: #f5f1e8;
  --panel: #fffdf8;
  --ink: #1c1a17;
  --muted: #6f6559;
  --line: #d7ccbd;
  --accent: #0f766e;
  --accent-2: #c2410c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(194, 65, 12, 0.08), transparent 32%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 28%),
    var(--bg);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.92);
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.topbar h1,
.player-header h1,
.card h2,
.card h3 {
  margin: 0 0 8px;
}

.topbar p,
.player-header p,
.card p,
.stack-list span {
  margin: 0;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.topnav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.page,
.player-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.narrow-page {
  max-width: 720px;
}

.hero,
.stats-grid,
.grid,
.card {
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.admin-split {
  grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
}

.single-col-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.two-col-form {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.two-col-form .form-actions {
  grid-column: 1 / -1;
}

.partner-form-card {
  max-width: 100%;
}

.partner-settings-form {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.partner-settings-form .form-actions {
  grid-column: 1 / -1;
}

.partner-form-card input,
.partner-form-card select,
.partner-form-card textarea {
  min-width: 0;
}

.partner-list {
  display: grid;
  gap: 16px;
}

.partner-row-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.partner-row-top,
.partner-row-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.partner-row-top h3 {
  margin-bottom: 6px;
}

.partner-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.meta-item {
  display: grid;
  gap: 6px;
}

.meta-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

.partner-balance-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.partner-balance-form input {
  width: 180px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: auto;
}

.form-actions,
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form,
.section-header {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.topnav .inline-form {
  margin: 0;
}

.section-header {
  justify-content: space-between;
  margin-bottom: 16px;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.button-link.secondary,
button.secondary {
  background: white;
  color: var(--ink);
}

button.danger {
  background: var(--accent-2);
}

.compact li {
  padding: 10px 14px;
}

.card,
.stat-card,
.video-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(28, 26, 23, 0.04);
}

.auth-card {
  margin-top: 48px;
}

.hero-public .card {
  padding: 32px;
}

.landing-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

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

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(15,118,110,.95), rgba(12,74,110,.95)),
    #0f766e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 45px rgba(15,118,110,.24);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
}

.brand-mark::before {
  width: 28px;
  height: 6px;
  left: 12px;
  top: 14px;
  box-shadow: 0 10px 0 rgba(255,255,255,.85), 0 20px 0 rgba(255,255,255,.7);
}

.brand-mark::after {
  width: 10px;
  height: 10px;
  right: 10px;
  bottom: 10px;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  letter-spacing: .04em;
}

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

.landing-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-stage {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  background:
    radial-gradient(circle at top right, rgba(194,65,12,.18), transparent 26%),
    radial-gradient(circle at bottom left, rgba(15,118,110,.20), transparent 34%),
    linear-gradient(135deg, #fffdf8, #f5eee2);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15,118,110,.10);
  color: var(--accent);
  border: 1px solid rgba(15,118,110,.15);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  line-height: .95;
  margin-bottom: 16px;
}

.hero-copy {
  font-size: 18px;
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.feature-card {
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(215,204,189,.8);
  border-radius: 18px;
  padding: 18px;
}

.contact-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-card {
  min-height: 100%;
}

.muted-list {
  display: grid;
  gap: 10px;
}

.stat-card {
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 36px;
  color: var(--accent);
}

.stack-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.stack-list li {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

code,
pre {
  font-family: "Courier New", monospace;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7f2ea;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.break {
  word-break: break-all;
}

.notice {
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}

.notice-success {
  background: rgba(15, 118, 110, 0.08);
}

.notice-error {
  background: rgba(194, 65, 12, 0.08);
}

.event-toolbar {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.event-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  background: white;
  color: var(--ink);
  padding: 9px 14px;
}

.filter-chip span {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.filter-chip.is-active {
  background: var(--accent);
  color: white;
}

.filter-chip.is-active span {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.event-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fffdf9, #f8f2e8);
  box-shadow: 0 10px 26px rgba(28, 26, 23, 0.05);
}

.event-card-top,
.event-meta-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.event-meta-grid {
  margin: 14px 0;
}

.event-meta-grid span {
  font-size: 14px;
  color: var(--muted);
}

.event-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.event-badge-live {
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}

.event-badge-upcoming {
  background: rgba(180, 83, 9, 0.12);
  color: #9a3412;
}

.event-badge-ended {
  background: rgba(28, 26, 23, 0.08);
  color: var(--ink);
}

.event-badge-disabled {
  background: rgba(194, 65, 12, 0.12);
  color: var(--accent-2);
}

.event-league {
  font-style: italic;
}

.event-kickoff {
  margin-top: 10px !important;
}

.event-soon-indicator {
  display: inline-flex;
  margin-left: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(194, 65, 12, 0.14);
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 700;
}

.event-card-soon {
  border-color: rgba(194, 65, 12, 0.45);
  animation: pulse-alert 1s infinite;
}

.mapping-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: #fff;
}

.mapping-candidate {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

@keyframes pulse-alert {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(194, 65, 12, 0);
    transform: scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(194, 65, 12, 0);
    transform: scale(1);
  }
}

.demo-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.demo-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  margin-bottom: 24px;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.match-card {
  cursor: pointer;
}

.match-card h3 {
  margin-bottom: 10px;
}

.demo-player {
  width: 100%;
  min-height: 540px;
  border: 0;
  border-radius: 18px;
  background: #0e0e0e;
}

.pill {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  margin-right: 8px;
  margin-bottom: 8px;
}

.embed-body,
.player-body {
  margin: 0;
  background: #111;
  color: #f6f3ef;
  overflow: hidden;
}

.embed-shell {
  width: 100vw;
  height: 100vh;
}

.embed-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-card {
  padding: 12px;
  position: relative;
}

.unmute-overlay {
  position: absolute;
  z-index: 5;
  left: 24px;
  bottom: 24px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.92);
  color: #f6f3ef;
  font-size: 14px;
  cursor: pointer;
}

.forensic-watermark {
  position: absolute;
  z-index: 6;
  top: 10px;
  right: 10px;
  padding: 2px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  user-select: none;
  transition: all 1.2s ease;
}

.badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}

.badge-ok { background: rgba(15, 118, 110, 0.15); color: #0f766e; }
.badge-warn { background: rgba(154, 107, 31, 0.16); color: #8a5a14; }
.badge-lock { background: rgba(107, 60, 160, 0.16); color: #6b3ca0; }
.badge-muted { background: rgba(100, 100, 100, 0.14); color: #555; }

.mapping-manual {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

video {
  width: 100%;
  border-radius: 12px;
  background: black;
}

.player-body .player-shell {
  max-width: none;
  width: 100vw;
  height: 100vh;
  padding: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0;
}

.player-body .player-header {
  padding: 12px 16px;
  background: rgba(14, 14, 14, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.player-body .player-header h1 {
  margin-bottom: 4px;
  font-size: clamp(1.1rem, 2vw, 1.8rem);
}

.player-body .video-card {
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.player-body #clappr-player,
.player-body #clappr-preview {
  width: 100%;
  height: 100%;
}

.player-body .card {
  margin: 0;
  padding: 10px 16px 12px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: rgba(14, 14, 14, .92);
  box-shadow: none;
}

.player-body .card h2 {
  font-size: .95rem;
  margin-bottom: 4px;
}

.player-body .stream-banner-overlay {
  top: 14px;
  right: 14px;
  width: min(180px, 22%);
}

.player-body-embed .player-shell {
  grid-template-rows: 1fr;
}

.player-body-embed .video-card {
  height: 100vh;
}

.stream-banner-overlay {
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(240px, 32%);
  z-index: 3;
  background: rgba(255,255,255,.94);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 34px rgba(0,0,0,.24);
}

.stream-banner-overlay img,
.stream-banner-admin-preview img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.stream-banner-admin-preview {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  background: #fff;
}

.admin-preview-shell {
  min-height: 420px;
}

.diamond-bet-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

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

.diamond-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.diamond-brand strong {
  display: block;
  font-size: 1.4rem;
}

.diamond-brand small {
  color: var(--muted);
}

.diamond-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.95), rgba(180,83,9,.85)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.45), transparent 40%);
  box-shadow: 0 10px 24px rgba(15,118,110,.18);
}

.diamond-bet-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.diamond-bet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
}

.diamond-hero-score {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15,118,110,.08), rgba(180,83,9,.06)),
    #fff;
  border: 1px solid rgba(219,205,188,.8);
}

.diamond-mini-grid,
.diamond-odds-row,
.odds-stack,
.market-grid {
  display: grid;
  gap: 10px;
}

.diamond-mini-grid,
.diamond-odds-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diamond-bet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 20px;
}

.diamond-bet-main {
  display: grid;
  gap: 20px;
}

.diamond-event-board,
.diamond-card-grid {
  display: grid;
  gap: 14px;
}

.diamond-event-row,
.fixture-card,
.betslip-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.68);
}

.diamond-event-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  padding: 16px;
  align-items: center;
}

.diamond-event-meta {
  display: grid;
  gap: 6px;
}

.fixture-card {
  padding: 16px;
}

.fixture-card-head,
.section-head,
.betslip-summary,
.betslip-item,
.match-center-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.market-pill,
.market-card {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(27,24,21,.12);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.market-pill strong,
.market-card strong {
  color: var(--accent);
}

.market-card {
  width: 100%;
}

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

.market-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diamond-betslip {
  position: sticky;
  top: 20px;
  align-self: start;
}

.betslip-items {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.betslip-item {
  padding: 14px;
}

.betslip-item small,
.kickoff-copy {
  color: var(--muted);
}

.betslip-item-right {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.betslip-submit {
  width: 100%;
  justify-content: center;
}

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  border: 1px solid var(--line);
  background: #fff;
}

.score-badge.live {
  background: rgba(159,18,57,.1);
  color: #9f1239;
  border-color: rgba(159,18,57,.2);
  box-shadow: 0 0 0 1px rgba(159,18,57,.06), 0 0 20px rgba(159,18,57,.1);
}

.match-center-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.stream-stage {
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(15,118,110,.08), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,241,232,.95));
}

.stream-placeholder {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--muted);
}

.diamond-stream-frame {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.related-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.related-links a {
  color: var(--ink);
  text-decoration: none;
}

.featured-stream-card {
  background:
    linear-gradient(180deg, rgba(15,118,110,.05), rgba(255,255,255,.72));
}

.diamond-bet-page {
  background:
    radial-gradient(circle at top left, rgba(29, 78, 216, .16), transparent 26%),
    radial-gradient(circle at top right, rgba(16, 185, 129, .12), transparent 24%),
    linear-gradient(180deg, #061629 0%, #0a2038 55%, #0b1c30 100%);
  color: #eef4ff;
}

.diamond-bet-v2 {
  max-width: 1920px;
  margin: 0 auto;
  padding: 18px 14px 28px;
}

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

.diamond-v2-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.diamond-bet-page .diamond-brand,
.diamond-bet-page .diamond-brand small {
  color: #e6eefc;
}

.diamond-v2-grid {
  display: grid;
  grid-template-columns: 420px minmax(540px, 1.2fr) minmax(420px, 1fr) 360px;
  gap: 14px;
  align-items: start;
}

.diamond-v2-sidebar,
.diamond-v2-market,
.diamond-v2-center,
.diamond-v2-slip {
  display: grid;
  gap: 14px;
}

.diamond-panel-dark,
.diamond-panel-accent {
  border-radius: 18px;
  border: 1px solid rgba(92, 126, 182, .34);
  box-shadow: 0 20px 48px rgba(2, 10, 24, .34);
  overflow: hidden;
}

.diamond-panel-dark {
  background:
    linear-gradient(180deg, rgba(12, 31, 56, .94), rgba(13, 29, 49, .96)),
    #0a1c31;
  color: #eef4ff;
}

.diamond-panel-accent {
  background:
    linear-gradient(135deg, rgba(77, 181, 134, .92), rgba(52, 122, 105, .9)),
    #347a69;
  color: #f6fff9;
}

.diamond-v2-sidebar .card,
.diamond-v2-market .card,
.diamond-v2-center .card,
.diamond-v2-slip .card {
  padding: 16px;
}

.diamond-search input {
  width: 100%;
  border: 1px solid rgba(103, 143, 204, .45);
  background: rgba(8, 19, 34, .76);
  color: #f3f7ff;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(16, 56, 105, .3);
}

.diamond-search input::placeholder {
  color: rgba(214, 224, 244, .68);
}

.diamond-toggle-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.diamond-filter-chip,
.diamond-time-chip,
.diamond-stage-tab,
.diamond-stake-chip,
.diamond-side-link {
  border: 1px solid rgba(97, 127, 180, .34);
  background: rgba(10, 27, 49, .72);
  color: #d8e4fb;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  transition: .18s ease;
}

.diamond-filter-chip,
.diamond-time-chip,
.diamond-stage-tab {
  padding: 12px 14px;
  font-weight: 700;
}

.diamond-filter-chip.active,
.diamond-time-chip.active,
.diamond-stage-tab.active,
.diamond-side-link.active {
  background: linear-gradient(180deg, #0d4ea6, #093a7e);
  border-color: rgba(101, 163, 255, .62);
  color: #fff;
}

.sidebar-title {
  margin: 0 0 12px;
  color: #f2f7ff;
}

.diamond-side-list,
.diamond-sports-list {
  display: grid;
  gap: 10px;
}

.diamond-side-link {
  width: 100%;
  text-align: left;
  padding: 13px 14px;
  font-weight: 700;
}

.diamond-sport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(11, 27, 49, .72);
  border: 1px solid rgba(97, 127, 180, .26);
  color: #dae5f9;
}

.diamond-sport-item strong {
  color: #8fc0ff;
}

.diamond-sport-item.active {
  background: linear-gradient(180deg, rgba(10, 112, 68, .95), rgba(9, 90, 55, .92));
  border-color: rgba(62, 228, 140, .35);
  color: #fff;
}

.diamond-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.diamond-market-head h2 {
  margin: 0;
  color: #f2f7ff;
}

.diamond-time-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.diamond-odds-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, 86px);
  gap: 0;
  margin-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(76, 117, 181, .36);
}

.diamond-odds-header span {
  padding: 12px 14px;
  background: linear-gradient(180deg, #0a4f9d, #0c3a7a);
  color: #f3f7ff;
  font-weight: 700;
  text-align: center;
}

.diamond-odds-header span:first-child {
  text-align: left;
}

.diamond-match-list {
  display: grid;
  gap: 10px;
  max-height: 980px;
  overflow: auto;
  padding-right: 2px;
}

.diamond-match-row {
  width: 100%;
  border: 1px solid rgba(87, 118, 170, .34);
  background: linear-gradient(180deg, rgba(26, 50, 88, .95), rgba(21, 43, 77, .95));
  color: #eef4ff;
  border-radius: 14px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 258px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
}

.diamond-match-row.active {
  border-color: rgba(89, 174, 255, .75);
  box-shadow: 0 0 0 1px rgba(96, 173, 255, .2), 0 14px 36px rgba(5, 12, 23, .28);
}

.diamond-match-meta {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  align-items: center;
}

.diamond-kickoff {
  color: rgba(220, 229, 245, .78);
  font-size: .92rem;
  line-height: 1.4;
}

.diamond-match-meta strong,
.diamond-match-meta small {
  display: block;
}

.diamond-match-meta strong {
  font-size: 1.08rem;
}

.diamond-match-meta small {
  margin-top: 6px;
  color: rgba(202, 216, 243, .72);
}

.diamond-row-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-left: 1px solid rgba(98, 122, 170, .22);
}

.diamond-odd-box {
  min-height: 100%;
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 14px 10px;
  border-left: 1px solid rgba(101, 127, 176, .22);
  background: linear-gradient(180deg, rgba(57, 84, 128, .82), rgba(50, 78, 122, .9));
}

.diamond-odd-box:first-child {
  border-left: 0;
}

.diamond-odd-box em {
  font-style: normal;
  color: rgba(223, 232, 249, .76);
  font-size: .88rem;
}

.diamond-odd-box strong {
  color: #fff;
  font-size: 1.15rem;
}

.diamond-center-stage {
  padding: 0 !important;
}

.diamond-stage-cover {
  min-height: 178px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(180deg, rgba(6, 15, 25, .18), rgba(4, 8, 17, .82)),
    url('https://images.unsplash.com/photo-1518604666860-9ed391f76460?auto=format&fit=crop&w=1600&q=80') center/cover;
}

.diamond-stage-cover h2 {
  margin: 6px 0 0;
  font-size: 2rem;
  color: #fff;
}

.diamond-stage-body {
  padding: 16px;
}

.diamond-stage-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.diamond-market-stack {
  display: grid;
  gap: 14px;
}

.diamond-market-block {
  border: 1px solid rgba(98, 123, 170, .22);
  border-radius: 16px;
  background: rgba(10, 24, 41, .5);
  overflow: hidden;
}

.diamond-market-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(96, 121, 168, .2);
}

.diamond-market-block-head h3 {
  margin: 0;
  color: #f0f6ff;
}

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

.diamond-market-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.diamond-bet-page .market-card {
  background: rgba(235, 240, 248, .92);
  color: #0e2138;
  border-color: rgba(157, 176, 207, .58);
}

.diamond-bet-page .market-card span {
  color: #24364f;
}

.diamond-stream-shell {
  min-height: 480px;
}

.diamond-stream-stage {
  border: 1px solid rgba(98, 123, 170, .22);
  border-radius: 16px;
  min-height: 390px;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(13, 78, 155, .18), transparent 32%),
    rgba(8, 20, 36, .94);
}

.diamond-stream-placeholder {
  min-height: 390px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: rgba(220, 229, 245, .72);
}

.diamond-stream-placeholder strong {
  display: block;
  margin-bottom: 8px;
  color: #f4f8ff;
}

.diamond-pill-wide {
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  font: inherit;
  font-weight: 700;
}

.diamond-v2-slip .section-head h3,
.diamond-v2-slip .betslip-summary strong,
.diamond-v2-slip .betslip-item strong {
  color: #f0f6ff;
}

.diamond-v2-slip .betslip-item {
  background: rgba(9, 22, 38, .68);
  border-color: rgba(98, 123, 170, .22);
}

.diamond-v2-slip .betslip-item small,
.diamond-v2-slip .betslip-summary span,
.diamond-v2-slip .muted {
  color: rgba(220, 229, 245, .72);
}

.diamond-stake-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
}

.diamond-stake-chip {
  padding: 12px 14px;
  font-weight: 700;
}

.diamond-bet-page .button-link.secondary {
  border-color: rgba(90, 124, 187, .42);
  color: #e9f0ff;
}

.diamond-bet-page .button-link.betslip-submit {
  background: linear-gradient(180deg, #0c5ec6, #0a3d81);
  color: #fff;
  border-color: rgba(103, 168, 255, .5);
}

.diamond-bet-demo {
  max-width: 1760px;
}

.diamond-bet-demo-topbar {
  margin-bottom: 18px;
}

.diamond-demo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 360px;
  gap: 20px;
  margin-bottom: 16px;
  padding: 22px !important;
}

.diamond-demo-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.04;
  color: #fff;
}

.diamond-demo-hero .muted {
  max-width: 760px;
}

.diamond-demo-stats {
  display: grid;
  gap: 12px;
}

.diamond-demo-stats article {
  border: 1px solid rgba(98, 123, 170, .26);
  border-radius: 16px;
  padding: 18px;
  background: rgba(10, 24, 41, .42);
}

.diamond-demo-stats strong {
  display: block;
  font-size: 2rem;
  color: #fff;
}

.diamond-demo-stats span {
  color: rgba(220, 229, 245, .72);
}

.diamond-demo-grid {
  display: grid;
  grid-template-columns: minmax(560px, 1.08fr) minmax(0, 1fr) 340px;
  gap: 14px;
  align-items: start;
}

.diamond-demo-list,
.diamond-demo-stage,
.diamond-demo-slip {
  min-width: 0;
}

.diamond-demo-list .card,
.diamond-demo-stage .card,
.diamond-demo-slip.card {
  padding: 16px;
}

.diamond-demo-slip {
  position: sticky;
  top: 14px;
}

.diamond-slip-banner {
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  background:
    radial-gradient(circle at top right, rgba(46, 204, 113, .22), transparent 38%),
    linear-gradient(180deg, rgba(12, 84, 164, .34), rgba(12, 35, 63, .76));
  border: 1px solid rgba(99, 143, 208, .24);
}

.diamond-slip-banner strong {
  display: block;
  margin: 6px 0 8px;
  color: #fff;
  font-size: 1.15rem;
}

.diamond-slip-banner p {
  margin: 0;
  color: rgba(220, 229, 245, .76);
}

.diamond-slip-copy {
  margin: 6px 0 14px;
}

.diamond-stream-block {
  margin-top: 2px;
}

.diamond-detail-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(7, 21, 38, .9), rgba(10, 28, 48, .78));
  border: 1px solid rgba(98, 123, 170, .22);
}

.diamond-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(180deg, #cf1244, #991b3f);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05), 0 0 24px rgba(207, 18, 68, .18);
}

.diamond-live-badge.scheduled {
  background: linear-gradient(180deg, #0d4ea6, #0a3a7a);
}

.diamond-score-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  width: 100%;
}

.diamond-score-pair > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
}

.diamond-score-pair span {
  color: rgba(220, 229, 245, .74);
}

.diamond-score-pair strong {
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
}

.diamond-score-pair.waiting strong {
  opacity: .68;
}

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

.diamond-insight-card {
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(12, 42, 72, .9), rgba(9, 26, 47, .9));
  border: 1px solid rgba(98, 123, 170, .22);
}

.diamond-insight-card span {
  display: block;
  color: rgba(220, 229, 245, .72);
  margin-bottom: 8px;
}

.diamond-insight-card strong {
  color: #fff;
  font-size: 1.55rem;
}

.diamond-bet-page .market-card,
.diamond-bet-page .diamond-odd-box,
.diamond-bet-page .diamond-match-row {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.diamond-bet-page .market-card:hover,
.diamond-bet-page .diamond-odd-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(11, 20, 36, .22);
  border-color: rgba(96, 173, 255, .5);
}

.diamond-bet-page .diamond-match-row:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 173, 255, .52);
}

.diamond-modal-shell[hidden] {
  display: none;
}

.diamond-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
}

.diamond-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 13, .68);
  backdrop-filter: blur(8px);
}

.diamond-modal-card {
  position: relative;
  width: min(520px, calc(100vw - 32px));
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(98, 123, 170, .24);
  background:
    radial-gradient(circle at top right, rgba(46, 204, 113, .18), transparent 32%),
    linear-gradient(180deg, rgba(13, 31, 54, .97), rgba(10, 24, 42, .98));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.diamond-modal-card h3 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: 1.6rem;
}

.diamond-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .topbar,
  .grid.two-col {
    grid-template-columns: 1fr;
    display: grid;
  }

  .demo-hero,
  .demo-grid,
  .hero-stage,
  .contact-grid,
  .pricing-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

  .landing-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-split,
  .two-col-form {
    grid-template-columns: 1fr;
  }

  .partner-settings-form,
  .partner-meta-grid {
    grid-template-columns: 1fr;
  }

  .partner-row-top,
  .partner-row-bottom,
  .partner-balance-form {
    flex-direction: column;
  }

  .diamond-bet-topbar,
  .match-center-hero,
  .section-head,
  .betslip-summary,
  .match-center-actions,
  .fixture-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .diamond-bet-hero,
  .diamond-bet-layout,
  .diamond-event-row,
  .diamond-card-grid,
  .diamond-mini-grid,
  .diamond-odds-row,
  .market-grid,
  .market-grid.compact {
    grid-template-columns: 1fr;
  }

  .diamond-betslip {
    position: static;
  }

  .diamond-v2-topbar,
  .diamond-market-head,
  .diamond-market-block-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .diamond-v2-grid {
    grid-template-columns: 1fr;
  }

  .diamond-demo-hero,
  .diamond-demo-grid {
    grid-template-columns: 1fr;
  }

  .diamond-detail-scoreboard,
  .diamond-score-pair,
  .diamond-insight-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .diamond-toggle-row,
  .diamond-time-tabs,
  .diamond-stage-tabs {
    width: 100%;
  }

  .diamond-odds-header,
  .diamond-match-row,
  .diamond-match-meta,
  .diamond-market-grid,
  .diamond-market-grid.compact,
  .diamond-stake-row {
    grid-template-columns: 1fr;
  }

  .diamond-row-odds {
    border-left: 0;
  }
}

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