﻿/* ═══════════════════════════════════════════════════════════════════════════
   GOALS & PERFORMANCE — UNIFIED REVAMP 2026
   Integrated Goals + Fitness Testing in a modern dark-UI
   Amber accent · gx- prefix
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --gx-accent: 245, 158, 11;
  --gx-accent-light: #fbbf24;
  --gx-accent-dark: #d97706;
  --gx-emerald: 16, 185, 129;
  --gx-indigo: 99, 102, 241;
  --gx-cyan: 6, 182, 212;
  --gx-rose: 244, 63, 94;
  --gx-purple: 168, 85, 247;
  --gx-surface: rgba(255,255,255,.04);
  --gx-surface-2: rgba(255,255,255,.07);
  --gx-surface-3: rgba(255,255,255,.10);
  --gx-border: rgba(255,255,255,.08);
  --gx-border-focus: rgba(245,158,11,.35);
  --gx-text: #f1f5f9;
  --gx-text-dim: #94a3b8;
  --gx-radius: 14px;
  --gx-radius-sm: 10px;
  --gx-radius-xs: 6px;
  --gx-transition: .22s cubic-bezier(.4,0,.2,1);
}

/* ── Suppression ─────────────────────────────────────────────────────── */
.page[data-page="goals"] {
  padding-bottom: 24px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(var(--gx-accent), .12), transparent 24%),
    radial-gradient(circle at 100% 12%, rgba(var(--gx-cyan), .09), transparent 20%),
    linear-gradient(180deg, rgba(7, 10, 16, .98), rgba(10, 14, 22, .98));
}

[data-page="goals"] .revamp-hero,
[data-page="goals"] .mega-stats-grid,
[data-page="goals"] .mega-stat-card,
[data-page="goals"] .mega-stat-glow,
[data-page="goals"] .mega-stat-icon,
[data-page="goals"] .mega-stat-value,
[data-page="goals"] .mega-stat-label,
[data-page="goals"] .stats-section-label,
[data-page="goals"] .pro-insights-panel,
[data-page="goals"] .pro-insight-card,
[data-page="goals"] .pro-card-header,
[data-page="goals"] .pro-card-icon,
[data-page="goals"] .pro-card-title,
[data-page="goals"] .pro-badge,
[data-page="goals"] .premium-badge,
[data-page="goals"] .pro-card-body,
[data-page="goals"] .pro-card-text,
[data-page="goals"] .pro-card-lock,
[data-page="goals"] .lock-icon,
[data-page="goals"] .lock-text,
[data-page="goals"] .suggested-goals,
[data-page="goals"] .suggested-goal,
[data-page="goals"] .goal-templates-section,
[data-page="goals"] .goal-templates-grid,
[data-page="goals"] .goal-template-btn:not(.gx-tpl),
[data-page="goals"] .template-icon,
[data-page="goals"] .template-name,
[data-page="goals"] .revamp-toolbar,
[data-page="goals"] .btn-add-new,
[data-page="goals"] .filter-select,
[data-page="goals"] .empty-state-new,
[data-page="goals"] .btn-primary-glow,
[data-page="goals"] .fab-button,
[data-page="goals"] .fab-pulse,
[data-page="goals"] .hero-orb,
[data-page="goals"] .hero-particles,
[data-page="goals"] .hero-bg-effects {
  all: revert !important;
}

/* ── Page layout ─────────────────────────────────────────────────────── */
#goalsContent {
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  gap: 0;
  padding-bottom: 56px;
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── HERO — unified header with gradient accent ────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-hero {
  position: relative;
  padding: 34px 30px 28px;
  margin: 20px 24px 0;
  border-radius: 28px 28px 0 0;
  background:
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02)),
    radial-gradient(circle at top left, rgba(var(--gx-accent), .13), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,.94), rgba(9,13,23,.98));
  border: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
  box-shadow: 0 24px 60px rgba(0,0,0,.26);
  overflow: hidden;
}
.gx-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,.05), transparent 32%, transparent 68%, rgba(255,255,255,.04));
  pointer-events: none;
}
.gx-hero__backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.gx-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: .8;
}
.gx-hero__glow--one {
  width: 220px;
  height: 220px;
  top: -72px;
  left: -54px;
  background: radial-gradient(circle, rgba(var(--gx-accent), .24), transparent 70%);
}
.gx-hero__glow--two {
  width: 240px;
  height: 240px;
  right: -40px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(var(--gx-cyan), .18), transparent 72%);
}
.gx-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 85%);
  opacity: .22;
}
.gx-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .9fr);
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  margin: 0 auto;
}
.gx-hero__copy {
  position: relative;
  z-index: 1;
}
.gx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.74);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
}
.gx-hero__title {
  font-size: clamp(1.9rem, 2vw + 1rem, 2.8rem);
  font-weight: 800;
  color: var(--gx-text);
  letter-spacing: -.04em;
  margin: 0 0 10px;
  max-width: 10ch;
  line-height: .98;
}
.gx-hero__sub {
  max-width: 54ch;
  font-size: .96rem;
  color: var(--gx-text-dim);
  margin: 0;
  line-height: 1.6;
}
.gx-hero__chips {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.gx-hero__chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.78);
  font-size: .76rem;
  font-weight: 600;
}
.gx-hero__spotlight {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.04)),
    rgba(10, 14, 23, .82);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}
