/* ============================================================
   NXT IN LINE — App Styles
   Premium NIL marketplace for college athletes & brands
   ============================================================ */

/* ─── Design Tokens ──────────────────────────────────────── */
:root {
  /* Core palette — clean white foundation */
  --bg:              #FAFBFC;
  --bg-alt:          #F1F4F8;
  --surface:         #FFFFFF;
  --surface-elevated:#F6F8FA;

  /* Dark palette — for hero, sidebar, contrast sections */
  --navy:            #0A1628;
  --navy-light:      #111D33;
  --navy-mid:        #1A2942;

  /* Text hierarchy */
  --text:            #0B1222;
  --text-muted:      #5A6578;
  --text-dim:        #8D95A3;

  /* Primary gradient accent — electric blue → violet */
  --accent:          #2563EB;
  --accent-hover:    #1D4ED8;
  --accent-light:    #EFF6FF;
  --accent-dim:      rgba(37, 99, 235, 0.06);
  --accent-end:      #7C3AED;
  --gradient:        linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.08) 100%);
  --gradient-text:   linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);

  /* Semantic colors */
  --success:         #10B981;
  --success-light:   #ECFDF5;
  --warning:         #F59E0B;
  --warning-light:   #FFFBEB;
  --error:           #EF4444;
  --error-light:     #FEF2F2;
  --gold:            #D4A020;
  --gold-light:      rgba(212, 160, 32, 0.1);

  /* Borders & shadows */
  --border:          #E2E8F0;
  --border-dark:     #CBD5E1;
  --shadow-sm:       0 1px 2px rgba(10,22,40,0.04);
  --shadow:          0 1px 3px rgba(10,22,40,0.08), 0 1px 2px rgba(10,22,40,0.04);
  --shadow-md:       0 4px 12px rgba(10,22,40,0.08), 0 2px 4px rgba(10,22,40,0.04);
  --shadow-lg:       0 12px 24px rgba(10,22,40,0.1), 0 4px 8px rgba(10,22,40,0.05);
  --shadow-glow:     0 0 20px rgba(37, 99, 235, 0.15);

  /* Radius — slightly sharper for modern feel */
  --radius-sm:       8px;
  --radius:          12px;
  --radius-lg:       16px;
  --radius-xl:       24px;

  /* Layout */
  --max-w:           1200px;
  --sidebar-w:       260px;

  /* Motion */
  --ease:            cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition:      0.3s var(--ease);

  /* Font stack */
  --font-display:    'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-body:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

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

button { cursor: pointer; font-family: inherit; }

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.025em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-error { color: var(--error); }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* ─── Layout Utilities ───────────────────────────────────── */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.w-full { width: 100%; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3), 0 2px 4px rgba(37, 99, 235, 0.15);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--surface-elevated);
  border-color: var(--border-dark);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 0.5rem 0.75rem;
}
.btn-ghost:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

.btn-block { width: 100%; }

.btn:disabled, .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* ─── Form Elements ──────────────────────────────────────── */
.input, .textarea, .select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-dim);
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.input-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.input-error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-dark);
}

.card-elevated {
  box-shadow: var(--shadow);
  border: none;
}

.card-gradient-border {
  position: relative;
  border: none;
}
.card-gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
}
.card-gradient-border:hover::before {
  opacity: 1;
}

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  white-space: nowrap;
}

.badge-accent {
  background: var(--accent-light);
  color: var(--accent);
}

.badge-success {
  background: var(--success-light);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-light);
  color: var(--warning);
}

.badge-error {
  background: var(--error-light);
  color: var(--error);
}

.badge-muted {
  background: var(--surface-elevated);
  color: var(--text-muted);
}

/* ─── Stat Cards (Premium) ───────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-subtle);
  margin-bottom: 0.5rem;
}

.stat-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stat-card__value-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-card__trend {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-card__trend--up {
  color: var(--success);
  background: var(--success-light);
}

.stat-card__trend--down {
  color: var(--error);
  background: var(--error-light);
}

.stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── Dashboard Welcome Banner ──────────────────────────── */
.dash-welcome {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.dash-welcome::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.dash-welcome__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash-welcome__greeting {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0;
}

.dash-welcome__sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.25rem;
}

.dash-welcome__date {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
}

/* ─── Dashboard Quick Actions ───────────────────────────── */
.dash-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.dash-action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gradient-subtle);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
}

.dash-action-btn:hover {
  background: var(--gradient);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.dash-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── Dashboard Carousel ────────────────────────────────── */
.dash-carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -0.5rem;
  padding: 0.5rem;
}

.dash-carousel::-webkit-scrollbar {
  display: none;
}

.dash-carousel__track {
  display: flex;
  gap: 1rem;
}

.dash-carousel__track > * {
  scroll-snap-align: start;
  min-width: 300px;
  max-width: 340px;
  flex-shrink: 0;
}

/* ─── Dashboard Section ─────────────────────────────────── */
.dash-section {
  margin-bottom: 2rem;
}

.dash-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-section__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.dash-section__link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.dash-section__link:hover {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Enhanced Activity Feed ────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.activity-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--border);
  transition: all var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.activity-card--accepted { border-left-color: var(--success); }
.activity-card--pending  { border-left-color: var(--warning); }
.activity-card--rejected { border-left-color: var(--error); }

.activity-card__content {
  flex: 1;
  min-width: 0;
}

