@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --ink: #111827;
  --muted: #5b6475;
  --line: #dfe4ec;
  --paper: #fbfbf8;
  --white: #ffffff;
  --navy: #143765;
  --navy-2: #0b2344;
  --red: #d9343f;
  --blue: #2f79ff;
  --green: #23a36b;
  --gold: #c99a2e;
  --shadow: 0 22px 60px rgba(15, 23, 42, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  cursor: default;
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 248, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(20, 55, 101, 0.12);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 206px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  color: #263349;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: 7px;
}

.nav-links a:hover,
.nav-links a.active {
  background: #edf2f8;
  color: var(--navy);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  padding: 10px 12px;
  color: #263349;
  font-weight: 700;
  font-size: 0.93rem;
  border-radius: 7px;
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-toggle::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-toggle:hover,
.dropdown-toggle.active {
  background: #edf2f8;
  color: var(--navy);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 30;
}

.dropdown.open .dropdown-menu {
  display: grid;
}

.dropdown-menu a {
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #263349;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #edf2f8;
  color: var(--navy);
}

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

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 42px;
  height: 42px;
  border-radius: 7px;
  position: relative;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.menu-toggle::before {
  top: 13px;
}

.menu-toggle span {
  top: 20px;
}

.menu-toggle::after {
  top: 27px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 12px 24px rgba(217, 52, 63, 0.22);
}

.btn-primary:hover {
  background: #bd2630;
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: rgba(20, 55, 101, 0.2);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  background: #0c1830;
  color: #fff;
}

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(7, 14, 28, 0.93) 0%, rgba(7, 14, 28, 0.74) 38%, rgba(7, 14, 28, 0.28) 72%, rgba(7, 14, 28, 0.18) 100%);
  background-size: cover;
  background-position: center right;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 1;
  min-height: 760px;
  display: grid;
  align-items: center;
  padding: 70px 0 110px;
}

.hero-content {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #8bd2ff;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--red);
}

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

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  margin: 22px 0 22px;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 0.95;
  margin-bottom: 18px;
  font-weight: 600;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.15;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

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

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 690px;
  margin-top: 44px;
}

.proof-item {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(10px);
}

.proof-item strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.proof-item span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
}

.section {
  padding: 92px 0;
}

.section-alt {
  background: #fff;
}

.section-dark {
  background: var(--navy-2);
  color: #fff;
}

.section-dark p,
.section-dark .lead,
.section-dark .card p,
.section-dark .feature-list li {
  color: rgba(255, 255, 255, 0.74);
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
}

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

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

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

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

.card {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.card {
  cursor: pointer;
}

.card:hover {
  border-color: rgba(20, 55, 101, 0.3);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.card .section-actions {
  margin-top: auto;
  padding-top: 12px;
  justify-content: flex-end;
}

.card .section-actions .btn {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 0.88rem;
}

.card .section-actions a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  min-height: auto;
  transition: transform 0.2s ease;
}

.card .section-actions a:hover {
  transform: translateY(-3px);
  background: none;
}

.card .section-actions a::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.card-img-top {
  margin: -24px 0 16px;
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
}

.value-head {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: var(--radius);
  padding: 32px 36px;
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.value-head .eyebrow {
  justify-content: center;
}

.value-head .eyebrow::before {
  display: none;
}

.value-head h2 {
  margin: 12px 0 8px;
}

.value-head .lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.value-card {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.value-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--navy-2);
}

.value-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.value-card:hover .value-thumb img {
  transform: scale(1.06);
}

.value-card h3 {
  margin: 18px 20px 4px;
  font-size: 1.1rem;
}

.value-card p {
  margin: 0 20px 20px;
  color: var(--muted);
  font-size: 0.9rem;
}

.split.advantage-intro {
  align-items: center;
  margin-bottom: 80px;
  gap: 80px;
}

.advantage-text .lead {
  margin-bottom: 28px;
}

.intro-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.intro-highlights li {
  color: var(--muted);
  font-size: 0.92rem;
  padding-left: 22px;
  position: relative;
}

.intro-highlights li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.52em;
}

.value-visual-wide {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
  aspect-ratio: 5 / 3;
  max-height: 400px;
  position: relative;
}

.value-visual-wide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.35s ease;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
}

.value-visual-wide img.active {
  opacity: 1;
}

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

.advantage-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease;
}

.advantage-item:hover {
  border-color: rgba(20, 55, 101, 0.3);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.adv-num {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
  letter-spacing: 0.04em;
}

.advantage-item h4 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink);
}

.advantage-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.role-list {
  display: grid;
  gap: 14px;
}

.role-item {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 16px 20px;
  cursor: pointer;
}

.role-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.role-item > div {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.role-item h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 1.15rem;
}

.role-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

.role-features {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.role-features li {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding-left: 16px;
  position: relative;
}

.role-features li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.5em;
}

