/* ICAN Admin — Prairie Design System */

:root {
  --primary: #2D6A3F;
  --primary-light: #3d8a55;
  --primary-dark: #1e4a2c;
  --accent: #B8862B;
  --accent-light: #d4a43e;
  --bg: #F5F3ED;
  --bg-card: #ffffff;
  --bg-sidebar: #1E2418;
  --text: #1E2418;
  --text-muted: #5E6B52;
  --text-light: #8A9478;
  --text-inverse: #F5F3ED;
  --border: #d4d0c5;
  --border-light: #e8e5dd;
  --danger: #c0392b;
  --danger-light: #f9e5e3;
  --success: #2D6A3F;
  --success-light: #e3f0e7;
  --warning: #B8862B;
  --warning-light: #fdf3e0;
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(30, 36, 24, 0.08);
  --shadow-md: 0 4px 12px rgba(30, 36, 24, 0.1);
  --shadow-lg: 0 8px 24px rgba(30, 36, 24, 0.12);
  --transition: 0.2s ease;
  --sidebar-width: 260px;
  --topbar-height: 56px;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: Georgia, 'Times New Roman', serif;

  /* Aliases — referenced in templates but not previously defined */
  --color-border: var(--border);
  --color-muted: var(--text-muted);
  --sidebar-bg: var(--bg-sidebar);
}

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

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

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

/* Admin Layout */
.admin-layout {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 100;
  overflow-y: auto;
}

.sidebar__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(245, 243, 237, 0.1);
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.sidebar__logo:hover { color: var(--text-inverse); opacity: 0.9; }

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

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  color: rgba(245, 243, 237, 0.7);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.sidebar__link:hover {
  color: var(--text-inverse);
  background: rgba(245, 243, 237, 0.08);
}
.sidebar__link--active {
  color: var(--text-inverse);
  background: var(--primary);
}
.sidebar__link--active:hover {
  background: var(--primary-light);
}

.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid rgba(245, 243, 237, 0.1);
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sidebar__user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
}

.sidebar__user-info {
  display: flex;
  flex-direction: column;
}

.sidebar__user-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.sidebar__user-role {
  font-size: 0.75rem;
  color: rgba(245, 243, 237, 0.5);
  text-transform: capitalize;
}

.sidebar__logout {
  display: block;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: rgba(245, 243, 237, 0.5);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.sidebar__logout:hover {
  color: var(--text-inverse);
  background: rgba(245, 243, 237, 0.08);
}

/* Topbar (mobile) */
.topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  align-items: center;
  padding: 0 1rem;
  z-index: 99;
  gap: 1rem;
}

.topbar__toggle {
  background: none;
  border: none;
  color: var(--text-inverse);
  cursor: pointer;
  padding: 0.25rem;
}

.topbar__title {
  flex: 1;
  font-weight: 600;
  font-size: 1rem;
}

.topbar__logout {
  color: rgba(245, 243, 237, 0.6);
  font-size: 0.85rem;
}
.topbar__logout:hover { color: var(--text-inverse); }

/* Main Content */
.main-content {
  grid-column: 2;
  padding: 2rem 2.5rem;
  max-width: 1200px;
  width: 100%;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-header__title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--text);
}

.page-header__subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  width: 100%;
}