.gx-hero__spotlight-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
}
.gx-hero__spotlight-value {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff7ed;
}
.gx-hero__spotlight-copy {
  margin: 0;
  color: rgba(255,255,255,.72);
  font-size: .84rem;
  line-height: 1.55;
}
.gx-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
}
.gx-hero__metric {
  padding: 12px 10px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.05);
}
.gx-hero__metric-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--gx-text);
}
.gx-hero__metric-label {
  display: block;
  margin-top: 4px;
  font-size: .72rem;
  color: rgba(255,255,255,.58);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.gx-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  background: linear-gradient(135deg, rgba(var(--gx-accent), .96), rgba(251,191,36,.92));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  color: #1f1300;
  font-weight: 800;
  font-size: .85rem;
  letter-spacing: .02em;
  cursor: pointer;
  transition: var(--gx-transition);
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(var(--gx-accent), .28);
}
.gx-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(var(--gx-accent), .34);
}
.gx-hero__cta .elite-icon { width: 17px; height: 17px; }
.gx-hero__cta--secondary {
  background: var(--gx-surface);
  border-color: var(--gx-border);
  color: var(--gx-text-dim);
}
.gx-hero__cta--secondary:hover {
  background: var(--gx-surface-2);
  color: var(--gx-text);
  box-shadow: none;
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── PRIMARY TABS — Goals · Fitness · Insights ────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-tabs {
  display: flex;
  gap: 2px;
  padding: 0 24px;
  margin: 0 24px 24px;
  border-radius: 0 0 28px 28px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-top: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  box-shadow: 0 16px 40px rgba(0,0,0,.18);
}
.gx-tabs::-webkit-scrollbar { display: none; }

.gx-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 18px 13px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gx-text-dim);
  cursor: pointer;
  border: none;
  background: none;
  white-space: nowrap;
  transition: color var(--gx-transition);
}
.gx-tab .elite-icon { width: 16px; height: 16px; opacity: .7; }
.gx-tab:hover { color: var(--gx-text); }
.gx-tab.active {
  color: rgba(var(--gx-accent), 1);
}
.gx-tab.active .elite-icon { opacity: 1; }
.gx-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 3px;
  border-radius: 2px 2px 0 0;
  background: rgba(var(--gx-accent),1);
}
.gx-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: .68rem;
  font-weight: 700;
  border-radius: 9px;
  background: rgba(var(--gx-accent),.15);
  color: var(--gx-accent-light);
}

/* Tab panels */
.gx-panel { display: none; flex-direction: column; }
.gx-panel.active { display: flex; }

.gx-overview {
  display: grid;
  grid-template-columns: 1.15fr repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 24px 22px;
}
.gx-overview-card {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03)),
    rgba(10, 14, 23, .72);
  border: 1px solid rgba(255,255,255,.08);
  min-height: 156px;
}
.gx-overview-card::before {
  content: '';
  position: absolute;
  inset: auto -18% -40% auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--gx-accent), .12), transparent 70%);
  pointer-events: none;
}
.gx-overview-card--focus {
  background:
    linear-gradient(135deg, rgba(var(--gx-accent), .18), rgba(255,255,255,.05)),
    rgba(10, 14, 23, .8);
}
.gx-overview-card__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.64);
}
.gx-overview-card__title,
.gx-overview-card__stat {
  margin: 0;
  color: var(--gx-text);
  line-height: 1.08;
}
.gx-overview-card__title {
  font-size: 1.3rem;
  font-weight: 800;
  max-width: 18ch;
}
.gx-overview-card__stat {
  font-size: 2.2rem;
  font-weight: 800;
}
.gx-overview-card__copy {
  margin: 12px 0 0;
  max-width: 34ch;
  color: rgba(255,255,255,.7);
  font-size: .83rem;
  line-height: 1.55;
}