.activity-card__text {
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-card__time {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ─── Mini SVG Bar Chart ────────────────────────────────── */
.dash-chart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.dash-chart__title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-chart svg {
  width: 100%;
  height: 120px;
  display: block;
}

.dash-chart__bar {
  rx: 3;
  ry: 3;
}

.dash-chart__label {
  font-size: 10px;
  fill: var(--text-dim);
  text-anchor: middle;
  font-family: var(--font-sans);
}

/* ─── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-dark);
}

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

/* ─── App Layout ─────────────────────────────────────────── */
.app-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--navy);
  border-right: none;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar__logo {
  padding: 0 1.5rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.sidebar__logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 0 0.75rem;
}

.sidebar__section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  padding: 1rem 0.75rem 0.375rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

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

.sidebar-link.active {
  background: rgba(37,99,235,0.2);
  color: #fff;
  font-weight: 600;
}

.sidebar-link__icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-link__badge {
  margin-left: auto;
  background: var(--error);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.sidebar__header {
  padding: 0 1.5rem 0.5rem;
}

.sidebar__logo-text {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.sidebar__logo-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar__section {
  margin-bottom: 0.5rem;
}

.sidebar__footer {
  padding: 0 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 0.75rem;
  margin-top: auto;
}

.sidebar-link--signout {
  color: rgba(255,255,255,0.4);
}

.sidebar-link--signout:hover {
  color: #EF4444;
  background: rgba(239,68,68,0.1);
}

.sidebar__user {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.sidebar__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37,99,235,0.2);
  color: #7C9EFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8125rem;
  flex-shrink: 0;
}

.sidebar__user-info {
  flex: 1;
  min-width: 0;
}

.sidebar__user-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar__user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

/* Main Content */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg-alt);
}

.app-screen {
  display: none;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.app-screen.active {
  display: block;
  animation: fadeIn 0.25s var(--ease);
}

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

/* Screen Header */
.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.screen-header h2 {
  font-size: 1.5rem;
}

.screen-header__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  min-width: 220px;
}

.screen-header__search svg {
  flex-shrink: 0;
  color: var(--text-dim);
}

.screen-header__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.875rem;
  flex: 1;
  color: var(--text);
}

.screen-header__search input::placeholder {
  color: var(--text-dim);
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-icon:hover {
  color: var(--text);
  border-color: var(--border-dark);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.filter-tab:hover {
  color: var(--text);
  border-color: var(--border-dark);
}

.filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── Advanced Filter System ─────────────────────────────── */
.search-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
}

.search-filter-bar__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.search-filter-bar__input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}
.search-filter-bar__input-wrap svg {
  position: absolute;
  left: 12px;
  color: var(--text-dim);
  pointer-events: none;
}
.search-filter-bar__input {
  width: 100%;
  height: 44px;
  padding: 0 2.5rem 0 2.5rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.search-filter-bar__input:focus { border-color: var(--accent); }
.search-filter-bar__input::placeholder { color: var(--text-dim); }

.search-filter-bar__clear {
  position: absolute;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}
.search-filter-bar__clear.visible { display: flex; }
.search-filter-bar__clear:hover { background: var(--border); color: var(--text); }

.search-filter-bar__sort {
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  outline: none;
  min-width: 150px;
}

.results-count {
  font-size: 0.8125rem;
  color: var(--text-dim);
  white-space: nowrap;
  padding-right: 4px;
}

/* Filter Chips Row */
.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.filter-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}
.filter-chip:hover { border-color: var(--border-dark); color: var(--text); }
.filter-chip.has-value {
  background: var(--gradient-subtle);
  color: var(--accent);
  border-color: var(--accent-light);
  font-weight: 600;
}
.filter-chip__chevron {
  transition: transform 0.2s;
  margin-left: 2px;
}
.filter-chip.open .filter-chip__chevron { transform: rotate(180deg); }

/* Filter Dropdown */
.filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 50;
  padding: 6px 0;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}
.filter-chip.open .filter-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.filter-dropdown::-webkit-scrollbar { width: 4px; }
.filter-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.filter-dropdown__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.filter-dropdown__item:hover { background: var(--bg-alt); }
.filter-dropdown__item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}
.filter-dropdown__item.checked { font-weight: 600; color: var(--accent); }

/* Active Filter Pills */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.active-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gradient-subtle);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

.active-filter-pill__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1;
  padding: 0;
  transition: background 0.1s;
}
.active-filter-pill__remove:hover { background: rgba(0,0,0,0.08); }

/* No Results State */
.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}
.no-results__icon { color: var(--text-dim); margin-bottom: 1rem; }
.no-results__title { font-size: 1.125rem; font-weight: 600; color: var(--text); margin: 0 0 0.25rem; }
.no-results__sub { font-size: 0.875rem; color: var(--text-muted); margin: 0 0 1.25rem; }

/* ─── Messages — Split-Pane Layout ───────────────────────── */
#screenMessages.app-screen {
  padding: 0;
  max-width: none;
}

.msg-pane {
  display: flex;
  height: calc(100vh - 72px);
  overflow: hidden;
  background: var(--bg);
}

/* Sidebar */
.msg-sidebar {
  width: 340px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  flex-shrink: 0;
}

.msg-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 0.75rem;
}
.msg-sidebar__header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.msg-sidebar__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 1rem 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.msg-sidebar__search svg {
  flex-shrink: 0;
  color: var(--text-dim);
}
.msg-sidebar__search input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.8125rem;
  flex: 1;
  color: var(--text);
}
.msg-sidebar__search input::placeholder { color: var(--text-dim); }

