/* =========================================================
   DESIGN TOKENS
========================================================= */
:root {
  --green:        #29b973;
  --green-dark:   #124e2c;
  --green-light:  #e8f7ef;
  --green-mid:    #1fa35f;
  --blue:         #15689e;
  --blue-mid:     #3472af;
  --blue-light:   #e8f2fb;
  --white:        #ffffff;
  --surface:      #fafaf9;
  --surface-2:    #f4f3f1;
  --border:       #e8e6e3;
  --border-mid:   #d2d0d2;
  --text-primary: #1a1916;
  --text-secondary:#5c5a56;
  --text-muted:   #9b9893;
  --yellow:       #f5a623;
  --yellow-light: #fef6e4;
  --red:          #e5534b;
  --red-light:    #fde8e7;
  --purple:       #7c5cfc;
  --purple-light: #f0ecff;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --radius-pill:  999px;

  --shadow-xs:    0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:    0 2px 8px rgba(0,0,0,.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,.10);
  --shadow-lift:  0 8px 30px rgba(0,0,0,.14);

  --font:         'Plus Jakarta Sans', system-ui, sans-serif;
  --transition:   .2s cubic-bezier(.4,0,.2,1);
}

/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* =========================================================
   PAGE ANIMATION
========================================================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   UTILITY CLASSES
========================================================= */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .03em;
}

.pill-green  { background: var(--green-light);  color: var(--green-mid); }
.pill-blue   { background: var(--blue-light);   color: var(--blue); }
.pill-yellow { background: var(--yellow-light); color: #b37a1a; }
.pill-red    { background: var(--red-light);    color: var(--red); }
.pill-purple { background: var(--purple-light); color: var(--purple); }
.pill-grey   { background: var(--surface-2);    color: var(--text-secondary); }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--white);
}

.avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.avatar-lg { width: 48px; height: 48px; font-size: 17px; }
.avatar-xl { width: 64px; height: 64px; font-size: 22px; }

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar {
  margin-left: -8px;
  box-shadow: 0 0 0 2px var(--white);
}
.avatar-stack .avatar:first-child { margin-left: 0; }

