@font-face {
  font-family: "Batmfa";
  src: url("/batmfa.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #151515;
  --text: #d8d8eb;
  --muted: #b7a8d8;
  --surface: #221b31;
  --surface-2: #1b1727;
  --line: #6f57a5;
  --brand: #7f5bbc;
  --brand-dark: #65459f;
  --ink: #f0e9ff;
  --radius: 20px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  line-height: 1.5;
}

/* Homepage-specific dark theme (dark purple dominant, with black accents and silver contrast). */
body.landing-page {
  background:
    radial-gradient(1200px 520px at 92% -8%, rgba(185, 142, 255, 0.34), rgba(185, 142, 255, 0)),
    radial-gradient(900px 420px at -10% 22%, rgba(185, 142, 255, 0.2), rgba(185, 142, 255, 0)),
    #151515;
  color: #e7ddff;
}

body.landing-page .site-header {
  background: linear-gradient(90deg, #8f60df, #7448c6);
  border-bottom: 1px solid rgba(21, 21, 21, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

body.landing-page .brand,
body.landing-page .login-status {
  color: #151515;
}

body.landing-page .auth-chip {
  color: #151515;
  background: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(21, 21, 21, 0.28);
}

body.landing-page .nav-profile-menu,
body.landing-page .nav-profile-item {
  background: linear-gradient(168deg, rgba(127, 91, 188, 0.24), rgba(21, 21, 21, 0.95));
  border-color: rgba(193, 193, 219, 0.32);
  color: #ece5ff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

body.landing-page .nav-profile-meta {
  color: #d0c3f2;
}

body.landing-page .nav-profile-item:hover {
  border-color: rgba(193, 193, 219, 0.52);
  background: linear-gradient(168deg, rgba(127, 91, 188, 0.34), rgba(21, 21, 21, 0.95));
}

body.landing-page .section {
  background: transparent;
}

body.landing-page .section-alt {
  background: linear-gradient(180deg, rgba(185, 142, 255, 0.14), rgba(21, 21, 21, 0.18));
  border-block: 1px solid rgba(185, 142, 255, 0.22);
}

body.landing-page h1,
body.landing-page h2,
body.landing-page h3,
body.landing-page .subhead,
body.landing-page .hero-stats li,
body.landing-page .eyebrow,
body.landing-page .footer-nav a,
body.landing-page .footer-legal a,
body.landing-page .footer-copy {
  color: #e7ddff;
}

body.landing-page .hero-bg-shape-a {
  background: radial-gradient(circle at center, rgba(185, 142, 255, 0.45), rgba(185, 142, 255, 0));
}

body.landing-page .hero-bg-shape-b {
  background: radial-gradient(circle at center, rgba(185, 142, 255, 0.24), rgba(185, 142, 255, 0));
}

body.landing-page .hero-card,
body.landing-page .card,
body.landing-page .result-card,
body.landing-page .proof-card,
body.landing-page .cta-box {
  background: linear-gradient(165deg, rgba(185, 142, 255, 0.12), rgba(21, 21, 21, 0.9));
  border: 1px solid rgba(185, 142, 255, 0.44);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.46);
  color: #e7ddff;
}

body.landing-page .hero-card h2,
body.landing-page .card h3,
body.landing-page .result-card h3,
body.landing-page .cta-box h2,
body.landing-page .proof-card span,
body.landing-page blockquote,
body.landing-page .proof-card p,
body.landing-page .card p,
body.landing-page .result-card p,
body.landing-page .result-card .meta {
  color: #e7ddff;
}

body.landing-page .hero-stats span {
  color: #e7ddff;
}

body.landing-page .btn-solid {
  background: #b98eff;
  color: #151515;
}

body.landing-page .btn-solid:hover {
  background: #caa5ff;
}

body.landing-page .btn-ghost {
  background: transparent;
  border-color: rgba(185, 142, 255, 0.56);
  color: #e7ddff;
}

body.landing-page .btn-ghost:hover {
  background: rgba(185, 142, 255, 0.2);
}

body.landing-page .site-header .btn-ghost {
  color: #151515;
  border-color: rgba(21, 21, 21, 0.34);
  background: rgba(255, 255, 255, 0.28);
}

body.landing-page .site-header .btn-ghost:hover {
  color: #151515;
  background: rgba(21, 21, 21, 0.14);
}

body.landing-page .site-header .btn-outline {
  color: #151515;
  border-color: rgba(21, 21, 21, 0.38);
  background: rgba(255, 255, 255, 0.32);
}

body.landing-page .site-header .btn-outline:hover {
  color: #151515;
  border-color: rgba(21, 21, 21, 0.52);
  background: rgba(21, 21, 21, 0.14);
}

body.landing-page .site-header #nav-login-btn {
  background: #151515;
  color: #e7ddff;
  border: 1px solid #e7ddff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body.landing-page .site-header #nav-login-btn:hover {
  background: #2b2140;
  border-color: #b98eff;
  color: #ffffff;
}

body.landing-page .site-header .btn-solid {
  background: #151515;
  border-color: #151515;
  color: #e7ddff;
}

body.landing-page .site-header .btn-solid:hover {
  background: #2a2a2a;
}

body.landing-page .site-footer {
  background: linear-gradient(180deg, rgba(33, 25, 47, 0.9), rgba(21, 21, 21, 0.96));
  border-top: 1px solid rgba(185, 142, 255, 0.28);
}

/* Non-landing pages: darker purple/black/silver balance for dashboard/admin/about/etc. */
body:not(.landing-page) {
  background:
    radial-gradient(1200px 520px at 92% -12%, rgba(127, 91, 188, 0.3), rgba(127, 91, 188, 0)),
    radial-gradient(860px 460px at -16% 20%, rgba(193, 193, 219, 0.12), rgba(193, 193, 219, 0)),
    #151515;
  color: var(--text);
}

body:not(.landing-page) .site-header {
  background: linear-gradient(90deg, #6849a3, #563a8a);
  border-bottom: 1px solid rgba(193, 193, 219, 0.26);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36);
}

body:not(.landing-page) .brand,
body:not(.landing-page) .login-status,
body:not(.landing-page) .auth-chip,
body:not(.landing-page) .auth-chip-name {
  color: #151515 !important;
}

body:not(.landing-page) .auth-chip {
  background: rgba(193, 193, 219, 0.78);
  border-color: rgba(21, 21, 21, 0.34);
}

body:not(.landing-page) .section-alt {
  background: linear-gradient(180deg, rgba(104, 73, 163, 0.24), rgba(21, 21, 21, 0.2));
  border-block: 1px solid rgba(193, 193, 219, 0.16);
}

body:not(.landing-page) .hero-card,
body:not(.landing-page) .card,
body:not(.landing-page) .result-card,
body:not(.landing-page) .cta-box,
body:not(.landing-page) .proof-card,
body:not(.landing-page) .pillar,
body:not(.landing-page) .table-wrap,
body:not(.landing-page) .referral-link-card,
body:not(.landing-page) .tracker-kpi,
body:not(.landing-page) .tracker-summary-card,
body:not(.landing-page) .tracker-breakdown-card,
body:not(.landing-page) .clip-review-admin-card,
body:not(.landing-page) .ai-caption-card,
body:not(.landing-page) .mentor-card,
body:not(.landing-page) .slots-locked-section,
body:not(.landing-page) .kpi,
body:not(.landing-page) .modal-card,
body:not(.landing-page) .member-overview-review-card,
body:not(.landing-page) .nav-profile-menu,
body:not(.landing-page) .nav-profile-trigger,
body:not(.landing-page) .nav-profile-item {
  background: linear-gradient(168deg, rgba(127, 91, 188, 0.18), rgba(21, 21, 21, 0.94)) !important;
  border-color: rgba(193, 193, 219, 0.28) !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.38);
}

body:not(.landing-page) input,
body:not(.landing-page) select,
body:not(.landing-page) textarea {
  background: rgba(193, 193, 219, 0.12);
  color: var(--text);
  border-color: rgba(193, 193, 219, 0.32);
}

body:not(.landing-page) th,
body:not(.landing-page) td {
  border-bottom-color: rgba(193, 193, 219, 0.2);
  color: var(--text);
}

body:not(.landing-page) h1,
body:not(.landing-page) h2,
body:not(.landing-page) h3,
body:not(.landing-page) .eyebrow,
body:not(.landing-page) .hero-stats span {
  color: var(--ink);
}

body:not(.landing-page) .card p,
body:not(.landing-page) .result-card p,
body:not(.landing-page) .proof-card p,
body:not(.landing-page) .subhead,
body:not(.landing-page) .muted {
  color: var(--muted);
}

body:not(.landing-page) .btn-solid {
  background: var(--brand);
  border-color: var(--brand);
  color: #f5efff;
}

body:not(.landing-page) .btn-solid:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

body:not(.landing-page) .site-header .nav-actions .btn.btn-solid {
  background: #151515;
  border-color: #151515;
  color: #e7ddff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

body:not(.landing-page) .site-header .nav-actions .btn.btn-solid:hover {
  background: #2a2a2a;
  border-color: #2a2a2a;
  color: #ffffff;
}

body:not(.landing-page) .btn-outline {
  border-color: rgba(193, 193, 219, 0.42);
  color: var(--ink);
}

body:not(.landing-page) .btn-ghost {
  background: rgba(193, 193, 219, 0.14);
  border-color: rgba(193, 193, 219, 0.34);
  color: var(--text);
}

body:not(.landing-page) #nav-login-btn {
  background: #151515;
  color: #c1c1db;
  border: 1px solid #c1c1db;
}

body:not(.landing-page) #nav-login-btn:hover {
  background: #2a213a;
  border-color: #9a7bd7;
}

.wrap {
  width: min(1120px, calc(100vw - 24px));
  margin: 0 auto;
  min-width: 0;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg), white 25%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(92, 93, 165, 0.12);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

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

.nav-muted {
  opacity: 0.5;
  color: var(--muted) !important;
}

.login-status {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.9rem;
}

.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
  min-width: 0;
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(92, 93, 165, 0.18);
  object-fit: cover;
  flex-shrink: 0;
}

