/* HelpUs — application styles */

/* ---------- Design tokens ---------- */
:root {
  --hu-primary: #174C3C;
  --hu-primary-hover: #103B2F;
  --hu-bg: #FFFFFF;
  --hu-ivory: #F7F5ED;
  --hu-green-soft: #F2F6F1;
  --hu-text: #172A23;
  --hu-text-secondary: #64748B;
  --hu-border: #E5E7EB;
  --hu-success: #26845B;
  --hu-accent: #E8A35D;
  --hu-danger: #DC2626;
  --hu-danger-soft: #FEF2F2;
  --hu-warning: #B45309;
  --hu-warning-soft: #FFFBEB;
  --hu-info: #1D4ED8;
  --hu-info-soft: #EFF6FF;
  --hu-radius-sm: 8px;
  --hu-radius: 12px;
  --hu-radius-lg: 16px;
  --hu-shadow-sm: 0 1px 2px rgba(23, 42, 35, 0.06);
  --hu-shadow: 0 4px 16px rgba(23, 42, 35, 0.08);
  --hu-font-heading: 'Manrope', system-ui, -apple-system, sans-serif;
  --hu-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --hu-container: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--hu-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--hu-text);
  background: var(--hu-bg);
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hu-font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--hu-text);
  margin: 0 0 0.6em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }
p { margin: 0 0 1em; }
a { color: var(--hu-primary); text-decoration: none; }
a:hover, a:focus { color: var(--hu-primary-hover); text-decoration: underline; }
img { max-width: 100%; height: auto; }
hr { border: 0; border-top: 1px solid var(--hu-border); margin: 1.5rem 0; }
code, kbd, pre, samp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; }
::selection { background: rgba(23, 76, 60, 0.15); }
:focus-visible { outline: 2px solid var(--hu-primary); outline-offset: 2px; }
.num, .tabular, td.num, th.num { font-variant-numeric: tabular-nums; }

/* ---------- Grid (compat: BS3 col-sm/md/xs + BS4 col-N) ---------- */
.container { width: 100%; max-width: var(--hu-container); margin: 0 auto; padding: 0 20px; }
.container-fluid { width: 100%; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > [class*="col-"] { position: relative; padding: 0 10px; }
.col-4 { width: 33.3333%; } .col-6 { width: 50%; } .col-8 { width: 66.6667%; }
.col-12 { width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; }
/* xs always stacked (BS3 col-xs-12 kept full width) */
.col-xs-12 { width: 100%; }
@media (min-width: 576px) {
  .col-sm-1 { width: 8.3333%; } .col-sm-2 { width: 16.6667%; } .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.3333%; } .col-sm-5 { width: 41.6667%; } .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.3333%; } .col-sm-8 { width: 66.6667%; } .col-sm-9 { width: 75%; }
  .col-sm-10 { width: 83.3333%; } .col-sm-11 { width: 91.6667%; } .col-sm-12 { width: 100%; }
}
@media (min-width: 768px) {
  .col-md-1 { width: 8.3333%; } .col-md-2 { width: 16.6667%; } .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; } .col-md-5 { width: 41.6667%; } .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; } .col-md-8 { width: 66.6667%; } .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.3333%; } .col-md-11 { width: 91.6667%; } .col-md-12 { width: 100%; }
  .col-sm-offset-1 { margin-left: 8.3333%; } .col-sm-offset-2 { margin-left: 16.6667%; }
  .col-sm-offset-3 { margin-left: 25%; } .col-sm-offset-4 { margin-left: 33.3333%; }
  .offset-md-2 { margin-left: 16.6667%; } .offset-md-3 { margin-left: 25%; }
  .offset-md-4 { margin-left: 33.3333%; }
}
@media (min-width: 992px) {
  .col-lg-1 { width: 8.3333%; } .col-lg-2 { width: 16.6667%; } .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; } .col-lg-5 { width: 41.6667%; } .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; } .col-lg-8 { width: 66.6667%; } .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.3333%; } .col-lg-11 { width: 91.6667%; } .col-lg-12 { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--hu-font-body); font-weight: 600; font-size: 0.9375rem;
  line-height: 1.2; text-align: center; white-space: nowrap;
  padding: 10px 20px; border-radius: var(--hu-radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  -webkit-user-select: none; user-select: none;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--hu-primary); outline-offset: 2px; }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--hu-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--hu-primary-hover); color: #fff; }
