:root {
  --bg: #06110f;
  --panel: rgba(11, 27, 24, 0.82);
  --panel-2: rgba(240, 248, 245, 0.045);
  --line: rgba(192, 229, 218, 0.14);
  --line-strong: rgba(123, 242, 216, 0.34);
  --text: #eef8f4;
  --muted: #90aaa3;
  --soft: #c2d6d0;
  --green: #1ad7b7;
  --green-2: #095f55;
  --gold: #d7f35a;
  --red: #ff6f73;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 55% 18%, rgba(27, 216, 183, 0.16), transparent 34%),
    radial-gradient(circle at 20% 88%, rgba(215, 243, 90, 0.07), transparent 28%),
    linear-gradient(135deg, #020807, #071916 52%, #030907);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1240px, calc(100vw - 48px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  overflow: hidden;
  border-bottom: 1px solid rgba(123, 242, 216, 0.14);
  background:
    linear-gradient(90deg, rgba(1, 9, 8, 0.96), rgba(7, 28, 24, 0.86) 52%, rgba(1, 9, 8, 0.94)),
    url("assets/page-images/site-data-bg.jpg") center 42% / cover no-repeat;
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.26);
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 68% 44%, rgba(26, 215, 183, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(0, 0, 0, 0.16));
}

.topbar .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 170px 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 72px;
}

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

.brand img {
  width: 128px;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.26));
}

.text-brand {
  min-height: 58px;
  color: #f4fffb;
}

.brand-mark-mini {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(123, 242, 216, 0.34);
  border-radius: 50%;
  color: #d7f35a;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand-logo-text {
  color: #f4fffb;
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav a,
.chip,
.btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--soft);
  font-weight: 750;
  font-size: 12px;
  line-height: 1;
  padding: 10px 14px;
}

button.chip {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.nav a.active,
.chip.active {
  background: linear-gradient(135deg, var(--green-2), #1ba88f);
  color: #fff;
  border-color: rgba(123, 242, 216, 0.42);
}

.actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lang-toggle {
  min-width: 58px;
  padding-inline: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.btn.primary {
  background: #f7fffb;
  color: #063f38;
  border-color: transparent;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.04);
}

.topbar .nav a,
.topbar .btn {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.22);
  color: #f4fffb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 20px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.topbar .nav a:hover,
.topbar .btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.28);
}

.topbar .nav a.active {
  border-color: rgba(123, 242, 216, 0.48);
  background: linear-gradient(135deg, #137f73, #23b49e);
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 16px 34px rgba(26, 215, 183, 0.22);
}

.topbar .btn.primary {
  border-color: transparent;
  background: #f8fffb;
  color: #063f38;
}

.topbar .btn.ghost {
  background: rgba(255, 255, 255, 0.12);
}

.page {
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: end;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  text-transform: uppercase;
  font-weight: 850;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 12px;
  max-width: 760px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.95;
  font-weight: 760;
}

h1 em,
h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  color: #f4fff9;
}

.lead {
  max-width: 740px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.72;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
}

.dark-panel {
  background:
    radial-gradient(circle at top right, rgba(26, 215, 183, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(1, 16, 14, 0.98), rgba(4, 26, 22, 0.9));
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  margin-bottom: 16px;
}

.search {
  min-width: min(420px, 100%);
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  padding: 12px 16px;
  font: inherit;
  outline: none;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  padding: 18px;
}

.metric-card .label {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 760;
}

.section-head p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.58;
}

.match-list {
  overflow: hidden;
}

.match-row {
  display: grid;
  grid-template-columns: 54px minmax(240px, 1fr) 150px 140px 110px 116px;
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.match-row:last-child {
  border-bottom: 0;
}

.num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--green);
  font-weight: 850;
}

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

.badges {
  display: flex;
  align-items: center;
}

.badge-logo {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: #fff;
  object-fit: contain;
}

.badge-logo + .badge-logo {
  margin-left: -8px;
}

.team-name {
  font-weight: 800;
  font-size: 14px;
}

.sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin-top: 3px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-weight: 800;
  font-size: 12px;
}

.pill.green {
  color: #06231f;
  background: var(--green);
}

.pill.gold {
  color: #1c2300;
  background: var(--gold);
}

.pill.red {
  color: #fff;
  background: rgba(255, 111, 115, 0.78);
}

.board-card {
  position: relative;
  min-height: 250px;
  padding: 24px;
  overflow: hidden;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.board-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 76% 20%, rgba(26, 215, 183, 0.2), transparent 30%),
    rgba(5, 26, 22, 0.92);
}

.board-card h3 {
  margin-top: 42px;
  font-size: 25px;
}

.board-card p {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.board-meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 16px;
}

.scoreline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
}

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

.club.away {
  justify-content: flex-end;
  text-align: right;
}

.club-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.score {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  text-align: center;
}

.score strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-size: 28px;
}

.pick-panel {
  padding: 22px;
}

.pick-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
  margin-top: 12px;
}

.pick-main strong {
  font-size: 36px;
  line-height: 0.96;
}

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

.mini-card {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.mini-card b {
  display: block;
  font-size: 13px;
}

.mini-card small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.context-list {
  display: grid;
  gap: 9px;
}

.context-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.context-item:last-child {
  border-bottom: 0;
}

.cn-page {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 13px;
}

.cn-page .page {
  padding: 22px 0 48px;
}

.cn-page .hero {
  gap: 14px;
  margin-bottom: 14px;
  align-items: center;
}

.cn-page h1 {
  margin-top: 8px;
  max-width: 860px;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.05;
}

.cn-page .lead {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.cn-page .section {
  margin-top: 14px;
}

.cn-page .section-head {
  margin-bottom: 10px;
  align-items: center;
}

.cn-page .section-head h2 {
  font-size: 18px;
  line-height: 1.15;
}

.cn-page .section-head p {
  font-size: 12px;
  line-height: 1.45;
}

.match-hero-cn {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.72fr) 1fr;
  gap: 10px;
  align-items: stretch;
}

.team-tile,
.forecast-tile {
  padding: 14px;
}

.team-tile {
  display: grid;
  align-content: space-between;
  min-height: 136px;
}

.team-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-top.away {
  justify-content: flex-end;
  text-align: right;
}

.team-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 4px;
}

.team-meta.away {
  justify-content: flex-end;
}

.team-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.form-dots {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.form-dot {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.form-dot.win { background: rgba(26, 215, 183, 0.22); color: #91fff0; }
.form-dot.loss { background: rgba(255, 111, 115, 0.18); color: #ffb2b5; }
.form-dot.draw { background: rgba(255, 255, 255, 0.12); color: #dce8e4; }

.forecast-tile {
  text-align: center;
  display: grid;
  place-items: center;
}

.forecast-tile .pick {
  font-size: 30px;
  line-height: 1;
  font-weight: 820;
  color: var(--gold);
}

.forecast-tile .prob {
  margin-top: 6px;
  color: var(--soft);
  font-weight: 760;
  font-size: 12px;
}

.summary-picks {
  display: grid;
  gap: 7px;
  margin: 10px auto 8px;
  max-width: 220px;
  text-align: left;
}

.summary-picks span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  font-size: 12px;
  font-weight: 760;
}

.summary-picks b {
  color: #fff;
}

.update-list {
  width: min(100%, 260px);
  margin: 8px auto;
  text-align: left;
}

.forecast-tile .context-item {
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.forecast-tile .context-item b {
  font-size: 11px;
  line-height: 1.25;
}

.tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px;
  scrollbar-width: thin;
}

.tabs .chip {
  white-space: nowrap;
}

.locked-chip {
  border-color: rgba(215, 243, 90, 0.46);
  color: var(--gold);
  background: rgba(215, 243, 90, 0.1);
}

.market-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 0 10px 10px;
}

.market-summary-single {
  grid-template-columns: 1fr;
}

.odds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.odds-table th,
.odds-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.odds-table th {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.odds-table td:last-child,
.odds-table th:last-child {
  text-align: right;
}

.odds-table tr.is-hidden {
  display: none;
}

.match-lab-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
  gap: 20px;
  min-height: 248px;
  padding: 24px 26px;
  overflow: hidden;
  border: 1px solid rgba(26, 215, 183, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 76% 48%, rgba(26, 215, 183, 0.15), transparent 34%),
    linear-gradient(135deg, rgba(8, 33, 28, 0.96), rgba(2, 15, 13, 0.98));
  box-shadow: 0 24px 80px rgba(1, 10, 8, 0.45);
}

.match-lab-hero::before {
  content: "";
  position: absolute;
  inset: -18%;
  background: none;
  opacity: 0;
  transform: rotate(-9deg);
}

.hero-copy,
.hero-visual,
.match-hero-photo {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  max-width: 760px;
  margin-top: 16px;
  font-size: clamp(30px, 4.1vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 820;
}

.hero-copy p {
  max-width: 560px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hero-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.hero-stats b {
  color: var(--green);
  font-size: 15px;
  line-height: 1;
}

.match-hero-photo {
  align-self: center;
  min-height: 166px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.32);
}

.match-hero-photo img {
  display: block;
  width: 100%;
  height: 174px;
  object-fit: cover;
  object-position: 56% 48%;
  filter: saturate(1.16) contrast(1.06) brightness(0.92);
}

.match-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(2, 15, 13, 0.72)),
    radial-gradient(circle at 55% 30%, rgba(215, 243, 90, 0.13), transparent 38%);
}

.match-hero-photo figcaption {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(3, 23, 19, 0.7);
  backdrop-filter: blur(12px);
}

.match-hero-photo figcaption span,
.match-hero-photo figcaption small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.match-hero-photo figcaption b {
  display: block;
  margin: 3px 0;
  color: var(--white);
  font-size: 14px;
}

.hero-visual {
  min-height: 330px;
}

.pitch-orbit {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(26, 215, 183, 0.22);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 243, 90, 0.18), transparent 10%),
    radial-gradient(circle at 50% 50%, transparent 0 28%, rgba(26, 215, 183, 0.1) 28.5% 29%, transparent 29.5%),
    radial-gradient(circle at 50% 50%, rgba(26, 215, 183, 0.16), transparent 62%);
  animation: slowSpin 18s linear infinite;
}

.signal-node,
.signal-line {
  position: absolute;
  pointer-events: none;
}

.signal-node {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 26px rgba(26, 215, 183, 0.8);
}

.signal-node.n1 { left: 14%; top: 26%; }
.signal-node.n2 { right: 18%; top: 28%; animation-delay: -1.2s; }
.signal-node.n3 { left: 50%; bottom: 18%; animation-delay: -2.1s; }

.signal-line {
  height: 1px;
  width: 62%;
  left: 18%;
  top: 46%;
  background: linear-gradient(90deg, transparent, rgba(26, 215, 183, 0.7), transparent);
  transform: rotate(22deg);
}

.signal-line.l2 {
  top: 58%;
  transform: rotate(-18deg);
  opacity: 0.6;
}

.visual-card {
  position: absolute;
  right: 54px;
  bottom: 48px;
  width: 245px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background: rgba(3, 23, 19, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.38);
}

.visual-card span,
.visual-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.visual-card b {
  display: block;
  margin: 8px 0;
  color: var(--white);
  font-size: 28px;
  line-height: 1.05;
}

.match-selector-panel {
  margin-top: 16px;
  padding: 18px;
}

.selector-head,
.match-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.selector-head h2,
.match-list-head h2 {
  margin-top: 6px;
  font-size: 20px;
}

.selector-head p,
.match-list-head p {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 9px;
  margin-top: 16px;
}

.selector-grid label {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.selector-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.selector-grid select {
  width: 100%;
  border: 0;
  outline: 0;
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.selector-grid option {
  color: #06120f;
}

.premium-window-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 0;
}

.premium-date-panel {
  padding: 10px 14px;
  border-radius: 18px;
}

.premium-date-panel .selector-head {
  display: none;
}

.premium-date-panel .eyebrow {
  font-size: 11px;
}

.premium-date-panel h2 {
  font-size: 22px;
  line-height: 1.1;
}

.premium-date-panel .selector-head p {
  display: none;
}

.premium-window-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.premium-window-tab {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 9px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.premium-window-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 215, 183, 0.34);
  background: rgba(26, 215, 183, 0.09);
}

.premium-window-tab.active {
  color: #052b26;
  border-color: rgba(26, 215, 183, 0.72);
  background: var(--green);
}

.premium-window-summary {
  display: flex;
  gap: 5px;
}

.premium-window-summary div {
  min-width: 64px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.premium-window-summary small,
.premium-window-summary span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.premium-window-summary b {
  display: block;
  margin: 1px 0 0;
  color: var(--white);
  font-size: 12px;
  line-height: 1;
}

.match-list-panel {
  margin-top: 14px;
}

.match-list-head {
  padding: 0 4px 14px;
}

.match-center-page .match-list-head p {
  display: none;
}

.match-table-lite {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 28%, rgba(26, 215, 183, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.kq-data-state {
  display: grid;
  gap: 6px;
  min-height: 112px;
  place-content: center;
  padding: 24px;
  border: 1px solid var(--line, rgba(128, 170, 158, .24));
  border-radius: 8px;
  color: var(--muted, #92aaa5);
  text-align: center;
}

.kq-data-state b {
  color: var(--text, #eef8f5);
  font-size: 16px;
}

.match-skeleton {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.match-skeleton.is-hidden {
  display: none;
}

.match-skeleton span {
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.04));
  background-size: 200% 100%;
  animation: skeletonPulse 1.15s ease-in-out infinite;
}

.lite-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 0 58px;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(8px);
  animation: rowReveal 0.42s ease forwards;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.lite-row:nth-child(1) { animation-delay: 0.04s; }
.lite-row:nth-child(2) { animation-delay: 0.1s; }
.lite-row:nth-child(3) { animation-delay: 0.16s; }
.lite-row:nth-child(4) { animation-delay: 0.22s; }
.lite-row:nth-child(5) { animation-delay: 0.28s; }

.lite-row:last-child {
  border-bottom: 0;
}

.lite-row:hover {
  background: rgba(26, 215, 183, 0.07);
  box-shadow: inset 0 0 0 1px rgba(26, 215, 183, 0.12);
  transform: translateY(-2px);
}

.match-table-lite.show-market .lite-row {
  grid-template-columns: 64px minmax(360px, 1fr) minmax(330px, 430px) 58px;
}

.time b,
.time small {
  display: block;
}

.time b {
  font-size: 13px;
}

.time small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.teams {
  display: grid;
  grid-template-columns: 24px minmax(70px, auto) auto 24px minmax(70px, auto) minmax(110px, 1fr);
  gap: 6px;
  align-items: center;
  min-width: 0;
}

.teams img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.teams b {
  min-width: 0;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teams em {
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
}

.teams small {
  justify-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.market-cell {
  display: grid;
  grid-template-columns: minmax(112px, 1fr) minmax(92px, 0.8fr) minmax(56px, 0.46fr);
  gap: 6px;
  opacity: 0;
  text-align: left;
  transition: opacity 160ms ease;
}

.match-table-lite.show-market .market-cell {
  opacity: 1;
}

.market-cell span {
  min-width: 0;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.market-cell small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.market-cell b {
  display: block;
  margin-top: 2px;
  color: var(--white);
  font-size: 11px;
  white-space: nowrap;
}

.market-cell span:last-child b {
  text-align: right;
}

.settlement-result {
  display: inline-flex !important;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 950;
  white-space: nowrap;
}

.settlement-result.result-hit,
.pill.result-hit {
  color: #ff727c !important;
  border: 1px solid rgba(255, 84, 96, 0.5);
  background: rgba(255, 84, 96, 0.14);
}

.settlement-result.result-miss,
.pill.result-miss {
  color: #35d89a !important;
  border: 1px solid rgba(53, 216, 154, 0.42);
  background: rgba(53, 216, 154, 0.12);
}

.settlement-result.result-push,
.pill.result-push {
  color: #f1c86b !important;
  border: 1px solid rgba(241, 200, 107, 0.42);
  background: rgba(241, 200, 107, 0.12);
}

.settlement-result.result-pending,
.pill.result-pending {
  color: var(--muted) !important;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.odds-table tr.is-market-focus td {
  background: rgba(26, 215, 183, 0.07);
}

.open-detail {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(26, 215, 183, 0.12);
  color: var(--green);
  font-size: 10px;
  font-weight: 950;
}

.lite-row.is-live {
  background: linear-gradient(90deg, rgba(215, 243, 90, 0.08), transparent 64%);
}

.lite-row.is-settled {
  opacity: 0.74;
}

.coverage-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.coverage-strip span {
  min-height: 72px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.data-page .match-lab-hero {
  min-height: 230px;
}

.data-page .selector-grid {
  grid-template-columns: repeat(5, 1fr);
}

.data-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 12px;
  margin-top: 14px;
}

.data-panel {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 76% 18%, rgba(26, 215, 183, 0.1), transparent 35%),
    rgba(255, 255, 255, 0.035);
}

.data-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.data-panel-head h2 {
  font-size: 18px;
}

.data-panel-head p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.league-profile,
.team-profile {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.league-profile img,
.team-profile img,
.squad-avatar {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
}

.team-profile img {
  border-radius: 50%;
}

.league-profile h3,
.team-profile h3 {
  font-size: 22px;
  line-height: 1.05;
}

.league-profile p,
.team-profile p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.data-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.data-chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.data-chip-row b {
  margin-right: 5px;
  color: var(--green);
  font-size: 13px;
}

.standings-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.standing-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 1fr) repeat(5, 52px);
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  font-size: 11px;
  font-weight: 850;
}

.standing-row:last-child {
  border-bottom: 0;
}

.standing-row.is-head {
  min-height: 34px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.035);
}

.standing-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.standing-team img,
.mini-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.standing-team b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-team-grid,
.squad-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.league-team-card,
.squad-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.league-team-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.league-team-card b,
.squad-card b {
  display: block;
  color: var(--white);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-team-card small,
.squad-card small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.team-stat-grid div {
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.team-stat-grid span,
.team-stat-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.team-stat-grid b {
  display: block;
  margin: 5px 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
}

.data-fixture-row {
  grid-template-columns: 64px minmax(0, 1fr) minmax(150px, 0.34fr) 58px;
}

.data-fixture-row .market-cell {
  opacity: 1;
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-align: right;
}

.data-fixture-row .market-cell b {
  display: block;
  margin-top: 2px;
  color: var(--white);
  font-size: 12px;
}

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

.profile-side-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 900px) {
  .data-page .selector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-overview-grid {
    grid-template-columns: 1fr;
  }

  .standing-row {
    grid-template-columns: 30px minmax(130px, 1fr) repeat(3, 44px);
  }

  .standing-row span:nth-child(n+6) {
    display: none;
  }

  .league-team-grid,
  .squad-grid,
  .team-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .data-fixture-row {
    grid-template-columns: 56px minmax(0, 1fr) 58px;
  }

  .data-fixture-row .market-cell {
    display: none;
  }
}

@media (max-width: 560px) {
  .data-page .selector-grid,
  .league-team-grid,
  .squad-grid,
  .team-stat-grid {
    grid-template-columns: 1fr;
  }
}

.profile-side-list b {
  color: var(--white);
}

/* Team detail page */
.team-detail-page {
  gap: 14px;
}

.team-detail-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 34%);
}

.team-identity {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.team-identity img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  padding: 12px;
  border: 1px solid rgba(190, 229, 219, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.team-identity h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 5.6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  font-weight: 930;
}

.team-identity p {
  max-width: 760px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 760;
}

.team-venue-photo {
  min-height: 246px;
}

.team-venue-photo img {
  width: 100%;
  height: 100%;
  min-height: 246px;
  object-fit: cover;
}

.team-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 12px;
}

.team-profile-panel,
.team-signal-panel,
.team-tabs-panel {
  border: 1px solid rgba(123, 242, 216, 0.14);
  background:
    radial-gradient(circle at 80% 16%, rgba(26, 215, 183, 0.10), transparent 35%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.014));
}

.team-facts-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.team-facts-list div {
  min-height: 54px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.036);
}

.team-facts-list span,
.team-signal-grid small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 900;
}

.team-facts-list b {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.team-signal-grid div {
  min-height: 74px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.team-signal-grid b {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 26px;
  line-height: 1;
  font-weight: 930;
}

.team-signal-grid span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 830;
}

.team-premium-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 16px;
  border-radius: 999px;
  color: #06231f;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
  background: var(--green);
}

.team-tabs-panel {
  padding: 16px;
  border-radius: 22px;
}

.team-tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.team-tab-buttons button {
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(190, 229, 219, 0.14);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
}

.team-tab-buttons button.is-active {
  color: #06231f;
  background: var(--green);
  border-color: transparent;
}

.team-tab-panel {
  display: none;
}

.team-tab-panel.is-active {
  display: block;
}

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

.team-panel-heading h2 {
  color: var(--white);
  font-size: 24px;
  line-height: 1.1;
}

.team-panel-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 760;
}

.team-fixture-stack {
  display: grid;
  gap: 8px;
}

.team-fixture-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) minmax(210px, 0.42fr) 64px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.032);
}

.team-fixture-card.is-upcoming {
  border-color: rgba(36, 208, 180, 0.22);
}

.fixture-date b,
.fixture-context b {
  display: block;
  color: var(--white);
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
}

.fixture-date small,
.fixture-context small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  font-weight: 830;
}

.fixture-teams {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.fixture-teams img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.fixture-teams em {
  color: var(--green);
  font-style: normal;
}

.fixture-context {
  text-align: right;
}

.team-stat-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-squad-preview {
  margin-top: 10px;
}

.team-tips-article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.032);
}

.team-tips-article h3 {
  color: var(--white);
  font-size: 22px;
}

.team-tips-article p {
  margin-top: 14px;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 760;
}

@media (max-width: 980px) {
  .team-detail-hero,
  .team-summary-grid {
    grid-template-columns: 1fr;
  }

  .team-panel-heading {
    display: grid;
  }

  .team-fixture-card {
    grid-template-columns: 74px minmax(0, 1fr) 54px;
  }

  .fixture-context {
    display: none;
  }

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

@media (max-width: 640px) {
  .team-identity {
    grid-template-columns: 1fr;
  }

  .team-facts-list,
  .team-signal-grid,
  .team-stat-grid-wide {
    grid-template-columns: 1fr;
  }

  .team-fixture-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .fixture-context {
    display: block;
    text-align: left;
  }
}

/* Compact team detail layout */
.team-compact-page {
  display: grid;
  gap: 10px;
  padding-top: 24px;
}

.team-mini-header {
  min-height: auto;
  padding: 14px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(rgba(2, 21, 18, 0.76), rgba(2, 21, 18, 0.88)),
    url("assets/page-images/match-center-hero.jpg") center / cover,
    radial-gradient(circle at 50% 0%, rgba(26, 215, 183, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.026);
}

.team-mini-header-centered {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
}

.team-center-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(238, 248, 244, 0.82);
  border-radius: 20px;
  background: #eef8f4;
}

.cup-title-logo {
  width: 70px;
  height: 70px;
  padding: 7px;
  border-radius: 20px;
  background: #eef8f4;
}

.team-mini-header h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 0.95;
  letter-spacing: 0;
  font-weight: 930;
}

.team-mini-header p {
  margin: 0;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 760;
}

.team-anchor-nav {
  position: sticky;
  top: 74px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 18px;
  background: rgba(3, 18, 16, 0.88);
  backdrop-filter: blur(16px);
}

.team-anchor-nav a {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(190, 229, 219, 0.10);
  border-radius: 999px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.025);
}

.team-compact-card {
  padding: 11px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 84% 12%, rgba(26, 215, 183, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.028);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-compact-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.28);
}

.team-section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 8px;
}

.team-section-head h2 {
  color: var(--white);
  font-size: 16px;
  line-height: 1.1;
}

.team-section-head p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
  font-weight: 760;
}

.team-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 8px;
  align-items: start;
}

.team-overview-panel .team-history-chip-grid {
  grid-template-columns: 1fr;
}

.team-history-panel {
  display: grid;
  gap: 6px;
  margin-top: -38px;
}

.team-best-label {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.team-best-label b {
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
}

.team-best-label small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.team-micro-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.team-micro-grid-tight {
  grid-template-columns: repeat(10, minmax(0, 1fr));
}

.team-micro-grid div {
  min-height: 44px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-micro-grid div:hover,
.team-row-list a:hover,
.team-mini-table > div:not(.is-head):hover,
.team-model-top div:hover,
.team-history-chip:hover,
.league-club-grid a:hover,
.team-progress-grid div:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.26);
  background: rgba(255, 255, 255, 0.052);
}

.team-micro-grid span,
.team-micro-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  font-weight: 870;
}

.team-micro-grid b {
  display: block;
  margin: 3px 0 2px;
  color: var(--green);
  font-size: 15px;
  line-height: 1;
  font-weight: 930;
}

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

.team-teamdesk {
  display: grid;
  grid-template-columns: minmax(430px, 0.95fr) 350px minmax(360px, 0.82fr);
  gap: 10px;
  align-items: stretch;
  height: 600px;
}

.league-teamdesk {
  display: grid;
  grid-template-columns: minmax(430px, 0.9fr) 360px minmax(350px, 0.78fr);
  gap: 10px;
  align-items: stretch;
  height: 600px;
}

.team-teamdesk > .team-compact-card,
.league-teamdesk > .team-compact-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.team-match-stack {
  display: grid;
  grid-template-rows: 0.42fr 0.58fr;
  gap: 10px;
  min-height: 0;
}

