:root {
  --green: #00a83b;
  --green-dark: #006b2e;
  --green-light: #32e66b;
  --gold: #f6a900;
  --dark: #071714;
  --text: #111827;
  --muted: #6b7280;
  --border: #d8dee8;
  --white: #ffffff;
  --panel-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Plus Jakarta Sans", "Avenir Next", "Segoe UI", sans-serif;
}

.login-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 30%, rgba(0, 168, 59, 0.18), transparent 30%),
    linear-gradient(135deg, #03110f 0%, #061b17 45%, #0a201b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: var(--text);
}

.login-shell {
  width: 100%;
  max-width: 1440px;
  min-height: 860px;
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(440px, 58%);
  overflow: hidden;
}

.brand-panel {
  position: relative;
  padding: 72px 80px;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(2, 20, 18, 0.96), rgba(0, 44, 25, 0.94)),
    radial-gradient(circle at 50% 50%, rgba(0, 255, 90, 0.18), transparent 40%);
  overflow: hidden;
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 30%, rgba(246, 169, 0, 0.12) 60%, transparent 85%);
  pointer-events: none;
}

.brand-logo {
  width: 320px;
  max-width: 100%;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.brand-title {
  position: relative;
  z-index: 1;
  font-size: 31px;
  line-height: 1.3;
  font-weight: 800;
  max-width: 430px;
  margin: 0 0 44px;
}

.brand-title span {
  color: var(--green-light);
}

.mascot {
  position: relative;
  z-index: 1;
  width: min(430px, 100%);
  display: block;
  margin: 0 auto 54px;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.35));
}

.quote {
  position: absolute;
  z-index: 1;
  left: 80px;
  bottom: 64px;
  max-width: 430px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
}

.quote::before,
.quote::after {
  color: var(--green-light);
  font-size: 56px;
  font-weight: 900;
  line-height: 0;
  vertical-align: middle;
}

.quote::before {
  content: "“";
  margin-right: 14px;
}

.quote::after {
  content: "”";
  margin-left: 14px;
}

.form-panel {
  background: #fdfdfd;
  border-radius: 22px;
  margin: 28px;
  padding: 110px 150px 56px;
  position: relative;
  box-shadow: var(--panel-shadow);
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: 42px;
  right: 54px;
  width: 210px;
  height: 210px;
  opacity: 0.22;
  background: radial-gradient(circle, rgba(0, 168, 59, 0.35), transparent 70%);
  border-radius: 50%;
}

.welcome {
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 20px;
}

h1 {
  font-size: 44px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: -1.4px;
  margin: 0 0 18px;
  color: #111827;
}

.subtitle {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 36px;
}

.message-stack {
  margin-bottom: 22px;
}

.alert {
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}

.alert-error {
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.22);
  color: #b42318;
}

.alert-info,
.alert-success {
  background: rgba(0, 168, 59, 0.08);
  border: 1px solid rgba(0, 168, 59, 0.22);
  color: var(--green-dark);
}

.field-group {
  margin-bottom: 28px;
}

label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.input-wrap {
  height: 58px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  gap: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 168, 59, 0.12);
}

.input-wrap span,
.password-toggle {
  color: #7b8494;
  font-size: 21px;
}

.input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  height: 100%;
  font-size: 16px;
  color: var(--text);
  background: transparent;
}

.input-wrap input::placeholder {
  color: #9ca3af;
}

.password-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.field-error {
  color: #b42318;
  font-size: 13px;
  margin: 8px 0 0;
}

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 6px 0 44px;
  font-size: 15px;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  margin: 0;
}

.remember input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
}