.auth-chip-name {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.1;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--line);
  object-fit: cover;
  background: #c1c1db;
}

.nav-profile-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-profile-trigger {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid #c1c1db;
  background: #c1c1db;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-profile-trigger img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
}

.nav-profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 190px;
  background: #c1c1db;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 70;
}

.nav-profile-meta {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 4px 2px 6px;
}

.nav-profile-item {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #c1c1db;
  color: var(--text);
  border-radius: 10px;
  padding: 9px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.nav-profile-item:hover {
  border-color: var(--brand-dark);
}

.dashboard-page.nav-menu-open .nav-profile-trigger {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8), 0 10px 24px rgba(92, 93, 165, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Batmfa", "Archivo Black", sans-serif;
  letter-spacing: 0.04em;
  font-size: 1rem;
  color: #151515 !important;
}

.brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: min(62vw, 240px);
  object-fit: contain;
  flex: 0 1 auto;
}

.hero {
  position: relative;
  padding: 84px 0 48px;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.hero-bg-shape-a {
  width: 560px;
  height: 560px;
  right: -220px;
  top: -120px;
  background: radial-gradient(circle at center, rgba(92, 93, 165, 0.35), rgba(92, 93, 165, 0));
}

.hero-bg-shape-b {
  width: 460px;
  height: 460px;
  left: -180px;
  top: 180px;
  background: radial-gradient(circle at center, rgba(92, 93, 165, 0.22), rgba(92, 93, 165, 0));
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 30px;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.15;
  color: var(--ink);
  overflow-wrap: anywhere;
}

h1 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  max-width: 15ch;
}

h2 {
  font-family: "Archivo Black", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h3 {
  font-size: 1.08rem;
}

.subhead {
  color: var(--muted);
  max-width: 64ch;
  margin-bottom: 26px;
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  font-size: 0.77rem;
  color: var(--brand-dark);
  margin: 0 0 12px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

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

.btn-solid {
  background: var(--brand);
  color: #c1c1db;
  box-shadow: 0 8px 20px rgba(92, 93, 165, 0.35);
}

.btn-solid:hover {
  background: var(--brand-dark);
}

.btn-success {
  background: #5c5da5;
  color: #c1c1db;
  box-shadow: 0 8px 20px rgba(92, 93, 165, 0.28);
}

.btn-success:hover {
  background: #5c5da5;
}

.btn-outline {
  border-color: var(--brand-dark);
  color: var(--brand-dark);
}

.btn-ghost {
  border-color: rgba(0, 0, 0, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.65);
}

.site-header .nav-actions .btn.is-current,
.site-header .nav-actions .btn[aria-current="page"] {
  box-shadow: inset 0 0 0 2px rgba(92, 93, 165, 0.48), 0 8px 18px rgba(0, 0, 0, 0.24);
}

body:not(.landing-page) .site-header .nav-actions .btn.is-current,
body:not(.landing-page) .site-header .nav-actions .btn[aria-current="page"] {
  background: rgba(193, 193, 219, 0.28);
  border-color: rgba(193, 193, 219, 0.62);
  color: #f5efff;
}

body.landing-page .site-header .nav-actions .btn.is-current,
body.landing-page .site-header .nav-actions .btn[aria-current="page"] {
  background: rgba(21, 21, 21, 0.16);
  border-color: rgba(21, 21, 21, 0.5);
  color: #151515;
}

/* Keep the header primary CTA color consistent across all pages/states. */
.site-header .nav-actions .btn.btn-solid.is-current,
.site-header .nav-actions .btn.btn-solid[aria-current="page"] {
  background: #151515;
  border-color: #e7ddff;
  color: #e7ddff;
  /* Avoid the generic inset active shading on the primary JOIN CTA. */
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.site-header .nav-actions .btn.btn-solid.is-current:hover,
.site-header .nav-actions .btn.btn-solid[aria-current="page"]:hover {
  background: #2a2a2a;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

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

.hero-stats li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--muted);
  font-weight: 600;
}

.hero-stats span {
  font-family: "Archivo Black", sans-serif;
  color: var(--ink);
  font-size: 1.02rem;
}

.proof-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 16px;
}

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

.proof-card span {
  display: block;
  font-family: "Archivo Black", sans-serif;
  font-size: 1.2rem;
  color: var(--ink);
}

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

.hero-card,
.card,
.result-card,
.cta-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 24px;
}