.team-match-stack .team-compact-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.team-teamdesk .team-row-list {
  min-height: 0;
  flex: 1;
  align-content: stretch;
}

.team-match-stack .team-row-list {
  overflow: hidden;
}

.team-match-stack .team-row-list a {
  grid-template-columns: 78px minmax(0, 1fr);
}

.team-match-stack .team-row-list a span {
  grid-column: 2;
}

.team-row-list {
  display: grid;
  gap: 6px;
}

.team-row-list a {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(150px, 0.56fr);
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.026);
}

.team-row-list time,
.team-row-list span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.team-row-list b {
  overflow: hidden;
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-mini-table {
  display: grid;
  flex: 1;
  min-height: 0;
  max-height: none;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.team-mini-table > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 38px 72px 42px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 830;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-mini-table > div:first-child {
  border-top: 0;
}

.team-mini-table .is-head {
  min-height: 26px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(204, 225, 219, 0.55);
}

.team-mini-table b,
.team-mini-table strong {
  overflow: hidden;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-mini-table .is-current {
  background: rgba(36, 208, 180, 0.075);
}

.league-mini-table > div {
  grid-template-columns: 28px minmax(0, 1fr) 34px 64px 38px 38px;
  gap: 7px;
}

.league-club-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 0;
  overflow: auto;
}

.league-club-grid a {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 38px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.032);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.league-club-grid img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.league-club-grid b,
.league-club-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-club-grid b {
  color: var(--white);
  font-size: 10px;
  font-weight: 920;
}

.league-club-grid small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.league-match-stack {
  grid-template-rows: 1fr;
}

.league-schedule-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.league-schedule-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 7px;
}

.league-schedule-controls label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.league-schedule-controls select {
  width: 100%;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
}

.league-schedule-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.league-schedule-summary b {
  color: var(--green);
}

.league-schedule-list {
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.league-schedule-list a {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 54px;
  gap: 8px;
  align-items: center;
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.026);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.league-schedule-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.26);
  background: rgba(255, 255, 255, 0.052);
}

.league-schedule-list time,
.league-schedule-list span,
.league-schedule-list em,
.league-schedule-list small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-schedule-list time strong {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--soft);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-schedule-list b {
  overflow: hidden;
  color: var(--white);
  font-size: 11px;
  font-weight: 930;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-schedule-list span {
  text-align: right;
}

.league-schedule-list span strong {
  display: block;
  overflow: hidden;
  color: var(--green);
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-schedule-list span small {
  margin-top: 2px;
}

.cup-teamdesk .cup-group-card,
.cup-teamdesk .cup-bracket-card,
.cup-teamdesk > .team-compact-card {
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cup-control-row {
  margin-bottom: 8px;
}

.cup-control-row label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
}

.cup-control-row select {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--white);
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.045);
}

.cup-group-table {
  flex: 0 0 auto;
  max-height: 250px;
  margin-bottom: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cup-group-table[hidden] {
  display: none;
}

.cup-group-table > div {
  grid-template-columns: 28px minmax(0, 1fr) 34px 64px 38px 38px;
  gap: 7px;
  min-height: 28px;
}

.cup-group-table b {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.cup-group-table img {
  width: 15px;
  height: 15px;
  object-fit: cover;
  border-radius: 50%;
  background: #eef8f4;
}

.cup-bracket-plane {
  position: relative;
  flex: 1;
  min-height: 0;
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  background:
    radial-gradient(circle at 50% 45%, rgba(36, 208, 180, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.026);
}

.cup-bracket-board {
  --round-count: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--round-count), minmax(0, 1fr));
  gap: 5px;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
}

.cup-bracket-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.cup-bracket-lines path {
  fill: none;
  stroke: rgba(190, 229, 219, 0.58);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.cup-bracket-board.has-svg-lines .cup-bracket-junction,
.cup-bracket-board.has-svg-lines .cup-bracket-match::before,
.cup-bracket-board.has-svg-lines .cup-bracket-match::after {
  display: none;
}

.cup-bracket-board.is-awaiting-draw {
  display: flex;
  min-height: 136px;
  height: auto;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 14px;
}

.cup-bracket-board.is-full-tree.is-awaiting-draw {
  display: grid;
  height: 100%;
  min-height: 0;
  padding: 0;
  gap: 5px;
}

.cup-bracket-plane:has(.cup-bracket-board.is-awaiting-draw) {
  flex: 0 0 auto;
  min-height: 170px;
}

.cup-bracket-plane:has(.cup-bracket-board.is-full-tree) {
  flex: 1;
  min-height: 250px;
}

.cup-bracket-awaiting-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.cup-bracket-awaiting-head b {
  color: var(--white);
  font-size: 11px;
  font-weight: 950;
}

.cup-bracket-awaiting-head span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-align: right;
}

.cup-bracket-awaiting-phases {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  gap: 10px;
}

.cup-bracket-awaiting-phases span {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 40px;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--soft);
  font-size: 7px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 255, 255, 0.035);
}

.cup-bracket-awaiting-phases span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  width: 10px;
  height: 1px;
  background: rgba(36, 208, 180, 0.42);
}

.cup-bracket-awaiting-phases span.is-current {
  border-color: rgba(36, 208, 180, 0.48);
  color: #062f29;
  background: var(--green);
}

.cup-bracket-board-large.is-awaiting-draw {
  min-height: 240px;
  padding: 30px;
}

.cup-bracket-board-large .cup-bracket-awaiting-head b {
  font-size: 18px;
}

.cup-bracket-board-large .cup-bracket-awaiting-head span {
  font-size: 11px;
}

.cup-bracket-board-large .cup-bracket-awaiting-phases span {
  min-height: 66px;
  font-size: 11px;
}

.cup-bracket-round {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr);
  gap: 4px;
  min-width: 0;
  min-height: 0;
}

.cup-bracket-round h3 {
  margin: 0;
  color: var(--muted);
  font-size: 7px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.cup-bracket-round.is-final h3 {
  color: var(--green);
}

.cup-bracket-round-matches {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 4px;
  min-height: 0;
}

.cup-bracket-pair {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  min-height: 0;
}

.cup-bracket-pair.is-single {
  grid-template-rows: 1fr;
}

.cup-bracket-round .cup-bracket-pair.is-single::before,
.cup-bracket-round .cup-bracket-pair.is-single::after {
  display: none;
}

.cup-bracket-junction {
  position: absolute;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(190, 229, 219, 0.54);
  pointer-events: none;
  z-index: 2;
}

.cup-bracket-round.is-left:not(.is-final) .cup-bracket-junction {
  right: -3px;
}

.cup-bracket-round.is-right:not(.is-final) .cup-bracket-junction {
  left: -3px;
}

.cup-bracket-junction::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 8px;
  height: 1px;
  background: rgba(190, 229, 219, 0.54);
}

.cup-bracket-round.is-left:not(.is-final) .cup-bracket-junction::after {
  left: 0;
}

.cup-bracket-round.is-right:not(.is-final) .cup-bracket-junction::after {
  right: 0;
}

.cup-bracket-pair.is-single .cup-bracket-junction {
  top: 50%;
  bottom: auto;
  height: 1px;
}

.cup-bracket-round.is-left:not(.is-final) .cup-bracket-match::after,
.cup-bracket-round.is-left:not(.is-final):not(.is-edge) .cup-bracket-match::before,
.cup-bracket-round.is-right:not(.is-final) .cup-bracket-match::before,
.cup-bracket-round.is-right:not(.is-final):not(.is-edge) .cup-bracket-match::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 4px;
  height: 1px;
  background: rgba(190, 229, 219, 0.54);
}

.cup-bracket-round.is-left:not(.is-final) .cup-bracket-match::after {
  right: -5px;
}

.cup-bracket-round.is-left:not(.is-final):not(.is-edge) .cup-bracket-match::before {
  left: -5px;
}

.cup-bracket-round.is-right:not(.is-final) .cup-bracket-match::before {
  left: -5px;
}

.cup-bracket-round.is-right:not(.is-final):not(.is-edge) .cup-bracket-match::after {
  right: -5px;
}

.cup-bracket-match {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  padding: 2px;
  border: 1px solid rgba(238, 248, 244, 0.76);
  border-radius: 7px;
  color: #06231f;
  text-decoration: none;
  background: rgba(238, 248, 244, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.cup-bracket-match span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) 8px;
  gap: 2px;
  align-items: center;
  min-width: 0;
}

.cup-bracket-match img {
  width: 8px;
  height: 8px;
  object-fit: cover;
  border-radius: 50%;
  background: #eef8f4;
}

.cup-bracket-match i {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(6, 35, 31, 0.18);
  border-radius: 50%;
  background: rgba(6, 35, 31, 0.05);
}

.cup-bracket-match.is-placeholder {
  border-color: rgba(190, 229, 219, 0.36);
  background: rgba(238, 248, 244, 0.72);
  box-shadow: none;
}

.cup-team-grid img {
  width: 13px;
  height: 13px;
  object-fit: cover;
  border-radius: 50%;
  background: #eef8f4;
}

.cup-bracket-match b {
  overflow: hidden;
  color: #06231f;
  font-size: 4.8px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-bracket-match strong {
  color: #06231f;
  font-size: 5.4px;
  font-weight: 950;
  text-align: right;
}

.cup-team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
  overflow: auto;
}

.cup-team-grid a {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 4px;
  align-items: center;
  min-height: 25px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cup-team-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.28);
  background: rgba(36, 208, 180, 0.08);
}

.cup-team-grid b,
.cup-team-grid small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-team-grid b {
  color: var(--white);
  font-size: 8px;
  font-weight: 900;
}

.cup-team-grid small {
  color: var(--muted);
  font-size: 7px;
  font-weight: 850;
}

.cup-bracket-modal[hidden] {
  display: none;
}

.cup-bracket-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 12, 10, 0.78);
  backdrop-filter: blur(10px);
}

.cup-bracket-modal-panel {
  width: min(1280px, 96vw);
  height: min(780px, 88vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(36, 208, 180, 0.28);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 0%, rgba(36, 208, 180, 0.12), transparent 34%),
    #061d19;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

.cup-bracket-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cup-bracket-modal-head h2 {
  margin: 2px 0 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1.05;
}

.cup-bracket-modal-head button {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
}

.cup-bracket-board-large {
  grid-template-columns: repeat(var(--round-count), minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 9px;
  overflow: hidden;
}

.cup-bracket-board-large .cup-bracket-round {
  grid-template-rows: 24px minmax(0, 1fr);
  min-width: 0;
}

.cup-bracket-board-large .cup-bracket-round h3 {
  font-size: 11px;
}

.cup-bracket-board-large .cup-bracket-round-matches {
  gap: 7px;
}

.cup-bracket-board-large .cup-bracket-match {
  min-height: 54px;
  padding: 6px;
  border-radius: 11px;
}

.cup-bracket-board-large .cup-bracket-match span {
  grid-template-columns: 18px minmax(0, 1fr) 18px;
  gap: 5px;
}

.cup-bracket-board-large .cup-bracket-match img {
  width: 18px;
  height: 18px;
}

.cup-bracket-board-large .cup-bracket-match i {
  width: 18px;
  height: 18px;
}

.cup-bracket-board-large .cup-bracket-match b {
  font-size: 12px;
}

.cup-bracket-board-large .cup-bracket-match strong {
  font-size: 13px;
}

.modal-open {
  overflow: hidden;
}

.cup-bracket {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.cup-bracket section {
  display: grid;
  gap: 6px;
}

.cup-bracket h3 {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.2;
  font-weight: 950;
  text-transform: uppercase;
}

.cup-bracket a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 22px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cup-bracket a:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.26);
  background: rgba(255, 255, 255, 0.052);
}

.cup-bracket span,
.cup-bracket small,
.cup-bracket em {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-bracket b {
  overflow: hidden;
  color: var(--white);
  font-size: 10px;
  font-weight: 930;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cup-bracket small {
  grid-column: 2 / -1;
}

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

.team-model-top {
  display: grid;
  gap: 6px;
}

.team-model-top div {
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-model-top span,
.team-model-top small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.team-model-top b {
  display: block;
  margin: 4px 0 3px;
  color: var(--green);
  font-size: 16px;
  line-height: 1;
}

.team-history-chip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.team-history-chip {
  position: relative;
  min-height: 46px;
  padding: 7px 9px 7px 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-history-chip::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(36, 208, 180, 0.08);
}

.team-history-chip span,
.team-history-chip small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.25;
  font-weight: 880;
}

.team-history-chip strong {
  display: block;
  margin: 2px 0 1px;
  color: var(--white);
  font-size: 13px;
  line-height: 1.08;
  font-weight: 950;
}

.team-board-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.team-board-grid div {
  position: relative;
  min-height: 54px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.033);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-board-grid div:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.28);
  background: rgba(255, 255, 255, 0.052);
}

.team-board-grid span,
.team-board-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.25;
  font-weight: 880;
}

.team-board-grid b {
  display: block;
  margin: 4px 0 3px;
  overflow: hidden;
  color: var(--white);
  font-size: 13px;
  line-height: 1.05;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-board-grid .is-core {
  border-color: rgba(36, 208, 180, 0.22);
}

.team-board-grid .is-best {
  background: linear-gradient(135deg, rgba(36, 208, 180, 0.92), rgba(21, 180, 152, 0.44));
}

.team-board-grid .is-best span,
.team-board-grid .is-best small {
  color: rgba(0, 39, 32, 0.76);
}

.team-board-grid .is-best b {
  color: #001f1b;
}

.team-history-chip.is-best {
  border-color: rgba(36, 208, 180, 0.38);
  background: linear-gradient(135deg, rgba(36, 208, 180, 0.92), rgba(21, 180, 152, 0.46));
}

.team-history-chip.is-best span,
.team-history-chip.is-best small {
  color: rgba(0, 39, 32, 0.74);
}

.team-history-chip.is-best strong {
  color: #001f1b;
}

.team-history-chip.is-best::before {
  background: #00261f;
  box-shadow: 0 0 0 5px rgba(0, 39, 32, 0.1);
}

.team-competition-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.team-competition-table > div {
  display: grid;
  grid-template-columns: minmax(80px, 1fr) 36px 70px 58px 44px;
  gap: 8px;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.team-competition-table > div:first-child {
  border-top: 0;
}

.team-competition-table .is-head {
  color: rgba(204, 225, 219, 0.56);
  background: rgba(255, 255, 255, 0.035);
}

.team-competition-table b {
  color: var(--white);
}

.team-progress-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.team-progress-grid div {
  min-height: 50px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-progress-grid span,
.team-progress-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
}

.team-progress-grid b {
  float: right;
  color: var(--white);
  font-size: 13px;
}

.team-progress-grid i {
  display: block;
  clear: both;
  height: 5px;
  margin: 8px 0 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(190, 229, 219, 0.12);
}

.team-progress-grid i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.team-minute-chart {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.team-minute-chart div {
  min-height: 86px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.032);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-minute-chart div:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.26);
}

.team-minute-chart span,
.team-minute-chart small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-align: center;
}

.team-minute-chart b {
  position: relative;
  display: block;
  height: 46px;
  margin: 6px auto;
  border-bottom: 1px solid rgba(190, 229, 219, 0.14);
}

.team-minute-chart b::before,
.team-minute-chart b::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 12px;
  border-radius: 7px 7px 0 0;
}

.team-minute-chart b::before {
  left: calc(50% - 15px);
  height: calc(var(--for) * 2.4px);
  background: var(--green);
}

.team-minute-chart b::after {
  right: calc(50% - 15px);
  height: calc(var(--against) * 2.4px);
  background: rgba(255, 89, 89, 0.92);
}

.team-squad-groups {
  display: grid;
  gap: 10px;
}

.team-lineup {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.team-lineup-pitch {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(36, 208, 180, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(rgba(2, 29, 24, 0.88), rgba(2, 29, 24, 0.88)),
    repeating-linear-gradient(90deg, rgba(36, 208, 180, 0.05) 0 1px, transparent 1px 46px);
}

.team-lineup-pitch .line {
  display: grid;
  gap: 8px;
  justify-content: center;
}

.team-lineup-pitch .forwards,
.team-lineup-pitch .mids {
  grid-template-columns: repeat(3, minmax(96px, 130px));
}

.team-lineup-pitch .defenders {
  grid-template-columns: repeat(4, minmax(82px, 112px));
}

.team-lineup-pitch .keeper {
  grid-template-columns: minmax(96px, 130px);
}

.team-lineup-pitch span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.team-lineup-pitch span:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 208, 180, 0.28);
  background: rgba(36, 208, 180, 0.10);
}

.team-formation-pitch {
  position: relative;
  width: 100%;
  aspect-ratio: 0.68;
  height: auto;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 208, 180, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(rgba(2, 18, 15, 0.28), rgba(2, 18, 15, 0.38)),
    repeating-linear-gradient(90deg, rgba(28, 129, 78, 0.72) 0 12.5%, rgba(35, 151, 85, 0.72) 12.5% 25%),
    linear-gradient(180deg, #185f38, #0f4d31);
}

.team-formation-pitch .pitch-lines {
  position: absolute;
  inset: 20px 28px;
  border: 2px solid rgba(221, 255, 235, 0.35);
  pointer-events: none;
}

.team-formation-pitch .pitch-lines::before,
.team-formation-pitch .pitch-lines::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.team-formation-pitch .pitch-lines::before {
  left: 50%;
  top: calc(50% - 42px);
  width: 84px;
  height: 84px;
  border: 2px solid rgba(221, 255, 235, 0.27);
  border-radius: 50%;
  transform: translateX(-50%);
}

.team-formation-pitch .pitch-lines::after {
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(221, 255, 235, 0.22);
  transform: none;
}

.player-dot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 70px;
  display: grid;
  justify-items: center;
  gap: 3px;
  transform: translate(-50%, -50%);
  transition: transform 180ms ease, filter 180ms ease;
}

.player-dot:hover {
  z-index: 3;
  transform: translate(-50%, calc(-50% - 3px));
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.28));
}

.player-dot span {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(238, 255, 249, 0.92);
  border-radius: 50%;
  color: #05231e;
  background: #eef8f5;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.24);
}

.player-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eef8f5;
}

.player-dot.no-photo span {
  color: #05231e;
  font-size: 14px;
}

.player-dot em {
  position: absolute;
  right: -2px;
  bottom: -2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(238, 255, 249, 0.9);
  border-radius: 50%;
  color: #05231e;
  background: var(--green);
  font-size: 8px;
  font-style: normal;
  font-weight: 950;
}

.player-dot.no-photo em {
  position: static;
  width: auto;
  min-width: 0;
  height: auto;
  border: 0;
  background: transparent;
  font-size: 14px;
}

.player-dot b {
  max-width: 82px;
  padding: 2px 5px;
  overflow: hidden;
  border-radius: 999px;
  color: var(--white);
  background: rgba(2, 18, 15, 0.68);
  font-size: 9px;
  line-height: 1.05;
  font-weight: 950;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-dot small {
  color: rgba(238, 255, 249, 0.75);
  font-size: 8px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.player-dot.keeper span {
  border-color: rgba(217, 244, 95, 0.92);
}

.team-lineup div {
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}

.team-lineup b,
.team-lineup span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-lineup b {
  color: var(--white);
  font-size: 11px;
}

.team-lineup span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
}

.team-full-squad {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.024);
}

.team-full-squad summary {
  min-height: 32px;
  padding: 0 10px;
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.team-full-squad p {
  margin: 0;
  padding: 0 10px 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 720;
}

.team-squad-groups article {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.024);
}

.team-squad-groups h3 {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 13px;
}

.team-squad-groups h3 span {
  color: var(--green);
}

.team-player-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.team-player-grid div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 6px;
  border: 1px solid rgba(190, 229, 219, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.026);
}

.team-player-grid img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.team-player-grid b,
.team-player-grid small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-player-grid b {
  color: var(--white);
  font-size: 10px;
  font-weight: 900;
}

.team-player-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 820;
}

.team-tips-compact {
  padding-bottom: 16px;
}

.team-tips-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.team-tips-nav a {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: #06231f;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(36, 208, 180, 0.88);
}

.team-tips-body {
  columns: 2;
  column-gap: 28px;
}

.team-tips-body h3 {
  break-after: avoid;
  margin: 0 0 6px;
  color: var(--white);
  font-size: 14px;
}

.team-tips-body h3:not(:first-child) {
  margin-top: 12px;
}

.team-tips-body p {
  break-inside: avoid;
  margin: 0 0 12px;
  color: var(--soft);
  font-size: 11px;
  line-height: 1.75;
  font-weight: 720;
}

@media (max-width: 980px) {
  .team-overview-grid,
  .team-teamdesk,
  .league-teamdesk {
    grid-template-columns: 1fr;
    height: auto;
  }

  .team-teamdesk > .team-compact-card,
  .league-teamdesk > .team-compact-card,
  .team-match-stack .team-compact-card {
    min-height: auto;
  }

  .team-match-stack {
    grid-template-rows: none;
  }

  .team-micro-grid,
  .team-micro-grid-tight,
  .team-split,
  .team-lineup,
  .team-player-grid,
  .team-board-grid,
  .league-club-grid,
  .team-progress-grid,
  .team-minute-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-formation-pitch {
    width: 100%;
    aspect-ratio: 0.68;
    height: auto;
    min-height: 0;
  }

  .player-dot {
    width: 62px;
  }

  .player-dot span {
    width: 42px;
    height: 42px;
  }

  .team-lineup-pitch .forwards,
  .team-lineup-pitch .mids,
  .team-lineup-pitch .defenders {
    grid-template-columns: repeat(2, minmax(110px, 1fr));
  }

  .team-section-head {
    display: grid;
  }

  .team-tips-body {
    columns: 1;
  }
}

@media (max-width: 640px) {
  .team-micro-grid,
  .team-micro-grid-tight,
  .team-split,
  .team-lineup,
  .team-board-grid,
  .team-lineup-pitch .forwards,
  .team-lineup-pitch .mids,
  .team-lineup-pitch .defenders,
  .team-progress-grid,
  .team-minute-chart,
  .team-player-grid,
  .team-row-list a {
    grid-template-columns: 1fr;
  }

  .team-formation-pitch {
    width: 100%;
    aspect-ratio: 0.68;
    height: auto;
    min-height: 0;
  }
}

@keyframes rowReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes skeletonPulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@keyframes slowSpin {
  to { transform: rotate(360deg); }
}