.msg-sidebar__list {
  flex: 1;
  overflow-y: auto;
}

/* Conversation Preview */
.msg-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  border-left: 3px solid transparent;
  transition: all 0.15s;
}
.msg-preview:hover { background: var(--bg-alt); }
.msg-preview.active {
  background: var(--bg-alt);
  border-left-color: var(--accent);
}

.msg-preview__avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  flex-shrink: 0;
}

.msg-preview__online {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--surface);
}

.msg-preview__body {
  flex: 1;
  min-width: 0;
}

.msg-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.msg-preview__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.msg-preview.unread .msg-preview__name { font-weight: 700; }

.msg-preview__time {
  font-size: 0.6875rem;
  color: var(--text-dim);
  flex-shrink: 0;
}

.msg-preview__last {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-preview__unread {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-left: 4px;
}

/* Thread Panel */
.msg-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.msg-thread__inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.msg-thread-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.msg-thread-header__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.msg-thread-header__back:hover { color: var(--text); background: var(--bg-alt); }

.msg-thread-header__avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.msg-thread-header__info {
  flex: 1;
  min-width: 0;
}

.msg-thread-header__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}

.msg-thread-header__role {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.msg-thread-header__online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* Message Body */
.msg-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.msg-day-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1rem 0;
  color: var(--text-dim);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.msg-day-divider::before,
.msg-day-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Bubbles */
.msg-bubble-row {
  display: flex;
  margin-bottom: 2px;
}
.msg-bubble-row--sent { justify-content: flex-end; }
.msg-bubble-row--received { justify-content: flex-start; }

.msg-bubble {
  max-width: 75%;
  padding: 0.625rem 0.875rem;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.9375rem;
  animation: bubbleIn 0.2s ease-out;
}

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.msg-bubble--sent {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg-bubble--received {
  background: var(--bg-alt);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-bubble p { margin: 0; }

.msg-bubble__time {
  display: block;
  font-size: 0.625rem;
  margin-top: 4px;
  opacity: 0.55;
}
.msg-bubble--sent .msg-bubble__time { text-align: right; }

/* Typing Indicator */
.msg-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.625rem 0.875rem;
  background: var(--bg-alt);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  margin-bottom: 2px;
}

.msg-typing__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.2s infinite;
}
.msg-typing__dot:nth-child(2) { animation-delay: 0.15s; }
.msg-typing__dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Input Bar */
.msg-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}

.msg-input-bar textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-family: inherit;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-alt);
  max-height: 120px;
  overflow-y: auto;
  outline: none;
  transition: border-color 0.15s;
}
.msg-input-bar textarea:focus { border-color: var(--accent); }
.msg-input-bar textarea::placeholder { color: var(--text-dim); }
.msg-input-bar textarea::-webkit-scrollbar { width: 4px; }
.msg-input-bar textarea::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.msg-send-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.msg-send-btn:hover { transform: scale(1.05); }
.msg-send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* Empty State */
.msg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}
.msg-empty__icon { margin-bottom: 1rem; color: var(--text-dim); }
.msg-empty__title { font-size: 1.125rem; font-weight: 600; color: var(--text); margin: 0 0 0.25rem; }
.msg-empty__sub { font-size: 0.875rem; margin: 0; }

.msg-sidebar-empty {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* ─── Messages Responsive ────────────────────────────────── */
@media (max-width: 768px) {
  .msg-pane { position: relative; }
  .msg-sidebar { width: 100%; }
  .msg-thread {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .msg-pane.thread-open .msg-thread { transform: translateX(0); }
  .msg-thread-header__back { display: flex; }
}

/* ─── Bottom Nav (Mobile) ────────────────────────────────── */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  z-index: 100;
  padding: 0.5rem 0;
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

.bottom-nav__inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.bnav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.45);
  font-size: 0.625rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s;
}

.bnav-btn svg { width: 22px; height: 22px; }

.bnav-btn.active {
  color: #fff;
}

/* ─── Auth Screen ────────────────────────────────────────── */
.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--navy);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient orb behind auth card */
.auth-screen::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(124,58,237,0.08) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.1);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.auth-card__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: -0.03em;
}

.auth-card__logo span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* NIL first-letter branding — N·I·L gradient treatment */
.logo-nil {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.25em;
  font-weight: 800;
  position: relative;
  display: inline-block;
}
.logo-nil::after {
  content: attr(data-letter);
  position: absolute;
  inset: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(6px);
  opacity: .45;
  z-index: -1;
  pointer-events: none;
}