.btn-success { background: var(--hu-success); color: #fff; }
.btn-success:hover, .btn-success:focus { background: #1E6B49; color: #fff; }
.btn-info { background: var(--hu-info); color: #fff; }
.btn-info:hover, .btn-info:focus { background: #173CA8; color: #fff; }
.btn-danger { background: var(--hu-danger); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background: #B91C1C; color: #fff; }
.btn-warning { background: var(--hu-accent); color: #172A23; }
.btn-warning:hover, .btn-warning:focus { background: #D98F42; color: #172A23; }
.btn-default, .btn-secondary { background: #fff; color: var(--hu-text); border-color: var(--hu-border); }
.btn-default:hover, .btn-default:focus, .btn-secondary:hover, .btn-secondary:focus {
  background: var(--hu-green-soft); color: var(--hu-primary); border-color: var(--hu-primary); }
.btn-link { background: transparent; color: var(--hu-primary); padding-left: 8px; padding-right: 8px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 6px 12px; font-size: 0.8125rem; border-radius: 7px; }
.btn-xs { padding: 3px 8px; font-size: 0.75rem; border-radius: 6px; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; border-radius: 10px; }
.btn-block { display: flex; width: 100%; }

/* Buttons (hu-btn) */
.hu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 0.9375rem; line-height: 1.2; padding: 11px 22px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.hu-btn:hover { text-decoration: none; }
.hu-btn-primary, .hu-btn-filled { background: var(--hu-primary); color: #fff; }
.hu-btn-primary:hover, .hu-btn-primary:focus, .hu-btn-filled:hover, .hu-btn-filled:focus {
  background: var(--hu-primary-hover); color: #fff; }
.hu-btn-outline { background: transparent; color: var(--hu-primary); border-color: var(--hu-primary); }
.hu-btn-outline:hover, .hu-btn-outline:focus { background: var(--hu-primary); color: #fff; }
.hu-btn-ghost { background: transparent; color: var(--hu-primary); }
.hu-btn-ghost:hover { background: var(--hu-green-soft); }
.hu-btn-lg { padding: 15px 30px; font-size: 1.0625rem; border-radius: 12px; }

/* ---------- Forms ---------- */
label { font-weight: 600; font-size: 0.875rem; color: var(--hu-text); margin-bottom: 6px; display: inline-block; }
.field-required { color: var(--hu-danger); }
.form-group { margin-bottom: 1.1rem; }
.form-control {
  display: block; width: 100%; padding: 10px 14px;
  font-family: var(--hu-font-body); font-size: 0.9375rem; line-height: 1.5;
  color: var(--hu-text); background: #fff;
  border: 1px solid var(--hu-border); border-radius: var(--hu-radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
select.form-control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748B' stroke-width='2' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-control:focus { border-color: var(--hu-primary); box-shadow: 0 0 0 3px rgba(23, 76, 60, 0.12); outline: 0; }
.form-control::placeholder { color: #9CA3AF; }
.form-control[disabled], .form-control[readonly] { background: var(--hu-green-soft); opacity: 1; }
.help-block { display: block; margin-top: 5px; margin-bottom: 0; color: var(--hu-text-secondary); font-size: 0.8125rem; }
.has-error .form-control { border-color: var(--hu-danger); }
.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12); }
.has-error .control-label, .has-error .help-block { color: var(--hu-danger); }
.control-label { font-weight: 600; }
@media (min-width: 768px) {
  .form-horizontal .control-label { text-align: right; padding-top: 10px; margin-bottom: 0; }
}
.checkbox, .radio { position: relative; display: block; margin: 10px 0; }
.checkbox label, .radio label { font-weight: 400; padding-left: 24px; margin-bottom: 0; cursor: pointer; }
.checkbox input, .radio input { position: absolute; margin-left: -24px; margin-top: 4px; width: 16px; height: 16px; accent-color: var(--hu-primary); }
.checkbox-inline, .radio-inline { display: inline-block; font-weight: 400; padding-left: 22px; position: relative; margin-right: 14px; cursor: pointer; }
.checkbox-inline input, .radio-inline input { position: absolute; margin-left: -22px; margin-top: 3px; width: 16px; height: 16px; accent-color: var(--hu-primary); }
.input-group { position: relative; display: flex; width: 100%; }
.input-group .form-control { flex: 1 1 auto; width: 1%; border-radius: var(--hu-radius-sm); }
.input-group-btn { white-space: nowrap; }
.input-group-btn .btn { border-radius: 0 var(--hu-radius-sm) var(--hu-radius-sm) 0; }
.input-group .form-control:not(:last-child) { border-radius: var(--hu-radius-sm) 0 0 var(--hu-radius-sm); }

/* ---------- Tables ---------- */
.table { width: 100%; max-width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.9375rem; }
.table th, .table td { padding: 12px 14px; vertical-align: top; border-top: 1px solid var(--hu-border); text-align: left; }
.table thead th { font-family: var(--hu-font-heading); font-weight: 600; font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--hu-text-secondary); border-top: 0; border-bottom: 2px solid var(--hu-border); }
.table-striped tbody tr:nth-of-type(odd) { background: var(--hu-green-soft); }
.table-bordered, .table-bordered th, .table-bordered td { border: 1px solid var(--hu-border); }
.table-hover tbody tr:hover { background: var(--hu-green-soft); }

/* ---------- Alerts / labels / badges / panels ---------- */
.alert { position: relative; padding: 14px 18px; margin-bottom: 1.1rem; border-radius: var(--hu-radius); border: 1px solid transparent; font-size: 0.9375rem; }
.alert a { text-decoration: underline; }
.alert-success { background: #ECFDF3; border-color: #A6E5C4; color: #14532D; }
.alert-danger { background: var(--hu-danger-soft); border-color: #FCA5A5; color: #7F1D1D; }
.alert-warning { background: var(--hu-warning-soft); border-color: #FCD34D; color: #78350F; }
.alert-info { background: var(--hu-info-soft); border-color: #93C5FD; color: #1E3A8A; }
.label { display: inline-block; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; border-radius: 999px; line-height: 1.4; }
.label-default { background: var(--hu-green-soft); color: var(--hu-text-secondary); }
.label-success { background: #ECFDF3; color: #14532D; }
.label-info { background: var(--hu-info-soft); color: #1E3A8A; }
.badge { display: inline-block; min-width: 20px; padding: 3px 7px; font-size: 0.75rem; font-weight: 600; border-radius: 999px; background: var(--hu-primary); color: #fff; text-align: center; }
.panel { background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); margin-bottom: 1.5rem; box-shadow: var(--hu-shadow-sm); }
.panel-heading { padding: 14px 18px; border-bottom: 1px solid var(--hu-border); font-family: var(--hu-font-heading); font-weight: 600; }
.panel-body { padding: 18px; }
.panel-default > .panel-heading { background: var(--hu-green-soft); }
.well { background: var(--hu-green-soft); border: 1px solid var(--hu-border); border-radius: var(--hu-radius); padding: 16px; margin-bottom: 1rem; }

/* ---------- Navbar / nav / dropdown ---------- */
.nav { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.nav > li > a { padding: 10px 14px; display: block; }
.nav-tabs { border-bottom: 1px solid var(--hu-border); gap: 4px; }
.nav-tabs > li > a { border: 1px solid transparent; border-radius: var(--hu-radius-sm) var(--hu-radius-sm) 0 0; color: var(--hu-text-secondary); }
.nav-tabs > li.active > a, .nav-tabs > li > a:hover { background: #fff; border-color: var(--hu-border); border-bottom-color: #fff; color: var(--hu-primary); }
.dropdown, .dropup { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; z-index: 1000; min-width: 200px;
  padding: 8px; margin: 6px 0 0; list-style: none;
  background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius);
  box-shadow: var(--hu-shadow); display: none;
}
.dropdown-menu.show, .dropdown.open > .dropdown-menu { display: block; }
.dropdown-menu > li > a, .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--hu-text); font-size: 0.9375rem; }
.dropdown-menu > li > a:hover, .dropdown-item:hover, .dropdown-item:focus { background: var(--hu-green-soft); color: var(--hu-primary); text-decoration: none; }
.dropdown-toggle::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px; border-top: 4px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.collapse:not(.show) { display: none; }
.collapsing { transition: height .2s ease; overflow: hidden; }
.caret { display: inline-block; border-top: 4px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; vertical-align: 2px; }
.close { float: right; font-size: 1.5rem; font-weight: 600; line-height: 1; color: var(--hu-text-secondary); background: none; border: 0; cursor: pointer; }
.close:hover { color: var(--hu-text); }
.collapse.in, .collapse.show { display: block; }

/* Public top navigation (hu-* canonical) */
.hu-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--hu-border); }
.hu-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.hu-header-nav { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; gap: 16px; margin-left: 28px; }
.hu-brand { font-family: var(--hu-font-heading); font-weight: 700; font-size: 1.35rem; color: var(--hu-primary); display: inline-flex; align-items: center; }
.hu-brand:hover { color: var(--hu-primary-hover); text-decoration: none; }
.hu-brand img { max-height: 40px; width: auto; }
.hu-nav { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hu-nav a { display: block; padding: 9px 13px; border-radius: 8px; color: var(--hu-text); font-weight: 500; font-size: 0.9375rem; }
.hu-nav a:hover, .hu-nav a.active { background: var(--hu-green-soft); color: var(--hu-primary); text-decoration: none; }
.hu-header-actions { display: flex; align-items: center; gap: 10px; }
.hu-nav-toggle { display: none; background: none; border: 1px solid var(--hu-border); border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--hu-text); }
@media (max-width: 991px) {
  .hu-nav-toggle { display: inline-flex; }
  .hu-header-nav { display: none; width: 100%; padding: 12px 0 18px; border-top: 1px solid var(--hu-border); margin-top: 12px; flex-direction: column; align-items: stretch; }
  .hu-header-nav.show { display: flex; }
  .hu-nav { flex-direction: column; align-items: stretch; }
  .hu-header-actions { flex-direction: column; align-items: stretch; margin-top: 12px; }
  .hu-header-actions .hu-search-form { width: 100%; }
}

/* Dashboard sidebar */
.sidebar { background: #fff; }
.sidebar-nav .nav { flex-direction: column; }
.sidebar-nav .nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--hu-text); border-radius: 8px; font-size: 0.9375rem; }
.sidebar-nav .nav a:hover, .sidebar-nav .nav a.active { background: var(--hu-green-soft); color: var(--hu-primary); text-decoration: none; }
.sidebar-nav .nav .nav-second-level, .sidebar-nav .nav .nav-third-level { display: none; padding-left: 16px; flex-direction: column; }
.sidebar-nav .nav > .active > .nav-second-level,
.sidebar-nav .nav .nav-second-level.in, .sidebar-nav .nav .nav-second-level.show { display: flex; }
.sidebar-nav .nav a .arrow { margin-left: auto; border-top: 4px solid currentColor; border-right: 4px solid transparent; border-left: 4px solid transparent; transition: transform .15s ease; }
.sidebar-nav .nav > .active > a .arrow { transform: rotate(180deg); }
#mobile-menu-toggle { display: none; }
@media (max-width: 991px) {
  #mobile-menu-toggle { display: block; margin-bottom: 12px; }
  #mobile-menu-toggle a { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: var(--hu-primary); color: #fff; border-radius: var(--hu-radius); font-weight: 600; }
  #mobile-menu-toggle a:hover { text-decoration: none; color: #fff; }
  .navbar-default.sidebar { display: none; }
  .navbar-default.sidebar.dblock { display: block; }
}

/* ---------- Pagination / breadcrumb ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 1.5rem 0; justify-content: center; }
.page-link { display: block; padding: 8px 14px; border: 1px solid var(--hu-border); border-radius: 8px; color: var(--hu-text); background: #fff; font-size: 0.875rem; font-weight: 500; }
.page-link:hover, .page-link:focus { background: var(--hu-green-soft); color: var(--hu-primary); text-decoration: none; }
.page-item.active .page-link { background: var(--hu-primary); border-color: var(--hu-primary); color: #fff; }
.page-item.disabled .page-link { opacity: 0.5; pointer-events: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1rem; font-size: 0.875rem; color: var(--hu-text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { content: "/"; padding-right: 8px; color: var(--hu-border); }
.breadcrumb-item a { color: var(--hu-text-secondary); }
.breadcrumb-item a:hover { color: var(--hu-primary); }
.breadcrumb-item.active { color: var(--hu-text); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-x: hidden; overflow-y: auto; background: rgba(23, 42, 35, 0.5); }
.modal.show, .modal.in { display: block; }
.modal-dialog { position: relative; width: auto; max-width: 560px; margin: 60px auto 30px; }
.modal-lg .modal-dialog, .modal-dialog.modal-lg { max-width: 900px; }
.modal-content { background: #fff; border-radius: var(--hu-radius-lg); box-shadow: var(--hu-shadow); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--hu-border); }
.modal-title { font-family: var(--hu-font-heading); font-weight: 600; margin: 0; }
.modal-body { padding: 20px; max-height: 65vh; overflow-y: auto; }
.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--hu-border); }

/* ---------- Progress ---------- */
.progress { display: flex; height: 10px; overflow: hidden; background: var(--hu-green-soft); border-radius: 999px; }
.progress-bar { background: var(--hu-success); border-radius: 999px; transition: width .3s ease; }
.progress-bar-success { background: var(--hu-success); }

/* ---------- Toast ---------- */
.hu-toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 1080; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 40px)); }
.hu-toast { display: flex; align-items: flex-start; gap: 10px; background: #fff; border: 1px solid var(--hu-border); border-left: 4px solid var(--hu-primary); border-radius: var(--hu-radius); padding: 13px 16px; box-shadow: var(--hu-shadow); font-size: 0.9375rem; animation: hu-toast-in .25s ease; }
.hu-toast-success { border-left-color: var(--hu-success); }
.hu-toast-error { border-left-color: var(--hu-danger); }
.hu-toast-warning { border-left-color: var(--hu-accent); }
.hu-toast-info { border-left-color: var(--hu-info); }
.hu-toast-title { font-family: var(--hu-font-heading); font-weight: 600; margin: 0 0 2px; }
.hu-toast-msg { margin: 0; color: var(--hu-text-secondary); overflow-wrap: anywhere; }
.hu-toast-msg ul { margin: 0; padding-left: 18px; }
@keyframes hu-toast-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.hu-toast.hu-toast-out { opacity: 0; transform: translateX(12px); transition: all .25s ease; }

/* ---------- Tooltip ---------- */
.hu-tooltip { position: absolute; display: none; z-index: 1070; max-width: 260px; padding: 6px 10px; background: var(--hu-text); color: #fff; border-radius: 8px; font-size: 0.8125rem; line-height: 1.4; pointer-events: none; }
.hu-tooltip.show { display: block; }

/* ---------- Icons (inline SVG partial) ---------- */
.icon { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Cards ---------- */
.hu-card { background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius-lg); box-shadow: var(--hu-shadow-sm); }
.hu-card-pad { padding: 24px; }
.hu-card-title { font-family: var(--hu-font-heading); font-weight: 600; font-size: 1.0625rem; margin: 0 0 12px; }
.hu-stat { background: var(--hu-green-soft); border-radius: var(--hu-radius); padding: 18px 20px; }
.hu-stat-label { font-size: 0.8125rem; font-weight: 500; color: var(--hu-text-secondary); margin: 0 0 4px; }
.hu-stat-value { font-family: var(--hu-font-heading); font-weight: 700; font-size: 1.625rem; font-variant-numeric: tabular-nums; margin: 0; }
.hu-section { padding: 72px 0; }
.hu-section-ivory { background: var(--hu-ivory); }
.hu-section-green { background: var(--hu-green-soft); }
.hu-section-title { font-family: var(--hu-font-heading); font-weight: 700; font-size: 1.875rem; margin: 0 0 8px; }
.hu-section-sub { color: var(--hu-text-secondary); margin: 0 0 32px; max-width: 640px; }

/* ---------- Page scaffolding ---------- */
.page-header { padding-bottom: 10px; margin: 24px 0 20px; border-bottom: 1px solid var(--hu-border); }
.page-header h1 { margin: 0; font-size: 1.625rem; }
.hu-breadcrumb { background: var(--hu-ivory); padding: 12px 0; margin-bottom: 28px; }
.footer-top { padding: 56px 20px 36px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; }

/* ---------- Utility classes ---------- */
.text-center { text-align: center; } .text-right { text-align: right; } .text-left { text-align: left; }
.text-primary { color: var(--hu-primary); } .text-success { color: var(--hu-success); }
.text-danger { color: var(--hu-danger); } .text-warning { color: var(--hu-warning); }
.text-info { color: var(--hu-info); } .text-muted { color: var(--hu-text-secondary); }
.pull-right { float: right !important; } .pull-left { float: left !important; }
.clearfix::after { content: ""; display: table; clear: both; }
.img-fluid { max-width: 100%; height: auto; }
.img-thumbnail { padding: 4px; background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius-sm); }
.img-circle { border-radius: 50%; }
.img-responsive { max-width: 100%; height: auto; }
.list-unstyled { list-style: none; padding: 0; margin: 0; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-5 { margin-bottom: 48px; }
.ml-1 { margin-left: 6px; } .mr-1 { margin-right: 6px; }
.p-1 { padding: 6px; } .p-3 { padding: 18px; } .p-5 { padding: 48px; }
.m-t-0 { margin-top: 0; }
.huge { font-family: var(--hu-font-heading); font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.d-inline-block { display: inline-block; }
.d-block { display: block; }
.hidden, .hide { display: none; }
.embed-responsive { position: relative; display: block; overflow: hidden; }
.embed-responsive::before { content: ""; display: block; padding-top: 56.25%; }
.embed-responsive iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 767px) {
  .container { padding: 0 16px; }
  h1 { font-size: 1.75rem; } h2 { font-size: 1.4rem; }
  .hu-section { padding: 48px 0; }
  .btn { white-space: normal; }
}

/* ---------- Extras: share buttons + spinners ---------- */
.rounded-circle { border-radius: 50%; }
.card { background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); box-shadow: var(--hu-shadow-sm); }
.card-body { padding: 14px; font-size: 0.8125rem; }
.card-img-top { width: 100%; display: block; border-radius: var(--hu-radius) var(--hu-radius) 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hu-spin { animation: hu-spin 1s linear infinite; }
@keyframes hu-spin { to { transform: rotate(360deg); } }

/* Social share buttons (campaign page) */
.hu-share { display: flex; gap: 8px; flex-wrap: wrap; }
.hu-share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--hu-border); color: var(--hu-text-secondary); }
.hu-share-btn:hover, .hu-share-btn:focus { background: var(--hu-primary); border-color: var(--hu-primary); color: #fff; text-decoration: none; }
.hu-share-btn .icon { width: 18px; height: 18px; }

/* ============================================================
   Chunk 2 — Public website components
   ============================================================ */

/* ---------- Hero ---------- */
.hu-hero { background: var(--hu-ivory); padding: 80px 0; overflow: hidden; }
.hu-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hu-hero-copy h1 { font-size: 3.125rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 20px; }
.hu-hero-sub { font-size: 1.1875rem; line-height: 1.65; color: var(--hu-text-secondary); max-width: 560px; margin-bottom: 28px; }
.hu-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hu-hero-search { display: flex; gap: 8px; max-width: 520px; margin-bottom: 0; }
.hu-hero-search .form-control { flex: 1 1 auto; height: 48px; }
.hu-featured-card { overflow: hidden; box-shadow: var(--hu-shadow); }
.hu-featured-img { display: block; }
.hu-featured-img img { display: block; width: 100%; height: 300px; object-fit: cover; }
.hu-featured-body { padding: 28px; }
.hu-featured-badge { display: inline-block; background: var(--hu-green-soft); color: var(--hu-primary); border-radius: 999px; padding: 4px 12px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.hu-featured-title { font-size: 1.375rem; font-weight: 700; margin: 12px 0 8px; }
.hu-featured-title a { color: var(--hu-text); }
.hu-featured-desc { font-size: 0.9375rem; line-height: 1.55; color: var(--hu-text-secondary); margin: 0 0 18px; }
.hu-featured-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 20px; font-size: 0.9375rem; color: var(--hu-text-secondary); }
@media (max-width: 991px) {
  .hu-hero { padding: 48px 0; }
  .hu-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hu-hero-copy h1 { font-size: 2.125rem; }
  .hu-hero-featured { margin: 0 auto; max-width: 520px; }
  .hu-featured-img img { height: 220px; }
  .hu-featured-body { padding: 22px; }
}

/* ---------- Page hero (inner pages) ---------- */
.hu-page-hero { background: var(--hu-ivory); padding: 40px 0 32px; }
.hu-page-hero h1 { margin: 6px 0 0; font-size: 2rem; }
/* compact variant for campaign sub-pages (backers / updates / faqs) */
.hu-page-hero.hu-page-hero-compact { padding: 24px 0 18px; }
.hu-page-hero.hu-page-hero-compact h1 { font-size: 1.25rem; margin-top: 4px; }
.hu-page-hero-sub { color: var(--hu-text-secondary); margin: 8px 0 0; }
/* Content that directly follows the page hero without an attached band (e.g. list results) */
.hu-page-hero + .container { padding: 48px 0 56px; }
.hu-breadcrumb-inline { margin-bottom: 4px; }
/* category hero with uploaded image */
.hu-page-hero--has-img { position: relative; padding: 60px 0 48px; min-height: 220px; display: flex; align-items: center; }
.hu-page-hero--has-img h1 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.45); }
.hu-page-hero--has-img .breadcrumb, .hu-page-hero--has-img .breadcrumb a, .hu-page-hero--has-img .breadcrumb .active { color: rgba(255,255,255,0.85); }
.hu-page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.55) 100%); pointer-events: none; }

/* ---------- Section scaffolding ---------- */
.hu-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.hu-section-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.hu-section-link .icon { width: 16px; height: 16px; }

/* ---------- Campaign card ---------- */
.hu-campaign-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
/* fewer items than 4 should not leave a blank right side */
.hu-campaign-grid.hu-grid-1 { grid-template-columns: minmax(0, 400px); justify-content: center; }
.hu-campaign-grid.hu-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 840px; margin-left: auto; margin-right: auto; }
.hu-campaign-grid.hu-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .hu-campaign-grid.hu-grid-2, .hu-campaign-grid.hu-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: none; margin: 0; }
}
@media (max-width: 1199px) { .hu-campaign-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .hu-campaign-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .hu-campaign-grid { grid-template-columns: 1fr; } }
.hu-campaign-card { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.hu-campaign-card:hover { box-shadow: var(--hu-shadow); transform: translateY(-2px); }
.hu-campaign-card-img { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hu-green-soft); }
.hu-campaign-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hu-card-flag { position: absolute; top: 12px; right: 12px; background: rgba(23, 42, 35, 0.85); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.hu-campaign-card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px; }
.hu-campaign-card-title { font-size: 1.0625rem; margin: 0 0 8px; line-height: 1.35; }
.hu-campaign-card-title a { color: var(--hu-text); }
.hu-campaign-card-title a:hover { color: var(--hu-primary); text-decoration: none; }
.hu-campaign-card-organizer { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--hu-text-secondary); margin: 0 0 12px; }
.hu-progress { height: 8px; background: var(--hu-green-soft); border-radius: 999px; overflow: hidden; }
.hu-progress-bar { height: 100%; background: var(--hu-success); border-radius: 999px; }
.hu-campaign-card-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 10px 0 12px; font-size: 0.875rem; color: var(--hu-text-secondary); }
.hu-campaign-card-meta strong { color: var(--hu-text); font-weight: 600; }
.hu-campaign-card-percent { font-family: var(--hu-font-heading); font-weight: 700; color: var(--hu-success); }
.hu-campaign-card-footer { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--hu-border); padding-top: 12px; margin-top: auto; font-size: 0.8125rem; color: var(--hu-text-secondary); }
.hu-campaign-card-footer span { display: inline-flex; align-items: center; gap: 6px; }
.hu-campaign-card-footer .icon { width: 14px; height: 14px; }

