/* LEHAR Students Union 2026-27 — Mobile-First Dark & Brand Blue Theme
   Color Balance: ~60% Black/Charcoal, ~30% LEHAR Navy/Tide Blue/Aqua, ~10% White */

:root {
  --bg-canvas: #07090d;
  --bg-surface: #0d1118;
  --bg-card: #111722;
  --bg-card-hover: #161e2e;
  --bg-input: #0a0e15;

  --lehar-navy: #01265f;
  --lehar-navy-deep: #02183d;
  --lehar-navy-mid: #08347a;
  --tide-blue: #2f6fbf;
  --surf-aqua: #3cc8d8;
  --foam-mist: #e8f0fa;
  --spark-saffron: #f5a524;

  --white: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #9fb0c7;
  --text-muted: #6c7d96;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-blue: rgba(47, 111, 191, 0.38);

  --status-pending: #ef4444;
  --status-pending-bg: rgba(239, 68, 68, 0.14);
  --status-review: #f5a524;
  --status-review-bg: rgba(245, 165, 36, 0.15);
  --status-progress: #2f6fbf;
  --status-progress-bg: rgba(47, 111, 191, 0.22);
  --status-resolved: #22c55e;
  --status-resolved-bg: rgba(34, 197, 94, 0.14);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45);
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Montserrat', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, rgba(1, 38, 95, 0.35), transparent 45%),
              var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* Top Navbar */
.top-navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 9, 13, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 8px 0;
}

.brand-logo-img {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.brand-subtitle {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--surf-aqua);
  line-height: 1.15;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 6px;
}

@media (min-width: 860px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(47, 111, 191, 0.18);
}

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

.btn-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--lehar-navy);
  border: 1px solid var(--border-blue);
  color: var(--white);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-nav-pill:hover {
  background: var(--lehar-navy-mid);
}

.menu-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle-btn .menu-line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}

.menu-toggle-btn.is-open .menu-line-1 {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle-btn.is-open .menu-line-2 {
  opacity: 0;
  transform: scaleX(0.4);
}

.menu-toggle-btn.is-open .menu-line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 860px) {
  .menu-toggle-btn {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 66px 0 0 0;
  z-index: 45;
  background: rgba(7, 9, 13, 0.96);
  backdrop-filter: blur(18px);
  padding: 20px 16px 28px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
  transition: opacity 0.26s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.26s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  color: var(--white);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.26s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.16s ease, border-color 0.16s ease;
}

.mobile-drawer.open .drawer-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-drawer.open .drawer-link:nth-child(2) { transition-delay: 0.03s; }
.mobile-drawer.open .drawer-link:nth-child(3) { transition-delay: 0.06s; }
.mobile-drawer.open .drawer-link:nth-child(4) { transition-delay: 0.09s; }
.mobile-drawer.open .drawer-link:nth-child(5) { transition-delay: 0.12s; }
.mobile-drawer.open .drawer-link:nth-child(6) { transition-delay: 0.15s; }

.drawer-logout-btn {
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

/* Inside-page Back Button */
.page-back-bar {
  margin-bottom: 14px;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--surf-aqua);
  font-size: 13px;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-back:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue);
  color: var(--white);
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 20px 0 36px;
}

/* Flash Messages */
.messages-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.alert-success {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
}

.alert-error {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.alert-info {
  border-color: var(--border-blue);
  background: rgba(47, 111, 191, 0.14);
  color: var(--foam-mist);
}

/* Hero Banner */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--lehar-navy-deep) 0%, var(--lehar-navy) 52%, #0c3d8a 100%);
  border: 1px solid rgba(60, 200, 216, 0.25);
  padding: 28px 20px;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .hero-banner {
    padding: 46px 42px;
  }
}

.hero-wave-bg {
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 280px;
  height: 280px;
  opacity: 0.12;
  pointer-events: none;
}

@media (min-width: 768px) {
  .hero-wave-bg {
    width: 400px;
    height: 400px;
    right: -30px;
    bottom: -60px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(60, 200, 216, 0.14);
  border: 1px solid rgba(60, 200, 216, 0.35);
  color: var(--surf-aqua);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--white);
  max-width: 660px;
}