.gx-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px 14px;
}
.gx-section-head--compact {
  padding-bottom: 12px;
}
.gx-section-kicker {
  margin: 0 0 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(var(--gx-accent), 1);
}
.gx-section-heading {
  margin: 0;
  color: var(--gx-text);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.gx-section-copy {
  margin: 6px 0 0;
  color: var(--gx-text-dim);
  font-size: .82rem;
  line-height: 1.5;
  max-width: 56ch;
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── KPI ROW ─────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px 24px;
}
.gx-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius-sm);
  text-align: center;
  transition: var(--gx-transition);
}
.gx-kpi:hover { background: var(--gx-surface-2); border-color: var(--gx-border-focus); transform: translateY(-1px); }
.gx-kpi__icon {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
}
.gx-kpi__icon .elite-icon { width: 18px; height: 18px; }
.gx-kpi--active .gx-kpi__icon { background: rgba(var(--gx-accent),.12); color: var(--gx-accent-light); }
.gx-kpi--done .gx-kpi__icon { background: rgba(var(--gx-emerald),.12); color: rgb(var(--gx-emerald)); }
.gx-kpi--due .gx-kpi__icon { background: rgba(var(--gx-indigo),.12); color: rgb(var(--gx-indigo)); }
.gx-kpi--progress .gx-kpi__icon { background: rgba(var(--gx-cyan),.12); color: rgb(var(--gx-cyan)); }
.gx-kpi--fitness .gx-kpi__icon { background: rgba(var(--gx-purple),.12); color: rgb(var(--gx-purple)); }
.gx-kpi--readiness .gx-kpi__icon { background: rgba(var(--gx-emerald),.12); color: rgb(var(--gx-emerald)); }
.gx-kpi--risk .gx-kpi__icon { background: rgba(var(--gx-rose),.12); color: rgb(var(--gx-rose)); }
.gx-kpi__val {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--gx-text);
  line-height: 1;
}
.gx-kpi__label {
  font-size: .73rem;
  color: var(--gx-text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── GOALS TAB CONTENT ───────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */

/* Pro Insights */
.gx-pro-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
  gap: 14px;
  padding: 0 24px 18px;
}
.gx-pro-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    rgba(10, 14, 23, .78);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: visible;
  transition: var(--gx-transition);
  cursor: pointer;
}
.gx-pro-card:hover {
  border-color: rgba(var(--gx-accent),.24);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(0,0,0,.18);
}
.gx-pro-card:focus-visible {
  outline: 2px solid rgba(var(--gx-accent), .85);
  outline-offset: 3px;
}
.gx-pro-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.gx-pro-card__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(var(--gx-accent),.1);
  color: var(--gx-accent-light);
}
.gx-pro-card__icon .elite-icon { width: 16px; height: 16px; }
.gx-pro-card__icon--premium { background: rgba(var(--gx-purple),.15); color: rgb(var(--gx-purple)); }
.gx-pro-card__title {
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gx-text);
  flex: 1;
}
.gx-badge {
  padding: 2px 8px;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-radius: 4px;
}
.gx-badge--pro { background: rgba(var(--gx-accent),.15); color: var(--gx-accent-light); }
.gx-badge--premium { background: rgba(var(--gx-purple),.15); color: rgb(var(--gx-purple)); }

.gx-pro-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.gx-pro-card__text {
  font-size: .82rem;
  color: var(--gx-text-dim);
  margin: 0;
  line-height: 1.45;
}
.gx-suggestions, .gx-report-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gx-suggestion, .gx-report-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  line-height: 1.35;
  color: var(--gx-text-dim);
  padding: 6px 8px;
  background: var(--gx-surface-2);
  border-radius: 6px;
}
.gx-suggestion .elite-icon, .gx-report-item .elite-icon { width: 14px; height: 14px; color: var(--gx-accent-light); }