.hero-card ul,
.card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-card li,
.card li {
  margin: 0 0 8px;
}

.section {
  padding: 62px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(193, 193, 219, 0.64), rgba(193, 193, 219, 0.2));
  border-block: 1px solid rgba(92, 93, 165, 0.12);
}

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

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

.card {
  padding: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.pillar {
  background: rgba(193, 193, 219, 0.8);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

.pillar p {
  margin: 0;
  color: var(--muted);
}

.feature-card {
  border-top: 5px solid rgba(92, 93, 165, 0.4);
}

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

.result-card {
  padding: 18px;
  background: #c1c1db;
}

.result-card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.result-card .meta {
  font-size: 0.87rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5c5da5;
}

blockquote {
  margin: 10px 0 0;
  padding-left: 12px;
  border-left: 3px solid rgba(92, 93, 165, 0.4);
  color: #000000;
  font-style: italic;
}

.testimonials-page .result-card blockquote {
  color: #ffffff;
  border-left-color: rgba(193, 193, 219, 0.6);
}

.cta {
  padding-bottom: 84px;
}

.cta-box {
  padding: 34px;
  text-align: center;
  background: linear-gradient(120deg, #c1c1db, #c1c1db);
}

.cta-box p {
  max-width: 66ch;
  margin: 0 auto 18px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid rgba(92, 93, 165, 0.14);
  padding: 32px 0 28px;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
}

.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--brand);
}

.footer-legal {
  display: flex;
  gap: 16px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--brand);
}

.footer-copy {
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(92, 93, 165, 0.1);
  color: #5c5da5;
  font-size: 0.9rem;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

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

.dashboard-shell-main {
  padding-top: 24px;
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-side {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 8px;
  padding: 16px;
}

.dashboard-side h2 {
  margin: 2px 0 0;
}

.dashboard-nav-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.dashboard-nav-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(193, 193, 219, 0.28);
  border-radius: 12px;
  background: rgba(193, 193, 219, 0.08);
  color: #efe9ff;
  font: inherit;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.dashboard-nav-btn:hover {
  background: rgba(193, 193, 219, 0.16);
  border-color: rgba(193, 193, 219, 0.46);
}

.dashboard-nav-btn.active {
  background: rgba(185, 142, 255, 0.36);
  border-color: rgba(185, 142, 255, 0.86);
  color: #ffffff;
}

.dashboard-nav-btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.dashboard-side-help {
  margin: 4px 0 0;
  font-size: 0.84rem;
}

.dashboard-panels {
  min-width: 0;
}

.dashboard-panel {
  display: none;
}

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

.dashboard-panel-card-gap {
  margin-top: 16px;
}

.command-controls-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.command-controls-grid-primary {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.command-inline-actions {
  justify-content: flex-end;
}

.command-selected-indicator {
  margin: 8px 0 10px;
}

.command-maker-layout {
  margin-top: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.command-posts-panel {
  min-width: 0;
}

.command-posts-scroll {
  border: 1px solid rgba(193, 193, 219, 0.26);
  border-radius: 14px;
  background: rgba(15, 16, 23, 0.62);
  padding: 10px;
  max-height: 82vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.command-posts-grid {
  margin-top: 0;
}

#command-posts-grid.dashboard-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-post-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.command-post-card:hover {
  border-color: rgba(185, 142, 255, 0.78);
}

.command-post-card.selected {
  border-color: rgba(185, 142, 255, 0.94);
  box-shadow: 0 0 0 2px rgba(185, 142, 255, 0.26);
  background: rgba(193, 193, 219, 0.95);
}

.command-post-card .clip-cover-frame {
  background: #0f1118;
  border-color: rgba(193, 193, 219, 0.3);
}

.command-post-card .clip-cover-image {
  background: #0f1118;
  object-fit: cover;
}

.command-post-card .muted {
  color: #7a84a6;
}

.command-post-check {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 20px;
  height: 20px;
  accent-color: #b98eff;
}

.command-post-meta {
  padding: 10px;
  display: grid;
  gap: 4px;
}

.command-post-meta p {
  margin: 0;
}

.command-post-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* Command Making cards: high-contrast, no pink wash */
#command-maker-card .command-post-card {
  border-color: rgba(166, 183, 221, 0.34);
  background: linear-gradient(180deg, #171a24 0%, #131621 100%);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

#command-maker-card .command-post-card:hover {
  border-color: rgba(143, 168, 230, 0.78);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4);
}

#command-maker-card .command-post-card.selected {
  border-color: rgba(154, 183, 255, 0.92);
  box-shadow: 0 0 0 2px rgba(130, 163, 245, 0.3), 0 12px 28px rgba(0, 0, 0, 0.42);
  background: linear-gradient(180deg, #1b2130 0%, #151a27 100%);
}

#command-maker-card .command-post-card.selected::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(109, 146, 244, 0.16);
  pointer-events: none;
  z-index: 2;
}

#command-maker-card .command-post-card .clip-cover-frame {
  background: #0d1017;
  border-color: rgba(166, 183, 221, 0.22);
}

#command-maker-card .command-post-card .clip-cover-image {
  background: #0d1017;
  height: 280px;
  object-fit: cover;
}

#command-maker-card .command-post-card .command-post-check {
  accent-color: #88a9ff;
}

#command-maker-card .command-post-card .command-post-meta p {
  color: #eef2ff;
}

#command-maker-card .command-post-card .muted {
  color: #b1bdd9;
}

#command-maker-card .command-post-card .btn.btn-ghost {
  background: rgba(140, 157, 197, 0.2);
  border-color: rgba(166, 183, 221, 0.48);
  color: #eef2ff;
}

#command-maker-card .command-post-card .btn.btn-ghost:hover {
  background: rgba(140, 157, 197, 0.34);
  border-color: rgba(184, 199, 233, 0.7);
}

.command-output-wrap {
  display: grid;
  gap: 10px;
}

.command-generate-card,
.command-output-panel {
  border: 1px solid rgba(193, 193, 219, 0.32);
  border-radius: 12px;
  background: rgba(193, 193, 219, 0.08);
  padding: 10px;
}

.command-generate-card {
  display: grid;
  gap: 10px;
}