.forgot {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.btn-primary,
.btn-google {
  width: 100%;
  border: none;
  border-radius: 9px;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-primary {
  height: 62px;
  background: linear-gradient(90deg, #07a843, #10b94d);
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(0, 168, 59, 0.22);
  margin-bottom: 36px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #6b7280;
  font-size: 15px;
  margin-bottom: 32px;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.btn-google {
  height: 58px;
  border: 1.5px solid var(--border);
  background: white;
  font-weight: 700;
  color: #111827;
  margin-bottom: 56px;
}

.google-icon {
  font-weight: 900;
  color: #4285f4;
  font-size: 24px;
}

.footer {
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  margin: 0;
}

.dashboard-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(246, 169, 0, 0.12), transparent 26%),
    linear-gradient(180deg, #f7fbf8 0%, #eef7f1 100%);
}

.dashboard-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-kicker,
.panel-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-title {
  margin: 0 0 10px;
  font-size: 38px;
  letter-spacing: -1px;
}

.dashboard-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

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

.dashboard-link,
.dashboard-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.dashboard-link {
  background: linear-gradient(90deg, #07a843, #10b94d);
  color: #fff;
  box-shadow: 0 12px 20px rgba(0, 168, 59, 0.18);
}

.dashboard-ghost {
  border: 1px solid rgba(6, 27, 23, 0.12);
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.dashboard-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #dc2626, #f97316);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 24px rgba(220, 38, 38, 0.22);
}

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

.stat-card,
.panel-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 23, 20, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(13, 38, 31, 0.08);
  backdrop-filter: blur(10px);
}

.stat-card {
  padding: 22px;
}

.stat-card-accent {
  background: linear-gradient(135deg, #0b2c21 0%, #11543b 100%);
}

.stat-card-accent .stat-label,
.stat-card-accent .stat-value {
  color: #fff;
}

.stat-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.stat-value {
  font-size: 30px;
  font-weight: 900;
  color: var(--text);
}

.panel-card {
  padding: 24px;
}

.panel-card-spaced {
  margin-top: 28px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.panel-header h2 {
  margin: 0;
  font-size: 24px;
}

.panel-description {
  max-width: 720px;
  margin: 8px 0 0;
  color: #667268;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

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

.dashboard-table th,
.dashboard-table td {
  padding: 16px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(7, 23, 20, 0.08);
  white-space: nowrap;
}

.dashboard-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-table td {
  font-size: 15px;
  color: var(--text);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.status-pill-active {
  background: rgba(0, 168, 59, 0.12);
  color: var(--green-dark);
}

.status-pill-muted {
  background: rgba(107, 114, 128, 0.12);
  color: #4b5563;
}

.empty-row {
  text-align: center;
  color: var(--muted);
}

.dashboard-placeholder {
  min-height: 100vh;
}

@media (max-width: 1200px) {
  .form-panel {
    padding: 84px 72px 48px;
  }

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

@media (max-width: 1000px) {
  .login-shell {
    grid-template-columns: 1fr;
    max-width: 680px;
    min-height: auto;
  }

  .brand-panel {
    display: none;
  }

  .form-panel {
    margin: 0;
    padding: 72px 36px 40px;
  }

  h1 {
    font-size: 34px;
  }

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

  .dashboard-header,
  .panel-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .login-body {
    padding: 18px;
  }

  .form-panel {
    padding: 48px 22px 28px;
    border-radius: 18px;
  }

  .subtitle {
    margin-bottom: 28px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 28px;
  }

  .dashboard-shell {
    padding: 26px 16px 40px;
  }

  .dashboard-title {
    font-size: 30px;
  }

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

  .dashboard-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Executive dashboard */
.dashboard-body {
  min-height: 100vh;
  color: #ecf8ef;
  background:
    radial-gradient(circle at 10% 8%, rgba(88, 185, 71, 0.34), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(246, 169, 0, 0.24), transparent 25%),
    linear-gradient(145deg, #06100b 0%, #0d2014 43%, #09130d 100%);
}

.dashboard-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.78), transparent 78%);
}

.dashboard-shell-wide {
  max-width: 1480px;
  position: relative;
  z-index: 1;
}

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 26px;
  background: rgba(10, 24, 15, 0.72);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff7d6;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.admin-brand img {
  width: 138px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.32));
}

.admin-brand span {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(88, 185, 71, 0.14);
  color: #d8f99a;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill,
.dashboard-link,
.dashboard-ghost {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 999px;
  color: #e7f6d4;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.nav-pill:hover,
.dashboard-link:hover,
.dashboard-ghost:hover {
  transform: translateY(-2px);
}

.nav-pill-active,
.nav-pill-export {
  background: linear-gradient(135deg, #58b947, #d8f99a);
  color: #07130d;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(88, 185, 71, 0.22);
}

.nav-pill-ghost {
  font-family: inherit;
}

.hero-dashboard,
.clients-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-bottom: 24px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.09), rgba(88, 185, 71, 0.09)),
    rgba(12, 29, 17, 0.82);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.clients-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.hero-dashboard::after,
.clients-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -160px;
  top: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 169, 0, 0.26), transparent 68%);
  pointer-events: none;
}

.dashboard-title {
  color: #fff7d6;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
  letter-spacing: -2.4px;
  max-width: 820px;
}

.dashboard-kicker,
.panel-kicker {
  color: #9be15d;
}

.dashboard-subtitle {
  color: #b8c8b9;
  max-width: 700px;
  font-size: 17px;
  line-height: 1.7;
}

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

.dashboard-link {
  background: linear-gradient(135deg, #58b947, #d8f99a);
  color: #07130d;
  box-shadow: 0 16px 32px rgba(88, 185, 71, 0.22);
}

.dashboard-ghost {
  border-color: rgba(231, 246, 212, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #e7f6d4;
}

.hero-score-card {
  position: relative;
  min-height: 310px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  background:
    radial-gradient(circle at 50% 20%, rgba(88, 185, 71, 0.26), transparent 42%),
    rgba(5, 16, 9, 0.62);
  overflow: hidden;
}

.hero-score-card img {
  position: absolute;
  right: 4px;
  bottom: -28px;
  width: 230px;
  filter: drop-shadow(0 24px 24px rgba(0, 0, 0, 0.36));
}

.hero-score {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 247, 214, 0.1);
}

.hero-score span,
.hero-mini-grid span {
  color: #9be15d;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-score strong {
  color: #fff7d6;
  font-size: 24px;
}

.hero-mini-grid {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini-grid div {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(231, 246, 212, 0.1);
}

.hero-mini-grid strong {
  display: block;
  margin: 8px 0 2px;
  color: #fff7d6;
  font-size: 28px;
}

.hero-mini-grid small {
  color: #b8c8b9;
}

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

.ai-health-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 0%, rgba(155, 225, 93, 0.22), transparent 34%),
    radial-gradient(circle at 95% 20%, rgba(246, 169, 0, 0.18), transparent 30%),
    linear-gradient(135deg, #07130d, #102f1a 58%, #0b1f12);
  color: #fff7d6;
}

.ai-health-card .panel-kicker {
  color: #d8f99a;
}

.ai-health-copy h2 {
  margin: 0 0 12px;
  color: #fff7d6;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.ai-health-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(231, 246, 212, 0.78);
  font-size: 15px;
  line-height: 1.7;
}

.ai-health-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-health-status strong {
  color: #fff;
  font-size: 17px;
}

.ai-health-status small {
  grid-column: 2;
  color: rgba(231, 246, 212, 0.7);
  font-weight: 700;
}

.ai-health-dot {
  width: 16px;
  height: 16px;
  grid-row: span 2;
  border-radius: 999px;
  background: #d8f99a;
  box-shadow: 0 0 0 8px rgba(216, 249, 154, 0.14);
}

.ai-health-dot-idle {
  background: #ffd76b;
  box-shadow: 0 0 0 8px rgba(255, 215, 107, 0.12);
}

.ai-health-dot-ok {
  background: #58b947;
  box-shadow: 0 0 0 8px rgba(88, 185, 71, 0.18), 0 0 24px rgba(88, 185, 71, 0.6);
}

.ai-health-dot-error {
  background: #ff5b5b;
  box-shadow: 0 0 0 8px rgba(255, 91, 91, 0.16), 0 0 24px rgba(255, 91, 91, 0.5);
}

.ai-health-dot-loading {
  background: #9be15d;
  animation: aiPulse 1s ease-in-out infinite;
}

.ai-health-console {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ai-health-button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.ai-health-button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.ai-health-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(7, 19, 13, 0.42);
}

.ai-health-meta span,
.ai-health-metrics span {
  color: #9be15d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-health-meta strong {
  color: #fff7d6;
  font-size: 14px;
  text-align: right;
}

.ai-health-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-health-metrics div {
  padding: 12px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.ai-health-metrics strong {
  display: block;
  margin: 6px 0 2px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.ai-health-metrics small {
  color: rgba(231, 246, 212, 0.66);
  font-weight: 800;
}

.ai-health-costs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ai-health-costs div {
  padding: 12px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 16px;
  background: rgba(7, 19, 13, 0.42);
}

.ai-health-costs span {
  color: #9be15d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-health-costs strong {
  display: block;
  margin: 6px 0 2px;
  color: #fff7d6;
  font-size: 18px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.ai-health-costs small,
.ai-health-cost-note {
  color: rgba(231, 246, 212, 0.68);
  font-weight: 800;
}

.ai-health-cost-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}

@keyframes aiPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(155, 225, 93, 0.42);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(155, 225, 93, 0);
  }
}

.dashboard-body .ai-health-card.panel-card {
  min-height: auto;
  border: 1px solid rgba(216, 249, 154, 0.2);
  background:
    radial-gradient(circle at 8% 0%, rgba(155, 225, 93, 0.26), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(246, 169, 0, 0.2), transparent 28%),
    linear-gradient(135deg, #07130d 0%, #102f1a 58%, #0b1f12 100%) !important;
  color: #fff7d6;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.26);
}

.dashboard-body .ai-health-card.panel-card h2,
.dashboard-body .ai-health-card.panel-card strong {
  color: #fff7d6;
}

.dashboard-body .ai-health-card.panel-card p,
.dashboard-body .ai-health-card.panel-card small {
  color: rgba(231, 246, 212, 0.72);
}

.dashboard-body .ai-health-card.panel-card .panel-kicker,
.dashboard-body .ai-health-card.panel-card .ai-health-meta span,
.dashboard-body .ai-health-card.panel-card .ai-health-metrics span {
  color: #9be15d;
}

.dashboard-body .ai-health-card.panel-card .ai-health-button {
  color: #07130d;
}

.dashboard-body .ai-health-card.panel-card {
  grid-template-columns: minmax(420px, 1.05fr) minmax(320px, 0.72fr);
  align-items: start;
  min-height: 0;
  margin: 0 0 42px;
  padding: 30px;
  overflow: visible;
  border-color: rgba(155, 225, 93, 0.24);
  background:
    radial-gradient(circle at 12% 8%, rgba(155, 225, 93, 0.24), transparent 34%),
    radial-gradient(circle at 96% 12%, rgba(246, 169, 0, 0.14), transparent 30%),
    linear-gradient(135deg, #06130c 0%, #0d2918 56%, #06160d 100%) !important;
}

.dashboard-body .ai-health-card.panel-card h2,
.dashboard-body .ai-health-card.panel-card strong,
.dashboard-body .ai-health-card.panel-card .ai-health-status strong,
.dashboard-body .ai-health-card.panel-card .ai-health-meta strong,
.dashboard-body .ai-health-card.panel-card .ai-health-metrics strong {
  color: #fff7d6;
}

.dashboard-body .ai-health-card.panel-card p,
.dashboard-body .ai-health-card.panel-card small,
.dashboard-body .ai-health-card.panel-card .ai-health-status small,
.dashboard-body .ai-health-card.panel-card .ai-health-metrics small {
  color: rgba(231, 246, 212, 0.82);
}

.dashboard-body .ai-health-card.panel-card .ai-health-copy {
  min-width: 0;
}

.dashboard-body .ai-health-card.panel-card .ai-health-console,
.dashboard-body .ai-health-card.panel-card .ai-health-status {
  background: rgba(2, 14, 8, 0.72);
  border-color: rgba(216, 249, 154, 0.18);
}

.dashboard-body .ai-health-card.panel-card .ai-health-metrics div,
.dashboard-body .ai-health-card.panel-card .ai-health-meta {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(216, 249, 154, 0.14);
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(231, 246, 212, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.dashboard-body .stat-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(232,246,235,0.92));
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -46px;
  top: -46px;
  border-radius: 50%;
  background: rgba(88, 185, 71, 0.14);
}

.stat-orb {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #58b947;
  box-shadow: 0 0 0 8px rgba(88, 185, 71, 0.16);
}

.stat-card-gold .stat-orb,
.stat-card-gold::after {
  background: rgba(246, 169, 0, 0.22);
}

.stat-card-deep {
  background: linear-gradient(145deg, #0e2114, #183d22) !important;
}

.stat-card-deep .stat-label,
.stat-card-deep .stat-value,
.stat-card-deep .stat-detail {
  color: #fff7d6;
}

.stat-detail {
  display: block;
  margin-top: 10px;
  color: #58645b;
  font-size: 13px;
  font-weight: 800;
}

.insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 24px;
  margin-bottom: 24px;
}

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

.panel-card {
  border-color: rgba(231, 246, 212, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.panel-header h2 {
  color: #0e2114;
  letter-spacing: -0.5px;
}

.panel-header.compact {
  margin-bottom: 18px;
}

.panel-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(88, 185, 71, 0.12);
  color: #174d1b;
  font-size: 12px;
  font-weight: 900;
}

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

.line-chart-wrap {
  min-height: 284px;
}

.line-chart {
  width: 100%;
  height: 260px;
  display: block;
}

.chart-axis {
  stroke: rgba(14, 33, 20, 0.16);
  stroke-width: 2;
}

.line-chart-area {
  fill: url(#registrationArea);
}

.line-chart-line {
  fill: none;
  stroke: #1f8f37;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-dot {
  fill: #fff7d6;
  stroke: #1f8f37;
  stroke-width: 4;
}

.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #6f7c72;
  font-size: 12px;
  font-weight: 800;
}

.distribution-list,
.funnel-list {
  display: grid;
  gap: 16px;
}

.distribution-head,
.funnel-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #0e2114;
}

.distribution-head span,
.funnel-step-head span {
  color: #405244;
  font-weight: 800;
}

.distribution-head strong,
.funnel-step-head strong {
  font-size: 18px;
}

.distribution-track,
.funnel-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efe8;
}

.distribution-track span,
.funnel-track span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f8f37, #9be15d);
}

.distribution-row-gold .distribution-track span {
  background: linear-gradient(90deg, #d28c00, #ffd76b);
}

.distribution-row-deep .distribution-track span {
  background: linear-gradient(90deg, #102f1a, #58b947);
}

.distribution-row small,
.funnel-step small {
  display: block;
  margin-top: 6px;
  color: #748077;
  font-size: 12px;
  font-weight: 800;
}

.funnel-step {
  padding: 14px;
  border: 1px solid #e2eadf;
  border-radius: 18px;
  background: #f7fbf6;
}

.dashboard-table-modern th {
  color: #667268;
}

.dashboard-table-modern td {
  color: #142319;
}

.dashboard-table-modern tbody tr:hover {
  background: rgba(88, 185, 71, 0.06);
}

.client-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.client-cell span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0e2114, #58b947);
  color: #fff7d6;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-cell strong {
  color: #0e2114;
}

.status-pill-warning {
  background: rgba(246, 169, 0, 0.15);
  color: #8a5c00;
}

.status-pill-premium {
  background: linear-gradient(135deg, rgba(246, 169, 0, 0.28), rgba(216, 249, 154, 0.45));
  color: #4d3300;
  box-shadow: inset 0 0 0 1px rgba(138, 92, 0, 0.12);
}

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

.leaderboard-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: #f7fbf6;
  border: 1px solid #e2eadf;
}

.leaderboard-rank {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #07130d;
  background: #d8f99a;
  font-weight: 900;
}

.leaderboard-item strong {
  color: #0e2114;
}

.leaderboard-item small {
  display: block;
  margin-top: 4px;
  color: #728073;
  font-weight: 700;
}

.leaderboard-item b {
  color: #1f8f37;
}

.leaderboard-empty {
  margin: 28px 0;
}

.filter-panel {
  padding: 18px;
}

.client-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) repeat(4, minmax(150px, 1fr)) auto;
  gap: 14px;
  align-items: end;
}

.client-filters label {
  margin: 0;
}

.client-filters label span {
  display: block;
  margin-bottom: 8px;
  color: #405244;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.client-filters input,
.client-filters select {
  width: 100%;
  height: 48px;
  border: 1px solid #dbe6dc;
  border-radius: 15px;
  background: #f7fbf6;
  color: #0e2114;
  padding: 0 14px;
  font: inherit;
  font-weight: 700;
  outline: none;
}

.client-filters input:focus,
.client-filters select:focus {
  border-color: #58b947;
  box-shadow: 0 0 0 4px rgba(88, 185, 71, 0.12);
}

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

.filter-actions .dashboard-link,
.filter-actions .dashboard-ghost {
  border: none;
  min-height: 48px;
  white-space: nowrap;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 22px;
}

.pagination-link,
.pagination-current {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.pagination-link {
  color: #07130d;
  background: #d8f99a;
  text-decoration: none;
}

.pagination-current {
  color: #405244;
  background: #f0f6ef;
}

.pagination-disabled {
  color: #9aa69c;
  background: #edf2ec;
}

.table-action-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #07130d;
  background: #d8f99a;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-message-stack {
  margin-bottom: 18px;
}

.client-detail-page {
  display: grid;
  gap: 34px;
}

.client-detail-page .client-detail-hero,
.client-detail-page .stats-grid,
.client-detail-page .client-profile-grid,
.client-detail-page .insight-grid,
.client-detail-page .panel-card-spaced {
  margin-top: 0;
  margin-bottom: 0;
}

.client-detail-page .stats-grid,
.client-detail-page .insight-grid {
  gap: 30px;
}

.client-detail-page .panel-card {
  padding: 30px;
}

.client-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  gap: 34px;
  margin-bottom: 24px;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 38px;
  background:
    radial-gradient(circle at 85% 10%, rgba(246, 169, 0, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 247, 214, 0.1), rgba(88, 185, 71, 0.08)),
    rgba(12, 29, 17, 0.86);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.client-hero-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.client-detail-hero .dashboard-title {
  max-width: 980px;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.client-detail-hero .dashboard-subtitle {
  max-width: 860px;
  overflow-wrap: anywhere;
}

.back-link {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 4px;
  color: #d8f99a;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.client-identity-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  padding: 18px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 28px;
  background: rgba(255, 247, 214, 0.08);
}

.client-identity-card div {
  min-width: 0;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}

.client-identity-card span {
  display: block;
  margin-bottom: 8px;
  color: #9be15d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.client-identity-card strong {
  display: block;
  color: #fff7d6;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.client-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.client-action-card {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 26px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 30px;
  background: rgba(5, 16, 9, 0.62);
}

.client-action-card h2 {
  margin: -8px 0 0;
  color: #fff7d6;
  font-size: 26px;
}

.client-action-card form {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.client-action-card small {
  color: #b8c8b9;
  line-height: 1.5;
}

.action-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.client-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0 0 30px;
  align-items: start;
}

.detail-card {
  min-height: 0;
  height: auto;
  align-self: start;
  padding: 30px;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #e6eee5;
}

.detail-list dt {
  color: #6d7a70;
  opacity: 1;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-list dd {
  margin: 0;
  color: #0e2114;
  opacity: 1;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.route-map-card {
  overflow: hidden;
}

.route-map-wrap {
  padding: 12px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(88, 185, 71, 0.18), transparent 28%),
    linear-gradient(145deg, #07130d, #102f1a);
}

.route-map-svg {
  width: 100%;
  display: block;
  border-radius: 24px;
}

.route-map-bg {
  fill: rgba(255, 255, 255, 0.035);
  stroke: rgba(216, 249, 154, 0.18);
}

.route-map-path {
  fill: none;
  stroke: url(#routeStroke);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(88, 185, 71, 0.26));
}

.route-map-dot {
  fill: rgba(255, 247, 214, 0.85);
}

.route-map-start {
  fill: #d8f99a;
  stroke: #07130d;
  stroke-width: 4;
}

.route-map-end {
  fill: #f6a900;
  stroke: #07130d;
  stroke-width: 4;
}

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

.route-meta-grid span {
  padding: 12px;
  border-radius: 16px;
  color: #405244;
  background: #f3f8f2;
  font-size: 12px;
  font-weight: 800;
}

.map-placeholder {
  min-height: 320px;
  justify-content: center;
  color: #102218;
  text-align: center;
}

.map-placeholder strong {
  color: #102218;
}

.map-placeholder p {
  max-width: 520px;
  color: #637066;
  font-weight: 800;
}

.legal-body {
  min-height: 100vh;
  color: #15251b;
  background:
    radial-gradient(circle at 10% 4%, rgba(88, 185, 71, 0.32), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(246, 169, 0, 0.22), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(7, 19, 13, 0.14), transparent 34%),
    linear-gradient(145deg, #f8fbf5 0%, #eaf6e6 48%, #fff2c8 100%);
}

.legal-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(14, 33, 20, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 33, 20, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 78%);
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 64px;
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding: 14px 18px;
  border: 1px solid rgba(14, 33, 20, 0.08);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(239,249,235,0.84));
  box-shadow: 0 18px 50px rgba(14, 33, 20, 0.08);
  backdrop-filter: blur(16px);
}

.legal-brand img {
  width: 146px;
  display: block;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.legal-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: #174d1b;
  background: rgba(88, 185, 71, 0.1);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.legal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 26px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(231, 246, 212, 0.16);
  border-radius: 38px;
  color: #fff7d6;
  background:
    radial-gradient(circle at 78% 10%, rgba(246, 169, 0, 0.3), transparent 30%),
    radial-gradient(circle at 20% 20%, rgba(88, 185, 71, 0.28), transparent 34%),
    linear-gradient(135deg, #07130d 0%, #13351d 48%, #1f4f29 100%);
  box-shadow: 0 28px 70px rgba(14, 33, 20, 0.22);
}

.legal-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 249, 154, 0.18), transparent 64%);
}

.legal-hero-copy {
  position: relative;
  z-index: 1;
}

.legal-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -2.8px;
}

.legal-hero-copy > p:last-of-type {
  margin: 14px 0 0;
  max-width: 720px;
  color: #cfe8c7;
  font-weight: 800;
  line-height: 1.7;
}

.legal-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.legal-hero-badges span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(216, 249, 154, 0.18);
  border-radius: 999px;
  color: #07130d;
  background: linear-gradient(135deg, #d8f99a, #58b947);
  font-size: 12px;
  font-weight: 900;
}

.legal-hero-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 300px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 8%, rgba(88, 185, 71, 0.28), transparent 38%),
    rgba(255, 255, 255, 0.07);
}

.legal-hero-card img {
  position: absolute;
  width: 250px;
  right: -32px;
  bottom: 80px;
  filter: drop-shadow(0 22px 20px rgba(0,0,0,0.32));
}

.legal-hero-card div {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 20px;
  background: rgba(5, 16, 9, 0.62);
  backdrop-filter: blur(8px);
}

.legal-hero-card strong {
  display: block;
  color: #fff7d6;
  font-size: 18px;
}

.legal-hero-card p {
  margin: 8px 0 0;
  color: #cfe8c7;
  line-height: 1.5;
}

.legal-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.legal-side-card {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(14, 33, 20, 0.08);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92), rgba(239,249,235,0.9));
  box-shadow: 0 24px 60px rgba(14, 33, 20, 0.1);
}