/* Auth logo: NXT is dark text, so N gets gradient pop */
.auth-card__logo .logo-nil {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sidebar logo: NXT is white, N gets gradient pop */
.sidebar__logo-text .logo-nil,
.sidebar__logo-accent .logo-nil {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-card__tagline {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 2rem;
  font-weight: 500;
}

.auth-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-tab.active {
  color: var(--accent);
  border-image: var(--gradient) 1;
  border-image-slice: 1;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form .input {
  padding: 0.875rem 1rem;
}

.auth-error {
  color: var(--error);
  font-size: 0.8125rem;
  font-weight: 500;
  min-height: 1.2em;
  text-align: center;
}

/* Role Toggle */
.role-toggle {
  display: flex;
  gap: 0.75rem;
}

.role-btn {
  flex: 1;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}

.role-btn:hover {
  border-color: var(--border-dark);
}

.role-btn.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.role-btn__icon {
  font-size: 1.5rem;
  margin-bottom: 0.375rem;
}

.role-btn__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.role-btn__desc {
  display: block;
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

/* Auth Divider + Demo Buttons */
.auth-divider {
  text-align: center;
  margin: 1.25rem 0;
  position: relative;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: var(--border);
}

.auth-divider span {
  position: relative;
  background: var(--surface);
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.auth-demo-btns {
  display: flex;
  gap: 0.5rem;
}

.auth-card__back {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.auth-card__back:hover {
  color: var(--accent);
}

/* ─── Onboarding (Dynamic — built by script.js) ─────────── */
.screen-onboarding {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--navy);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.screen-onboarding::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.06) 50%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.onboard__container {
  width: 100%;
  max-width: 580px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.2), 0 8px 16px rgba(0,0,0,0.1);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
}

.onboard__progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.onboard__progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.4s var(--ease);
}

.onboard__step-indicator {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.onboard__title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.onboard__subtitle {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
}

.onboard__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.onboard__field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.onboard__field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.onboard__row {
  display: flex;
  gap: 1rem;
}

.onboard__social-pair {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}

.onboard__social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 4px;
  color: var(--text-muted);
}

.onboard__social-icon svg {
  width: 20px;
  height: 20px;
}

.onboard__checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.onboard__checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all 0.2s;
}

.onboard__checkbox-label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent);
}

.onboard__checkbox-label input {
  display: none;
}

.onboard__finish-icon {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.onboard__finish-text {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.onboard__actions {
  display: flex;
  justify-content: space-between;
  margin-top: 1.5rem;
}

/* ─── Athlete Card Grid ──────────────────────────────────── */
.athlete-grid,
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ─── Full-Bleed Photo Athlete Cards ───────────────────── */
.athlete-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.athlete-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition: transform 0.5s var(--ease);
}

.athlete-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.15) 0%,
    rgba(10, 22, 40, 0.4) 40%,
    rgba(10, 22, 40, 0.85) 70%,
    rgba(10, 22, 40, 0.95) 100%
  );
  transition: background 0.4s ease;
}

.athlete-card:hover .athlete-card__bg {
  transform: scale(1.06);
}

.athlete-card:hover .athlete-card__overlay {
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.2) 0%,
    rgba(10, 22, 40, 0.5) 40%,
    rgba(10, 22, 40, 0.9) 70%,
    rgba(10, 22, 40, 0.97) 100%
  );
}

.athlete-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.athlete-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  padding: 1.25rem;
  gap: 0.625rem;
}

.athlete-card__tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.badge-glass {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.athlete-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.athlete-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.athlete-card__school {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.athlete-card__stats {
  display: flex;
  justify-content: space-between;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.athlete-card__stat {
  text-align: left;
}

.athlete-card__stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: #fff;
}

.athlete-card__stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}

.athlete-card__footer {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.25rem;
}

/* Gradient button for card */
.btn-gradient {
  background: var(--gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-gradient:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Glass button for bookmark */
.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-glass svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
}

/* ─── Fit Score Badge ────────────────────────────────────── */
.fit-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--surface);
  border: 2px solid var(--fit-color, var(--accent));
  border-radius: 20px;
  padding: 0.25rem 0.625rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.fit-badge__score {
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--fit-color, var(--accent));
  font-family: 'Plus Jakarta Sans', var(--font-sans);
  line-height: 1;
}

.fit-badge__grade {
  font-weight: 700;
  font-size: 0.625rem;
  color: var(--fit-color, var(--accent));
  background: rgba(0, 102, 255, 0.1);
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Grade color variants via inline style override */
.fit-badge[style*="--fit-color: #10B981"] .fit-badge__grade { background: rgba(16, 185, 129, 0.1); }
.fit-badge[style*="--fit-color: #0066FF"] .fit-badge__grade { background: rgba(0, 102, 255, 0.1); }
.fit-badge[style*="--fit-color: #F59E0B"] .fit-badge__grade { background: rgba(245, 158, 11, 0.1); }
.fit-badge[style*="--fit-color: #EF4444"] .fit-badge__grade { background: rgba(239, 68, 68, 0.1); }

/* Fit badge on photo cards — glass style */
.athlete-card--photo .fit-badge {
  z-index: 3;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.athlete-card--photo .fit-badge__score {
  color: #fff;
}
.athlete-card--photo .fit-badge__grade {
  background: rgba(255, 255, 255, 0.15) !important;
}

/* ─── Opportunity Card Grid ──────────────────────────────── */
.opp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ─── Full-Bleed Photo Opportunity Cards ───────────────── */
.opp-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.opp-card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s var(--ease);
}

.opp-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.3) 0%,
    rgba(10, 22, 40, 0.5) 35%,
    rgba(10, 22, 40, 0.88) 65%,
    rgba(10, 22, 40, 0.97) 100%
  );
  transition: background 0.4s ease;
}

.opp-card:hover .opp-card__bg {
  transform: scale(1.06);
}

.opp-card:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-4px);
}

.opp-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  padding: 1.25rem;
}

.opp-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.opp-card__budget-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.opp-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.opp-card__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.opp-card__brand-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.opp-card__brand-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.6875rem;
  color: #fff;
  flex-shrink: 0;
}

.opp-card__brand-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.opp-card__industry {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  margin-left: auto;
}

.opp-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.625rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.625rem;
  gap: 0.5rem;
}