/* ---------- Categories ---------- */
.hu-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 991px) { .hu-category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .hu-category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hu-category-grid { grid-template-columns: 1fr; } }
.hu-category-chip { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); overflow: hidden; transition: box-shadow .15s ease, transform .15s ease; }
.hu-category-chip:hover { text-decoration: none; box-shadow: var(--hu-shadow); transform: translateY(-2px); }
.hu-category-chip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.hu-category-name { font-family: var(--hu-font-heading); font-weight: 600; color: var(--hu-text); padding: 12px 14px 2px; }
.hu-category-chip:hover .hu-category-name { color: var(--hu-primary); }
.hu-category-count { font-size: 0.8125rem; color: var(--hu-text-secondary); padding: 0 14px 12px; }

/* ---------- Stats band ---------- */
.hu-stats-band { background: var(--hu-primary); padding: 48px 0; }
.hu-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 860px) { .hu-stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .hu-stats-grid { grid-template-columns: 1fr; } }
.hu-stats-band .hu-stat { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.hu-stats-band .hu-stat-label { color: rgba(255, 255, 255, 0.75); }
.hu-stats-band .hu-stat-value { color: #fff; }

/* ---------- How it works ---------- */
.hu-how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 12px; }
@media (max-width: 860px) { .hu-how-grid { grid-template-columns: 1fr; gap: 32px; } }
.hu-how-col h3 { margin-bottom: 18px; }
.hu-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.hu-steps li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hu-border); }
.hu-steps li:last-child { border-bottom: 0; }
.hu-step-num { flex: 0 0 auto; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--hu-primary); color: #fff; font-family: var(--hu-font-heading); font-weight: 700; font-size: 0.875rem; }
.hu-steps h4 { margin: 0 0 4px; font-size: 1rem; }
.hu-steps p { margin: 0; color: var(--hu-text-secondary); font-size: 0.9375rem; }