.legal-side-card a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  color: #173f20;
  background: rgba(88, 185, 71, 0.1);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.legal-side-card a:hover {
  background: #d8f99a;
}

.legal-side-note {
  margin-top: 10px;
  padding: 16px;
  border-radius: 20px;
  color: #fff7d6;
  background: linear-gradient(135deg, #0e2114, #1f4f29);
}

.legal-side-note strong,
.legal-side-note span {
  display: block;
}

.legal-side-note span {
  margin-top: 6px;
  color: #d8f99a;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.legal-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid rgba(14, 33, 20, 0.08);
  border-radius: 36px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,253,248,0.96));
  box-shadow: 0 26px 70px rgba(14, 33, 20, 0.12);
}

.legal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, #58b947, #d8f99a, #f6a900);
}

.legal-card h2 {
  position: relative;
  margin: 42px 0 12px;
  padding-left: 18px;
  color: #0e2114;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.8px;
}

.legal-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 24px;
  border-radius: 999px;
  background: linear-gradient(180deg, #58b947, #d8f99a);
}

.legal-card p,
.legal-card li {
  color: #405244;
  font-size: 17px;
  line-height: 1.8;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.legal-card li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border: 1px solid #e2eadf;
  border-radius: 18px;
  background: #f7fbf6;
}

