/* ============================================================
   USIT Design System — v2
   Green #3FA34D · Charcoal #1a1a1a · Inter font
   ============================================================ */

/* ─── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand */
  --green:         #3FA34D;
  --green-dark:    #2d8a3a;
  --green-deeper:  #1e6b28;
  --green-light:   #eef7f0;
  --green-mid:     #c4e8cb;
  --green-glow:    rgba(63,163,77,0.18);

  /* Charcoal scale */
  --charcoal:      #1a1a1a;
  --charcoal-mid:  #252525;
  --charcoal-soft: #2e2e2e;
  --charcoal-mist: #3a3a3a;

  /* Neutrals */
  --bg:            #f9f9f9;
  --bg-white:      #ffffff;
  --bg-raised:     #fafafa;
  --border:        #e8e8e8;
  --border-mid:    #d4d4d4;

  /* Text */
  --text:          #1a1a1a;
  --text-mid:      #4a4a4a;
  --text-muted:    #8a8a8a;
  --text-faint:    #b8b8b8;

  /* Semantic */
  --red:           #e53935;
  --red-light:     #fdecea;
  --orange:        #f57c00;
  --orange-light:  #fff3e0;
  --blue:          #1565c0;
  --blue-light:    #e3f2fd;

  /* Shadows — crisp, layered */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 14px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 28px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.06);

  /* Shape */
  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 6px;
  --radius-lg: 16px;

  /* Motion */
  --ease:     cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.18s;
  --transition: var(--duration) var(--ease);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; display: block; }

/* ─── Base ──────────────────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--green-dark); }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.018em;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p  { color: var(--text-mid); line-height: 1.65; }

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.005em;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(63,163,77,0.32);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover {
  background: var(--green-light);
  color: var(--green-dark);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-danger:hover {
  background: #c62828;
  border-color: #c62828;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border-color: var(--border-mid);
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border-mid);
}

.btn-sm  { padding: 6px 14px;  font-size: 0.8rem; }
.btn-lg  { padding: 13px 28px; font-size: 1rem; }

/* ─── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-green  { background: var(--green-light);  color: var(--green-dark); }
.badge-red    { background: var(--red-light);     color: #b71c1c; }
.badge-gray   { background: #f0f0f0;              color: #555; }
.badge-orange { background: var(--orange-light);  color: var(--orange); }
.badge-blue   { background: var(--blue-light);    color: var(--blue); }

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover { box-shadow: var(--shadow); }
.card-body   { padding: 24px; }
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ─── Forms ──────────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--charcoal);
}
.form-label .required { color: var(--red); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(63,163,77,0.14);
}
.form-control::placeholder { color: var(--text-faint); }
select.form-control { cursor: pointer; appearance: auto; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green);
  cursor: pointer;
}

/* ─── Tables ─────────────────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-white);
}
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 11px 16px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-raised);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 16px;
  border-bottom: 1px solid #f2f2f2;
  font-size: 0.9rem;
  color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fff9; }

/* ─── Flash Messages ─────────────────────────────────────────── */
.flash-message {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.4s ease;
}
.flash-message.fade-out { opacity: 0; }
.flash-success { background: var(--green-light); color: var(--green-dark);  border: 1px solid var(--green-mid); }
.flash-error   { background: var(--red-light);   color: #b71c1c;            border: 1px solid #ffcdd2; }

/* ─────────────────────────────────────────────────────────────
   PUBLIC NAV
   ───────────────────────────────────────────────────────────── */
.public-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Brand link — holds the PNG logo img */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity var(--transition);
  /* slight vertical nudge so logo baseline aligns with nav text */
  margin-top: 1px;
}
.nav-brand:hover { opacity: 0.78; color: inherit; }
.nav-brand img, .nav-brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  padding: 6px 13px;
  border-radius: var(--radius-xs);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-mid);
  text-decoration: none;
  transition: all var(--transition);
  letter-spacing: -0.005em;
}
.nav-link:hover { background: var(--bg); color: var(--charcoal); }
.nav-link.active {
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 600;
}