@keyframes calmTitleFloatIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(10px);
  }
  62% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes calmCopyFloatIn {
  from {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero h1,
.hero-copy h1,
.product-hero h1,
.calm-premium-copy h1 {
  animation: calmTitleFloatIn 960ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 em,
.hero-copy h1 em,
.product-hero h1 em,
.calm-premium-copy h1 em {
  display: inline-block;
  animation: calmTitleFloatIn 1080ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

.hero .eyebrow,
.hero-copy .eyebrow,
.product-hero .eyebrow,
.calm-pill-label {
  animation: calmCopyFloatIn 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero .lead,
.hero-copy p,
.product-hero p,
.calm-premium-copy p {
  animation: calmCopyFloatIn 820ms cubic-bezier(0.16, 1, 0.3, 1) 120ms both;
}

@media (prefers-reduced-motion: reduce) {
  .hero h1,
  .hero-copy h1,
  .product-hero h1,
  .calm-premium-copy h1,
  .hero h1 em,
  .hero-copy h1 em,
  .product-hero h1 em,
  .calm-premium-copy h1 em,
  .hero .eyebrow,
  .hero-copy .eyebrow,
  .product-hero .eyebrow,
  .calm-pill-label,
  .hero .lead,
  .hero-copy p,
  .product-hero p,
  .calm-premium-copy p {
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

.locked-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.locked-card {
  position: relative;
  padding: 12px;
  border: 1px solid rgba(215, 243, 90, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(215, 243, 90, 0.1), transparent),
    rgba(255, 255, 255, 0.045);
}

.lock {
  position: absolute;
  right: 12px;
  top: 12px;
  color: var(--gold);
  font-weight: 900;
  font-size: 10px;
}

.data-block {
  padding: 14px;
}

.compact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.info-grid > div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.info-grid span,
.info-grid em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
}

.info-grid b {
  display: block;
  margin: 4px 0 3px;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.context-list.tight {
  gap: 0;
}

.context-list.tight .context-item {
  padding: 9px 0;
  grid-template-columns: 52px 1fr auto;
  font-size: 12px;
}

.compact-table th,
.compact-table td {
  padding: 8px 9px;
}

.aux-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.aux-item {
  min-height: 82px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.aux-item span,
.aux-item em {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  font-style: normal;
}

.aux-item b {
  display: block;
  margin: 6px 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.25;
}

.lineup-mini {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lineup-mini > div {
  display: grid;
  gap: 5px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.lineup-mini b {
  color: #fff;
  font-size: 13px;
}

.lineup-mini span {
  color: var(--soft);
  font-size: 12px;
  line-height: 1.35;
}

.compact-copy {
  margin-top: 8px;
  color: var(--soft);
  font-size: 12px;
  line-height: 1.55;
}

.two-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bar-line {
  display: grid;
  grid-template-columns: 64px 1fr 34px;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  color: var(--soft);
  font-size: 11px;
}

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

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

.standings-row {
  display: grid;
  grid-template-columns: 28px 1fr repeat(6, 36px);
  gap: 6px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.standings-row.header {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.standings-row.focus {
  color: #fff;
  font-weight: 850;
}

.chart-card {
  padding: 18px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.chart-head h3 {
  font-size: 17px;
}

.chart {
  width: 100%;
  height: 120px;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    rgba(255, 255, 255, 0.035);
  background-size: 100% 30px, 48px 100%;
  position: relative;
  overflow: hidden;
}

.chart svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.tool-card {
  padding: 22px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tool-card h3 {
  font-size: 22px;
}

.tool-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.56;
}

.price-card {
  padding: 28px;
  min-height: 390px;
}

.price-card.featured {
  transform: translateY(-18px);
}

.price {
  margin-top: 20px;
  font-size: 58px;
  line-height: 1;
  font-weight: 760;
}

.price em {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86em;
  font-weight: 400;
}

.list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  color: var(--soft);
}

.list span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
}

.product-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 26px;
  align-items: stretch;
  min-height: 360px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    radial-gradient(circle at 78% 24%, rgba(38, 224, 194, 0.18), transparent 34%),
    linear-gradient(120deg, rgba(5, 34, 27, 0.94), rgba(5, 16, 15, 0.96)),
    url("assets/page-images/site-data-bg.jpg") center / cover;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 18, 16, 0.92), rgba(2, 18, 16, 0.55) 48%, rgba(2, 18, 16, 0.86)),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 100% 56px, 82px 100%;
}

.product-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -34%;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(38, 224, 194, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 54px rgba(38, 224, 194, 0.08);
}

.product-hero > * {
  position: relative;
  z-index: 1;
}

.product-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.product-hero h1 {
  max-width: 720px;
  margin-top: 18px;
  color: #fff;
  font-size: clamp(36px, 5.2vw, 66px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: 0;
}

.product-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.product-hero p {
  max-width: 600px;
  margin-top: 18px;
  color: rgba(235, 247, 241, 0.78);
  font-size: 15px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.entry-hero {
  grid-template-columns: minmax(0, 1fr) 380px;
}

.entry-map-panel {
  position: relative;
  align-self: center;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 224, 194, 0.18), transparent 42%),
    rgba(3, 21, 18, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.entry-map-panel::before,
.entry-map-panel::after {
  content: "";
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 50%;
}

.entry-map-panel::after {
  inset: 76px 46px;
  transform: rotate(-18deg);
  border-color: rgba(215, 243, 90, 0.18);
}

.entry-node {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid rgba(192, 229, 218, 0.2);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.entry-node:hover {
  transform: translateY(-3px);
  color: #fff;
  background: rgba(26, 215, 183, 0.22);
}

.entry-node.main {
  left: 50%;
  top: 50%;
  min-width: 120px;
  color: #04110f;
  background: var(--gold);
  border-color: rgba(215, 243, 90, 0.8);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 42px rgba(215, 243, 90, 0.24);
}

.entry-node.main:hover {
  transform: translate(-50%, -50%) translateY(-3px);
}

.entry-node:nth-child(2) { left: 28px; top: 44px; }
.entry-node:nth-child(3) { right: 26px; top: 62px; }
.entry-node:nth-child(4) { left: 36px; bottom: 42px; }
.entry-node:nth-child(5) { right: 38px; bottom: 54px; }
.entry-node:nth-child(6) { left: 50%; bottom: 22px; transform: translateX(-50%); }
.entry-node:nth-child(6):hover { transform: translateX(-50%) translateY(-3px); }

.premium-terminal,
.performance-hero-panel,
.tool-orbit {
  position: relative;
  align-self: center;
  min-height: 250px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(4, 28, 23, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px rgba(38, 224, 194, 0.05);
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--soft);
  font-size: 12px;
}

.signal-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.signal-line small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-line strong {
  color: #fff;
  font-size: 18px;
}

.signal-line em {
  color: var(--green);
  font-style: normal;
  font-weight: 850;
}

.tight-section {
  margin-top: 30px;
}

.compact-head {
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

.compact-head h2 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
}

.compact-head p {
  max-width: 620px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.66;
}

.premium-board-grid,
.tool-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.premium-choice,
.tool-hub-card,
.market-stat-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  animation: panelIn 560ms both;
}

.premium-choice {
  display: flex;
  min-height: 278px;
  padding: 22px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
}

.premium-choice:nth-child(2),
.tool-hub-card:nth-child(2),
.market-stat-card:nth-child(2) {
  animation-delay: 70ms;
}

.premium-choice:nth-child(3),
.tool-hub-card:nth-child(3),
.market-stat-card:nth-child(3) {
  animation-delay: 120ms;
}

.premium-choice:hover,
.tool-hub-card:hover,
.market-stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 224, 194, 0.34);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.12);
}

.premium-choice.active,
.tool-hub-card.featured,
.market-stat-card.core {
  color: #fff;
  border-color: rgba(38, 224, 194, 0.28);
  background:
    radial-gradient(circle at 78% 22%, rgba(38, 224, 194, 0.18), transparent 34%),
    linear-gradient(135deg, #061a16, #02110f);
}

.choice-kicker,
.tool-hub-card small,
.stat-title small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.premium-choice h3,
.tool-hub-card h3,
.stat-title h3 {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.05;
}

.premium-choice p,
.tool-hub-card p,
.market-stat-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.56;
}

.premium-choice.active p,
.tool-hub-card.featured p,
.market-stat-card.core p {
  color: rgba(235, 247, 241, 0.7);
}

.choice-data {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.choice-data span,
.premium-signal-row span,
.period-tabs button,
.membership-strip span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.choice-data span {
  padding: 8px 10px;
}

.premium-choice.active .choice-data span,
.tool-hub-card.featured em {
  background: rgba(255, 255, 255, 0.1);
  color: var(--green);
}

.mini-curve {
  width: 100%;
  height: 68px;
  margin-top: 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(38, 224, 194, 0.09), rgba(38, 224, 194, 0.015));
}

.mini-curve path {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.5;
}

.premium-preview-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
}

.preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 6px;
}

.preview-summary span {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.premium-signal-row {
  display: grid;
  grid-template-columns: 48px 1.2fr 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  transition: transform 160ms ease, color 160ms ease;
}

.premium-signal-row:hover {
  transform: translateX(5px);
  color: var(--green-dark);
}

.premium-signal-row strong {
  font-size: 16px;
}

.premium-signal-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.premium-signal-row span {
  padding: 8px 10px;
  justify-self: start;
}

.detail-chip {
  display: inline-flex;
  justify-content: center;
  padding: 9px 13px;
  border-radius: 999px;
  background: #061a16;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.performance-hero-panel {
  display: grid;
  gap: 12px;
}

.performance-hero-panel div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
}

.performance-hero-panel small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.performance-hero-panel strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 28px;
}

.performance-hero-panel span {
  display: block;
  color: rgba(235, 247, 241, 0.68);
  font-size: 12px;
}

.period-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 6px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.period-tabs button {
  border: 0;
  padding: 10px 18px;
  cursor: pointer;
}

.period-tabs button.active {
  background: var(--green-dark);
  color: #fff;
}

.market-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.market-stat-card {
  min-height: 260px;
  padding: 18px;
}

.stat-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stat-title h3 {
  margin-top: 5px;
  font-size: 22px;
}

.stat-title strong {
  color: var(--green-dark);
  font-size: 28px;
}

.market-stat-card.core .stat-title strong {
  color: var(--lime);
}

.spark-chart {
  position: relative;
  width: 100%;
  height: 108px;
  margin-top: 18px;
  overflow: visible;
  border-radius: 16px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    rgba(6, 26, 22, 0.06);
  background-size: 100% 26px, 54px 100%;
}

.spark-chart svg {
  display: block;
  width: 100%;
  height: 100%;
}

.spark-fill {
  fill: rgba(38, 224, 194, 0.12);
}

.spark-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
}

.market-stat-card.core .spark-fill {
  fill: rgba(210, 255, 54, 0.1);
}

.market-stat-card.core .spark-line {
  stroke: var(--lime);
}

.spark-chart circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 2;
  cursor: crosshair;
}

.chart-tooltip {
  position: fixed;
  z-index: 50;
  display: none;
  min-width: 150px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 224, 194, 0.32);
  border-radius: 14px;
  background: rgba(3, 17, 15, 0.92);
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.26);
  pointer-events: none;
}

.chart-tooltip strong {
  display: block;
  font-size: 17px;
}

.chart-tooltip span {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 11px;
}

/* History statistics page */
.history-page {
  padding-top: 14px;
}

.history-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.32fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.history-copy {
  display: grid;
  min-height: 160px;
  align-content: center;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 82% 20%, rgba(38, 224, 194, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(6, 26, 22, 0.97), rgba(2, 17, 15, 0.92));
  color: #fff;
  overflow: hidden;
}

.history-copy h1 {
  max-width: 820px;
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 0.98;
}

.history-copy h1 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 500;
}

.history-copy p {
  max-width: 700px;
  margin-top: 10px;
  color: rgba(235, 247, 241, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.history-hero-kpis {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(4, 28, 23, 0.82);
  box-shadow: inset 0 0 0 1px rgba(38, 224, 194, 0.05);
}

.history-hero-kpis div {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.history-hero-kpis small,
.history-kpi-row small,
.history-chart-head span,
.history-picker-head span {
  color: rgba(235, 247, 241, 0.72);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.history-hero-kpis strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 18px;
}

.history-hero-kpis span {
  display: block;
  margin-top: 2px;
  color: rgba(235, 247, 241, 0.68);
  font-size: 11px;
}

.history-board {
  position: relative;
  padding: 14px;
  border: 1px solid rgba(38, 224, 194, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(circle at 72% 8%, rgba(38, 224, 194, 0.1), transparent 28%),
    linear-gradient(135deg, rgba(5, 34, 29, 0.98), rgba(1, 13, 12, 0.96));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.18);
}

.history-tabs {
  display: flex;
  width: min(620px, 100%);
  gap: 8px;
  padding: 8px;
  margin: 0 auto 12px;
  border-radius: 999px;
  border: 1px solid rgba(38, 224, 194, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.history-tabs button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  color: rgba(235, 247, 241, 0.76);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.history-tabs button:hover {
  transform: translateY(-1px);
}

.history-tabs button.active {
  color: #062b27;
  background: var(--green);
}

.history-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.38fr) minmax(0, 1fr);
  gap: 14px;
}

.history-market-picker,
.history-main-panel,
.history-compare-panel {
  min-width: 0;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 26px;
  background: rgba(3, 20, 18, 0.78);
}

.history-market-picker {
  padding: 12px;
}

.history-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.history-picker-head b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #062b27;
  background: var(--green);
}

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

.history-market-chip {
  min-height: 62px;
  padding: 8px;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 17px;
  color: #f2fbf7;
  background: rgba(255, 255, 255, 0.07);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.history-market-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 224, 194, 0.56);
  background: rgba(38, 224, 194, 0.12);
}

.history-market-chip.active {
  color: #062b27;
  border-color: rgba(38, 224, 194, 0.92);
  background: var(--green);
}

.history-market-chip.core:not(.active) {
  border-color: rgba(38, 224, 194, 0.38);
  background: rgba(26, 215, 183, 0.12);
}

.history-market-chip span,
.history-market-chip small {
  display: block;
  color: rgba(235, 247, 241, 0.64);
  font-size: 10px;
  font-weight: 900;
}

.history-market-chip small b {
  color: #fff;
  font-weight: 950;
}

.history-market-chip.active span,
.history-market-chip.active small {
  color: rgba(6, 43, 39, 0.7);
}

.history-market-chip.active small b {
  color: #062b27;
}

.history-market-chip strong {
  display: block;
  margin: 4px 0;
  font-size: 13px;
  line-height: 1.05;
}

.history-main-panel {
  padding: 14px;
}

.history-panel-head {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.history-panel-head h2 {
  margin-top: 4px;
  color: #fff;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 0.95;
}

.history-panel-head p {
  max-width: 420px;
  margin: 0;
  color: rgba(235, 247, 241, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

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

.history-kpi-row div {
  padding: 10px;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6, 26, 22, 0.96), rgba(4, 42, 35, 0.92));
}

.history-kpi-row strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.history-kpi-row span {
  display: block;
  margin-top: 6px;
  color: var(--green);
  font-size: 11px;
  font-weight: 850;
}

.history-chart-card {
  position: relative;
  min-width: 0;
  margin-top: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(38, 224, 194, 0.16);
  background:
    radial-gradient(circle at 82% 14%, rgba(38, 224, 194, 0.16), transparent 28%),
    linear-gradient(135deg, #041713, #010908);
}

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

.history-chart-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.history-chart-head b {
  color: rgba(235, 247, 241, 0.78);
  font-size: 12px;
}

.history-download-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(38, 224, 194, 0.42);
  border-radius: 999px;
  color: #062b27;
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.history-download-link:hover {
  transform: translateY(-1px);
  background: #fff;
}

#historyChart {
  display: block;
  width: 100%;
  min-height: 250px;
}

.history-grid-lines line {
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1;
}

.history-axis-labels text {
  fill: rgba(235, 247, 241, 0.78);
  font-size: 11px;
  font-weight: 750;
  text-anchor: middle;
}

.history-axis-labels text:nth-child(-n+3) {
  text-anchor: start;
}

.history-odds-bars rect {
  opacity: 0.9;
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: historyBarGrow 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.history-odds-bars .odds-range {
  fill: rgba(38, 224, 194, 0.68);
}

.history-area {
  fill: url(#historyLineFill);
}

.history-line {
  fill: none;
  stroke: var(--green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: historyLineDraw 920ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.history-point circle {
  fill: #fff;
  stroke: var(--green);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: historyPointIn 420ms ease forwards;
  animation-delay: 540ms;
}

.history-hover-zone {
  fill: transparent;
  cursor: crosshair;
}

.history-chart-tip {
  position: absolute;
  z-index: 4;
  min-width: 170px;
  padding: 10px 12px;
  border: 1px solid rgba(38, 224, 194, 0.42);
  border-radius: 14px;
  background: rgba(1, 13, 12, 0.94);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
  pointer-events: none;
}

.history-chart-tip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-size: 13px;
}

.history-chart-tip span {
  display: block;
  color: rgba(235, 247, 241, 0.82);
  font-size: 12px;
  line-height: 1.45;
}

@keyframes historyBarGrow {
  from {
    opacity: 0;
    transform: scaleY(0.08);
  }
  to {
    opacity: 0.9;
    transform: scaleY(1);
  }
}

@keyframes historyLineDraw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes historyPointIn {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.history-compare-panel {
  margin-top: 18px;
  padding: 18px;
  color: #fff;
}

.history-compare-panel .compact-head h2 {
  color: #fff;
}

.history-compare-panel .compact-head p {
  color: rgba(235, 247, 241, 0.68);
}

.history-table-wrap {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(235, 247, 241, 0.88);
  font-size: 13px;
}

.history-table th,
.history-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(38, 224, 194, 0.12);
  text-align: left;
  white-space: nowrap;
}

.history-table th {
  color: rgba(235, 247, 241, 0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-table tbody tr {
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.history-table tbody tr:hover,
.history-table tbody tr.active {
  background: rgba(38, 224, 194, 0.12);
}

.history-table td b {
  display: inline-block;
  min-width: 28px;
  color: var(--green);
}

.history-table .good {
  color: var(--green);
  font-weight: 900;
}

.history-table .bad {
  color: #b84444;
  font-weight: 900;
}

@media (max-width: 1050px) {
  .history-hero,
  .history-layout {
    grid-template-columns: 1fr;
  }

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

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

  .history-market-chip {
    min-height: 58px;
  }
}

@media (max-width: 760px) {
  .history-page {
    padding-top: 10px;
  }

  .history-copy {
    min-height: auto;
    padding: 18px;
  }

  .history-copy h1 {
    font-size: 38px;
  }

  .history-hero-kpis,
  .history-market-grid,
  .history-kpi-row {
    grid-template-columns: 1fr;
  }

  .history-tabs {
    border-radius: 22px;
  }

  .history-tabs button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 13px;
  }

  .history-panel-head {
    display: grid;
  }

  .history-market-picker,
  .history-main-panel,
  .history-board,
  .history-compare-panel {
    border-radius: 20px;
  }

  #historyChart {
    width: 720px;
    max-width: none;
    min-width: 720px;
  }

  .history-chart-card {
    max-width: 100%;
    overflow-x: auto;
  }
}

.tool-orbit {
  display: grid;
  place-items: center;
  min-height: 280px;
}

.tool-orbit span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  background: radial-gradient(circle at 32% 28%, #8ffff0, var(--green) 48%, #075547 100%);
  box-shadow: 0 0 36px rgba(38, 224, 194, 0.24);
  animation: orbitPulse 2.6s ease-in-out infinite;
}

.tool-orbit span:nth-child(1) { transform: translate(-112px, -76px); }
.tool-orbit span:nth-child(2) { transform: translate(98px, -58px); animation-delay: 0.3s; }
.tool-orbit span:nth-child(3) { transform: translate(-54px, 78px); animation-delay: 0.6s; }
.tool-orbit span:nth-child(4) { transform: translate(132px, 86px); animation-delay: 0.9s; }

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

.tool-hub-card {
  min-height: 236px;
  padding: 20px;
  color: var(--ink);
}

.tool-index {
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.tool-hub-card em {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

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

.entry-card {
  min-height: 192px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  animation: panelIn 520ms ease both;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.entry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(38, 224, 194, 0.42);
  background: linear-gradient(180deg, rgba(38, 224, 194, 0.12), rgba(255, 255, 255, 0.025));
}

.entry-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.entry-card h3 {
  margin-top: 36px;
  font-size: 25px;
  line-height: 1.08;
}

.entry-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.membership-strip {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(38, 224, 194, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 20%, rgba(38, 224, 194, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.94);
}

.membership-strip h3 {
  font-size: 24px;
}

.membership-strip p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.membership-strip span {
  padding: 10px 14px;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbitPulse {
  0%, 100% {
    box-shadow: 0 0 28px rgba(38, 224, 194, 0.2);
  }
  50% {
    box-shadow: 0 0 52px rgba(38, 224, 194, 0.34);
  }
}

.footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .topbar .shell,
  .hero,
  .match-lab-hero,
  .product-hero,
  .detail-layout,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .topbar .shell {
    padding: 12px 0;
  }

  .nav,
  .actions {
    justify-content: flex-start;
  }

  .match-row {
    grid-template-columns: 40px 1fr;
  }

  .match-row > :nth-child(n + 3) {
    grid-column: 2;
  }

  .selector-grid,
  .coverage-strip,
  .lite-row,
  .match-table-lite.show-market .lite-row {
    grid-template-columns: 1fr;
  }

  .selector-head,
  .match-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .match-lab-hero {
    padding: 26px;
  }

  .match-hero-photo {
    min-height: 164px;
  }

  .match-hero-photo img {
    height: 164px;
  }

  .teams {
    grid-template-columns: 28px 1fr;
  }

  .teams em,
  .teams small {
    grid-column: 2;
    justify-self: start;
  }

  .market-cell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: left;
  }

  .premium-board-grid,
  .entry-system-grid,
  .market-stat-grid,
  .tool-hub-grid,
  .premium-signal-row,
  .membership-strip {
    grid-template-columns: 1fr;
  }

  .membership-strip {
    display: grid;
  }

  .product-hero {
    padding: 24px;
  }

  .product-hero h1 {
    font-size: clamp(32px, 12vw, 48px);
  }

  .entry-map-panel {
    display: grid;
    min-height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 18px;
  }

  .entry-map-panel::before,
  .entry-map-panel::after {
    display: none;
  }

  .entry-node,
  .entry-node.main,
  .entry-node:nth-child(2),
  .entry-node:nth-child(3),
  .entry-node:nth-child(4),
  .entry-node:nth-child(5),
  .entry-node:nth-child(6) {
    position: static;
    min-width: 0;
    width: 100%;
    min-height: 42px;
    transform: none;
  }

  .entry-node:hover,
  .entry-node.main:hover,
  .entry-node:nth-child(6):hover {
    transform: translateY(-2px);
  }

  .match-hero-cn,
  .market-summary,
  .locked-strip,
  .compact-info-grid,
  .info-grid,
  .lineup-mini,
  .two-stat {
    grid-template-columns: 1fr;
  }

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

  .standings-row {
    grid-template-columns: 28px 1fr repeat(3, 38px);
  }

  .standings-row > :nth-child(n + 6) {
    display: none;
  }
}

@media (max-width: 640px) {
  .entry-map-panel {
    grid-template-columns: 1fr;
  }

  .product-hero {
    border-radius: 26px;
  }
}

/* Calmlyss-inspired premium board selector */
.premium-calm-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 58% 18%, rgba(26, 215, 183, 0.14), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(215, 243, 90, 0.06), transparent 28%),
    linear-gradient(135deg, #020807, #071916 52%, #030907);
  color: var(--text);
}

.calm-tag-grid span:active,
.calm-board-card:active,
.calm-board-foot a:active {
  transform: translateY(0) scale(0.985);
}

.premium-calm-main {
  padding: 0 0 30px;
}

.calm-premium-section {
  width: min(1400px, calc(100vw - 150px));
  margin: 0 auto;
  padding: 24px 0 24px;
  overflow: hidden;
  background: transparent;
}

.calm-premium-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: end;
  margin-bottom: 22px;
}

.calm-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #08201c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 36px rgba(5, 26, 23, 0.08);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.calm-pill-label span,
.calm-tag-grid i,
.calm-level i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #071613;
}

.calm-premium-copy h1 {
  max-width: 680px;
  margin-top: 12px;
  color: #eef8f4;
  font-size: clamp(32px, 2.8vw, 44px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0;
}

.calm-premium-copy h1 em {
  display: inline-block;
  color: #9bf4e4;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.calm-premium-copy p {
  max-width: 520px;
  margin-top: 12px;
  color: rgba(194, 214, 208, 0.82);
  font-size: 12.5px;
  line-height: 1.6;
}

.calm-tag-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  align-self: end;
}

.calm-tag-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #eef8f4;
  background: rgba(255, 255, 255, 0.08);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 190ms ease, background 190ms ease, border-color 190ms ease;
}

.calm-tag-grid i {
  width: 7px;
  height: 7px;
}

.calm-tag-grid span:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: rgba(123, 242, 216, 0.34);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

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

.calm-board-card {
  display: block;
  color: #09201c;
  animation: panelIn 620ms both;
  cursor: pointer;
}

.calm-board-card:nth-child(2) {
  animation-delay: 80ms;
}

.calm-board-card:nth-child(3) {
  animation-delay: 150ms;
}

.calm-board-photo {
  position: relative;
  min-height: 0;
  aspect-ratio: 1 / 1;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #061512;
  box-shadow: 0 22px 52px rgba(5, 26, 23, 0.14);
  transition: transform 260ms ease, box-shadow 260ms ease;
}

.calm-board-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 40%, rgba(3, 19, 17, 0.5)),
    radial-gradient(circle at 50% 52%, rgba(38, 224, 194, 0.15), transparent 36%);
  opacity: 0.7;
  transition: opacity 260ms ease;
}

.calm-board-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.04);
  transform: scale(1);
  transition: transform 520ms ease, filter 260ms ease;
}

.card-ah img {
  object-position: 45% 50%;
}

.card-ou img {
  object-position: 54% 50%;
}

.card-h1x2 img {
  object-position: 62% 50%;
}

.calm-board-photo figcaption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calm-level,
.calm-time {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  color: #10221e;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 24px rgba(2, 18, 16, 0.12);
  font-size: 11px;
  font-weight: 820;
  transition: transform 180ms ease, background 180ms ease;
}

.calm-level {
  gap: 10px;
}

.calm-level i {
  background: #1f9b84;
}

.calm-time {
  white-space: nowrap;
}

.calm-card-reveal {
  position: absolute;
  z-index: 3;
  right: 16px;
  bottom: 58px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(3, 19, 17, 0.68);
  opacity: 0;
  backdrop-filter: blur(14px);
  transform: translateY(16px);
  transition: opacity 230ms ease, transform 230ms ease;
}

.calm-card-reveal strong {
  font-size: 12.5px;
}

.calm-card-reveal small {
  color: rgba(235, 247, 241, 0.72);
  font-size: 10.5px;
  line-height: 1.45;
}

.calm-card-copy {
  padding: 12px 0 0;
}

.calm-card-copy h2 {
  font-size: clamp(17px, 1.2vw, 22px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.calm-card-copy p {
  max-width: 380px;
  margin-top: 7px;
  color: #60756e;
  font-size: 11px;
  line-height: 1.5;
}

.calm-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.calm-card-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #0f6e5f;
  background: #eaf2ef;
  font-size: 9.5px;
  font-weight: 900;
}

.calm-board-card:hover .calm-board-photo {
  transform: translateY(-8px) rotate(-0.35deg);
  box-shadow: 0 30px 70px rgba(5, 26, 23, 0.2);
}

.calm-board-card:hover .calm-board-photo img {
  filter: saturate(1.14) contrast(1.08);
  transform: scale(1.065);
}

.calm-board-card:hover .calm-board-photo::after {
  opacity: 0.95;
}

.calm-board-card:hover .calm-card-reveal {
  opacity: 1;
  transform: translateY(0);
}

.calm-board-card:hover .calm-card-copy h2 {
  color: #0f6e5f;
}

.calm-board-card:hover .calm-level,
.calm-board-card:hover .calm-time {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.98);
}

.calm-board-card:focus-visible,
.calm-board-foot a:focus-visible,
.calm-tag-grid span:focus-visible {
  outline: 2px solid rgba(18, 111, 96, 0.55);
  outline-offset: 5px;
}