.opp-card__tags {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  flex: 1;
}

.opp-card__deadline {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.opp-card__deadline svg {
  width: 12px;
  height: 12px;
  opacity: 0.5;
}

.opp-card__footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s var(--ease);
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Modal / Overlay ────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.modal-overlay.active,
.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: scale(0.95);
  transition: transform 0.25s var(--ease);
}

.modal-overlay.active .modal,
.modal-overlay.show .modal {
  transform: scale(1);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.125rem;
  cursor: pointer;
}

/* ─── Empty States ───────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.empty-state__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.empty-state__desc {
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* ─── Loading Spinner ────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}

/* ─── Reveal Animations ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Card Entrance Animation ────────────────────────────── */
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.cards-grid .athlete-card,
.cards-grid .opp-card,
.opp-grid .opp-card {
  animation: cardIn 0.4s var(--ease) both;
}

.cards-grid .athlete-card:nth-child(1),
.cards-grid .opp-card:nth-child(1) { animation-delay: 0ms; }
.cards-grid .athlete-card:nth-child(2),
.cards-grid .opp-card:nth-child(2) { animation-delay: 50ms; }
.cards-grid .athlete-card:nth-child(3),
.cards-grid .opp-card:nth-child(3) { animation-delay: 100ms; }
.cards-grid .athlete-card:nth-child(4),
.cards-grid .opp-card:nth-child(4) { animation-delay: 150ms; }
.cards-grid .athlete-card:nth-child(5),
.cards-grid .opp-card:nth-child(5) { animation-delay: 200ms; }
.cards-grid .athlete-card:nth-child(6),
.cards-grid .opp-card:nth-child(6) { animation-delay: 250ms; }
.cards-grid .athlete-card:nth-child(n+7) { animation-delay: 300ms; }

/* ─── Athlete Profile — Full-Bleed Hero ──────────────────── */
#screenAthletePublic.app-screen,
#screenOppDetail.app-screen,
#screenBrandPublic.app-screen {
  padding: 0;
  max-width: none;
}

.profile-hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.profile-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.profile-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 22, 40, 0.2) 0%,
    rgba(10, 22, 40, 0.4) 30%,
    rgba(10, 22, 40, 0.8) 65%,
    rgba(10, 22, 40, 0.97) 100%
  );
}

.profile-hero__back {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.profile-hero__back:hover {
  background: rgba(0, 0, 0, 0.6);
}
.profile-hero__back svg {
  width: 16px;
  height: 16px;
}

.profile-hero__fit {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.profile-hero__fit-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.profile-hero__fit-label {
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  font-weight: 600;
}
.profile-hero__fit-grade {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.profile-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-hero__tags {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.profile-hero__name {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.profile-hero__school {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.profile-hero__stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.profile-hero__stat-value {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.profile-hero__stat-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.profile-hero__stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255, 255, 255, 0.12);
}

/* ─── Profile Action Bar ─────────────────────────────────── */
.profile-actions {
  display: flex;
  gap: 0.75rem;
  padding: 1.25rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}
.profile-actions .btn-gradient {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
}

/* ─── Profile Content Grid ───────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.profile-grid__main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.profile-section__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.profile-section__text {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.7;
}

.profile-deal-types {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.profile-deal-chip {
  background: var(--gradient-subtle);
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--radius);
  padding: 0.625rem 1rem;
}
.profile-deal-chip__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
}

.profile-interests {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

/* ─── Social Media Sidebar Card ──────────────────────────── */
.profile-social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}

.profile-social-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-social-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  gap: 0.25rem 0.75rem;
  align-items: center;
}

.profile-social-item__icon {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.profile-social-item__info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.profile-social-item__platform {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.profile-social-item__count {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text);
}

.profile-social-item__bar {
  grid-column: 2;
  height: 4px;
  background: var(--bg-alt);
  border-radius: 2px;
  overflow: hidden;
}

.profile-social-item__fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.6s var(--ease);
}

.profile-social-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.profile-social-total span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.profile-social-total strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Profile Responsive ─────────────────────────────────── */
@media (max-width: 1024px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .profile-social-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .profile-view {
    margin: -1.25rem;
  }
  .profile-hero {
    height: 360px;
  }
  .profile-hero__content {
    padding: 0 1.25rem 1.5rem;
  }
  .profile-hero__name {
    font-size: 2rem;
  }
  .profile-hero__stats {
    gap: 1rem;
  }
  .profile-hero__stat-value {
    font-size: 1rem;
  }
  .profile-actions {
    padding: 1rem 1.25rem;
  }
  .profile-grid {
    padding: 1.25rem;
  }
}

/* ─── Brand Profile & Opp Detail — Shared Additions ─────── */

/* Brand avatar — glass circle in hero */
.profile-hero__brand-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
}

/* Budget pill badge in hero */
.profile-hero__budget {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.875rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Applicant count badge in hero */
.profile-hero__applicants {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Brand info bar — below opp-detail hero */
.profile-brand-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  max-width: 1100px;
  margin: 0 auto;
}
.profile-brand-bar__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: #fff;
  flex-shrink: 0;
}
.profile-brand-bar__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.profile-brand-bar__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.profile-brand-bar__industry {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.profile-brand-bar__link {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.profile-brand-bar__link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Sidebar quick stats card */
.profile-quick-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 1rem;
}
.profile-quick-stats__title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.profile-quick-stats__list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.profile-quick-stats__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.profile-quick-stats__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.profile-quick-stats__value {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

/* Sidebar brand card (opp detail) */
.profile-sidebar-brand {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.profile-sidebar-brand__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: #fff;
}
.profile-sidebar-brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}
.profile-sidebar-brand__industry {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: -0.375rem;
}
.profile-sidebar-brand__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* Full-width section below profile grid */
.profile-full-section {
  padding: 0 2rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}
.profile-full-section__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}
.profile-full-section__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

/* Responsive for new selectors */
@media (max-width: 1024px) {
  .profile-quick-stats {
    position: static;
  }
}
@media (max-width: 768px) {
  .profile-brand-bar {
    padding: 0.875rem 1.25rem;
  }
  .profile-hero__brand-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  .profile-full-section {
    padding: 0 1.25rem 1.25rem;
  }
  .profile-sidebar-brand {
    position: static;
  }
}

/* ─── Skeleton Loading ───────────────────────────────────── */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-alt) 25%, #f0f0f0 50%, var(--bg-alt) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.skeleton-line {
  height: 14px;
  border-radius: 4px;
}