.command-output-panel {
  display: grid;
  gap: 10px;
}

.command-generate-card .btn {
  width: 100%;
  justify-content: center;
}

.command-side-panel {
  position: static;
  align-self: start;
}

.command-side-panel #command-output-list {
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 2px;
}

.command-posts-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-output-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-output-card {
  border: 1px solid rgba(193, 193, 219, 0.32);
  border-radius: 12px;
  background: rgba(193, 193, 219, 0.08);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.command-output-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.command-output-card pre {
  margin: 0;
  border: 1px solid rgba(193, 193, 219, 0.24);
  border-radius: 10px;
  background: rgba(21, 21, 21, 0.6);
  color: #efe9ff;
  padding: 10px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  line-height: 1.4;
}

.section-tight {
  padding-top: 16px;
}

.calls-filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 10px;
}

.calls-filter-row select {
  max-width: 260px;
}

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

.about-list {
  margin: 0 0 16px;
  padding-left: 1.4em;
  list-style: disc;
}

.about-list li {
  margin-bottom: 8px;
}

.about-handle-link {
  color: #8ecbff;
  font-weight: 800;
  text-decoration: none;
}

.about-handle-link:hover,
.about-handle-link:focus-visible {
  color: #b7ddff;
  text-decoration: underline;
}

/* Keep inline content links (e.g. /join in FAQ text) on-brand, including visited state. */
body:not(.dashboard-page) main a:not(.btn):not(.about-handle-link):not(.nav-profile-item) {
  color: #8ecbff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body:not(.dashboard-page) main a:not(.btn):not(.about-handle-link):not(.nav-profile-item):visited {
  color: #8ecbff;
}

body:not(.dashboard-page) main a:not(.btn):not(.about-handle-link):not(.nav-profile-item):hover,
body:not(.dashboard-page) main a:not(.btn):not(.about-handle-link):not(.nav-profile-item):focus-visible {
  color: #b7ddff;
}

label {
  font-weight: 700;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  background: #c1c1db;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(92, 93, 165, 0.25);
  border-color: var(--brand);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
}

.call-note-input {
  width: 100%;
  min-height: 54px;
  resize: vertical;
  margin-bottom: 6px;
}

.call-note-meta {
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 6px;
  line-height: 1.3;
  word-break: break-word;
}

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

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  padding: 9px 8px;
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.35;
}

th {
  white-space: nowrap;
  color: var(--ink);
}

.member-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.referral-link-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.referral-link-header {
  display: grid;
  gap: 4px;
}

.referral-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.referral-link-input {
  width: 100%;
  font-size: 0.86rem;
  padding: 10px 11px;
}

.account-manage-form {
  grid-template-columns: minmax(260px, 1fr) 160px auto;
  column-gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.account-platform-select {
  max-width: 160px;
}

.account-manage-form .btn {
  margin-inline: 4px;
  padding: 9px 13px;
  font-size: 0.84rem;
  justify-self: start;
  width: auto;
}

#tiktok-account-list {
  margin-top: 8px;
}

.tracker-upload-form {
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  margin-bottom: 10px;
}

.tracker-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.tracker-kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 10px 12px;
}

.tracker-kpi span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-kpi strong {
  display: block;
  margin-top: 3px;
}

.schedule-mentor-picker {
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}

.schedule-mentor-picker .muted {
  margin: 0;
}

#schedule-mentor-help {
  grid-column: 1 / -1;
}

.mentor-chip-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.mentor-chip-btn {
  appearance: none;
  border: 1px solid rgba(193, 193, 219, 0.56);
  background: rgba(193, 193, 219, 0.14);
  color: #f4efff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.mentor-chip-btn:hover {
  background: rgba(185, 142, 255, 0.24);
  border-color: rgba(185, 142, 255, 0.72);
}

.mentor-chip-btn.active {
  background: rgba(185, 142, 255, 0.34);
  border-color: rgba(185, 142, 255, 0.9);
  color: #ffffff;
}

.mentor-chip-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.tracker-report-shell {
  display: grid;
  gap: 10px;
}

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

.tracker-summary-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 12px 13px;
}

.tracker-summary-card span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
}

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

.tracker-breakdown-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 12px;
}

.tracker-breakdown-card h4 {
  margin: 0 0 8px;
}