/* Color palette for avatars */
.av-a { background: #d1fadf; color: #166534; }
.av-b { background: #dbeafe; color: #1e40af; }
.av-c { background: #fce7f3; color: #9d174d; }
.av-d { background: #fef3c7; color: #92400e; }
.av-e { background: #ede9fe; color: #5b21b6; }
.av-f { background: #fee2e2; color: #991b1b; }
.av-g { background: #ecfdf5; color: #065f46; }

/* =========================================================
   CARDS
========================================================= */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition), transform var(--transition);
}

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

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

/* =========================================================
   BUTTONS
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  letter-spacing: .01em;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border: none;
}
.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: 0 4px 14px rgba(41,185,115,.35);
  color: var(--white);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  color: var(--text-primary);
}

.btn-ghost {
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text-primary); }

.btn-outline-green {
  border: 1.5px solid var(--green);
  color: var(--green-mid);
  background: transparent;
}
.btn-outline-green:hover {
  background: var(--green-light);
  color: var(--green-mid);
}

.btn-sm { padding: 6px 13px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-xl { padding: 16px 36px; font-size: 16px; }

/* Bootstrap overrides — keep Bootstrap modals working */
.btn-success  { background: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover { background: var(--green-mid); border-color: var(--green-mid); color: #fff; }
.btn-danger   { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #c9342c; border-color: #c9342c; color: #fff; }
.btn-outline-success { border-color: var(--green); color: var(--green-mid); }
.btn-outline-success:hover { background: var(--green-light); color: var(--green-mid); }
.btn-outline-secondary { border-color: var(--border-mid); color: var(--text-secondary); }
.btn-outline-primary { border-color: var(--blue); color: var(--blue); }
.btn-outline-primary:hover { background: var(--blue-light); color: var(--blue); }
.btn-close { background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; }
.btn-close:hover { color: var(--text-primary); }

/* =========================================================
   FORMS
========================================================= */
.input,
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  line-height: 1.5;
}

.input:focus,
.form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(41,185,115,.15);
  outline: none;
}

.input::placeholder,
.form-control::placeholder { color: var(--text-muted); }

textarea.input,
textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-control-sm {
  padding: 7px 11px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Select */
.form-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--white) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239b9893' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") no-repeat right 12px center/14px 14px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  cursor: pointer;
}

.form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(41,185,115,.15);
  outline: none;
}

.form-select-sm {
  padding: 6px 30px 6px 11px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

/* Checkboxes & switches */
.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.form-check-input {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border-mid);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
  accent-color: var(--green);
}

.form-check-input:checked {
  background-color: var(--green);
  border-color: var(--green);
}

.form-check-label {
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
}

.form-switch .form-check-input {
  width: 36px;
  height: 20px;
  border-radius: var(--radius-pill);
  appearance: none;
  -webkit-appearance: none;
  background: var(--border-mid);
  position: relative;
  transition: background var(--transition);
}

.form-switch .form-check-input::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  top: 50%; left: 3px;
  transform: translateY(-50%);
  transition: left var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.form-switch .form-check-input:checked {
  background: var(--green);
  border-color: var(--green);
}

.form-switch .form-check-input:checked::after {
  left: 19px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 7px;
  letter-spacing: .01em;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.input-icon-wrap .input,
.input-icon-wrap .form-control {
  padding-left: 38px;
}

/* =========================================================
   FLASH MESSAGES
========================================================= */
.flash-messages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  animation: fadeIn .25s ease;
}

.alert-success {
  background: var(--green-light);
  border-color: #b6e9d0;
  color: #0d4a23;
}

.alert-danger {
  background: var(--red-light);
  border-color: #f9c5c3;
  color: #7a1a1a;
}

.alert-info {
  background: var(--blue-light);
  border-color: #bbd6f0;
  color: #0c3d63;
}

.alert-warning {
  background: var(--yellow-light);
  border-color: #f8d89a;
  color: #6b4c10;
}

.alert-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  opacity: .6;
  padding: 0 2px;
  flex-shrink: 0;
  transition: opacity var(--transition);
}

.alert-close:hover { opacity: 1; }

/* =========================================================
   LOGIN PAGE
========================================================= */
#login-page,
.login-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Left pane */
.login-left {
  width: 44%;
  background: var(--green-dark);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.login-left::before,
.login-left::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  background: var(--green);
}

.login-left::before {
  width: 480px; height: 480px;
  top: -160px; right: -160px;
}

.login-left::after {
  width: 300px; height: 300px;
  bottom: -80px; left: -80px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.login-logo-img {
  width: 44px; height: 44px;
  object-fit: contain;
}

.login-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.login-logo-text small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  opacity: .6;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.login-invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(41,185,115,.25);
  border: 1px solid rgba(41,185,115,.4);
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  color: #7ee8b0;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.login-tagline {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: 16px;
}

.login-tagline em {
  font-style: normal;
  color: var(--green);
}

.login-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  max-width: 320px;
}

.login-value-props {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value-prop {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-prop-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(41,185,115,.2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
  color: var(--green);
}

.value-prop-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.value-prop-text p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}

.login-social-proof {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.login-social-proof p {
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}

.login-social-proof strong {
  color: rgba(255,255,255,.8);
}

/* Right pane */
.login-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 48px;
  background: var(--surface);
}

.login-form-wrapper {
  width: 100%;
  max-width: 400px;
}

.login-form-header {
  margin-bottom: 36px;
  text-align: center;
}

.login-form-header h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.login-form-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .01em;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  border: none;
  cursor: pointer;
}

.login-btn:hover {
  background: var(--green-mid);
  box-shadow: 0 6px 20px rgba(41,185,115,.38);
  transform: translateY(-1px);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-google-btn {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--white);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all var(--transition);
  cursor: pointer;
}

.login-google-btn:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.login-google-btn img {
  width: 18px; height: 18px;
}

.login-footer-note {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.login-footer-note a {
  color: var(--green-mid);
  font-weight: 600;
}

/* =========================================================
   APP SHELL — SIDEBAR + MAIN
========================================================= */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 232px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 12px;
  z-index: 100;
}

/* Sidebar Logo */
.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sidebar-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.sidebar-logo-text span {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
}

.sidebar-logo-text small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .02em;
}

.sidebar-logo-mark {
  width: 32px; height: 32px;
  border-radius: 9px;
  flex-shrink: 0;
  object-fit: contain;
}

.sidebar-section-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 8px;
  margin-bottom: 4px;
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.sidebar-link i:first-child {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.sidebar-link:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.sidebar-link.active {
  background: var(--green-light);
  color: var(--green-mid);
  font-weight: 600;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 4px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

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

.sidebar-user-info strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-info span {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Mobile hamburger toggle */
.sidebar-toggle {
  display: none;
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 200;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition);
}

.sidebar-toggle:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 99;
  animation: fadeIn .2s ease;
}

/* =========================================================
   MAIN CONTENT AREA
========================================================= */
.main-content {
  flex: 1;
  min-width: 0;
  padding: 28px 32px 48px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.topbar-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
}

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

.notif-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  position: absolute;
  top: 7px; right: 7px;
}

/* =========================================================
   DASHBOARD
========================================================= */
.dash-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.dash-greeting-text h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  line-height: 1.2;
}