/* Join pill */
.nav-join-link {
  margin-left: 6px;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 16px;
  letter-spacing: -0.01em;
}
.nav-join-link:hover { background: var(--green-dark) !important; color: #fff !important; box-shadow: 0 2px 12px rgba(63,163,77,0.28); }
.nav-join-link.active { background: var(--green-dark) !important; color: #fff !important; }

/* Admin pill */
.nav-admin-link {
  margin-left: 4px;
  background: var(--charcoal);
  color: #fff !important;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 13px;
}
.nav-admin-link:hover { background: var(--charcoal-soft) !important; color: #fff !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  border-radius: var(--radius-xs);
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 62px; left: 0; right: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    gap: 3px;
  }
  .nav-links.open  { display: flex; }
  .nav-link        { padding: 10px 14px; }
  .nav-join-link   { margin-left: 0; border-radius: var(--radius-sm); text-align: center; }
  .nav-admin-link  { margin-left: 0; text-align: center; }
}

/* ─────────────────────────────────────────────────────────────
   PUBLIC MAIN & FOOTER
   ───────────────────────────────────────────────────────────── */
.public-main {
  min-height: calc(100vh - 62px - 140px);
}

.public-footer {
  background: var(--charcoal);
  padding: 48px 24px;
  text-align: center;
}
.footer-inner { max-width: 560px; margin: 0 auto; }
.footer-text  { font-size: 0.85rem; color: rgba(255,255,255,0.45); margin-bottom: 14px; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.footer-links a  { color: rgba(255,255,255,0.55); font-size: 0.85rem; font-weight: 500; transition: color var(--transition); }
.footer-links a:first-child { color: var(--green); font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-dot  { color: rgba(255,255,255,0.2); font-size: 0.85rem; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.25); }

/* ─────────────────────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────────────────────── */
.hero {
  background: var(--charcoal);
  color: #fff;
  padding: 88px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Soft green radial glow — top right only, no diagonals */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(63,163,77,0.12) 0%, transparent 65%);
  pointer-events: none;
}
/* Subtle bottom-left glow */
.hero::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(63,163,77,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  max-width: 660px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Hero wordmark lockup — kept for reference, no longer rendered in hero */
.hero-wordmark { display: none; }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.035em;
  line-height: 1.08;
}
.hero h1 em { font-style: normal; color: var(--green); }

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.68);
  margin-bottom: 36px;
  line-height: 1.75;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn-primary {
  padding: 13px 30px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: all var(--transition);
  border: 2px solid var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.hero-btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(63,163,77,0.38);
}

.hero-btn-secondary {
  padding: 13px 30px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  border: 2px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}

/* ─────────────────────────────────────────────────────────────
   SECTION LAYOUTS
   ───────────────────────────────────────────────────────────── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px;
}
.section-sm {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.025em;
}
.section-subtitle {
  color: var(--text-muted);
  margin-top: 5px;
  font-size: 0.9rem;
}

/* ─── Join CTA Band ──────────────────────────────────────────── */
.join-band {
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 24px;
  text-align: center;
}
.join-band-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) { .join-band-inner { flex-direction: column; text-align: center; } }
.join-band h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.join-band p { font-size: 0.9rem; color: var(--text-muted); }

/* ─────────────────────────────────────────────────────────────
   MEETING CARDS
   ───────────────────────────────────────────────────────────── */
.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.meeting-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
}
.meeting-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.meeting-card-header {
  background: var(--green-light);
  padding: 15px 20px;
  border-bottom: 1px solid var(--green-mid);
  display: flex;
  align-items: center;
  gap: 12px;
}
.meeting-date-badge {
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 5px 11px;
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.meeting-card-title { font-weight: 700; font-size: 0.9375rem; color: var(--charcoal); line-height: 1.3; }
.meeting-card-body  { padding: 16px 20px; }
.meeting-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.meeting-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.meeting-description {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.upcoming-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green-dark);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─────────────────────────────────────────────────────────────
   PITCH CARDS
   ───────────────────────────────────────────────────────────── */
.pitches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.pitch-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pitch-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.pitch-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}
.pitch-ticker  { font-size: 1.45rem; font-weight: 800; color: var(--charcoal); letter-spacing: -0.025em; line-height: 1; }
.pitch-company { font-size: 0.78rem; color: var(--text-muted); margin-top: 3px; }
.pitch-direction {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pitch-direction.long  { background: var(--green-light); color: var(--green-dark); }
.pitch-direction.short { background: var(--red-light);   color: #b71c1c; }

.pitch-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 14px;
  gap: 12px;
}
.pitch-percent       { font-size: 1.25rem; font-weight: 800; color: var(--charcoal); }
.pitch-percent-label { font-size: 0.72rem; color: var(--text-muted); font-weight: 500; }

.percent-bar {
  height: 5px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
  flex: 1;
}
.percent-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--green);
  transition: width 0.6s var(--ease);
}
.percent-bar-fill.failed { background: var(--red); }