.skeleton-line--lg { height: 20px; width: 60%; }
.skeleton-line--md { height: 14px; width: 80%; }
.skeleton-line--sm { height: 12px; width: 40%; }
.skeleton-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

/* ─── Screen Transition ──────────────────────────────────── */
@keyframes screenFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.app-screen.active {
  animation: screenFade 0.25s var(--ease);
}

/* ─── Notification Dot ───────────────────────────────────── */
.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--error);
  position: absolute;
  top: -2px;
  right: -2px;
}

/* ─── Status Pill ────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill--active {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-pill--pending {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-pill--completed {
  background: rgba(0, 102, 255, 0.1);
  color: var(--accent);
}

.status-pill--declined {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* ─── Pulse Dot (online/live indicators) ─────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

/* ─── Tooltip ────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  animation: fadeIn 0.15s var(--ease);
}

/* ─── Settings ───────────────────────────────────────────── */
.settings-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
}

.settings-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.settings-section__title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.settings-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-item:first-of-type {
  padding-top: 0;
}

.settings-item__label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
}

.settings-item__value {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.25s var(--ease);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

/* ─── NIL Valuation ─────────────────────────────────────── */

.val-hero {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.val-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.12;
}
.val-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(37,99,235,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.val-hero__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.val-hero__value {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #fff 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.val-hero__grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
}
.val-hero__grade--a { background: rgba(16,185,129,0.2); color: #10B981; }
.val-hero__grade--b { background: rgba(37,99,235,0.2); color: #2563EB; }
.val-hero__grade--c { background: rgba(245,158,11,0.2); color: #F59E0B; }
.val-hero__grade--d { background: rgba(239,68,68,0.2); color: #EF4444; }

.val-hero__share {
  margin-top: 1.25rem;
  position: relative;
  z-index: 1;
}

.val-breakdown {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.val-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.val-category__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.val-category__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text);
}
.val-category__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--accent);
}
.val-category__bar {
  height: 8px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
}
.val-category__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  transition: width 0.8s ease;
}
.val-category__detail {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.val-comparison {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.val-comparison__title {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.val-comparison__percentile {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.val-comparison__chart {
  margin-top: 1rem;
}

.val-dist {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 50px;
}
.val-dist__bar {
  width: 12px;
  border-radius: 3px 3px 0 0;
  background: var(--bg-alt);
  transition: background 0.3s;
}
.val-dist__bar--you {
  background: var(--gradient);
  position: relative;
}
.val-dist__bar--you::after {
  content: 'YOU';
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.5625rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.val-tips {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.val-tip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.val-tip__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.val-tip__icon svg {
  width: 16px;
  height: 16px;
}
.val-tip__text {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.5;
}
.val-tip__impact {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  margin-top: 0.25rem;
}

.val-share-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  width: 400px;
  max-width: 100%;
  position: relative;
  overflow: hidden;
}
.val-share-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0.1;
}
.val-share-card__logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.val-share-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}
.val-share-card__school {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}
.val-share-card__value {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}
.val-share-card__grade {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}
.val-share-card__cta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.val-badge {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}
.val-badge__info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.val-badge__label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.val-badge__value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.val-badge__grade {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8125rem;
}


/* ─── Deal Builder ──────────────────────────────────────── */

.db-stepper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 0;
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.db-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.db-step__num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--bg-alt);
  color: var(--text-dim);
  border: 2px solid var(--border);
  transition: all 0.3s;
  flex-shrink: 0;
}
.db-step--active .db-step__num {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}
.db-step--done .db-step__num {
  background: var(--success);
  color: #fff;
  border-color: transparent;
}
.db-step__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}
.db-step--active .db-step__label {
  color: var(--text);
  font-weight: 600;
}
.db-step--done .db-step__label {
  color: var(--success);
}
.db-step__line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 20px;
}
.db-step__line--done {
  background: var(--success);
}

.db-body {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.db-body__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.db-body__sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.db-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.db-type-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.db-type-card:hover {
  border-color: var(--accent);
  background: var(--gradient-subtle);
}
.db-type-card.selected {
  border-color: var(--accent);
  background: var(--gradient-subtle);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.db-type-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.db-type-card__name {
  font-weight: 600;
  font-size: 0.875rem;
}

.db-deliverable {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.db-deliverable__check {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.db-deliverable__label {
  flex: 1;
  font-size: 0.9375rem;
}
.db-deliverable__qty {
  width: 60px;
  padding: 0.375rem 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

.db-schedule-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.db-schedule-pill {
  padding: 0.625rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.db-schedule-pill:hover {
  border-color: var(--accent);
}
.db-schedule-pill.selected {
  border-color: var(--accent);
  background: var(--gradient-subtle);
  color: var(--accent);
}

.db-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}
.db-toggle-row__label {
  font-weight: 500;
}

.db-contract {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  max-height: 500px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--navy);
}
.db-contract__header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--navy);
}
.db-contract__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
}
.db-contract__section {
  margin-bottom: 1.5rem;
}
.db-contract__section-title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.db-contract__parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.db-contract__party {
  padding: 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.db-contract__sig {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.db-contract__sig-line {
  border-top: 1px solid var(--navy);
  padding-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.db-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.deal-status-track {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 1rem 0;
}
.deal-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.deal-status-dot--active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.2);
}
.deal-status-dot--done {
  background: var(--success);
}
.deal-status-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 8px;
}
.deal-status-line--done {
  background: var(--success);
}


/* ─── Contract Analyzer ─────────────────────────────────── */

.ca-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.ca-container__top {
  height: 3px;
  background: var(--gradient);
}

.ca-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 0.75rem;
}
.ca-score__ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.ca-score__ring svg {
  transform: rotate(-90deg);
}
.ca-score__ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}
.ca-score__ring .ca-ring-bg {
  stroke: var(--bg-alt);
}
.ca-score__ring .ca-ring-fill {
  transition: stroke-dashoffset 1.2s ease;
}
.ca-score__ring .ca-ring-fill--green { stroke: var(--success); }
.ca-score__ring .ca-ring-fill--yellow { stroke: #F59E0B; }
.ca-score__ring .ca-ring-fill--red { stroke: var(--error); }
.ca-score__number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}
.ca-score__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.ca-section {
  border-top: 1px solid var(--border);
  padding: 1.25rem;
}
.ca-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 0.75rem;
}
.ca-section__title {
  font-weight: 700;
  font-size: 0.9375rem;
}
.ca-section__status {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.ca-section__status--pass { background: rgba(16,185,129,0.1); color: var(--success); }
.ca-section__status--caution { background: rgba(245,158,11,0.1); color: #F59E0B; }
.ca-section__status--warning { background: rgba(239,68,68,0.1); color: var(--error); }
.ca-section__body {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ca-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.ca-item--pass { background: rgba(16,185,129,0.05); }
.ca-item--caution { background: rgba(245,158,11,0.05); }
.ca-item--warning { background: rgba(239,68,68,0.05); }
.ca-item__icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  margin-top: 0.0625rem;
}
.ca-item__icon--pass { color: var(--success); }
.ca-item__icon--caution { color: #F59E0B; }
.ca-item__icon--warning { color: var(--error); }

.ca-comparison-bar {
  height: 20px;
  background: var(--bg-alt);
  border-radius: 999px;
  position: relative;
  overflow: visible;
  margin: 1.5rem 0 0.75rem;
}
.ca-comparison-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gradient);
  position: relative;
  min-width: 4px;
}
.ca-comparison-bar__marker {
  position: absolute;
  top: -8px;
  width: 2px;
  height: 36px;
  background: var(--navy);
  transform: translateX(-50%);
}
.ca-comparison-bar__marker-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  white-space: nowrap;
  color: var(--text-muted);
}