.role-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.role-link {
  align-self: flex-end;
}

.role-link:hover {
  transform: translateY(-3px);
}

.role-item:hover {
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.role-link::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 16px;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
  flex-shrink: 0;
}

.trust-list strong {
  color: var(--ink);
  font-weight: 800;
}

.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 28px 0;
}

.trust-stat {
  text-align: center;
  padding: 18px 12px;
  background: #f7f9fc;
  border-radius: var(--radius);
}

.trust-stat strong {
  display: block;
  font-size: 1.9rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}

.trust-stat span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-quote {
  margin: 0 0 24px;
  padding: 20px 24px;
  background: #f7f9fc;
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
}

.trust-quote p {
  margin: 0 0 10px;
  font-style: italic;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.5;
}

.trust-quote cite {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  font-style: normal;
}

.trust-visual {
  position: relative;
  border-radius: var(--radius);
  max-width: 580px;
  margin: 0 auto;
  width: 100%;
}

.trust-img-main {
  width: 82%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
  border: 1px solid rgba(0, 0, 0, 0.2);
  transform: translateY(-28px);
}

.trust-img-secondary {
  position: absolute;
  right: 0;
  bottom: -48px;
  width: 54%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.case-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.case-logo img {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}

.case-logo span {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.card blockquote {
  margin: 16px 0 0;
  padding: 16px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.card blockquote p {
  font-style: italic;
  margin: 0 0 8px;
}

.card blockquote cite {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}


.video-card {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
}

.video-card > a {
  align-self: flex-end;
  margin: 0 20px 18px;
}

.video-card h3 {
  margin: 18px 20px 4px;
  font-size: 1.1rem;
}

.video-card p {
  margin: 8px 20px 16px;
  color: var(--ink);
  font-size: 0.9rem;
}

.video-features {
  list-style: none;
  margin: 0 20px 14px;
  padding: 0;
  display: grid;
  gap: 6px;
}

  .video-features li {
  color: var(--muted);
  font-size: 0.88rem;
  padding-left: 16px;
  position: relative;
  font-weight: 500;
}

.video-features li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.55em;
}

.video-card .btn {
  margin: 0 20px 20px;
  min-height: 36px;
  padding: 7px 0;
  font-size: 0.88rem;
  background: transparent;
  color: var(--navy);
  border-color: transparent;
}

.video-card .btn::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(-45deg);
  margin-left: 6px;
  margin-bottom: 1px;
}

.video-card .btn:hover {
  transform: translateY(-3px);
}

.video-thumb {
  position: relative;
  aspect-ratio: 5 / 3;
  overflow: hidden;
  background: var(--navy-2);
}

.video-thumb img,
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.5s ease;
  display: block;
}

.video-card:hover .video-thumb img,
.video-card:hover .video-thumb video {
  opacity: 1;
  transform: scale(1.03);
}

.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-thumb.paused .play-btn {
  opacity: 1;
  pointer-events: auto;
}

.play-btn::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-btn::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 18px solid var(--navy);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

.play-btn:hover::before {
  transform: scale(1.08);
  background: #fff;
}

.play-btn:hover::before {
  transform: scale(1.08);
  background: #fff;
}