/* Pitch bar in public */
.pitch-bar-track {
  background: #ebebeb;
  border-radius: 999px;
  height: 6px;
  width: 100%;
  overflow: hidden;
  margin: 6px 0 10px;
}
.pitch-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s var(--ease);
}

/* ─────────────────────────────────────────────────────────────
   ADMIN SHELL
   ───────────────────────────────────────────────────────────── */
.admin-body { background: var(--bg); }
.admin-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 232px;
  background: var(--charcoal);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  transition: transform var(--transition);
  z-index: 200;
}

.sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
}
.sidebar-brand svg { display: block; }
.sidebar-wordmark {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.sidebar-admin-pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 2px 8px;
  width: fit-content;
}

.sidebar-nav {
  flex: 1;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--transition);
  letter-spacing: -0.005em;
}
.sidebar-link:hover { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.92); }
.sidebar-link.active { background: var(--green); color: #fff; }
.sidebar-link.active:hover { background: var(--green-dark); color: #fff; }
.sidebar-link svg { flex-shrink: 0; opacity: 0.8; }
.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.sidebar-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar-logout:hover { background: rgba(229,57,53,0.14); color: #ff6b6b; }

/* Admin Content */
.admin-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}
.topbar-title { font-size: 0.9375rem; font-weight: 700; color: var(--charcoal); flex: 1; letter-spacing: -0.01em; }
.topbar-actions { display: flex; gap: 8px; }

.sidebar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.sidebar-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
}

.admin-page { padding: 28px; flex: 1; }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 150;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.visible { display: block; }

@media (max-width: 900px) {
  .sidebar-toggle { display: flex; }
  .admin-sidebar {
    position: fixed;
    top: 0; left: 0;
    transform: translateX(-100%);
    height: 100%;
  }
  .admin-sidebar.open { transform: translateX(0); }
}

/* ─────────────────────────────────────────────────────────────
   ADMIN DASHBOARD
   ───────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.stat-card-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-card-sub { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.stat-card.green .stat-card-value { color: var(--green); }
.stat-card.red   .stat-card-value { color: var(--red); }
.stat-card.blue  .stat-card-value { color: var(--blue); }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) { .dashboard-grid { grid-template-columns: 1fr; } }

/* ─────────────────────────────────────────────────────────────
   PAGE HEADER
   ───────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-title     { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.025em; }
.page-title-sub { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }

/* ─── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-control { width: auto; flex: 1; min-width: 180px; }
.filter-btn {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 600;
  border: 1.5px solid var(--border-mid);
  background: var(--bg-white);
  color: var(--text-mid);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
}
.filter-btn:hover  { background: var(--bg); color: var(--charcoal); }
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

/* ─── Empty State ────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 56px 20px; color: var(--text-muted); }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state h3 { font-size: 1.05rem; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.empty-state p  { font-size: 0.875rem; }

/* ─── Mobile Table Cards ─────────────────────────────────────── */
@media (max-width: 640px) {
  .responsive-table thead { display: none; }
  .responsive-table tr {
    display: block;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin-bottom: 10px;
    padding: 12px 14px;
  }
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: none;
    padding: 5px 0;
    font-size: 0.875rem;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    flex-shrink: 0;
    margin-right: 8px;
  }
  .responsive-table td:last-child {
    padding-top: 10px;
    margin-top: 6px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
  }
  .responsive-table td:last-child::before { display: none; }
  .table-wrapper { border: none; background: none; box-shadow: none; }
  table { background: none; }
}

/* ─── Misc Helpers ───────────────────────────────────────────── */
.text-muted { color: var(--text-muted) !important; }
.text-green { color: var(--green) !important; }
.text-red   { color: var(--red) !important; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:32px}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:8px}.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}.mb-4{margin-bottom:32px}
.d-flex{display:flex}.align-center{align-items:center}.gap-2{gap:8px}.gap-3{gap:12px}.flex-wrap{flex-wrap:wrap}
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ─────────────────────────────────────────────────────────────
   MISC UI
   ───────────────────────────────────────────────────────────── */

