/* =============================================================
   HearMeSafe v5 — Professional Design System
   Font: Inter (single family, all weights)
   Primary: #2563eb  Text: #111827  BG: #f9fafb
   Max container: 1140px  Base: 15px/1.6
============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* --- Tokens --- */
:root {
  --p:       #2563eb;
  --p-d:     #1d4ed8;
  --p-lt:    #eff6ff;
  --p-bd:    #bfdbfe;
  --green:   #059669;
  --green-lt:#ecfdf5;
  --amber:   #d97706;
  --amber-lt:#fffbeb;
  --red:     #dc2626;
  --red-lt:  #fef2f2;
  --cyan:    #0891b2;
  --cyan-lt: #ecfeff;
  --t1:      #111827;
  --t2:      #374151;
  --t3:      #6b7280;
  --t4:      #9ca3af;
  --bd:      #e5e7eb;
  --bd2:     #d1d5db;
  --bg:      #f9fafb;
  --bg2:     #f3f4f6;
  --w:       #ffffff;
  --navy:    #0f172a;
  --sh0: 0 1px 2px rgba(0,0,0,.05);
  --sh1: 0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.05);
  --sh2: 0 4px 12px rgba(0,0,0,.08),0 2px 4px rgba(0,0,0,.04);
  --sh3: 0 10px 32px rgba(0,0,0,.1),0 2px 8px rgba(0,0,0,.05);
  --r:   8px;
  --r2:  12px;
  --r3:  16px;
}