.hero-desc {
  margin: 0 0 24px;
  color: rgba(232, 240, 250, 0.88);
  font-size: 14.5px;
  max-width: 600px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-white {
  background: var(--white);
  color: var(--lehar-navy-deep);
}

.btn-white:hover {
  background: var(--foam-mist);
}

.btn-primary {
  background: linear-gradient(135deg, var(--lehar-navy) 0%, var(--tide-blue) 100%);
  color: var(--white);
  border-color: rgba(60, 200, 216, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--lehar-navy-mid) 0%, #3b82d6 100%);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-blue);
}

.btn-success {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.45);
}

.btn-success:hover {
  background: rgba(34, 197, 94, 0.32);
}

.btn-danger-outline {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn-block {
  width: 100%;
}

/* Section Headings */
.section-block {
  margin-top: 28px;
}

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

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
}

.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--surf-aqua);
}

/* Cards & Grids */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-card);
}

.card-blue-accent {
  border-color: var(--border-blue);
  background: linear-gradient(180deg, rgba(1, 38, 95, 0.25) 0%, var(--bg-card) 100%);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.quick-grid .quick-card:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .quick-grid .quick-card:first-child {
    grid-column: auto;
  }
}

.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--tide-blue);
  background: var(--bg-card-hover);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 111, 191, 0.18);
  color: var(--surf-aqua);
  border: 1px solid rgba(60, 200, 216, 0.22);
}

.quick-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.quick-meta {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metrics-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 768px) {
  .metrics-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
}

.metric-label {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-pending {
  background: var(--status-pending-bg);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-in_review {
  background: var(--status-review-bg);
  color: #fcd34d;
  border: 1px solid rgba(245, 165, 36, 0.35);
}

.badge-in_progress {
  background: var(--status-progress-bg);
  color: #93c5fd;
  border: 1px solid rgba(47, 111, 191, 0.45);
}

.badge-resolved {
  background: var(--status-resolved-bg);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.tag-pill-blue {
  background: rgba(47, 111, 191, 0.16);
  border-color: rgba(47, 111, 191, 0.35);
  color: #bfdbfe;
}

/* Ticket List Cards */
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card {
  display: block;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ticket-card:hover {
  border-color: var(--tide-blue);
  background: var(--bg-card-hover);
}

.ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.ticket-key {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--surf-aqua);
  letter-spacing: 0.03em;
}

.ticket-title {
  margin: 0 0 8px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--white);
}

.ticket-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Forms */
.auth-shell {
  max-width: 460px;
  margin: 12px auto 0;
}

.form-shell {
  max-width: 680px;
  margin: 0 auto;
}

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

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--surf-aqua);
  box-shadow: 0 0 0 3px rgba(60, 200, 216, 0.16);
}

.form-help {
  margin-top: 5px;
  font-size: 12px;
  color: var(--text-muted);
}

.field-error {
  margin-top: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fca5a5;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 111, 191, 0.1);
  border: 1px solid var(--border-blue);
  cursor: pointer;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--surf-aqua);
}

.upload-box {
  position: relative;
  border: 1.5px dashed var(--border-blue);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  background: rgba(1, 38, 95, 0.12);
  cursor: pointer;
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Role Photo Preview Card */
.role-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: rgba(1, 38, 95, 0.28);
  border: 1px solid var(--border-blue);
  margin-bottom: 16px;
}

.role-preview-img {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  object-fit: cover;
  border: 2px solid var(--surf-aqua);
  background: var(--bg-input);
  flex-shrink: 0;
}

/* Filter Pills */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.12s ease;
}

.filter-pill:hover {
  transform: translateY(-1px);
}