/* Confirm link */
.confirm-link {
  color: var(--red); cursor: pointer; font-size: 0.84rem; font-weight: 500;
  text-decoration: none; padding: 4px 8px; border-radius: 4px;
  transition: background var(--transition);
}
.confirm-link:hover { background: var(--red-light); color: var(--red); }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  margin-bottom: 20px; transition: color var(--transition);
}
.back-link:hover { color: var(--charcoal); }

/* Action buttons in tables */
.action-group { display: flex; gap: 6px; align-items: center; }

/* ─────────────────────────────────────────────────────────────
   LOGIN PAGE
   ───────────────────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
/* Single soft green glow — no grid, no diagonals */
.login-page::before {
  content: '';
  position: absolute;
  top: -160px; right: -160px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(63,163,77,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  z-index: 1;
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.login-logo img { display: block; }
.login-logo-text { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.login-sub { color: var(--text-muted); font-size: 0.875rem; text-align: center; margin-bottom: 24px; margin-top: -8px; }

/* ─────────────────────────────────────────────────────────────
   JOIN / DUES PAYMENT PAGE
   ───────────────────────────────────────────────────────────── */
.join-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.join-page-header { text-align: center; margin-bottom: 44px; }
.join-page-header h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.join-page-header p { font-size: 1rem; color: var(--text-mid); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* Step indicator */
.join-steps { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.join-step { display: flex; align-items: center; gap: 8px; }
.join-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.join-step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.join-step.active .join-step-num  { background: var(--green); color: #fff; }
.join-step.active .join-step-label { color: var(--charcoal); }
.join-step.done .join-step-num    { background: var(--green-light); color: var(--green-dark); }
.join-step-line { width: 44px; height: 2px; background: var(--border); margin: 0 4px; flex-shrink: 0; }

/* Dues option cards */
.dues-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 600px) { .dues-options { grid-template-columns: 1fr; } }

.dues-card {
  position: relative;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-white);
  padding: 24px 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  user-select: none;
}
.dues-card:hover { border-color: var(--green); box-shadow: 0 0 0 3px rgba(63,163,77,0.1); transform: translateY(-2px); }
.dues-card.selected { border-color: var(--green); background: var(--green-light); box-shadow: 0 0 0 3px rgba(63,163,77,0.15); }
.dues-card.recommended { border-color: var(--green); }
.dues-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.dues-card-check {
  position: absolute; top: 12px; right: 12px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border-mid); background: var(--bg-white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); font-size: 0.7rem; color: transparent;
}
.dues-card.selected .dues-card-check { background: var(--green); border-color: var(--green); color: #fff; }

.dues-recommended-badge {
  display: inline-block;
  background: var(--green); color: #fff;
  font-size: 0.66rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.dues-card-title    { font-size: 0.9375rem; font-weight: 700; color: var(--charcoal); margin-bottom: 3px; }
.dues-card-subtitle { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 14px; }
.dues-card-price    { font-size: 1.9rem; font-weight: 800; color: var(--charcoal); letter-spacing: -0.03em; line-height: 1; }
.dues-card.selected .dues-card-price { color: var(--green-dark); }
.dues-card-price-sub { font-size: 0.76rem; color: var(--text-muted); margin-top: 4px; }

.join-section-title {
  font-size: 0.9375rem; font-weight: 700; color: var(--charcoal);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.join-section-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* Summary box */
.join-summary {
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: var(--radius-sm); padding: 15px 20px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.join-summary-label  { font-size: 0.875rem; color: var(--green-dark); font-weight: 600; }
.join-summary-amount { font-size: 1.25rem; font-weight: 800; color: var(--green-dark); }

/* Stripe notice */
.stripe-notice {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.76rem; color: var(--text-muted);
  margin-top: 10px; justify-content: center;
}
.stripe-notice svg { flex-shrink: 0; }

/* Pending banner */
.pending-banner {
  background: #fff8e1; border: 1px solid #ffe082;
  border-radius: var(--radius-sm); padding: 15px 18px; margin-bottom: 22px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.875rem; color: #5d4037;
}
.pending-banner-icon { font-size: 1.1rem; flex-shrink: 0; }

/* Result pages */
.result-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.result-card {
  background: var(--bg-white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 48px 40px;
  text-align: center; max-width: 460px; width: 100%;
}
.result-icon {
  width: 68px; height: 68px; border-radius: 50%;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
}
.result-icon.success   { background: var(--green-light); }
.result-icon.cancelled { background: #f4f4f4; }
.result-card h2  { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.result-card p   { color: var(--text-mid); line-height: 1.7; margin-bottom: 22px; }
.result-details {
  background: var(--bg); border-radius: var(--radius-sm);
  padding: 16px; margin-bottom: 22px; text-align: left;
}
.result-details dt { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
.result-details dd { font-size: 0.9rem; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; }
.result-details dd:last-child { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────────
   PITCH VOTING PAGE
   ───────────────────────────────────────────────────────────── */
.vote-page {
  min-height: calc(100vh - 62px - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px 60px;
  background: var(--bg);
}

.vote-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
}

.vote-header {
  background: var(--charcoal);
  padding: 28px 28px 24px;
  text-align: center;
}
.vote-meeting-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.vote-ticker {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.vote-company {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.vote-question {
  padding: 20px 28px 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
}

.vote-form {
  padding: 12px 28px 24px;
}

.vote-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.vote-option {
  position: relative;
  cursor: pointer;
  border-radius: var(--radius);
  border: 2.5px solid var(--border);
  transition: all var(--transition);
  overflow: hidden;
}
.vote-option input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.vote-option-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  gap: 4px;
}
.vote-option-arrow {
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
}
.vote-option-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.vote-option-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.vote-option.long:hover,
.vote-option.long.selected {
  border-color: var(--green);
  background: var(--green-light);
}
.vote-option.long:hover .vote-option-arrow,
.vote-option.long.selected .vote-option-arrow { color: var(--green); }
.vote-option.long:hover .vote-option-label,
.vote-option.long.selected .vote-option-label { color: var(--green-dark); }

.vote-option.short:hover,
.vote-option.short.selected {
  border-color: var(--red);
  background: var(--red-light);
}
.vote-option.short:hover .vote-option-arrow,
.vote-option.short.selected .vote-option-arrow { color: var(--red); }
.vote-option.short:hover .vote-option-label,
.vote-option.short.selected .vote-option-label { color: #b71c1c; }

.vote-thanks,
.vote-closed-msg {
  padding: 32px 28px 28px;
  text-align: center;
}
.vote-thanks h3,
.vote-closed-msg h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}
.vote-thanks p,
.vote-closed-msg p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vote-tally {
  border-top: 1px solid var(--border);
  padding: 20px 28px 24px;
}
.vote-tally-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.vote-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.vote-bar-row:last-child { margin-bottom: 0; }
.vote-bar-label {
  font-size: 0.82rem;
  font-weight: 700;
  min-width: 52px;
}
.vote-bar-label.long  { color: var(--green); }
.vote-bar-label.short { color: var(--red); }
.vote-bar-track {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.vote-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s var(--ease);
}
.vote-bar-fill.long  { background: var(--green); }
.vote-bar-fill.short { background: var(--red); }
.vote-bar-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  min-width: 64px;
  text-align: right;
}

/* ─── About / How to Join (kept for future use) ──────────────── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }
.about-features { list-style: none; margin-top: 20px; }
.about-features li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 14px; color: var(--text-mid); font-size: 0.9375rem;
}
.about-features li::before { content: '↗'; color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

.how-to-join {
  background: var(--green-light); border: 1px solid var(--green-mid);
  border-radius: var(--radius); padding: 28px;
}
.how-to-join h3 { color: var(--green-dark); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.how-to-join ol { padding-left: 20px; color: var(--text-mid); line-height: 2; }
.how-to-join a  { font-weight: 600; }

/* ─── Stats (legacy, kept for future) ───────────────────────── */
.stats-section { background: var(--charcoal); padding: 56px 24px; text-align: center; }
.stats-inner { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.stat-item { color: #fff; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--green); letter-spacing: -0.03em; line-height: 1; }
.stat-label  { margin-top: 6px; font-size: 0.875rem; color: rgba(255,255,255,0.55); font-weight: 500; }