.tracker-breakdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracker-breakdown-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.tracker-breakdown-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tracker-breakdown-name {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-breakdown-meta {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tracker-image-capture {
  border-radius: 16px;
  border: 2px solid rgba(193, 193, 219, 0.2);
  background: linear-gradient(135deg, #000000 0%, #000000 100%);
  color: #c1c1db;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.tracker-image-header h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #c1c1db;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tracker-image-header p {
  margin: 4px 0 0;
  color: #c1c1db;
  font-size: 0.84rem;
}

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

.tracker-image-stat {
  border-radius: 12px;
  border: 1px solid rgba(193, 193, 219, 0.35);
  background: rgba(255, 255, 255, 0.04);
  padding: 11px 12px;
}

.tracker-image-stat span {
  display: block;
  font-size: 0.74rem;
  color: #c1c1db;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tracker-image-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.24rem;
  color: #c1c1db;
  font-variant-numeric: tabular-nums;
}

.tracker-image-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tracker-image-column {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.tracker-image-column h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c1c1db;
}

.tracker-image-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracker-image-column li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tracker-image-column li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tracker-image-column .name {
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tracker-image-column .meta {
  color: #c1c1db;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tracker-image-preview-wrap {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.tracker-generated-image {
  width: 100%;
  max-width: 1100px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000000;
}

.btn-mini {
  padding: 8px 10px;
  font-size: 0.76rem;
  white-space: nowrap;
}

.clip-card {
  padding: 12px;
}

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

.dashboard-card-grid > .card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dashboard-card-grid > .card p {
  margin: 0;
  overflow-wrap: anywhere;
}

.clip-cover-frame {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #c1c1db;
}

.clip-cover-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.clip-cover-image {
  width: 100%;
  height: 220px;
  object-fit: contain;
  display: block;
  background: #c1c1db;
}

.clip-preview-play {
  width: 100%;
  padding: 0;
  cursor: pointer;
}

.clip-review-admin-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.clip-review-admin-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 8px;
  display: grid;
  gap: 8px;
}

.clip-review-admin-cover .clip-cover-image {
  height: 120px;
}

.clip-review-admin-meta p {
  margin: 0;
  line-height: 1.3;
  font-size: 0.8rem;
}

.clip-review-admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ai-caption-list {
  display: grid;
  gap: 6px;
  margin: 8px 0;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.ai-caption-card {
  border: 1px solid var(--line);
  background: #c1c1db;
  border-radius: 8px;
  padding: 8px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 120ms ease, background 120ms ease;
}

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

.review-ai-list .ai-caption-card {
  background: linear-gradient(165deg, rgba(86, 58, 138, 0.48), rgba(21, 21, 21, 0.96));
  border-color: rgba(193, 193, 219, 0.42);
}

.ai-caption-card strong {
  font-size: 0.82rem;
  line-height: 1.3;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-ai-list .ai-caption-card strong {
  font-size: 0.82rem;
  line-height: 1.28;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  color: #ffffff;
}

.ai-caption-card .muted {
  font-size: 0.75rem;
  margin: 0;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.review-ai-list .ai-caption-card .muted {
  font-size: 0.74rem;
  line-height: 1.25;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  overflow: visible;
  color: #e9e9ff;
}

.ai-caption-option {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--muted);
  background: #c1c1db;
}

.review-ai-list .ai-caption-option {
  color: #f3f3ff;
  border-color: rgba(193, 193, 219, 0.56);
  background: rgba(21, 21, 21, 0.38);
}

.ai-caption-card.selected {
  border-color: #5c5da5;
  background: rgba(92, 93, 165, 0.18);
}

.clip-caption-label {
  display: block;
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 0.82rem;
  font-weight: 800;
}

.clip-caption-input {
  min-height: 84px;
  resize: vertical;
}

.clip-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.clip-ai-source {
  margin-top: 8px;
  font-size: 0.8rem;
}

.clip-ai-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.clip-ai-candidate {
  text-align: left;
}

.clip-ai-why {
  margin: 0 0 8px;
  font-size: 0.8rem;
}

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

.mentor-card {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #c1c1db;
}

.mentor-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.mentor-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--brand-dark);
}

.compact-details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 10px;
}

.slot-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-day-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.dashboard-page .calendar-day-nav {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.dashboard-page .calendar-day-nav strong {
  text-align: center;
}

#admin-week-label {
  flex: 0 0 auto;
  min-width: 132px;
  text-align: center;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.dashboard-panel[data-admin-panel="mentor-schedules"] .calendar-day-nav {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.dashboard-panel[data-admin-panel="mentor-schedules"] .calendar-day-nav > * {
  flex: 0 0 auto;
}

.week-label-top {
  font-size: 0.72rem;
  color: #d4c8f2;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.week-label-range {
  font-size: 0.95rem;
  color: #f1ebff;
}

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

.slot-button {
  width: 100%;
}

.slots-locked-section {
  opacity: 0.45;
  pointer-events: none;
}

.weekly-calendar-wrap {
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #6f57a5;
  border-radius: 12px;
  background: #1d172b;
  padding: 0 10px 10px;
  max-height: 72vh;
}

#weekly-calendar-grid table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
  background: #4f3f75;
}

.weekly-time-col {
  width: 78px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ece4ff;
  background: #211a31;
  border: 1px solid #8f80b8;
  position: sticky;
  left: 0;
  z-index: 3;
}

.weekly-day-head {
  text-align: center;
  font-weight: 800;
  font-size: 0.78rem;
  color: #f2ecff;
  background: #2a2040;
  border: 1px solid #8f80b8;
  position: sticky;
  top: 0;
  z-index: 4;
}

.weekly-day-title {
  line-height: 1.1;
}

.weekly-day-date {
  font-size: 0.67rem;
  color: #d4c8f2;
  margin-top: 2px;
  margin-bottom: 4px;
}

.weekly-day-head.today-head {
  background: #3c2e5f;
  color: #ffffff;
}

.weekly-day-head.past-day-head {
  background: #241c37;
  color: #c4b5e7;
}

#clip-review-modal-caption {
  min-height: 76px;
}

#clip-review-modal-text {
  min-height: 128px;
}

.today-pill {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #f0d9ff;
}

.weekly-day-head .btn-mini {
  margin-top: 6px;
  padding: 6px 9px;
  font-size: 0.68rem;
}

.weekly-day-head .btn-ghost {
  background: rgba(193, 193, 219, 0.16);
  border-color: rgba(193, 193, 219, 0.56);
  color: #f7f3ff;
}

.weekly-day-head .btn-ghost:hover {
  background: rgba(185, 142, 255, 0.3);
  border-color: #dac8ff;
  color: #ffffff;
}

.weekly-day-head .btn-ghost:disabled {
  opacity: 0.5;
  color: #c2b6df;
  border-color: rgba(193, 193, 219, 0.32);
}

.weekly-slot-cell {
  width: auto;
  min-width: 0;
  height: 24px;
  cursor: crosshair;
  background: #d6d6df;
  border: 1px solid #8f80b8;
}

.weekly-slot-cell.hour-break {
  border-top: 2px solid #b98eff;
}

.weekly-slot-cell.half-hour-break {
  border-top: 1px solid rgba(185, 142, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(185, 142, 255, 0.95);
}

.weekly-time-col.hour-break {
  border-top: 2px solid #b98eff;
}

.weekly-time-col.half-hour-break {
  border-top: 1px solid rgba(185, 142, 255, 0.95);
  box-shadow: inset 0 1px 0 rgba(185, 142, 255, 0.95);
}

.weekly-slot-cell.available {
  background: #d6d6df;
}

.weekly-slot-cell.booked {
  background: #564492;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  cursor: grab;
}

.weekly-slot-cell.blocked-cell {
  background: #c83434;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  text-align: center;
  vertical-align: middle;
  cursor: crosshair;
}

.today-call-row {
  background: rgba(92, 93, 165, 0.12);
}

.weekly-slot-cell.breaking {
  background: #f3f3ff;
}

.weekly-slot-cell.drag-preview {
  outline: 2px solid rgba(92, 93, 165, 0.45);
  outline-offset: -2px;
}

.weekly-slot-cell.past-cell {
  background: #a8a8bb;
  color: #f2f2f8;
  cursor: not-allowed;
}

.weekly-slot-cell.past-cell.available,
.weekly-slot-cell.past-cell.blocked-cell {
  background: #a8a8bb;
}

.weekly-slot-cell.past-cell.booked {
  background: #6d668b;
  color: #ffffff;
  cursor: not-allowed;
}

.weekly-slot-cell.booked:active {
  cursor: grabbing;
}

.calendar-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: #d9cff2;
}

.legend-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  vertical-align: -2px;
  margin-right: 4px;
}

.legend-available {
  background: #d6d6df;
}

.legend-break {
  background: rgba(92, 93, 165, 0.24);
}

.legend-drag {
  background: rgba(92, 93, 165, 0.12);
}

.blocked-date-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d76d6d;
  border-radius: 999px;
  padding: 5px 9px;
  background: #5a2323;
  color: #ffe6e6;
  margin: 2px;
  font-size: 0.8rem;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.58);
  display: grid;
  place-items: center;
  padding: 14px;
}

.modal-card {
  width: min(620px, 92vw);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px;
  position: relative;
}

body.clip-review-lock-scroll {
  overflow: hidden;
}

body.modal-lock-scroll {
  overflow: hidden;
}