/* ---------- Trust ---------- */
.hu-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 12px; }
@media (max-width: 991px) { .hu-trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .hu-trust-grid { grid-template-columns: 1fr; } }
.hu-trust-item { background: var(--hu-green-soft); border-radius: var(--hu-radius-lg); padding: 24px; }
.hu-trust-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--hu-primary); margin-bottom: 14px; }
.hu-trust-icon .icon { width: 22px; height: 22px; }
.hu-trust-item h3 { font-size: 1.0625rem; margin: 0 0 6px; }
.hu-trust-item p { margin: 0; font-size: 0.9375rem; color: var(--hu-text-secondary); }

/* ---------- FAQ ---------- */
.hu-faq-wrap { max-width: 760px; margin: 0 auto; }
.hu-faq-wrap .hu-section-title { text-align: center; }
.hu-faq { background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); margin-bottom: 12px; overflow: hidden; }
.hu-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; font-family: var(--hu-font-heading); list-style: none; position: relative; padding-right: 48px; }
.hu-faq summary::-webkit-details-marker { display: none; }
.hu-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.25rem; color: var(--hu-primary); transition: transform .15s ease; }
.hu-faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.hu-faq[open] summary { border-bottom: 1px solid var(--hu-border); }
.hu-faq p { padding: 14px 20px 16px; margin: 0; color: var(--hu-text-secondary); }