.legal-card li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #58b947;
  box-shadow: 0 0 0 5px rgba(88, 185, 71, 0.12);
}

.legal-card a {
  color: #1f8f37;
  font-weight: 900;
}

.legal-lead {
  margin-top: 0;
  padding: 24px;
  border: 1px solid #cfe8c7;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(216, 249, 154, 0.28), transparent 32%),
    #eef9e9;
  color: #173f20 !important;
  font-size: 19px !important;
  line-height: 1.75 !important;
  font-weight: 800;
}

.legal-callout {
  margin-top: 38px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0e2114, #1f4f29);
  color: #fff7d6;
  box-shadow: 0 24px 50px rgba(14, 33, 20, 0.18);
}

.legal-callout strong {
  display: block;
  margin-bottom: 8px;
  color: #d8f99a;
}

.legal-callout p {
  margin: 0;
  color: #fff7d6;
}

.legal-fineprint-panel {
  margin-top: 44px;
  padding: 24px 26px;
  border: 1px solid rgba(64, 82, 68, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(247, 251, 246, 0.86), rgba(239, 246, 237, 0.72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.legal-fineprint-panel strong {
  display: block;
  margin-bottom: 12px;
  color: #173f20;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-fineprint-panel p {
  margin: 0;
  color: #59685d;
  font-size: 13px;
  line-height: 1.72;
}

.legal-fineprint-panel p + p {
  margin-top: 14px;
}

.legal-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding: 20px 24px;
  border-radius: 24px;
  color: #405244;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 42px rgba(14, 33, 20, 0.08);
}

.legal-footer a {
  color: #1f8f37;
  font-weight: 900;
  text-decoration: none;
}

.community-admin-page {
  display: block;
}

.community-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  margin-bottom: 24px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid rgba(155, 225, 93, 0.24);
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 18%, rgba(246, 169, 0, 0.2), transparent 28%),
    radial-gradient(circle at 12% 0%, rgba(88, 185, 71, 0.24), transparent 32%),
    linear-gradient(135deg, rgba(8, 38, 19, 0.94), rgba(4, 18, 10, 0.92));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.community-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0%, rgba(216, 249, 154, 0.1) 46%, transparent 76%);
  opacity: 0.8;
}

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