#clip-review-modal .modal-card {
  width: min(900px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, #191923 0%, #15151d 100%) !important;
  border: 1px solid rgba(193, 193, 219, 0.42) !important;
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.62) !important;
}

#clip-review-modal.modal-backdrop {
  background: rgba(5, 5, 8, 0.84);
}

#completed-review-modal .modal-card {
  width: min(620px, 94vw);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(176deg, rgba(44, 29, 72, 0.96), rgba(21, 21, 21, 0.98)) !important;
  border: 1px solid rgba(193, 193, 219, 0.42) !important;
}

#member-overview-modal .modal-card {
  width: min(1120px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a1626 0%, #15121f 100%) !important;
  border: 1px solid rgba(193, 193, 219, 0.45) !important;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.66) !important;
}

#member-overview-modal.modal-backdrop {
  background: rgba(3, 3, 7, 0.84);
}

#pending-month-view-modal .modal-card {
  width: min(1020px, 96vw);
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #1a1626 0%, #15121f 100%) !important;
  border: 1px solid rgba(193, 193, 219, 0.45) !important;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.66) !important;
}

#pending-month-view-modal.modal-backdrop {
  background: rgba(3, 3, 7, 0.82);
}

#member-overview-body {
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(18, 15, 28, 0.96);
  border: 1px solid rgba(193, 193, 219, 0.34);
  border-radius: 10px;
  padding: 8px 10px;
}

#member-overview-modal .kpi {
  background: rgba(24, 20, 36, 0.96);
  border-color: rgba(193, 193, 219, 0.34);
}

#member-overview-modal .table-wrap {
  background: rgba(17, 14, 27, 0.95);
  border-color: rgba(193, 193, 219, 0.34);
}

#member-overview-modal .table-wrap table {
  background: rgba(17, 14, 27, 0.98);
}

#member-overview-modal input,
#member-overview-modal select,
#member-overview-modal textarea {
  background: rgba(28, 23, 43, 0.96);
  border-color: rgba(193, 193, 219, 0.38);
  color: #e7ddff;
}

#member-overview-modal th,
#member-overview-modal td {
  border-bottom-color: rgba(193, 193, 219, 0.2);
  color: #e7ddff;
}

#pending-month-view-body {
  max-height: 68vh;
  overflow-y: auto;
  padding-right: 4px;
  background: rgba(18, 15, 28, 0.96);
  border: 1px solid rgba(193, 193, 219, 0.34);
  border-radius: 10px;
  padding: 8px 10px;
}

#pending-month-view-modal .kpi {
  background: rgba(24, 20, 36, 0.96);
  border-color: rgba(193, 193, 219, 0.34);
}

#pending-month-view-modal .table-wrap {
  background: rgba(17, 14, 27, 0.95);
  border-color: rgba(193, 193, 219, 0.34);
}

#pending-month-view-modal .table-wrap table {
  background: rgba(17, 14, 27, 0.98);
}

#kick-cycle-view-modal .modal-card {
  width: min(1120px, 96vw);
  max-height: calc(100vh - 24px);
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  margin: 16px auto;
  background: linear-gradient(180deg, #1a1626 0%, #14111d 100%) !important;
  border: 1px solid rgba(193, 193, 219, 0.48) !important;
  box-shadow: 0 36px 80px rgba(0, 0, 0, 0.7) !important;
}

#kick-cycle-view-modal.modal-backdrop {
  background: rgba(3, 3, 7, 0.86);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px;
}

#kick-cycle-view-body {
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 8px 10px;
  border: 1px solid rgba(193, 193, 219, 0.34);
  border-radius: 10px;
  background: rgba(14, 12, 21, 0.98);
}

#kick-cycle-view-modal h3,
#kick-cycle-view-modal h4,
#kick-cycle-view-modal th,
#kick-cycle-view-modal td {
  color: #e7ddff;
}

#kick-cycle-view-modal #kick-cycle-view-subtitle {
  color: #cfc4eb;
}

#kick-cycle-view-modal .kpi {
  background: rgba(24, 20, 36, 0.98);
  border-color: rgba(193, 193, 219, 0.34);
}

#kick-cycle-view-modal .table-wrap {
  background: rgba(10, 9, 16, 0.99);
  border-color: rgba(193, 193, 219, 0.38);
}

#kick-cycle-view-modal .table-wrap table {
  background: rgba(10, 9, 16, 1);
}

#kick-cycle-view-modal th {
  color: #f0e9ff;
  background: rgba(37, 30, 56, 0.9);
}

#kick-cycle-view-modal td {
  color: #e7ddff;
  border-bottom-color: rgba(193, 193, 219, 0.2);
}

#kick-cycle-view-creators-table,
#kick-cycle-view-tags-table {
  overflow-x: auto;
}

.member-overview-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.member-overview-filter-select {
  min-width: 140px;
  max-width: 190px;
}

.modal-close-x {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 1px solid var(--line);
  background: #c1c1db;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-x:hover {
  background: #c1c1db;
}

.modal-card h3 {
  margin-right: 38px;
}

input.is-disabled-field,
select.is-disabled-field,
textarea.is-disabled-field {
  background: #c1c1db !important;
  color: #5c5da5 !important;
  border-color: #c1c1db !important;
  cursor: not-allowed;
}

.custom-link-preview {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #c1c1db;
  margin-bottom: 10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

.call-note-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #c1c1db;
  padding: 8px 10px;
  margin-bottom: 8px;
}

.review-response-candidate {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #c1c1db;
  padding: 8px 10px;
}

.review-response-candidate.selected {
  border-color: #5c5da5;
  background: rgba(92, 93, 165, 0.12);
}

.member-overview-review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.member-overview-review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #c1c1db;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.member-overview-review-media {
  min-height: 160px;
}

.member-overview-review-media .clip-cover-frame {
  min-height: 160px;
  width: 100%;
}

.member-overview-review-media .clip-cover-image {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
}

.member-overview-review-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.completed-review-cover-wrap {
  max-width: 260px;
  margin: 0 auto 10px;
}

#completed-review-modal .completed-review-cover-wrap .clip-cover-frame {
  background: #000000;
  aspect-ratio: 9 / 16;
}

#completed-review-modal .completed-review-cover-wrap .clip-cover-image {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #000000;
}

#completed-review-body .notice-box {
  overflow-wrap: anywhere;
  background: rgba(16, 14, 25, 0.94);
  border: 1px solid rgba(193, 193, 219, 0.38);
}

#completed-review-body a {
  overflow-wrap: anywhere;
  word-break: break-word;
  color: #9ecbff;
  text-decoration-color: rgba(158, 203, 255, 0.65);
}

#completed-review-body .notice-box p,
#completed-review-body .notice-box strong {
  color: #f4efff;
}

#completed-review-body .notice-box .muted {
  color: #d9d1ea;
}

#completed-review-title {
  color: #f4efff;
}