.dash-greeting-text p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.dash-date {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.stats-row {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 160px;
  transition: box-shadow var(--transition);
}

.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.stat-body {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: -.01em;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.event-card { overflow: hidden; }

.event-card-banner {
  height: 100px;
  background: linear-gradient(135deg, #124e2c 0%, #1fa35f 60%, #29b973 100%);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 16px;
}

.event-card-featured .event-card-banner {
  background: linear-gradient(135deg, #0d3b21 0%, #124e2c 40%, #1a7a44 100%);
}

.event-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.event-card-body {
  padding: 18px 18px 16px;
}

.event-card-dates {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.event-card-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.event-card-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.event-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.event-card-attendees {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.event-card-stats {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.event-card-stats span {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Activity list */
.activity-list {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: var(--surface); }

.activity-content {
  flex: 1;
}

.activity-content p {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.4;
}

.activity-time {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

/* =========================================================
   EVENT DETAIL
========================================================= */
.event-hero {
  background: linear-gradient(160deg, #0d3b21 0%, #124e2c 45%, #15689e 100%);
  position: relative;
}

.event-hero-inner {
  padding: 24px 32px 20px;
}

.event-tab-bar {
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.event-tabs {
  display: flex;
  gap: 4px;
}

.etab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  border-bottom: 2px solid transparent;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: all var(--transition);
  white-space: nowrap;
  margin-bottom: -1px;
  cursor: pointer;
}

.etab:hover { color: rgba(255,255,255,.85); background: rgba(255,255,255,.07); }

.etab.active {
  color: #fff;
  border-bottom-color: var(--green);
}

.tab-badge {
  background: rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  border-radius: var(--radius-pill);
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 700;
}

.etab.active .tab-badge {
  background: var(--green);
  color: #fff;
}

.etab-content {
  padding: 28px 32px 48px;
}

.etab-panel { display: none; animation: fadeIn .25s ease; }
.etab-panel.active { display: block; }

/* Overview grid */
.overview-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 20px;
}

.overview-main { min-width: 0; }
.overview-sidebar { min-width: 0; }

/* Agenda */
.agenda-day-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.agenda-items { display: flex; flex-direction: column; gap: 8px; }

.agenda-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.agenda-time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  width: 38px;
  flex-shrink: 0;
}

.agenda-detail { flex: 1; }
.agenda-detail strong { font-size: 13.5px; font-weight: 600; display: block; color: var(--text-primary); }
.agenda-detail span { font-size: 12px; color: var(--text-muted); }

/* Hot sessions */
.hot-session {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hot-session-rank {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--green-light);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

.hot-session-body { flex: 1; }
.hot-session-body strong { font-size: 13.5px; font-weight: 600; display: block; margin-bottom: 3px; }
.hot-session-body p { font-size: 12px; color: var(--text-secondary); line-height: 1.4; }

.hot-session-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
  flex-shrink: 0;
}

/* Info row */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-primary);
}

/* Mini activity */
.mini-activity {
  display: flex; align-items: flex-start; gap: 9px;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width .6s ease;
}

/* =========================================================
   SESSIONS
========================================================= */
.votes-remaining-bar {
  background: var(--green-light);
  border: 1px solid #b6e9d0;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
}

.vote-token {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--green);
  transition: all var(--transition);
}

.vote-token.voted {
  background: var(--green);
}

.sessions-list { display: flex; flex-direction: column; gap: 14px; }

.session-card {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.session-rank-badge {
  width: 48px;
  flex-shrink: 0;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 18px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--text-muted);
}

.session-body { flex: 1; padding: 18px 20px; }

.session-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.session-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
}

.session-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.session-stat {
  font-size: 12px;
  color: var(--text-muted);
  display: flex; align-items: center; gap: 5px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  cursor: pointer;
  background: transparent;
}

.vote-btn:hover {
  border-color: var(--green);
  color: var(--green-mid);
  background: var(--green-light);
}

.vote-btn.voted {
  background: var(--green-light);
  border-color: var(--green);
  color: var(--green-mid);
}

/* =========================================================
   PEOPLE
========================================================= */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.people-card { overflow: hidden; }

.people-card-top {
  height: 80px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}

.people-card-body { padding: 14px 16px 10px; }
.people-card-body h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 5px; }

.people-company, .people-location {
  font-size: 12.5px;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 3px;
}

.expertise-tags {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}

.people-card-footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--border);
  display: flex; gap: 6px;
}

/* =========================================================
   RESOURCES
========================================================= */
.resource-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  transition: box-shadow var(--transition);
}