.community-season-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.community-season-meta span,
.community-season-meta strong {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.community-season-meta span {
  background: rgba(255, 255, 255, 0.08);
  color: #e7f6d4;
  border: 1px solid rgba(231, 246, 212, 0.12);
}

.community-season-meta strong {
  color: #07130d;
  background: linear-gradient(135deg, #58b947, #d8f99a);
  box-shadow: 0 12px 24px rgba(88, 185, 71, 0.22);
}

.community-command-card {
  align-self: stretch;
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(216, 249, 154, 0.2);
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 12%, rgba(216, 249, 154, 0.2), transparent 34%),
    rgba(255, 255, 255, 0.08);
}

.community-command-card strong {
  color: #fff7d6;
  font-size: 22px;
}

.community-command-card p {
  margin: 0;
  color: rgba(231, 246, 212, 0.72);
  line-height: 1.55;
}

.community-crown {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 22px;
  background: rgba(155, 225, 93, 0.16);
  color: #d8f99a;
  font-size: 30px;
  box-shadow: inset 0 0 0 1px rgba(216, 249, 154, 0.18);
}

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

.community-actions button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.founder-admin-action {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.2), transparent 38%),
    rgba(15, 51, 31, 0.72);
}

.founder-admin-action p,
.founder-admin-action small {
  margin: 0;
  color: rgba(255, 247, 214, 0.86);
}

.community-filter-panel {
  margin-bottom: 24px;
}