.reschedule-slot-list {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid rgba(193, 193, 219, 0.38);
  border-radius: 10px;
  background: rgba(17, 14, 27, 0.96);
  padding: 8px;
  display: grid;
  gap: 6px;
}

.reschedule-slot-btn {
  width: 100%;
  text-align: left;
}

.reschedule-slot-btn.btn.btn-ghost {
  background: rgba(33, 27, 48, 0.98) !important;
  border: 1px solid rgba(193, 193, 219, 0.4) !important;
  color: #efe8ff !important;
  min-height: 44px;
  border-radius: 10px;
}

.reschedule-slot-btn.btn.btn-ghost:hover {
  background: rgba(44, 35, 64, 0.99) !important;
  border-color: rgba(193, 193, 219, 0.58) !important;
}

.reschedule-slot-btn.btn.btn-solid {
  background: #b98eff !important;
  border: 1px solid #b98eff !important;
  color: #151515 !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
}

.reschedule-slot-btn .muted {
  color: #d8c9f7 !important;
}

#reschedule-call-modal .calendar-day-nav strong,
#reschedule-modal .calendar-day-nav strong {
  color: #f4eeff;
}

.payment-provider-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

#payment-provider-modal .modal-card {
  width: min(560px, 92vw);
  background: linear-gradient(180deg, #1a1626 0%, #14111d 100%) !important;
  border: 1px solid rgba(193, 193, 219, 0.45) !important;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62) !important;
}

#payment-provider-modal .modal-card h3,
#payment-provider-modal .modal-card .muted {
  color: #f4eeff;
}

#payment-provider-modal .payment-provider-options .btn,
#payment-provider-modal .modal-actions .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

#payment-provider-modal .payment-provider-options .btn-ghost,
#payment-provider-modal .modal-actions .btn-ghost {
  background: #231b37;
  border-color: rgba(193, 193, 219, 0.48);
  color: #f4eeff;
}

#payment-provider-modal .payment-provider-options .btn-ghost:hover,
#payment-provider-modal .modal-actions .btn-ghost:hover {
  background: #312449;
  border-color: rgba(193, 193, 219, 0.66);
}

#payment-provider-modal .modal-actions {
  margin-top: 12px;
}

.notice-box {
  border: 1px dashed var(--line);
  background: #c1c1db;
  border-radius: 12px;
  padding: 12px;
}

.notice-box p {
  margin: 0 0 6px;
}

/* Dashboard payment card: force high-contrast styles for active payment notice */
#pay-card .notice-box {
  border: 1px solid rgba(193, 193, 219, 0.42);
  background: linear-gradient(165deg, rgba(100, 72, 152, 0.55), rgba(21, 21, 21, 0.98));
  color: #f4eeff;
}

#pay-card .notice-box p,
#pay-card .notice-box strong {
  color: #f4eeff;
}

#pay-card .notice-box .muted {
  color: #d8c9ff;
}

#pay-card .notice-box a:not(.btn) {
  color: #d4b3ff;
}

#pay-card .notice-box .btn-solid {
  background: #b98eff;
  border-color: #b98eff;
  color: #151515;
}

#pay-card .notice-box .btn-solid:hover {
  background: #a676f7;
  border-color: #a676f7;
  color: #151515;
}

#pay-card .notice-box .btn-ghost {
  background: rgba(193, 193, 219, 0.2);
  border-color: rgba(193, 193, 219, 0.46);
  color: #f4eeff;
}

#pay-card .notice-box .btn-ghost:hover {
  background: rgba(193, 193, 219, 0.3);
  border-color: rgba(193, 193, 219, 0.62);
}

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

.kpi {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #c1c1db;
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kpi strong {
  font-size: 1rem;
}

.dashboard-page #client-top-clips a,
.dashboard-page #client-clips-table a {
  color: #b8e7ff;
  text-decoration: none;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
}

.dashboard-page #client-top-clips a:hover,
.dashboard-page #client-top-clips a:focus-visible,
.dashboard-page #client-clips-table a:hover,
.dashboard-page #client-clips-table a:focus-visible {
  color: #e6f6ff;
  text-decoration: underline;
}

.client-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.client-clip-card {
  border: 1px solid rgba(151, 181, 225, 0.35);
  border-radius: 12px;
  background: #0e1624;
  box-shadow: 0 10px 26px rgba(3, 8, 18, 0.35);
  overflow: hidden;
  display: grid;
}

.client-clip-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #171626;
}

.client-clip-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(9, 13, 24, 0.08) 30%, rgba(9, 13, 24, 0.6) 100%);
}

.client-clip-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-clip-cover-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #d6defb;
  font-size: 0.85rem;
  font-weight: 700;
}

.client-clip-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-block;
  border-radius: 999px;
  border: 1px solid rgba(159, 214, 255, 0.6);
  background: rgba(10, 16, 26, 0.78);
  color: #d8eeff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
}

.client-clip-body {
  padding: 10px;
  display: grid;
  gap: 7px;
  background: linear-gradient(180deg, rgba(13, 20, 34, 0.95), rgba(8, 13, 23, 0.98));
  color: #ebf6ff;
}

.client-clip-account {
  margin: 0;
  font-weight: 800;
  color: #f5fbff;
}

.client-clip-platform {
  margin: 0;
  font-size: 0.8rem;
  color: #aec4db;
}

.client-clip-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  font-size: 0.8rem;
  color: #dfecfa;
}

.client-clip-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid rgba(129, 168, 214, 0.3);
  background: rgba(18, 30, 48, 0.84);
  padding: 5px 7px;
  font-weight: 700;
}

.client-clip-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.client-clip-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(133, 185, 238, 0.44);
  background: rgba(24, 56, 95, 0.88);
  color: #ecf8ff !important;
  padding: 6px 10px;
  text-decoration: none;
}

.client-clip-links a:hover,
.client-clip-links a:focus-visible {
  background: rgba(43, 82, 129, 0.94);
  border-color: rgba(171, 214, 255, 0.72);
  color: #ffffff !important;
  text-decoration: none;
}

.client-table-cover {
  width: 68px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(137, 171, 215, 0.58);
  object-fit: cover;
  display: block;
}

.client-table-cover-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: #c5d8ee;
  background: linear-gradient(180deg, rgba(17, 28, 44, 0.94), rgba(10, 16, 27, 0.98));
  letter-spacing: 0.02em;
}

.kpi-with-action {
  position: relative;
  padding-right: 98px;
}

.kpi-with-action .kpi-action-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  margin: 0;
}

#payments-admin-table a,
#member-overview-body a,
#pending-table a {
  color: #8ec5ff;
}

#payments-admin-table a:hover,
#member-overview-body a:hover,
#pending-table a:hover {
  color: #b6dbff;
}

/* Admin readability improvements */
#pending-table table {
  min-width: 980px;
}