.section-dark .card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.card-kicker {
  color: var(--red);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.feature-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.feature-list li {
  color: var(--muted);
  padding-left: 22px;
  position: relative;
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: absolute;
  left: 0;
  top: 0.58em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 54px;
  align-items: center;
}

.split-bracket {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.split-analytics {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
}

.audience-icons {
  display: flex;
  gap: 32px;
  margin-top: 28px;
}

.audience-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.audience-icon:hover {
  transform: scale(1.08);
}

.audience-icon svg {
  opacity: 0.7;
}

.audience-icon span {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-dark .split {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
}

.perf-split {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
}

.mockup-stack {
  position: relative;
  min-height: 560px;
}

.phone {
  width: min(360px, 82vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 34px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: #1f2937;
}

.phone.main {
  position: absolute;
  right: 42px;
  top: 0;
}

.phone.secondary {
  position: absolute;
  left: 0;
  bottom: 0;
  transform: scale(0.82);
  transform-origin: bottom left;
}

.phone.wide-phone {
  width: min(600px, 92vw);
}

.wide-phone .app-screen {
  min-height: auto;
}

.phone-stack {
  position: relative;
  width: min(600px, 98vw);
  height: 720px;
  margin: 0 auto;
}

.phone-stack .phone-main {
  position: absolute;
  left: 0;
  top: 0;
  transform: scale(0.92);
  transform-origin: top left;
  z-index: 2;
  height: 640px;
}

.phone-stack .phone-secondary {
  position: absolute;
  right: 0;
  bottom: 60px;
  transform: scale(0.78);
  transform-origin: bottom right;
  z-index: 1;
  height: 680px;
}

.bracket-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bracket-match {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 64px;
}

.bracket-match span {
  font-size: 0.6rem;
  color: #90a4c8;
}

.bracket-match strong {
  font-size: 0.85rem;
  color: #fff;
}

.bracket-match strong.gold {
  color: var(--gold);
}

.bracket-round.final .bracket-match {
  background: rgba(201, 154, 46, 0.15);
  border: 1px solid rgba(201, 154, 46, 0.3);
}

.phone-light {
  background: #fff;
  border-color: #e5e7eb;
  color: #1f2937;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.phone-light .phone-bar span {
  background: #d1d5db;
}

.app-screen.app-screen-bracket {
  background: #fff;
  color: #1f2937;
  min-height: 800px;
  padding: 0;
}

.app-screen-bracket .bracket-tabs {
  border-bottom-color: #e5e7eb;
}

.app-screen-bracket .bracket-tabs span {
  color: #9ca3af;
}

.app-screen-bracket .bracket-tabs span.active {
  color: #e67e22;
  border-bottom-color: #e67e22;
}

.app-screen-bracket .bracket-subtabs span {
  color: #9ca3af;
}

.app-screen-bracket .bracket-subtabs span.active {
  color: #e67e22;
  background: rgba(230, 126, 34, 0.1);
}

.bracket-tabs {
  display: flex;
  justify-content: space-around;
  padding: 14px 18px 0;
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.bracket-tabs span {
  color: #9ca3af;
  padding-bottom: 10px;
  cursor: pointer;
}

.bracket-tabs span.active {
  color: #e67e22;
  border-bottom: 2px solid #e67e22;
}

.bracket-subtabs {
  display: flex;
  justify-content: space-around;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
}

.bracket-subtabs span {
  color: #9ca3af;
  padding: 3px 10px;
  border-radius: 3px;
  cursor: pointer;
}

.bracket-subtabs span.active {
  color: #e67e22;
  background: rgba(230, 126, 34, 0.1);
}

.bracket-stage {
  padding: 20px 18px;
}

.bracket-tree {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.bracket-tree td {
  vertical-align: middle;
}

.bracket-tree .bt-r1 {
  padding: 8px 0;
}

.bracket-tree .bt-r1 .bt-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 0.90rem;
  color: #333;
  white-space: nowrap;
}

.bt-conn {
  width: 24px;
  padding: 0;
  position: relative;
}

.bt-fork {
  position: absolute;
  top: 25%;
  bottom: 25%;
  left: 0;
  right: 0;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #ccc;
}

.bt-r2,
.bt-r3,
.bt-r4 {
  padding: 8px 0;
}

.bt-r2 .bt-box,
.bt-r3 .bt-box,
.bt-r4 .bt-box {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 2px;
  padding: 14px 16px;
  font-size: 0.90rem;
  color: #333;
  white-space: nowrap;
  position: relative;
}

.bt-r2 .bt-box::before,
.bt-r3 .bt-box::before,
.bt-r4 .bt-box::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 5px;
  height: 1px;
  background: #ccc;
}

.app-screen.app-screen-pool {
  background: #f5f5f5;
  color: #333;
  padding: 0;
  min-height: 600px;
}

.pool-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fff;
  border-bottom: 1px solid #eee;
  color: #666;
}

.pool-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #333;
}

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

.pool-groups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
}

.pl-label {
  margin-right: 4px;
}

.pl-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ccc;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.pl-dot.active {
  background: #e67e22;
}

.pool-matrix {
  margin: 0 10px 10px;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.pool-matrix table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.66rem;
}

.pool-matrix th,
.pool-matrix td {
  padding: 8px 4px;
  text-align: center;
  border: 1px solid #eee;
}

.pool-matrix th {
  background: #f8f8f8;
  font-weight: 700;
  color: #555;
}

.pool-matrix td.name {
  text-align: left;
  padding-left: 6px;
  font-weight: 600;
  color: #333;
}

.pool-matrix td.self {
  background: #e67e22;
}

.pool-results {
  margin: 0 10px 10px;
  background: #fff;
  border-radius: 6px;
  padding: 10px;
}

.pool-results h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #333;
}

.pool-results table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.65rem;
}