/* ---------- Newsletter ---------- */
.hu-newsletter { display: flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--hu-green-soft); border-radius: var(--hu-radius-lg); padding: 36px; flex-wrap: wrap; }
.hu-newsletter .hu-section-sub { margin: 0; }
.hu-newsletter-form { display: flex; gap: 8px; flex: 1 1 380px; max-width: 520px; }
.hu-newsletter-form .form-control { flex: 1 1 auto; height: 48px; }
.hu-newsletter-msg { flex: 1 1 100%; margin: 0; padding: 10px 16px; border-radius: var(--hu-radius); font-size: 0.9375rem; font-weight: 600; }
.hu-newsletter-msg.is-success { background: var(--hu-success); color: #fff; }
.hu-newsletter-msg.is-error { background: var(--hu-danger-soft); color: var(--hu-danger); border: 1px solid #FCA5A5; }
@media (max-width: 680px) { .hu-newsletter { padding: 24px; } }

/* ---------- Final CTA ---------- */
.hu-final-cta { background: var(--hu-primary); color: #fff; padding: 64px 0; text-align: center; }
.hu-final-cta h2 { color: #fff; margin-bottom: 8px; }
.hu-final-cta p { color: rgba(255, 255, 255, 0.8); max-width: 560px; margin: 0 auto 24px; }
.hu-cta-center { justify-content: center; }
/* primary-on-primary would vanish; invert the buttons on the green CTA */
.hu-final-cta .btn-primary { background: #fff; color: var(--hu-primary); }
.hu-final-cta .btn-primary:hover, .hu-final-cta .btn-primary:focus { background: var(--hu-ivory); color: var(--hu-primary-hover); }
.hu-final-cta .btn-default { background: transparent; border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.hu-final-cta .btn-default:hover, .hu-final-cta .btn-default:focus { background: rgba(255, 255, 255, 0.12); border-color: #fff; color: #fff; }
.hu-final-cta .btn-warning { background: var(--hu-accent); color: #172A23; }

/* ---------- Filter bar ---------- */
.hu-filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.hu-filter-bar .form-control { width: auto; min-width: 160px; flex: 1 1 160px; max-width: 280px; }
.hu-filter-bar select.form-control { flex: 0 1 auto; min-width: 150px; max-width: 220px; }

/* ---------- Empty state ---------- */
.hu-empty-state { text-align: center; padding: 72px 24px; background: var(--hu-green-soft); border-radius: var(--hu-radius-lg); margin: 24px 0 48px; }
.hu-empty-state .icon { width: 40px; height: 40px; color: var(--hu-text-secondary); margin-bottom: 12px; }
.hu-empty-state h2 { font-size: 1.25rem; margin-bottom: 6px; }
.hu-empty-state p { color: var(--hu-text-secondary); margin-bottom: 18px; }

/* ---------- Pagination / prose / contact ---------- */
.hu-pagination-wrap { margin: 40px 0; }
.hu-prose { max-width: 800px; margin: 0 auto 56px; font-size: 1rem; }
.hu-prose img { border-radius: var(--hu-radius); }
.hu-contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; margin-bottom: 56px; }
@media (max-width: 860px) { .hu-contact-grid { grid-template-columns: 1fr; } }
.hu-contact-info { font-size: 0.9375rem; color: var(--hu-text-secondary); }
.hu-contact-info li, .hu-contact-info p { margin-bottom: 8px; }

/* ---------- Header extras ---------- */
.hu-search-form { display: flex; align-items: center; gap: 6px; }
.hu-search-form .form-control { min-width: 170px; }
.hu-user-toggle { display: inline-flex; align-items: center; gap: 8px; color: var(--hu-text); font-weight: 500; }
.hu-user-toggle:hover { text-decoration: none; color: var(--hu-primary); }

/* ---------- Footer ---------- */
.hu-footer { background: var(--hu-ivory); border-top: 1px solid var(--hu-border); }
.hu-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding: 56px 0 36px; }
.hu-footer-about { font-size: 0.9375rem; color: var(--hu-text-secondary); }
.hu-footer-logo { max-height: 44px; width: auto; margin-bottom: 12px; display: block; }
.hu-footer-title { font-size: 0.9375rem; font-weight: 600; margin: 0 0 14px; }
.hu-footer-links { list-style: none; padding: 0; margin: 0; font-size: 0.9375rem; }
.hu-footer-links li { margin-bottom: 9px; color: var(--hu-text-secondary); }
.hu-footer-links a { color: var(--hu-text-secondary); }
.hu-footer-links a:hover { color: var(--hu-primary); }
.hu-footer-bottom { border-top: 1px solid var(--hu-border); padding: 18px 0; }
.hu-footer-copyright { margin: 0; font-size: 0.875rem; color: var(--hu-text-secondary); }
@media (max-width: 991px) {
  .hu-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
  .hu-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}


/* ============================================================
   Chunk 3 — Campaign experience components
   ============================================================ */

/* ---------- Campaign layout ---------- */
.hu-campaign-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 36px; align-items: start; margin-bottom: 56px; }
@media (max-width: 991px) { .hu-campaign-layout { grid-template-columns: 1fr; } }
.hu-campaign-main { min-width: 0; }
.hu-campaign-side { position: sticky; top: 84px; }
@media (max-width: 991px) { .hu-campaign-side { position: static; } }

/* ---------- Campaign tabs ---------- */
.hu-campaign-tabs-wrap { background: #fff; border-bottom: 1px solid var(--hu-border); margin-bottom: 32px; }
.hu-campaign-tabs { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.hu-campaign-tabs a { display: flex; align-items: center; gap: 7px; padding: 11px 13px; font-weight: 500; font-size: 0.875rem; color: var(--hu-text-secondary); border-bottom: 2px solid transparent; white-space: nowrap; }
.hu-campaign-tabs a:hover { color: var(--hu-primary); text-decoration: none; }
.hu-campaign-tabs a.active { color: var(--hu-primary); border-bottom-color: var(--hu-primary); font-weight: 600; }
.hu-campaign-tabs .icon { width: 16px; height: 16px; }

/* ---------- Campaign media / story ---------- */
.hu-campaign-media { margin-bottom: 24px; border-radius: var(--hu-radius-lg); overflow: hidden; background: var(--hu-green-soft); }
.hu-campaign-media img { width: 100%; display: block; }
.hu-campaign-story { margin-bottom: 40px; }

/* ---------- Donate card (sidebar) ---------- */
.hu-donate-card { background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius-lg); box-shadow: var(--hu-shadow-sm); padding: 24px; }
.hu-donate-short { font-size: 1.0625rem; font-weight: 600; margin: 0 0 16px; }
.hu-donate-organizer { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 0.875rem; color: var(--hu-text-secondary); }
.hu-donate-organizer p { margin: 0; }
.hu-donate-category { margin-bottom: 16px; font-size: 0.875rem; }
.hu-donate-category .icon { width: 14px; height: 14px; }
.hu-donate-progress h4 { font-size: 1.5rem; margin: 0 0 10px; }
.hu-donate-progress h4 small { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--hu-text-secondary); }
.hu-donate-stats { display: flex; gap: 24px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 0.875rem; color: var(--hu-text-secondary); }
.hu-donate-stats strong { color: var(--hu-text); font-size: 1rem; }
.hu-donate-copy { margin: 18px 0; }
.hu-donate-share { margin-bottom: 20px; }
.hu-donate-form h2 { font-size: 1.25rem; margin-bottom: 12px; }
.hu-donate-form .donate_amount_field { position: relative; margin-bottom: 10px; }
.hu-donate-form .donate_amount_field .form-control { padding-left: 40px; height: 50px; font-size: 1.125rem; font-weight: 600; }
.hu-donate-form .donate_currency { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--hu-text-secondary); font-weight: 600; }
.hu-amount-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hu-amount-presets a { padding: 7px 14px; border: 1px solid var(--hu-border); border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--hu-text); }
.hu-amount-presets a:hover { border-color: var(--hu-primary); color: var(--hu-primary); background: var(--hu-green-soft); text-decoration: none; }

/* ---------- Rewards ---------- */
.hu-rewards { margin-top: 24px; border-top: 1px solid var(--hu-border); padding-top: 20px; }
.hu-rewards h2 { font-size: 1.25rem; margin-bottom: 14px; }
.hu-reward { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); padding: 16px; margin-bottom: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.hu-reward:not(.hu-reward-disabled):hover { border-color: var(--hu-primary); box-shadow: var(--hu-shadow-sm); }
.hu-reward-disabled { opacity: 0.55; background: var(--hu-green-soft); }
.hu-reward-amount { font-size: 0.9375rem; color: var(--hu-text-secondary); }
.hu-reward-amount strong { color: var(--hu-primary); font-size: 1.125rem; }
.hu-reward-text { font-size: 0.9375rem; color: var(--hu-text); }
.hu-reward-meta { font-size: 0.8125rem; color: var(--hu-text-secondary); }
.hu-reward-download { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--hu-success); }
.hu-reward-download .icon { width: 14px; height: 14px; }
.hu-reward-select { align-self: flex-start; margin-top: 6px; }
.hu-reward-static h4 { margin: 0 0 10px; }

/* ---------- Comments ---------- */
.hu-comments { border-top: 1px solid var(--hu-border); padding-top: 28px; }
.hu-comments h2 { font-size: 1.25rem; margin-bottom: 18px; }
.post-comments-form { background: var(--hu-green-soft); border-radius: var(--hu-radius); padding: 18px; margin-bottom: 28px; }
.comments-list { list-style: none; padding: 0; margin: 0; }
.comments-list li { margin-bottom: 18px; }
.comment-main-level { display: flex; gap: 12px; }
.comment-avatar img { width: 40px; height: 40px; }
.comments-list .reply-list { margin: 14px 0 0 52px; }
.comments-list .reply-list .comment-avatar img { width: 32px; height: 32px; }
.comment-box { flex: 1 1 auto; background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius); padding: 14px 16px; }
.comment-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.comment-head h6 { margin: 0; font-family: var(--hu-font-heading); font-weight: 600; }
.comment-head span { font-size: 0.8125rem; color: var(--hu-text-secondary); }
.hu-comment-reply { margin-left: auto; color: var(--hu-text-secondary); }
.hu-comment-reply:hover { color: var(--hu-primary); }
.hu-comment-reply .icon { width: 15px; height: 15px; }
.comment-content { font-size: 0.9375rem; }

/* ---------- Checkout / payment ---------- */
.hu-narrow-wrap { max-width: 960px; margin: 0 auto 56px; }
.hu-checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .hu-checkout-grid { grid-template-columns: 1fr; } }
.hu-contribution-note { border-top: 1px solid var(--hu-border); padding-top: 16px; margin-top: 8px; }
.hu-summary-table td, .hu-summary-table th { border-top: 1px solid var(--hu-border); }
.hu-summary-table tr:first-child td { border-top: 0; }
.hu-checkout-continue { margin-top: 12px; }
.hu-payment-methods { display: flex; flex-direction: column; gap: 12px; }
.hu-payment-method { border: 1px solid var(--hu-border); border-radius: var(--hu-radius); padding: 16px; }
.hu-payment-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 10px; }
.stripe-button-container .stripe-button-el { border-radius: var(--hu-radius-sm) !important; }