#pending-table th:nth-child(5),
#pending-table th:nth-child(6),
#pending-table th:nth-child(7),
#pending-table th:nth-child(8),
#pending-table th:nth-child(9),
#pending-table td:nth-child(5),
#pending-table td:nth-child(6),
#pending-table td:nth-child(7),
#pending-table td:nth-child(8),
#pending-table td:nth-child(9) {
  text-align: center;
}

#pending-table th:nth-child(5),
#pending-splits-summary .kpi:nth-child(2) {
  background: rgba(92, 93, 165, 0.08);
}

#pending-table th:nth-child(6),
#pending-table th:nth-child(7),
#pending-table th:nth-child(8),
#pending-table th:nth-child(9) {
  background: rgba(92, 93, 165, 0.08);
}

#members-table table {
  min-width: 860px;
}

#members-table td:first-child {
  min-width: 150px;
}

#clip-reviews-pending-table table {
  min-width: 980px;
}

#clip-reviews-pending-table th:nth-child(1),
#clip-reviews-pending-table td:nth-child(1) {
  width: 150px;
}

#clip-reviews-pending-table th:nth-child(4),
#clip-reviews-pending-table td:nth-child(4) {
  min-width: 320px;
  white-space: normal;
}

#clip-reviews-pending-table .clip-cover-image {
  height: 140px;
}

#clip-reviews-pending-table p.muted {
  margin: 4px 0;
  font-size: 0.8rem;
}

#clip-reviews-pending-table textarea {
  width: 100%;
  min-height: 54px;
}

#clip-reviews-pending-table .btn-mini {
  margin-top: 4px;
}

#schedule-my-bookings-wrap table,
#schedule-my-past-bookings-wrap table {
  min-width: 860px;
}

#schedule-my-bookings-wrap th:nth-child(1),
#schedule-my-past-bookings-wrap th:nth-child(1),
#schedule-my-bookings-wrap td:nth-child(1),
#schedule-my-past-bookings-wrap td:nth-child(1) {
  min-width: 120px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(92, 93, 165, 0.2);
  color: #5c5da5;
  font-weight: 800;
}

.badge.overdue {
  background: rgba(92, 93, 165, 0.2);
  color: #5c5da5;
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .pillars,
  .results-grid,
  .dashboard-grid,
  .proof-strip,
  .mentor-grid,
  .tracker-report-grid,
  .tracker-summary-grid,
  .tracker-breakdown-grid,
  .tracker-image-stats,
  .tracker-image-columns {
    grid-template-columns: 1fr 1fr;
  }

  .slot-button-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .weekly-calendar-wrap {
    overflow-x: auto;
  }

  #weekly-calendar-grid table {
    min-width: 980px;
    table-layout: auto;
  }

  .hero-grid {
    align-items: stretch;
  }

  .dashboard-shell {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 14px;
  }

  .dashboard-nav-btn {
    font-size: 0.86rem;
    padding: 9px 10px;
  }

  .command-controls-grid {
    grid-template-columns: 1fr 1fr;
  }

  .command-maker-layout {
    grid-template-columns: 1fr;
  }

  .command-side-panel {
    position: static;
  }

  .command-posts-scroll,
  .command-side-panel #command-output-list {
    max-height: 62vh;
  }

  #command-posts-grid.dashboard-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .command-inline-actions {
    justify-content: flex-start;
    grid-column: 1 / -1;
  }

  .section {
    padding: 44px 0;
  }
}

@media (max-width: 700px) {
  .nav {
    padding: 10px 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .nav-actions {
    width: 100%;
    gap: 8px;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-logo {
    height: 27px;
    max-width: min(80vw, 210px);
  }

  .nav-actions .btn,
  .nav-actions .login-status {
    width: 100%;
    text-align: center;
    min-width: 0;
  }

  .auth-chip {
    justify-content: center;
    width: 100%;
    margin-inline: auto;
  }

  .hero {
    padding-top: 60px;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .pillars,
  .results-grid,
  .dashboard-grid,
  .proof-strip,
  .mentor-grid,
  .kpi-grid,
  .member-form-grid,
  .tracker-summary-grid,
  .tracker-breakdown-grid,
  .tracker-image-stats,
  .tracker-image-columns {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    position: static;
    top: auto;
  }

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

  .dashboard-nav-btn {
    text-align: center;
    padding: 10px 8px;
  }

  .schedule-mentor-picker {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tracker-upload-form {
    grid-template-columns: 1fr;
  }

  #member-overview-modal .modal-card {
    width: 96vw;
  }

  #member-overview-body {
    max-height: 65vh;
  }

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

  .member-overview-review-card {
    padding: 8px;
  }

  .account-manage-form .btn {
    margin-inline: 0;
  }

  .account-platform-select {
    max-width: 100%;
  }

  .slot-button-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .clip-actions {
    flex-direction: column;
  }

  .dashboard-page .clip-actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .dashboard-page .dashboard-card-grid > .card .btn-mini {
    width: 100%;
    justify-content: center;
  }

  .dashboard-page .calendar-day-nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .command-controls-grid {
    grid-template-columns: 1fr;
  }

  .command-posts-scroll,
  .command-side-panel #command-output-list {
    max-height: 54vh;
  }

  #command-posts-grid.dashboard-card-grid {
    grid-template-columns: 1fr;
  }

  .command-controls-actions,
  .command-inline-actions {
    width: 100%;
  }

  .command-controls-actions .btn,
  .command-inline-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .command-output-header {
    flex-direction: column;
    align-items: stretch;
  }

  .command-posts-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .command-posts-footer .btn {
    width: 100%;
    justify-content: center;
  }

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

  .dashboard-page #completed-review-modal .modal-card {
    width: min(440px, 96vw);
    padding: 14px;
  }

  .dashboard-page .completed-review-cover-wrap {
    max-width: 220px;
  }

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

  .slot-tabs .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card,
  .card,
  .result-card,
  .cta-box {
    border-radius: 16px;
  }

  table {
    min-width: 760px;
    table-layout: auto;
  }

  th,
  td {
    white-space: nowrap;
    word-break: normal;
  }

  code {
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  #pending-splits-summary .kpi {
    text-align: center;
  }
}

@media (max-width: 430px) {
  .nav-actions {
    grid-template-columns: 1fr;
  }

  .auth-chip {
    justify-content: center;
    width: 100%;
    padding-right: 8px;
  }

  .auth-chip-name {
    max-width: 100%;
  }

  .nav-actions .btn {
    padding: 10px 10px;
    font-size: 0.78rem;
  }

  .weekly-calendar-wrap {
    padding: 0 6px 6px;
    max-height: 68vh;
  }

  #weekly-calendar-grid table {
    min-width: 980px;
  }

  .weekly-slot-cell {
    min-width: 98px;
    height: 22px;
  }

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

  #clip-reviews-pending-table table {
    min-width: 1080px;
  }

  .footer-nav,
  .footer-legal {
    width: 100%;
    justify-content: center;
  }

  .footer-copy {
    text-align: center;
  }
}

@media (min-width: 1100px) {
  .ai-caption-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