.gx-pro-lock {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  margin-top: auto;
  min-height: 36px;
  padding: 9px 10px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--gx-text-dim);
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-pro-lock:hover { background: rgba(var(--gx-accent),.1); color: var(--gx-accent-light); }
.gx-pro-lock .elite-icon { width: 14px; height: 14px; }
.gx-pro-lock.unlocked {
  background: rgba(var(--gx-emerald), .12);
  color: rgb(var(--gx-emerald));
}
.gx-pro-lock.unlocked:hover {
  background: rgba(var(--gx-emerald), .18);
  color: rgb(var(--gx-emerald));
}

/* Quick Templates */
.gx-templates {
  padding: 4px 24px 14px;
}
.gx-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gx-text);
  margin: 0 0 12px;
}
.gx-section-title .elite-icon { width: 16px; height: 16px; color: var(--gx-accent-light); }
.gx-templates__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 10px;
}
.gx-tpl {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 15px;
  min-height: 128px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(10, 14, 23, .74);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  cursor: pointer;
  font-size: .8rem;
  color: var(--gx-text-dim);
  transition: var(--gx-transition);
}
.gx-tpl:hover {
  background:
    linear-gradient(180deg, rgba(var(--gx-accent), .1), rgba(255,255,255,.03)),
    rgba(10, 14, 23, .82);
  border-color: rgba(var(--gx-accent),.3);
  color: var(--gx-text);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0,0,0,.16);
}
.gx-tpl__icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(var(--gx-accent),.12);
  font-size: 1rem;
  flex-shrink: 0;
}
.gx-tpl__icon .elite-icon { width: 18px; height: 18px; color: var(--gx-accent-light); }
.gx-tpl__name {
  font-weight: 700;
  line-height: 1.35;
  color: var(--gx-text);
}

/* Toolbar */
.gx-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 16px;
  flex-wrap: wrap;
}
.gx-toolbar__add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(var(--gx-accent),.14);
  border: 1px solid rgba(var(--gx-accent),.28);
  border-radius: 12px;
  color: var(--gx-accent-light);
  font-weight: 700;
  font-size: .82rem;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-toolbar__add:hover {
  background: rgba(var(--gx-accent),.22);
  transform: translateY(-1px);
}
.gx-toolbar__add .elite-icon { width: 15px; height: 15px; }
.gx-toolbar__filter {
  min-width: 168px;
  padding: 10px 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  color: var(--gx-text);
  font-size: .82rem;
  cursor: pointer;
  outline: none;
}
.gx-toolbar__filter:focus { border-color: var(--gx-border-focus); }
.gx-toolbar__filter option { background: #1a1a2e; }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── GOAL CARDS GRID ─────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
  padding: 0 24px 20px;
}

.gx-card {
  position: relative;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(10, 14, 23, .76);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  transition: var(--gx-transition);
  animation: none;
}
.gx-card:hover {
  border-color: rgba(var(--gx-accent),.24);
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}
.gx-card--completed { opacity: .7; }
.gx-card--completed .gx-card__fill { background: rgb(var(--gx-emerald)) !important; }

/* Fitness-linked badge on goal cards */
.gx-card__fitness-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: rgba(var(--gx-purple), .1);
  border-radius: 4px;
  font-size: .65rem;
  font-weight: 600;
  color: rgb(var(--gx-purple));
  margin-left: 6px;
}

.gx-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.gx-card__cat {
  font-size: .75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}
.gx-card__type {
  font-size: .68rem;
  padding: 2px 8px;
  background: var(--gx-surface-2);
  border-radius: 4px;
  color: var(--gx-text-dim);
  font-weight: 500;
}
.gx-card__title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gx-text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.gx-card__desc {
  font-size: .78rem;
  color: var(--gx-text-dim);
  margin: 0 0 12px;
  line-height: 1.45;
}

/* Progress */
.gx-card__progress { margin-bottom: 12px; }
.gx-card__progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.gx-card__progress-label { font-size: .75rem; color: var(--gx-text-dim); }
.gx-card__progress-val { font-size: .75rem; font-weight: 700; color: var(--gx-accent-light); }
.gx-card__bar {
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.gx-card__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--gx-accent),.8), rgba(var(--gx-accent),1));
  border-radius: 3px;
  transition: width .4s ease;
}