.pool-results th,
.pool-results td {
  padding: 6px 3px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.pool-results th {
  font-weight: 700;
  color: #888;
}

.pool-results td.name {
  text-align: left;
  font-weight: 600;
  color: #333;
}

.phone-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-bar span {
  width: 76px;
  height: 7px;
  background: #050914;
  border-radius: 99px;
}

.phone-dark {
  background: #152136;
  border-color: #1f2d47;
  color: #fff;
}

.phone-dark .phone-bar {
  background: #152136;
}

.phone-dark .phone-bar span {
  background: #0b1220;
}

.phone-stack .phone-bar {
  background: #fff;
}

.app-screen {
  padding: 18px;
  min-height: 610px;
  background: linear-gradient(180deg, #152136 0%, #101827 44%, #0b1120 100%);
}

.app-screen-club {
  background: #f5f6fa;
  padding: 0;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.club-header {
  background: linear-gradient(135deg, #143765, #0b2344);
  padding: 28px 18px 36px;
  text-align: center;
  color: #fff;
}

.club-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.club-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.club-nav {
  display: flex;
  justify-content: space-around;
  padding: 16px 10px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
}

.club-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
  color: var(--navy);
  font-weight: 600;
}

.club-nav-item svg {
  color: var(--gold);
}

.club-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  padding: 14px 16px 6px;
}

.club-card {
  background: #fff;
  border-radius: 10px;
  margin: 6px 14px;
  padding: 12px 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  border: 1px solid #edf0f5;
}

.club-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.club-card-header strong {
  font-size: 0.78rem;
  color: var(--ink);
}

.club-tag {
  font-size: 0.6rem;
  padding: 3px 8px;
  border-radius: 99px;
  background: #f1f5f9;
  color: var(--muted);
  border: 1px solid #e2e8f0;
  font-weight: 700;
}

.club-tag.active {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.club-card-time {
  font-size: 0.7rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.club-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.club-card-footer {
  font-size: 0.68rem;
  color: var(--navy);
  font-weight: 600;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
}

.app-header,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-title {
  font-size: 0.78rem;
  color: #90a4c8;
  text-transform: uppercase;
  font-weight: 900;
}

.score-lights {
  display: flex;
  gap: 6px;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 18px currentColor;
}

.light.red {
  background: var(--red);
}

.bout-score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}

.score-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.score-card strong {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
}

.versus {
  color: #90a4c8;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 10px;
}

.event {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 10px;
  color: #dbe7ff;
  font-size: 0.82rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(47, 121, 255, 0.18);
  color: #9fc0ff;
}

.tag.red {
  background: rgba(217, 52, 63, 0.18);
  color: #ffacb2;
}

.ai-result-card {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-result-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
}

.win-rate-bar {
  display: flex;
  border-radius: 10px;
  overflow: hidden;
  height: 56px;
}

.win-rate-left {
  flex: 0 0 35%;
  background: linear-gradient(135deg, #d9343f, #b52a33);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.win-rate-left strong {
  font-size: 1.1rem;
  color: #fff;
}

.win-rate-left span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
}

.win-rate-right {
  flex: 1;
  background: linear-gradient(135deg, #2f79ff, #1e5fd9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.win-rate-right strong {
  font-size: 1.1rem;
  color: #fff;
}

.win-rate-right span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.8);
}

.ai-text-analysis {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.analysis-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.analysis-summary {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
  margin: 0 0 10px;
}

.analysis-section {
  margin-bottom: 8px;
}

.analysis-section strong {
  font-size: 0.75rem;
  color: #90a4c8;
  display: block;
  margin-bottom: 2px;
}

.analysis-section p {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  margin: 0;
}

.speed-chart {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin: 10px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

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

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 6px;
}

.chart-legend span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  padding-left: 12px;
}

.chart-legend span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 2px;
  border-radius: 2px;
}

.legend-blue::before {
  background: var(--blue);
}

.legend-green::before {
  background: var(--green);
}

.legend-red::before {
  background: #ff4444;
}

.coach-chat {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-avatar {
  font-size: 1.2rem;
}

.chat-meta {
  display: flex;
  flex-direction: column;
}

.chat-meta strong {
  font-size: 0.78rem;
  color: #fff;
}

.chat-meta span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.5);
}

.chat-body {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
  max-height: 175px;
  overflow: hidden;
  align-content: end;
}

.chat-bubble {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.68rem;
  line-height: 1.4;
}