/* --- Reset --- */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { overflow-x:hidden; -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body { font-family:'Inter',system-ui,sans-serif; font-size:15px; line-height:1.6;
       color:var(--t2); background:#fdf9f3; overflow-x:hidden; max-width:100vw;
       -webkit-font-smoothing:antialiased; }
* { min-width:0; }
img  { max-width:100%; display:block; }
a    { color:var(--p); text-decoration:none; }
p    { color:var(--t3); line-height:1.7; margin-bottom:.75rem; }
ul, ol { padding-left:1.25rem; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { color:var(--t1); font-weight:700; line-height:1.25;
                      letter-spacing:-.02em; }
h1 { font-size:clamp(1.75rem,3.5vw,2.4rem); }
h2 { font-size:clamp(1.35rem,2.5vw,1.75rem); }
h3 { font-size:1.15rem; }
h4 { font-size:1rem; font-weight:600; }
h5, h6 { font-size:.9rem; font-weight:600; }
.overline { font-size:.7rem; font-weight:600; color:var(--p);
            text-transform:uppercase; letter-spacing:.08em; }
.text-muted { color:var(--t3) !important; }

/* --- Layout --- */
.container { max-width:1140px; margin:0 auto; padding:0 24px; }
.container-sm { max-width:760px; margin:0 auto; padding:0 24px; }
.section { padding:56px 0; }
.section-sm { padding:40px 0; }
.hms-page-wrap { min-height:calc(100vh - 60px); }

/* --- Nav --- */
.hms-topnav {
  position:sticky; top:0; z-index:999;
  height:60px; background:var(--w);
  border-bottom:1px solid var(--bd);
  box-shadow:var(--sh0);
}
.hms-topnav .container-fluid {
  max-width:1200px; margin:0 auto; padding:0 24px;
  height:60px; display:flex; align-items:center; gap:16px;
}
.hms-brand { display:flex; align-items:center; gap:9px; text-decoration:none; flex-shrink:0; }
.brand-icon { width:32px; height:32px; background:var(--p); border-radius:7px;
              display:flex; align-items:center; justify-content:center;
              color:#fff; font-size:14px; flex-shrink:0; }
.brand-text { font-size:1rem; font-weight:700; color:var(--t1); letter-spacing:-.02em; }

.hms-search { flex:0 1 240px; position:relative; }
.hms-search input {
  width:100%; height:36px; padding:0 12px 0 36px;
  border:1px solid var(--bd); border-radius:var(--r);
  font-size:13px; font-family:inherit; color:var(--t1);
  background:var(--bg); transition:border-color .15s;
}
.hms-search input:focus { outline:none; border-color:var(--p);
  box-shadow:0 0 0 3px rgba(37,99,235,.1); background:var(--w); }
.hms-search input::placeholder { color:var(--t4); }
.hms-search-icon { position:absolute; left:11px; top:50%;
  transform:translateY(-50%); color:var(--t4); font-size:12px; pointer-events:none; }

.hms-icon-btn {
  width:36px; height:36px; border-radius:var(--r);
  background:transparent; border:1px solid var(--bd);
  display:inline-flex; align-items:center; justify-content:center;
  color:var(--t3); font-size:14px; text-decoration:none;
  transition:all .15s; position:relative; cursor:pointer; flex-shrink:0;
}
.hms-icon-btn:hover { background:var(--bg); color:var(--t1); border-color:var(--bd2); }
.hms-badge {
  position:absolute; top:-5px; right:-5px;
  background:var(--red); color:#fff; border-radius:10px;
  font-size:9px; font-weight:600; padding:1px 4px; min-width:15px;
  text-align:center; line-height:14px; border:2px solid #fff;
}
.hms-avatar-btn {
  display:flex; align-items:center; gap:8px; background:none; border:none;
  padding:4px 8px; border-radius:var(--r); cursor:pointer; transition:background .15s;
}
.hms-avatar-btn:hover { background:var(--bg); }
.hms-avatar { border-radius:50%; display:inline-flex; align-items:center;
              justify-content:center; color:#fff; font-weight:600;
              font-size:12px; flex-shrink:0; }
.hms-dropdown { border:1px solid var(--bd); border-radius:var(--r2);
                box-shadow:var(--sh3); padding:6px; min-width:200px; background:var(--w); }
.hms-dropdown .dropdown-item { border-radius:var(--r); padding:8px 12px;
  font-size:13px; color:var(--t2); display:flex; align-items:center;
  gap:8px; transition:background .12s; }
.hms-dropdown .dropdown-item:hover { background:var(--bg); color:var(--t1); }
.hms-dropdown .dropdown-divider { margin:4px 0; }

.nav-pill { display:inline-flex; align-items:center; gap:5px;
  background:#fef2f2; color:#dc2626; border:1px solid #fecaca;
  border-radius:6px; padding:5px 11px; font-size:12px; font-weight:600;
  text-decoration:none; transition:all .15s; }
.nav-pill:hover { background:var(--red); color:#fff; }
.hms-btn-crisis-sm { display:inline-flex; align-items:center; gap:5px;
  background:var(--red-lt); color:var(--red); border:1px solid #fecaca;
  border-radius:6px; padding:5px 11px; font-size:12px; font-weight:600;
  text-decoration:none; }

/* --- Buttons --- */
.hms-btn {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:9px 18px; border-radius:var(--r); font-size:13px; font-weight:600;
  font-family:inherit; text-decoration:none; border:1px solid var(--bd);
  background:var(--w); color:var(--t2); cursor:pointer;
  transition:all .15s; white-space:nowrap; line-height:1.4;
}
.hms-btn:hover { background:var(--bg); border-color:var(--bd2); color:var(--t1); }
.hms-btn-primary {
  background:var(--p); color:#fff; border-color:transparent;
  box-shadow:0 1px 3px rgba(37,99,235,.3);
}
.hms-btn-primary:hover { background:var(--p-d); color:#fff;
  box-shadow:0 4px 12px rgba(37,99,235,.35); transform:translateY(-1px); }
.hms-btn-outline { background:transparent; color:var(--p);
  border-color:var(--p); }
.hms-btn-outline:hover { background:var(--p-lt); color:var(--p-d); }
.hms-btn-danger { background:var(--red); color:#fff; border-color:transparent; }
.hms-btn-danger:hover { background:#b91c1c; color:#fff; }
.hms-btn-ghost { background:transparent; border-color:transparent; color:var(--t3); }
.hms-btn-ghost:hover { background:var(--bg); color:var(--t1); }
.hms-btn-lg { padding:12px 24px; font-size:14px; border-radius:var(--r2); }
.hms-btn-sm { padding:6px 12px; font-size:12px; border-radius:6px; }

/* --- Cards --- */
.hms-card {
  background:#ffffff; border:1px solid var(--bd); border-radius:var(--r2);
  padding:20px; box-shadow:var(--sh0);
}
.hms-card-sm { background:var(--w); border:1px solid var(--bd);
  border-radius:var(--r); padding:16px; }

/* --- Forms --- */
.hms-form-card {
  background:var(--w); border:1px solid var(--bd); border-radius:var(--r3);
  padding:36px 32px; box-shadow:var(--sh2); max-width:480px; margin:0 auto;
}
@media(max-width:540px) { .hms-form-card { padding:24px 20px; } }

.form-label, .hms-form-label {
  display:block; font-size:13px; font-weight:600; color:var(--t2);
  margin-bottom:6px; letter-spacing:-.01em;
}
.form-control, .form-select, .hms-input {
  width:100%; height:40px; padding:0 12px;
  border:1px solid var(--bd); border-radius:var(--r);
  font-size:14px; font-family:inherit; color:var(--t1);
  background:var(--w); transition:border-color .15s, box-shadow .15s;
  -webkit-appearance:none;
}
.form-control:hover, .hms-input:hover { border-color:var(--bd2); }
.form-control:focus, .form-select:focus, .hms-input:focus {
  outline:none; border-color:var(--p);
  box-shadow:0 0 0 3px rgba(37,99,235,.1);
}
.form-control::placeholder, .hms-input::placeholder { color:var(--t4); }
textarea.form-control, textarea.hms-input {
  height:auto; min-height:96px; padding:10px 12px; resize:vertical;
}
.form-select {
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%236b7280' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 12px center;
  padding-right:36px; cursor:pointer;
}
.form-check-input { width:16px; height:16px; border:1px solid var(--bd2);
  border-radius:4px; cursor:pointer; accent-color:var(--p); }
.hms-form-group { margin-bottom:16px; }
.form-hint { font-size:12px; color:var(--t4); margin-top:4px; display:block; }
.hms-divider { display:flex; align-items:center; gap:12px; color:var(--t4);
  font-size:12px; margin:18px 0; }
.hms-divider::before,.hms-divider::after { content:''; flex:1; height:1px;
  background:var(--bd); }

/* --- Alerts --- */
.hms-alert { border-radius:var(--r); padding:12px 14px; margin-bottom:16px;
  font-size:13px; display:flex; align-items:flex-start; gap:9px; }
.hms-alert-success { background:var(--green-lt); color:#065f46;
  border:1px solid #a7f3d0; }
.hms-alert-error, .alert-danger { background:var(--red-lt); color:#991b1b;
  border:1px solid #fecaca; }
.hms-alert-warning, .alert-warning { background:var(--amber-lt); color:#78350f;
  border:1px solid #fde68a; }
.hms-alert-info, .alert-info { background:var(--p-lt); color:#1e3a8a;
  border:1px solid var(--p-bd); }

/* --- Post cards --- */
.hms-post-card {
  background:#ffffff; border:1px solid var(--bd); border-radius:var(--r2);
  padding:20px; margin-bottom:12px; transition:box-shadow .15s;
}
.hms-post-card:hover { box-shadow:var(--sh2); }
.hms-post-name { font-size:13px; font-weight:600; color:var(--t1); }
.hms-post-detail { font-size:12px; color:var(--t4); }
.hms-post-title {
  font-size:1rem; font-weight:700; color:var(--t1); display:block;
  text-decoration:none; line-height:1.35; margin-bottom:6px; letter-spacing:-.01em;
}
.hms-post-title:hover { color:var(--p); }
.hms-post-body { font-size:14px; color:var(--t3); line-height:1.7; }
.hms-post-body-preview { display:-webkit-box; -webkit-line-clamp:3;
  -webkit-box-orient:vertical; overflow:hidden; }
.hms-tag { display:inline-flex; align-items:center; gap:4px;
  background:var(--p-lt); color:var(--p); border:1px solid var(--p-bd);
  border-radius:5px; padding:3px 9px; font-size:11px; font-weight:600;
  text-decoration:none; transition:all .12s; }
.hms-tag:hover { background:var(--p); color:#fff; }
.hms-post-actions { display:flex; gap:2px; padding-top:12px;
  border-top:1px solid var(--bd); flex-wrap:wrap; }
.hms-action-btn {
  display:inline-flex; align-items:center; gap:4px; font-size:12px;
  color:var(--t4); background:none; border:none; padding:5px 9px;
  border-radius:6px; cursor:pointer; transition:all .12s;
  text-decoration:none; font-family:inherit; font-weight:500;
}
.hms-action-btn:hover,.hms-action-btn.reacted { color:var(--p); background:var(--p-lt); }
.hms-action-btn.danger:hover { color:var(--red); background:var(--red-lt); }
.hms-anon-tag { background:var(--bg); color:var(--t3); border-radius:4px;
  padding:2px 7px; font-size:10px; font-weight:600; margin-left:4px; }
.hms-pro-tag { background:var(--p-lt); color:var(--p); border-radius:4px;
  padding:2px 7px; font-size:10px; font-weight:600; margin-left:4px; }

/* --- Sidebar --- */
.hms-two-col { display:grid; grid-template-columns:1fr 312px; gap:24px; align-items:start; }
@media(max-width:960px) { .hms-two-col { grid-template-columns:1fr; }
  .hms-sidebar { display:none; } }
.hms-sidebar { position:sticky; top:72px; }
.sidebar-heading { font-size:11px; font-weight:700; color:var(--t4);
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:8px; }
.hms-channel-list { list-style:none; padding:0; }
.hms-channel-list li a { display:flex; align-items:center; gap:8px;
  padding:7px 10px; border-radius:var(--r); color:var(--t2); font-size:13px;
  text-decoration:none; transition:all .12s; font-weight:500; }
.hms-channel-list li a:hover,.hms-channel-list li a.active {
  background:var(--p-lt); color:var(--p); }
.ch-count { margin-left:auto; font-size:11px; color:var(--t4);
  background:var(--bg2); padding:1px 7px; border-radius:10px; }

/* --- Comments --- */
.hms-comment { display:flex; gap:10px; margin-bottom:14px; }
.hms-comment-body { flex:1; background:var(--bg); border-radius:var(--r2);
  padding:12px 14px; border:1px solid var(--bd); }
.hms-comment-name { font-weight:600; font-size:13px; color:var(--t1); }
.hms-comment-time { font-size:11px; color:var(--t4); margin-left:6px; }
.hms-comment-text { font-size:14px; color:var(--t2); margin-top:5px; line-height:1.7; }
.hms-comment-expert { border-left:3px solid var(--p); }

/* --- Professionals --- */
.hms-pro-card { background:var(--w); border:1px solid var(--bd);
  border-radius:var(--r2); padding:20px; transition:box-shadow .15s; }
.hms-pro-card:hover { box-shadow:var(--sh2); }
.hms-pro-name { font-weight:700; font-size:15px; color:var(--t1); }
.hms-pro-spec { display:inline-block; background:var(--p-lt); color:var(--p);
  border-radius:5px; padding:3px 9px; font-size:11px; font-weight:600;
  border:1px solid var(--p-bd); margin-top:4px; }
.hms-avail-dot { width:7px; height:7px; border-radius:50%; background:#22c55e;
  display:inline-block; margin-right:4px; }

/* --- Messages --- */
.msg-shell { display:grid; grid-template-columns:280px 1fr;
  height:calc(100vh - 100px); background:var(--w);
  border:1px solid var(--bd); border-radius:var(--r2);
  overflow:hidden; box-shadow:var(--sh1); }
@media(max-width:640px) { .msg-shell { grid-template-columns:1fr; } }
.msg-list { border-right:1px solid var(--bd); display:flex;
  flex-direction:column; background:var(--bg); overflow-y:auto; }
.msg-list-head { padding:14px 16px; border-bottom:1px solid var(--bd);
  font-size:14px; font-weight:700; color:var(--t1); display:flex;
  align-items:center; justify-content:space-between; flex-shrink:0; }
.msg-conv-row { display:flex; align-items:center; gap:10px; padding:12px 14px;
  border-bottom:1px solid var(--bd); text-decoration:none; color:inherit;
  transition:background .12s; cursor:pointer; flex-shrink:0; }
.msg-conv-row:hover,.msg-conv-row.active { background:var(--p-lt); }
.msg-conv-name { font-size:13px; font-weight:600; color:var(--t1); }
.msg-conv-preview { font-size:12px; color:var(--t4);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.msg-unread-dot { background:var(--p); color:#fff; border-radius:10px;
  font-size:10px; font-weight:600; padding:1px 6px; }
.msg-chat { display:flex; flex-direction:column; overflow:hidden; }
.msg-chat-head { padding:12px 16px; border-bottom:1px solid var(--bd);
  background:var(--w); display:flex; align-items:center; gap:10px;
  flex-shrink:0; }
.msg-chat-body { flex:1; overflow-y:auto; padding:16px;
  display:flex; flex-direction:column; gap:8px; background:var(--bg); }
.msg-chat-foot { padding:12px 14px; border-top:1px solid var(--bd);
  display:flex; gap:8px; align-items:flex-end; background:var(--w);
  flex-shrink:0; }
.msg-input { flex:1; border:1px solid var(--bd); border-radius:var(--r2);
  padding:9px 12px; font-size:14px; font-family:inherit; resize:none;
  max-height:100px; background:var(--bg); transition:border-color .15s; }
.msg-input:focus { outline:none; border-color:var(--p);
  box-shadow:0 0 0 3px rgba(37,99,235,.1); }
.msg-send-btn { width:38px; height:38px; border-radius:50%;
  background:var(--p); color:#fff; border:none; display:flex;
  align-items:center; justify-content:center; cursor:pointer;
  box-shadow:0 2px 8px rgba(37,99,235,.35); transition:all .15s; flex-shrink:0; }
.msg-send-btn:hover { background:var(--p-d); transform:scale(1.05); }
.msg-bubble-wrap { display:flex; flex-direction:column; max-width:70%; }
.msg-me { align-self:flex-end; align-items:flex-end; }
.msg-them { align-self:flex-start; }
.msg-bubble { padding:9px 13px; border-radius:14px; font-size:14px;
  line-height:1.55; word-break:break-word; }
.msg-me .msg-bubble { background:var(--p); color:#fff;
  border-radius:14px 14px 4px 14px; }
.msg-them .msg-bubble { background:var(--w); color:var(--t2);
  border-radius:14px 14px 14px 4px; border:1px solid var(--bd); }
.msg-bubble-time { font-size:10px; color:var(--t4); margin-top:3px; padding:0 3px; }
.msg-chat-blank { flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:var(--t4); text-align:center; }
.msg-empty { flex:1; display:flex; flex-direction:column;
  align-items:center; justify-content:center; color:var(--t4);
  text-align:center; padding:24px; }

/* --- Status badges --- */
.badge { display:inline-block; padding:3px 8px; border-radius:5px;
  font-size:11px; font-weight:600; }
.badge-pending  { background:var(--amber-lt); color:#78350f; }
.badge-approved { background:var(--green-lt); color:#065f46; }
.badge-rejected { background:var(--red-lt); color:#991b1b; }
.badge-member   { background:var(--p-lt); color:var(--p); }
.badge-pro      { background:var(--cyan-lt); color:var(--cyan); }
.badge-admin    { background:var(--navy); color:#fff; }
.badge-mod      { background:#f3e8ff; color:#6b21a8; }
.hms-badge-pro  { background:var(--p-lt); color:var(--p); border-radius:4px;
  padding:2px 8px; font-size:10px; font-weight:700; margin-left:4px; }

/* --- Inner page hero --- */
.hms-page-hero {
  background:linear-gradient(150deg,#b6d0f7 0%,#c8dcf7 35%,#d8ecfc 65%,#c0d4f5 100%);
  border-bottom:1px solid #bad0f0;
  padding:52px 0 44px; position:relative; overflow:hidden;
}
.hms-page-hero::before {
  content:''; position:absolute;
  background-image:radial-gradient(circle,rgba(37,99,235,.18) 1px,transparent 1px);
  background-size:28px 28px; inset:0; opacity:.5; pointer-events:none;
}
.hms-page-hero::after {
  content:''; position:absolute;
  width:400px; height:400px; border-radius:50%;
  background:rgba(37,99,235,.06);
  top:-100px; right:-80px; pointer-events:none;
}
.hms-page-hero .container { position:relative; z-index:1; }
.hms-page-hero-label {
  display:inline-flex; align-items:center; gap:7px;
  font-size:.68rem; font-weight:700; color:#1d4ed8;
  text-transform:uppercase; letter-spacing:.1em; margin-bottom:10px;
  background:rgba(255,255,255,.6); border:1px solid rgba(37,99,235,.2);
  border-radius:5px; padding:4px 11px; backdrop-filter:blur(6px);
}
.hms-page-hero h1 { color:#0f172a; margin-bottom:10px; font-weight:800; letter-spacing:-.03em; }
.hms-page-hero p { font-size:15px; color:#334155; max-width:560px; }
.hms-page-hero a { color:#1d4ed8; font-weight:600; }

/* --- Accordion (FAQ) --- */
.hms-accordion { border:1px solid var(--bd); border-radius:var(--r2);
  overflow:hidden; }
.hms-accordion-item { border-bottom:1px solid var(--bd); }
.hms-accordion-item:last-child { border-bottom:none; }
.hms-accordion-btn { width:100%; background:none; border:none;
  padding:16px 20px; text-align:left; display:flex; align-items:center;
  justify-content:space-between; gap:14px; cursor:pointer;
  font-size:14px; font-weight:600; color:var(--t1);
  font-family:inherit; transition:background .12s; }
.hms-accordion-btn:hover { background:var(--bg); }
.hms-accordion-btn.open { color:var(--p); background:var(--p-lt); }
.acc-icon { width:24px; height:24px; border-radius:50%; background:var(--bg2);
  display:flex; align-items:center; justify-content:center;
  font-size:11px; color:var(--t3); flex-shrink:0; transition:all .2s; }
.hms-accordion-btn.open .acc-icon { background:var(--p); color:#fff; transform:rotate(45deg); }
.hms-accordion-body { max-height:0; overflow:hidden; transition:max-height .3s ease,padding .3s; }
.hms-accordion-body.open { max-height:400px; padding:4px 20px 18px; }
.hms-accordion-body p { font-size:14px; color:var(--t3); line-height:1.75; }

/* --- Content pages --- */
.content-block h2 { font-size:1.15rem; margin:32px 0 10px; }
.content-block h3 { font-size:1rem; margin:20px 0 8px; }
.content-block p { font-size:14px; color:var(--t3); line-height:1.75; margin-bottom:12px; }
.content-block ul { margin-bottom:12px; }
.content-block li { font-size:14px; color:var(--t3); line-height:1.75; margin-bottom:4px; }
.content-block a { color:var(--p); }

/* --- Mobile nav --- */
.hms-bottom-nav { position:fixed; bottom:0; left:0; right:0;
  background:var(--w); border-top:1px solid var(--bd);
  display:flex; align-items:center; z-index:900;
  box-shadow:0 -2px 12px rgba(0,0,0,.06);
  padding-bottom:env(safe-area-inset-bottom); }
.hms-bnav-item { flex:1; display:flex; flex-direction:column;
  align-items:center; padding:8px 4px 5px; font-size:9px; font-weight:600;
  color:var(--t4); text-decoration:none; gap:3px; transition:color .12s;
  text-transform:uppercase; letter-spacing:.04em; }
.hms-bnav-item i { font-size:18px; }
.hms-bnav-item.active { color:var(--p); }
.hms-bnav-create { width:46px; height:46px; border-radius:50%;
  background:var(--p); color:#fff; display:flex; align-items:center;
  justify-content:center; font-size:18px; text-decoration:none;
  margin:0 8px; box-shadow:0 4px 12px rgba(37,99,235,.35); transition:transform .15s; }
.hms-bnav-create:hover { transform:scale(1.08); color:#fff; }

/* --- Footer --- */
.hms-footer { background:var(--navy); padding:52px 0 32px; }
.footer-heading { font-size:11px; font-weight:700; color:rgba(255,255,255,.85);
  text-transform:uppercase; letter-spacing:.07em; margin-bottom:12px; }
.footer-links { list-style:none; padding:0; }
.footer-links li { margin-bottom:7px; }
.footer-links a { color:rgba(255,255,255,.4); font-size:13px;
  text-decoration:none; transition:color .12s; }
.footer-links a:hover { color:rgba(255,255,255,.8); }
.footer-divider { border-color:rgba(255,255,255,.07); margin:32px 0 20px; }

/* --- Pagination --- */
.pagination .page-link { color:var(--p); border-color:var(--bd);
  border-radius:var(--r) !important; margin:0 2px; font-size:13px; padding:6px 12px; }
.pagination .page-link:hover { background:var(--p-lt); border-color:var(--p-bd); }
.pagination .page-item.active .page-link { background:var(--p); border-color:var(--p); }

/* --- Responsive utilities --- */
@media(max-width:768px) {
  .section { padding:48px 0; }
  .hms-page-hero { padding:36px 0 28px; }
  .hms-form-card { padding:24px 18px; }
}
@media(max-width:480px) {
  .container { padding:0 16px; }
  .hms-card { padding:16px; }
}

/* ── HMS Brand Badges ── */
.hms-verified {
  display:inline-flex; align-items:center; gap:5px;
  background:#eff6ff; border:1.5px solid #bfdbfe; color:#1d4ed8;
  border-radius:6px; padding:3px 10px; font-size:10px; font-weight:700;
  letter-spacing:.02em; font-family:'Inter',system-ui,sans-serif;
}
.hms-verified i { font-size:9px; }
.hms-community {
  display:inline-flex; align-items:center; gap:5px;
  background:#ecfdf5; border:1.5px solid #a7f3d0; color:#065f46;
  border-radius:6px; padding:3px 10px; font-size:10px; font-weight:700;
  font-family:'Inter',system-ui,sans-serif;
}
.hms-score {
  display:inline-flex; align-items:center; gap:5px;
  background:#f3e8ff; border:1.5px solid #d8b4fe; color:#6b21a8;
  border-radius:6px; padding:3px 10px; font-size:10px; font-weight:700;
  font-family:'Inter',system-ui,sans-serif;
}
.hms-tagline {
  font-size:10px; font-weight:700; color:rgba(37,99,235,.6);
  letter-spacing:.1em; text-transform:uppercase;
}
.hms-tagline-dark {
  font-size:10px; font-weight:700; color:rgba(147,197,253,.6);
  letter-spacing:.1em; text-transform:uppercase;
}

/* ── Backward compatibility — old variable names ── */
:root {
  --navy:     #0f172a;
  --teal:     #2563eb;
  --teal-lt:  #eff6ff;
  --teal-mid: #bfdbfe;
  --muted:    #94a3b8;
  --text2:    #475569;
  --amber:    #d97706;
  --amber-lt: #fffbeb;
  --coral:    #dc2626;
  --coral-lt: #fef2f2;
  --text-muted:#94a3b8;
}
/* Inner page hero — matches public pages */
.inner-hero {
  background:linear-gradient(150deg,#b6d0f7 0%,#c8dcf7 40%,#d8ecfc 100%);
  border-bottom:1px solid #bad0f0;
  padding:36px 0 28px;
  position:relative;overflow:hidden;
}
.inner-hero::before {
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(circle,rgba(37,99,235,.16) 1px,transparent 1px);
  background-size:28px 28px;opacity:.4;pointer-events:none;
}
.inner-hero-inner { max-width:1200px;margin:0 auto;padding:0 24px;position:relative;z-index:1; }
.inner-hero-label {
  display:inline-flex;align-items:center;gap:7px;
  font-size:.68rem;font-weight:700;color:#1d4ed8;
  text-transform:uppercase;letter-spacing:.1em;margin-bottom:8px;
  background:rgba(255,255,255,.6);border:1px solid rgba(37,99,235,.2);
  border-radius:5px;padding:4px 11px;backdrop-filter:blur(6px);
}
.inner-hero h1 { color:#0f172a;font-weight:800;letter-spacing:-.03em;margin-bottom:6px; }
.inner-hero p  { font-size:15px;color:#334155;max-width:520px;margin:0; }

/* App layout */
.app-wrap { max-width:1200px;margin:0 auto;padding:28px 24px; }
@media(max-width:600px){ .app-wrap { padding:16px 14px; } }
.app-grid { display:grid;grid-template-columns:1fr 300px;gap:24px;align-items:start; }
@media(max-width:980px){ .app-grid { grid-template-columns:1fr; } }
@media(max-width:980px){ .app-sidebar { display:none; } }
.app-sidebar { position:sticky;top:72px; }

/* Improved card for logged-in area */
.feed-card {
  background:#fff;border:1.5px solid #e2e8f0;border-radius:14px;
  padding:20px;margin-bottom:12px;transition:all .18s;
}
.feed-card:hover { box-shadow:0 6px 24px rgba(15,23,42,.09);border-color:#cbd5e1; }

/* Mood buttons */
.mood-btn-row { display:flex;gap:8px;flex-wrap:wrap; }
.mood-btn {
  flex:1;min-width:64px;padding:10px 8px;border:1.5px solid #e2e8f0;
  border-radius:10px;background:#fdf9f3;cursor:pointer;text-align:center;
  font-size:1.4rem;transition:all .15s;font-family:inherit;display:flex;
  flex-direction:column;align-items:center;gap:4px;
}
.mood-btn span { font-size:10px;font-weight:600;color:#94a3b8; }
.mood-btn:hover { border-color:#bfdbfe;background:#eff6ff; }
.mood-btn.selected { border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 3px rgba(37,99,235,.1); }

/* Settings tabs */
.settings-tab { display:flex;gap:2px;border-bottom:1.5px solid #e2e8f0;margin-bottom:24px;overflow-x:auto; }
.settings-tab a { font-size:13px;font-weight:600;color:#64748b;padding:10px 16px;text-decoration:none;
  border-bottom:2px solid transparent;margin-bottom:-2px;white-space:nowrap;transition:all .15s; }
.settings-tab a:hover { color:#0f172a; }
.settings-tab a.active { color:#2563eb;border-bottom-color:#2563eb; }

/* Notification items */
.notif-item { display:flex;gap:12px;padding:14px 16px;border-bottom:1px solid #f1f5f9;
  transition:background .12s;text-decoration:none;color:inherit; }
.notif-item:hover { background:#fafbff; }
.notif-item.unread { background:#f0f7ff; }
.notif-dot { width:8px;height:8px;border-radius:50%;background:#2563eb;flex-shrink:0;margin-top:5px; }
.notif-icon { width:36px;height:36px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;font-size:14px;flex-shrink:0; }

/* Post channel badge */
.ch-badge { display:inline-flex;align-items:center;gap:5px;background:#eff6ff;color:#1d4ed8;
  border:1px solid #bfdbfe;border-radius:5px;padding:3px 9px;font-size:10px;font-weight:700; }

/* Write post area */
.write-bar { background:#fff;border:1.5px solid #e2e8f0;border-radius:12px;
  padding:14px 16px;display:flex;align-items:center;gap:11px;cursor:pointer;
  margin-bottom:14px;transition:border-color .15s; }
.write-bar:hover { border-color:#bfdbfe; }
.write-bar-input { flex:1;font-size:14px;color:#94a3b8;font-family:inherit;border:none;
  background:none;outline:none;cursor:pointer; }

/* Profile hero */
.profile-hero { background:linear-gradient(150deg,#1e293b,#0f172a);padding:40px 0;
  border-bottom:1px solid rgba(255,255,255,.06); }
.profile-hero-inner { max-width:900px;margin:0 auto;padding:0 24px;
  display:flex;align-items:center;gap:24px; }
@media(max-width:600px){ .profile-hero-inner { flex-direction:column;text-align:center; } }

/* Stat block */
.stat-block { background:#fff;border:1px solid #e2e8f0;border-radius:10px;
  padding:14px 18px;text-align:center; }
.stat-block-n { font-size:1.5rem;font-weight:800;color:#0f172a;letter-spacing:-.03em;line-height:1; }
.stat-block-l { font-size:11px;color:#94a3b8;font-weight:500;margin-top:3px; }

/* ═══════════════════════════════════════════════
   Page hero banners — geometric SVG patterns
   Each page type gets its own visual personality
═══════════════════════════════════════════════ */

/* Base inner hero (override with page-specific) */
.inner-hero,
.hms-page-hero {
  position:relative; overflow:hidden;
}

/* DASHBOARD — warm morning gradient with grid */
.hero-dashboard {
  background:linear-gradient(150deg,#0f172a 0%,#1e293b 60%,#1e3a8a 100%);
  padding:40px 0 32px;
}
.hero-dashboard::before {
  content:''; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(37,99,235,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.08) 1px, transparent 1px);
  background-size:48px 48px;
}
.hero-dashboard::after {
  content:''; position:absolute;
  width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  top:-200px; right:-100px; pointer-events:none;
}
.hero-dashboard h1 { color:#fff; }
.hero-dashboard .inner-hero-label { background:rgba(37,99,235,.25); border-color:rgba(37,99,235,.4); color:#93c5fd; }
.hero-dashboard p { color:rgba(255,255,255,.55); }

/* EXPLORE — vibrant channels gradient */
.hero-explore {
  background:linear-gradient(135deg,#1e3a8a 0%,#1e293b 50%,#0e7490 100%);
  padding:40px 0 32px;
}
.hero-explore::before {
  content:''; position:absolute; inset:0;
  background-image:radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size:24px 24px;
}
.hero-explore h1 { color:#fff; }
.hero-explore .inner-hero-label { background:rgba(8,145,178,.25); border-color:rgba(8,145,178,.4); color:#67e8f9; }
.hero-explore p { color:rgba(255,255,255,.55); }

/* PROFESSIONALS — trustworthy teal-navy */
.hero-professionals {
  background:linear-gradient(150deg,#0f172a 0%,#134e4a 60%,#1e3a8a 100%);
  padding:40px 0 32px;
}
.hero-professionals::before {
  content:''; position:absolute;
  width:600px; height:600px; border-radius:50%;
  background:radial-gradient(circle, rgba(20,184,166,.1) 0%, transparent 65%);
  top:-200px; right:-50px;
}
.hero-professionals h1 { color:#fff; }
.hero-professionals .inner-hero-label { background:rgba(20,184,166,.2); border-color:rgba(20,184,166,.35); color:#5eead4; }
.hero-professionals p { color:rgba(255,255,255,.55); }

/* TESTS — deep purple-blue science */
.hero-tests {
  background:linear-gradient(135deg,#1e1b4b 0%,#1e293b 50%,#1e3a8a 100%);
  padding:44px 0 36px;
}
.hero-tests::before {
  content:''; position:absolute; inset:0;
  background-image:radial-gradient(ellipse at 30% 50%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(37,99,235,.1) 0%, transparent 55%);
}
.hero-tests h1 { color:#fff; }
.hero-tests p { color:rgba(255,255,255,.6); }

/* RESOURCES — warm amber-navy */
.hero-resources {
  background:linear-gradient(150deg,#0f172a 0%,#1e293b 55%,#451a03 100%);
  padding:44px 0 36px;
}
.hero-resources::before {
  content:''; position:absolute;
  width:500px; height:500px; border-radius:50%;
  background:radial-gradient(circle, rgba(217,119,6,.12) 0%, transparent 65%);
  top:-150px; right:-80px;
}
.hero-resources h1 { color:#fff; }
.hero-resources .inner-hero-label { background:rgba(217,119,6,.2); border-color:rgba(217,119,6,.35); color:#fcd34d; }
.hero-resources p { color:rgba(255,255,255,.55); }

/* CREATE POST — creative blue-purple */
.hero-create {
  background:linear-gradient(135deg,#1e1b4b 0%,#1e3a8a 55%,#0f172a 100%);
  padding:36px 0 28px;
}
.hero-create::before {
  content:''; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size:32px 32px;
}
.hero-create h1 { color:#fff; }
.hero-create .inner-hero-label { background:rgba(124,58,237,.25); border-color:rgba(124,58,237,.4); color:#c4b5fd; }
.hero-create p { color:rgba(255,255,255,.55); }

/* PROFILE — dark prestige */
.hero-profile-page {
  background:linear-gradient(135deg,#0f172a,#1e293b);
  padding:44px 0 36px;
}
.hero-profile-page::before {
  content:''; position:absolute; inset:0;
  background-image:radial-gradient(circle, rgba(37,99,235,.06) 1px, transparent 1px);
  background-size:28px 28px;
}

/* SETTINGS — professional grey-blue */
.hero-settings {
  background:linear-gradient(150deg,#1e293b 0%,#0f172a 60%,#172554 100%);
  padding:36px 0 28px;
}
.hero-settings h1 { color:#fff; }
.hero-settings .inner-hero-label { background:rgba(37,99,235,.2); border-color:rgba(37,99,235,.35); color:#93c5fd; }
.hero-settings p { color:rgba(255,255,255,.5); }

/* CRISIS — urgent, warm red-dark */
.hero-crisis {
  background:linear-gradient(135deg,#1c0a0a 0%,#2d0f0f 50%,#0f172a 100%);
  padding:44px 0 36px;
}
.hero-crisis::before {
  content:''; position:absolute;
  width:400px; height:400px; border-radius:50%;
  background:radial-gradient(circle, rgba(220,38,38,.12) 0%, transparent 65%);
  top:-100px; right:-60px;
}
.hero-crisis h1 { color:#fff; }
.hero-crisis .inner-hero-label { background:rgba(220,38,38,.2); border-color:rgba(220,38,38,.35); color:#fca5a5; }
.hero-crisis p { color:rgba(255,255,255,.55); }

/* MOOD JOURNAL — calm teal-slate */
.hero-mood {
  background:linear-gradient(150deg,#0f172a 0%,#134e4a 60%,#1e293b 100%);
  padding:36px 0 28px;
}
.hero-mood h1 { color:#fff; }
.hero-mood .inner-hero-label { background:rgba(20,184,166,.2); border-color:rgba(20,184,166,.35); color:#5eead4; }
.hero-mood p { color:rgba(255,255,255,.5); }

/* Shared dark hero overrides */
.hero-dark h1 { color:#fff !important; }
.hero-dark .inner-hero-label { color:#93c5fd !important; }
.hero-dark p { color:rgba(255,255,255,.55) !important; }

/* Stat block for dark heroes */
.hero-stat { text-align:center; }
.hero-stat-n { font-size:1.6rem; font-weight:800; color:#fff; letter-spacing:-.03em; line-height:1; }
.hero-stat-l { font-size:10px; font-weight:600; color:rgba(255,255,255,.35); text-transform:uppercase; letter-spacing:.08em; margin-top:4px; }

/* Dark hero text overrides when bg is dark (set via inline style) */
[style*="0f172a"] .hms-page-hero-label,
[style*="1e293b"] .hms-page-hero-label,
[style*="1e3a8a"] .hms-page-hero-label {
  background:rgba(255,255,255,.1) !important;
  border-color:rgba(255,255,255,.15) !important;
  color:rgba(255,255,255,.65) !important;
}
[style*="0f172a"] h1,
[style*="1e293b"] h1,
[style*="1e3a8a"] h1 { color:#ffffff !important; }
[style*="0f172a"] .hms-page-hero p,
[style*="1e293b"] .hms-page-hero p { color:rgba(255,255,255,.55) !important; }
[style*="0f172a"] .hms-page-hero a,
[style*="1e3a8a"] .hms-page-hero a { color:#93c5fd !important; }