/* Footer */
.gx-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gx-card__due {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  color: var(--gx-text-dim);
}
.gx-card__due .elite-icon { width: 13px; height: 13px; }
.gx-card__due--urgent { color: rgb(var(--gx-rose)); font-weight: 600; }
.gx-card__actions { display: flex; gap: 4px; }
.gx-action {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--gx-surface-2);
  border-radius: 6px; cursor: pointer;
  color: var(--gx-text-dim);
  transition: var(--gx-transition);
}
.gx-action .elite-icon { width: 14px; height: 14px; }
.gx-action:hover { background: var(--gx-surface-3); color: var(--gx-text); }
.gx-action--complete:hover { color: rgb(var(--gx-emerald)); }
.gx-action--delete:hover { color: rgb(var(--gx-rose)); }

/* Empty state */
.gx-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 24px;
  padding: 54px 24px;
  text-align: center;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03)),
    rgba(10, 14, 23, .74);
  border: 1px solid rgba(255,255,255,.08);
}
.gx-empty__icon-wrap {
  position: relative;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(var(--gx-accent),.1);
  margin-bottom: 16px;
}
.gx-empty__icon-wrap .elite-icon { width: 28px; height: 28px; color: var(--gx-accent-light); }
.gx-empty__pulse {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(var(--gx-accent),.15);
  animation: gxPulse 2s ease-in-out infinite;
}
.gx-empty__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gx-text);
  margin: 0 0 6px;
}
.gx-empty__desc {
  font-size: .82rem;
  color: var(--gx-text-dim);
  margin: 0 0 20px;
  max-width: 340px;
}
.gx-empty__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: rgba(var(--gx-accent),.15);
  border: 1px solid rgba(var(--gx-accent),.3);
  border-radius: 10px;
  color: var(--gx-accent-light);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-empty__cta:hover { background: rgba(var(--gx-accent),.25); transform: translateY(-1px); }

/* FAB */
.gx-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--gx-accent),1), rgba(251,191,36,.92));
  border: none; border-radius: 50%;
  color: #1f1300;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 16px 34px rgba(var(--gx-accent),.34);
  transition: var(--gx-transition);
}
.gx-fab .elite-icon { width: 24px; height: 24px; }
.gx-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 18px 40px rgba(var(--gx-accent),.42); }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── FITNESS TESTING TAB ─────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */

/* Fitness Snapshot — integrated test view */
.gx-fitness-snapshot {
  padding: 0 24px 16px;
}
.gx-fitness-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.gx-fitness-header__title {
  font-size: .92rem;
  font-weight: 600;
  color: var(--gx-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gx-fitness-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: rgba(var(--gx-accent),.1);
  border: 1px solid rgba(var(--gx-accent),.2);
  border-radius: 8px;
  color: var(--gx-accent-light);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-fitness-header__btn:hover { background: rgba(var(--gx-accent),.18); }
.gx-fitness-header__btn .elite-icon { width: 14px; height: 14px; }

/* Readiness ring (compact) */
.gx-readiness-ring {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  margin-bottom: 14px;
}
.gx-readiness-ring__svg { width: 90px; height: 90px; flex-shrink: 0; }
.gx-readiness-ring__info { display: flex; flex-direction: column; gap: 4px; }
.gx-readiness-ring__label { font-size: .78rem; color: var(--gx-text-dim); }
.gx-readiness-ring__val { font-size: 1.6rem; font-weight: 700; color: var(--gx-text); }
.gx-readiness-ring__zone {
  font-size: .78rem;
  font-weight: 600;
}
.gx-readiness-ring__zone--good { color: rgb(var(--gx-emerald)); }
.gx-readiness-ring__zone--moderate { color: var(--gx-accent-light); }
.gx-readiness-ring__zone--poor { color: rgb(var(--gx-rose)); }

/* Fitness test cards (compact grid) */
.gx-ft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gx-ft-card {
  position: relative;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(10, 14, 23, .74);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  transition: var(--gx-transition);
  cursor: pointer;
  animation: none;
}
.gx-ft-card:hover { border-color: rgba(var(--gx-accent),.24); transform: translateY(-2px); }
.gx-ft-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.gx-ft-card__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: var(--gx-surface-2);
  font-size: 1rem;
  flex-shrink: 0;
}
.gx-ft-card__name {
  font-size: .84rem;
  font-weight: 600;
  color: var(--gx-text);
}
.gx-ft-card__body { display: flex; flex-direction: column; gap: 4px; }
.gx-ft-card__val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gx-text);
}
.gx-ft-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--gx-text-dim);
  flex-wrap: wrap;
}
.gx-ft-card__trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}
.gx-ft-card__trend--up { color: rgb(var(--gx-emerald)); }
.gx-ft-card__trend--down { color: rgb(var(--gx-rose)); }
.gx-ft-card__trend--same { color: var(--gx-text-dim); }
.gx-ft-card__pb {
  font-size: .7rem;
  padding: 1px 6px;
  background: rgba(var(--gx-accent),.1);
  border-radius: 4px;
  color: var(--gx-accent-light);
  font-weight: 600;
}
.gx-ft-card--empty {
  border-style: dashed;
  border-color: rgba(255,255,255,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 120px;
}
.gx-ft-card--empty .gx-ft-card__icon { background: rgba(var(--gx-accent),.06); }
.gx-ft-card--empty .gx-ft-card__name { color: var(--gx-text-dim); font-weight: 500; }

/* Baseline progress */
.gx-baseline-progress {
  padding: 16px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  margin-bottom: 14px;
}
.gx-baseline-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.gx-baseline-progress__title {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gx-text);
}
.gx-baseline-progress__count {
  font-size: .78rem;
  color: var(--gx-accent-light);
  font-weight: 600;
}
.gx-baseline-progress__bar {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.gx-baseline-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--gx-emerald),.8), rgba(var(--gx-emerald),1));
  border-radius: 4px;
  transition: width .4s ease;
}
.gx-baseline-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gx-baseline-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gx-surface-2);
  border-radius: 6px;
  font-size: .72rem;
  color: var(--gx-text-dim);
}
.gx-baseline-item--done { color: rgb(var(--gx-emerald)); }
.gx-baseline-item--done::before { content: '✓'; margin-right: 2px; }
.gx-baseline-item--pending { color: var(--gx-text-dim); opacity: .6; }
.gx-baseline-item--pending::before { content: '○'; margin-right: 2px; }