.chat-bubble.ai {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.chat-bubble.thinking {
  color: #90a4c8;
  font-style: italic;
  padding: 4px 10px;
}

.chat-bubble.user {
  background: rgba(47, 121, 255, 0.2);
  color: #fff;
  margin-left: auto;
  max-width: 85%;
}

.user-label {
  font-size: 0.6rem;
  color: #90a4c8;
  display: block;
  margin-bottom: 2px;
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
}

.chat-send {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.arm-extension-chart {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.arm-extension-chart h4 {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 4px;
  text-align: center;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.arm-extension-chart,
.velocity-chart {
  padding: 6px;
}

.velocity-chart h4 {
  font-size: 0.75rem;
  color: #fff;
  margin-bottom: 4px;
  text-align: center;
}

.referee-verdict {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.referee-verdict h4 {
  font-size: 0.72rem;
  color: #fff;
  margin-bottom: 6px;
}

.verdict-section h5 {
  font-size: 0.65rem;
  color: #90a4c8;
  margin-bottom: 4px;
}

.verdict-section p {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin-bottom: 4px;
}

.accel-chart {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timing-chart {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px;
  margin: 6px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.bar-chart {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  height: 90px;
  padding-bottom: 12px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.bar {
  width: 44px;
  border-radius: 3px 3px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

.bar.blue {
  background: #2f79ff;
}

.bar.green {
  background: #7bc86c;
}

.bar-item span {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.7);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.metric {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 7px;
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 1.28rem;
}

.metric span {
  color: #9fb0cc;
  font-size: 0.78rem;
}

.chart {
  height: 142px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding: 16px 0 0;
}

.chart i {
  flex: 1;
  min-width: 12px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--green), #88d9b2);
}

.dashboard {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dash-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: #f7f9fc;
}

.dash-body {
  padding: 20px;
}

.schedule {
  display: grid;
  gap: 12px;
}

.schedule-row {
  display: grid;
  grid-template-columns: 70px 1fr 96px;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e6ecf4;
  border-radius: 8px;
}

.time {
  font-weight: 900;
  color: var(--navy);
}

.progress {
  height: 7px;
  background: #e8edf5;
  border-radius: 99px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(20, 55, 101, 0.1);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.1);
  background: #0d1930;
}

.media-frame img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: step;
}

.workflow-step {
  position: relative;
  min-height: 210px;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
}

.workflow-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--red);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.admin-screen {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid #e8ecf2;
}

.admin-toolbar strong {
  color: var(--navy-2);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.dash-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #ecfdf5;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}

.dash-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.admin-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 470px;
}

.admin-sidebar {
  padding: 12px 0;
  background: #1a1f2e;
  color: rgba(255, 255, 255, 0.6);
}

.nav-group {
  margin-bottom: 4px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  cursor: default;
  transition: color 0.12s ease;
}

.group-title:hover {
  color: #fff;
}

.group-arrow {
  margin-left: auto;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.35);
}

.group-items {
  display: none;
  padding: 2px 0;
}

.nav-group.open .group-items {
  display: block;
}

.nav-group.open .group-arrow {
  color: rgba(255, 255, 255, 0.55);
}

.admin-sidebar .side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 28px;
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.12s ease;
  cursor: default;
}

.admin-sidebar .side-item:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.admin-sidebar .side-item.active {
  background: var(--blue);
  color: #fff;
}

.admin-sidebar .side-item.active:hover {
  background: var(--blue);
  color: #fff;
}

.admin-main {
  padding: 20px;
  display: grid;
  gap: 18px;
  background: #f6f8fb;
}

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

.stat-box {
  padding: 14px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-box:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.sb-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5563;
}

.sb-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #e0f2fe;
  color: #0284c7;
}

.stat-box strong {
  display: block;
  font-size: 1.6rem;
  color: #111827;
  margin-bottom: 2px;
  font-weight: 700;
}

.sb-desc {
  color: #9ca3af;
  font-size: 0.75rem;
  font-weight: 500;
}

.week-bar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  overflow: hidden;
}

.week-day {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e8ecf2;
  min-height: 160px;
}

.week-day:last-child {
  border-right: none;
}

.week-day.active {
  background: #f0fdf4;
}

.week-day.active .wd-head span {
  color: var(--green);
  font-weight: 800;
}

.wd-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 4px 8px;
  text-align: center;
  border-bottom: 1px solid #e8ecf2;
}

.wd-head span {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
}

.wd-head small {
  font-size: 0.72rem;
  color: #6b7280;
}

.wd-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
  overflow: hidden;
}

.wd-body .wd-slot:nth-child(n+3) {
  display: none;
}

.wd-slot {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 5px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.wd-slot strong {
  font-size: 0.68rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.2;
}

.wd-slot small {
  font-size: 0.62rem;
  color: #64748b;
}

.wd-slot.empty {
  background: transparent;
  border-color: transparent;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 700;
  justify-content: center;
  flex: 1;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #f1f5f9;
  border: 1px solid #e8ecf2;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
}

.tb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tb-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: default;
}

.tb-btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.tb-views {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #6b7280;
  font-size: 0.85rem;
  cursor: default;
}

.course-table {
  display: grid;
  gap: 0;
}

.course-row {
  display: grid;
  grid-template-columns: 0.45fr 0.9fr 0.55fr 0.6fr 1.1fr 0.65fr 0.95fr;
  gap: 0;
  align-items: center;
  padding: 0;
  border: none;
  border-bottom: 1px solid #e8ecf2;
  background: #fff;
}

.course-row.header {
  color: #4b5563;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  background: #f1f5f9;
  border: 1px solid #e8ecf2;
  border-bottom: none;
  border-radius: 0;
  padding: 0;
}

.course-row.header span {
  padding: 10px 12px;
  border-right: 1px solid #e2e8f0;
}

