/* ==========================================================================
   CILFÁI NEXUS — Modern Accessible Portal Stylesheet
   Theme: Welsh Slate & Nature Green with High Contrast & Dyslexia Support
   ========================================================================== */

:root {
  /* Colors */
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-secondary: #f1f5f9;
  --bg-hover: #e2e8f0;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  
  /* Brand accents: Welsh Slate Blue & Heather Green */
  --accent-primary: #0284c7;
  --accent-primary-hover: #0369a1;
  --accent-primary-subtle: #e0f2fe;
  --accent-text: #0369a1;
  
  --brand-green: #15803d;
  --brand-green-subtle: #dcfce7;
  --brand-green-text: #166534;
  
  --badge-warning-bg: #fef3c7;
  --badge-warning-text: #92400e;
  --badge-danger-bg: #fee2e2;
  --badge-danger-text: #b91c1c;
  --badge-purple-bg: #f3e8ff;
  --badge-purple-text: #6b21a8;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.06);
  --shadow-focus: 0 0 0 3px rgba(2, 132, 199, 0.4);
  
  /* Fonts */
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Trebuchet MS', 'Lucida Sans Unicode', var(--font-main);
  
  /* Sizing scale */
  --scale-font: 1rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.25s ease-in-out;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-secondary: #1e293b;
  --bg-hover: #334155;
  
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  --border-subtle: #1e293b;
  --border-strong: #334155;
  
  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-primary-subtle: #082f49;
  --accent-text: #7dd3fc;
  
  --brand-green: #22c55e;
  --brand-green-subtle: #052e16;
  --brand-green-text: #86efac;
  
  --badge-warning-bg: #451a03;
  --badge-warning-text: #fde68a;
  --badge-danger-bg: #450a0a;
  --badge-danger-text: #fca5a5;
  --badge-purple-bg: #3b0764;
  --badge-purple-text: #d8b4fe;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.5);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.6);
}

/* High Contrast Theme */
[data-theme="contrast"] {
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f4f4f5;
  --bg-secondary: #e4e4e7;
  --bg-hover: #d4d4d8;
  
  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #18181b;
  
  --border-subtle: #000000;
  --border-strong: #000000;
  
  --accent-primary: #0000ee;
  --accent-primary-hover: #000099;
  --accent-primary-subtle: #e0e7ff;
  --accent-text: #0000ee;
  
  --brand-green: #006600;
  --brand-green-subtle: #e6ffe6;
  --brand-green-text: #004d00;
  
  --badge-warning-bg: #ffff99;
  --badge-warning-text: #000000;
  --badge-danger-bg: #ffcccc;
  --badge-danger-text: #990000;
  --badge-purple-bg: #eeddff;
  --badge-purple-text: #330066;
  
  --shadow-focus: 0 0 0 3px #000000;
}

/* Dyslexia Mode */
[data-dyslexia="true"] {
  --font-main: 'Lexend', 'OpenDyslexic', 'Comic Neue', 'Comic Sans MS', sans-serif;
  --font-heading: 'Lexend', 'OpenDyslexic', 'Comic Neue', 'Comic Sans MS', sans-serif;
  letter-spacing: 0.05em;
  word-spacing: 0.12em;
  line-height: 1.8 !important;
}

/* Font Size Scales */
[data-size="large"] {
  --scale-font: 1.15rem;
}
[data-size="xlarge"] {
  --scale-font: 1.3rem;
}

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

body {
  font-family: var(--font-main);
  font-size: var(--scale-font);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0f766e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  background: #ffffff;
  padding: 2px;
  border: 1px solid var(--border-color);
}

.brand-text h1 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  line-height: 1.2;
}