/* Risk flags */
.gx-risk-flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px 14px;
}
.gx-risk-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--gx-radius-xs);
  font-size: .8rem;
  font-weight: 500;
  animation: gxSlideIn .3s ease both;
}
.gx-risk-flag .elite-icon { width: 15px; height: 15px; flex-shrink: 0; }
.gx-risk-flag--danger { background: rgba(var(--gx-rose),.08); color: rgb(var(--gx-rose)); border-left: 3px solid rgb(var(--gx-rose)); }
.gx-risk-flag--warn { background: rgba(var(--gx-accent),.08); color: var(--gx-accent-light); border-left: 3px solid var(--gx-accent-light); }
.gx-risk-flag--info { background: rgba(var(--gx-cyan),.08); color: rgb(var(--gx-cyan)); border-left: 3px solid rgb(var(--gx-cyan)); }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── INSIGHTS TAB — goal + fitness cross-view ────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-insights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px 24px;
}
.gx-insight-card {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(10, 14, 23, .76);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  transition: var(--gx-transition);
}
.gx-insight-card:hover {
  border-color: rgba(var(--gx-accent),.22);
  transform: translateY(-2px);
}
.gx-insight-card--full { grid-column: 1 / -1; }
.gx-insight-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.gx-insight-card__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 1rem;
}
.gx-insight-card__title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gx-text);
  flex: 1;
}

/* Trait bars */
.gx-trait-bars { display: flex; flex-direction: column; gap: 10px; }
.gx-trait {
  display: flex;
  align-items: center;
  gap: 10px;
}
.gx-trait__label {
  width: 80px;
  font-size: .75rem;
  color: var(--gx-text-dim);
  flex-shrink: 0;
}
.gx-trait__bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.gx-trait__bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width .5s ease;
}
.gx-trait__val {
  width: 36px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--gx-text);
  text-align: right;
}

/* ACWR gauge */
.gx-acwr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 8px;
}
.gx-acwr__ring { width: 80px; height: 80px; flex-shrink: 0; }
.gx-acwr__info { flex: 1; }
.gx-acwr__ratio {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gx-text);
  line-height: 1;
}
.gx-acwr__zone {
  font-size: .78rem;
  font-weight: 600;
  margin-top: 4px;
}
.gx-acwr__zone--optimal { color: rgb(var(--gx-emerald)); }
.gx-acwr__zone--caution { color: var(--gx-accent-light); }
.gx-acwr__zone--danger { color: rgb(var(--gx-rose)); }
.gx-acwr__scale {
  display: flex;
  gap: 2px;
  margin-top: 8px;
}
.gx-acwr__scale-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
}