/* ---------- Auth ---------- */
.hu-auth-wrap { display: flex; justify-content: center; padding: 56px 0; }
.hu-auth-card { width: 100%; max-width: 440px; }
.hu-auth-title { font-size: 1.75rem; margin: 0 0 4px; }
.hu-auth-sub { color: var(--hu-text-secondary); margin-bottom: 20px; }
.hu-auth-sub a { color: var(--hu-primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.hu-auth-sub a:hover { color: var(--hu-primary-hover); }
.hu-auth-forgot { margin: 14px 0 0; text-align: center; }

/* ---------- Full-page states (success / empty / 404) ---------- */
.hu-state-page { text-align: center; padding: 88px 24px; }
.hu-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--hu-green-soft); color: var(--hu-text-secondary); margin-bottom: 18px; }
.hu-state-icon .icon { width: 32px; height: 32px; }
.hu-state-success { background: #ECFDF3; color: var(--hu-success); }
.hu-state-page h1 { font-size: 2rem; margin-bottom: 8px; }
.hu-state-page p { color: var(--hu-text-secondary); margin-bottom: 22px; }

/* ---------- Campaign updates ---------- */
.hu-updates { display: flex; flex-direction: column; gap: 18px; }
.hu-update-title { font-size: 1.1875rem; margin: 0 0 2px; }
.hu-update-date { font-size: 0.8125rem; color: var(--hu-text-secondary); margin-bottom: 12px; }
.hu-update-img { border-radius: var(--hu-radius); margin-bottom: 12px; }
.hu-campaign-faqs { max-width: none; }

/* ---------- Breadcrumb campaign clamp ---------- */
.hu-crumb-campaign { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }


/* ============================================================
   Final pass — last compat + welcome page
   ============================================================ */

/* Welcome / DB-down fallback page */
.hu-welcome { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--hu-ivory); }
.hu-welcome-logo { width: 56px; height: 56px; color: var(--hu-primary); margin-bottom: 16px; }
.hu-welcome h1 { margin-bottom: 8px; }
.hu-welcome p { color: var(--hu-text-secondary); max-width: 420px; }