.resource-item:hover { box-shadow: var(--shadow-sm); }

.resource-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.resource-body { flex: 1; min-width: 0; }
.resource-body strong { font-size: 14px; font-weight: 600; display: block; margin-bottom: 2px; }
.resource-body span { font-size: 12.5px; color: var(--text-muted); }

.resource-meta {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}

/* =========================================================
   ACCOUNTABILITY
========================================================= */
.accountability-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.commitments-panel { min-width: 0; }
.wall-panel { min-width: 0; }

.commitment-card {
  display: flex;
  overflow: hidden;
}

.commitment-status-bar {
  width: 4px;
  flex-shrink: 0;
}

.commitment-body {
  flex: 1;
  padding: 14px 16px;
}

.commitment-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.commitment-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.commitment-progress .progress-bar { flex: 1; }

.commitment-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-mid);
  width: 35px;
  text-align: right;
}

.wall-post {
  padding: 16px;
}

/* Accountability standalone */
.checkin-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkin-day {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
}

.checkin-day.checked {
  background: var(--green-light);
  color: var(--green-mid);
  border: 1px solid #b6e9d0;
}

.checkin-day.missed {
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #f9c5c3;
}

.checkin-day.today {
  background: var(--green);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(41,185,115,.35);
}

.checkin-day.future {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* =========================================================
   POST FEED (session discussions)
========================================================= */
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  transition: box-shadow var(--transition);
}

.post-card:hover { box-shadow: var(--shadow-sm); }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.post-header-info { flex: 1; }

.post-header-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.post-header-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.post-body {
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.65;
  white-space: pre-wrap;
}

.post-attachment {
  margin: 0 16px 14px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--blue);
  font-weight: 500;
}

.post-attachment i { color: var(--text-muted); }

.post-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 12px;
  border-top: 1px solid var(--border);
}

.post-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
  background: none;
  border: none;
}

.post-action-btn:hover {
  background: var(--surface-2);
  color: var(--text-secondary);
}

/* =========================================================
   FILE UPLOAD
========================================================= */
.file-upload-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px dashed var(--border-mid);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 13.5px;
  color: var(--text-muted);
}

.file-upload-input:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-mid);
}

.file-upload-input input[type="file"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* =========================================================
   UPLOAD PROGRESS BAR
========================================================= */
.upload-progress-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: uploadFadeIn .25s ease;
}

.upload-progress-track {
  flex: 1;
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--green);
  border-radius: 3px;
  transition: width .15s ease;
}

.upload-progress-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}

@keyframes uploadFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.btn-uploading .fa-spinner {
  animation: uploadSpin .8s linear infinite;
}

/* =========================================================
   COLLAPSIBLE POST CONTENT
========================================================= */
.post-content-wrap {
  position: relative;
}

.post-content-wrap.is-collapsed .post-content-inner {
  max-height: 120px;
  overflow: hidden;
}

.post-content-wrap.is-collapsed .post-content-fade {
  display: block;
}

.post-content-fade {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.post-toggle-btn {
  background: none;
  border: none;
  color: var(--green-mid);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 2px;
}

.post-toggle-btn:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* Pinned posts have yellow background */
[style*="yellow-light"] .post-content-fade {
  background: linear-gradient(transparent, var(--yellow-light));
}

/* =========================================================
   POST GALLERY (multi-file images)
========================================================= */
.post-gallery {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.post-gallery-1 { grid-template-columns: 1fr; }
.post-gallery-2 { grid-template-columns: 1fr 1fr; }
.post-gallery-3 { grid-template-columns: 1fr 1fr; }
.post-gallery-4 { grid-template-columns: 1fr 1fr; }

.post-gallery-3 .post-gallery-item:first-child { grid-row: 1 / 3; }

.post-gallery-item {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--surface-2);
}

.post-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform .2s ease;
}

.post-gallery-item:hover img { transform: scale(1.03); }

.post-gallery-1 .post-gallery-item img {
  max-height: 400px;
  object-fit: contain;
  background: var(--surface-2);
}