.calm-board-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.calm-board-foot a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(18, 111, 96, 0.16);
  border-radius: 999px;
  color: #0f6e5f;
  background: #edf5f2;
  font-size: 11px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.calm-board-foot a:hover {
  transform: translateY(-3px);
  color: #fff;
  border-color: #0f6e5f;
  background: #0f6e5f;
  box-shadow: 0 16px 34px rgba(15, 110, 95, 0.16);
}

.calm-board-foot a:nth-child(2):hover {
  border-color: #09201c;
  background: #09201c;
}

@media (max-width: 1100px) {
  .calm-premium-section {
    width: min(100% - 36px, 920px);
    padding: 34px 0 38px;
  }

  .calm-premium-head,
  .calm-board-grid {
    grid-template-columns: 1fr;
  }

  .calm-tag-grid {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .premium-calm-main {
    padding: 18px 0 46px;
  }

  .calm-premium-section {
    width: calc(100% - 22px);
    padding: 30px 0 34px;
  }

  .calm-premium-head {
    gap: 22px;
    margin-bottom: 26px;
  }

  .calm-premium-copy h1 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .calm-premium-copy p {
    font-size: 13px;
  }

  .calm-tag-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .calm-tag-grid span {
    min-height: 42px;
    justify-content: flex-start;
  }

  .calm-board-grid {
    gap: 26px;
  }

  .calm-board-photo,
  .calm-board-photo img {
    min-height: 0;
  }

  .calm-board-photo figcaption {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .calm-level,
  .calm-time {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .calm-card-reveal {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    margin: 12px 14px 0;
    opacity: 1;
    transform: none;
  }

  .calm-card-copy {
    padding-top: 16px;
  }
}

/* Calmlyss-inspired membership purchase page */
.purchase-premium-section {
  position: relative;
  isolation: isolate;
  width: min(1320px, calc(100vw - 96px));
  padding: 46px 0 34px;
}

.purchase-premium-section::before {
  content: "";
  position: absolute;
  inset: 18px -34px 78px;
  z-index: -1;
  border: 1px solid rgba(123, 242, 216, 0.1);
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(26, 215, 183, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(7, 24, 21, 0.72), rgba(2, 8, 7, 0.08));
  background-size: 54px 54px, 54px 54px, auto, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.purchase-premium-section::after {
  content: "";
  position: absolute;
  top: 108px;
  right: -8px;
  z-index: -1;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  border: 1px solid rgba(123, 242, 216, 0.16);
  background:
    repeating-linear-gradient(135deg, rgba(123, 242, 216, 0.12) 0 1px, transparent 1px 12px),
    rgba(255, 255, 255, 0.02);
  opacity: 0.48;
}

.purchase-tag-grid span {
  background: rgba(255, 255, 255, 0.1);
}

.purchase-plan-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 18px;
}

.purchase-plan-card {
  position: relative;
  display: flex;
  min-height: 460px;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  padding: 26px;
  animation: panelIn 620ms both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.purchase-plan-card:nth-child(2) {
  animation-delay: 90ms;
}

.purchase-plan-card:nth-child(3) {
  animation-delay: 160ms;
}

.purchase-plan-card.light {
  border: 1px solid rgba(15, 110, 95, 0.14);
  background:
    radial-gradient(circle at 88% 8%, rgba(26, 215, 183, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfffd, #eaf4f1);
  color: #0a211d;
  box-shadow: 0 22px 58px rgba(1, 12, 10, 0.18);
}

.purchase-plan-card.featured {
  min-height: 496px;
  margin-top: -18px;
  border: 1px solid rgba(123, 242, 216, 0.36);
  background:
    radial-gradient(circle at 72% 12%, rgba(123, 242, 216, 0.26), transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(215, 243, 90, 0.12), transparent 28%),
    linear-gradient(145deg, #02100e, #07322d 62%, #020807);
  color: #f3fffb;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.36);
}

.purchase-plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.16;
}

.purchase-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.28);
}

.purchase-plan-card.featured:hover {
  transform: translateY(-26px);
  border-color: rgba(215, 243, 90, 0.55);
  box-shadow: 0 42px 98px rgba(0, 0, 0, 0.42);
}

.purchase-plan-card:active {
  transform: translateY(-3px) scale(0.992);
}

.purchase-plan-card.featured:active {
  transform: translateY(-20px) scale(0.992);
}

.purchase-card-top,
.purchase-price-row,
.purchase-feature-list,
.purchase-plan-btn {
  position: relative;
  z-index: 1;
}

.purchase-kicker,
.purchase-popular {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 920;
  letter-spacing: 0.1em;
}

.purchase-kicker {
  color: #0f6e5f;
  background: rgba(15, 110, 95, 0.1);
}

.purchase-plan-card.featured .purchase-kicker {
  color: #071613;
  background: #d7f35a;
}

.purchase-popular {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  color: #06231f;
  background: #f7fffb;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
}

.purchase-card-top h2 {
  margin-top: 22px;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 620;
  line-height: 1.08;
}

.purchase-card-top p {
  max-width: 360px;
  margin-top: 10px;
  color: #60756e;
  font-size: 12px;
  line-height: 1.58;
}

.purchase-plan-card.featured .purchase-card-top p {
  color: rgba(221, 242, 235, 0.78);
}

.purchase-price-row {
  display: grid;
  gap: 7px;
  margin-top: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(15, 110, 95, 0.14);
}

.purchase-plan-card.featured .purchase-price-row {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}

.purchase-price-row strong {
  font-size: clamp(46px, 4.6vw, 72px);
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: 0;
}

.purchase-price-row span {
  color: #60756e;
  font-size: 12px;
  font-weight: 820;
}

.purchase-price-row s {
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.56);
  text-decoration-thickness: 2px;
}

.purchase-plan-card.featured .purchase-price-row span {
  color: rgba(238, 248, 244, 0.84);
}

.purchase-feature-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
}

.purchase-feature-list li {
  position: relative;
  padding-left: 24px;
  color: #344a44;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 720;
}

.purchase-plan-card.featured .purchase-feature-list li {
  color: rgba(238, 248, 244, 0.9);
}

.purchase-feature-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 43%, #063f38 43% 57%, transparent 57%),
    linear-gradient(45deg, transparent 45%, #063f38 45% 58%, transparent 58%),
    #d7f35a;
  box-shadow: 0 8px 16px rgba(15, 110, 95, 0.14);
}

.purchase-plan-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.purchase-plan-btn.primary {
  color: #06231f;
  background: #d7f35a;
  box-shadow: 0 16px 34px rgba(215, 243, 90, 0.18);
}

.purchase-plan-btn.secondary {
  color: #f7fffb;
  background: #0f6e5f;
}

.purchase-plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.purchase-plan-btn.primary:hover {
  background: #f7fffb;
}

.purchase-plan-btn.secondary:hover {
  background: #09201c;
}

.purchase-plan-btn:active {
  transform: translateY(0) scale(0.985);
}

.purchase-note-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  margin-top: 22px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 18px;
  background: rgba(123, 242, 216, 0.14);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.purchase-note-panel div {
  padding: 18px 20px;
  background: rgba(4, 20, 18, 0.76);
}

.purchase-note-panel strong {
  display: block;
  color: #f3fffb;
  font-size: 13px;
}

.purchase-note-panel p {
  margin-top: 7px;
  color: rgba(194, 214, 208, 0.78);
  font-size: 11.5px;
  line-height: 1.55;
}

.purchase-board-foot a {
  border-color: rgba(123, 242, 216, 0.18);
  color: #eafff9;
  background: rgba(255, 255, 255, 0.09);
}

@media (max-width: 1100px) {
  .purchase-premium-section {
    width: min(100% - 36px, 920px);
  }

  .purchase-premium-section::before {
    inset: 18px -12px 68px;
  }

  .purchase-plan-grid,
  .purchase-note-panel {
    grid-template-columns: 1fr;
  }

  .purchase-plan-card.featured {
    min-height: 460px;
    margin-top: 0;
  }

  .purchase-plan-card.featured:hover {
    transform: translateY(-8px);
  }

  .purchase-plan-card.featured:active {
    transform: translateY(-3px) scale(0.992);
  }
}

@media (max-width: 640px) {
  .purchase-premium-section {
    width: calc(100% - 22px);
    padding-top: 24px;
  }

  .purchase-premium-section::before {
    inset: 8px -6px 56px;
    border-radius: 22px;
    background-size: 34px 34px, 34px 34px, auto, auto;
  }

  .purchase-premium-section::after {
    display: none;
  }

  .purchase-plan-grid {
    gap: 14px;
  }

  .purchase-plan-card,
  .purchase-plan-card.featured {
    min-height: auto;
    border-radius: 18px;
    padding: 22px;
  }

  .purchase-popular {
    position: static;
    margin-bottom: 14px;
  }

  .purchase-card-top h2 {
    margin-top: 16px;
  }

  .purchase-price-row {
    margin-top: 22px;
  }

  .purchase-note-panel div {
    padding: 16px;
  }
}

/* Calmlyss pricing page parity pass */
.premium-calm-body {
  background: #f9f6f3;
  color: #301100;
}

.premium-calm-main {
  padding: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(134, 100, 82, 0.12), transparent 34%),
    linear-gradient(180deg, #f9f6f3, #f9f6f3);
}

.purchase-premium-section {
  width: min(960px, calc(100vw - 48px));
  padding: 80px 0;
  overflow: visible;
  color: #6b584e;
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.purchase-premium-section::before {
  inset: 0 calc(50% - 50vw);
  border: 0;
  border-radius: 0;
  background:
    url("https://cdn.prod.website-files.com/69e9d907d495c9a45383b5ae/69eee08c7dc484b1bf07c90a_Pricing%20BG.svg") center / cover no-repeat,
    #f9f6f3;
  box-shadow: none;
}

.purchase-premium-section::after,
.purchase-note-panel,
.purchase-popular {
  display: none;
}

.purchase-heading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 48px;
  text-align: center;
}

.purchase-subtitle-block {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.purchase-subtitle-pointer {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #301100;
}

.purchase-subtitle-text {
  margin: 0;
  color: #301100;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

.purchase-title-block {
  max-width: 560px;
  margin-top: 16px;
}

.purchase-title-block h1 {
  max-width: none;
  margin: 0;
  color: #301100;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.purchase-title-block h1 span {
  display: inline;
  color: #866452;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.purchase-summary-block {
  max-width: 480px;
  margin-top: 20px;
}

.purchase-summary-block p {
  margin: 0;
  color: #6b584e;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.purchase-tab-link-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.purchase-tab-text {
  appearance: none;
  border: 0;
  padding: 0;
  color: #6b584e;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  cursor: pointer;
}

.purchase-tab-text.active {
  color: #301100;
  font-weight: 500;
}

.purchase-tab-toggle-block {
  appearance: none;
  display: flex;
  width: 52px;
  height: 28px;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 100rem;
  padding: 4px;
  background: #866452;
  cursor: pointer;
}

.purchase-tab-toggle {
  width: 20px;
  height: 20px;
  border-radius: 100rem;
  background: #fff;
  transition: transform 260ms ease;
}

.purchase-premium-section[data-price-mode="regular"] .purchase-tab-toggle {
  transform: translateX(24px);
}

.purchase-offer-text {
  margin: 0;
  border-radius: 100rem;
  padding: 4px 10px;
  color: #301100;
  background: rgba(134, 100, 82, 0.24);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.purchase-plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  margin: 0;
}

.purchase-plan-card,
.purchase-plan-card.light,
.purchase-plan-card.featured,
.purchase-plan-card.is-2 {
  display: flex;
  min-height: 0;
  margin: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #301100;
  box-shadow: none;
  animation: panelIn 620ms both;
  transition: transform 300ms ease, background-color 300ms ease, color 300ms ease;
}

.purchase-plan-card.is-2 {
  z-index: 2;
  background: #301100;
  color: #fff;
  position: relative;
}

.purchase-plan-card::before {
  content: none;
}

.purchase-plan-card:hover,
.purchase-plan-card.featured:hover,
.purchase-plan-card.is-2:hover {
  transform: translateY(-6px);
  box-shadow: none;
}

.purchase-plan-card:active,
.purchase-plan-card.featured:active,
.purchase-plan-card.is-2:active {
  transform: translateY(-2px);
}

.purchase-card-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.purchase-kicker {
  display: block;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  color: #301100;
  background: transparent;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.purchase-plan-card.is-2 .purchase-kicker {
  color: #fff;
  background: transparent;
}

.purchase-card-top h2 {
  margin: 0;
  color: inherit;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.purchase-card-top h2 span {
  color: #866452;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.purchase-plan-card.is-2 .purchase-card-top h2 span {
  color: #c78460;
}

.purchase-card-top p {
  display: none;
}

.purchase-price-row,
.purchase-plan-card.featured .purchase-price-row {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 16px;
  padding: 0;
  border-bottom: 0;
  color: inherit;
  overflow: clip;
}

.purchase-currency {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1.5;
}

.purchase-price-row strong {
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
}

.purchase-period,
.purchase-price-row span,
.purchase-plan-card.featured .purchase-price-row span {
  align-self: flex-end;
  margin-bottom: 7px;
  color: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.76px;
  text-transform: uppercase;
  opacity: 0.86;
}

.purchase-feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0 0;
  padding: 16px 0 0;
  border-top: 1px dashed rgba(134, 100, 82, 0.44);
  list-style: none;
}

.purchase-plan-card.is-2 .purchase-feature-list {
  border-top-color: rgba(255, 255, 255, 0.24);
}

.purchase-feature-list li,
.purchase-plan-card.featured .purchase-feature-list li,
.purchase-plan-card.is-2 .purchase-feature-list li {
  position: relative;
  padding-left: 32px;
  color: inherit;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0;
}

.purchase-feature-list li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background-color: transparent;
  background-image: url("https://cdn.prod.website-files.com/69e9d907d495c9a45383b5ae/69ef251c911224f72de0c5d7_Background.svg");
  background-repeat: no-repeat;
  background-size: auto;
  box-shadow: none;
}

.purchase-plan-card.is-2 .purchase-feature-list li::before {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.purchase-plan-btn,
.purchase-plan-btn.primary,
.purchase-plan-btn.secondary,
.purchase-plan-btn.is-2 {
  display: flex;
  width: 100%;
  min-height: 0;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 1px solid #866452;
  border-radius: 100rem;
  padding: 12px 20px;
  color: #866452;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, transform 180ms ease;
}

.purchase-plan-btn.is-2 {
  color: #301100;
}

.purchase-plan-btn:hover,
.purchase-plan-btn.primary:hover,
.purchase-plan-btn.secondary:hover,
.purchase-plan-btn.is-2:hover {
  transform: none;
  border-color: #c78460;
  background: #c78460;
  color: #fff;
  box-shadow: none;
}

.purchase-plan-btn:active {
  transform: scale(0.985);
}

.purchase-board-foot {
  margin-top: 32px;
}

.purchase-board-foot a {
  min-height: 48px;
  border: 0;
  border-radius: 100rem;
  padding: 12px 20px;
  color: #fff;
  background: #866452;
  font-size: 16px;
  font-weight: 500;
}

.purchase-board-foot a:hover {
  transform: none;
  border-color: transparent;
  background: #c78460;
  box-shadow: none;
}

@media (max-width: 991px) {
  .purchase-premium-section {
    width: min(728px, calc(100vw - 40px));
  }

  .purchase-plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .purchase-premium-section {
    width: calc(100% - 32px);
    padding: 64px 0;
  }

  .purchase-title-block h1 {
    font-size: 40px;
  }

  .purchase-summary-block p,
  .purchase-tab-text,
  .purchase-feature-list li,
  .purchase-plan-btn,
  .purchase-board-foot a {
    font-size: 14px;
  }

  .purchase-tab-link-block {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
  }

  .purchase-plan-card,
  .purchase-plan-card.light,
  .purchase-plan-card.featured,
  .purchase-plan-card.is-2 {
    padding: 20px;
  }
}

/* KickQuant color and interaction correction */
.premium-calm-body {
  background: #06110f;
  color: #eaf8f4;
}

.premium-calm-main {
  background:
    radial-gradient(circle at 50% 20%, rgba(26, 215, 183, 0.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(215, 243, 90, 0.07), transparent 28%),
    linear-gradient(180deg, #06110f, #0a1b18 52%, #06110f);
}

.purchase-premium-section {
  color: #91aaa3;
}

.purchase-premium-section::before {
  background:
    linear-gradient(90deg, rgba(123, 242, 216, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(123, 242, 216, 0.055) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(26, 215, 183, 0.14), transparent 32%),
    linear-gradient(180deg, #06110f, #0a1b18 58%, #06110f);
  background-size: 54px 54px, 54px 54px, auto, auto;
}

.purchase-subtitle-pointer {
  background: #1ad7b7;
  box-shadow: 0 0 20px rgba(26, 215, 183, 0.6);
}

.purchase-subtitle-text,
.purchase-title-block h1,
.purchase-tab-text.active,
.purchase-offer-text {
  color: #eef8f4;
}

.purchase-title-block h1 span,
.purchase-card-top h2 span {
  color: #1ad7b7;
}

.purchase-summary-block p,
.purchase-tab-text {
  color: #91aaa3;
}

.purchase-tab-toggle-block {
  background: #0f6e5f;
  box-shadow: inset 0 0 0 1px rgba(123, 242, 216, 0.22);
}

.purchase-tab-toggle {
  background: #d7f35a;
}

.purchase-offer-text {
  background: rgba(26, 215, 183, 0.14);
}

.purchase-plan-card,
.purchase-plan-card.light,
.purchase-plan-card.featured {
  border: 1px solid rgba(123, 242, 216, 0.15);
  background:
    radial-gradient(circle at 85% 8%, rgba(26, 215, 183, 0.1), transparent 28%),
    #f7fffb;
  color: #08221e;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.purchase-plan-card.is-2 {
  border-color: rgba(123, 242, 216, 0.36);
  background:
    radial-gradient(circle at 78% 10%, rgba(123, 242, 216, 0.24), transparent 30%),
    linear-gradient(145deg, #03120f, #0b4038 62%, #041512);
  color: #f4fffb;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.36);
}

.purchase-plan-card:nth-child(1) {
  transform-origin: right center;
  animation: kqPlanOpenLeft 860ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.purchase-plan-card:nth-child(2) {
  transform-origin: center center;
  animation: kqPlanOpenCenter 760ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both;
}

.purchase-plan-card:nth-child(3) {
  transform-origin: left center;
  animation: kqPlanOpenRight 860ms cubic-bezier(0.16, 1, 0.3, 1) 180ms both;
}

.purchase-plan-card:hover,
.purchase-plan-card.featured:hover,
.purchase-plan-card.is-2:hover {
  transform: translateY(-8px);
}

.purchase-kicker {
  color: #0f6e5f;
}

.purchase-plan-card.is-2 .purchase-kicker,
.purchase-plan-card.is-2 .purchase-card-top h2 span {
  color: #d7f35a;
}

.purchase-feature-list {
  border-top-color: rgba(15, 110, 95, 0.24);
}

.purchase-plan-card.is-2 .purchase-feature-list {
  border-top-color: rgba(123, 242, 216, 0.24);
}

.purchase-feature-list li::before {
  border-radius: 999px;
  background:
    linear-gradient(135deg, transparent 43%, #063f38 43% 57%, transparent 57%),
    linear-gradient(45deg, transparent 45%, #063f38 45% 58%, transparent 58%),
    #d7f35a;
}

.purchase-plan-card.is-2 .purchase-feature-list li::before {
  filter: none;
  opacity: 1;
}

.purchase-plan-btn,
.purchase-plan-btn.primary,
.purchase-plan-btn.secondary,
.purchase-plan-btn.is-2 {
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  border-color: #0f6e5f;
  color: #0f6e5f;
  background: #ffffff;
}

.purchase-plan-btn.is-2 {
  border-color: transparent;
  color: #063f38;
  background: #d7f35a;
}

.purchase-button-content,
.purchase-button-icon {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.purchase-button-content {
  flex: 1;
  min-height: 24px;
}

.purchase-button-text,
.purchase-button-arrow {
  display: block;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.purchase-button-text.is-2,
.purchase-button-arrow.is-2 {
  position: absolute;
  inset: 0;
  transform: translateY(120%);
}

.purchase-button-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 999px;
}

.purchase-plan-btn:hover .purchase-button-text.is-1,
.purchase-plan-btn:hover .purchase-button-arrow.is-1,
.purchase-board-foot a:hover .purchase-button-text.is-1,
.purchase-board-foot a:hover .purchase-button-arrow.is-1 {
  transform: translateY(-120%);
}

.purchase-plan-btn:hover .purchase-button-text.is-2,
.purchase-plan-btn:hover .purchase-button-arrow.is-2,
.purchase-board-foot a:hover .purchase-button-text.is-2,
.purchase-board-foot a:hover .purchase-button-arrow.is-2 {
  transform: translateY(0);
}

.purchase-plan-btn:hover,
.purchase-plan-btn.primary:hover,
.purchase-plan-btn.secondary:hover,
.purchase-plan-btn.is-2:hover {
  border-color: #1ad7b7;
  background: #0f6e5f;
  color: #ffffff;
}

.purchase-board-foot a {
  background: #0f6e5f;
}

.purchase-board-foot a:hover {
  background: #1ad7b7;
  color: #06231f;
}

@keyframes kqPlanOpenLeft {
  0% {
    opacity: 0;
    transform: translateX(72%) scaleX(0.62) rotateY(-10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1) rotateY(0);
  }
}

@keyframes kqPlanOpenCenter {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kqPlanOpenRight {
  0% {
    opacity: 0;
    transform: translateX(-72%) scaleX(0.62) rotateY(10deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1) rotateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-plan-card:nth-child(1),
  .purchase-plan-card:nth-child(2),
  .purchase-plan-card:nth-child(3) {
    animation: none;
  }

  .purchase-button-text,
  .purchase-button-arrow,
  .purchase-tab-toggle {
    transition: none;
  }
}

/* Final Calmlyss one-to-one pricing feel, recolored for KickQuant */
.premium-calm-body {
  background: #eef8f4;
}

.premium-calm-main {
  background: #eef8f4;
}

.purchase-premium-section {
  width: min(960px, calc(100vw - 48px));
  padding: 80px 0;
  color: #526b64;
  perspective: 1200px;
}

.purchase-premium-section::before {
  inset: 0 calc(50% - 50vw);
  background: #eef8f4;
}

.purchase-premium-section::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background: url("https://cdn.prod.website-files.com/69e9d907d495c9a45383b5ae/69eee08c7dc484b1bf07c90a_Pricing%20BG.svg") center / cover no-repeat;
  filter: hue-rotate(122deg) saturate(1.45) brightness(1.06);
  opacity: 0.34;
  mix-blend-mode: multiply;
}

.purchase-heading-block {
  margin-bottom: 48px;
}

.purchase-subtitle-block {
  gap: 8px;
}

.purchase-subtitle-pointer {
  width: 6px;
  height: 6px;
  background: #063f38;
  box-shadow: none;
}

.purchase-subtitle-text {
  color: #063f38;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
}

.purchase-title-block {
  max-width: 560px;
  margin-top: 16px;
}

.purchase-title-block h1 {
  color: #063f38;
  font-size: 48px;
  font-weight: 500;
  line-height: 1;
}

.purchase-title-block h1 span {
  color: #0f6e5f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.purchase-summary-block {
  max-width: 480px;
  margin-top: 20px;
}

.purchase-summary-block p {
  color: #526b64;
  font-size: 16px;
  line-height: 1.5;
}

.purchase-tab-link-block {
  gap: 16px;
  margin-bottom: 48px;
}

.purchase-tab-text {
  color: #526b64;
  font-size: 16px;
  font-weight: 400;
}

.purchase-tab-text.active {
  color: #063f38;
  font-weight: 500;
}

.purchase-tab-toggle-block {
  width: 52px;
  height: 28px;
  padding: 4px;
  background: #0f6e5f;
  box-shadow: none;
}

.purchase-tab-toggle {
  width: 20px;
  height: 20px;
  background: #ffffff;
}

.purchase-offer-text {
  color: #063f38;
  background: rgba(15, 110, 95, 0.16);
  font-size: 12px;
  font-weight: 500;
}

.purchase-plan-grid {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.purchase-plan-card,
.purchase-plan-card.light,
.purchase-plan-card.featured {
  min-height: auto;
  padding: 24px;
  border: 0;
  border-radius: 16px;
  background: #ffffff;
  color: #063f38;
  box-shadow: none;
  transition: transform 400ms ease, background-color 400ms ease, color 400ms ease;
}

.purchase-plan-card.is-2 {
  border: 0;
  border-radius: 16px;
  background: #063f38;
  color: #ffffff;
  box-shadow: none;
}

.purchase-plan-card:nth-child(1) {
  transform-origin: right center;
  animation: kqCalmlyssOpenLeft 1100ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.purchase-plan-card:nth-child(2) {
  transform-origin: center center;
  animation: kqCalmlyssOpenCenter 860ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.purchase-plan-card:nth-child(3) {
  transform-origin: left center;
  animation: kqCalmlyssOpenRight 1100ms cubic-bezier(0.16, 1, 0.3, 1) 140ms both;
}

.purchase-plan-card:hover,
.purchase-plan-card.featured:hover,
.purchase-plan-card.is-2:hover {
  transform: translateY(-4px);
  box-shadow: none;
}

.purchase-card-top {
  gap: 16px;
}

.purchase-kicker {
  color: #063f38;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 1.6px;
}

.purchase-plan-card.is-2 .purchase-kicker {
  color: #ffffff;
}

.purchase-card-top h2 {
  color: inherit;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.3;
}

.purchase-card-top h2 span,
.purchase-plan-card.is-2 .purchase-card-top h2 span {
  color: #1ad7b7;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.purchase-price-row,
.purchase-plan-card.featured .purchase-price-row {
  gap: 4px;
  margin-top: 16px;
}

.purchase-currency {
  font-size: 24px;
  line-height: 1.5;
}

.purchase-price-row strong {
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.purchase-period,
.purchase-price-row span,
.purchase-plan-card.featured .purchase-price-row span {
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.76px;
}

.purchase-feature-list {
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed rgba(15, 110, 95, 0.42);
}

.purchase-plan-card.is-2 .purchase-feature-list {
  border-top-color: rgba(255, 255, 255, 0.26);
}

.purchase-feature-list li,
.purchase-plan-card.featured .purchase-feature-list li,
.purchase-plan-card.is-2 .purchase-feature-list li {
  padding-left: 32px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.purchase-feature-list li::before {
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background-color: transparent;
  background-image: url("https://cdn.prod.website-files.com/69e9d907d495c9a45383b5ae/69ef251c911224f72de0c5d7_Background.svg");
  filter: hue-rotate(130deg) saturate(1.6) brightness(0.72);
}

.purchase-plan-card.is-2 .purchase-feature-list li::before {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.purchase-plan-btn,
.purchase-plan-btn.primary,
.purchase-plan-btn.secondary,
.purchase-plan-btn.is-2 {
  min-height: 50px;
  margin-top: 24px;
  border: 1px solid #0f6e5f;
  border-radius: 100rem;
  padding: 12px 8px 12px 20px;
  color: #0f6e5f;
  background: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.purchase-plan-card:not(.is-2) .purchase-plan-btn {
  border-color: #063f38;
  color: #ffffff;
  background: #063f38;
}

.purchase-plan-card:not(.is-2) .purchase-plan-btn .purchase-button-icon {
  background: rgba(255, 255, 255, 0.12);
}

.purchase-plan-btn.is-2 {
  color: #063f38;
  background: #ffffff;
}

.purchase-plan-btn.is-2 .purchase-button-icon {
  background: rgba(15, 110, 95, 0.1);
}

.purchase-button-content {
  min-height: 24px;
}

.purchase-button-icon {
  width: 34px;
  height: 34px;
  flex-basis: 34px;
  background: rgba(15, 110, 95, 0.1);
}

.purchase-plan-btn:hover,
.purchase-plan-btn.primary:hover,
.purchase-plan-btn.secondary:hover,
.purchase-plan-btn.is-2:hover {
  border-color: #1ad7b7;
  background: #1ad7b7;
  color: #063f38;
}

.purchase-board-foot {
  margin-top: 48px;
}

.purchase-board-foot.calm-board-foot {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.purchase-board-foot .purchase-footer-btn {
  width: min(100%, 260px);
  margin-top: 0;
  border-color: #063f38;
  color: #ffffff;
  background: #063f38;
}

.purchase-board-foot .purchase-footer-btn .purchase-button-icon {
  background: rgba(255, 255, 255, 0.12);
}

.purchase-board-foot .purchase-footer-btn:hover {
  border-color: #1ad7b7;
  background: #1ad7b7;
  color: #063f38;
}

.purchase-plan-card:not(.is-2) .purchase-plan-btn .purchase-button-icon,
.purchase-board-foot .purchase-footer-btn .purchase-button-icon {
  background: rgba(255, 255, 255, 0.12);
}

.purchase-plan-card.is-2 .purchase-plan-btn .purchase-button-icon {
  background: rgba(15, 110, 95, 0.1);
}

@keyframes kqCalmlyssOpenLeft {
  0% {
    opacity: 0;
    transform: translateX(108%) scaleX(0.72);
  }
  58% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes kqCalmlyssOpenCenter {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kqCalmlyssOpenRight {
  0% {
    opacity: 0;
    transform: translateX(-108%) scaleX(0.72);
  }
  58% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
}

@media (max-width: 991px) {
  .purchase-premium-section {
    width: min(720px, calc(100vw - 40px));
    padding: 64px 0;
  }

  .purchase-plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .purchase-premium-section {
    width: calc(100% - 32px);
    padding: 48px 0;
  }

  .purchase-plan-grid {
    grid-template-columns: 1fr;
  }

  .purchase-plan-card:nth-child(1),
  .purchase-plan-card:nth-child(2),
  .purchase-plan-card:nth-child(3) {
    animation: kqCalmlyssOpenCenter 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .purchase-title-block h1 {
    font-size: 36px;
  }

  .purchase-board-foot.calm-board-foot {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .purchase-board-foot .purchase-footer-btn {
    width: 100%;
  }
}

/* Compact single-screen pricing fit */
.purchase-premium-section {
  width: min(900px, calc(100vw - 56px));
  padding: 34px 0 42px;
}

.purchase-heading-block {
  margin-bottom: 26px;
}

.purchase-title-block {
  max-width: 520px;
  margin-top: 10px;
}

.purchase-title-block h1 {
  font-size: 40px;
}

.purchase-summary-block {
  margin-top: 12px;
}

.purchase-summary-block p {
  font-size: 14px;
}

.purchase-tab-link-block {
  margin-bottom: 24px;
}

.purchase-plan-grid {
  gap: 18px;
}

.purchase-plan-card,
.purchase-plan-card.light,
.purchase-plan-card.featured,
.purchase-plan-card.is-2 {
  padding: 18px;
}

.purchase-card-top {
  gap: 10px;
}

.purchase-card-top h2 {
  font-size: 21px;
}

.purchase-price-row,
.purchase-plan-card.featured .purchase-price-row {
  margin-top: 10px;
}

.purchase-currency {
  font-size: 20px;
}

.purchase-price-row strong {
  font-size: 42px;
}

.purchase-feature-list {
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
}

.purchase-feature-list li,
.purchase-plan-card.featured .purchase-feature-list li,
.purchase-plan-card.is-2 .purchase-feature-list li {
  min-height: 20px;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.42;
}

.purchase-feature-list li::before {
  top: 1px;
  width: 18px;
  height: 18px;
  background-size: contain;
}

.purchase-plan-btn,
.purchase-plan-btn.primary,
.purchase-plan-btn.secondary,
.purchase-plan-btn.is-2 {
  min-height: 44px;
  margin-top: 16px;
  padding: 8px 7px 8px 18px;
  font-size: 14px;
}

.purchase-button-content {
  min-height: 21px;
}

.purchase-button-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.purchase-board-foot {
  margin-top: 24px;
}

.purchase-board-foot .purchase-footer-btn {
  width: 240px;
  color: #ffffff;
}

.purchase-board-foot .purchase-footer-btn .purchase-button-text,
.purchase-board-foot .purchase-footer-btn .purchase-button-arrow {
  color: #ffffff;
}

.purchase-board-foot .purchase-footer-btn:hover .purchase-button-text,
.purchase-board-foot .purchase-footer-btn:hover .purchase-button-arrow {
  color: #063f38;
}

@media (max-width: 991px) {
  .purchase-premium-section {
    width: min(680px, calc(100vw - 40px));
    padding: 32px 0 38px;
  }
}

/* Restore member board selector after purchase page split */
.premium-calm-body:not(.purchase-calm-body) {
  background:
    radial-gradient(circle at 58% 18%, rgba(26, 215, 183, 0.14), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(215, 243, 90, 0.06), transparent 28%),
    linear-gradient(135deg, #020807, #071916 52%, #030907);
  color: #eef8f4;
}

.premium-calm-body:not(.purchase-calm-body) .premium-calm-main {
  background: transparent;
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy h1 {
  color: #eef8f4;
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy h1 em {
  color: #9bf4e4;
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy p {
  color: rgba(194, 214, 208, 0.82);
}

.premium-calm-body:not(.purchase-calm-body) .calm-tag-grid span {
  color: #eef8f4;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.premium-calm-body:not(.purchase-calm-body) .calm-card-copy h2 {
  color: #eef8f4;
}

.premium-calm-body:not(.purchase-calm-body) .calm-card-copy p {
  color: rgba(194, 214, 208, 0.72);
}

/* Premium selector depth pass */
.premium-calm-body:not(.purchase-calm-body) {
  background:
    radial-gradient(circle at 50% 8%, rgba(34, 193, 164, 0.2), transparent 30rem),
    radial-gradient(circle at 10% 62%, rgba(255, 255, 255, 0.82), transparent 24rem),
    linear-gradient(180deg, #eef8f4 0%, #dceee8 52%, #eef8f4 100%);
  color: #08231f;
}

.premium-calm-body:not(.purchase-calm-body) .topbar {
  margin-bottom: 0;
}

.premium-calm-body:not(.purchase-calm-body) .premium-calm-main {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 18rem),
    radial-gradient(circle at 78% 20%, rgba(34, 193, 164, 0.15), transparent 30rem),
    radial-gradient(circle at 20% 84%, rgba(215, 243, 90, 0.14), transparent 24rem);
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-section {
  width: min(1400px, calc(100vw - 96px));
  margin-top: 18px;
  padding: 34px 36px 36px;
  border-radius: 28px;
  border: 1px solid rgba(8, 64, 56, 0.1);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 244, 240, 0.68)),
    radial-gradient(circle at 76% 12%, rgba(36, 215, 178, 0.16), transparent 32rem);
  box-shadow: 0 34px 96px rgba(2, 30, 25, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy h1,
.premium-calm-body:not(.purchase-calm-body) .calm-card-copy h2 {
  color: #08231f;
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy h1 em {
  color: #0f8775;
}

.premium-calm-body:not(.purchase-calm-body) .calm-premium-copy p,
.premium-calm-body:not(.purchase-calm-body) .calm-card-copy p {
  color: rgba(8, 35, 31, 0.68);
}

.premium-calm-body:not(.purchase-calm-body) .calm-tag-grid span {
  color: #08231f;
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(8, 64, 56, 0.2);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-grid {
  align-items: start;
  gap: 30px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(8, 64, 56, 0.08);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.88), transparent 30rem),
    linear-gradient(180deg, rgba(247, 255, 251, 0.8), rgba(221, 239, 233, 0.45));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 48px rgba(3, 44, 37, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card:nth-child(1) {
  transform: translateY(14px);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card:nth-child(2) {
  background: rgba(255, 255, 255, 0.74);
  transform: translateY(-10px);
  box-shadow: 0 34px 78px rgba(3, 44, 37, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card:nth-child(3) {
  transform: translateY(10px);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-photo {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 48px rgba(3, 44, 37, 0.18);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-photo::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 42%, rgba(2, 22, 19, 0.4)),
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.18), transparent 20rem);
  opacity: 0.8;
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-photo img {
  filter: saturate(0.92) contrast(1.04) brightness(0.86);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 34px 76px rgba(3, 44, 37, 0.18);
}

.premium-calm-body:not(.purchase-calm-body) .calm-board-card:hover .calm-board-photo {
  transform: translateY(-4px);
}

/* Calmlyss teacher-section replica for tools hub */
.tools-calm-body {
  min-height: 100vh;
  background: #eef8f4;
  color: #063f38;
}

.tools-calm-main {
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 215, 183, 0.09), transparent 32%),
    #eef8f4;
}

.kq-tools-section {
  min-height: calc(100vh - 72px);
  padding: 42px 0 44px;
  overflow: visible;
}

.kq-tools-heading {
  width: min(920px, calc(100vw - 48px));
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.kq-tools-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 22px;
  border-radius: 999px;
  color: #063f38;
  background: #ffffff;
  animation: kqToolsUp 640ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kq-tools-subtitle span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #063f38;
}

.kq-tools-subtitle p {
  margin: 0;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.kq-tools-heading h1 {
  margin: 20px 0 0;
  max-width: 860px;
  color: #063f38;
  font-size: clamp(34px, 4.1vw, 56px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: 0;
  animation: kqToolsTitle 820ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}

.kq-tools-heading h1 span {
  display: block;
  margin-top: 4px;
  color: #0f6e5f;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
}

.kq-tools-intro {
  max-width: 760px;
  margin: 16px auto 0;
  color: rgba(6, 63, 56, 0.78);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 650;
  text-align: center;
}

.kq-tools-row {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.kq-tool-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 14px 14px 18px;
  border-radius: 28px;
  background: #ffffff;
  color: #0f6e5f;
  text-decoration: none;
  overflow: hidden;
  animation: kqToolCardIn 760ms cubic-bezier(0.16, 1, 0.3, 1) both;
  transition:
    transform 400ms ease,
    background-color 400ms ease,
    color 400ms ease;
}

.kq-tool-card:nth-child(2) { animation-delay: 80ms; }
.kq-tool-card:nth-child(3) { animation-delay: 160ms; }
.kq-tool-card:nth-child(4) { animation-delay: 240ms; }

.kq-tool-card:hover {
  transform: translateY(-8px);
  background: #063f38;
  color: #ffffff;
}

.kq-tool-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #dfeeea;
}

.kq-tool-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.02);
  transform: scale(1);
  transition: transform 700ms ease, filter 400ms ease;
}

.kq-tool-card:hover .kq-tool-image img {
  filter: saturate(1.05) contrast(1.06);
  transform: scale(1.055);
}

.kq-tool-image-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.74));
}

.kq-tool-content {
  width: 100%;
  margin: 16px auto 0;
  display: flex;
  min-height: 126px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
}

.kq-tool-content h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(18px, 1.45vw, 24px);
  font-weight: 760;
  line-height: 1.18;
}

.kq-tool-content p {
  margin: 8px 0 0;
  color: #607a73;
  font-size: 12px;
  line-height: 1.56;
}

.kq-tool-card:hover .kq-tool-content p {
  color: rgba(255, 255, 255, 0.78);
}

.kq-tool-content small {
  color: inherit;
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.06em;
  opacity: 0.86;
}

.kq-tools-button-block {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  animation: kqToolsUp 760ms cubic-bezier(0.16, 1, 0.3, 1) 260ms both;
}

.kq-tools-explain {
  width: min(980px, calc(100vw - 40px));
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px auto 0;
}

.kq-tools-explain article {
  min-height: 0;
  padding: 22px;
  border: 1px solid rgba(15, 110, 95, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: #063f38;
}

.kq-tools-explain h2 {
  margin: 0 0 10px;
  color: inherit;
  font-size: 19px;
  line-height: 1.18;
  font-weight: 700;
}

.kq-tools-explain p {
  margin: 0;
  color: rgba(6, 63, 56, 0.72);
  font-size: 12px;
  line-height: 1.68;
  font-weight: 620;
}

.kq-tools-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 240px;
  min-height: 50px;
  justify-content: space-between;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  color: #ffffff;
  background: #063f38;
  overflow: hidden;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 360ms ease, color 360ms ease;
}

.kq-tools-button:hover {
  color: #ffffff;
  background: #063f38;
}

.kq-tools-button-text,
.kq-tools-button-icon {
  position: relative;
  overflow: hidden;
}

.kq-tools-button-text {
  flex: 1;
  min-height: 24px;
  text-align: center;
}

.kq-tools-button-text span,
.kq-tools-button-icon span {
  display: block;
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.kq-tools-button-text .is-2,
.kq-tools-button-icon .is-2 {
  position: absolute;
  inset: 0;
  transform: translateY(120%);
}

.kq-tools-button:hover .kq-tools-button-text .is-1,
.kq-tools-button:hover .kq-tools-button-icon .is-1 {
  transform: translateY(-120%);
}

.kq-tools-button:hover .kq-tools-button-text .is-2,
.kq-tools-button:hover .kq-tools-button-icon .is-2 {
  transform: translateY(0);
}

.kq-tools-button-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.kq-tools-button:hover .kq-tools-button-icon {
  color: #063f38;
  background: #ffffff;
}

.kq-tools-button-icon span {
  width: 100%;
  height: 100%;
  place-items: center;
  line-height: 1;
}

.kq-tools-button-icon .is-1,
.kq-tools-button-icon .is-2 {
  display: grid;
}

@keyframes kqToolsUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kqToolsTitle {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kqToolCardIn {
  from {
    opacity: 0;
    transform: translateY(42px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .kq-tools-section {
    min-height: auto;
  }

  .kq-tools-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .kq-tools-section {
    padding: 30px 0 36px;
  }

  .kq-tools-heading h1 {
    font-size: 38px;
  }

  .kq-tools-row {
    grid-template-columns: 1fr;
    width: min(420px, calc(100vw - 28px));
  }
}

/* Tool detail pages: data-dense match-detail style */
.tool-detail-page .page {
  padding-top: 16px;
}

.tool-detail-hero {
  margin-bottom: 10px;
}

.tool-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 14px;
  align-items: stretch;
}

.tool-input-panel,
.tool-result-panel {
  padding: 16px;
}

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

.tool-field {
  display: grid;
  gap: 6px;
}

.tool-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.tool-field input,
.tool-field select {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  font: inherit;
  outline: none;
  color-scheme: dark;
}

.tool-field input:focus,
.tool-field select:focus {
  border-color: var(--line-strong);
}

.tool-field select {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text) 50%),
    linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 15px,
    calc(100% - 12px) 15px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.tool-field select option {
  color: #eef8f4;
  background: #10231f;
}

.tool-field select option:checked {
  color: #062b27;
  background: #25d5bd;
}

.tool-wide {
  grid-column: span 2;
}

.tool-full {
  grid-column: 1 / -1;
}

.tool-muted-line {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Premium board list and member detail pages */
.premium-list-page .page,
.premium-detail-page .page {
  padding-top: 18px;
}

.premium-list-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.42fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 14px;
}

.premium-list-hero > div:first-child {
  padding: 22px;
  border: 1px solid rgba(38, 224, 194, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 12%, rgba(38, 224, 194, 0.13), transparent 30%),
    linear-gradient(135deg, rgba(6, 26, 22, 0.98), rgba(2, 16, 14, 0.96));
  color: #fff;
}

.premium-list-hero h1 {
  margin-top: 8px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 0.95;
}

.premium-list-hero .lead {
  color: rgba(235, 247, 241, 0.72);
}

.premium-board-kpis {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.premium-board-kpis div {
  padding: 16px;
  border: 1px solid rgba(38, 224, 194, 0.2);
  border-radius: 22px;
  background: rgba(4, 28, 23, 0.88);
}

.premium-board-kpis small,
.premium-pick-row small,
.premium-rec-grid small {
  color: rgba(235, 247, 241, 0.62);
  font-size: 11px;
  font-weight: 900;
}

.premium-board-kpis strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 30px;
}

.premium-board-kpis span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.premium-time-filter {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 16px;
  background: rgba(3, 20, 18, 0.86);
}

.premium-time-filter h2 {
  color: #fff;
  font-size: 24px;
}

.premium-filter-buttons {
  display: inline-flex;
  gap: 7px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.premium-filter-buttons button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: rgba(235, 247, 241, 0.75);
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.premium-filter-buttons button.active {
  color: #062b27;
  background: var(--green);
}

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

.premium-pick-row {
  display: grid;
  grid-template-columns: 100px minmax(220px, 1.35fr) minmax(140px, 0.9fr) minmax(130px, 0.8fr) minmax(160px, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 20%, rgba(38, 224, 194, 0.1), transparent 26%),
    rgba(3, 20, 18, 0.86);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.premium-pick-row:hover {
  transform: translateY(-2px);
  border-color: rgba(38, 224, 194, 0.45);
  background: rgba(5, 34, 29, 0.94);
}

.premium-pick-row.is-settled {
  background: rgba(9, 31, 28, 0.76);
}

.premium-pick-row b {
  display: block;
  color: #fff;
  font-size: 15px;
}

.premium-pick-time b {
  color: var(--green);
  font-size: 22px;
}

.premium-pick-time small,
.premium-pick-teams small {
  display: block;
  margin-top: 4px;
}

.premium-pick-row.is-hidden {
  display: none;
}

.premium-recommend-card {
  gap: 14px;
  justify-content: start;
}

.premium-rec-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.premium-rec-top h2 {
  margin-top: 5px;
  color: #fff;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1;
}

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

.premium-rec-grid div {
  padding: 12px;
  border: 1px solid rgba(38, 224, 194, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.premium-rec-grid strong {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 22px;
}

.premium-rec-reasons {
  margin-top: 0;
}

@media (max-width: 1040px) {
  .premium-list-hero,
  .premium-pick-row {
    grid-template-columns: 1fr;
  }

  .premium-time-filter {
    display: grid;
  }
}

@media (max-width: 640px) {
  .premium-filter-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 20px;
  }

  .premium-rec-grid {
    grid-template-columns: 1fr;
  }
}

.tool-result-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.tool-big-number {
  color: var(--gold);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 850;
  line-height: 0.95;
}

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

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

.tool-detail-page .compact-table {
  font-size: 12px;
}

.tool-detail-page .compact-copy {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .tool-detail-layout,
  .tool-form-grid,
  .compact-info-grid {
    grid-template-columns: 1fr;
  }
}

img.image-fallback-team {
  object-fit: contain;
  padding: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

img.image-fallback-photo {
  object-fit: cover;
}

/* About / methodology */
.about-method {
  padding-top: 44px;
}

.about-method-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.about-method-hero::before {
  content: "";
  position: absolute;
  inset: 4% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 215, 183, 0.14), transparent 62%);
  filter: blur(8px);
  pointer-events: none;
}

.about-method-hero > *:not(.method-orbit) {
  position: relative;
  z-index: 1;
}

.method-kicker {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(238, 248, 244, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 850;
}

.method-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ad7b7;
}

.about-method-hero h1 {
  max-width: 980px;
  margin: 20px auto 14px;
  color: #effbf7;
  font-size: clamp(44px, 6vw, 94px);
  line-height: 0.98;
  font-weight: 760;
  letter-spacing: 0;
}

.about-method-hero h1 em {
  color: #9ff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

.about-method-hero p {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.method-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.method-hero-actions a,
.method-final-cta a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(123, 242, 216, 0.18);
  border-radius: 999px;
  color: #06241f;
  background: #e9f7f2;
  font-size: 12px;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.method-hero-actions a + a,
.method-final-cta a + a {
  color: #eafff9;
  background: rgba(255, 255, 255, 0.06);
}

.method-hero-actions a:hover,
.method-final-cta a:hover {
  transform: translateY(-2px);
}

.method-orbit {
  position: absolute;
  right: 7%;
  top: 50%;
  width: 260px;
  height: 260px;
  transform: translateY(-50%);
  opacity: 0.36;
  pointer-events: none;
}

.orbit-ring {
  position: absolute;
  inset: 34px;
  border: 1px solid rgba(123, 242, 216, 0.18);
  border-radius: 50%;
}

.orbit-ring.two {
  inset: 76px;
}

.orbit-node {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1ad7b7;
  box-shadow: 0 0 22px rgba(26, 215, 183, 0.9);
  animation: methodOrbit 7s linear infinite;
}

.orbit-node.n1 { left: 50%; top: 14px; }
.orbit-node.n2 { right: 32px; bottom: 54px; animation-delay: -2.3s; }
.orbit-node.n3 { left: 34px; bottom: 78px; animation-delay: -4.6s; }

.method-orbit b {
  position: absolute;
  inset: 104px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #eafff9;
  background: rgba(26, 215, 183, 0.11);
  font-size: 11px;
}

@keyframes methodOrbit {
  from { transform: rotate(0deg) translateX(96px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(96px) rotate(-360deg); }
}

.method-scroll-story {
  width: min(980px, 72%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.method-story-card,
.method-pipeline,
.method-proof-card,
.method-final-cta {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(.2, .8, .2, 1), border-color 180ms ease;
}

.method-story-card.is-visible,
.method-pipeline.is-visible,
.method-proof-card.is-visible,
.method-final-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.method-story-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
}

.method-story-card:hover,
.method-pipeline:hover,
.method-proof-card:hover {
  border-color: rgba(26, 215, 183, 0.32);
}

.method-story-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #06241f;
  background: #e9f7f2;
  font-size: 12px;
  font-weight: 900;
}

.method-story-card h2 {
  margin: 0 0 8px;
  color: #effbf7;
  font-size: 22px;
  line-height: 1.15;
}

.method-story-card p,
.pipeline-copy p,
.method-proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.method-pipeline {
  width: min(1120px, 78%);
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 30px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 22px;
  background: radial-gradient(circle at 78% 45%, rgba(26, 215, 183, 0.1), transparent 42%), rgba(255,255,255,.025);
}

.pipeline-copy h2,
.method-final-cta h2 {
  margin: 16px 0 10px;
  color: #effbf7;
  font-size: clamp(24px, 2.6vw, 40px);
  line-height: 1.08;
}

.pipeline-diagram {
  display: grid;
  gap: 16px;
}

.pipe-source,
.pipe-output,
.pipe-gates {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pipe-source {
  flex-direction: column;
  min-height: 86px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 16px;
  color: #effbf7;
  background: rgba(0, 0, 0, 0.16);
}

.pipe-source b { font-size: 18px; }
.pipe-source small { color: var(--muted); font-size: 10px; }

.pipe-gates button,
.pipe-output span {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(123, 242, 216, 0.18);
  border-radius: 999px;
  color: #eafff9;
  background: rgba(255, 255, 255, 0.055);
  font-size: 11px;
  font-weight: 800;
}

.pipe-gates button {
  cursor: pointer;
}

.pipe-gates button:hover,
.pipe-gates button:focus {
  color: #06241f;
  background: #e9f7f2;
}

#pipeHint {
  min-height: 42px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.16);
  font-size: 11px;
  line-height: 1.55;
}

.method-proof-grid {
  width: min(980px, 72%);
  margin: 44px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.method-proof-card {
  padding: 20px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.method-proof-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.method-proof-card b {
  display: block;
  margin: 10px 0 6px;
  color: #d7f35a;
  font-size: 42px;
  line-height: 1;
}

.method-final-cta {
  width: min(980px, 72%);
  margin: 44px auto 0;
  padding: 26px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 22px;
  text-align: center;
  background: linear-gradient(135deg, rgba(26,215,183,.08), rgba(255,255,255,.025));
}

.method-final-cta div {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .method-scroll-story,
  .method-pipeline,
  .method-proof-grid,
  .method-final-cta {
    width: 100%;
  }

  .method-pipeline,
  .method-proof-grid {
    grid-template-columns: 1fr;
  }

  .method-orbit {
    display: none;
  }
}

.method-showcase {
  padding-top: 28px;
}

.method-showcase-hero {
  min-height: 430px;
  display: grid;
  place-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.method-showcase-hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26, 215, 183, 0.16), transparent 64%);
  filter: blur(10px);
}

.method-showcase-hero > * {
  position: relative;
  z-index: 1;
}

.method-showcase-hero h1 {
  margin: 16px 0 10px;
  color: #effbf7;
  font-size: clamp(34px, 4.6vw, 66px);
  line-height: 0.98;
  letter-spacing: 0;
}

.method-showcase-hero h1 em {
  color: #9ff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

.method-showcase-hero p {
  width: min(560px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.method-flow-visual {
  width: min(620px, 88vw);
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.flow-line {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,215,183,.6), transparent);
}

.flow-dot {
  justify-self: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1ad7b7;
  box-shadow: 0 0 26px rgba(26,215,183,.9);
  animation: flowPulse 1.8s ease-in-out infinite;
}

.flow-dot.d2 { animation-delay: .25s; }
.flow-dot.d3 { animation-delay: .5s; }

.method-flow-visual b {
  margin-top: 12px;
  color: rgba(238,248,244,.84);
  font-size: 11px;
}

@keyframes flowPulse {
  0%, 100% { transform: scale(1); opacity: .68; }
  50% { transform: scale(1.55); opacity: 1; }
}

.method-stage-wrap {
  width: min(760px, 58%);
  min-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 26px;
}

.method-stage {
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 26px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 50%, rgba(26,215,183,.1), transparent 42%),
    rgba(255,255,255,.03);
  opacity: 0;
  transform: translateX(110px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.16,.84,.2,1), border-color 180ms ease;
}

.method-stage:nth-child(even) {
  grid-template-columns: 260px minmax(0, 1fr);
}

.method-stage:nth-child(even) > div:not(.stage-visual) {
  order: 2;
}

.method-stage.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.method-stage:hover {
  border-color: rgba(26, 215, 183, 0.42);
}

.method-stage small,
.method-live-pipeline small {
  color: #1ad7b7;
  font-size: 10px;
  font-weight: 900;
}

.method-stage h2,
.method-live-pipeline h2 {
  margin: 10px 0 8px;
  color: #effbf7;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.08;
}

.method-stage p,
.method-live-pipeline p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.stage-visual {
  min-height: 180px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 18px;
  background: rgba(0,0,0,.16);
  position: relative;
  overflow: hidden;
}

.stage-visual.data span {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1ad7b7;
  animation: dataFloat 4s ease-in-out infinite;
}

.stage-visual.data span:nth-child(1) { left: 24%; top: 28%; }
.stage-visual.data span:nth-child(2) { left: 58%; top: 22%; animation-delay: -1s; }
.stage-visual.data span:nth-child(3) { left: 34%; top: 66%; animation-delay: -2s; }
.stage-visual.data span:nth-child(4) { left: 72%; top: 62%; animation-delay: -3s; }

@keyframes dataFloat {
  50% { transform: translateY(-18px); box-shadow: 0 0 22px rgba(26,215,183,.9); }
}

.stage-visual.market,
.stage-visual.output {
  display: grid;
  place-content: center;
  gap: 10px;
}

.stage-visual.market span,
.stage-visual.output span {
  min-width: 96px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06241f;
  background: #e9f7f2;
  font-size: 11px;
  font-weight: 850;
  animation: chipSlide 3s ease-in-out infinite;
}

.stage-visual.market span:nth-child(2),
.stage-visual.output span:nth-child(2) { animation-delay: -.35s; }
.stage-visual.market span:nth-child(3),
.stage-visual.output span:nth-child(3) { animation-delay: -.7s; }

@keyframes chipSlide {
  50% { transform: translateX(12px); }
}

.stage-visual.price {
  display: grid;
  place-items: center;
}

.stage-visual.price i {
  position: absolute;
  left: 18%;
  right: 18%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7f35a, #1ad7b7);
}

.stage-visual.price b {
  z-index: 1;
  padding: 10px 16px;
  border-radius: 999px;
  color: #06241f;
  background: #e9f7f2;
  font-size: 13px;
}

.method-live-pipeline {
  width: min(900px, 68%);
  margin: 46px auto 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 22px;
  background: rgba(255,255,255,.03);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.16,.84,.2,1);
}

.method-live-pipeline.is-visible,
.method-proof-strip.is-visible,
.method-final-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pipeline-orbit {
  width: 138px;
  height: 138px;
  border: 1px solid rgba(123,242,216,.2);
  border-radius: 50%;
  position: relative;
}

.pipeline-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1ad7b7;
  left: 50%;
  top: 50%;
  animation: orbitSmall 5s linear infinite;
}

.pipeline-orbit span:nth-child(2) { animation-delay: -1.25s; }
.pipeline-orbit span:nth-child(3) { animation-delay: -2.5s; }
.pipeline-orbit span:nth-child(4) { animation-delay: -3.75s; }

@keyframes orbitSmall {
  from { transform: rotate(0deg) translateX(58px); }
  to { transform: rotate(360deg) translateX(58px); }
}

.pipeline-mini-steps {
  grid-column: 2;
  display: flex;
  gap: 10px;
}

.pipeline-mini-steps button {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(123,242,216,.18);
  border-radius: 999px;
  color: #eafff9;
  background: rgba(255,255,255,.055);
  font-size: 10px;
  font-weight: 850;
}

.pipeline-mini-steps button:hover,
.pipeline-mini-steps button:focus {
  color: #06241f;
  background: #e9f7f2;
}

.method-live-pipeline #pipeHint {
  grid-column: 2;
  min-height: 34px;
  padding: 9px 12px;
}

.method-proof-strip {
  width: min(760px, 58%);
  min-width: 720px;
  margin: 42px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 720ms ease, transform 720ms cubic-bezier(.16,.84,.2,1);
}

.method-proof-strip div {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(123,242,216,.14);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.method-proof-strip b {
  color: #d7f35a;
  font-size: 42px;
  line-height: 1;
}

.method-proof-strip span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
}

.method-final-cta.compact {
  width: min(760px, 58%);
  min-width: 720px;
}

.method-final-cta.compact h2 {
  font-size: clamp(22px, 2.2vw, 32px);
}

@media (max-width: 980px) {
  .method-stage-wrap,
  .method-live-pipeline,
  .method-proof-strip,
  .method-final-cta.compact {
    width: 100%;
    min-width: 0;
  }

  .method-stage,
  .method-stage:nth-child(even),
  .method-live-pipeline {
    grid-template-columns: 1fr;
  }

  .method-stage:nth-child(even) > div:not(.stage-visual),
  .pipeline-mini-steps,
  .method-live-pipeline #pipeHint {
    grid-column: auto;
    order: initial;
  }
}

/* Feature guide */
.feature-guide {
  padding-top: 34px;
}

.feature-guide-head {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.feature-guide-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 18px;
  border-radius: 999px;
  color: rgba(238, 248, 244, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0;
}

.feature-guide-pill span,
.feature-info-card figure span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ad7b7;
}

.feature-guide-head h1 {
  margin: 16px 0 8px;
  color: #effbf7;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.04;
  font-weight: 760;
  letter-spacing: 0;
}

.feature-guide-head h1 em {
  color: #9ff7e6;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
}

.feature-guide-head p {
  width: min(620px, 100%);
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.feature-guide-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 940px);
  gap: 26px;
  align-items: start;
  justify-content: center;
  width: min(62%, 1120px);
  min-width: 980px;
  margin: 0 auto;
}

.feature-topic-rail {
  position: sticky;
  top: 104px;
  padding-top: 8px;
}

.feature-topic-rail h2 {
  margin: 0 0 14px;
  color: #effbf7;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 780;
}

.feature-topic-rail button {
  display: block;
  width: max-content;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  color: rgba(210, 224, 220, 0.7);
  background: transparent;
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 720;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.feature-topic-rail button.active {
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  color: #02231e;
  background: #e9f7f2;
}

.feature-topic-rail button:not(.active):hover {
  color: #effbf7;
  transform: translateX(3px);
}

.feature-card-list {
  display: grid;
  gap: 22px;
}

.feature-info-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 182px;
  padding: 18px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 18%, rgba(26, 215, 183, 0.07), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateX(min(72vw, 760px));
  will-change: transform, opacity;
}

.feature-info-card.is-in-view:not(.is-hidden) {
  animation: featureSlideIn 760ms cubic-bezier(.16, .84, .2, 1) both;
}

.feature-info-card.is-hidden {
  display: none;
}

.feature-info-card:hover {
  border-color: rgba(26, 215, 183, 0.32);
  background:
    radial-gradient(circle at 8% 18%, rgba(26, 215, 183, 0.1), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022));
}

.feature-info-card figure {
  position: relative;
  height: 126px;
  margin: 0;
  overflow: hidden;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-info-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 600ms ease;
}

.feature-info-card:hover figure img {
  transform: scale(1.045);
}

.feature-info-card figure::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.58));
}

.feature-info-card figure span {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 7px;
  color: #07332d;
  background: rgba(239, 251, 247, 0.92);
  font-size: 9px;
  font-weight: 800;
}

.feature-info-copy h2 {
  margin: 0 0 10px;
  color: #effbf7;
  font-size: clamp(17px, 1.45vw, 24px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: 0;
}

.feature-info-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.62;
}

.feature-info-copy p + p {
  margin-top: -8px;
}

.feature-info-copy small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(238, 248, 244, 0.74);
  font-size: 9px;
  font-weight: 780;
}

.feature-info-copy small::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(238, 248, 244, 0.42);
  border-radius: 5px;
  background: radial-gradient(circle, rgba(26, 215, 183, 0.84) 2px, transparent 3px);
}

@keyframes featureSlideIn {
  from {
    opacity: 0;
    transform: translateX(min(72vw, 760px));
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .feature-guide-layout {
    width: 100%;
    min-width: 0;
  }

  .feature-guide-layout,
  .feature-info-card {
    grid-template-columns: 1fr;
  }

  .feature-topic-rail {
    position: static;
    display: flex;
    gap: 12px;
    overflow-x: auto;
  }

  .feature-topic-rail h2 {
    display: none;
  }
}

/* Site footer */
.site-footer {
  margin-top: 24px;
  padding: 0 0 22px;
  color: rgba(238, 248, 244, 0.78);
  background:
    radial-gradient(circle at 20% 28%, rgba(26, 215, 183, 0.08), transparent 28%),
    radial-gradient(circle at 76% 46%, rgba(215, 243, 90, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(2, 8, 7, 0), rgba(4, 15, 13, 0.72) 18%, rgba(2, 8, 7, 0.92));
}

.site-footer,
.site-footer * {
  box-sizing: border-box;
}

.footer-shell {
  width: min(1660px, calc(100vw - 260px));
  margin: 0 auto;
}

.footer-rule {
  height: 1px;
  background: rgba(192, 229, 218, 0.12);
}

.footer-store-badges {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 44px 0 46px;
}

.footer-store-badge {
  position: relative;
  display: inline-flex;
  width: 154px;
  height: 46px;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(238, 248, 244, 0.28);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.footer-store-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-store-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.18) 46%, transparent 62%);
  opacity: 0;
  transform: translateX(-100%);
  transition: opacity 180ms ease, transform 420ms ease;
}

.footer-store-badge:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(238, 248, 244, 0.62),
    0 10px 22px rgba(0, 0, 0, 0.3);
}

.footer-store-badge:hover::after {
  opacity: 1;
  transform: translateX(100%);
}

.footer-store-badge:active {
  transform: translateY(0) scale(0.98);
}


.footer-index {
  display: grid;
  grid-template-columns: 360px 360px minmax(0, 1fr);
  gap: 34px;
  padding: 30px 0 32px;
}

.footer-card {
  min-height: 286px;
  padding: 20px 24px 18px;
  border: 1px solid rgba(123, 242, 216, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.024), rgba(255, 255, 255, 0.01)),
    rgba(8, 26, 23, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.footer-card h2 {
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 3px solid rgba(192, 229, 218, 0.12);
  color: rgba(210, 247, 239, 0.9);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 760;
}

.footer-card nav {
  display: grid;
  gap: 8px;
}

.footer-card a {
  color: rgba(210, 224, 220, 0.72);
  font-size: 11px;
  line-height: 1.42;
  font-weight: 650;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-card a:hover {
  color: #eafff9;
  transform: translateX(3px);
}

.footer-card-wide {
  padding-right: 28px;
}

.footer-card-wide nav {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 42px;
  row-gap: 8px;
  position: relative;
}

.footer-card-wide nav::before {
  content: "";
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 50%;
  width: 1px;
  background: rgba(192, 229, 218, 0.1);
}

.footer-rule-mid {
  margin-top: 0;
}

.footer-brand-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 30px 0 22px;
}

.footer-brand {
  display: inline-flex;
  width: 210px;
  align-items: center;
}

.footer-brand img {
  width: 184px;
  max-height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.34));
}

.footer-socials {
  display: flex;
  gap: 14px;
}

.footer-socials a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 50%;
  color: #eef8f4;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.footer-socials a:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 215, 183, 0.48);
  background: rgba(26, 215, 183, 0.13);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 58px);
  padding: 0 0 18px;
  color: rgba(229, 239, 236, 0.88);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.42;
}

.footer-links a {
  white-space: nowrap;
  transition: color 180ms ease;
}

.footer-links a:hover,
.footer-cross-link:hover,
.footer-bottom a:hover {
  color: #1ad7b7;
}

.footer-cross-link {
  display: block;
  margin: 0 auto 30px;
  width: max-content;
  color: rgba(229, 239, 236, 0.9);
  font-size: 11px;
  font-weight: 650;
}

.footer-rule-bottom {
  margin-top: 0;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 22px;
  color: rgba(210, 224, 220, 0.58);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.42;
}

.footer-bottom span:last-child {
  justify-self: end;
}

.aux-page {
  padding-top: 54px;
  padding-bottom: 54px;
}

.aux-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.55fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 26px;
}

.aux-hero h1 {
  max-width: 900px;
  margin: 12px 0 14px;
  color: #f2fffb;
  font-size: clamp(38px, 4.2vw, 76px);
  line-height: 0.98;
  font-weight: 880;
  letter-spacing: 0;
}

.aux-hero p,
.aux-note p,
.aux-card p,
.aux-rule p,
.aux-article p {
  color: rgba(204, 225, 219, 0.72);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 620;
}

.aux-note {
  border: 1px solid rgba(123, 242, 216, 0.15);
  border-radius: 26px;
  padding: 24px;
  background:
    radial-gradient(circle at 24% 18%, rgba(26, 215, 183, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.aux-note strong {
  display: block;
  margin-bottom: 10px;
  color: #f2fffb;
  font-size: 18px;
}

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

.aux-card,
.aux-article,
.aux-rules {
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)),
    radial-gradient(circle at 78% 18%, rgba(26, 215, 183, 0.1), transparent 34%),
    rgba(6, 24, 21, 0.62);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 50px rgba(0, 0, 0, 0.18);
}

.aux-card {
  min-height: 172px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.aux-card:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 215, 183, 0.34);
  background:
    linear-gradient(135deg, rgba(26, 215, 183, 0.1), rgba(255, 255, 255, 0.018)),
    rgba(6, 24, 21, 0.7);
}

.aux-card small,
.aux-rule span,
.aux-article small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #20d1b6;
  font-size: 12px;
  line-height: 1;
  font-weight: 820;
}

.aux-card small::before,
.aux-rule span::before,
.aux-article small::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24d0b4;
  box-shadow: 0 0 18px rgba(36, 208, 180, 0.48);
}

.aux-card h2 {
  margin: 18px 0 10px;
  color: #f4fffb;
  font-size: 24px;
  line-height: 1.16;
  font-weight: 840;
  letter-spacing: 0;
}

.aux-card a {
  display: inline-flex;
  margin-top: 10px;
  color: #24d0b4;
  font-size: 13px;
  font-weight: 820;
}

.aux-rules {
  padding: 30px;
}

.aux-rules h2,
.aux-article h2 {
  margin: 0 0 20px;
  color: #f4fffb;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 850;
}

.aux-rule-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  counter-reset: aux;
}

.aux-rule {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(192, 229, 218, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}

.aux-rule::before {
  counter-increment: aux;
  content: counter(aux, decimal-leading-zero);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #073b34;
  background: #e9f7f2;
  font-size: 12px;
  font-weight: 900;
}

.aux-rule h3 {
  margin: 0 0 6px;
  color: #f2fffb;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 820;
}

.aux-rule p,
.aux-card p,
.aux-article p {
  margin: 0;
}

.aux-article {
  padding: 30px;
}

.aux-article + .aux-article {
  margin-top: 16px;
}

.aux-article ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.aux-article li {
  position: relative;
  padding-left: 20px;
  color: rgba(204, 225, 219, 0.72);
  font-size: 14px;
  line-height: 1.75;
  font-weight: 620;
}

.aux-article li::before {
  content: "";
  position: absolute;
  top: 0.74em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24d0b4;
}

.aux-page.refined {
  padding-top: 34px;
  padding-bottom: 46px;
}

.is-hidden {
  display: none !important;
}

.aux-page.refined .aux-hero {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 34%);
  gap: 18px;
  align-items: stretch;
  min-height: 218px;
  margin-bottom: 14px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid rgba(26, 215, 183, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(circle at 76% 48%, rgba(26, 215, 183, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(8, 33, 28, 0.96), rgba(2, 15, 13, 0.98));
  box-shadow: 0 22px 70px rgba(1, 10, 8, 0.38);
}

.aux-hero-media {
  position: relative;
  min-height: 132px;
  margin: 0 0 14px;
  overflow: hidden;
  border: 1px solid rgba(123, 242, 216, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.aux-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 34%, rgba(3, 20, 17, 0.62)),
    radial-gradient(circle at 72% 18%, rgba(36, 208, 180, 0.18), transparent 36%);
}

.aux-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.02);
}

.aux-page.refined .aux-hero h1 {
  max-width: 760px;
  margin: 12px 0 10px;
  font-size: clamp(30px, 3.25vw, 48px);
  line-height: 1.04;
}

.aux-page.refined .aux-hero p {
  max-width: 680px;
  font-size: 12px;
  line-height: 1.62;
}

.aux-page.refined .aux-note {
  display: grid;
  align-content: center;
  min-height: 166px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 18%, rgba(36, 208, 180, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018)),
    rgba(255, 255, 255, 0.024);
}

.aux-page.refined .aux-note.has-media {
  align-content: stretch;
  padding: 14px;
}

.aux-page.refined .aux-note.has-media strong,
.aux-page.refined .aux-note.has-media p {
  padding-inline: 4px;
}

.aux-page.refined .aux-note strong {
  margin-bottom: 8px;
  font-size: 14px;
}

.aux-page.refined .aux-note p {
  font-size: 11px;
  line-height: 1.55;
}

.aux-directory {
  display: grid;
  grid-template-columns: minmax(230px, 0.30fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.aux-side-panel,
.aux-accordion-panel,
.archive-refined-panel,
.account-refined-panel {
  border: 1px solid rgba(123, 242, 216, 0.15);
  border-radius: 24px;
  background:
    radial-gradient(circle at 24% 18%, rgba(26, 215, 183, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.012)),
    rgba(5, 22, 19, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 18px 48px rgba(0, 0, 0, 0.18);
}

.aux-side-panel {
  position: sticky;
  top: 104px;
  padding: 15px;
  border-radius: 20px;
}

.aux-side-panel h2,
.aux-accordion-panel h2,
.archive-refined-panel h2,
.account-refined-panel h2 {
  margin: 0 0 12px;
  color: #f2fffb;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 860;
  letter-spacing: 0;
}

.aux-side-panel p {
  margin: 0 0 12px;
  color: rgba(204, 225, 219, 0.68);
  font-size: 11px;
  line-height: 1.55;
  font-weight: 620;
}

.aux-mini-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aux-mini-list a,
.aux-mini-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid rgba(190, 229, 219, 0.11);
  border-radius: 999px;
  color: rgba(226, 243, 238, 0.82);
  font-size: 10px;
  font-weight: 780;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.026);
}

.aux-mini-list a::after {
  content: "↗";
  color: #25d6bc;
  font-size: 13px;
}

.aux-accordion-panel {
  padding: 16px 18px 8px;
  border-radius: 20px;
}

.aux-accordion-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(190, 229, 219, 0.12);
}

.aux-accordion-head p {
  max-width: 520px;
  margin: 0;
  color: rgba(204, 225, 219, 0.62);
  font-size: 10px;
  line-height: 1.48;
  font-weight: 620;
}

.kq-accordion {
  border-bottom: 1px solid rgba(190, 229, 219, 0.105);
  border-radius: 14px;
  transition: background 180ms ease, border-color 180ms ease;
}

.kq-accordion[open] {
  margin: 4px 0;
  border: 1px solid rgba(123, 242, 216, 0.13);
  background: rgba(2, 16, 14, 0.34);
}

.kq-accordion summary {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  color: #f2fffb;
  cursor: pointer;
  list-style: none;
}

.kq-accordion summary::-webkit-details-marker {
  display: none;
}

.kq-accordion summary::before {
  content: "";
  width: 8px;
  height: 8px;
  justify-self: center;
  border-radius: 50%;
  background: #24d0b4;
  box-shadow: 0 0 20px rgba(36, 208, 180, 0.48);
}

.kq-accordion summary::after {
  content: "⌄";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(190, 229, 219, 0.14);
  border-radius: 50%;
  color: #24d0b4;
  font-size: 12px;
  transition: transform 180ms ease, background 180ms ease;
}

.kq-accordion[open] summary::after {
  transform: rotate(180deg);
  background: rgba(36, 208, 180, 0.12);
}

.kq-accordion-title {
  display: grid;
  gap: 2px;
}

.kq-accordion-title b {
  color: #f2fffb;
  font-size: 12px;
  line-height: 1.32;
  font-weight: 850;
}

.kq-accordion-title span {
  color: rgba(204, 225, 219, 0.55);
  font-size: 9px;
  line-height: 1.25;
  font-weight: 700;
}

.kq-accordion-body {
  padding: 4px 40px 14px 31px;
  color: rgba(244, 255, 251, 0.96);
  font-size: 11px;
  line-height: 1.58;
  font-weight: 700;
  animation: auxReveal 180ms ease both;
}

.kq-accordion-body p {
  margin: 0 0 8px;
}

.kq-accordion-body ul {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.kq-accordion-body li {
  position: relative;
  padding-left: 13px;
}

.kq-accordion-body li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(36, 208, 180, 0.92);
}

@keyframes auxReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.archive-refined-grid,
.account-refined-grid {
  display: grid;
  gap: 16px;
}

.archive-refined-panel,
.account-refined-panel {
  padding: 22px;
}

.archive-date-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-date-strip .chip {
  min-height: 38px;
  padding: 0 16px;
}

.archive-kpi-row,
.account-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.archive-kpi-row > div,
.account-kpi-row > div {
  min-height: 90px;
  padding: 16px;
  border: 1px solid rgba(190, 229, 219, 0.105);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.026);
}

.archive-kpi-row small,
.account-kpi-row small {
  display: block;
  color: rgba(204, 225, 219, 0.54);
  font-size: 11px;
  font-weight: 780;
}

.archive-kpi-row b,
.account-kpi-row b {
  display: block;
  margin-top: 8px;
  color: #f2fffb;
  font-size: 28px;
  line-height: 1;
  font-weight: 880;
}

.archive-kpi-row span,
.account-kpi-row span {
  display: block;
  margin-top: 8px;
  color: rgba(204, 225, 219, 0.58);
  font-size: 11px;
  font-weight: 700;
}

.archive-day-card {
  border: 1px solid rgba(190, 229, 219, 0.105);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.archive-day-card summary {
  min-height: 70px;
  padding: 0 18px;
}

.archive-day-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.archive-day-meta span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(226, 243, 238, 0.75);
  font-size: 10px;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.055);
}

.archive-mini-table {
  width: 100%;
  border-collapse: collapse;
  color: rgba(239, 252, 248, 0.9);
  font-size: 12px;
  font-weight: 680;
  background: rgba(3, 17, 15, 0.26);
  border-radius: 14px;
  overflow: hidden;
}

.archive-mini-table th,
.archive-mini-table td {
  padding: 13px 14px;
  border-top: 1px solid rgba(190, 229, 219, 0.08);
  text-align: left;
}

.archive-mini-table th {
  color: rgba(204, 225, 219, 0.7);
  font-size: 10px;
  text-transform: uppercase;
}

.archive-mini-table td {
  color: rgba(239, 252, 248, 0.88);
}

.archive-ledger-page {
  display: grid;
  gap: 12px;
  padding-top: 34px;
}

.archive-result-hero {
  min-height: 248px;
  margin-bottom: 4px;
  padding: 24px 26px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
}

.archive-result-photo figcaption {
  right: 18px;
  left: 18px;
}

.archive-ledger-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: end;
  padding: 26px 28px;
  border: 1px solid rgba(123, 242, 216, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 82% 14%, rgba(34, 218, 188, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(3, 18, 16, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 18px 50px rgba(0, 0, 0, 0.20);
}

.archive-ledger-hero h1 {
  max-width: 840px;
  margin: 10px 0 8px;
  color: #f4fffb;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
}

.archive-ledger-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(204, 225, 219, 0.72);
  font-size: 13px;
  line-height: 1.72;
  font-weight: 660;
}

.archive-download {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(190, 229, 219, 0.14);
  border-radius: 18px;
  color: #082e29;
  text-decoration: none;
  background: linear-gradient(135deg, #e7f8f3, #24d0b4);
}

.archive-download span {
  font-size: 11px;
  font-weight: 850;
  opacity: 0.7;
}

.archive-download strong {
  font-size: 19px;
  line-height: 1.1;
  font-weight: 900;
}

.archive-ledger-board {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(26, 215, 183, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)),
    rgba(2, 16, 14, 0.78);
}

.archive-ledger-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 2px;
}

.archive-ledger-page .archive-date-strip {
  gap: 6px;
}

.archive-ledger-page .archive-date-strip .chip {
  min-height: 30px;
  padding: 0 12px;
  font-size: 10px;
}

.archive-ledger-status {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.archive-ledger-status span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(190, 229, 219, 0.105);
  border-radius: 999px;
  color: rgba(226, 243, 238, 0.68);
  font-size: 10px;
  font-weight: 820;
  background: rgba(255, 255, 255, 0.03);
}

.archive-ledger-kpis {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.archive-ledger-kpis > div {
  min-height: 54px;
  padding: 9px 11px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.014));
}

.archive-ledger-kpis small {
  font-size: 9px;
}

.archive-ledger-kpis b {
  margin-top: 5px;
  font-size: 18px;
}

.archive-ledger-kpis span {
  margin-top: 5px;
  font-size: 9px;
}

.archive-ledger-table-wrap {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(190, 229, 219, 0.10);
  border-radius: 20px;
  background: rgba(0, 11, 10, 0.32);
}

.archive-ledger-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 6px;
}

.archive-ledger-title div {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.archive-ledger-title div span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #24d0b4;
  box-shadow: 0 0 20px rgba(36, 208, 180, 0.52);
}

.archive-ledger-title strong {
  color: #f2fffb;
  font-size: 15px;
  font-weight: 880;
}

.archive-ledger-title p {
  margin: 0;
  color: rgba(204, 225, 219, 0.56);
  font-size: 10px;
  font-weight: 700;
}

.archive-ledger-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(190, 229, 219, 0.09);
  border-radius: 16px;
}

.archive-ledger-head,
.archive-ledger-row summary {
  display: grid;
  grid-template-columns: 62px minmax(190px, 1.35fr) minmax(100px, 0.75fr) minmax(136px, 1fr) 96px 64px 78px 24px;
  gap: 10px;
  align-items: center;
}

.archive-ledger-head {
  min-height: 32px;
  padding: 0 12px;
  color: rgba(204, 225, 219, 0.52);
  font-size: 10px;
  font-weight: 860;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.032);
}

.archive-ledger-row {
  border-top: 1px solid rgba(190, 229, 219, 0.08);
  background: rgba(255, 255, 255, 0.012);
}

.archive-ledger-row summary {
  min-height: 48px;
  padding: 0 12px;
  color: rgba(239, 252, 248, 0.9);
  list-style: none;
  cursor: pointer;
  transition: background 180ms ease;
}

.archive-ledger-row summary::-webkit-details-marker {
  display: none;
}

.archive-ledger-row summary:hover {
  background: rgba(36, 208, 180, 0.055);
}

.archive-ledger-row summary::after {
  content: "⌄";
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(190, 229, 219, 0.12);
  border-radius: 50%;
  color: #24d0b4;
  font-size: 12px;
  transition: transform 180ms ease, background 180ms ease;
}

.archive-ledger-row[open] summary::after {
  transform: rotate(180deg);
  background: rgba(36, 208, 180, 0.12);
}

.archive-ledger-row b,
.archive-ledger-row strong {
  color: #f2fffb;
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 850;
}

.archive-ledger-row span,
.archive-ledger-row em {
  color: rgba(204, 225, 219, 0.66);
  font-style: normal;
  font-size: 10px;
  line-height: 1.35;
  font-weight: 720;
}

.archive-ledger-row em {
  color: #24d0b4;
  font-weight: 860;
}

.archive-ledger-row .pill {
  min-height: 24px;
  padding: 5px 8px;
  font-size: 9px;
}

.archive-ledger-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px 84px;
  animation: auxReveal 160ms ease both;
}

.archive-ledger-detail span {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(190, 229, 219, 0.09);
  border-radius: 999px;
  color: rgba(226, 243, 238, 0.68);
  font-size: 9px;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.03);
}

.account-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: stretch;
}

.account-status-card {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 150px;
  padding: 24px;
  border-radius: 24px;
  color: #052b26;
  background: linear-gradient(135deg, #23d6bd, #e8f8f2 72%);
}

.account-status-card small {
  color: rgba(5, 43, 38, 0.72);
  font-size: 11px;
  font-weight: 850;
}

.account-status-card b {
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
}

.account-status-card span {
  font-size: 12px;
  font-weight: 780;
}

.account-action-stack {
  display: grid;
  gap: 10px;
}

.account-action-stack a {
  display: grid;
  place-items: center;
  min-height: 68px;
  border: 1px solid rgba(190, 229, 219, 0.12);
  border-radius: 18px;
  color: #f2fffb;
  font-size: 13px;
  font-weight: 840;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
}

.account-dashboard-page {
  display: grid;
  gap: 12px;
  padding-top: 34px;
}

.account-dashboard-hero {
  min-height: 248px;
  padding: 24px 26px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 30%);
  margin-bottom: 4px;
}

.account-status-visual figcaption {
  right: 18px;
  left: 18px;
}

.account-hero-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 166px;
  padding: 20px;
  border: 1px solid rgba(190, 229, 219, 0.13);
  border-radius: 22px;
  color: #082e29;
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #e7f8f3 0%, #23d6bd 92%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.20);
}

.account-hero-card small {
  color: rgba(5, 43, 38, 0.68);
  font-size: 10px;
  font-weight: 880;
}

.account-hero-card strong {
  color: #052b26;
  font-size: 28px;
  line-height: 1;
  font-weight: 930;
}

.account-hero-card span {
  color: rgba(5, 43, 38, 0.72);
  font-size: 11px;
  font-weight: 780;
}

.account-hero-card div {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.account-hero-card a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #f2fffb;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
  background: #062c27;
}

.account-hero-card a + a {
  color: #062c27;
  background: rgba(255, 255, 255, 0.82);
}

.account-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.account-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 10px;
  align-items: stretch;
}

.account-summary-main {
  min-width: 0;
}

.account-panel {
  padding: 12px;
  border: 1px solid rgba(123, 242, 216, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 22% 12%, rgba(26, 215, 183, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.012)),
    rgba(3, 18, 16, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.052), 0 18px 48px rgba(0, 0, 0, 0.16);
}

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

.account-panel-head div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.account-panel-head div span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24d0b4;
  box-shadow: 0 0 18px rgba(36, 208, 180, 0.52);
}

.account-panel-head strong {
  color: #f2fffb;
  font-size: 14px;
  font-weight: 880;
}

.account-panel-head p {
  margin: 0;
  color: rgba(204, 225, 219, 0.56);
  font-size: 10px;
  font-weight: 720;
}

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

.account-metric-grid div {
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid rgba(190, 229, 219, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.026);
}

.account-metric-grid small {
  display: block;
  color: rgba(204, 225, 219, 0.54);
  font-size: 8px;
  font-weight: 820;
}

.account-metric-grid b {
  display: block;
  margin-top: 4px;
  color: #f2fffb;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
}

.account-metric-grid span {
  display: block;
  margin-top: 4px;
  color: rgba(204, 225, 219, 0.58);
  font-size: 9px;
  line-height: 1.35;
  font-weight: 700;
}

.account-side-card {
  display: grid;
  gap: 7px;
  align-content: start;
}

.account-summary-links {
  padding-left: 10px;
  border-left: 1px solid rgba(190, 229, 219, 0.10);
}

.account-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.account-side-card a {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border: 1px solid rgba(190, 229, 219, 0.11);
  border-radius: 14px;
  color: #f2fffb;
  font-size: 11px;
  font-weight: 840;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.028);
}

.account-side-card a::after {
  content: "↗";
  color: #24d0b4;
}

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

.account-access-grid a {
  position: relative;
  display: grid;
  min-height: 104px;
  align-content: start;
  gap: 7px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(190, 229, 219, 0.12);
  border-radius: 16px;
  color: #f2fffb;
  text-decoration: none;
  background:
    radial-gradient(circle at 86% 18%, rgba(36, 208, 180, 0.18), transparent 34%),
    rgba(255, 255, 255, 0.024);
}

.account-access-grid small {
  color: #24d0b4;
  font-size: 9px;
  font-weight: 860;
  text-transform: uppercase;
}

.account-access-grid b {
  color: #f2fffb;
  font-size: 18px;
  line-height: 1.12;
  font-weight: 900;
}

.account-access-grid span {
  color: rgba(204, 225, 219, 0.62);
  font-size: 11px;
  line-height: 1.45;
  font-weight: 680;
}

.account-access-grid em {
  justify-self: start;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 999px;
  color: #06231f;
  font-style: normal;
  font-size: 9px;
  font-weight: 880;
  background: #24d0b4;
}

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

.account-tool-grid a {
  display: grid;
  min-height: 136px;
  align-content: start;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(190, 229, 219, 0.11);
  border-radius: 16px;
  color: #f2fffb;
  text-decoration: none;
  background:
    radial-gradient(circle at 82% 18%, rgba(36, 208, 180, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016));
}

.account-tool-grid small {
  color: #24d0b4;
  font-size: 9px;
  font-weight: 860;
}

.account-tool-grid b {
  color: #f2fffb;
  font-size: 15px;
  line-height: 1.18;
  font-weight: 900;
}

.account-tool-grid span {
  color: rgba(204, 225, 219, 0.64);
  font-size: 10px;
  line-height: 1.48;
  font-weight: 680;
}

.account-tool-grid em {
  align-self: end;
  justify-self: start;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  margin-top: 4px;
  padding: 0 8px;
  border-radius: 999px;
  color: #06231f;
  font-style: normal;
  font-size: 9px;
  font-weight: 880;
  background: #bff7df;
}

.account-order-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(190, 229, 219, 0.09);
  border-radius: 14px;
}

.account-order-table > div {
  display: grid;
  grid-template-columns: 130px minmax(140px, 1fr) 90px 130px 110px 72px;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-top: 1px solid rgba(190, 229, 219, 0.08);
}

.account-order-table > div:first-child {
  min-height: 32px;
  border-top: 0;
  color: rgba(204, 225, 219, 0.52);
  font-size: 10px;
  font-weight: 860;
  background: rgba(255, 255, 255, 0.032);
}

.account-order-table span,
.account-order-table b {
  color: rgba(239, 252, 248, 0.88);
  font-size: 10px;
  font-weight: 760;
}

.account-order-table b {
  color: #f2fffb;
  font-weight: 860;
}

.account-order-table a {
  color: #24d0b4;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

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

.account-help-card {
  border: 1px solid rgba(190, 229, 219, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.024);
}

.account-help-card summary {
  min-height: 42px;
  padding: 0 14px;
  color: #f2fffb;
  font-size: 12px;
  font-weight: 860;
  cursor: pointer;
  list-style: none;
}

.account-help-card summary::-webkit-details-marker {
  display: none;
}

.account-help-card p {
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(204, 225, 219, 0.62);
  font-size: 11px;
  line-height: 1.5;
  font-weight: 660;
}

/* Compact archive/account pages to match the match center rhythm */
.archive-ledger-page,
.account-dashboard-page {
  gap: 10px;
  padding-top: 26px;
}

.archive-ledger-page .match-lab-hero,
.account-dashboard-page .match-lab-hero {
  min-height: 230px;
  padding: 22px 24px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
}

.archive-ledger-page .hero-copy h1,
.account-dashboard-page .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1;
}

.archive-ledger-page .hero-copy p,
.account-dashboard-page .hero-copy p {
  max-width: 720px;
  font-size: 12px;
  line-height: 1.6;
}

.archive-ledger-page .hero-stats,
.account-dashboard-page .hero-stats {
  margin-top: 18px;
  gap: 8px;
}

.archive-ledger-page .hero-stats span,
.account-dashboard-page .hero-stats span {
  min-height: 34px;
  padding: 0 12px;
  font-size: 10px;
  align-items: center;
}

.archive-ledger-page .hero-stats b,
.account-dashboard-page .hero-stats b {
  font-size: 17px;
}

.archive-result-photo,
.account-status-visual {
  max-width: 360px;
  justify-self: end;
}

.archive-ledger-board,
.account-panel {
  border-radius: 20px;
}

.archive-ledger-board {
  gap: 8px;
  padding: 12px;
}

.archive-ledger-toolbar {
  gap: 8px;
}

.archive-ledger-page .archive-date-strip .chip {
  min-height: 28px;
  padding: 0 11px;
  font-size: 9px;
}

.archive-ledger-status span {
  min-height: 26px;
  padding: 0 9px;
  font-size: 9px;
}

.archive-ledger-kpis > div {
  min-height: 48px;
  padding: 8px 10px;
}

.archive-ledger-kpis b {
  margin-top: 3px;
  font-size: 16px;
}

.archive-ledger-table-wrap {
  gap: 6px;
  padding: 8px;
  border-radius: 18px;
}

.archive-ledger-title {
  padding-bottom: 4px;
}

.archive-ledger-title strong {
  font-size: 14px;
}

.archive-ledger-head,
.archive-ledger-row summary {
  grid-template-columns: 58px minmax(180px, 1.25fr) minmax(92px, 0.72fr) minmax(126px, 0.9fr) 88px 58px 68px 22px;
  gap: 8px;
}

.archive-ledger-head {
  min-height: 28px;
  padding: 0 10px;
  font-size: 9px;
}

.archive-ledger-row summary {
  min-height: 42px;
  padding: 0 10px;
}

.archive-ledger-row b,
.archive-ledger-row strong {
  font-size: 10px;
}

.archive-ledger-row span,
.archive-ledger-row em {
  font-size: 9px;
}

.archive-ledger-detail {
  padding: 0 10px 8px 74px;
}

.account-dashboard-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.account-summary-layout {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 9px;
}

.account-panel {
  padding: 11px;
}

.account-panel-head {
  margin-bottom: 7px;
}

.account-panel-head strong {
  font-size: 13px;
}

.account-metric-grid {
  gap: 7px;
}

.account-metric-grid div {
  min-height: 48px;
  padding: 7px 9px;
}

.account-metric-grid b {
  font-size: 16px;
}

.account-side-card a {
  min-height: 34px;
  font-size: 10px;
}

.account-access-grid {
  gap: 8px;
}

.account-access-grid a {
  min-height: 92px;
  gap: 5px;
  padding: 10px;
}

.account-access-grid b {
  font-size: 16px;
}

.account-access-grid span {
  font-size: 10px;
  line-height: 1.38;
}

.account-tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.account-tool-grid a {
  min-height: 126px;
  gap: 6px;
  padding: 10px;
}

.account-tool-grid b {
  font-size: 14px;
}

.account-tool-grid span {
  font-size: 9.5px;
  line-height: 1.42;
}

.account-order-table > div {
  min-height: 38px;
  padding: 0 10px;
  grid-template-columns: 120px minmax(130px, 1fr) 78px 120px 96px 64px;
}

.account-help-grid {
  gap: 8px;
}

.account-help-card summary {
  min-height: 36px;
  font-size: 11px;
}

.account-help-card p {
  padding: 0 12px 12px;
  font-size: 10px;
}

@media (max-width: 980px) {
  .aux-page.refined .aux-hero {
    grid-template-columns: 1fr;
  }

  .aux-hero-media {
    min-height: 210px;
  }

  .aux-directory,
  .archive-kpi-row,
  .account-kpi-row,
  .account-topline,
  .account-dashboard-grid,
  .account-summary-layout,
  .account-metric-grid,
  .account-access-grid,
  .account-tool-grid,
  .account-help-grid {
    grid-template-columns: 1fr;
  }

  .account-summary-links {
    padding-left: 0;
    padding-top: 10px;
    border-left: 0;
    border-top: 1px solid rgba(190, 229, 219, 0.10);
  }

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

  .aux-side-panel {
    position: relative;
    top: auto;
  }

  .account-order-table {
    overflow-x: auto;
  }

  .account-order-table > div {
    min-width: 760px;
  }

  .account-hero-card {
    min-height: 220px;
  }
}

@media (max-width: 980px) {
  .aux-hero,
  .aux-grid,
  .aux-rule-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1240px) {
  .footer-shell {
    width: min(100% - 48px, 1120px);
  }

  .footer-index {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-card-wide {
    grid-column: 1 / -1;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 22px 34px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    margin-top: 48px;
  }

  .footer-index,
  .footer-brand-row,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-card {
    min-height: auto;
  }

  .footer-card-wide nav {
    grid-template-columns: 1fr;
  }

  .footer-card-wide nav::before {
    display: none;
  }

  .footer-socials,
  .footer-bottom span:last-child {
    justify-self: start;
  }
}

/* Radar-style methodology page */
.radar-method {
  width: min(100% - 64px, 1320px);
  margin: 0 auto;
  padding: 34px 0 18px;
  position: relative;
  isolation: isolate;
}

.radar-method::before {
  content: "";
  position: fixed;
  inset: 72px 0 0 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2, 11, 9, 0.76), rgba(2, 11, 9, 0.36) 44%, rgba(2, 11, 9, 0.7)),
    url("assets/page-images/site-data-bg.jpg") center 38% / cover no-repeat;
  opacity: 0.16;
  filter: saturate(0.72) contrast(1.12);
  -webkit-mask-image: radial-gradient(circle at 58% 46%, #000 0 34%, rgba(0,0,0,.72) 50%, transparent 82%);
  mask-image: radial-gradient(circle at 58% 46%, #000 0 34%, rgba(0,0,0,.72) 50%, transparent 82%);
}

.radar-method::after {
  content: "";
  position: absolute;
  inset: 0 -90px 0 -90px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 62% 28%, rgba(35, 222, 190, 0.12), transparent 28%),
    radial-gradient(circle at 40% 62%, rgba(215, 243, 90, 0.055), transparent 24%);
}

.radar-grid {
  min-height: 2760px;
  display: grid;
  grid-template-columns: minmax(460px, 46%) minmax(520px, 54%);
  position: relative;
}

.radar-copy {
  padding: 138px 0 80px 148px;
}

.radar-step {
  min-height: 640px;
  padding-bottom: 54px;
  color: rgba(223, 237, 233, 0.68);
  opacity: 0.42;
  transform: translateY(22px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.radar-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.radar-label {
  margin: 0 0 34px;
  color: #34dec2;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 850;
}

.radar-step h1,
.radar-step h2 {
  margin: 0 0 36px;
  max-width: 350px;
  color: #edf8f5;
  font-size: 29px;
  line-height: 1.263;
  letter-spacing: 0;
  font-weight: 850;
}

.radar-step h2 {
  font-size: 18px;
  line-height: 1.385;
}

.radar-lead {
  max-width: 350px;
  margin: 0 0 34px;
  color: rgba(206, 222, 218, 0.82);
  font-size: 11px;
  line-height: 1.555;
  font-weight: 500;
}

.radar-mini {
  max-width: 320px;
  margin: 28px 0 72px;
  padding-left: 24px;
  border-left: 1px solid rgba(35, 222, 190, 0.72);
}

.radar-mini span {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 0 20px;
  border-radius: 17px;
  background:
    radial-gradient(circle at 50% 48%, #d8fff4 0 8%, transparent 9%),
    conic-gradient(from 0deg, #23debe, #d9f45f, #39c5a8, #23debe);
  box-shadow: 0 0 24px rgba(35, 222, 190, 0.28);
  animation: radarIconPulse 2.6s ease-in-out infinite;
}

.radar-mini.market span {
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 44%, rgba(5, 28, 24, .78) 45% 55%, transparent 56%),
    linear-gradient(0deg, transparent 44%, rgba(5, 28, 24, .78) 45% 55%, transparent 56%),
    radial-gradient(circle, #d8fff4 0 10%, transparent 11%),
    #23debe;
}

.radar-mini.price span {
  border-radius: 13px;
  background:
    linear-gradient(90deg, #d9f45f 0 34%, #23debe 34% 70%, #0d7c68 70%),
    #23debe;
}

.radar-mini.pattern span {
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}

.radar-mini.signal span {
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 24%, #d9f45f 0 10%, transparent 11%),
    linear-gradient(135deg, transparent 38%, rgba(255,255,255,.7) 39% 43%, transparent 44%),
    #23debe;
}

.radar-mini.output span {
  border-radius: 14px 14px 4px 4px;
  background:
    linear-gradient(90deg, rgba(5,28,24,.82) 0 16%, transparent 17% 32%, rgba(5,28,24,.82) 33% 49%, transparent 50% 65%, rgba(5,28,24,.82) 66% 82%, transparent 83%),
    #d9f45f;
}

.radar-mini b {
  display: block;
  margin: 0 0 14px;
  color: #edf8f5;
  font-size: 11px;
  line-height: 1.6;
  font-weight: 760;
}

.radar-mini p {
  margin: 0;
  color: rgba(206, 222, 218, 0.78);
  font-size: 11px;
  line-height: 1.6;
  font-weight: 500;
}

.radar-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(350px, 100%);
  margin: 22px 0 36px;
}

.radar-stat-grid div {
  min-height: 82px;
  padding: 13px 12px;
  border: 1px solid rgba(217, 244, 95, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 86% 18%, rgba(35, 222, 190, 0.11), transparent 32%),
    rgba(255, 255, 255, 0.06);
}

.radar-stat-grid b {
  display: block;
  color: #d9f45f;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1;
  font-weight: 820;
}

.radar-stat-grid span {
  display: block;
  margin-top: 10px;
  color: rgba(237, 248, 245, 0.78);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 720;
}

.radar-cta {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  color: #06241f;
  background: #e9f7f2;
  font-size: 11px;
  font-weight: 900;
}

.radar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(35, 222, 190, 0.18);
}

.radar-sticky {
  min-width: 0;
  position: sticky;
  top: 104px;
  height: calc(100vh - 104px);
  display: grid;
  place-items: center;
}

.radar-orb {
  width: min(45vw, 560px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  transition: filter 240ms ease;
}

.radar-orb::after {
  content: none;
}

.radar-three-orb canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
}

.radar-three-orb .radar-orb-glow {
  inset: 10% 10% 10% 10%;
  background:
    radial-gradient(circle at 49% 48%, rgba(172, 255, 236, 0.16) 0 18%, rgba(13, 111, 95, 0.13) 34%, rgba(2, 12, 10, 0.05) 56%, transparent 70%);
  filter: blur(22px);
  opacity: .54;
  mix-blend-mode: screen;
  transform: none;
}

.radar-orb-glow {
  position: absolute;
  inset: 15%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35,222,190,.28), transparent 64%);
  filter: blur(26px);
  opacity: .8;
  mix-blend-mode: screen;
}

@keyframes radarIconPulse {
  50% { transform: translateY(-4px) scale(1.06); box-shadow: 0 0 34px rgba(35,222,190,.38); }
}

@media (max-width: 980px) {
  .radar-method {
    width: min(100% - 32px, 720px);
  }

  .radar-grid {
    min-height: auto;
    display: block;
    background: none;
    border: 0;
  }

  .radar-copy {
    padding: 40px 0 20px;
  }

  .radar-step {
    min-height: auto;
    margin-bottom: 48px;
    opacity: 1;
    transform: none;
  }

  .radar-sticky {
    position: relative;
    top: auto;
    height: 420px;
    margin-bottom: 30px;
  }

  .radar-orb {
    width: min(86vw, 420px);
  }
}

/* Webflow timeline-inspired model workflow */
.workflow-page {
  background:
    radial-gradient(circle at 50% 18%, rgba(26, 215, 183, 0.12), transparent 34%),
    linear-gradient(135deg, #020807, #071916 54%, #020807);
}

.workflow-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.workflow-shell::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, rgba(215, 243, 90, 0.08), transparent 26%),
    url("assets/page-images/site-data-bg.jpg") center / cover no-repeat;
  opacity: 0.08;
  filter: saturate(0.72) contrast(1.08);
  -webkit-mask-image: radial-gradient(circle at 50% 46%, #000 0 26%, transparent 72%);
  mask-image: radial-gradient(circle at 50% 46%, #000 0 26%, transparent 72%);
}

.workflow-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  place-items: center;
  --hero-progress: 0;
}

.workflow-clone-hint {
  position: absolute;
  top: 38px;
  right: min(8vw, 110px);
  height: 38px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #05221d;
  background: #eaf8f3;
  font-size: 12px;
  font-weight: 900;
}

.workflow-hero-word {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(-12deg) scale(calc(5.6 - var(--hero-progress) * 4.2));
  transform-origin: 50% 50%;
  transition: transform 120ms linear, opacity 120ms linear, filter 120ms linear;
}

.workflow-hero-word span {
  color: rgba(238, 248, 244, 0.88);
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(42px, 8vw, 118px);
  line-height: 0.88;
  font-weight: 500;
  text-transform: uppercase;
}

.workflow-hero-word strong {
  color: #eaf8f3;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(88px, 17vw, 258px);
  line-height: 0.82;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-hero-word-main {
  opacity: calc(1 - var(--hero-progress) * 0.92);
  filter: blur(calc(var(--hero-progress) * 5px));
}

.workflow-hero-word-back {
  opacity: calc(0.34 - var(--hero-progress) * 0.3);
  transform: rotate(-12deg) scale(calc(7.4 - var(--hero-progress) * 5.8));
  filter: blur(2px);
}

.workflow-start-line {
  position: absolute;
  left: 50%;
  bottom: 40px;
  width: 10px;
  height: 120px;
  display: grid;
  justify-items: center;
  transform: translateX(-50%);
}

.workflow-start-line span {
  width: 10px;
  height: 88px;
  display: block;
  background: #d7f35a;
  transform: scaleY(calc(0.15 + var(--hero-progress) * 0.85));
  transform-origin: 50% 0%;
}

.workflow-start-line small {
  margin-top: 14px;
  color: rgba(238, 248, 244, 0.58);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.workflow-timeline {
  position: relative;
  padding: 0 0 220px;
}

.workflow-network {
  width: min(42vw, 600px);
  min-width: 520px;
  margin: 0 auto;
}

.workflow-row,
.workflow-split,
.workflow-finale {
  --line-progress: 0;
}

.workflow-row {
  min-height: 160px;
  display: flex;
  align-items: center;
  color: rgba(226, 241, 236, 0.78);
}

.workflow-row-right {
  justify-content: flex-end;
}

.workflow-row-left {
  justify-content: flex-start;
}

.workflow-row-double {
  justify-content: space-between;
  min-height: 360px;
}

.workflow-copy {
  width: 210px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.workflow-copy.compact {
  width: 185px;
}

.workflow-copy.right {
  text-align: right;
}

.is-visible .workflow-copy,
.workflow-row.is-visible .workflow-copy {
  opacity: 1;
  transform: translateY(0);
}

.workflow-copy h2 {
  margin: 0 0 8px;
  color: #d7f35a;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.workflow-copy p {
  margin: 0;
  color: rgba(213, 229, 224, 0.72);
  font-size: 12px;
  line-height: 1.7;
  font-weight: 700;
}

.workflow-node {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  color: #05221d;
  background: #eaf8f3;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 340ms ease, transform 340ms ease;
}

.is-visible .workflow-node,
.workflow-row.is-visible .workflow-node {
  opacity: 1;
  transform: scale(1);
}

.workflow-vline,
.workflow-hline {
  display: block;
  flex: none;
  background: linear-gradient(180deg, #d7f35a, #23debe);
  box-shadow: 0 0 24px rgba(35, 222, 190, 0.18);
}

.workflow-vline {
  width: 10px;
  height: 200px;
  margin: 0 24px;
  transform: scaleY(var(--line-progress));
  transform-origin: 50% 0%;
}

.workflow-vline.short {
  height: 100px;
}

.workflow-vline.long {
  height: 400px;
}

.workflow-vline.med {
  height: 250px;
}

.workflow-hline {
  width: 100%;
  height: 10px;
  transform: scaleX(var(--line-progress));
}

.workflow-hline.origin-left {
  transform-origin: 0% 50%;
}

.workflow-hline.origin-right {
  transform-origin: 100% 50%;
}

.workflow-hline.quarter {
  width: 51.4%;
  margin-left: auto;
}

.workflow-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.workflow-mini-grid {
  --line-progress: 0;
  width: 360px;
  margin: 110px auto;
  display: grid;
  grid-template-columns: repeat(3, 70px);
  grid-auto-rows: 70px;
  justify-content: center;
  gap: 0;
  opacity: var(--line-progress);
  transform: scale(calc(0.82 + var(--line-progress) * 0.18));
}

.workflow-mini-grid span,
.workflow-mini-grid i {
  display: block;
  border: 5px solid #23debe;
  border-radius: 6px;
  box-shadow: 0 0 22px rgba(35, 222, 190, 0.18);
}

.workflow-mini-grid i {
  border-color: #d7f35a;
  transform: rotate(90deg);
}

.workflow-finale {
  --line-progress: 0;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflow-finale .workflow-vline:first-child {
  transform-origin: 50% 100%;
}

.workflow-finale-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: var(--line-progress);
  transform: rotate(-12deg) scale(calc(0.84 + var(--line-progress) * 0.16));
}

.workflow-finale-text span {
  color: rgba(238, 248, 244, 0.88);
  font-family: Oswald, Inter, sans-serif;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 500;
  text-transform: uppercase;
}

.workflow-finale-text strong {
  color: #eaf8f3;
  font-family: Oswald, Inter, sans-serif;
  font-size: 112px;
  line-height: 0.82;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .workflow-network {
    width: min(100% - 32px, 520px);
    min-width: 0;
  }

  .workflow-row {
    min-height: 130px;
  }

  .workflow-copy,
  .workflow-copy.compact {
    width: 160px;
  }

  .workflow-vline {
    margin: 0 14px;
  }

  .workflow-copy p {
    font-size: 11px;
  }
}

/* Webflow 2020 timeline local adaptation */
.workflow-webflow-page {
  background: #07110f;
}

.wf2020 {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background-color: #07110f;
  --wf-line: 0;
  --wf-section: 0;
  --wf-hero: 0;
}

.wf2020-bg-art {
  position: fixed;
  inset: 72px 0 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 18, 15, 0.84), rgba(3, 18, 15, 0.84)),
    radial-gradient(circle at 50% 32%, rgba(26, 215, 183, 0.26), transparent 34%),
    url("assets/page-images/site-data-bg.jpg") center / cover no-repeat;
  opacity: 0.52;
}

.wf2020-wrapper,
.wf2020-container-flex {
  position: relative;
  z-index: 1;
}

.wf2020-wrapper {
  height: calc(100vh - 72px);
  display: flex;
  overflow: hidden;
  max-width: 100%;
  padding: 0 10px 70px;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.wf2020-button-block {
  position: absolute;
  top: 36px;
  right: min(6vw, 96px);
  display: flex;
  align-items: center;
  gap: 18px;
}

.wf2020-button {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  color: #06241f;
  background: #e9f7f2;
  font-size: 12px;
  font-weight: 900;
}

.wf2020-container {
  width: min(100%, 940px);
  margin: 0 auto;
  position: relative;
  min-height: 64vh;
}

.wf2020-rotation-hero-text,
.wf2020-rotation-hero-text-bg {
  position: absolute;
  inset: auto 0 20%;
  z-index: 2;
  transform:
    translate3d(0, 0, 0)
    scale3d(calc(6 - var(--wf-hero) * 5.05), calc(6 - var(--wf-hero) * 5.05), 1)
    rotate(-12deg);
  filter: blur(calc(5px - var(--wf-hero) * 5px));
  opacity: calc(1 - var(--wf-hero) * .88);
  transition: transform 100ms linear, opacity 100ms linear, filter 100ms linear;
}

.wf2020-rotation-hero-text-bg {
  z-index: 1;
  transform:
    translate3d(0, 0, 0)
    scale3d(calc(8 - var(--wf-hero) * 6.8), calc(8 - var(--wf-hero) * 6.8), 1)
    rotate(-12deg);
  opacity: calc(.4 - var(--wf-hero) * .34);
  filter: blur(14px) brightness(0%);
}

.wf2020-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.wf2020-flex.wf2020-hor {
  justify-content: center;
}

.wf2020-flex.wf2020-hor.wf2020-left,
.wf2020-flex.wf2020-hor.wf2020-middle {
  justify-content: space-between;
}

.wf2020-flex.wf2020-hor.wf2020-space-between {
  justify-content: space-between;
  align-items: center;
}

.wf2020-flex.wf2020-hor.wf2020-space-between.wf2020-top {
  align-items: flex-start;
}

.wf2020-flex.wf2020-ver {
  flex-direction: column;
  align-items: stretch;
}

.wf2020-flex.wf2020-ver.wf2020-center {
  align-items: center;
}

.wf2020-flex.wf2020-ver.wf2020-quarter {
  align-items: flex-end;
}

.wf2020-flex.wf2020-ver.wf2020-left-edge {
  width: 100%;
  align-items: stretch;
}

.wf2020-flex.wf2020-right {
  justify-content: space-between;
  align-self: flex-end;
}

.wf2020-flex.wf2020-half,
.wf2020-flex.wf2020-ver.wf2020-half {
  width: 50%;
}

.wf2020-flex.wf2020-ver.wf2020-half-right {
  width: 49%;
  align-items: flex-end;
}

.wf2020-flex.wf2020-ver.wf2020-half-right.wf2020-down {
  width: 50%;
  justify-content: flex-end;
}

.wf2020-text {
  overflow: hidden;
  color: #d9ebe6;
}

.wf2020-text.wf2020-wrap {
  padding: 8px 16px 8px 24px;
  background: #e9f7f2;
  color: #073b34;
  text-align: center;
}

.wf2020-text h3,
.wf2020 h3 {
  margin: 0;
  color: inherit;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(28px, 4.4vw, 68px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wf2020-text p {
  margin: 0;
  color: rgba(218, 235, 230, 0.82);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 760;
}

.wf2020 h1 {
  margin: 0;
  color: #e9f7f2;
  font-family: Oswald, Inter, sans-serif;
  font-size: clamp(78px, 13.6vw, 220px);
  line-height: .82;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.wf2020-text.wf2020-margin-right {
  margin-right: 20px;
  text-align: right;
}

.wf2020-text.wf2020-margin-right.wf2020-top,
.wf2020-text.wf2020-margin-left.wf2020-top {
  width: 45%;
}

.wf2020-text.wf2020-margin-left {
  margin-left: 20px;
}

.wf2020-text.wf2020-margin-5-left {
  margin-left: 5px;
  padding: 0 12px 0 7px;
}

.wf2020-text.wf2020-margin-5-right {
  margin-right: 5px;
  padding: 0 7px;
  text-align: right;
}

.wf2020-container-scrolling {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 40px;
  justify-content: center;
  align-items: flex-end;
  transform: scaleY(calc(.05 + var(--wf-hero) * .95));
  transform-origin: 50% 0%;
  opacity: var(--wf-hero);
}

.wf2020-line-container-copy {
  display: flex;
  width: 40%;
  justify-content: center;
}

.wf2020-sec {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wf2020-scroll {
  position: absolute;
  bottom: 0;
  display: flex;
  height: 100%;
  padding-bottom: 30px;
  justify-content: center;
  align-items: flex-end;
}

.wf2020-scroll-text {
  overflow: hidden;
  transform: rotate(90deg);
}

.wf2020-scroll-text h4 {
  display: inline-block;
  margin: 0;
  color: #d7f35a;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .18em;
}

.wf2020-container-flex {
  display: flex;
  margin-bottom: 220px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.wf2020-line-container {
  width: 42%;
  --wf-section: 0;
}

.wf2020-line-container + .wf2020-line-container {
  margin-top: 0;
}

.wf2020-line-ver,
.wf2020-line-hor {
  flex: none;
  background: #d7f35a;
  box-shadow: 0 0 26px rgba(35, 222, 190, .18);
}

.wf2020-line-ver {
  width: 10px;
  height: 200px;
  align-self: center;
  transform: scaleY(var(--wf-line));
  transform-origin: 50% 0%;
}

.wf2020-line-ver.wf2020-first,
.wf2020-line-ver.wf2020-short,
.wf2020-line-ver.wf2020-short-bottom,
.wf2020-line-ver.wf2020-short-copy {
  height: 100px;
}

.wf2020-line-ver.wf2020-short {
  margin-top: -10px;
}

.wf2020-line-ver.wf2020-short-bottom {
  margin-bottom: -10px;
}

.wf2020-line-ver.wf2020-long {
  height: 400px;
}

.wf2020-line-ver.wf2020-extra-short {
  height: 40px;
}

.wf2020-line-ver.wf2020-med {
  height: 250px;
}

.wf2020-line-ver.wf2020-origin-bottom {
  transform-origin: 50% 100%;
}

.wf2020-line-ver-copy {
  width: 10px;
  height: 200px;
  background: transparent;
}

.wf2020-line-hor {
  width: 100%;
  height: 10px;
  transform: scaleX(var(--wf-line));
  transform-origin: 50% 50%;
}

.wf2020-line-hor.wf2020-origin-left {
  transform-origin: 0% 50%;
}

.wf2020-line-hor.wf2020-origin-right {
  transform-origin: 100% 50%;
}

.wf2020-line-hor.wf2020-quarter {
  width: 51.2%;
}

.wf2020-line-hor.wf2020-quarter.wf2020-origin-right {
  width: 50%;
}

.wf2020-line-hor.wf2020-quarter-2,
.wf2020-line-hor.wf2020-quarter-2-copy {
  width: 51.4%;
}

.wf2020-line-hor.wf2020-quarter-2.wf2020-origin-right,
.wf2020-line-hor.wf2020-quarter-2-copy.wf2020-origin-right {
  width: 50%;
}

.wf2020-line-hor.wf2020-extra-short-2 {
  width: 50px;
}

.wf2020-line-hor.wf2020-extra-short-3 {
  width: 30px;
  margin-right: 20px;
}

.wf2020-grid-block {
  gap: 24px;
  align-items: flex-start;
}

.wf2020-grid-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-right: 24px;
}

.wf2020-final-text {
  transform: rotate(-12deg);
}

.wf2020-final-text .wf2020-text.wf2020-wrap {
  color: #073b34;
}

.wf2020-final-text h1 {
  font-size: clamp(64px, 10vw, 150px);
}

.wf2020 [data-wf-section] .wf2020-text {
  opacity: calc(.2 + var(--wf-section) * .8);
  transform: translateY(calc((1 - var(--wf-section)) * 20px));
  transition: opacity 120ms linear, transform 120ms linear;
}

@media (max-width: 980px) {
  .kq-tools-explain,
  .radar-stat-grid {
    grid-template-columns: 1fr;
  }

  .wf2020-wrapper {
    min-height: 620px;
  }

  .wf2020-line-container {
    width: min(78vw, 420px);
  }

  .wf2020-text p {
    font-size: 11px;
  }

  .wf2020-text h3,
  .wf2020 h3 {
    font-size: 30px;
  }

  .wf2020 h1 {
    font-size: 88px;
  }
}

/* Live performance chart */
.history-line {
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.history-point circle {
  fill: var(--accent);
  stroke: #07241e;
  stroke-width: 3;
}

/* Mobile-only usability layer. Desktop layout and content remain unchanged. */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    font-size: 13px;
  }

  .shell,
  .footer-shell {
    width: calc(100% - 28px);
  }

  .page {
    padding: 16px 0 44px;
  }

  .section {
    margin-top: 12px;
  }

  .panel,
  .match-list-panel,
  .team-compact-card,
  .account-panel {
    border-radius: 18px;
  }

  /* A compact two-row header: account actions above, navigation in one rail. */
  .topbar {
    overflow: hidden;
  }

  .topbar .shell {
    width: calc(100% - 24px);
    min-height: 0;
    grid-template-columns: minmax(92px, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 8px 10px;
    padding: 8px 0 9px;
  }

  .topbar .brand {
    grid-area: brand;
    min-width: 0;
  }

  .topbar .brand img {
    width: 104px;
    max-height: 44px;
  }

  .topbar .actions {
    grid-area: actions;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
  }

  .topbar .actions .btn.primary {
    display: none;
  }

  .topbar .actions .btn,
  .topbar .actions .lang-select {
    min-height: 40px;
    padding: 0 11px;
    font-size: 10px;
  }

  .topbar .actions .lang-select,
  .topbar .actions .lang-toggle {
    width: 88px;
    min-width: 88px;
  }

  .topbar .nav {
    grid-area: nav;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    padding: 1px 0 3px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .topbar .nav::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .team-anchor-nav::-webkit-scrollbar {
    display: none;
  }

  .topbar .nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    font-size: 10px;
  }

  /* Compact first screens without removing their desktop content. */
  .hero,
  .match-lab-hero,
  .product-hero,
  .account-dashboard-page .match-lab-hero,
  .archive-ledger-page .match-lab-hero {
    min-width: 0;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px;
    padding: 16px !important;
    border-radius: 20px;
  }

  .hero-copy,
  .hero > div,
  .product-hero > div {
    min-width: 0;
  }

  .hero h1,
  .hero-copy h1,
  .product-hero h1,
  .account-dashboard-page .hero-copy h1,
  .archive-ledger-page .hero-copy h1 {
    max-width: 100%;
    margin-top: 10px;
    font-size: clamp(28px, 9vw, 38px) !important;
    line-height: 1.02;
    overflow-wrap: anywhere;
  }

  .hero .lead,
  .hero-copy p,
  .product-hero p {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
  }

  .match-center-page .match-lab-hero .hero-copy p,
  .account-dashboard-page .match-lab-hero .hero-copy p {
    display: none;
  }

  .match-center-page .hero-stats span:nth-child(n + 3) {
    display: none;
  }

  .match-hero-photo,
  .account-status-visual,
  .archive-result-photo {
    display: none !important;
  }

  .hero-stats {
    max-width: 100%;
    flex-wrap: nowrap;
    gap: 6px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .hero-stats span,
  .account-dashboard-page .hero-stats span,
  .archive-ledger-page .hero-stats span {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .hero-stats b,
  .account-dashboard-page .hero-stats b,
  .archive-ledger-page .hero-stats b {
    font-size: 15px;
  }

  .section-head,
  .compact-head,
  .team-section-head,
  .account-panel-head {
    gap: 6px;
  }

  .section-head h2,
  .compact-head h2,
  .team-section-head h2 {
    font-size: 19px;
  }

  .section-head > p,
  .compact-head > p,
  .team-section-head > p,
  .account-panel-head > p {
    display: none;
  }

  /* All Matches: keep the controls, remove explanatory repetition. */
  .match-selector-panel {
    margin-top: 10px;
    padding: 12px;
  }

  .selector-head p,
  .match-list-head p {
    display: none;
  }

  .match-center-page .selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin-top: 10px;
  }

  .match-center-page .selector-grid label {
    min-width: 0;
    gap: 5px;
    padding: 8px;
    border-radius: 12px;
  }

  .match-center-page .selector-grid label:last-child {
    grid-column: 1 / -1;
  }

  .selector-grid select {
    min-height: 40px;
    padding: 8px;
    font-size: 11px;
  }

  .match-list-head {
    padding-bottom: 8px;
  }

  .match-table-lite {
    max-height: 72vh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .match-list-head h2,
  .selector-head h2 {
    font-size: 18px;
  }

  .lite-row,
  .match-table-lite.show-market .lite-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
    min-height: 64px;
    padding: 9px 10px;
  }

  .lite-row .market-cell,
  .match-table-lite.show-market .lite-row .market-cell {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 0 0;
    border-top: 1px solid var(--line);
  }

  /* Match details: tabs and tables scroll inside their own region. */
  .match-hero-cn {
    gap: 8px;
  }

  .team-tile,
  .forecast-tile,
  .data-block {
    padding: 12px;
  }

  .tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tabs .chip {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 12px;
  }

  .odds-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .odds-table thead,
  .odds-table tbody,
  .odds-table tr {
    width: max-content;
    min-width: 100%;
  }

  .odds-table th,
  .odds-table td {
    min-width: 78px;
    padding: 9px 8px;
    white-space: nowrap;
  }

  .odds-table th:nth-child(4),
  .odds-table td:nth-child(4) {
    min-width: 180px;
    white-space: normal;
  }

  .compact-table th,
  .compact-table td {
    min-width: 72px;
  }

  .compact-table th:nth-child(4),
  .compact-table td:nth-child(4) {
    min-width: 80px;
    white-space: nowrap;
  }

  .locked-strip,
  .compact-info-grid,
  .info-grid,
  .aux-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .locked-card {
    min-height: 0;
    padding: 11px;
  }

  /* Account: the late desktop rules previously overrode the responsive grid. */
  .account-dashboard-page {
    gap: 9px;
    padding-top: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .account-dashboard-page .match-lab-hero,
  .account-dashboard-hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .account-dashboard-page .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .account-dashboard-page .hero-stats span {
    min-width: 0;
    padding-inline: 6px;
    justify-content: center;
    font-size: 8px;
  }

  .account-dashboard-page .hero-stats b {
    font-size: 13px;
  }

  .account-dashboard-page > *,
  .account-dashboard-grid,
  .account-panel,
  .account-summary-layout,
  .account-summary-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .account-summary-layout,
  .account-metric-grid,
  .account-access-grid,
  .account-tool-grid,
  .account-help-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .account-panel {
    padding: 10px;
  }

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

  .account-metric-grid div,
  .account-side-card a {
    min-height: 46px;
  }

  .account-access-grid a,
  .account-tool-grid a {
    min-height: 0;
    padding: 10px;
  }

  .account-order-table {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Team, league and cup pages remain data-first but use denser mobile grids. */
  .team-mini-header {
    padding: 12px;
  }

  .team-center-logo,
  .cup-title-logo {
    width: 62px;
    height: 62px;
  }

  .team-mini-header h1 {
    font-size: 30px;
  }

  .team-mini-header p {
    font-size: 10px;
    line-height: 1.45;
  }

  .team-anchor-nav {
    max-width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
    scrollbar-width: none;
  }

  .team-anchor-nav a {
    flex: 0 0 auto;
    min-height: 38px;
  }

  .team-micro-grid,
  .team-micro-grid-tight,
  .team-board-grid,
  .team-player-grid,
  .team-progress-grid,
  .team-minute-chart {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-micro-grid div,
  .team-board-grid div,
  .team-player-grid div,
  .team-progress-grid div,
  .team-minute-chart div {
    min-width: 0;
  }

  .team-board-grid b,
  .team-player-grid b {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .team-formation-pitch {
    max-height: 610px;
  }

  .team-tips-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .league-schedule-controls,
  .cup-control-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .cup-control-row select,
  .league-schedule-controls select {
    min-height: 40px;
  }

  .league-schedule-list {
    max-height: 620px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .cup-team-grid {
    max-height: 430px;
  }

  .cup-team-grid a {
    min-height: 38px;
  }

  .cup-bracket-plane,
  .cup-group-table,
  .team-mini-table,
  .team-competition-table {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cup-bracket-plane .cup-bracket-match {
    pointer-events: none;
  }

  .cup-bracket-board.is-awaiting-draw {
    min-width: 620px;
  }

  .cup-bracket-board.is-full-tree {
    min-width: 0;
  }

  .cup-bracket-plane:has(.cup-bracket-board.is-awaiting-draw) {
    min-height: 184px;
  }

  .cup-bracket-plane:has(.cup-bracket-board.is-full-tree) {
    min-height: 430px;
  }

  .cup-bracket-modal {
    padding: 8px;
  }

  .cup-bracket-modal-panel {
    width: 100%;
    height: 92vh;
    padding: 10px;
    border-radius: 16px;
  }

  /* Performance selectors stay scan-friendly instead of becoming 18 long rows. */
  .history-hero-kpis,
  .history-market-grid,
  .history-kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-market-chip {
    min-width: 0;
    min-height: 62px;
  }

  .history-market-chip span,
  .history-market-chip strong {
    overflow-wrap: anywhere;
  }

  /* Footer directory cards are duplicated navigation on a phone. */
  .site-footer {
    margin-top: 28px;
  }

  .footer-index {
    display: none;
  }

  .footer-brand-row {
    padding: 18px 0 14px;
  }

  .footer-brand-row img {
    width: 112px;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 12px 18px;
    padding-bottom: 14px;
  }

  .footer-bottom {
    gap: 8px;
    padding-top: 14px;
  }

  /* Touch devices should not depend on hover-only movement. */
  .team-compact-card:hover,
  .team-micro-grid div:hover,
  .team-history-chip:hover,
  .team-board-grid div:hover,
  .league-club-grid a:hover,
  .calm-board-card:hover .calm-board-photo {
    transform: none;
  }
}

/* Final narrow-screen containment. Desktop composition remains unchanged. */
@media (max-width: 767px) {
  .feature-guide-layout,
  .feature-card-list,
  .feature-info-card,
  .feature-info-card figure,
  .feature-info-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .feature-guide-layout {
    gap: 12px;
  }

  .feature-topic-rail {
    max-width: 100%;
    gap: 7px;
    padding: 2px 0 4px;
    scrollbar-width: none;
  }

  .feature-topic-rail::-webkit-scrollbar {
    display: none;
  }

  .feature-topic-rail button {
    flex: 0 0 auto;
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
  }

  .feature-info-card,
  .feature-info-card.is-in-view:not(.is-hidden) {
    gap: 12px;
    min-height: 0;
    padding: 12px;
    opacity: 1;
    transform: none;
    animation: none;
  }

  .feature-info-card figure {
    height: 118px;
  }

  .radar-method::after {
    inset: 0;
  }

  .radar-method,
  .radar-grid,
  .radar-copy,
  .radar-sticky {
    max-width: 100%;
    min-width: 0;
  }

  .kq-tools-heading h1 {
    max-width: 100%;
    font-size: 36px;
    line-height: 1.05;
    overflow-wrap: anywhere;
  }
}