/* Small utility leftovers still used in dashboard views */
.float-right { float: right !important; }
.text-white { color: #fff !important; }
.bg-info { background: var(--hu-info-soft) !important; color: var(--hu-info) !important; }
.bg-success { background: #ECFDF3 !important; color: #14532D !important; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; }
.alert-secondary { background: var(--hu-green-soft); border-color: var(--hu-border); color: var(--hu-text-secondary); }
.align-items-center { align-items: center; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.form-row > [class*="col-"] { flex: 1 1 auto; }
.table-responsive { overflow-x: auto; }
.table-responsive .table { min-width: 640px; }
.thumbnail { display: inline-block; padding: 4px; background: #fff; border: 1px solid var(--hu-border); border-radius: var(--hu-radius-sm); }
.fade { transition: opacity .15s ease; }
.col-xs-3 { width: 25%; }
@media (min-width: 768px) {
  .col-md-offset-3 { margin-left: 25%; }
  .col-offset-1 { margin-left: 8.3333%; }
  .col-offset-4 { margin-left: 33.3333%; }
}
.btn-delete { padding: 6px 10px; }
.panel-info > .panel-heading { background: var(--hu-info-soft); color: var(--hu-info); }
.bank-wrap, .paypal-wrap { margin-bottom: 18px; }
.name_display_wrap { display: flex; gap: 18px; flex-wrap: wrap; padding: 4px 0; }

/* Checkout context */
.contributing-to { margin-bottom: 22px; }
.contributing-to-name { color: var(--hu-text-secondary); margin-bottom: 4px; }
.contributing-to h3 { margin: 0; }
.guest_checkout_text { margin: 8px 0 0; }

/* Brand logo in nav */
.main-logo { max-height: 40px; width: auto; }

.offset-3 { margin-left: 25%; }


/* ---------- Contact page ---------- */
.hu-contact-grid { max-width: 1000px; margin-left: auto; margin-right: auto; }
.hu-contact-info li { display: flex; align-items: baseline; gap: 8px; }
.hu-contact-info li > span { display: inline-block; }


/* ---------- Demo credentials hint (login, demo mode only) ---------- */
.hu-demo-creds { background: var(--hu-ivory); border: 1px solid var(--hu-border); border-left: 4px solid var(--hu-accent); border-radius: var(--hu-radius); padding: 14px 16px; margin-bottom: 18px; }
.hu-demo-creds-title { margin: 0 0 10px; font-family: var(--hu-font-heading); font-weight: 600; font-size: 0.8125rem; color: var(--hu-text-secondary); }
.hu-demo-cred { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; margin-bottom: 6px; flex-wrap: wrap; }
.hu-demo-cred:last-child { margin-bottom: 0; }
.hu-demo-cred code { background: #fff; border: 1px solid var(--hu-border); border-radius: 6px; padding: 2px 8px; }
.hu-demo-role { font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--hu-primary); min-width: 74px; }
.hu-demo-creds-under { max-width: 440px; margin: -28px auto 28px; padding: 16px 18px; }
.hu-demo-creds-under .hu-demo-creds-title { display: flex; align-items: center; gap: 6px; }

/* Tooltip: hidden until shown — an always-rendered empty element must not affect layout */