.post-gallery-2 .post-gallery-item img,
.post-gallery-3 .post-gallery-item img,
.post-gallery-4 .post-gallery-item img {
  height: 200px;
}

.post-gallery-overflow::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Multi-file selected list in forms */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 600;
}

.file-list-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* =========================================================
   NDA PAGE
========================================================= */
.nda-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 0;
}

.nda-container h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.nda-container .lead {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}

.nda-text-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  margin-bottom: 24px;
  max-height: 400px;
  overflow-y: auto;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-secondary);
  box-shadow: var(--shadow-xs);
}

.nda-text-box::-webkit-scrollbar {
  width: 5px;
}

.nda-text-box::-webkit-scrollbar-track {
  background: var(--surface-2);
  border-radius: 3px;
}

.nda-text-box::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 3px;
}

.nda-text-box h3,
.nda-text-box h4 {
  color: var(--text-primary);
  font-weight: 700;
  margin: 16px 0 6px;
}

.nda-text-box p {
  margin-bottom: 12px;
}

/* =========================================================
   STATUS BADGES (admin)
========================================================= */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-status-active {
  background: var(--green-light);
  color: var(--green-mid);
  border: 1px solid #b6e9d0;
}

.badge-status-pending {
  background: var(--yellow-light);
  color: #b37a1a;
  border: 1px solid #f8d89a;
}

.badge-status-closed {
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge-status-done {
  background: var(--green-light);
  color: var(--green-mid);
}

.badge-status-stuck {
  background: var(--red-light);
  color: var(--red);
}

.badge-status-inprogress {
  background: var(--yellow-light);
  color: #b37a1a;
}

/* Bootstrap badge compat */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
}