.course-row.header span:last-child {
  border-right: none;
}

.course-row > * {
  padding: 10px 12px;
  border-right: 1px solid #e8ecf2;
}

.course-row > *:last-child {
  border-right: none;
}

.course-row strong {
  color: #111827;
  font-size: 0.82rem;
}

.course-row span {
  color: #4b5563;
  font-size: 0.8rem;
}

.course-row:hover {
  background: #f8fafc;
}

.admin-main .tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #e8f0fe;
  color: #1a5fd6;
}

.admin-main .tag.red {
  background: #fef2f2;
  color: #dc2626;
}

.admin-main .tag.yellow {
  background: #fffbeb;
  color: #b45309;
}

.admin-main .tag.green {
  background: #ecfdf5;
  color: #15803d;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: default;
}

.act-btn.edit {
  background: var(--blue);
  color: #fff;
}

.act-btn.del {
  background: #ef4444;
  color: #fff;
}

.data-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-top: none;
  border-radius: 0 0 10px 10px;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: default;
}

.pager-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.pager-btn.disabled {
  color: #9ca3af;
  border-color: #e5e7eb;
}

.pager-info {
  font-size: 0.78rem;
  color: #6b7280;
  margin-left: 8px;
}

.pager-size {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 4px;
}

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

.assignment-column {
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf2;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.assignment-column h3 {
  font-size: 0.82rem;
  font-weight: 800;
  color: #4a5568;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.assignment-card {
  display: grid;
  gap: 4px;
  padding: 12px;
  margin-bottom: 10px;
  background: #fff;
  border: 1px solid #e8ecf2;
  border-left: 3px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: box-shadow 0.12s ease;
}

.assignment-card:hover {
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.assignment-card.red {
  border-left-color: var(--red);
}

.assignment-card.green {
  border-left-color: var(--green);
}

.analytics-screen {
  color: #fff;
  background: radial-gradient(circle at 80% 10%, rgba(47, 121, 255, 0.22), transparent 32%), linear-gradient(180deg, #15243d, #081226);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  padding: 20px;
}

.analytics-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.heatmap {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  margin: 18px 0;
}

.heatmap i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.heatmap i.hot {
  background: rgba(217, 52, 63, 0.78);
}

.heatmap i.warm {
  background: rgba(201, 154, 46, 0.76);
}

.heatmap i.cool {
  background: rgba(47, 121, 255, 0.7);
}

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

.insight-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.comparison-bars {
  display: grid;
  gap: 14px;
}

.comparison-row {
  display: grid;
  grid-template-columns: 130px 1fr 54px;
  gap: 12px;
  align-items: center;
}

.bar-track {
  height: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
}

.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.detail-band {
  padding: 28px 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7fafc, #fff);
  border: 1px solid rgba(20, 55, 101, 0.12);
}

.referee-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.referee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  color: #e2e8f0;
}

.referee-table thead {
  background: rgba(255, 255, 255, 0.08);
}

.referee-table th {
  padding: 10px 12px;
  text-align: center;
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.referee-table th:first-child {
  text-align: left;
}

.referee-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.referee-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #fff;
  font-size: 0.78rem;
}

.referee-table tbody tr:last-child td {
  border-bottom: none;
}

.referee-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.advantage-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.advantage-tag.left {
  background: rgba(35, 163, 107, 0.2);
  color: var(--green);
  border: 1px solid rgba(35, 163, 107, 0.35);
}

.advantage-tag.right {
  background: rgba(47, 121, 255, 0.2);
  color: var(--blue);
  border: 1px solid rgba(47, 121, 255, 0.35);
}

.advantage-tag.neutral {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.perf-panel-stack {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.perf-panel {
  background: linear-gradient(180deg, #152136 0%, #101827 44%, #0b1120 100%);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  color: #fff;
}

.perf-panel-bottom {
  margin-top: -32px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
}

.video-peek {
  height: 48px;
  overflow: hidden;
  position: relative;
}

.video-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.perf-panel .video-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.perf-panel .video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perf-panel .play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.perf-panel .play-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 14px solid #111827;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 3px;
}

.perf-tags-body {
  padding: 18px;
}

.perf-tags-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-tags-title::before {
  content: '';
  width: 16px;
  height: 16px;
  background: var(--blue);
  border-radius: 4px;
  display: inline-block;
}

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

.perf-tags-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.perf-tags-header {
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
}

.perf-tags-header.blue {
  color: #60a5fa;
}

.perf-tags-header.blue::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #60a5fa;
  border-radius: 2px;
  display: inline-block;
}

.perf-tags-header.red {
  color: #f87171;
}

.perf-tags-header.red::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #f87171;
  border-radius: 2px;
  display: inline-block;
}

.tag-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.tag-pill.warn {
  background: rgba(217, 52, 63, 0.15);
  color: #f87171;
  border-color: rgba(217, 52, 63, 0.3);
}

.stats-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.stats-fencer-section {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 10px;
}

.stats-fencer-section:first-of-type {
  background: rgba(47, 121, 255, 0.08);
  border: 1px solid rgba(47, 121, 255, 0.15);
}

.stats-fencer-section:last-of-type {
  background: rgba(201, 154, 46, 0.08);
  border: 1px solid rgba(201, 154, 46, 0.15);
}

.stats-fencer-section:last-child {
  margin-bottom: 0;
}

.stats-fencer-header {
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  justify-content: center;
}

.stats-fencer-header.blue {
  color: #60a5fa;
}

.stats-fencer-header.blue::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #60a5fa;
  border-radius: 2px;
  display: inline-block;
}

.stats-fencer-header.red {
  color: #f87171;
}

.stats-fencer-header.red::before {
  content: '';
  width: 10px;
  height: 10px;
  background: #f87171;
  border-radius: 2px;
  display: inline-block;
}

.stats-table-wrap {
  overflow-x: visible;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  color: #e2e8f0;
}

.stats-table thead {
  background: rgba(255, 255, 255, 0.06);
}

.stats-table th {
  padding: 6px 8px;
  text-align: left;
  font-weight: 700;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.stats-table td {
  padding: 6px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  white-space: normal;
  vertical-align: top;
}

.stats-table tbody tr:last-child td {
  border-bottom: none;
}

.stats-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.rate-good {
  color: var(--green);
  font-weight: 700;
}

.rate-bad {
  color: var(--red);
  font-weight: 700;
}

.priority-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.priority-tag.good {
  background: rgba(35, 163, 107, 0.18);
  color: var(--green);
  border-color: rgba(35, 163, 107, 0.3);
}

.priority-tag.bad {
  background: rgba(217, 52, 63, 0.18);
  color: var(--red);
  border-color: rgba(217, 52, 63, 0.3);
}

.role-band {
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  color: #fff;
  padding: 64px 0;
}

.role-tabs {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 30px;
  align-items: stretch;
}

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

.tab-button {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  border-radius: 8px;
  padding: 18px;
  font-weight: 900;
}

.tab-button[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
}

.tab-panel {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 28px;
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  margin: 12px 0;
}

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

.pricing-card.featured {
  border: 2px solid var(--red);
  box-shadow: var(--shadow);
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: #fff;
  border: 1px solid rgba(20, 55, 101, 0.12);
  border-radius: 8px;
  padding: 18px 20px;
}

.faq summary {
  font-weight: 900;
}

.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-hero {
  padding: 92px 0 64px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f6fb 48%, #fff7f2 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.page-hero h1 {
  color: var(--navy-2);
  font-size: clamp(2.7rem, 5vw, 5.2rem);
}

.mini-piste {
  position: relative;
  height: 330px;
  background: #111827;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.mini-piste::before {
  content: "";
  position: absolute;
  inset: 38px 32px;
  border: 2px solid rgba(255, 255, 255, 0.22);
}

.mini-piste::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 28px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(47, 121, 255, 0.35), rgba(255, 255, 255, 0.2), rgba(217, 52, 63, 0.35));
  border-radius: 99px;
}