/* Goal-Fitness link cards */
.gx-linked-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.gx-linked-goal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--gx-surface-2);
  border-radius: 8px;
  font-size: .8rem;
}
.gx-linked-goal__icon {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  background: rgba(var(--gx-accent),.1);
  font-size: .7rem;
}
.gx-linked-goal__title { flex: 1; color: var(--gx-text); font-weight: 500; }
.gx-linked-goal__progress {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gx-accent-light);
}

/* Goal streaks */
.gx-streaks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gx-streak {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--gx-surface-2);
  border-radius: 8px;
  flex: 1;
  min-width: 120px;
}
.gx-streak__icon {
  font-size: 1.1rem;
}
.gx-streak__info { display: flex; flex-direction: column; }
.gx-streak__val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gx-text);
  line-height: 1;
}
.gx-streak__label {
  font-size: .68rem;
  color: var(--gx-text-dim);
}

/* Recent activity mini-timeline */
.gx-activity {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.gx-activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  background: var(--gx-surface-2);
  border-radius: 8px;
  font-size: .78rem;
}
.gx-activity-item__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.gx-activity-item__dot--goal { background: var(--gx-accent-light); }
.gx-activity-item__dot--test { background: rgb(var(--gx-purple)); }
.gx-activity-item__dot--readiness { background: rgb(var(--gx-emerald)); }
.gx-activity-item__text { color: var(--gx-text); flex: 1; }
.gx-activity-item__time { color: var(--gx-text-dim); white-space: nowrap; }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── MODAL ───────────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--gx-transition);
}
.gx-modal-backdrop.show { opacity: 1; visibility: visible; }

.gx-modal {
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  background: #1a1a2e;
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translateY(12px);
  transition: var(--gx-transition);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.gx-modal-backdrop.show .gx-modal { transform: translateY(0); }

.gx-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gx-border);
}
.gx-modal__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gx-text);
  margin: 0;
}
.gx-modal__close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: var(--gx-surface-2);
  border-radius: 6px;
  color: var(--gx-text-dim);
  font-size: .95rem;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-modal__close:hover { background: var(--gx-surface-3); color: var(--gx-text); }

.gx-modal__body { padding: 18px 20px; }
.gx-modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--gx-border);
}