.filter-pill-all {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.filter-pill-all.active {
  background: var(--lehar-navy);
  border-color: var(--surf-aqua);
  color: var(--white);
}

.filter-pill-pending {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.filter-pill-pending.active {
  background: rgba(239, 68, 68, 0.28);
  border-color: #ef4444;
  color: var(--white);
}

.filter-pill-in_review {
  background: rgba(245, 165, 36, 0.1);
  border-color: rgba(245, 165, 36, 0.32);
  color: #fcd34d;
}

.filter-pill-in_review.active {
  background: rgba(245, 165, 36, 0.28);
  border-color: var(--spark-saffron);
  color: var(--white);
}

.filter-pill-in_progress {
  background: rgba(47, 111, 191, 0.14);
  border-color: rgba(47, 111, 191, 0.38);
  color: #93c5fd;
}

.filter-pill-in_progress.active {
  background: rgba(47, 111, 191, 0.38);
  border-color: var(--surf-aqua);
  color: var(--white);
}

.filter-pill-resolved {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.32);
  color: #86efac;
}

.filter-pill-resolved.active {
  background: rgba(34, 197, 94, 0.28);
  border-color: #22c55e;
  color: var(--white);
}

/* Status Timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 16px 0;
}

.timeline-step {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-step.done .timeline-bar {
  background: var(--surf-aqua);
}

.timeline-step.current .timeline-bar {
  background: var(--tide-blue);
}

.timeline-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-step.done .timeline-label,
.timeline-step.current .timeline-label {
  color: var(--white);
}

/* Detail & Chat Two-Column Desktop Layout */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 960px) {
  .detail-layout {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

/* Chat Window */
.chat-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.chat-header {
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(1, 38, 95, 0.5), rgba(17, 23, 34, 0.95));
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 460px;
  overflow-y: auto;
  background: #090c12;
}

.chat-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 86%;
}

.chat-bubble-wrap.mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-bubble-wrap.theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-bubble-wrap.system {
  align-self: center;
  align-items: center;
  max-width: 95%;
}

.chat-sender-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--surf-aqua);
}

.chat-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--surf-aqua);
}

.chat-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  word-break: break-word;
}

.chat-bubble-wrap.mine .chat-bubble {
  background: var(--lehar-navy);
  border: 1px solid rgba(60, 200, 216, 0.25);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.chat-bubble-wrap.theirs .chat-bubble {
  background: #141b28;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.chat-bubble-wrap.system .chat-bubble {
  background: rgba(47, 111, 191, 0.12);
  border: 1px solid rgba(47, 111, 191, 0.28);
  color: var(--foam-mist);
  font-size: 12px;
  text-align: center;
  border-radius: 999px;
  padding: 6px 14px;
}

.chat-bubble-wrap.close-req .chat-bubble {
  background: rgba(245, 165, 36, 0.14);
  border: 1px solid rgba(245, 165, 36, 0.45);
  color: #fde68a;
}

.chat-close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 165, 36, 0.25);
}

.btn-sm {
  min-height: 36px;
  padding: 7px 14px;
  font-size: 12.5px;
  border-radius: 10px;
}

.chat-time {
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--text-muted);
}

.chat-attachment-img {
  margin-top: 8px;
  border-radius: 10px;
  max-height: 220px;
  border: 1px solid var(--border-subtle);
}

.chat-attachment-doc {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 600;
  color: var(--surf-aqua);
}

.chat-composer {
  padding: 12px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.chat-composer-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.chat-input {
  flex: 1;
  min-height: 42px;
  max-height: 110px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-input);
  color: var(--white);
  font-family: inherit;
  font-size: 14px;
  resize: none;
}

.chat-input:focus {
  outline: none;
  border-color: var(--surf-aqua);
}

.chat-attach-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.chat-attach-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.faq-body-inner {
  overflow: hidden;
  padding: 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-top: 1px solid transparent;
  transition: padding 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.24s ease;
}

.faq-item.open .faq-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.open .faq-body-inner {
  padding: 12px 16px 15px;
  border-top-color: var(--border-subtle);
}

/* Union Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-align: center;
  padding: 16px 12px;
}

.member-photo {
  width: 88px;
  height: 88px;
  margin: 0 auto 12px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tide-blue);
  background: var(--lehar-navy-deep);
}

.member-name {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--white);
}

.member-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--surf-aqua);
}

/* Dashboard Chart Layout */
.chart-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

@media (min-width: 640px) {
  .chart-box {
    flex-direction: row;
    justify-content: space-around;
  }
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
  width: 100%;
  max-width: 340px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-bar {
  width: 4px;
  height: 28px;
  border-radius: 4px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: 26px 0 28px;
  text-align: center;
}

.footer-line-1 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-line-2 {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}

.footer-links {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--surf-aqua);
}