.community-filter-form {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.community-filter-form label {
  display: grid;
  gap: 8px;
  margin: 0;
  color: #0e2114;
}

.community-filter-form label span {
  color: #174d1b;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-filter-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #d6e4d7;
  border-radius: 18px;
  background: #fff;
  color: #0e2114;
  font: inherit;
  font-weight: 800;
}

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

.community-growth-grid {
  align-items: start;
}

.community-wide-card {
  grid-column: 1 / -1;
}

.community-leaderboard-card {
  min-width: 0;
  min-height: 100%;
}

.community-leaderboard {
  display: grid;
  gap: 12px;
}

.community-rank-row {
  display: grid;
  grid-template-columns: 54px 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(14, 33, 20, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(248, 251, 243, 0.98), rgba(235, 247, 231, 0.94));
}

.community-rank-row-podium {
  border-color: rgba(155, 225, 93, 0.4);
  background:
    radial-gradient(circle at 0% 0%, rgba(216, 249, 154, 0.34), transparent 32%),
    linear-gradient(135deg, #fafff1, #e7f9de);
  box-shadow: 0 14px 34px rgba(88, 185, 71, 0.14);
}

.community-rank-number {
  display: grid;
  place-items: center;
  min-width: 46px;
  min-height: 46px;
  border-radius: 18px;
  background: #102f1a;
  color: #d8f99a;
  font-size: 20px;
  font-weight: 950;
}

.community-rank-row-podium .community-rank-number {
  color: #07130d;
  background: linear-gradient(135deg, #f6a900, #d8f99a);
}

.community-runner-avatar {
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 3px solid #9be15d;
  border-radius: 50%;
  background: linear-gradient(135deg, #173f20, #58b947);
  box-shadow: 0 8px 18px rgba(14, 33, 20, 0.18);
}

.community-runner-avatar img,
.community-runner-avatar span {
  width: 100%;
  height: 100%;
}

.community-runner-avatar img {
  display: block;
  object-fit: cover;
}

.community-runner-avatar span {
  display: grid;
  place-items: center;
  color: #fff7d6;
  font-size: 22px;
  font-weight: 950;
}

.community-runner-main {
  min-width: 0;
}

.community-runner-main a {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #0e2114;
  font-size: 17px;
  font-weight: 950;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
}

.founder-mini-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd166, #8f5e00);
  color: #10230f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.community-runner-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.community-runner-main small {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #5c6a5f;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-runner-score {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.community-runner-score strong {
  color: #174d1b;
  font-size: 18px;
  white-space: nowrap;
}

.community-runner-score small {
  font-weight: 950;
}

.rank-up {
  color: #1f8f37;
}

.rank-down {
  color: #d83b31;
}

.rank-same {
  color: #7c887f;
}

.community-empty-state {
  padding: 26px;
  border: 1px dashed #bfd8bf;
  border-radius: 24px;
  color: #516456;
  font-weight: 800;
  text-align: center;
  background: rgba(248, 251, 243, 0.8);
}

.community-transactions-table td,
.community-transactions-table th {
  white-space: nowrap;
}

.community-funnel-table,
.community-actions-table {
  min-width: 1080px;
}

.community-funnel-table td,
.community-actions-table td {
  vertical-align: middle;
}

.community-funnel-table small,
.community-actions-table small {
  color: #667268;
  font-weight: 800;
}

.code-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(88, 185, 71, 0.24);
  border-radius: 12px;
  background: #edf9e6;
  color: #173f20;
  font-size: 14px;
  letter-spacing: 0.06em;
}

.community-rules-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(155, 225, 93, 0.22);
  border-radius: 32px;
  background:
    radial-gradient(circle at 98% 0%, rgba(246, 169, 0, 0.2), transparent 32%),
    linear-gradient(135deg, #07130d, #173f20);
  color: #fff7d6;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.community-rules-card h2 {
  margin: 0 0 10px;
  color: #fff7d6;
}

.community-rules-card p {
  margin: 0;
  color: rgba(231, 246, 212, 0.78);
  line-height: 1.65;
}

.community-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.community-rule-grid span {
  display: grid;
  gap: 6px;
  min-width: 132px;
  padding: 16px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(231, 246, 212, 0.76);
  font-size: 13px;
  font-weight: 800;
}

.community-rule-grid strong {
  color: #d8f99a;
  font-size: 24px;
}

@media (max-width: 1280px) {
  .stats-grid-premium {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .filter-actions {
    grid-column: 1 / -1;
  }

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

@media (max-width: 1080px) {
  .hero-dashboard,
  .clients-hero,
  .community-hero,
  .client-detail-hero,
  .legal-hero,
  .legal-layout,
  .insight-grid,
  .insight-grid-three,
  .ai-health-card {
    grid-template-columns: 1fr;
  }

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

  .legal-side-card {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-side-card .panel-kicker,
  .legal-side-note {
    grid-column: 1 / -1;
  }

  .hero-score-card {
    min-height: 260px;
  }

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

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

@media (max-width: 760px) {
  .dashboard-shell-wide {
    padding: 22px 14px 42px;
  }

  .hero-dashboard,
  .clients-hero,
  .community-hero {
    padding: 24px;
    border-radius: 26px;
  }

  .dashboard-title {
    font-size: 38px;
    letter-spacing: -1.4px;
  }

  .stats-grid-premium,
  .ai-health-metrics,
  .ai-health-costs,
  .client-stats-grid,
  .client-filters,
  .client-identity-card,
  .client-profile-grid,
  .route-meta-grid {
    grid-template-columns: 1fr;
  }

  .community-filter-form,
  .community-rule-grid {
    grid-template-columns: 1fr;
  }

  .community-rank-row {
    grid-template-columns: 44px 48px minmax(0, 1fr);
  }

  .community-runner-score {
    grid-column: 3;
    justify-items: start;
  }

  .community-rank-number {
    min-width: 42px;
    min-height: 42px;
  }

  .community-runner-avatar {
    width: 48px;
    height: 48px;
  }

  .admin-nav-actions,
  .hero-actions,
  .filter-actions,
  .legal-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-pill,
  .dashboard-link,
  .dashboard-ghost,
  .legal-nav a {
    width: 100%;
  }

  .client-detail-hero,
  .legal-hero,
  .legal-card {
    border-radius: 26px;
    padding: 24px;
  }

  .legal-hero-card {
    min-height: 240px;
  }

  .legal-hero-card img {
    width: 210px;
    bottom: 72px;
  }

  .legal-side-card,
  .legal-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .hero-score-card img {
    width: 190px;
  }

  .pagination-bar {
    flex-direction: column;
  }
}

/* Public landing page */
.landing-body {
  min-height: 100vh;
  color: #f7ffe9;
  background:
    radial-gradient(circle at 12% 8%, rgba(88, 185, 71, 0.32), transparent 28%),
    radial-gradient(circle at 86% 0%, rgba(246, 169, 0, 0.24), transparent 24%),
    linear-gradient(150deg, #06100b 0%, #0d1f14 45%, #07130d 100%);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.landing-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 82%);
}

.landing-nav,
.landing-hero,
.landing-section,
.landing-footer {
  position: relative;
  z-index: 1;
}

.landing-nav {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 30px;
  background: rgba(6, 17, 10, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.landing-brand {
  display: inline-flex;
  align-items: center;
}

.landing-brand img {
  width: 164px;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.landing-menu,
.landing-nav-actions,
.landing-hero-actions,
.store-buttons,
.coach-tags,
.landing-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-menu a,
.landing-login,
.landing-download-mini,
.landing-footer a {
  color: #e7f6d4;
  text-decoration: none;
  font-weight: 800;
}

.landing-menu a {
  padding: 10px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.landing-menu a:hover {
  color: #07130d;
  background: #d8f99a;
  transform: translateY(-2px);
}

.landing-login,
.landing-download-mini {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(231, 246, 212, 0.14);
}

.landing-download-mini {
  color: #07130d;
  border-color: transparent;
  background: linear-gradient(135deg, #58b947, #d8f99a);
  box-shadow: 0 14px 30px rgba(88, 185, 71, 0.22);
}

.landing-hero {
  width: min(1180px, calc(100% - 36px));
  min-height: 760px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  align-items: center;
  gap: 34px;
  padding: 72px 54px 60px;
  overflow: hidden;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255, 247, 214, 0.08), rgba(88, 185, 71, 0.09)),
    rgba(10, 27, 14, 0.76);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.34);
}

.sport-orbit {
  position: absolute;
  border: 1px solid rgba(216, 249, 154, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.orbit-one {
  width: 520px;
  height: 520px;
  right: -170px;
  top: -170px;
  background: radial-gradient(circle, rgba(246, 169, 0, 0.18), transparent 64%);
}

.orbit-two {
  width: 260px;
  height: 260px;
  left: -82px;
  bottom: 60px;
  background: radial-gradient(circle, rgba(88, 185, 71, 0.16), transparent 68%);
}

.landing-kicker {
  margin: 0 0 14px;
  color: #9be15d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1,
.landing-section h2,
.final-cta h2 {
  margin: 0;
  color: #fff7d6;
  letter-spacing: -0.06em;
}

.landing-hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 7vw, 112px);
  line-height: 0.88;
}

.landing-lead {
  max-width: 680px;
  margin: 28px 0 0;
  color: #c8d8c8;
  font-size: 20px;
  line-height: 1.75;
}

.landing-hero-actions {
  margin-top: 34px;
}

.landing-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.landing-btn:hover,
.store-button:hover,
.benefit-card:hover,
.app-preview-card:hover,
.testimonial-grid article:hover,
.feature-pill-card:hover {
  transform: translateY(-4px);
}

.landing-btn-primary {
  color: #07130d;
  background: linear-gradient(135deg, #58b947, #d8f99a);
  box-shadow: 0 18px 36px rgba(88, 185, 71, 0.24);
}

.landing-btn-secondary {
  color: #e7f6d4;
  border: 1px solid rgba(231, 246, 212, 0.18);
  background: rgba(255, 255, 255, 0.08);
}

.landing-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 34px;
}

.landing-proof span {
  padding: 16px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 20px;
  color: #c8d8c8;
  background: rgba(255, 255, 255, 0.07);
}

.landing-proof strong {
  display: block;
  color: #fff7d6;
  font-size: 24px;
}

.landing-hero-visual {
  position: relative;
  min-height: 620px;
}

.phone-mockup {
  position: relative;
  overflow: hidden;
  border: 10px solid #07130d;
  border-radius: 42px;
  background:
    radial-gradient(circle at 35% 0%, rgba(216, 249, 154, 0.34), transparent 34%),
    linear-gradient(180deg, #f5fff1, #dfece0);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.38);
}

.hero-phone {
  width: 310px;
  min-height: 610px;
  margin-left: auto;
  transform: rotate(4deg);
}

.phone-speaker {
  width: 92px;
  height: 8px;
  margin: 18px auto 16px;
  border-radius: 999px;
  background: rgba(7, 19, 13, 0.18);
}

.mock-status,
.route-card,
.mock-stats,
.coach-bubble {
  width: calc(100% - 34px);
  margin: 0 auto 14px;
  border-radius: 24px;
}

.mock-status {
  padding: 18px;
  color: #07130d;
  background: linear-gradient(135deg, #58b947, #d8f99a);
}

.mock-status span,
.coach-bubble span,
.premium-price span {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-status strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.route-card {
  position: relative;
  min-height: 210px;
  background:
    linear-gradient(135deg, rgba(7, 19, 13, 0.04), rgba(7, 19, 13, 0.12)),
    repeating-linear-gradient(45deg, rgba(7, 19, 13, 0.04) 0 8px, transparent 8px 18px);
}

.route-line {
  position: absolute;
  inset: 48px 42px 52px 46px;
  border: 6px solid #1f8f37;
  border-left-color: transparent;
  border-bottom-color: #f6a900;
  border-radius: 42% 58% 48% 52%;
  transform: rotate(-18deg);
}

.route-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #f6a900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

.dot-a {
  left: 48px;
  top: 72px;
}

.dot-b {
  right: 62px;
  top: 58px;
  background: #1f8f37;
}

.dot-c {
  right: 82px;
  bottom: 52px;
}

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

.mock-stats div {
  padding: 14px 8px;
  border-radius: 18px;
  text-align: center;
  color: #07130d;
  background: #fff;
}

.mock-stats strong {
  display: block;
  font-size: 22px;
}

.mock-stats span {
  color: #667467;
  font-size: 12px;
  font-weight: 800;
}

.coach-bubble {
  padding: 18px;
  color: #fff7d6;
  background: linear-gradient(145deg, #0e2114, #183d22);
}

.coach-bubble p {
  margin: 8px 0 0;
  color: #d8f99a;
  font-weight: 800;
}

.hero-mascot {
  position: absolute;
  left: 0;
  bottom: -20px;
  width: min(360px, 58%);
  filter: drop-shadow(0 28px 28px rgba(0, 0, 0, 0.35));
  animation: mascotFloat 4.8s ease-in-out infinite;
}

.landing-section {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 0;
}

.download-section,
.coach-card,
.premium-section,
.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(231, 246, 212, 0.14);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.download-section h2,
.section-heading h2,
.coach-card h2,
.premium-section h2,
.final-cta h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.98;
}

.download-section p,
.section-heading p,
.coach-card p,
.premium-section p,
.final-cta p,
.landing-footer p,
.benefit-card p,
.app-preview-card p,
.faq-grid p {
  color: #c8d8c8;
  line-height: 1.72;
}

.store-button {
  min-width: 210px;
  min-height: 72px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 22px;
  color: #07130d;
  text-decoration: none;
  background: #fff7d6;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button svg {
  width: 34px;
  height: 34px;
  fill: #07130d;
  flex: 0 0 auto;
}

.store-button span {
  display: grid;
  gap: 1px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.store-button small {
  color: #58645b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.play-blue {
  fill: #4285f4;
}

.play-green {
  fill: #34a853;
}

.play-yellow {
  fill: #fbbc05;
}

.play-red {
  fill: #ea4335;
}

.section-heading {
  max-width: 860px;
  margin: 0 auto 32px;
  text-align: center;
}

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

.benefit-card,
.feature-pill-card,
.app-preview-card,
.testimonial-grid article,
.faq-grid details {
  border: 1px solid rgba(231, 246, 212, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.16);
}

.benefit-card {
  min-height: 220px;
  padding: 22px;
  border-radius: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.benefit-card span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 16px;
  color: #07130d;
  background: linear-gradient(135deg, #58b947, #d8f99a);
  font-weight: 900;
}

.benefit-card h3,
.app-preview-card h3 {
  margin: 0 0 10px;
  color: #0e2114;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.benefit-card p,
.app-preview-card p,
.faq-grid p {
  color: #58645b;
}

.coach-section {
  margin-top: 48px;
}

.coach-card {
  grid-template-columns: 340px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 50%, rgba(246, 169, 0, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(13, 32, 20, 0.96), rgba(20, 66, 32, 0.84));
}

.coach-card img {
  width: 100%;
  max-width: 330px;
  justify-self: center;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.35));
}

.coach-tags span,
.premium-list span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: #07130d;
  background: #d8f99a;
  font-size: 13px;
  font-weight: 900;
}

.feature-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.feature-pill-card {
  min-height: 86px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  border-radius: 24px;
  color: #0e2114;
  transition: transform 0.2s ease;
}

.feature-pill-card span {
  color: #1f8f37;
  font-size: 22px;
}

.feature-pill-card strong {
  font-size: 17px;
}

.premium-section {
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1fr);
  align-items: stretch;
  margin-top: 48px;
  background:
    radial-gradient(circle at 92% 12%, rgba(246, 169, 0, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(255, 247, 214, 0.1), rgba(88, 185, 71, 0.08)),
    rgba(8, 19, 12, 0.86);
}

.premium-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 22px;
}

.premium-copy small {
  color: #aebfac;
  line-height: 1.6;
}

.premium-panel {
  padding: 26px;
  border-radius: 30px;
  color: #07130d;
  background: linear-gradient(180deg, #fff7d6, #edf8db);
  box-shadow: inset 0 0 0 1px rgba(7, 19, 13, 0.08);
}

.premium-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(7, 19, 13, 0.12);
}

.premium-price strong {
  display: block;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.premium-price small {
  color: #58645b;
  font-weight: 800;
}

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

.premium-list span {
  color: #0e2114;
  background: rgba(88, 185, 71, 0.16);
}

.mockup-row,
.testimonial-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-preview-card {
  padding: 24px;
  border-radius: 30px;
  transition: transform 0.2s ease;
}

.mini-phone {
  position: relative;
  min-height: 330px;
  margin-bottom: 22px;
  padding: 24px;
  overflow: hidden;
  border-radius: 34px;
  color: #fff7d6;
  background: #0e2114;
}

.mini-phone::before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 26px;
}

.mini-phone span,
.mini-phone strong {
  position: relative;
  z-index: 1;
  display: block;
}

.mini-phone span {
  color: #d8f99a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-phone strong {
  max-width: 260px;
  margin-top: 20px;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.mini-phone i {
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: rgba(216, 249, 154, 0.22);
}

.mini-phone-gold {
  background: linear-gradient(145deg, #7a4f00, #f6a900);
}

.mini-phone-deep {
  background: linear-gradient(145deg, #07130d, #1f8f37);
}

.testimonial-grid article {
  padding: 26px;
  border-radius: 28px;
  color: #0e2114;
  transition: transform 0.2s ease;
}

.testimonial-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #174d1b;
  background: rgba(88, 185, 71, 0.12);
  font-size: 12px;
  font-weight: 900;
}

.testimonial-grid p {
  margin: 0 0 18px;
  color: #27382a;
  font-size: 19px;
  line-height: 1.6;
}

.testimonial-grid strong {
  color: #1f8f37;
}

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

.faq-grid details {
  padding: 22px;
  border-radius: 24px;
  color: #0e2114;
}

.faq-grid summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.faq-grid summary::marker {
  color: #1f8f37;
}

.final-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 48px auto 0;
  grid-template-columns: 260px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 50%, rgba(246, 169, 0, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(88, 185, 71, 0.18), rgba(255, 247, 214, 0.09)),
    rgba(10, 27, 14, 0.9);
}

.final-cta img {
  width: 260px;
  filter: drop-shadow(0 28px 26px rgba(0, 0, 0, 0.32));
}

.landing-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(231, 246, 212, 0.12);
  border-radius: 30px;
  background: rgba(6, 17, 10, 0.72);
}

.landing-footer img {
  width: 160px;
}

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

.landing-socials {
  justify-content: flex-end;
}

.landing-socials a {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.landing-footer small {
  grid-column: 1 / -1;
  color: #8ea08d;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes mascotFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 1080px) {
  .landing-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-menu,
  .landing-nav-actions {
    width: 100%;
  }

  .landing-hero,
  .premium-section,
  .coach-card,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding: 54px 34px;
  }

  .landing-hero-visual {
    min-height: 600px;
  }

  .hero-phone {
    margin: 0 auto;
  }

  .hero-mascot {
    left: 8%;
  }

  .download-section {
    grid-template-columns: 1fr;
  }

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

  .mockup-row,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .landing-footer {
    grid-template-columns: 1fr;
  }

  .landing-socials {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .landing-nav,
  .landing-hero,
  .landing-section,
  .final-cta,
  .landing-footer {
    width: min(100% - 24px, 1180px);
  }

  .landing-nav {
    border-radius: 24px;
  }

  .landing-brand img {
    width: 138px;
  }

  .landing-menu,
  .landing-nav-actions,
  .landing-hero-actions,
  .store-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .landing-menu a,
  .landing-login,
  .landing-download-mini,
  .landing-btn,
  .store-button {
    width: 100%;
  }

  .landing-hero {
    min-height: auto;
    padding: 38px 22px;
    border-radius: 30px;
  }

  .landing-hero h1 {
    font-size: clamp(48px, 17vw, 72px);
  }

  .landing-lead {
    font-size: 17px;
  }

  .landing-proof {
    grid-template-columns: 1fr;
  }

  .landing-hero-visual {
    min-height: 510px;
  }

  .hero-phone {
    width: min(100%, 290px);
    min-height: 570px;
    transform: none;
  }

  .hero-mascot {
    width: 210px;
    left: -18px;
    bottom: -32px;
  }

  .download-section,
  .coach-card,
  .premium-section,
  .final-cta {
    padding: 24px;
    border-radius: 28px;
  }

  .download-section h2,
  .section-heading h2,
  .coach-card h2,
  .premium-section h2,
  .final-cta h2 {
    font-size: 38px;
  }

  .benefit-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .premium-price {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta {
    text-align: left;
  }

  .final-cta img {
    width: 190px;
  }
}

/* Final admin override: keep the AI health panel readable after all generic card rules. */
.dashboard-body section.panel-card.ai-health-card {
  display: grid !important;
  grid-template-columns: minmax(360px, 1fr) minmax(300px, 0.64fr) !important;
  gap: 24px !important;
  align-items: start !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 48px !important;
  padding: 30px !important;
  overflow: visible !important;
  border: 1px solid rgba(155, 225, 93, 0.28) !important;
  background:
    radial-gradient(circle at 10% 0%, rgba(155, 225, 93, 0.22), transparent 32%),
    radial-gradient(circle at 96% 8%, rgba(246, 169, 0, 0.16), transparent 28%),
    linear-gradient(135deg, #06130c 0%, #0f2d1a 58%, #06150d 100%) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32) !important;
  color: #fff7d6 !important;
}

.dashboard-body section.panel-card.ai-health-card h2,
.dashboard-body section.panel-card.ai-health-card strong {
  color: #fff7d6 !important;
}

.dashboard-body section.panel-card.ai-health-card p,
.dashboard-body section.panel-card.ai-health-card small {
  color: rgba(231, 246, 212, 0.84) !important;
}

.dashboard-body section.panel-card.ai-health-card .panel-kicker,
.dashboard-body section.panel-card.ai-health-card .ai-health-meta span,
.dashboard-body section.panel-card.ai-health-card .ai-health-metrics span,
.dashboard-body section.panel-card.ai-health-card .ai-health-costs span {
  color: #9be15d !important;
}

.dashboard-body section.panel-card.ai-health-card .ai-health-status,
.dashboard-body section.panel-card.ai-health-card .ai-health-console,
.dashboard-body section.panel-card.ai-health-card .ai-health-meta,
.dashboard-body section.panel-card.ai-health-card .ai-health-metrics div,
.dashboard-body section.panel-card.ai-health-card .ai-health-costs div {
  background: rgba(2, 14, 8, 0.72) !important;
  border-color: rgba(216, 249, 154, 0.18) !important;
}

.dashboard-body section.panel-card.ai-health-card .ai-health-button {
  color: #07130d !important;
}

.dashboard-body section.panel-card.ai-health-card .ai-health-costs strong {
  color: #fff7d6 !important;
}

.dashboard-body section.panel-card.ai-health-card .ai-health-costs small,
.dashboard-body section.panel-card.ai-health-card .ai-health-cost-note {
  color: rgba(231, 246, 212, 0.76) !important;
}

@media (max-width: 1080px) {
  .dashboard-body section.panel-card.ai-health-card {
    grid-template-columns: 1fr !important;
  }
}