/* Form */
.gx-form-group { margin-bottom: 14px; }
.gx-form-label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gx-text-dim);
  margin-bottom: 6px;
}
.gx-form-input, .gx-form-select {
  width: 100%;
  padding: 9px 12px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: 8px;
  color: var(--gx-text);
  font-size: .85rem;
  outline: none;
  transition: var(--gx-transition);
  box-sizing: border-box;
}
.gx-form-input:focus, .gx-form-select:focus { border-color: var(--gx-border-focus); }
.gx-form-select option { background: #1a1a2e; }
textarea.gx-form-input { resize: vertical; min-height: 60px; }

.gx-target-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.gx-type-options { display: flex; gap: 6px; flex-wrap: wrap; }
.gx-type-opt {
  flex: 1;
  min-width: 80px;
  padding: 10px 8px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-type-opt:hover { border-color: rgba(var(--gx-accent),.25); }
.gx-type-opt.selected { border-color: rgba(var(--gx-accent),.5); background: rgba(var(--gx-accent),.08); }
.gx-type-opt__icon { font-size: 1.1rem; margin-bottom: 2px; }
.gx-type-opt__label { font-size: .72rem; color: var(--gx-text-dim); font-weight: 500; }
.gx-type-opt.selected .gx-type-opt__label { color: var(--gx-accent-light); }

/* Buttons */
.gx-btn--primary {
  padding: 9px 20px;
  background: rgba(var(--gx-accent),.85);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-btn--primary:hover { background: rgba(var(--gx-accent),1); }
.gx-btn--secondary {
  padding: 9px 20px;
  background: var(--gx-surface-2);
  border: 1px solid var(--gx-border);
  border-radius: 8px;
  color: var(--gx-text-dim);
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  transition: var(--gx-transition);
}
.gx-btn--secondary:hover { background: var(--gx-surface-3); color: var(--gx-text); }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── FITNESS TEST LOG MODAL ──────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
.gx-ft-modal { max-width: 560px; }
.gx-ft-modal .gx-modal__head {
  background: linear-gradient(135deg, rgba(var(--gx-accent),.08), transparent);
}
.gx-ft-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gx-ft-trials {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background: var(--gx-surface-2);
  border-radius: 8px;
  margin-top: 6px;
}
.gx-ft-trial {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gx-ft-trial__label {
  font-size: .75rem;
  color: var(--gx-text-dim);
  width: 55px;
  flex-shrink: 0;
}
.gx-ft-trial__input {
  flex: 1;
  padding: 6px 10px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: 6px;
  color: var(--gx-text);
  font-size: .82rem;
  outline: none;
}
.gx-ft-trial__input:focus { border-color: var(--gx-border-focus); }

/* Confidence badge */
.gx-confidence {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 600;
}
.gx-confidence--high { background: rgba(var(--gx-emerald),.1); color: rgb(var(--gx-emerald)); }
.gx-confidence--medium { background: rgba(var(--gx-accent),.1); color: var(--gx-accent-light); }
.gx-confidence--low { background: rgba(var(--gx-rose),.1); color: rgb(var(--gx-rose)); }

/* ══════════════════════════════════════════════════════════════════════ */
/* ── ANIMATIONS ──────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
@keyframes gxFadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes gxPulse {
  0%, 100% { transform: scale(1); opacity: .5; }
  50%      { transform: scale(1.15); opacity: .2; }
}
@keyframes gxSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════════════════════════════════════ */
/* ── RESPONSIVE ──────────────────────────────────────────────────── */
/* ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .gx-hero__inner { grid-template-columns: 1fr; }
  .gx-overview { grid-template-columns: 1fr; }
  .gx-pro-panel { grid-template-columns: 1fr 1fr; }
  .gx-insights { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gx-hero {
    margin: 16px 16px 0;
    padding: 24px 18px 18px;
    border-radius: 24px 24px 0 0;
  }
  .gx-hero__title { font-size: 1.7rem; max-width: none; }
  .gx-hero__metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gx-tabs { margin: 0 16px 20px; padding: 0 16px; border-radius: 0 0 24px 24px; }
  .gx-overview { padding: 0 16px 18px; }
  .gx-section-head { padding: 0 16px 12px; }
  .gx-tabs { padding: 0 16px; }
  .gx-kpi-row { grid-template-columns: repeat(2, 1fr); padding: 14px 16px; }
  .gx-pro-panel { grid-template-columns: 1fr; padding: 0 16px 14px; }
  .gx-templates { padding: 4px 16px 10px; }
  .gx-templates__grid { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); }
  .gx-toolbar { padding: 0 16px 12px; }
  .gx-grid { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .gx-ft-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .gx-insights { padding: 14px 16px; }
  .gx-fitness-snapshot { padding: 0 16px 14px; }
  .gx-risk-flags { padding: 0 16px 12px; }
  .gx-readiness-ring { flex-direction: column; text-align: center; }
  .gx-empty { margin: 0 16px; }
}
@media (max-width: 480px) {
  .gx-hero {
    margin: 14px 14px 0;
    padding: 20px 14px 16px;
  }
  .gx-hero__eyebrow { margin-bottom: 12px; }
  .gx-hero__title { font-size: 1.34rem; }
  .gx-hero__sub { font-size: .88rem; }
  .gx-hero__spotlight { padding: 18px; border-radius: 20px; }
  .gx-hero__spotlight-value { font-size: 1.12rem; }
  .gx-hero__metrics { grid-template-columns: 1fr; }
  .gx-hero__cta { width: 100%; justify-content: center; padding: 10px 14px; font-size: .82rem; }
  .gx-tab { padding: 11px 12px; font-size: .8rem; }
  .gx-kpi-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gx-kpi { padding: 12px 8px; }
  .gx-kpi__val { font-size: 1.2rem; }
  .gx-overview { padding: 0 14px 16px; }
  .gx-overview-card { min-height: 0; padding: 18px; }
  .gx-section-head { padding: 0 14px 12px; }
  .gx-templates__grid { grid-template-columns: 1fr 1fr; }
  .gx-grid { grid-template-columns: 1fr; }
  .gx-ft-grid { grid-template-columns: 1fr; }
  .gx-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .gx-modal { margin: 12px; }
  .gx-ft-form-row { grid-template-columns: 1fr; }
  .gx-streaks { flex-direction: column; }
  .gx-empty { margin: 0 14px; padding: 42px 18px; }
}