.floating-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(320px, calc(100% - 56px));
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.cta-band {
  padding: 76px 0;
  background: var(--navy-2);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-inner p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
}

.site-footer {
  background: #071224;
  color: #fff;
  padding: 52px 0 32px;
}

.footer-main {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
  width: 220px;
}

.footer-top p {
  margin: 0;
  max-width: 360px;
}

.footer-top .social-links {
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  flex: 1;
}

.site-footer h3 {
  font-size: 0.92rem;
}

.site-footer a,
.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 14px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  transition: all 0.25s ease;
}

.social-link:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.social-link.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
}

.social-link.tiktok:hover {
  background: #000;
  border-color: #fff;
}

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

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 900;
  color: #2b3547;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cfd8e6;
  border-radius: 7px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

.field textarea {
  min-height: 128px;
  resize: vertical;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff5e3;
  border: 1px solid #f1d29c;
  color: #7a5312;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    grid-template-columns: 1fr;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0 4px 12px;
    min-width: auto;
    display: none;
  }

  .dropdown.open .dropdown-menu {
    display: grid;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .split,
  .split-bracket,
  .section-dark .split,
  .perf-split,
  .page-hero .container,
  .role-tabs {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cta-inner,
  .footer-main {
    flex-direction: column;
    gap: 32px;
  }

  .advantage-intro .value-visual-wide {
    max-height: 320px;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .phone-stack {
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 18px;
    margin: 0 auto;
  }

  .phone-stack .phone-main,
  .phone-stack .phone-secondary {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0;
    width: min(320px, 46vw);
  }

  .phone-stack .phone-main {
    height: auto;
    aspect-ratio: 360/640;
  }

  .phone-stack .phone-secondary {
    height: auto;
    aspect-ratio: 360/640;
  }

  .phone-stack .app-screen {
    min-height: 0;
  }

  .bracket-tree .bt-r1 .bt-box,
  .bt-r2 .bt-box,
  .bt-r3 .bt-box,
  .bt-r4 .bt-box {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .bracket-tree .bt-r1,
  .bt-r2,
  .bt-r3,
  .bt-r4 {
    padding: 5px 0;
  }

  .bracket-stage {
    padding: 12px 10px;
  }

  .bracket-tabs {
    padding: 10px 12px 0;
    font-size: 0.80rem;
  }

  .bracket-tabs span {
    padding-bottom: 8px;
  }

  .bracket-subtabs {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .stat-row,
  .assignment-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    display: none;
  }

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

  .week-day:nth-child(4) {
    border-right: none;
  }

  .week-day:nth-child(n+5) {
    border-top: 1px solid #e8ecf2;
  }

  .week-day {
    min-height: 130px;
  }

  .wd-slot strong {
    font-size: 0.62rem;
  }

  .course-row {
    grid-template-columns: 0.5fr 0.85fr 0.5fr 0.55fr 1fr 0.6fr 0.9fr;
  }

  .mockup-stack {
    min-height: 640px;
  }

  .phone.main {
    right: 0;
  }

  .trust-visual {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    max-width: none;
    width: 100%;
  }

  .trust-img-main {
    width: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
    transform: none;
  }

  .trust-img-secondary {
    position: static;
    width: 50%;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
  }
}

@media (max-width: 680px) {
  .trust-visual {
    flex-direction: column;
    align-items: center;
  }

  .trust-img-main,
  .trust-img-secondary {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .brand {
    min-width: auto;
  }

  .brand span {
    display: none;
  }

  .hero,
  .hero .container {
    min-height: 720px;
  }

  .hero::before {
    background-position: 66% center;
  }

  .hero-proof,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 68px 0;
  }

  .advantage-list {
    grid-template-columns: 1fr;
  }

  .mockup-stack {
    min-height: 760px;
  }

  .phone.main,
  .phone.secondary {
    position: relative;
    right: auto;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 0 auto 18px;
  }

  .phone-stack {
    flex-direction: column;
    align-items: center;
  }

  .phone-stack .phone-main,
  .phone-stack .phone-secondary {
    width: min(320px, 70vw);
  }

  .bracket-tree .bt-r1 .bt-box,
  .bt-r2 .bt-box,
  .bt-r3 .bt-box,
  .bt-r4 .bt-box {
    padding: 8px 10px;
    font-size: 0.75rem;
  }

  .bracket-tabs {
    padding: 8px 10px 0;
    font-size: 0.75rem;
  }

  .bracket-subtabs {
    padding: 6px 10px;
    font-size: 0.70rem;
  }

  .bracket-stage {
    padding: 10px 8px;
  }

  .schedule-row {
    grid-template-columns: 1fr;
  }

  .workflow-grid,
  .stat-row,
  .assignment-board,
  .course-row,
  .course-row.header,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .course-row.header {
    display: none;
  }

  .course-row > * {
    border-right: none;
    border-bottom: 1px solid #e8ecf2;
    padding: 6px 10px;
  }

  .course-row > *:last-child {
    border-bottom: none;
  }

  .week-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .week-day:nth-child(2n) {
    border-right: none;
  }

  .week-day:nth-child(n+3) {
    border-top: 1px solid #e8ecf2;
  }

  .week-day {
    min-height: 120px;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .data-pager {
    flex-wrap: wrap;
    justify-content: center;
  }

  .detail-band {
    padding: 22px;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .cta-inner .btn {
    width: 100%;
  }

  .section-dark .split {
    gap: 36px;
  }

  .role-list {
    gap: 12px;
  }

  .role-item {
    padding: 20px 22px;
  }

  .role-item h3 {
    font-size: 1.1rem;
  }

  .role-item p {
    font-size: 0.92rem;
  }

  .role-features {
    margin-top: 12px;
    gap: 8px;
  }

  .role-features li {
    font-size: 0.86rem;
  }

  .role-link {
    margin-top: 14px;
    font-size: 0.9rem;
  }

  .trust-stats {
    gap: 10px;
    margin: 24px 0 20px;
  }

  .trust-stat {
    padding: 14px 8px;
  }

  .trust-stat strong {
    font-size: 1.5rem;
  }

  .trust-stat span {
    font-size: 0.72rem;
  }

  .trust-list {
    gap: 12px;
  }

  .trust-list li {
    font-size: 0.88rem;
    gap: 10px;
  }
}
.language-toggle {
  min-width: 70px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(20, 55, 101, 0.24);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: #143765;
  color: #143765;
}