.bg-success  { background: var(--green) !important; color: #fff !important; }
.bg-danger   { background: var(--red) !important; color: #fff !important; }
.bg-warning  { background: var(--yellow) !important; }
.text-dark   { color: var(--text-primary) !important; }
.bg-secondary { background: var(--border-mid) !important; color: #fff !important; }
.bg-primary  { background: var(--blue) !important; color: #fff !important; }
.bg-info     { background: var(--blue-mid) !important; color: #fff !important; }
.bg-dark     { background: #1a1916 !important; color: #fff !important; }
.bg-light    { background: var(--surface-2) !important; }
.text-white  { color: #fff !important; }
.text-muted  { color: var(--text-muted) !important; }
.text-success { color: var(--green-mid) !important; }
.text-danger  { color: var(--red) !important; }
.text-primary { color: var(--blue) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.fs-6 { font-size: 13px !important; }

/* Bootstrap modal — minimal reset so it works with our theme */
.modal-backdrop { background: rgba(0,0,0,.5); }
.modal-content {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
}
.modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-body {
  padding: 20px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* =========================================================
   MISC BOOTSTRAP COMPAT
========================================================= */
.d-flex { display: flex; }
.d-inline-flex { display: inline-flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-grow-1 { flex: 1; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 4px !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 12px !important; }
.mb-4 { margin-bottom: 20px !important; }
.mt-2 { margin-top: 8px !important; }
.mt-3 { margin-top: 12px !important; }
.mt-4 { margin-top: 20px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }
.ms-auto { margin-left: auto !important; }
.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.border-0 { border: none !important; }
.border-bottom { border-bottom: 1px solid var(--border) !important; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.h-100 { height: 100%; }
.small { font-size: 12.5px; }
.fw-bold { font-weight: 700; }
.fst-italic { font-style: italic; }
.text-center { text-align: center; }
.text-end { text-align: right; }
.text-decoration-none { text-decoration: none; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 8px !important; }
.p-4 { padding: 20px !important; }
.p-5 { padding: 32px !important; }
.py-4 { padding-top: 20px !important; padding-bottom: 20px !important; }
.py-5 { padding-top: 32px !important; padding-bottom: 32px !important; }
.px-5 { padding-left: 32px !important; padding-right: 32px !important; }
.opacity-50 { opacity: .5 !important; }
.opacity-25 { opacity: .25 !important; }
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.rounded-circle { border-radius: 50% !important; }
.object-fit-cover { object-fit: cover; }
.display-1 { font-size: 72px; line-height: 1; }
.display-4 { font-size: 42px; line-height: 1.1; }
.display-5 { font-size: 36px; font-weight: 800; }
.display-6 { font-size: 28px; font-weight: 800; }
.fs-4 { font-size: 18px; }
.fs-5 { font-size: 15px; }
.col-12 { grid-column: 1 / -1; }

/* List group (Bootstrap compat) */
.list-group {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
}

.list-group-item {
  padding: 12px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  transition: background var(--transition);
}

.list-group-item:last-child { border-bottom: none; }

.list-group-item-action {
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.list-group-item-action:hover {
  background: var(--surface);
}

.list-group-flush {
  border: none;
  border-radius: 0;
}

.list-group-flush .list-group-item {
  border-left: none;
  border-right: none;
}

/* Card Bootstrap compat */
.card-header {
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 15px;
  font-weight: 700;
}

.card-body {
  padding: 18px;
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-size: 12.5px;
  color: var(--text-muted);
}

/* Bootstrap bg overrides for card-header */
.card-header.bg-info    { background: var(--blue-mid) !important; color: #fff; border-color: var(--blue-mid); }
.card-header.bg-success { background: var(--green) !important; color: #fff; border-color: var(--green); }
.card-header.bg-primary { background: var(--blue) !important; color: #fff; border-color: var(--blue); }
.card-header.bg-warning { background: var(--yellow) !important; color: var(--text-primary); border-color: var(--yellow); }
.card-header.bg-dark    { background: #1a1916 !important; color: #fff; border-color: #1a1916; }
.card-header.bg-secondary { background: var(--border-mid) !important; color: #fff; border-color: var(--border-mid); }
.card-header.bg-light   { background: var(--surface-2) !important; color: var(--text-primary); }

/* Collapse */
.collapse { display: none; }
.collapse.show { display: block; }

/* Border compat */
.border-primary { border-color: var(--blue) !important; }
.border-success { border-color: var(--green) !important; }
.border-3 { border-width: 3px !important; }

/* Row / Col grid compat */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -10px;
  margin-right: -10px;
}

.row > * {
  padding-left: 10px;
  padding-right: 10px;
}

.row-cols-1 > * { flex: 0 0 100%; max-width: 100%; }

.g-3 { gap: 12px; }

.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
.col-md-5 { flex: 0 0 41.667%; max-width: 41.667%; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
.col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; }
.col-md-12 { flex: 0 0 100%; max-width: 100%; }
.col { flex: 1 1 0; min-width: 0; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: var(--border-mid);
}

.breadcrumb-item a {
  color: var(--green-mid);
}

.breadcrumb-item.active { color: var(--text-secondary); }

/* Collapse trigger */
[data-bs-toggle="collapse"] { cursor: pointer; }

/* Tooltip placeholder */
[data-bs-toggle="tooltip"] { cursor: help; }

/* Rounded */
.rounded-3 { border-radius: var(--radius-md) !important; }
.rounded-pill { border-radius: var(--radius-pill) !important; }
.rounded-circle { border-radius: 50% !important; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
  .overview-grid { grid-template-columns: 1fr; }
  .accountability-split { grid-template-columns: 1fr; }
  .col-md-4, .col-md-5, .col-md-7, .col-md-8 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 860px) {
  .sidebar { width: 200px; }
  .etab-content, .main-content { padding: 20px 16px 40px; }
  .event-hero-inner { padding: 16px 18px 14px; }
  .event-tab-bar { padding: 0 12px; }
}

@media (max-width: 640px) {
  .login-page,
  #login-page { flex-direction: column; }
  .login-left { width: 100%; padding: 32px 24px; min-height: auto; }
  .login-right { padding: 32px 24px; }

  .sidebar-toggle { display: flex; }

  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    width: 232px;
    height: 100vh;
    transition: left var(--transition);
    z-index: 150;
    box-shadow: var(--shadow-lift);
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay.visible {
    display: block;
  }

  .main-content {
    padding: 60px 16px 40px;
  }

  .stats-row { gap: 8px; }
  .stat-card { min-width: 140px; }

  .etab span:not(.tab-badge) { display: none; }
  .people-grid { grid-template-columns: 1fr 1fr; }

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

  .row { flex-direction: column; }
  .col-md-4, .col-md-5, .col-md-7, .col-md-8, .col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

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

/* =========================================================
   USER-GENERATED CONTENT LINKS
========================================================= */
.feed-list a,
.comments-list a,
.agenda-content-wrap a,
.session-hero-desc a,
a.author-link {
  color: var(--green-mid);
  text-decoration: none;
  font-weight: 600;
}
.feed-list a:hover,
.comments-list a:hover,
.agenda-content-wrap a:hover,
.session-hero-desc a:hover,
a.author-link:hover {
  color: var(--green-dark);
  text-decoration: underline;
}