.brand-text .domain-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Accessibility & Control Bar */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.control-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.control-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.btn-primary {
  background-color: var(--accent-primary);
  color: #ffffff !important;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--accent-primary-hover);
  transform: translateY(-1px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff !important;
  border: 1px solid transparent;
}
.btn-whatsapp:hover {
  background-color: #1ebd5a;
}

.btn-jitsi {
  background-color: #17a2b8;
  color: #ffffff !important;
}
.btn-jitsi:hover {
  background-color: #138496;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 2.5rem 0 1.5rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.hero-content {
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero-welsh-badge {
  display: inline-block;
  background-color: var(--brand-green-subtle);
  color: var(--brand-green-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.85rem;
  border: 1px solid rgba(22, 101, 52, 0.2);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
  display: inline-block;
}

/* ==========================================================================
   Tools & Hub Grid
   ========================================================================== */
.section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.tool-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-header-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.icon-blue {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-primary);
}

.icon-green {
  background-color: var(--brand-green-subtle);
  color: var(--brand-green);
}

.icon-jitsi {
  background-color: #e0f7fa;
  color: #00838f;
}

.icon-whatsapp {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-live {
  background-color: var(--brand-green-subtle);
  color: var(--brand-green-text);
}

.badge-video {
  background-color: #e0f2fe;
  color: #0369a1;
}

.badge-chat {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-portal {
  background-color: #f3e8ff;
  color: #7e22ce;
}

.tool-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.tool-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.tool-features {
  list-style: none;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-features li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.tool-features li::before {
  content: "✔";
  color: var(--brand-green);
  font-weight: bold;
}

.card-action-bar {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Jitsi Room Selector Form */
.jitsi-selector-wrap {
  background-color: var(--bg-secondary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
}

.jitsi-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-secondary);
}

.jitsi-input-group {
  display: flex;
  gap: 0.5rem;
}

.jitsi-room-input {
  flex-grow: 1;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

/* ==========================================================================
   Updates Board Section
   ========================================================================== */
.updates-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-btn {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

.search-input-wrap {
  margin-left: auto;
  position: relative;
  min-width: 240px;
}

.search-input {
  width: 100%;
  padding: 0.4rem 0.75rem 0.4rem 2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-size: 0.85rem;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.8rem;
}

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

.update-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 4px solid var(--accent-primary);
  transition: box-shadow var(--transition-fast);
}

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

.update-card.priority-high {
  border-left-color: #dc2626;
}

.update-card.priority-medium {
  border-left-color: #f59e0b;
}

.update-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.update-date-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.update-category-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.cat-legal {
  background-color: var(--badge-warning-bg);
  color: var(--badge-warning-text);
}
.cat-meetings {
  background-color: var(--badge-purple-bg);
  color: var(--badge-purple-text);
}
.cat-tools {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-text);
}
.cat-community {
  background-color: var(--brand-green-subtle);
  color: var(--brand-green-text);
}

.update-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.update-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.update-links-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.update-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.update-action-btn:hover {
  background-color: var(--accent-primary-subtle);
  color: var(--accent-text);
  border-color: var(--accent-primary);
  text-decoration: none;
}

/* ==========================================================================
   Server Overview Box
   ========================================================================== */
.server-reference-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2.5rem 0;
}

.server-reference-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.server-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  font-size: 0.9rem;
}

.server-metric-item {
  background-color: var(--bg-surface);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.metric-value {
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-top: 0.2rem;
  word-break: break-all;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
}

/* ==========================================================================
   Modal Dialog for Adding Updates
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

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

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.9rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-controls {
    width: 100%;
    justify-content: space-between;
  }
  .search-input-wrap {
    width: 100%;
    margin-left: 0;
  }
  .member-hub-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   Campaign Meetings & Date Voting
   ========================================================================== */
.meetings-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.meetings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.meeting-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.meeting-card.card-poll {
  border-left: 4px solid #f59e0b;
}

.meeting-card.card-confirmed {
  border-left: 4px solid var(--brand-green);
}

.meeting-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.poll-option-row {
  margin-bottom: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  transition: background 0.15s ease;
}

.poll-option-row:hover {
  background: var(--bg-surface);
}

.poll-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.poll-progress-bar {
  background: var(--border-subtle);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.poll-progress-fill {
  background: #f59e0b;
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.meeting-agenda-box {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.5;
  border-left: 3px solid var(--brand-green);
}

/* ==========================================================================
   Member Working Hub (Behind Login)
   ========================================================================== */
.member-hub-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.member-hub-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.member-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.member-hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.member-hub-col {
  display: flex;
  flex-direction: column;
}

.action-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.action-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.minutes-item-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-left: 3px solid #0284c7;
}

/* ==========================================================================
   Volunteer Sign-Up / Access Request Section
   ========================================================================== */
.signup-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.signup-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  max-width: 680px;
  margin: 0 auto;
}

.signup-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-green-subtle);
  color: var(--brand-green-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.member-callout-card {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ==========================================================================
   Doers Mobilization Banner & Hub Pillars
   ========================================================================== */
.doers-banner {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.08) 0%, rgba(2, 132, 199, 0.06) 100%);
  border: 1px solid rgba(21, 128, 61, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.doers-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.doers-title-wrap {
  flex: 1;
  min-width: 280px;
}

.doers-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #15803d;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.doers-heading {
  margin: 0 0 0.35rem 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.doers-subtext {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-doers-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.3);
  transition: all var(--transition-fast);
}

.btn-doers-cta:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(21, 128, 61, 0.4);
}

.hub-pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-green);
}

.pillar-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pillar-card h4 {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-card h4 small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pillar-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Live Meeting Countdown Timer
   ========================================================================== */
.meeting-countdown {
  background: #063e31;
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0 1rem 0;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
  border-left: 4px solid #b9f33b;
}

[data-theme="dark"] .meeting-countdown {
  background: #04241d;
  border-left-color: #22c55e;
}

.countdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.countdown-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.countdown-pulse-dot {
  width: 9px;
  height: 9px;
  background: #b9f33b;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(185, 243, 59, 0.7);
  animation: pulse-countdown 1.8s infinite;
}

@keyframes pulse-countdown {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(185, 243, 59, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(185, 243, 59, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(185, 243, 59, 0); }
}

.countdown-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #b9f33b;
}

.countdown-clock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.clock-segment {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  min-width: 50px;
}

.clock-val {
  display: block;
  font-size: 1.45rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #ffffff;
  line-height: 1.1;
}

.clock-label {
  display: block;
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.clock-delim {
  font-size: 1.25rem;
  font-weight: 700;
  color: #b9f33b;
  margin-bottom: 8px;
}

.countdown-live-now {
  background: linear-gradient(135deg, #15803d, #166534);
  padding: 1rem;
  border-radius: var(--radius-md);
  color: #ffffff;
  text-align: center;
  margin: 0.75rem 0 1rem 0;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.35);
  border: 2px solid #b9f33b;
}

.countdown-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.live-beacon {
  width: 12px;
  height: 12px;
  background: #dc2626;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-beacon 1.2s infinite;
}

@keyframes pulse-beacon {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ==========================================================================
   Public Video Call Actions & Guidance
   ========================================================================== */
.meeting-join-box {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}

.btn-jitsi {
  flex: 1;
  min-width: 220px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 10px 16px;
  background: var(--brand-green);
  border-radius: var(--radius-md);
  color: #ffffff !important;
  box-shadow: 0 2px 5px rgba(21, 128, 61, 0.25);
  transition: all var(--transition-fast);
}

.btn-jitsi:hover {
  background: #166534;
  transform: translateY(-1px);
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-copy-link:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--brand-green);
}

.meeting-public-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
  background: var(--bg-secondary);
  padding: 8px 12px;
  border-radius: 6px;
  margin-bottom: 0.85rem;
}

.meeting-public-notice strong {
  color: var(--text-secondary);
}

/* ==========================================================================
   Roles Needed Callout on Meeting Cards
   ========================================================================== */
.meeting-doer-callout {
  margin-top: 0.85rem;
  padding: 10px 12px;
  background: rgba(21, 128, 61, 0.05);
  border: 1px dashed rgba(21, 128, 61, 0.35);
  border-radius: var(--radius-md);
}

.meeting-doer-head {
  font-size: 0.82rem;
  color: var(--brand-green-text);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.roles-tag-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.role-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid rgba(21, 128, 61, 0.2);
  color: var(--text-primary);
}

.meeting-doer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.link-take-roles {
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: none;
}

.link-take-roles:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Volunteer Role Selection in Sign-Up Form
   ========================================================================== */
.role-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.role-checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.role-checkbox-card:hover {
  background: var(--bg-surface);
  border-color: var(--brand-green);
}

.role-checkbox-card:has(:checked) {
  border-color: var(--brand-green);
  background: rgba(21, 128, 61, 0.08);
}

.role-checkbox-card input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--brand-green);
  width: 16px;
  height: 16px;
}

.role-card-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-card-inner strong {
  font-size: 0.85rem;
  color: var(--text-primary);
}

.role-card-inner small {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