.page-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.page-header__stat {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon--posts { background: #e8f0ea; color: var(--primary); }
.stat-card__icon--published { background: #e3f0e7; color: #27ae60; }
.stat-card__icon--submissions { background: #fdf3e0; color: var(--accent); }
.stat-card__icon--subscribers { background: #e8edf5; color: #3b6cb3; }

.stat-card__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

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

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
  overflow: hidden;
}

.card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.card__link {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.card__body {
  padding: 1.25rem;
}

/* Table responsive wrapper */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
}

/* Tables */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  padding: 0.625rem 0.75rem;
  border-bottom: 2px solid var(--border-light);
}

.table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: rgba(45, 106, 63, 0.03);
}

.table__row--unread {
  background: rgba(184, 134, 43, 0.05) !important;
  font-weight: 500;
}

.actions-cell {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge--published { background: var(--success-light); color: var(--success); }
.badge--draft { background: var(--border-light); color: var(--text-muted); }
.badge--new { background: var(--warning-light); color: var(--warning); }
.badge--contact { background: #e8edf5; color: #3b6cb3; }
.badge--newsletter { background: var(--success-light); color: var(--success); }
.badge--volunteer { background: #f0e8f5; color: #7b3fa0; }
.badge--board_application { background: #fdf3e2; color: #b8862b; }
.badge--category { background: rgba(184, 134, 43, 0.12); color: var(--accent); }
.badge--source { background: var(--border-light); color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: white;
}
.btn--primary:hover {
  background: var(--primary-light);
  color: white;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: var(--bg);
  color: var(--text);
}

.btn--danger { color: var(--danger); }
.btn--danger:hover { background: var(--danger-light); }

.btn--sm { padding: 0.3rem 0.5rem; font-size: 0.8rem; }
.btn--full { width: 100%; justify-content: center; }

.btn--lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

/* Forms */
.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg-card);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(45, 106, 63, 0.15);
}

.form-input--lg {
  font-size: 1.25rem;
  padding: 0.625rem 0.75rem;
  font-weight: 600;
}

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

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.inline-form {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.inline-form .form-field {
  margin-bottom: 0;
  flex: 1;
  min-width: 150px;
}

/* Slug Preview */
.slug-preview {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.slug-prefix,
.slug-suffix {
  padding: 0.5rem 0.5rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  white-space: nowrap;
  border: none;
}

.slug-preview .form-input {
  border: none;
  border-radius: 0;
  flex: 1;
}

.slug-preview .form-input:focus {
  box-shadow: none;
}

/* Filters */
.filters {
  margin-bottom: 1.5rem;
}

.filters__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.filters__form .form-select {
  width: auto;
  min-width: 150px;
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert--success { background: var(--success-light); color: var(--primary-dark); }
.alert--error { background: var(--danger-light); color: var(--danger); }
.alert--warning { background: var(--warning-light); color: #8a6419; }

.alert__close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: inherit;
  opacity: 0.6;
  padding: 0 0.25rem;
}
.alert__close:hover { opacity: 1; }

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal--open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 36, 24, 0.5);
}

.modal__content {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
}

.modal__title {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 0.25rem;
}
.modal__close:hover { color: var(--text); }

.modal__body {
  padding: 1.25rem;
}

/* Submission Detail */
.submission-detail__row {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  word-break: break-word;
}

.submission-detail__row strong {
  text-transform: capitalize;
}

.submission-detail hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 0.5rem 0;
}

/* Editor Layout */
.editor-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  align-items: start;
}

.editor-layout__main { min-width: 0; }
.editor-layout__sidebar { min-width: 0; }
.editor-layout__sidebar .card + .card { margin-top: 1.5rem; }

/* Quill Editor */
.quill-container {
  min-height: 400px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
}

.ql-container.ql-snow {
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.ql-editor {
  min-height: 350px;
  line-height: 1.7;
}

/* Post Preview */
.post-preview__image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.post-preview__meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.post-preview__excerpt {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.post-preview__content {
  line-height: 1.8;
}

.post-preview__content h1,
.post-preview__content h2,
.post-preview__content h3 {
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-display);
}

.post-preview__content p {
  margin-bottom: 1rem;
}

.post-preview__content img {
  max-width: 100%;
  border-radius: var(--radius);
}

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

.empty-state a {
  font-weight: 600;
}

/* Utility */
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.8rem; }

/* Login Page */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1rem;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}

.login-card__header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-card__header h1 {
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.5rem;
  margin: 0.75rem 0 0.25rem;
}

.login-card__header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-form .form-field {
  margin-bottom: 1.25rem;
}

.login-form .btn {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .editor-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar--open {
    transform: translateX(0);
  }

  .topbar { display: flex; }

  .main-content {
    grid-column: 1;
    padding: 1.25rem;
    margin-top: var(--topbar-height);
  }

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

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

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .table {
    font-size: 0.8rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  .inline-form {
    flex-direction: column;
    align-items: stretch;
  }
}

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

/* ═══════════════════════════════════════════════════════════════
   VICTORY GARDEN — Tracker, Verification, Member Portal
   ═══════════════════════════════════════════════════════════════ */

/* Sidebar divider */
.sidebar__divider {
  height: 1px;
  background: rgba(245, 243, 237, 0.12);
  margin: 0.5rem 1rem;
}

/* Sidebar section labels */
.sidebar__section-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(245, 243, 237, 0.4);
  padding: 0.75rem 1.25rem 0.25rem;
  margin-top: 0.25rem;
}

/* Sidebar badge (notification count) */
.sidebar__badge {
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  margin-left: auto;
  min-width: 18px;
  text-align: center;
  line-height: 1.3;
}

/* Stats grid — 5 column variant */
.stats-grid--5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .stats-grid--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stats-grid--5 { grid-template-columns: repeat(2, 1fr); } }

/* Garden-themed stat cards */
.stat-card--garden { border-left: 3px solid var(--primary); }
.stat-card--attention { border-left: 3px solid var(--warning); background: var(--warning-light); }
.stat-card--link { text-decoration: none; color: inherit; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); }
.stat-card--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }

.stat-card__icon--gardeners { color: var(--primary); }
.stat-card__icon--sites { color: #5C8A6B; }
.stat-card__icon--harvest { color: var(--accent); }
.stat-card__icon--donated { color: #c0392b; }
.stat-card__icon--hours { color: #2980b9; }
.stat-card__icon--pending { color: var(--warning); }

/* Page header row (flex between title + actions) */
.page-header__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Garden nav grid — quick links on garden dashboard */
.garden-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.garden-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition);
  text-align: center;
}
.garden-nav-card:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.garden-nav-card svg { color: var(--text-muted); transition: color var(--transition); }
.garden-nav-card:hover svg { color: var(--primary); }
.garden-nav-card--accent { border-color: var(--primary); background: var(--success-light); }
.garden-nav-card--accent svg { color: var(--primary); }

/* Form rows (side by side) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* Rank badges (leaderboard) */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.rank-badge--1 { background: #FFD700; color: #5C4A00; border-color: #E6C200; }
.rank-badge--2 { background: #C0C0C0; color: #3A3A3A; border-color: #A8A8A8; }
.rank-badge--3 { background: #CD7F32; color: #3A2200; border-color: #B8722D; }

/* Award badges (inline) */
.award-badge {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.award-badge:last-child { border-bottom: none; }

/* Award cards (grid) */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}
.award-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.award-card__icon { color: var(--accent); flex-shrink: 0; }
.award-card--harvest .award-card__icon { color: #2D6A3F; }
.award-card--volunteer .award-card__icon { color: #2980b9; }
.award-card--community .award-card__icon { color: #8e44ad; }
.award-card--innovation .award-card__icon { color: #d35400; }
.award-card--overall .award-card__icon { color: #c0392b; }
.award-card__name { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.25rem; }
.award-card__recipient { font-weight: 500; margin-bottom: 0.35rem; }
.award-card__desc { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.5rem; }
.award-card > form { position: absolute; top: 0.75rem; right: 0.75rem; }

/* Badge variants for garden statuses */
.badge--active { background: var(--success-light); color: var(--success); }
.badge--inactive { background: var(--bg); color: var(--text-muted); }
.badge--waitlist { background: var(--warning-light); color: #7a5a00; }
.badge--upcoming { background: #e8f0fe; color: #1a56c4; }
.badge--completed { background: var(--bg); color: var(--text-muted); }
.badge--pending { background: var(--warning-light); color: #7a5a00; }
.badge--verified { background: var(--success-light); color: var(--success); }
.badge--flagged { background: var(--danger-light); color: var(--danger); }
.badge--harvest { background: #e3f0e7; color: #2D6A3F; }
.badge--volunteer { background: #e0ecf7; color: #1a56c4; }
.badge--community { background: #f0e3f5; color: #7a2c99; }
.badge--innovation { background: #fde8d5; color: #b8540d; }
.badge--overall { background: #fce4e4; color: #a32929; }
.badge--info { background: var(--bg); color: var(--text-muted); font-weight: 400; }

/* Button variants for garden */
.btn--success {
  background: var(--success);
  color: white;
  border: 1px solid var(--success);
}
.btn--success:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: white; }

.btn--warning {
  background: var(--warning);
  color: white;
  border: 1px solid var(--warning);
}
.btn--warning:hover { background: #9a7224; border-color: #9a7224; color: white; }

/* ── Verification system ───────────────────────────────────── */

/* Verification summary bar */
.verification-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.verification-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.verification-stat:hover { color: var(--text); background: var(--bg); }
.verification-stat--active { border-color: var(--border); background: var(--bg); color: var(--text); font-weight: 500; }
.verification-stat__count {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 1.5rem;
  text-align: center;
}
.verification-stat--pending .verification-stat__count { color: var(--warning); }
.verification-stat--verified .verification-stat__count { color: var(--success); }
.verification-stat--flagged .verification-stat__count { color: var(--danger); }

/* Verification toolbar (batch actions) */
.verify-toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.verify-toolbar__select-all {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}
.verify-toolbar__count {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.verify-toolbar__actions {
  display: flex;
  gap: 0.5rem;
}
.verify-toolbar__actions .btn { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Verify table */
.table--verify tbody tr { cursor: pointer; }
.table--verify tbody tr:hover { background: rgba(45, 106, 63, 0.04); }
.verify-row--flagged { background: rgba(192, 57, 43, 0.04); }
.verify-row--flagged:hover { background: rgba(192, 57, 43, 0.08); }
.verify-row--verified { background: rgba(45, 106, 63, 0.03); }

/* Verify group card */
.verify-group { margin-bottom: 1rem; }
.verify-group__header { border-bottom: 1px solid var(--border-light); }
.verify-group__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.verify-group__title .card__title { margin: 0; }

/* Flag reason */
.flag-reason {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--danger-light);
  color: var(--danger);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

/* Verify empty state */
.verify-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3rem 1rem;
  text-align: center;
}
.verify-empty h3 { font-family: var(--font-display); color: var(--success); }

/* ── Member Portal ─────────────────────────────────────────── */

.member-body { background: var(--bg); }

.member-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.member-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}
.member-nav {
  display: flex;
  gap: 0.25rem;
  flex: 1;
}
.member-nav__link {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.member-nav__link:hover { color: var(--text); background: var(--bg); }
.member-nav__link--active {
  color: var(--primary);
  background: var(--success-light);
}

.member-header__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.member-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.member-footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
}

/* Member leaderboard highlight */
.leaderboard-me {
  background: rgba(45, 106, 63, 0.08);
  font-weight: 500;
}
.leaderboard-me td { font-weight: 500; }

/* Table actions (keep compact) */
.table__actions {
  white-space: nowrap;
  text-align: right;
}

/* Event type badges */
.badge--general { background: var(--bg); color: var(--text-muted); }
.badge--meeting { background: #e0ecf7; color: #1a56c4; }
.badge--garden { background: #e3f0e7; color: #2D6A3F; }
.badge--legislative { background: #fde8d5; color: #b8540d; }
.badge--fundraiser { background: #f0e3f5; color: #7a2c99; }
.badge--social { background: #fce4e4; color: #a32929; }

/* Analytics chart container */
.chart-card { min-height: 300px; position: relative; }
.chart-card canvas { max-height: 280px; }
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .analytics-grid { grid-template-columns: 1fr; }
}

/* ── Mobile Hamburger Menu (Member & Director Portals) ──── */

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  color: inherit;
  transition: background var(--transition);
  flex-shrink: 0;
}
.mobile-menu-toggle:hover {
  background: rgba(0,0,0,0.06);
}
.mobile-menu-toggle svg {
  display: block;
}

/* Mobile nav drawer (shared between member & director) */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  z-index: 1000;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}
.mobile-nav-drawer--open {
  transform: translateX(0);
}

/* Member drawer styling */
.mobile-nav-drawer--member {
  background: var(--bg-card);
  box-shadow: var(--shadow-lg);
}

/* Director drawer styling */
.mobile-nav-drawer--director {
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  box-shadow: 4px 0 24px rgba(0,0,0,0.3);
}

.mobile-nav-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  flex-shrink: 0;
}
.mobile-nav-drawer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}
.mobile-nav-drawer--member .mobile-nav-drawer__brand {
  color: var(--primary);
}
.mobile-nav-drawer--director .mobile-nav-drawer__brand {
  color: var(--text-inverse);
}
.mobile-nav-drawer__close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
  color: inherit;
  transition: background var(--transition);
}
.mobile-nav-drawer__close:hover {
  background: rgba(0,0,0,0.06);
}
.mobile-nav-drawer--director .mobile-nav-drawer__close:hover {
  background: rgba(255,255,255,0.1);
}

.mobile-nav-drawer__links {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

/* Member drawer links */
.mobile-nav-drawer--member .mobile-nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-nav-drawer--member .mobile-nav-drawer__link:hover {
  color: var(--text);
  background: var(--bg);
}
.mobile-nav-drawer--member .mobile-nav-drawer__link--active {
  color: var(--primary);
  background: var(--success-light);
}

/* Director drawer links */
.mobile-nav-drawer--director .mobile-nav-drawer__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(245, 243, 237, 0.7);
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-nav-drawer--director .mobile-nav-drawer__link:hover {
  color: var(--text-inverse);
  background: rgba(245, 243, 237, 0.08);
}
.mobile-nav-drawer--director .mobile-nav-drawer__link--active {
  color: var(--text-inverse);
  background: rgba(45, 106, 63, 0.5);
}

.mobile-nav-drawer__footer {
  padding: 1rem 1.25rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.mobile-nav-drawer--member .mobile-nav-drawer__footer {
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
}
.mobile-nav-drawer--director .mobile-nav-drawer__footer {
  border-top: 1px solid rgba(245, 243, 237, 0.12);
  color: rgba(245, 243, 237, 0.7);
}
.mobile-nav-drawer__footer a {
  color: inherit;
}

/* Overlay behind drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 36, 24, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-overlay--open {
  opacity: 1;
  pointer-events: auto;
}

/* Responsive member header */
@media (max-width: 768px) {
  /* Show hamburger, hide horizontal nav */
  .member-header .mobile-menu-toggle { display: flex; }
  .mobile-nav-drawer--member { display: flex; }
  .mobile-nav-overlay--member { display: block; }

  .member-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .member-nav { display: none; }
  .member-header__user { margin-left: auto; }
  .member-main { padding: 1rem; }
  .garden-nav-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }
  .garden-nav-card { padding: 1rem 0.5rem; font-size: 0.8rem; }
  .verification-bar { flex-wrap: wrap; }
  .verify-toolbar { flex-direction: column; align-items: stretch; }
  .verify-toolbar__actions { justify-content: flex-start; }
  .awards-grid { grid-template-columns: 1fr; }
}

/* ── Portal Management Cards (Admin Dashboard) ──────────── */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.portal-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  position: relative;
}
.portal-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--text);
}
.portal-card--current {
  background: var(--bg);
  cursor: default;
}
.portal-card--current:hover {
  border-color: var(--border-light);
  box-shadow: none;
}
.portal-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.portal-card__info { flex: 1; }
.portal-card__info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.portal-card__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}
.portal-card__action {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}
@media (max-width: 900px) {
  .portal-grid { grid-template-columns: 1fr; }
}

/* ── Director Portal ──────────────────────────────────────── */

.director-body { background: var(--bg); }

.director-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.director-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.625rem 2rem;
  background: var(--bg-sidebar);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.director-header__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-inverse);
  margin-right: 0.5rem;
}
.director-nav {
  display: flex;
  gap: 0.15rem;
  flex: 1;
  overflow-x: auto;
}
.director-nav__link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(245, 243, 237, 0.7);
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.director-nav::-webkit-scrollbar { height: 3px; }
.director-nav::-webkit-scrollbar-thumb { background: rgba(245,243,237,0.3); border-radius: 3px; }
.director-nav__link:hover {
  color: var(--text-inverse);
  background: rgba(245, 243, 237, 0.1);
}
.director-nav__link--active {
  color: var(--text-inverse);
  background: rgba(45, 106, 63, 0.5);
}

.director-header__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(245, 243, 237, 0.8);
}
.director-header__name { font-weight: 500; }
.director-header__role {
  font-size: 0.75rem;
  opacity: 0.65;
}
.director-header__user .btn--outline {
  border-color: rgba(245, 243, 237, 0.3);
  color: rgba(245, 243, 237, 0.8);
}
.director-header__user .btn--outline:hover {
  border-color: var(--text-inverse);
  color: var(--text-inverse);
}

.director-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
}

.director-footer {
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
}

/* Director Grid */
.director-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Director Login */
.director-login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sidebar);
}
.director-login-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.director-login-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.director-login-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.75rem;
}
.director-login-header p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.director-login-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

/* Meeting Preview (dashboard) */
.director-meeting-preview {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.director-meeting-preview__date {
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  text-align: center;
  min-width: 56px;
}
.director-meeting-preview__day {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}
.director-meeting-preview__month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.director-meeting-preview__info h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.director-meeting-preview__info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

/* Vote Item (dashboard) */
.director-vote-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}
.director-vote-item:last-child { border-bottom: none; }
.director-vote-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.director-vote-item__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* Doc Item (dashboard) */
.director-doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}
.director-doc-item:last-child { border-bottom: none; }
.director-doc-item__icon {
  color: var(--primary);
  flex-shrink: 0;
}
.director-doc-item__info {
  flex: 1;
}
.director-doc-item__info a {
  font-weight: 500;
  font-size: 0.9rem;
  display: block;
}
.director-doc-item__info span {
  font-size: 0.78rem;
}

/* Vote Card (votes page) */
.director-vote-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: var(--bg-card);
}
.director-vote-card__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.director-vote-card__header h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.director-vote-card__body {
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}
.director-vote-card__footer {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border-light);
  background: rgba(245, 243, 237, 0.5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.director-vote-card__actions {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Vote Tally */
.director-vote-tally {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.director-vote-tally__for { color: var(--success); }
.director-vote-tally__against { color: var(--danger); }
.director-vote-tally__abstain { color: var(--text-muted); }

/* Doc Filters */
.director-doc-filters {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

/* Roster Cards */
.director-roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1rem;
}
.director-roster-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.director-roster-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.director-roster-card__info { flex: 1; }
.director-roster-card__info h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.director-roster-card__title {
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}
.director-roster-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-items: flex-end;
}

/* Preformatted text (agendas, minutes) */
.director-preformatted {
  white-space: pre-wrap;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  background: var(--bg);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

/* Modal system */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0.25rem;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal-content form {
  padding: 1.5rem;
}
.modal-content .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Inline form control */
.form-control--inline {
  padding: 0.3rem 0.5rem;
  font-size: 0.82rem;
}

/* Stats grid variants */
.stats-grid--3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stats-grid--4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Motion type badges */
.badge--resolution { background: #e0ecf7; color: #1a56c4; }
.badge--policy { background: #e3f0e7; color: #2D6A3F; }
.badge--budget { background: #fdf3e0; color: #B8862B; }
.badge--appointment { background: #f0e3f5; color: #7a2c99; }
.badge--amendment { background: #fde8d5; color: #b8540d; }
.badge--other { background: var(--bg); color: var(--text-muted); }

/* Meeting type badges (reuse some event ones) */
.badge--regular { background: #e0ecf7; color: #1a56c4; }
.badge--special { background: #fdf3e0; color: #B8862B; }
.badge--annual { background: #e3f0e7; color: #2D6A3F; }
.badge--committee { background: #f0e3f5; color: #7a2c99; }
.badge--emergency { background: #fce4e4; color: #a32929; }

/* Document category badges (resolution & policy reuse motion type badges above) */
.badge--bylaws { background: #e0ecf7; color: #1a56c4; }
.badge--financial { background: #fdf3e0; color: #B8862B; }
.badge--legal { background: #fce4e4; color: #a32929; }
.badge--minutes { background: var(--bg); color: var(--text-muted); }
.badge--report { background: #f0e3f5; color: #7a2c99; }
.badge--compliance { background: #fde8d5; color: #b8540d; }

/* Locked badge */
.badge--locked { background: #fce4e4; color: #a32929; font-weight: 600; }
.badge--garden { background: var(--success-light); color: var(--success); }

/* Responsive director */
@media (max-width: 900px) {
  .director-grid { grid-template-columns: 1fr; }
  .stats-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .director-roster { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  /* Show hamburger, hide horizontal nav */
  .director-header .mobile-menu-toggle { display: flex; }
  .mobile-nav-drawer--director { display: flex; }
  .mobile-nav-overlay--director { display: block; }

  .director-header {
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  .director-nav { display: none; }
  .director-header__user { margin-left: auto; }
  .director-main { padding: 1rem; }
  .stats-grid--3 { grid-template-columns: 1fr; }
  .stats-grid--4 { grid-template-columns: 1fr; }
  .director-vote-card__footer { flex-direction: column; align-items: flex-start; }
  .modal-content { max-width: 100%; margin: 0.5rem; }
}

/* ── Onboarding Progress Stepper ─────────────────────────── */
.onboarding-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 2rem;
  max-width: 700px;
  padding: 1.5rem 1rem;
}
.onboarding-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}
.onboarding-step__number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  background: #e0e0e0;
  color: #888;
  transition: all 0.2s;
}
.onboarding-step--active .onboarding-step__number {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(45,106,63,0.15);
}
.onboarding-step--done .onboarding-step__number {
  background: var(--success);
  color: #fff;
}
.onboarding-step__label {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  white-space: nowrap;
}
.onboarding-step--active .onboarding-step__label {
  color: var(--primary);
  font-weight: 600;
}
.onboarding-step--done .onboarding-step__label {
  color: var(--success);
}
.onboarding-step__line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  min-width: 30px;
  margin: 0 0.25rem;
  margin-bottom: 1.2rem;
  transition: background 0.2s;
}
.onboarding-step__line--done {
  background: var(--success);
}

/* Onboarding card */
.onboarding-card {
  max-width: 680px;
  margin: 0 auto;
}
.onboarding-card .card__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.onboarding-card .card__title svg {
  flex-shrink: 0;
  color: var(--primary);
}

/* Onboarding checkbox */
.onboarding-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
}
.onboarding-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

/* Onboarding document list */
.onboarding-doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.onboarding-doc-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8f8f6;
  border: 1px solid #e8e6e0;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.onboarding-doc-item:hover {
  border-color: var(--primary);
  background: rgba(45,106,63,0.04);
}
.onboarding-doc-item svg {
  color: var(--primary);
  flex-shrink: 0;
}
.onboarding-doc-item div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Onboarding badge in admin */
.badge--onboarding { background: #fff3cd; color: #856404; }
.badge--onboarded { background: var(--success-light); color: var(--success); }

@media (max-width: 600px) {
  .onboarding-progress { gap: 0; padding: 1rem 0.5rem; }
  .onboarding-step__label { font-size: 0.65rem; }
  .onboarding-step__number { width: 30px; height: 30px; font-size: 0.75rem; }
  .onboarding-step__line { min-width: 16px; }
}

/* Cross-portal navigation links */
.member-nav__link--portal,
.director-nav__link--portal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  margin-left: 0.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
  font-size: 0.8rem;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.member-nav__link--portal:hover,
.director-nav__link--portal:hover {
  opacity: 1;
}

/* ── Activity Feed ─────────────────────────────── */
.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}
.activity-item:last-child { border-bottom: none; }
.activity-item__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 106, 63, 0.08);
  border-radius: 6px;
  color: var(--primary);
  margin-top: 2px;
}
.activity-item__content {
  flex: 1;
  min-width: 0;
}
.activity-item__text {
  display: block;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text);
}
.activity-item__details {
  display: block;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}
.activity-item__time {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--color-muted);
  white-space: nowrap;
  margin-top: 2px;
}

/* ── Volunteer Notes ─────────────────────────────── */
.notes-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.note-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}
.note-item:last-child { border-bottom: none; }
.note-item__indicator {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 6px;
}
.note-item__indicator--phone_call { background: #6366f1; }
.note-item__indicator--email { background: #f59e0b; }
.note-item__indicator--meeting { background: #10b981; }
.note-item__indicator--issue { background: #ef4444; }
.note-item__indicator--follow_up { background: #ec4899; }
.note-item__body {
  flex: 1;
  min-width: 0;
}
.note-item__meta {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}
.note-item__text {
  font-size: 0.85rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

/* ── Bulk Actions Bar ─────────────────────────────── */
.bulk-bar {
  display: none;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.bulk-bar.active { display: flex; }
.bulk-bar__count { font-weight: 600; }
.bulk-bar .btn {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
}
.bulk-bar .btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ── Notifications Dropdown (Volunteer Portal) ──── */
.notif-bell {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0.3rem;
}
.notif-bell__count {
  position: absolute;
  top: -4px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notif-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
}
.notif-dropdown.open { display: block; }
.notif-dropdown__header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.85rem;
}
.notif-dropdown__item {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.82rem;
  line-height: 1.4;
}
.notif-dropdown__item:last-child { border-bottom: none; }
.notif-dropdown__item--unread {
  background: rgba(45, 106, 63, 0.04);
}
.notif-dropdown__empty {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.82rem;
}

/* ── RSVP Buttons (Director Portal) ──────────────── */
.rsvp-group {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s;
}
.rsvp-btn:hover { border-color: var(--primary); color: var(--primary); }
.rsvp-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.rsvp-btn.active--remote {
  background: #6366f1;
  border-color: #6366f1;
  color: #fff;
}
.rsvp-btn.active--tentative {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #fff;
}
.rsvp-btn.active--declined {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

/* ── Board Calendar View ─────────────────────────── */
.board-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  overflow-x: auto;
  min-width: 0;
}
.board-calendar__header {
  background: var(--sidebar-bg);
  color: #fff;
  padding: 0.5rem 0.25rem;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.board-calendar__day {
  background: #fff;
  min-height: 60px;
  padding: 0.35rem;
  font-size: 0.78rem;
  position: relative;
}
.board-calendar__day--other {
  background: var(--bg);
  color: var(--color-muted);
}
.board-calendar__day--today {
  background: rgba(45, 106, 63, 0.06);
}
.board-calendar__num {
  font-weight: 600;
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}
.board-calendar__event {
  display: block;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
  font-size: 0.68rem;
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  text-decoration: none;
  color: #fff;
}
@media (min-width: 768px) {
  .board-calendar__event {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.board-calendar__event--meeting { background: var(--primary); }
.board-calendar__event--vote { background: #6366f1; }
.board-calendar__event--coi { background: #f59e0b; color: #1a1a1a; }

/* ── Program Dashboard Cards (Volunteer Portal) ──── */
.program-dashboard {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.program-dashboard__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.program-dashboard__icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.program-dashboard__title {
  font-weight: 600;
  font-size: 1rem;
}
.program-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.75rem;
}
.program-dashboard__stat {
  text-align: center;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: var(--radius);
}
.program-dashboard__stat-value {
  display: block;
  font-weight: 700;
  font-size: 1.2rem;
}
.program-dashboard__stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-muted);
  margin-top: 0.15rem;
}

/* ═══════════════════════════════════════
   Empty States
   ═══════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
}
.empty-state__icon { margin-bottom: 0.75rem; opacity: 0.5; }
.empty-state__title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.empty-state__text  { font-size: 0.85rem; }

/* ═══════════════════════════════════════
   Print Styles
   ═══════════════════════════════════════ */
@media print {
  .sidebar, .page-header__actions, .btn, .filters,
  .bulk-bar, .table__actions, .form-actions,
  .modal, .modal-overlay, .verification-bar { display: none !important; }

  .main-content { margin-left: 0 !important; padding: 1rem !important; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  body { font-size: 11pt; }
  a { text-decoration: none; color: inherit; }
  table { font-size: 9pt; }
}

/* ═══════════════════════════════════════
   Dark Mode
   ═══════════════════════════════════════ */
[data-theme="dark"] {
  --bg: #141A12;
  --bg-card: #1e2418;
  --text: #D4D9CF;
  --text-muted: #8A9478;
  --text-light: #6B7660;
  --border: #2e3828;
  --border-light: #252e1e;
  --primary: #5DA06E;
  --primary-light: #6bb87d;
  --primary-dark: #4a8a5a;
  --accent: #D4A43A;
  --accent-light: #e0b84e;
  --danger-light: #3a1a18;
  --success-light: #1a2e1e;
  --warning-light: #2e2818;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card {
  background: var(--bg-card);
}
[data-theme="dark"] .table th {
  background: #1a2215;
}
[data-theme="dark"] .table td {
  border-color: var(--border);
}
[data-theme="dark"] .table tr:hover td {
  background: rgba(93, 160, 110, 0.05);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1a2215;
  color: var(--text);
  border-color: var(--border);
}
[data-theme="dark"] .modal-content,
[data-theme="dark"] .notif-dropdown {
  background: var(--bg-card);
  border-color: var(--border);
}
[data-theme="dark"] .member-header,
[data-theme="dark"] .director-header {
  background: #141A12;
  border-color: var(--border);
}
[data-theme="dark"] .badge {
  opacity: 0.9;
}
[data-theme="dark"] .alert--success {
  background: var(--success-light);
  border-color: var(--primary);
  color: var(--primary);
}
[data-theme="dark"] .alert--error {
  background: var(--danger-light);
  border-color: var(--danger);
  color: #ef7777;
}

/* Dark mode toggle button */
.dark-mode-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  color: inherit;
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.dark-mode-toggle:hover { opacity: 1; }
.dark-mode-toggle svg { width: 18px; height: 18px; }
[data-theme="dark"] .dark-mode-toggle .icon-sun { display: inline; }
[data-theme="dark"] .dark-mode-toggle .icon-moon { display: none; }
.dark-mode-toggle .icon-sun { display: none; }
.dark-mode-toggle .icon-moon { display: inline; }

/* ═══════════════════════════════════════
   Milestone Badges
   ═══════════════════════════════════════ */
.milestone-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.milestone-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
}
.milestone-badge--earned {
  background: var(--success-light);
  color: var(--primary);
  border-color: var(--primary);
}
.milestone-badge--locked {
  background: var(--bg);
  color: var(--text-light);
  border-color: var(--border);
  opacity: 0.5;
}
.milestone-badge__icon { font-size: 0.9rem; }

/* Quick Action Cards */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.5rem; }
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition);
  text-align: center;
}
.quick-action:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  color: var(--primary);
  transform: translateY(-1px);
}
.quick-action__icon { font-size: 1.5rem; }
.quick-action__label { font-size: 0.82rem; font-weight: 500; }

/* ═══════════════════════════════════════
   Global Search
   ═══════════════════════════════════════ */
.sidebar input[type="text"]::placeholder {
  color: rgba(245, 243, 237, 0.4);
}
[data-theme="dark"] .sidebar input[type="text"] {
  background: rgba(245, 243, 237, 0.08);
  border-color: rgba(245, 243, 237, 0.12);
  color: var(--text-inverse);
}