.ca-rec {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.ca-rec__priority {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.ca-rec__priority--high { background: rgba(239,68,68,0.1); color: var(--error); }
.ca-rec__priority--medium { background: rgba(245,158,11,0.1); color: #F59E0B; }
.ca-rec__priority--low { background: rgba(16,185,129,0.1); color: var(--success); }
.ca-rec__text {
  font-size: 0.8125rem;
  line-height: 1.5;
}

.ca-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  gap: 1rem;
}
.ca-loading__text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ca-pulse {
  display: flex;
  gap: 6px;
}
.ca-pulse__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: caPulse 1.2s infinite;
}
.ca-pulse__dot:nth-child(2) { animation-delay: 0.2s; }
.ca-pulse__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes caPulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

.ca-plain {
  padding: 0.75rem 1rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text);
}
.ca-plain__section {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.ca-red-flag {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: rgba(239,68,68,0.05);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.ca-red-flag__icon {
  color: var(--error);
  flex-shrink: 0;
}


/* ─── Smart Matches (AI Matchmaking) ──────────────────────── */

/* Hero */
.sm-hero {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid transparent;
  border-image: var(--gradient) 1;
}
.sm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.06) 50%, transparent 100%);
  pointer-events: none;
}
.sm-hero__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 0.375rem;
  position: relative;
}
.sm-hero__sub {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  position: relative;
}
.sm-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  position: relative;
}
.sm-hero__stat {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}
.sm-hero__stat-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFF;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.sm-hero__stat-value--green { color: var(--success); }
.sm-hero__stat-value--blue { color: var(--accent); }
.sm-hero__stat-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Match Score Ring */
.match-score {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}
.match-score--sm {
  width: 44px;
  height: 44px;
}
.match-score__ring {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.match-score__bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}
.match-score__fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease;
}
.match-score__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--text);
}
.match-score--sm .match-score__value {
  font-size: 0.75rem;
}

/* Match Card */
.match-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.match-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.match-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.match-card__info {
  flex: 1;
  min-width: 0;
}
.match-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-card__meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-wrap: wrap;
}
.match-card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-dim);
}
.match-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}
.match-card__tag {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
}
.match-card__stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.875rem;
  padding-bottom: 0.875rem;
  border-bottom: 1px solid var(--border);
}
.match-card__stat {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.match-card__stat strong {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 0.0625rem;
}
.match-card__reasons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Match Reason */
.match-reason {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.match-reason__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.875rem;
}

/* Expandable Detail */
.match-card__expand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.375rem 0;
  margin-bottom: 0.75rem;
  transition: opacity 0.15s ease;
}
.match-card__expand:hover {
  opacity: 0.8;
}
.match-card__expand svg {
  transition: transform 0.2s ease;
}
.match-card__expand.open svg {
  transform: rotate(180deg);
}
.match-card__detail {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.875rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  margin-bottom: 0.875rem;
}
.match-card__detail.open {
  display: flex;
}
.match-card__factor {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.match-card__factor-label {
  font-size: 0.6875rem;
  color: var(--text-muted);
  width: 110px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-card__factor-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.match-card__factor-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.match-card__factor-score {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text);
  width: 28px;
  text-align: right;
  flex-shrink: 0;
}

/* Actions */
.match-card__actions {
  display: flex;
  gap: 0.5rem;
}
.match-card__actions .btn {
  flex: 1;
}
.match-card__actions .btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
}

/* Tier Badges */
.match-tier {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.match-tier--perfect {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}
.match-tier--great {
  background: rgba(37, 99, 235, 0.1);
  color: #2563EB;
}
.match-tier--good {
  background: rgba(245, 158, 11, 0.1);
  color: #D97706;
}
.match-tier--explore {
  background: rgba(139, 92, 246, 0.1);
  color: #7C3AED;
}

/* Filter Bar */
.sm-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.sm-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 1rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}
.sm-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sm-filter-btn.active {
  background: var(--gradient);
  color: #FFF;
  border-color: transparent;
}
.sm-filter-btn__count {
  font-size: 0.6875rem;
  background: rgba(0,0,0,0.1);
  padding: 0.0625rem 0.375rem;
  border-radius: 999px;
}
.sm-filter-btn.active .sm-filter-btn__count {
  background: rgba(255,255,255,0.2);
}

/* Filter Dropdowns Row */
.sm-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}
.sm-filters-row select {
  padding: 0.4375rem 2rem 0.4375rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235A6578' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

/* Match Grid */
.match-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* Empty state for matches */
.sm-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}
.sm-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.3;
}
.sm-empty__title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}
.sm-empty__sub {
  font-size: 0.875rem;
}

/* Dashboard Compact Match Cards */
.dash-match-card {
  min-width: 280px;
  max-width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.dash-match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.dash-match-card__top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.dash-match-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--accent);
  flex-shrink: 0;
}
.dash-match-card__info {
  flex: 1;
  min-width: 0;
}
.dash-match-card__name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-match-card__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.dash-match-card__reason {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.625rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-match-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .athlete-grid,
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .bottom-nav { display: block; }

  .app-main {
    margin-left: 0;
    padding-bottom: 80px;
  }

  .app-screen {
    padding: 1.25rem;
  }

  .athlete-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  /* Dashboard responsive 768px */
  .dash-welcome {
    padding: 1.5rem;
  }

  .dash-welcome__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .dash-welcome__greeting {
    font-size: 1.25rem;
  }

  .dash-actions {
    gap: 0.5rem;
  }

  .dash-action-btn {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
  }

  .dash-carousel__track > * {
    min-width: 260px;
  }

  .activity-card {
    padding: 0.875rem 1rem;
  }

  /* Valuation responsive 768px */
  .val-hero__value { font-size: 2.5rem; }
  .val-hero { padding: 2rem 1.25rem; }
  .val-share-card { width: 100%; max-width: 340px; }

  /* Deal Builder responsive 768px */
  .db-type-grid { grid-template-columns: repeat(2, 1fr); }
  .db-contract__parties { grid-template-columns: 1fr; }
  .db-contract__sig { grid-template-columns: 1fr; }
  .db-stepper { gap: 0.125rem; }
  .db-step__label { display: none; }

  /* Smart Matches responsive 768px */
  .sm-hero__stats { grid-template-columns: repeat(2, 1fr); }
  .sm-hero__title { font-size: 1.375rem; }
  .sm-hero { padding: 1.5rem 1.25rem; }
  .match-grid { grid-template-columns: 1fr; }
  .sm-filters-row { flex-direction: column; }
  .sm-filters-row select { width: 100%; }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .auth-card {
    padding: 1.5rem;
  }

  .role-toggle {
    flex-direction: column;
  }

  /* Dashboard responsive 480px */
  .dash-welcome__greeting {
    font-size: 1.125rem;
  }

  .dash-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .dash-carousel__track > * {
    min-width: 240px;
  }

  .stat-card__value {
    font-size: 1.5rem;
  }

  /* Valuation responsive 480px */
  .val-hero__value { font-size: 2rem; }

  /* Deal Builder responsive 480px */
  .db-type-grid { grid-template-columns: 1fr; }
  .db-body { padding: 1.25rem; }

  /* Smart Matches responsive 480px */
  .match-card__top { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .match-card__actions { flex-direction: column; }
  .sm-hero__stat-value { font-size: 1.25rem; }
  .dash-match-card { min-width: 240px; }
}
